[antlr-interest] Left recursion
mitchellch
mitchellch at comcast.net
Thu Jul 26 09:09:45 PDT 2007
I feel like there must be an obvious answer for this one, but I can't find
it in the book or on the site.
Given that ANTLR doesn't support left-recursion, how do I specify a grammar
for arbitrarily nested blocks?
For example,
void method() {
{ /* nested block */
{ /* nested block */
double-nested-statement;
}
nested-statement;
}
unnested-statement;
}
-Mitch Christensen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070726/515c01eb/attachment.html
More information about the antlr-interest
mailing list