Eclipse 3.2.2.: defaultErrorHandler=true Option
Brought to you by:
tjuerge
Hi,
since I use Eclipse 3.2.2 with grammars that have the option
defaultErrorHandler=true;
or no option
defaultErrorHandler=false;
The generated Parsers don't have the method
recover
which leads to a compile error. I currently circumvent this by deactivation of the ANTLR builder and running an ANT task for it.
Am I doing sth. wrong or is this a bug?
kind regards,
Achim
As far as I can tell it should only work for parsers and tree-parsers (http://www.antlr2.org/doc/options.html#defaultErrorHandler).
In the case of a parser it does work, for lexer it creates code that does not compile.
I believe this to be an ANTLR v2 problem, not a problem in ANTLR for Eclipse