How do I get Bison to stop on error in the input file?
I tried using the 'error' action but it doesn't seem to help.
The parser processes the entire input file even after it hits an error.
rules:
rules rule
| rules error { declaration_context = false; YYABORT; }
| rule
;