aboutsummaryrefslogtreecommitdiff
Commit message (Expand)AuthorAgeFilesLines
* Minor fixes, rearranging, whitespace trimming. No functional changes.Mustafa Quraish2022-02-044-25/+28
* Don't open/parse a file that's been included more than onceMustafa Quraish2022-02-041-21/+39
* Add support for read-only constant expressionsMustafa Quraish2022-02-044-7/+121
* Add some simple tests for arrays+stringsMustafa Quraish2022-02-031-0/+131
* Add `exit()` syscall builtinMustafa Quraish2022-02-031-0/+3
* Modify implementation of structs to support unionsMustafa Quraish2022-02-034-13/+19
* Add support for basic structsMustafa Quraish2022-02-038-6/+192
* Add automatic type inference for initialized variable declarationsMustafa Quraish2022-02-031-17/+27
* Add pre-increment and pre-decrement operators.Mustafa Quraish2022-02-032-2/+34
* Add an implicit block around a `for` loop, allow statement initMustafa Quraish2022-02-031-12/+27
* Make `make test` exit early if any of the tests failMustafa Quraish2022-02-031-1/+1
* Push `argc` and `argv` to the `main()` functionMustafa Quraish2022-02-032-1/+11
* Add helper to create builtins for syscalls + implement `read()`Mustafa Quraish2022-02-036-75/+126
* Check for integer-like types in type-checking instead of exact onesMustafa Quraish2022-02-031-7/+7
* Remove `putc` intrinsic and replace with `write(fd, buf, size)`Mustafa Quraish2022-02-036-50/+47
* Move builtins to a separate fileMustafa Quraish2022-02-033-28/+54
* Allow implicitly converting between integer-like-typesMustafa Quraish2022-02-034-5/+33
* Move all common utilities to `std/common.cup`Mustafa Quraish2022-02-032-22/+73
* Avoid pointer-arithmetic multiplications if we have `char*`Mustafa Quraish2022-02-031-24/+34
* Add support for `char` type + string/char literalsMustafa Quraish2022-02-028-21/+153
* Remove default initialization to 0 for variable declarationsMustafa Quraish2022-02-023-6/+9
* Handle OP_ASSIGN in `print_ast()`Mustafa Quraish2022-02-021-0/+6
* Add initial support for arrays (also no testing)Mustafa Quraish2022-02-026-10/+95
* Move type-related stuff to a separate fileMustafa Quraish2022-02-025-194/+217
* Fix examples to include return type on main functionMustafa Quraish2022-02-026-6/+6
* Type checking of expressions / functions!Mustafa Quraish2022-02-0211-131/+327
* Use `type*` instead of `type&` to denote a pointer type (for now)Mustafa Quraish2022-02-021-1/+1
* Add support for pointers! (tests missing)Mustafa Quraish2022-02-024-17/+30
* Refactor variable access+assignment in terms of `generate_lvalue()`Mustafa Quraish2022-02-021-20/+21
* Add `size_for_type()` helper instead of hard-coding variable sizesMustafa Quraish2022-02-023-5/+16
* Modify how types are stored.Mustafa Quraish2022-02-024-99/+143
* Defer: Pop elements off the defer-stack when returningMustafa Quraish2022-02-011-2/+4
* Add basic `defer` implementation.Mustafa Quraish2022-02-017-1/+104
* Testing: Add support for testing stdout results, check builtinsMustafa Quraish2022-02-012-0/+103
* Global variables now supported! + some fixes to OP_ASSIGNMustafa Quraish2022-01-315-63/+157
* Add .gitattributes to try to highlight code as RustMustafa Quraish2022-01-312-1/+2
* Add workflow to run tests on pushMustafa Quraish2022-01-311-0/+17
* Move around tests in the categories; Add missing testsMustafa Quraish2022-01-314-179/+197
* Add `std/math.cup` with some common math functionsMustafa Quraish2022-01-311-0/+22
* Add ability to import other filesMustafa Quraish2022-01-314-3/+62
* Minor fixes to code generationMustafa Quraish2022-01-311-11/+11
* Fix offset for local variablesMustafa Quraish2022-01-311-1/+1
* Make `Lexer_new` return a pointer instead of the object.Mustafa Quraish2022-01-313-8/+8
* Add basic builtin-function supportMustafa Quraish2022-01-316-38/+192
* Put tokens in their own macro to allow looping over themMustafa Quraish2022-01-304-30/+36
* Update build system to use MakefileMustafa Quraish2022-01-307-73/+75
* Rename `cup` directory to `src`Mustafa Quraish2022-01-3015-1/+1
* Remove return-0 exampleMustafa Quraish2022-01-301-3/+0
* Functions, yay!Mustafa Quraish2022-01-307-19/+259
* Make the compiler / scripts work on Linux too (yay!)Mustafa Quraish2022-01-293-6/+40