Respect expected_conflicts field when building parse table

This commit is contained in:
Max Brunsfeld 2015-06-28 16:22:31 -05:00
parent c9a482bbf3
commit aabcb10cfb
15 changed files with 5054 additions and 348 deletions

View file

@ -0,0 +1,38 @@
==========================================
simple declarations
==========================================
int x;
---
(declaration (identifier) (identifier))
==========================================
simple functions
==========================================
int main() {
}
---
(function_definition
(identifier) (direct_declarator (identifier))
(compound_statement))
==========================================
simple declarations in functions
==========================================
int main() {
x + y;
}
---
(function_definition
(identifier)
(direct_declarator (identifier))
(compound_statement
(expression_statement (math_expression (identifier) (identifier)))))