Call handle_error even when error occurs exactly where expected

Previously, if an error happened right at the beginning of an error
production, the error node would be immediately shifted onto the stack
without calling the error handling function.
This commit is contained in:
Max Brunsfeld 2014-08-27 18:41:48 -07:00
parent e0a53b9f14
commit b91f48ced2
2 changed files with 23 additions and 17 deletions

View file

@ -3,7 +3,7 @@ recovers from top-level errors
==========================================
[}
---
(ERROR '}') (ERROR '}')
(ERROR '}')
==========================================
recovers from unexpected tokens