[antlr-interest] Error in 3.0b4?
Robert Baruch
autophile at zoominternet.net
Sun Oct 22 11:18:38 PDT 2006
Hi all,
Here is a grammar which seems to generate invalid Java code:
grammar TestParser;
@parser::header { package generated; }
@lexer::header { package generated; }
start : r0 EOF;
r0 : (.) * ;
N : 'n';
V : 'v';
Compiling the result gives the following error:
generated/TestParser.java:92: exception
org.antlr.runtime.RecognitionException is never thrown in body of
corresponding try statement
catch (RecognitionException re) {
^
1 error
Again, granted it's a stupid grammar, but it's a valid grammar and
should generate valid code :)
Any chance of a quickfix?
Thanks,
--Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20061022/ac2a362d/attachment.html
More information about the antlr-interest
mailing list