[antlr-interest] problem with composite grammars
Terence Parr
parrt at cs.usfca.edu
Tue Mar 10 12:42:43 PDT 2009
On Mar 10, 2009, at 11:23 AM, Maciej Gawinecki wrote:
> Hello,
>
> To overcome the problem ofexceeding code size of generated parser
> class
> I decided to make my SQL grammar more composite: I splitted it into
> lexer, parser and combined grammars, where the latter imports the
> first two:
>
> grammar AnsiSQL;
that defines both a parser and a lexer already, named exactly what you
have next:
T
>
> import AnsiSQLLexer;
> import AnsiSQLParser;
>
> However, I got the following error, which I don't understand:
>
> combined grammar AnsiSQL and imported lexer grammar AnsiSQLLexer
> both
> generate AnsiSQL_AnsiSQLLexer
>
> What could be the reason and how can I solve the problem?
>
> I'm working with ANTLRWork 1.2.3.
>
> Maciej
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest
mailing list