CMinusMinus is a compiler project which makes a compiler to parse a simple C-style language into MIPS machine code. This project is to learn the basic concepts of a compiler. The formal CFG of the languange can be seen in the files folder.
This project is in progess.
- A lexical analyser is made for the C Minus language using Flex.
- A parser is generated to parse the C Minus text into an abstract syntax tree using Bison.
To generate the parser, run
cd lab1/Code && make
To parse a CMinusMinus text, run
./parser code.cmm
- Do semantic check on the generated AST tree
To do: Error type 9 need better print func and caller's format