diff options
| author | Mustafa Quraish <[email protected]> | 2022-02-07 03:02:39 -0500 |
|---|---|---|
| committer | Mustafa Quraish <[email protected]> | 2022-02-07 03:18:08 -0500 |
| commit | 3817688851fae07b1d6a13ba2ce1906fc9811f8f (patch) | |
| tree | bb936b224cada39dc7ede856d9f15a4000950526 /run.sh2 | |
| parent | Add missing files to self-hosted directory (diff) | |
| download | cup-3817688851fae07b1d6a13ba2ce1906fc9811f8f.tar.xz cup-3817688851fae07b1d6a13ba2ce1906fc9811f8f.zip | |
[cup] Self-hosting is now possible! Make some tweaks to match C output
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.
Diffstat (limited to 'run.sh2')
| -rwxr-xr-x | run.sh2 | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -12,16 +12,15 @@ then exit 1 fi -set -xe +set -e build/cupcc compiler/main.cup -o build/cup.nasm -make build/cup.out +make build/cup.out -s build/cup.out "$@" -make build/host.out +make build/host.out -s set +e +set -x build/host.out - -echo "Exit status: $?"
\ No newline at end of file |