aboutsummaryrefslogtreecommitdiff
path: root/src/generator.c
Commit message (Expand)AuthorAgeFilesLines
* Allow empty return statements for void functionsMustafa Quraish2022-02-051-1/+4
* Fix label counts during code generation for `||` and `&&`Mustafa Quraish2022-02-051-10/+10
* Allow function declarations without a definitionMustafa Quraish2022-02-051-0/+3
* Handle command-line arguments properly on linuxMustafa Quraish2022-02-051-4/+13
* Add support for some more binary ops: |, &, ^Mustafa Quraish2022-02-051-1/+22
* Add ability to initialize global variablesMustafa Quraish2022-02-051-0/+13
* Allow `builtins.c` to inject constants into program, use for syscallsMustafa Quraish2022-02-051-4/+2
* Add support for basic structsMustafa Quraish2022-02-031-1/+9
* Push `argc` and `argv` to the `main()` functionMustafa Quraish2022-02-031-0/+10
* Add helper to create builtins for syscalls + implement `read()`Mustafa Quraish2022-02-031-56/+2
* Remove `putc` intrinsic and replace with `write(fd, buf, size)`Mustafa Quraish2022-02-031-6/+14
* Add support for `char` type + string/char literalsMustafa Quraish2022-02-021-6/+48
* Remove default initialization to 0 for variable declarationsMustafa Quraish2022-02-021-5/+0
* Type checking of expressions / functions!Mustafa Quraish2022-02-021-1/+11
* Add support for pointers! (tests missing)Mustafa Quraish2022-02-021-13/+16
* Refactor variable access+assignment in terms of `generate_lvalue()`Mustafa Quraish2022-02-021-20/+21
* Modify how types are stored.Mustafa Quraish2022-02-021-2/+2
* Defer: Pop elements off the defer-stack when returningMustafa Quraish2022-02-011-2/+4
* Add basic `defer` implementation.Mustafa Quraish2022-02-011-0/+21
* Global variables now supported! + some fixes to OP_ASSIGNMustafa Quraish2022-01-311-27/+29
* Minor fixes to code generationMustafa Quraish2022-01-311-11/+11
* Add basic builtin-function supportMustafa Quraish2022-01-311-6/+95
* Rename `cup` directory to `src`Mustafa Quraish2022-01-301-0/+355