[antlr-interest] how to allow keywords as variables

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Jun 5 15:21:33 PDT 2003


on 6/5/03 23:51, mzukowski at yci.com at mzukowski at yci.com wrote:

> For which see http://www.codetransform.com/filterexample.html.  I believe
> there is a FAQ entry on this subject too
> http://www.jguru.com/faq/view.jsp?EID=140

Hi Monty,

I wonder if this paragraph still true for 2.7.2 ANTLR

> Antlr, unlike PCCTS 1.3x, does not "hoist" syntactic or semantic predicates.
> That means that you can't isolate that part into a rule like this:
> 
> 
> id_or_keyword:
>   ( ID 
>   | ( ~(ID) )=>{ LT(1).possibleID() }? .
>   )
>   ;
> 

I ask because that FAQ is 4 years old,
and in Terr's mp3 was words about rule "id_or_keyword"

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------


 

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




More information about the antlr-interest mailing list