[antlr-interest] how to specify cardinality in templates
Marwan Ajraoui
marwan.alephn at gmail.com
Sat Aug 22 09:55:30 PDT 2009
Hi comunity;
Would like to know how do u specify in a template the possible
repetition of some part of it.
for example in that the instelseif and cond_elseif could apper 0..n times:
instif(cond,instif,instelseif,cond_elseif,instesle) ::= <<
if(<cond>){
<instif>
}
else if(<cond>){
<instelseif>
}
else{
<instelse>
}>>
Many thx
--
Marouane
More information about the antlr-interest
mailing list