| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
`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
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
We now support OR and AND with short circuiting! (Yet to be tested
since we don't yet have local variables to play with).
The binop parser took a bit of an overhaul factoring out the common
code so that it's easier to describe the operator precendence
relationships without being overly repetitive.
|
| |
|
|
|
| |
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.
|
|
|
Until we have a better way of outputting the data, we're just using
return codes for now. The `test.sh` script creates the compiler,
compiles the selected file into ASM, then assembles and links the
generated output, after which it runs it and shows the exit status.
|