Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐾 Muchku Language Compiler

MK

This is the official compiler for Muchku, a custom programming language built in C. Muchku is a toy language created for learning how compilers work — from lexing to parsing, code generation, and execution.


Structure

shapes at 25-05-07 19 44 45

✨ Features

  • Lexical analysis (tokenization)
  • Parsing into AST (Abstract Syntax Tree)
  • Code generation into executable instructions
  • Simple error reporting
  • Supports basic language constructs (e.g., print, variables, arithmetic , if and for)

🧠 Learning Goals

This project was built to understand:

  • Compiler architecture
  • Lexers and parsers
  • AST construction
  • Code interpretation/generation

🛠 Dependencies

C Compiler (e.g., GCC)

POSIX-compliant terminal (Linux, macOS) or Git Bash/WSL (Windows)

🔧 How to Build

Ensure you have GCC installed.

From the root directory:

cd compiler
gcc main.c lexer.c parser.c codegen.c -o muchku.exe
./muchku.exe ../main.muchku




About

This is the official compiler for Muchku, a custom programming language built in C. Muchku is a toy language created for learning how compilers work — from lexing to parsing, code generation, and execution.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages