Write parts of generated code directly to objects

This commit is contained in:
2024-03-18 09:55:25 +01:00
parent 27197c7725
commit e7d8f9116a
7 changed files with 246 additions and 189 deletions

4
TODO
View File

@ -7,8 +7,8 @@
- Move constants to the symbol table, so we can check at parse time for duplicates.
- Don't pass raw pointers to the visitor methods.
- While loop.
- If condition.
- Introduce program node which contains global state and functions.
- Comparision operators.
- Procedures.
- Calculate additional stack space needed for subexpressions in the allocator
visitor and not in the backend.
- Support immediates greater than 12 bits.