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:
parent
e0a53b9f14
commit
b91f48ced2
2 changed files with 23 additions and 17 deletions
|
|
@ -3,7 +3,7 @@ recovers from top-level errors
|
|||
==========================================
|
||||
[}
|
||||
---
|
||||
(ERROR '}') (ERROR '}')
|
||||
(ERROR '}')
|
||||
|
||||
==========================================
|
||||
recovers from unexpected tokens
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue