[antlr-interest] [3.0b4] superClass package?

Terence Parr parrt at cs.usfca.edu
Sun Oct 22 19:32:12 PDT 2006


use "..."
Ter
On Oct 22, 2006, at 3:43 PM, Robert Baruch wrote:

> 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
>



More information about the antlr-interest mailing list