aboutsummaryrefslogtreecommitdiff
path: root/compiler/codegen.cup
Commit message (Collapse)AuthorAgeFilesLines
* [compiler.cup] Add support for function calls!Mustafa Quraish2022-02-051-0/+24
|
* [compiler.cup] codegen for unary ops, short circuiting &&/||Mustafa Quraish2022-02-051-0/+66
|
* [compiler.cup] Add codegen for relational + if/conditional supportMustafa Quraish2022-02-051-2/+83
|
* [compiler.cup] Add support for lexically scoped local variablesMustafa Quraish2022-02-051-0/+37
|
* Add implementation of self-hosted compiler so farMustafa Quraish2022-02-051-0/+151
There's also a `run.sh2` script which does the following: - Compiles the C compiler `build/cupcc` - Compiles the self-hosted compiler `build/cup.out` (with `cupcc`) - Compiles the specified file on CLI with `build/cup.out` - Runs this exectuable and shows the output