[antlr-interest] The ^ and !

Terence Parr parrt at jguru.com
Fri Sep 20 11:42:19 PDT 2002


On Friday, September 20, 2002, at 10:59  AM, Alexander Lenski wrote:

> From the CHANGES-2.7.2.txt:
>  
> "Bad code gen with ^ or ! on tree root
> when building trees in a tree walker grammar such as:
>  
> expr:   #(PLUS^ expr expr) 
>     |   i:INT
>     ;
>  
> Fortunately, ^ is simply redundant; removing it makes code ok.
> Added a warning.  Added an error message for ! saying that it
> is not implemented."
>  
> Are the ^ and ! not implemented yet or they are gone forever?

Hi.  They are still there...just don't use ^ on the root...it's already 
a root.

Ter
--
Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org


 

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



More information about the antlr-interest mailing list