tree-sitter/spec/runtime/languages/arithmetic/errors.txt
Max Brunsfeld 99817a38c1 Improve trees generated by arithmetic grammar
This work should inform how to implement operator
precedence helper functions
2014-03-29 18:37:51 -07:00

17 lines
No EOL
442 B
Text

=====================================================
recovers from errors at the top level
=====================================================
x * * y
---
(ERROR)
=====================================================
recovers from errors inside parenthesized expressions
=====================================================
x + (y * + z) * 5
---
(expression (sum
(variable)
(product
(grouping (ERROR))
(number))))