| Package | Description |
|---|---|
| com.sonar.sslr.api | |
| com.sonar.sslr.impl.matcher | |
| org.sonar.sslr.grammar |
API to define Parsing Expression Grammar.
|
| org.sonar.sslr.internal.grammar |
Internals of Grammar API.
|
| org.sonar.sslr.internal.vm |
| Modifier and Type | Method and Description |
|---|---|
Rule |
Grammar.rule(GrammarRuleKey ruleKey)
Allows to obtain an instance of grammar rule, which was constructed by
LexerlessGrammarBuilder and LexerfulGrammarBuilder. |
| Modifier and Type | Class and Description |
|---|---|
class |
RuleDefinition
This class is not intended to be instantiated or subclassed by clients.
|
| Modifier and Type | Method and Description |
|---|---|
GrammarRuleKey |
RuleDefinition.getRuleKey() |
| Constructor and Description |
|---|
RuleDefinition(GrammarRuleKey ruleKey) |
| Modifier and Type | Method and Description |
|---|---|
GrammarRuleBuilder |
LexerlessGrammarBuilder.rule(GrammarRuleKey ruleKey)
Allows to describe rule.
|
GrammarRuleBuilder |
LexerfulGrammarBuilder.rule(GrammarRuleKey ruleKey)
Allows to describe rule.
|
void |
LexerlessGrammarBuilder.setRootRule(GrammarRuleKey ruleKey)
Allows to specify that given rule should be root for grammar.
|
void |
LexerfulGrammarBuilder.setRootRule(GrammarRuleKey ruleKey)
Allows to specify that given rule should be root for grammar.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MutableParsingRule |
| Modifier and Type | Method and Description |
|---|---|
GrammarRuleKey |
MutableParsingRule.getRuleKey() |
| Modifier and Type | Method and Description |
|---|---|
Rule |
MutableGrammar.rule(GrammarRuleKey ruleKey) |
| Constructor and Description |
|---|
MutableGrammar(Map<GrammarRuleKey,? extends CompilableGrammarRule> rules,
GrammarRuleKey rootRuleKey) |
MutableParsingRule(GrammarRuleKey ruleKey) |
| Constructor and Description |
|---|
MutableGrammar(Map<GrammarRuleKey,? extends CompilableGrammarRule> rules,
GrammarRuleKey rootRuleKey) |
| Modifier and Type | Method and Description |
|---|---|
GrammarRuleKey |
CompiledGrammar.getRootRuleKey() |
GrammarRuleKey |
RuleRefExpression.getRuleKey() |
GrammarRuleKey |
CompilableGrammarRule.getRuleKey() |
| Modifier and Type | Method and Description |
|---|---|
Matcher |
CompiledGrammar.getMatcher(GrammarRuleKey ruleKey) |
| Constructor and Description |
|---|
CompiledGrammar(Instruction[] instructions,
Map<GrammarRuleKey,CompilableGrammarRule> rules,
GrammarRuleKey rootRuleKey,
int rootRuleOffset) |
RuleRefExpression(GrammarRuleKey ruleKey) |
| Constructor and Description |
|---|
CompiledGrammar(Instruction[] instructions,
Map<GrammarRuleKey,CompilableGrammarRule> rules,
GrammarRuleKey rootRuleKey,
int rootRuleOffset) |
Copyright © 2009–2018 SonarSource. All rights reserved.