2014-03-20 18:15:38 -07:00
|
|
|
=====================================================
|
|
|
|
|
recovers from errors at the top level
|
|
|
|
|
=====================================================
|
|
|
|
|
x * * y
|
|
|
|
|
---
|
|
|
|
|
(ERROR)
|
|
|
|
|
|
|
|
|
|
=====================================================
|
|
|
|
|
recovers from errors inside parenthesized expressions
|
|
|
|
|
=====================================================
|
|
|
|
|
x + (y * + z) * 5
|
|
|
|
|
---
|
|
|
|
|
(expression
|
2014-03-26 00:10:59 -07:00
|
|
|
(variable)
|
2014-03-20 18:15:38 -07:00
|
|
|
(plus)
|
2014-03-26 00:10:59 -07:00
|
|
|
(term (factor (ERROR)) (times) (number)))
|