[antlr-interest] Question about recursion
Anthony Brenelière
abreneliere at telys.com
Mon Feb 3 09:18:44 PST 2003
I just noticed recursion was rejected when the rule was the first rule
of the right part.
expr
: MINUS expr
;
..is ok
expr
: expr MINUS
;
..is not okay
If there a way to allow the second example in an ANTLR grammar ?
therorically that ahould be accepted, its a correct rule of the BNF.
-----Message d'origine-----
De : Anthony Brenelière [mailto:abreneliere at telys.com]
Envoyé : lundi 3 février 2003 18:06
À : Antlr Yahoogroups
Objet : [antlr-interest] Questions about recursion...
Why is there no recursion in ANLR grammars ?
Is it by design or not implemeted yet ?
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20030203/451fe167/attachment.html
More information about the antlr-interest
mailing list