Package 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
-
Constructor Summary
ConstructorsConstructorDescriptionMutableGrammar(Map<GrammarRuleKey, ? extends CompilableGrammarRule> rules, GrammarRuleKey rootRuleKey) -
Method Summary
Modifier and TypeMethodDescriptionEach Grammar has always an entry point whose name is usually by convention the "Computation Unit".rule(GrammarRuleKey ruleKey) Allows to obtain an instance of grammar rule, which was constructed byLexerlessGrammarBuilderandLexerfulGrammarBuilder.Methods inherited from class com.sonar.sslr.api.Grammar
getAllRuleFields, getRuleFields
-
Constructor Details
-
MutableGrammar
public MutableGrammar(Map<GrammarRuleKey, ? extends CompilableGrammarRule> rules, GrammarRuleKey rootRuleKey)
-
-
Method Details
-
rule
Description copied from class:GrammarAllows to obtain an instance of grammar rule, which was constructed byLexerlessGrammarBuilderandLexerfulGrammarBuilder. -
getRootRule
Description copied from class:GrammarEach Grammar has always an entry point whose name is usually by convention the "Computation Unit".- Specified by:
getRootRulein classGrammar- Returns:
- the entry point of this Grammar
-