Hi Terence,
Thanks so much!
That did indeed work, but what threw me is that the AST output in ANTLRworks
showed a nil element only (and nothing else!). However all appears well when I
run my unit tests on the parser and tree walker.
FYI I also subsequently modified my tree grammar to read:
line
: ruleLine* zoneLine* linkLine*
;
Thanks again.
Kind regards,
Christopher
On 23/12/2010, at 11:00 AM, Terence Parr wrote:
> line
> : (r+=ruleLine | z+=zoneLine | l+=linkLine | NEWLINE!)* -> $r+ $z+ $l+
> ;
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.