[antlr-interest] Re: Very weird SQL parser failures - look-ahead? - FIXED

anatoli_krassavine toly at intellidos.com
Tue Jun 1 11:03:16 PDT 2004


Hello,

This is exactly what I call a brute-force approach. I am starting to 
get more and more expressions like this and I wondered if there is a 
better way to do it - obviously not.

Cheers,
 Toly

--- In antlr-interest at yahoogroups.com, Monty Zukowski <monty at c...> 
wrote:
> On Jun 1, 2004, at 10:49 AM, anatoli_krassavine wrote:
> 
> > Since you just finished a SQL parser of your own, could I ask a 
quick
> > question. Is there a simple way in Antlr to specify pairs of 
optional
> > matching parenthesis (I mean apart from brute-force when you mark
> > them explicitly)?
> 
> I'm not sure what you are asking.  Can you give an example?  I do 
this 
> kind of thing a lot:
> 
> rule:
> 	select
> 	| LPAREN select RPAREN
> 	;
> 
> Monty Zukowski
> 
> ANTLR & Java Consultant -- http://www.codetransform.com
> ANSI C/GCC transformation toolkit -- 
> http://www.codetransform.com/gcc.html
> Embrace the Decay -- http://www.codetransform.com/EmbraceDecay.html



 
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