A small C compiler for a simplified subset of the C language, built from scratch in C.
- Lexical Analysis (Lexer)
- Recursive Descent Parser
- AST Construction
- Semantic Analysis (Symbol Table, Type Checking)
- Stack-Based Code Generation
- Mini Virtual Machine (optional)
src/– source codedocs/– design documents and grammartests/– unit testsexamples/– sample programs the compiler can compile
make
./mini-c program.c