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, getRuleFields
public MutableGrammar(Map<GrammarRuleKey,? extends CompilableGrammarRule> rules, GrammarRuleKey rootRuleKey)
public Rule rule(GrammarRuleKey ruleKey)
Grammar
LexerlessGrammarBuilder
and LexerfulGrammarBuilder
.public Rule getRootRule()
Grammar
getRootRule
in class Grammar
Copyright © 2009–2017 SonarSource. All rights reserved.