org.sonar.sslr.internal.grammar
Class MutableGrammar
java.lang.Object
com.sonar.sslr.api.Grammar
org.sonar.sslr.parser.LexerlessGrammar
org.sonar.sslr.internal.grammar.MutableGrammar
public class MutableGrammar
- extends LexerlessGrammar
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MutableGrammar
public MutableGrammar(Map<GrammarRuleKey,? extends CompilableGrammarRule> rules,
GrammarRuleKey rootRuleKey)
rule
public Rule rule(GrammarRuleKey ruleKey)
- Description copied from class:
Grammar
- Allows to obtain an instance of grammar rule, which was constructed by
LexerlessGrammarBuilder and LexerfulGrammarBuilder.
- Overrides:
rule in class Grammar
getRootRule
public Rule getRootRule()
- Description copied from class:
Grammar
- Each Grammar has always an entry point whose name is usually by convention the "Computation Unit".
- Specified by:
getRootRule in class Grammar
- Returns:
- the entry point of this Grammar
Copyright © 2009-2014 SonarSource. All Rights Reserved.