aboutsummaryrefslogtreecommitdiff
path: root/compiler/test_util_test.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use new parser and DFA compilerRyo Nihei2021-12-101-21/+0
|
* Change APIsRyo Nihei2021-08-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | Change fields of tokens, results of lexical analysis, as follows: - Rename: mode -> mode_id - Rename: kind_id -> mode_kind_id - Add: kind_id The kind ID is unique across all modes, but the mode kind ID is unique only within a mode. Change fields of a transition table as follows: - Rename: initial_mode -> initial_mode_id - Rename: modes -> mode_names - Rename: kinds -> kind_names - Rename: specs[].kinds -> specs[].kind_names - Rename: specs[].dfa.initial_state -> specs[].dfa.initial_state_id Change public types defined in the spec package as follows: - Rename: LexModeNum -> LexModeID - Rename: LexKind -> LexKindName - Add: LexKindID - Add: StateID
* Fix grammar the parser acceptsRyo Nihei2021-04-111-0/+6
| | | | | * Add cases test the parse method. * Fix the parser to pass the cases.
* RefactoringRyo Nihei2021-02-251-0/+13
* Remove token field from symbolNode * Simplify notation of nested nodes * Simplify arguments of newSymbolNode()