Preserve tokens within errors

This commit is contained in:
Max Brunsfeld 2015-06-15 15:24:15 -07:00
parent 0c4620f3ab
commit 3d0890eecf
9 changed files with 89 additions and 112 deletions

View file

@ -6,7 +6,7 @@ x * * y
---
(variable) (ERROR '*')
(variable) (ERROR (UNEXPECTED '*') (variable))
=====================================================
errors inside parenthesized expressions
@ -17,5 +17,6 @@ x + (y * + z) * 5
---
(sum
(variable)
(product (group (ERROR '+')) (number)))
(variable)
(product
(group (ERROR (variable) (UNEXPECTED '+') (variable))) (number)))