Lightweight modular C compiler with code optimization build to support this context free grammar. Extracted notebooks with detailed code explanation are available here.
- Compile and run example C code
python3 main.py res/testX.c gen/testX.py
where X is chosen from [1-10]
- Generated code and AST are stored in out directory
- Error handling
- Multidimensional arrays
- Unary increment/decrement operators
- Switch statement
- Additional stdlib functions