Jonny
|
6f5fcd4d85
|
refactor: redesigned runtime errors with added functionality
|
2025-02-27 21:48:28 +00:00 |
|
|
|
c31dd9de25
|
style: scala format
|
2025-02-27 20:00:07 +00:00 |
|
|
|
edce236158
|
fix: read space-delimited tokens (as per spec)
|
2025-02-27 19:58:57 +00:00 |
|
Guy C
|
9e6970de62
|
feat: implements overflow runtime error handling
|
2025-02-27 19:55:35 +00:00 |
|
|
|
cb4f899b8c
|
test: provide stdin as space-delimited tokens
|
2025-02-27 19:50:46 +00:00 |
|
|
|
a20f28977b
|
fix: handle runtime_error during testing
|
2025-02-27 19:47:33 +00:00 |
|
|
|
9a1728fb3f
|
fix: exit from Main with exit code rather than voiding
|
2025-02-27 19:39:48 +00:00 |
|
Guy C
|
ea262e9a56
|
feat: implements divByZero and badChr runtime errors
|
2025-02-27 19:35:50 +00:00 |
|
Jonny
|
332c00b15b
|
feat: added runtime errors class and object
|
2025-02-27 19:13:17 +00:00 |
|
|
|
9b9f0a80cb
|
feat: x86 code generation implementation without runtime checking
Merge request lab2425_spring/WACC_37!29
Co-authored-by: Alex Ling <al4423@ic.ac.uk>
Co-authored-by: Jonny <j.sinteix@gmail.com>
Co-authored-by: Guy C <gc1523@ic.ac.uk>
Co-authored-by: Barf-Vader <47476490+Barf-Vader@users.noreply.github.com>
Co-authored-by: Ling, Alex <alex.ling23@imperial.ac.uk>
|
2025-02-27 18:54:54 +00:00 |
|
|
|
ada53e518b
|
fix: variable-sized values, heap-allocated arrays (and printCharArray)
Merge request lab2425_spring/WACC_37!28
Co-authored-by: Alex Ling <al4423@ic.ac.uk>
|
2025-02-27 18:50:11 +00:00 |
|
|
|
c0f2473db1
|
test: fix input handling for IOLoop example
|
2025-02-27 18:25:12 +00:00 |
|
|
|
c472c7a62c
|
fix: reserve return pointer and RBP on stack for user func bodies
|
2025-02-27 18:15:48 +00:00 |
|
|
|
507cb7dd9b
|
fix: zero-out sub-32 bit expressions
|
2025-02-27 18:15:48 +00:00 |
|
|
|
887b982331
|
fix: variable-sized values, heap-allocated arrays (and printCharArray)
|
2025-02-27 18:15:48 +00:00 |
|
|
|
58df1d7bb9
|
refactor: extract Stack, proper register naming and sizes
|
2025-02-27 18:15:48 +00:00 |
|
Alex Ling
|
808a59f58a
|
feat: almost implemented arrays
|
2025-02-27 18:15:48 +00:00 |
|
Jonny
|
bdee6ba756
|
feat: zero registers via xor
|
2025-02-27 15:48:48 +00:00 |
|
|
|
09df7af2ab
|
fix: reset scope after all branching
|
2025-02-26 20:25:27 +00:00 |
|
|
|
2cf18a47a8
|
fix: only push one item to stack on comparisons
|
2025-02-26 20:00:50 +00:00 |
|
Jonny
|
631f9ddca5
|
feat: (maybe) tail call optimisation
|
2025-02-26 19:49:10 +00:00 |
|
|
|
4fb399a5e1
|
feat: generate microWacc for printing booleans
|
2025-02-26 19:14:12 +00:00 |
|
|
|
16de964f74
|
refactor: do not append epilogue to user functions since they all return anyway
|
2025-02-26 18:45:03 +00:00 |
|
|
|
c748a34e4c
|
feat: user functions and calls
|
2025-02-26 18:31:15 +00:00 |
|
|
|
85190ce174
|
refactor: make microWacc.ArrayElem recursive rather than flat
|
2025-02-26 18:08:30 +00:00 |
|
Alex Ling
|
62df2c2244
|
fix: added dword in sizedir
|
2025-02-26 16:58:01 +00:00 |
|
Guy C
|
fb91dc89ee
|
Merge branch 'branch-fix' into asm-gen
|
2025-02-26 07:21:26 +00:00 |
|
Guy C
|
07c67dbef6
|
feat: add zero division error handling in asmGenerator
|
2025-02-26 07:14:52 +00:00 |
|
|
|
39f88f6f8a
|
test: disable parallel test execution to avoid race conditions
|
2025-02-26 03:31:11 +00:00 |
|
Guy C
|
fc2c58002e
|
test: include variables tests in suite
|
2025-02-26 02:00:28 +00:00 |
|
Guy C
|
f15530149e
|
fix: fix sub instruction code gen
|
2025-02-26 01:43:12 +00:00 |
|
Guy C
|
9ca50540e6
|
fix: fixed implementation of if statement code gen
|
2025-02-26 01:10:14 +00:00 |
|
Jonny
|
f76b7a9dc2
|
refactor: replace explicit loops and flatMap with foldMap
|
2025-02-25 22:46:48 +00:00 |
|
|
|
da0ef9ec24
|
ci: checkout commitlint back to current commit
|
2025-02-25 22:03:53 +00:00 |
|
|
|
64b015e494
|
ci: use JS commitlint configuration
|
2025-02-25 21:49:23 +00:00 |
|
Guy C
|
c9723f9359
|
feat: implements sign extension operation for division
|
2025-02-25 21:37:18 +00:00 |
|
|
|
70e023f27a
|
Local Mutable Chains
Merge request lab2425_spring/WACC_37!27
Co-authored-by: Jonny <j.sinteix@gmail.com>
|
2025-02-25 21:13:46 +00:00 |
|
|
|
11c483439c
|
fix: generate strDirs after prog, change += to +
|
2025-02-25 21:05:21 +00:00 |
|
Jonny
|
ebc65af981
|
feat: extension method concatAll defined on Chain implemented
|
2025-02-25 21:03:44 +00:00 |
|
Jonny
|
bd0eb76bec
|
fix: alignment issue with stack in read
|
2025-02-25 21:02:59 +00:00 |
|
Jonny
|
edbc03ee25
|
feat: used local mutable Chains. Also implemented new LabelGenerator
|
2025-02-25 21:02:57 +00:00 |
|
Jonny
|
7953790f4d
|
feat: used Chains instead of Lists
|
2025-02-25 21:01:02 +00:00 |
|
Alex Ling
|
7fd92b4212
|
refactor: passed exit and read tests
|
2025-02-25 18:25:34 +00:00 |
|
Alex Ling
|
87a239f37c
|
fix: alignment issue with stack in read
|
2025-02-25 18:20:50 +00:00 |
|
|
|
4f3596b48a
|
ci: fix check commits
|
2025-02-25 17:35:04 +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 |
|
|
|
8558733719
|
style: scala format lexer
|
2025-02-25 16:33:17 +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 |
|