Commit graph

5775 commits

Author SHA1 Message Date
Max Brunsfeld
70aa4c2b2d Add a --no-minimize flag to suppress table minimization for debugging 2019-01-04 09:11:44 -08:00
Max Brunsfeld
bf9556dadc Fix recursive processing of rule inlining 2019-01-03 17:12:09 -08:00
Max Brunsfeld
5d3d161c05 Respect simple aliases in code gen 2019-01-03 14:08:24 -08:00
Max Brunsfeld
5a7d781aaa Fix logic for identifying error recovery tokens 2019-01-03 13:49:50 -08:00
Max Brunsfeld
70f00d1a1e Give immediate tokens higher implicit precedence than other tokens 2019-01-03 13:49:37 -08:00
Max Brunsfeld
c0f48dff6f Fix incorrect NFA generation for string rules 2019-01-03 11:52:57 -08:00
Max Brunsfeld
02ca84fb4a Add missing ';' in generated code 2019-01-03 11:52:45 -08:00
Max Brunsfeld
82fda8929e Add EOF actions to lex table 2019-01-03 11:50:35 -08:00
Max Brunsfeld
92d4fe419c Fix character set intersection bugs 2019-01-03 10:30:59 -08:00
Max Brunsfeld
3fbaff5e69 Fix various logic errors in parse table construction 2019-01-02 16:48:44 -08:00
Max Brunsfeld
9824ebbbc3 Implement lex table construction 2019-01-02 16:14:36 -08:00
Max Brunsfeld
a46b8fcb46 Implement parse state merging 2019-01-01 13:47:29 -08:00
Max Brunsfeld
c6b9e97c58 Implement token conflict map 2018-12-30 19:31:55 -08:00
Max Brunsfeld
605b50e58b Start work on shrinking parse table 2018-12-29 13:57:34 -08:00
Max Brunsfeld
479400e5d3 Add handling of precedence within tokens 2018-12-29 13:56:00 -08:00
Max Brunsfeld
5258ee2e6a Implement more C code generation 2018-12-23 14:19:18 -08:00
Max Brunsfeld
99ecf29e4b Fix typo causing infinite recursion in expand_regex 2018-12-23 10:15:23 -08:00
Max Brunsfeld
261a7fd073 Represent ParseItem with reference to Production
Implement comparisons in a way that disregards past steps.
2018-12-21 15:02:48 -08:00
Max Brunsfeld
a3dcfa0a52 Implement more of parse table generation 2018-12-20 13:36:39 -08:00
Max Brunsfeld
5eb8806959 Handle repetition ranges in regexes 2018-12-20 13:36:21 -08:00
Max Brunsfeld
988dc7de35 Handle precedence and aliases properly when inlining variables 2018-12-20 13:35:34 -08:00
Max Brunsfeld
d078c263b0 Fix bugs in grammar JSON parsing 2018-12-20 13:35:13 -08:00
Max Brunsfeld
143588c148 Implement ItemSetBuilder 2018-12-18 17:31:54 -08:00
Max Brunsfeld
889f232b4c Implement variable inlining 2018-12-18 16:05:36 -08:00
Max Brunsfeld
7bd9eaa970 0.3.5 2018-12-13 16:43:44 -08:00
Max Brunsfeld
d79203f58c Add test script 2018-12-13 16:42:46 -08:00
Max Brunsfeld
3f1fc65a27 Auto-format lib.rs 2018-12-13 16:32:22 -08:00
Max Brunsfeld
6d3835d292 Add Node::children method 2018-12-13 16:32:10 -08:00
Max Brunsfeld
bdd3f20522 Add PropertySheet::map method 2018-12-13 16:30:40 -08:00
Max Brunsfeld
4a361fbb3f Implement Copy for Node 2018-12-13 10:08:50 -08:00
Max Brunsfeld
494329c93b Add Parser.set_included_ranges and Node.range 2018-12-13 10:08:25 -08:00
Max Brunsfeld
5fa586f7c9 Format expand_tokens file 2018-12-12 21:01:41 -08:00
Max Brunsfeld
842421633c Fix bugs in nfa generation 2018-12-12 20:58:26 -08:00
Max Brunsfeld
0103a83f3f Integrate separator rules into lexer nfa 2018-12-12 18:04:29 -08:00
Max Brunsfeld
40d24097ec Implement extract_simple_aliases 2018-12-12 16:41:32 -08:00
Max Brunsfeld
fd39568823 Apply msvs platform fix for both compiler and runtime targets 2018-12-12 15:57:11 -08:00
Max Brunsfeld
85347541f1 Allow PropertySheet selectors to match the root node
Co-Authored-By: Timothy Clem <timothy.clem@gmail.com>
2018-12-11 17:30:12 -08:00
Max Brunsfeld
4055a29aa9 Fix handling of quotes and backslashes in property sheet values 2018-12-11 13:48:28 -08:00
Max Brunsfeld
7acfb2b74e Implement flatten_grammar 2018-12-11 12:14:34 -08:00
Max Brunsfeld
ba9da0a9b4 0.3.4 2018-12-11 10:35:03 -08:00
Max Brunsfeld
b0a7c854a4 Avoid redundant regex complication when instantiating PropertySheets 2018-12-10 14:57:46 -08:00
Max Brunsfeld
d482894c7d Implement expand_tokens 2018-12-08 23:35:48 -08:00
Max Brunsfeld
ead6ca1738 Generate NFAs from regexes 2018-12-08 13:44:11 -08:00
Max Brunsfeld
e343c83446 Include cassert 2018-12-07 13:09:07 -08:00
Max Brunsfeld
940e5d8fbe Fix mapping of repeat rules to their parent in conflict resolution
Co-Authored-By: Josh Vera <vera@github.com>
2018-12-07 12:44:51 -08:00
Max Brunsfeld
0688a5edd3 Implement extract_tokens 2018-12-06 22:11:52 -08:00
Max Brunsfeld
a4c4b85a16 Initial commit 2018-12-05 16:19:21 -08:00
Max Brunsfeld
beb60194d1 0.3.3 2018-12-03 14:42:25 -08:00
Max Brunsfeld
fbb220f193 Add test for regexes in property sheets 2018-12-03 10:43:58 -08:00
Max Brunsfeld
741fb3c5a1 Fix test now that JSON grammar has slightly changed 2018-12-01 21:26:34 -08:00