I've been reading the manuals about using the error symbol, yyerrok, etc.. My concern is how to add error rules to the parser without overdoing it or not adding enough.
Are there any general guidelines I should follow, considering I'll be parsing a simplified Java program? Should every rule contain some error detection/recovery? Is there a simplest approach which proves to be proficient at performing these tasks? I'm only looking for syntax errors at the moment.
Thanks for any/all answers in advance.