Commit Graph
42 Commits
Author SHA1 Message Date
bill cfc8120c78 Finished 2021-05-07 19:55:23 +08:00
bill b8781807fd modified function call sp = fp - (sp_off + n_args + 1)*wordSize 2021-05-06 15:12:04 +08:00
bill 273ee2a092 fixed sp_off initial value 2021-05-06 11:59:41 +08:00
bill 3530c83c5f fixed ifexpr, binexpr, strindex etc 2021-05-06 10:31:56 +08:00
bill 0fc854fdb0 Fixed all object/class/method/attr related errors 2021-05-06 08:53:56 +08:00
bill 4d6e6fdede Merge branch 'sanjar/functions' of https://github.com/nyu-compiler-construction/pa3-chocopy-code-generation-mjolnir into bill/misc 2021-05-05 15:37:58 +08:00
bill 42518d6547 modified: src/main/java/chocopy/pa3/CodeGenImpl.java 2021-05-05 15:37:50 +08:00
bill 090a658876 Merge branch 'bill/misc' of https://github.com/nyu-compiler-construction/pa3-chocopy-code-generation-mjolnir into bill/misc 2021-05-04 22:17:14 +08:00
bill d7ae4fc9ed modified: src/main/java/chocopy/pa3/CodeGenImpl.java 2021-05-04 22:16:58 +08:00
bill b32942a1c2 Merge remote-tracking branch 'origin/master' into bill/misc 2021-05-03 17:38:53 +08:00
bill 2a8b66cb94 deleted: .vscode/launch.json 2021-05-03 17:37:21 +08:00
bill 3b92cea6c2 update 2021-05-03 17:35:33 +08:00
bill a7e34238a2 Merge branch 'sanjar/functions' of https://github.com/nyu-compiler-construction/pa3-chocopy-code-generation-mjolnir into bill/misc 2021-05-03 15:23:48 +08:00
bill efc8ab2024 Merge branch 'bill/merge-cond-cls' of https://github.com/nyu-compiler-construction/pa3-chocopy-code-generation-mjolnir into sanjar/functions 2021-05-03 15:22:40 +08:00
bill a86d93fcac Index Expr, register pool, changed incSp 2021-05-03 15:22:05 +08:00
bill ade63910b8 Merge branch 'bill/merge-cond-cls' of https://github.com/nyu-compiler-construction/pa3-chocopy-code-generation-mjolnir into bill/merge-cond-cls 2021-05-02 21:19:57 +08:00
bill df398e608a Added more default functions 2021-05-02 21:18:30 +08:00
bill b8600746cf cleanup imports 2021-05-02 16:36:50 +08:00
bill ef744ebcfa merge remote-tracking branch 'origin/sanjar/functions' into bill/merge-cond-cls 2021-05-02 16:34:25 +08:00
bill aed2114af0 Merge branch 'bill/class' into apoorva/conditional 2021-04-30 22:44:19 +08:00
bill e19717a180 bug fixes 2021-04-30 17:22:51 +08:00
bill 9786fbbc69 Classes/Objects/Methods 2021-04-30 16:45:30 +08:00
bill f2aed13f69 finished 2021-04-03 14:03:16 +08:00
bill c86e536fe3 Final bug fixes.
Worklog.
Added test diff.py demonstrating the differences between the reference compiler.
2021-04-03 02:54:25 +08:00
bill 8cbc495c57 Type Checker finished
Bug fixes (passed 59/59 tests)
2021-03-22 06:24:16 +08:00
bill 1efee5e539 Fixed precedence on '-'. Passed additional tests. Comments on bad.py. Updated worklog. 2021-03-01 17:54:09 +08:00
bill 609903851d Bug fixes:
Catching Indentation Errors.
	A typo on regex of Identifiers
	Potential fixes on allowing function body with only definations. (not applied)
TODO:
	Allowing a program to have interleaving definations and statements?
2021-02-22 16:42:06 +08:00
bill ca13d4c461 Fixed failure on test bad_indentation.py 2021-02-21 17:55:07 +08:00
bill b2536564bc Cleanup 2021-02-20 23:24:11 +08:00
bill ab6c72e690 Simple fixes for the errors. 2021-02-20 21:42:01 +08:00
bill fbc6ae9dcf Merge branch 'sahmadov/cup' of https://github.com/nyu-compiler-construction/pa1-chocopy-parser-mjolnir into bill/merge-flex-cup 2021-02-20 21:37:49 +08:00
bill c5c9bb2f0d Changes made on Flex to adapt for merging. 2021-02-20 19:46:30 +08:00
bill 27b46f386d Lexer will pass the original tokens even if it can be inferred to match the type of terminal defined in .cup file. 2021-02-20 04:04:06 +08:00
bill 2ab3fddc66 Bug fixed:
unreachable code;
	symbol(value) not implemented.
2021-02-18 20:38:43 +08:00
bill ecb8d23418 bug fixes 2021-02-18 00:36:30 +08:00
bill d5097498b7 more comments 2021-02-18 00:27:21 +08:00
bill 62330bd237 Fixed some typos, added comments. 2021-02-18 00:07:18 +08:00
bill 42628a34f7 Revert "initial works on the lexer"
This reverts commit 997178ba9c.
2021-02-17 23:16:20 +08:00
bill 7409d7e19f Revert "Deal w/ multi-line String Literals."
This reverts commit b6f7943d48.
2021-02-17 23:14:46 +08:00
bill b6f7943d48 Deal w/ multi-line String Literals. 2021-02-17 21:22:28 +08:00
bill 03c393beff Changed how we deal w/ StringLiterals across multiple lines 2021-02-17 21:14:23 +08:00
bill 997178ba9c initial works on the lexer 2021-02-17 20:45:38 +08:00