Uses of Class
org.antlr.analysis.NFAContext
Packages that use NFAContext
-
Uses of NFAContext in org.antlr.analysis
Fields in org.antlr.analysis declared as NFAContextModifier and TypeFieldDescriptionNFAConfiguration.contextWhat is the stack of rule invocations that got us to state?protected NFAContext[]NFAToDFAConverter.contextTreesWhile 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.parentMethods in org.antlr.analysis with parameters of type NFAContextModifier and TypeMethodDescriptionDFAState.addNFAConfiguration(NFAState state, int alt, NFAContext context, SemanticContext semanticContext) voidNFAToDFAConverter.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.booleanNFAContext.conflictsWith(NFAContext other) Two contexts conflict() if they are equals() or one is a stack suffix of the other.protected booleanNFAContext.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.Constructors in org.antlr.analysis with parameters of type NFAContextModifierConstructorDescriptionNFAConfiguration(int state, int alt, NFAContext context, SemanticContext semanticContext) NFAContext(NFAContext parent, NFAState invokingState)