[antlr-interest] Bug in Antlr 3.0.1 - imaginary node constructors
Karthik Abram
karthik.abram at gmail.com
Wed Jun 11 11:33:31 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])
More information about the antlr-interest
mailing list