aboutsummaryrefslogtreecommitdiff
path: root/src/compile.zig
Commit message (Collapse)AuthorAge
* add { blocks } with scoped local variablesMathias Magnusson2025-06-03
|
* remove the need for explicit discard instructionsMathias Magnusson2025-06-02
| | | | | | | by also considering an instruction's destination register(s) to be uses and when cleaning up registers, also cleaning up those from previous instructions (specifically this is the output of the last instruction if it is not used anywhere)
* add read_int built in procedureMathias Magnusson2025-06-02
|
* stop freeing vregs twice when they are used twice in an instrMathias Magnusson2025-06-02
|
* add variable declarationsMathias Magnusson2025-06-02
|
* make print return integer lengthMathias Magnusson2025-06-02
|
* add statements ending in ; and allow parsing multiple of themMathias Magnusson2025-06-02
|
* add identifiers, procedure calls and a built in print procedureMathias Magnusson2025-06-01
|
* add subtractionMathias Magnusson2025-06-01
|
* codegen integer literals correctlyMathias Magnusson2025-05-31
| | | | This was not as easy as one would expect ☠️
* Refactor codegen a bitMathias Magnusson2025-05-31
|
* actually codegen the provided codeMathias Magnusson2025-05-31
| | | | | | ... well, since all we can do is to add integer literals, we produce code for the calculations and then perform the exit syscall with the result
* compile some god damn additionsMathias Magnusson2025-05-29