30 lines
713 B
Text
30 lines
713 B
Text
==========================================
|
|
errors in function calls
|
|
==========================================
|
|
|
|
stuff(|||);
|
|
|
|
---
|
|
|
|
(program
|
|
(expression_statement (function_call (identifier) (arguments (ERROR (UNEXPECTED '|'))))))
|
|
|
|
==========================================
|
|
errors in if statements
|
|
==========================================
|
|
|
|
stuff();
|
|
if (*nonsense*) {
|
|
*more-nonsense*;
|
|
}
|
|
moreStuff();
|
|
|
|
---
|
|
|
|
(program
|
|
(expression_statement (function_call (identifier) (arguments)))
|
|
(if_statement
|
|
(ERROR (UNEXPECTED '*') (identifier))
|
|
(statement_block
|
|
(expression_statement (ERROR (UNEXPECTED '*') (identifier) (identifier)))))
|
|
(expression_statement (function_call (identifier) (arguments))))
|