A
Aaron Patterson
Hi everyone,
I'm writing a racc parser, and I need to recover from parse errors.
Basically I'm writing a CSS parser, and I need to handle poorly
formatted CSS.
Unfortunately I can't seem to find any good documentation or examples on
error recovery. I've read the Racc documentation about on_error and
entering "error recovering mode", as well as calling yyerrok to leave
error recovering mode, but I don't know what that actually means.
I've also discovered the "error" rule, but I don't want to explicitly
add that rule to every rule that could possibly have an error.
Any tips would be greatly appreciated. Thanks!
I'm writing a racc parser, and I need to recover from parse errors.
Basically I'm writing a CSS parser, and I need to handle poorly
formatted CSS.
Unfortunately I can't seem to find any good documentation or examples on
error recovery. I've read the Racc documentation about on_error and
entering "error recovering mode", as well as calling yyerrok to leave
error recovering mode, but I don't know what that actually means.
I've also discovered the "error" rule, but I don't want to explicitly
add that rule to every rule that could possibly have an error.
Any tips would be greatly appreciated. Thanks!