tree-sitter/spec/runtime/languages/arithmetic/errors.txt

17 lines
442 B
Text
Raw Normal View History

=====================================================
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))))