[antlr-interest] Token classes

Terence Parr parrt at jguru.com
Mon Oct 15 10:26:07 PDT 2001


On Friday, October 12, 2001, at 10:37  PM, John Green wrote:

> The problem: a parser rule, which is nothing but a giant list of 100+
> keywords (don't ask), generates a function so huge that C++ can't 
> compile
> it.

Yeah, I can't really remember implementing it for ANTLR.  Pretty useful 
stuff.  Sorry about that.  You can break up your rule in the meantime 
like a chain:

a : T1 | T2 | T3 | b ;

b : T4 | T5 | T6 | c ;

c : T7 ;

...

Will that help the compiler?

Ter


 

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



More information about the antlr-interest mailing list