[antlr-interest] syntactic predicates
a_j_key
key at prontomail.com
Mon Apr 28 08:57:21 PDT 2003
Hi all,
I'm stuck with the following: I need to match the rule:
int a, b, c;
like follows: if variable is followed by COMMA than create a varNode,
otherwise create varDecl. I got the following
varDecl
: (varDecl COMMA)=>
(varDecl)*
| varDecl
;
I don't know what I'm doing wrong. Could anyone give me a hint?
Many thanks in advance,
a.j.key
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list