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

Monty Zukowski monty at codetransform.com
Tue Jun 1 10:55:33 PDT 2004


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