Hi Everyone,

I'm trying to make a tree parser with ANTLR 3.2, and using the '.tree' 
attribute on a rule produces a compiler error:

The rule:
modifiers returns [Modifiers modifier]
   :
   (mod = modifier+)
   {
     $modifier = new Modifiers($mod.tree);
   }
   ;

The offending line of Java code produced:
modifier = new Modifiers((mod != null ? ((CommonTree)mod.tree) : null ));
--> "tree cannot be resolved or is not a field"

I have modify it manually from .tree to .getTree() for the Java to 
compile, there's no field called 'tree'.

Is this a bug, or am I doing something wrong?

Thanks,
Stephen

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to