aboutsummaryrefslogtreecommitdiff
Commit message (Expand)AuthorAgeFilesLines
...
* 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
* Add for and while loop support (w/o declarations in `for`)Mustafa Quraish2022-01-297-14/+230
* Implement blocks (lexically scoped) and conditionalsMustafa Quraish2022-01-2910-39/+487
* Add i64{max,min} helper functionsMustafa Quraish2022-01-292-1/+7
* Allow uninitialized variable declarationsMustafa Quraish2022-01-298-37/+88
* Add some tests for local variablesMustafa Quraish2022-01-293-0/+54
* Now supporting local variables! :^)Mustafa Quraish2022-01-296-29/+92
* Restore line/col count in Lexer_peek to get correct locationsMustafa Quraish2022-01-291-0/+4
* Add separator in `die_location()`Mustafa Quraish2022-01-291-0/+1
* Stop tests if compilation failsMustafa Quraish2022-01-291-0/+2
* Add parsing + storing offsets for locals / move around headersMustafa Quraish2022-01-298-24/+114
* Add relational and logical operators + refactor binop parserMustafa Quraish2022-01-296-51/+198