tree-sitter/spec/runtime/languages/arithmetic/errors.txt
Max Brunsfeld a437d39773 Add rule precedence construct
Still need to add some way of expressing left and right
associativity
2014-04-15 08:40:46 -07:00

15 lines
No EOL
423 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 (group (ERROR)) (number))))