[antlr-interest] Newbie Question: what does missing attributeaccess on rule scope: e mean?
Terence Parr
parrt at cs.usfca.edu
Thu Jun 14 19:33:16 PDT 2007
On Jun 15, 2007, at 2:53 AM, Jim Idle wrote:
> You should use $e.value, rules can return more than one element. I
> fit does only return one element then the code gen will optimize it
> to do so. So, $e references the “structure/object that contains the
> return elements”, and not the return element itself.
can do $e.start and $e.text etc... as well.
Ter
More information about the antlr-interest
mailing list