From: Siraaj Khandkar Date: Mon, 17 Sep 2018 14:07:26 +0000 (-0400) Subject: Complete semantic analysis X-Git-Url: https://git.xandkar.net/?p=tiger.ml.git;a=commitdiff_plain;h=3206cc891aacf41c6bc6c00ecb2b85b3a0a2b72a Complete semantic analysis --- diff --git a/README.md b/README.md index e3ecf59..571377a 100644 --- a/README.md +++ b/README.md @@ -5,19 +5,9 @@ A Tiger-compiler implementation in (OCa)ML Status ------ -### Technical issues -- [-] testing framework - - [x] run arbitrary code snippets - - [x] check non-failures - - [x] check expected output - - [-] check expected exceptions - - [x] semant stage - - [ ] generalized expect `Output ('a option) | Exception of (exn -> bool)` - - [x] run all book test case files - - [-] grid view (cols: lex, pars, semant, etc.; rows: test cases.) - - [x] implementation - - [ ] refactoring -- [ ] Travis CI +![screenshot-tests-semant-done-head](screenshots/tests-semant-done-head.jpg) +... +![screenshot-tests-semant-done-tail](screenshots/tests-semant-done-tail.jpg) ### Features #### Done @@ -25,10 +15,10 @@ Status - [x] ch 2: Lexer - [x] ch 3: Parser - [x] ch 4: AST +- [x] ch 5: Semantic Analysis (type checking) #### In-progress -- [-] ch 5: Semantic Analysis (type checking) -#### TODO (short-term) - [ ] ch 6: Activation Records +#### TODO (short-term) - [ ] ch 7: Translation to Intermediate Code - [ ] ch 08: Basic Blocks and Traces - [ ] ch 09: Instruction Selection @@ -47,6 +37,20 @@ Status #### Maybe - [ ] ch 14: Object-Oriented Languages +### Technical issues +- [-] testing framework + - [x] run arbitrary code snippets + - [x] check non-failures + - [x] check expected output + - [-] check expected exceptions + - [x] semant stage + - [ ] generalized expect `Output ('a option) | Exception of (exn -> bool)` + - [x] run all book test case files + - [-] grid view (cols: lex, pars, semant, etc.; rows: test cases.) + - [x] implementation + - [ ] refactoring +- [ ] Travis CI + Implementation Notes -------------------- diff --git a/screenshots/tests-semant-done-head.jpg b/screenshots/tests-semant-done-head.jpg new file mode 100644 index 0000000..5b1671c Binary files /dev/null and b/screenshots/tests-semant-done-head.jpg differ diff --git a/screenshots/tests-semant-done-tail.jpg b/screenshots/tests-semant-done-tail.jpg new file mode 100644 index 0000000..cdc2060 Binary files /dev/null and b/screenshots/tests-semant-done-tail.jpg differ