A compiler for a subset of the C language that compiles to casm machine code
Note: this project is at a very early stage, it is not even close to being complete, the code is unorganized and missing explanation comments
gcc main.c -I./include -o compiler.bin
./compiler.bin tests/main_test.c
AST free functionImprove distinction code for variable assignment and function declarationFix nested function callsFix function calls inside if/while conditionAdd function type parsing and arraysAdd unary operators: increment, decrement, bitwise/logical not, pointer dereferenceAdd greater/less or equal, not equal tokensAdd augmented assignment (i.e. x += 2)Add prefix/suffix increment and decrementAdd else if/else branch parsing and single line branch that does not require bracesAdd for loops, break and continue keywordsAdd struct type parsing and struct member accsessAdd type casts and sizeof()- Add error reporting
- Semantic analysis (hopefully)