Package | Description |
---|---|
org.antlr.analysis |
Modifier and Type | Field | Description |
---|---|---|
NFAContext |
NFAConfiguration.context |
What is the stack of rule invocations that got us to state?
|
protected NFAContext[] |
NFAToDFAConverter.contextTrees |
While converting NFA, we must track states that
reference other rule's NFAs so we know what to do
at the end of a rule.
|
NFAContext |
NFAContext.parent |
Modifier and Type | Method | Description |
---|---|---|
NFAConfiguration |
DFAState.addNFAConfiguration(NFAState state,
int alt,
NFAContext context,
SemanticContext semanticContext) |
|
void |
NFAToDFAConverter.closure(NFAState p,
int alt,
NFAContext context,
SemanticContext semanticContext,
DFAState d,
boolean collectPredicates) |
Where can we get from NFA state p traversing only epsilon transitions?
Add new NFA states + context to DFA state d.
|
boolean |
NFAContext.conflictsWith(NFAContext other) |
Two contexts conflict() if they are equals() or one is a stack suffix
of the other.
|
protected boolean |
NFAContext.suffix(NFAContext other) |
[$] suffix any context
[21 $] suffix [21 12 $]
[21 12 $] suffix [21 $]
[21 18 $] suffix [21 18 12 9 $]
[21 18 12 9 $] suffix [21 18 $]
[21 12 $] not suffix [21 9 $]
Example "[21 $] suffix [21 12 $]" means: rule r invoked current rule
from state 21.
|
Constructor | Description |
---|---|
NFAConfiguration(int state,
int alt,
NFAContext context,
SemanticContext semanticContext) |
|
NFAContext(NFAContext parent,
NFAState invokingState) |
Copyright © 1992–2019 ANTLR. All rights reserved.