类的使用
org.antlr.analysis.NFAContext
-
使用NFAContext的程序包 程序包 说明 org.antlr.analysis -
-
org.antlr.analysis中NFAContext的使用
声明为NFAContext的org.antlr.analysis中的字段 修饰符和类型 字段 说明 NFAContextNFAConfiguration. 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.NFAContextNFAContext. parent参数类型为NFAContext的org.antlr.analysis中的方法 修饰符和类型 方法 说明 NFAConfigurationDFAState. 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.参数类型为NFAContext的org.antlr.analysis中的构造器 构造器 说明 NFAConfiguration(int state, int alt, NFAContext context, SemanticContext semanticContext)NFAContext(NFAContext parent, NFAState invokingState)
-