| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [cup] Self-hosting is now possible! Make some tweaks to match C output | Mustafa Quraish | 2022-02-07 | 1 | -12/+69 |
| | | | | | | | | | | | | 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. | ||||
| * | [cup] Add ability to import files | Mustafa Quraish | 2022-02-07 | 1 | -10/+1 |
| | | |||||
| * | [cup] Add support for builtin functions, add `print()` | Mustafa Quraish | 2022-02-05 | 1 | -1/+3 |
| | | |||||
| * | Add implementation of self-hosted compiler so far | Mustafa Quraish | 2022-02-05 | 1 | -0/+34 |
| There's also a `run.sh2` script which does the following: - Compiles the C compiler `build/cupcc` - Compiles the self-hosted compiler `build/cup.out` (with `cupcc`) - Compiles the specified file on CLI with `build/cup.out` - Runs this exectuable and shows the output | |||||