[antlr-interest] Bug in Antlr 3.0.1 - imaginary node constructors
Johannes Luber
JALuber at gmx.de
Wed Jun 11 13:02:27 PDT 2008
> When creating an imaginary node with implicit constructor, if you such as:
>
> n=PERSONAL -> ^(ANYNAME[$n, $n.text])
>
>
> the resulting Parser.java file has an extra comma in the create method
> call:
> root_1 = (Object)adaptor.becomeRoot(adaptor.create(ANYNAME, n, ,
> n.getText()), root_1);
>
>
> The extra comma goes away if you don't put a space between $n and
> $n.text. So this works:
>
> n=PERSONAL -> ^(ANYNAME[$n,$n.text])
I'm pretty sure that the newest beta contains a fix for this.
Johannes
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx
More information about the antlr-interest
mailing list