18 Commits

Author SHA1 Message Date
Alex Ling
87a239f37c fix: alignment issue with stack in read 2025-02-25 18:20:50 +00:00
efe9f91303
refactor: use non-singleton labelgenerator (instead use class) 2025-02-25 17:10:56 +00:00
5f8b87221c
fix: escape characters within assembly 2025-02-25 17:07:21 +00:00
f628d16d3d
fix: always push a value onto stack on expr evaluation 2025-02-25 16:27:47 +00:00
Alex Ling
3f76a2c5bf refactor: extract stack into seperate class 2025-02-25 04:44:08 +00:00
Alex Ling
8ed94e4df3 fix: initial exprs on stack 2025-02-25 03:17:05 +00:00
Guy C
58d280462e feat: enhance asmGenerator with additional registers and improve function call generation
Co-authored-by: Barf-Vader <Barf-Vader@users.noreply.github.com>
Co-authored-by: Gleb Koval
2025-02-25 02:02:57 +00:00
Guy C
f30cf42c4b style: improve code formatting and consistency in typeChecker and assemblyIR 2025-02-25 00:05:10 +00:00
Guy C
1488281223 feat: implements binary operators in asmGenerator
Co-authored-by: Gleb Koval <gleb@koval.net>
Co-authored-by: Barf-Vader <Barf-Vader@users.noreply.github.com>
2025-02-25 00:00:12 +00:00
Guy C
668d7338ae feat: move default return out of functionEpilogue into main def 2025-02-24 19:47:06 +00:00
Guy C
9d78caf6d9 feat: add support for return statements in asmGenerator 2025-02-24 18:57:13 +00:00
Guy C
909114bdce feat: implement basic while loop generation in asmGenerator 2025-02-24 04:47:21 +00:00
Guy C
2bed722a4f style: improve code formatting and readability in asmGenerator 2025-02-24 02:04:21 +00:00
Guy C
dc61b1e390 feat: implement label generation and basic conditional branching in asmGenerator 2025-02-24 02:00:35 +00:00
Guy C
1255a2e74c feat: add initialization of AX register in function prologue 2025-02-22 22:53:17 +00:00
Alex Ling
24dddcadab feat: almost complete clib calls 2025-02-22 21:38:12 +00:00
Barf-Vader
ee4109e9cd style: fix style 2025-02-21 23:00:59 +00:00
Barf-Vader
02e741c52e feat: implemented println and exit 2025-02-21 22:53:20 +00:00