public class MutableGrammar extends LexerlessGrammar
| Constructor and Description |
|---|
MutableGrammar(Map<GrammarRuleKey,? extends CompilableGrammarRule> rules,
GrammarRuleKey rootRuleKey) |
| Modifier and Type | Method and Description |
|---|---|
Rule |
getRootRule()
Each Grammar has always an entry point whose name is usually by convention the "Computation Unit".
|
Rule |
rule(GrammarRuleKey ruleKey)
Allows to obtain an instance of grammar rule, which was constructed by
LexerlessGrammarBuilder and LexerfulGrammarBuilder. |
getAllRuleFields, getRuleFieldspublic MutableGrammar(Map<GrammarRuleKey,? extends CompilableGrammarRule> rules, GrammarRuleKey rootRuleKey)
public Rule rule(GrammarRuleKey ruleKey)
GrammarLexerlessGrammarBuilder and LexerfulGrammarBuilder.public Rule getRootRule()
GrammargetRootRule in class GrammarCopyright © 2009–2018 SonarSource. All rights reserved.