[antlr-interest] [3.0b4] superClass package?
Robert Baruch
autophile at zoominternet.net
Sun Oct 22 15:43:15 PDT 2006
Hi all,
How do I set the superclass of a parser where the superclass is in a
different package from the parser? I tried this:
grammar TestParser;
options { superClass = grammatotron.GeneratedParser; }
@parser::header { package generated; }
@lexer::header { package generated; }
start : r0 EOF;
r0 : ;
N : 'n';
V : 'v';
But that generates this error:
2:36: syntax error: antlr: generated.g:2:36: expecting SEMI, found '.'
2:52: syntax error: antlr: generated.g:2:52: unexpected token: ;
Any help appreciated!
Thanks,
--Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20061022/418b8890/attachment.html
More information about the antlr-interest
mailing list