Hello All
It's me again!
As I wrote
<http://www.antlr.org/pipermail/antlr-interest/2010-November/040124.html>,
I'm writing a two-pass grammar. The AST generating code puts some
repeating elements in a list:
> grammar completeOncoPrintSpecAST;
>
> options {output=AST;}
...
> fullDataTypeSpec
> : ':' ( dataTypeSpec )+ ';' -> dataTypeSpec+
> ;
>
...
as per an example on p. 166 of Parr's "... ANTLR Reference" (TDAR):
> /** Collect the result trees from all formalArg invocations
> * and put into an AST list.
> */
> formalArgs : formalArg (',' formalArg)* -> formalArg+
> | ;
How does one walk these repeated elements in a tree grammar? I'm unable
to find any documentation in TDAR or on antlr.org.
Thanks
A
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.