[antlr-interest] Bug in Antlr - confusion on ANTLR grammar syntax???

Nigel Sheridan-Smith nbsherid at secsme.org.au
Thu Dec 9 13:15:40 PST 2004




> -----Original Message-----
> From: Sebastian Kaliszewski [mailto:sk at z.pl]
> Sent: Friday, 10 December 2004 4:24 AM
> To: antlr-interest at yahoogroups.com
> Subject: Re: [antlr-interest] Bug in Antlr - confusion on ANTLR grammar
> syntax???
> 
> 
> John MccLain wrote:
> > I am not understanding this at all. I am building a grammar
> > to parse powerbuilder. Here is all of the parser grammar - I reduced it
> down
> > to localize
> > the confusion
> >
> > expression: simpleexp ((LE|GE|NE|EQ|LT|GT) simpleexp )?
> > ;
> >

Be careful of using 'LT' as it has significance for the parser/lexer. Try
changing this, or examine the generated code for that rule, and see if that
is what is causing it to hang.

Nigel

--
Nigel Sheridan-Smith
PhD research student

Faculty of Engineering
University of Technology, Sydney
Phone: 02 9514 7946
Fax: 02 9514 2435




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

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





More information about the antlr-interest mailing list