Respect expected_conflicts field when building parse table
This commit is contained in:
parent
c9a482bbf3
commit
aabcb10cfb
15 changed files with 5054 additions and 348 deletions
38
spec/runtime/languages/c/declarations.txt
Normal file
38
spec/runtime/languages/c/declarations.txt
Normal 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)))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue