com.sonar.sslr.api
Interface LeftRecursiveRule
- All Superinterfaces:
- AstNodeType, Rule
public interface LeftRecursiveRule
- extends Rule
A LeftRecursiveRule must be used in place of a Rule in order to support left recursion.
Indeed SSLR embeds a LL(*) parser which doesn't support by default such left recursive rule :
additiveExpr.is(or(and(additiveExpr, "+", INTEGER), INTEGER)
Method Summary |
void |
endParsing()
Supporting left recursive rule requires to manage a state that must be (re)initialized before
starting parsing a new source code. |
Methods inherited from interface com.sonar.sslr.api.Rule |
and, is, isOr, mock, mockUpperCase, or, orBefore, override, plug, recoveryRule, setListener, skip, skipIf, skipIfOneChild |
endParsing
void endParsing()
- Supporting left recursive rule requires to manage a state that must be (re)initialized before
starting parsing a new source code.
Copyright © 2011 SonarSource. All Rights Reserved.