aboutsummaryrefslogtreecommitdiff
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* [compiler.cup] Add support for function calls!Mustafa Quraish2022-02-052-10/+128
|
* [compiler.cup] codegen for unary ops, short circuiting &&/||Mustafa Quraish2022-02-052-1/+66
|
* [compiler.cup] Add codegen for relational + if/conditional supportMustafa Quraish2022-02-052-2/+96
|
* [compiler.cup] Add support for lexically scoped local variablesMustafa Quraish2022-02-054-16/+150
|
* Add implementation of self-hosted compiler so farMustafa Quraish2022-02-058-0/+1546
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