Preserve tokens within errors
This commit is contained in:
parent
0c4620f3ab
commit
3d0890eecf
9 changed files with 89 additions and 112 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue