[antlr-interest] Token classes
John Green
greenj at ix.netcom.com
Mon Oct 15 18:35:30 PDT 2001
Clever... I hadn't thought of that.
Yes, it will certainly take care of the compiler's problem.
Thanks!
John
> -----Original Message-----
> From: Terence Parr [mailto:parrt at jguru.com]
> Sent: Tuesday, October 16, 2001 3:26 AM
> To: antlr-interest at yahoogroups.com
> Subject: Re: [antlr-interest] Token classes
>
>
>
> 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/
>
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list