aboutsummaryrefslogtreecommitdiff
path: root/run.sh
Commit message (Collapse)AuthorAgeFilesLines
* [cup] Self-hosting is now possible! Make some tweaks to match C outputMustafa Quraish2022-02-071-5/+5
| | | | | | | | | | | A bit of a chonky commit, but this ports over the remaining (well, almost) everything from the C implementation to the self-hosted compiler. The only things that really remain right now are (1) defer support and (2) support for constants in local scopes. There were used barely enough so for now their uses have been removed, but I'll implement them back later. Not sure how useful (2) is though.
* Add support for read-only constant expressionsMustafa Quraish2022-02-041-1/+1
| | | | | | | We can now have constant definitions that are read-only, evaluated at compile time and just behave like integer literals when accessed. These are nice because we can now potentially inject syscall numbers/ etc through the compiler.
* Push `argc` and `argv` to the `main()` functionMustafa Quraish2022-02-031-1/+1
|
* Update build system to use MakefileMustafa Quraish2022-01-301-5/+12
| | | | | | | | | `make` to compile the compiler `make XXX.out` to assemble/link `XXX.nasm` into an executable `make test` to run all tests `make tests/XXX` to run `tests/XXX.sh` test file `./run.sh <cupcc args>` to build, compile, run and show exit code
* Scripts: Reorganize a bit, add some rudimentary shell-testingMustafa Quraish2022-01-281-0/+18
Just to make sure we don't break stuff. We'll probably want better unit tests specifically for each part once we're more stable.