[antlr-interest] Re: Tree transformation
lgcraymer
lgc at mail1.jpl.nasa.gov
Thu Oct 9 11:37:29 PDT 2003
Arnar--
In 2.7.1,
#( A! B C )
in a tree rule produced
B
|
C
instead of B--C. I fixed this (and a few related problems), but the
fix did not make it into 2.7.2; Ter threw in the error message
instead. This will be fixed in 2.8 which will be an experimental
version of ANTLR with some 3.0 features added (my tree grammar
generation and tree construction syntax will be included and possibly
some other things--depends on how far Ter gets with other ANTLR 3
features).
Try putting a ! on the rule and manually construct the rule tree.
That should be a suitable workaround.
--Loring
--- In antlr-interest at yahoogroups.com, "Arnar Birgisson" <arnarb at o...>
wrote:
> Hello..
>
> I get this:
>
> g:\j2sdk1.4.2\bin\java -cp g:\jars\antlr.jar antlr.Tool
> FjolnirTransformer.g
> ANTLR Parser Generator Version 2.7.3-20030430 1989-2003
jGuru.com
> FjolnirTransformer.g:115:11: Suffixing a root node with '!' is not
> implemented
> Exiting due to errors.
>
> I think I'm running the latest and greatest (2.7.3 from Ric, dated
> 2003-09-11).
>
> Arnar
>
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list