Commit Graph

301 Commits

Author SHA1 Message Date
00df2dc546 feat: filenames in errors 2025-03-13 15:03:26 +00:00
67e85688b2 refactor: fMap to replace fOption, fList and fNonEmptyList 2025-03-13 14:03:53 +00:00
0497dd34a0 fix: use GOps to avoid scala error 2025-03-13 13:37:17 +00:00
6904aa37e4 style: scala format 2025-03-13 13:31:47 +00:00
5141a2369f fix: convert parser to use FParsley 2025-03-13 13:26:35 +00:00
3fff9d3825 feat: file parser bridges 2025-03-13 13:26:19 +00:00
f11fb9f881 test: integration tests for imports 2025-03-13 09:43:29 +00:00
e881b736f8 feat: imports parser 2025-03-13 08:18:44 +00:00
905a5e5b61 feat: parallelised compilation
Merge request lab2425_spring/WACC_37!39

Co-authored-by: Jonny <j.sinteix@gmail.com>
2025-03-13 01:08:58 +00:00
0d8be53ae4 fix: set output to . for labts compiler 2025-03-12 23:34:39 +00:00
96ba81e24a refactor: consistent error handling in Main.scala 2025-03-09 23:37:04 +00:00
Jonny
94ee489faf feat: greedy cli argument implemented, parallel compilation now by default, but no fail fast behaviour 2025-03-03 02:58:04 +00:00
Jonny
f24aecffa3 fix: remove implicit val causing conflicts with parsing cli arguments 2025-03-03 02:10:18 +00:00
f896cbb0dd fix: add opSize back in to stack
Merge request lab2425_spring/WACC_37!38
2025-03-02 14:10:18 +00:00
Jonny
19e7ce4c11 fix: fix output flag not reading path passed in 2025-03-02 06:20:19 +00:00
Jonny
473189342b refactor: remove commented out code in main.scala 2025-03-02 03:49:21 +00:00
Jonny
f66f1ab3ac refactor: compile function split up into smaller functions 2025-03-02 03:48:37 +00:00
Jonny
abb43b560d refactor: improve resource safety and structure of writer 2025-03-02 03:26:28 +00:00
Jonny
9a5ccea1f6 style: fix formatting 2025-03-02 03:14:58 +00:00
Jonny
85a82aabb4 feat: add option flag, greedy compilation of multiple files, and refactor to use paths instead of files 2025-03-02 03:12:53 +00:00
1b6d81dfca style: scala format 2025-03-01 02:15:01 +00:00
ae52fa653c fix: add opSize back in to stack 2025-03-01 02:07:45 +00:00
Jonny
01b38b1445 fix: fix incorrect semantic error logging by refactoring error.scala from frontend 2025-03-01 01:34:05 +00:00
Jonny
667fbf4949 feat: introduction of logger to eliminate printstreams 2025-03-01 01:19:50 +00:00
Jonny
d214723f35 feat: parallelise compilation of multiple files given to cli 2025-02-28 19:36:22 +00:00
3b723392a7 fix: do not overwrite RDI in free WACC_Back-End 2025-02-28 18:47:36 +00:00
9a0d3e38a4 refactor: merge MemLocation with IndexedAddress
Merge request lab2425_spring/WACC_37!37
2025-02-28 18:44:48 +00:00
37812fb5a7 fix: copy whole register on assignment 2025-02-28 18:41:31 +00:00
578a28a222 Revert "fix: zero-out D32 as well"
This reverts commit 0eaf2186b6.
2025-02-28 18:28:50 +00:00
Jonny
d56be9249a refactor: introduce decline to integrate command-line parsing with cats-effect 2025-02-28 18:00:18 +00:00
0eaf2186b6 fix: zero-out D32 as well 2025-02-28 17:51:06 +00:00
5ae65d3190 fix: sanity check 2025-02-28 17:22:49 +00:00
68903f5b69 refactor: use explicit sizes in asmGenerator 2025-02-28 17:21:45 +00:00
e1d90eabf9 fix: use MemLocation.copy for zeroRest 2025-02-28 16:40:58 +00:00
1a39950a7b refactor: merge MemLocation with IndexedAddress 2025-02-28 16:26:40 +00:00
Jonny
1a72decf55 feat: remove unsaferunsync and integrate io in tests instead 2025-02-28 16:24:53 +00:00
Jonny
e54e5ce151 refactor: style fixes and fold combinator used instead of explicit pattern match 2025-02-28 15:50:53 +00:00
61643a49eb refactor: merge comments and extracting constants & renaming refactors
Merge request lab2425_spring/WACC_37!36

Co-authored-by: Jonny <j.sinteix@gmail.com>
Co-authored-by: Guy C <gc1523@ic.ac.uk>
2025-02-28 15:32:46 +00:00
82997a5a38 docs: clarify evalExprOntoStack sanity check, explanation comments for generateCall 2025-02-28 15:29:41 +00:00
Jonny
cf1028454d fix: fix frontend tests failing due to expecting error codes instead of runtime exceptions 2025-02-28 15:20:32 +00:00
Jonny
345c652a57 feat: introduce cats-effect and io 2025-02-28 15:18:24 +00:00
720d9320e2 Merge branch 'master' into comments-and-refactors 2025-02-28 15:14:47 +00:00
c3f2ce8b19 refactor: single definition for common registers 2025-02-28 14:47:47 +00:00
Teixeira, Jonny
cf72c5250d refactor: merge labelGenerator refactors
Merge request lab2425_spring/WACC_37!35

Co-authored-by: Gleb Koval <gleb@koval.net>
2025-02-28 14:28:32 +00:00
7627ec14d2 refactor: return args and defs from labelGenerator, instead of strings 2025-02-28 14:23:09 +00:00
Jonny
d0a71c1888 docs: add doc for concatall chain extension 2025-02-28 14:07:50 +00:00
fb5799dbfd refactor: use LabelGenerator for RuntimeErrors 2025-02-28 14:07:00 +00:00
Jonny
621849dfa4 refactor: rename local builder chain to asm 2025-02-28 13:55:02 +00:00
967a6fe58b refactor: replace strings ListBuffer with labelGenerator 2025-02-28 13:14:29 +00:00
Guy C
302099ab76 refactor: removes magic numbers in asmgenerator 2025-02-28 12:23:09 +00:00