[antlr-interest] Antlr 2.7.2a2 and NetBeans

Sinan sinan.karasu at boeing.com
Wed Mar 13 10:51:45 PST 2002


 One tiny itty bitty problem..

 a derived grammar with no rules (just overridden methods) causes

------------------

java antlr.Tool -glib ~/Antlr/antlr/antlr.g antlrSyntax.g
ANTLR Parser Generator   Version 2.7.2a2 (20020112-1)   1989-2002
jGuru.com
antlrSyntax.g:243:2: unexpected token: null


------------------

granted int this case one could write a hand-written java class,
but just to be future compatible.....


-----example --xxx.g-----------------------------------
class ANTLRSyntaxParser extends ANTLRParser;
--------------------------------------------

does not work....

-----example --xxx.g-----------------------------------
class ANTLRSyntaxParser extends ANTLRParser;
dummy:;
--------------------------------------------

does.

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list