类的使用
org.antlr.analysis.DFA
-
使用DFA的程序包 程序包 说明 org.antlr.analysis org.antlr.codegen org.antlr.grammar.v3 org.antlr.tool -
-
org.antlr.analysis中DFA的使用
org.antlr.analysis中DFA的子类 修饰符和类型 类 说明 classLL1DFAA special DFA that is exactly LL(1) or LL(1) with backtracking mode predicates to resolve edge set collisions.声明为DFA的org.antlr.analysis中的字段 修饰符和类型 字段 说明 DFAAnalysisTimeoutException. abortedDFADFANonLLStarDecisionException. abortedDFADFADecisionProbe. dfaDFADFAState. dfaWe are part of what DFA? Use this ref to get access to the context trees for an alt.protected DFANFAToDFAConverter. dfaWe are converting which DFA?参数类型为DFA的org.antlr.analysis中的方法 修饰符和类型 方法 说明 org.stringtemplate.v4.STSemanticContext.AND. genExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa)org.stringtemplate.v4.STSemanticContext.FalsePredicate. genExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa)abstract org.stringtemplate.v4.STSemanticContext. genExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa)Generate an expression that will evaluate the semantic context, given a set of output templates.org.stringtemplate.v4.STSemanticContext.NOT. genExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa)org.stringtemplate.v4.STSemanticContext.OR. genExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa)org.stringtemplate.v4.STSemanticContext.Predicate. genExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa)org.stringtemplate.v4.STSemanticContext.TruePredicate. genExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa)protected voidDFAOptimizer. optimize(DFA dfa)voidDecisionProbe. reportNonLLStarDecision(DFA dfa)Report that at least 2 alts have recursive constructs.参数类型为DFA的org.antlr.analysis中的构造器 构造器 说明 AnalysisTimeoutException(DFA abortedDFA)DecisionProbe(DFA dfa)DFAState(DFA dfa)MachineProbe(DFA dfa)NFAToDFAConverter(DFA dfa)NonLLStarDecisionException(DFA abortedDFA) -
org.antlr.codegen中DFA的使用
参数类型为DFA的org.antlr.codegen中的方法 修饰符和类型 方法 说明 org.stringtemplate.v4.STACyclicDFACodeGenerator. genFixedLookaheadDecision(org.stringtemplate.v4.STGroup templates, DFA dfa)org.stringtemplate.v4.STCodeGenerator. genLookaheadDecision(org.stringtemplate.v4.ST recognizerST, DFA dfa)Generate code that computes the predicted alt given a DFA.protected org.stringtemplate.v4.STACyclicDFACodeGenerator. walkFixedDFAGeneratingStateMachine(org.stringtemplate.v4.STGroup templates, DFA dfa, DFAState s, int k) -
org.antlr.grammar.v3中DFA的使用
参数类型为DFA的org.antlr.grammar.v3中的方法 修饰符和类型 方法 说明 CodeGenTreeWalker.block_returnCodeGenTreeWalker. block(java.lang.String blockTemplateName, DFA dfa, GrammarAST label) -
org.antlr.tool中DFA的使用
声明为DFA的org.antlr.tool中的字段 修饰符和类型 字段 说明 DFAGrammar.Decision. dfaDFAGrammarAST. lookaheadDFAIf this is a decision node, what is the lookahead DFA?类型参数类型为DFA的org.antlr.tool中的字段 修饰符和类型 字段 说明 java.util.Set<DFA>Grammar. decisionsWhoseDFAsUsesSemPredsTrack decisions that actually use the syn preds in the DFA.java.util.Set<DFA>Grammar. decisionsWhoseDFAsUsesSynPredsTrack decisions that actually use the syn preds in the DFA.返回DFA的org.antlr.tool中的方法 修饰符和类型 方法 说明 DFAGrammar. createLL_1_LookaheadDFA(int decision)DFAGrammar. createLookaheadDFA(int decision, boolean wackTempStructures)DFAGrammar. getLookaheadDFA(int decision)DFAGrammarAST. getLookaheadDFA()DFAGrammar. getLookaheadDFAFromPositionInFile(int line, int col)Useful for ANTLRWorks to map position in file to the DFA for display返回变量类型为DFA的类型的org.antlr.tool中的方法 修饰符和类型 方法 说明 java.util.Map<java.lang.String,DFA>Grammar. getLineColumnToLookaheadDFAMap()参数类型为DFA的org.antlr.tool中的方法 修饰符和类型 方法 说明 intInterpreter. predict(DFA dfa)Given an input stream, return the unique alternative predicted by matching the input.voidGrammar. setLookaheadDFA(int decision, DFA lookaheadDFA)Set the lookahead DFA for a particular decision.voidGrammarAST. setLookaheadDFA(DFA lookaheadDFA)voidGrammar. synPredUsedInDFA(DFA dfa, SemanticContext semCtx)类型变量类型为DFA的org.antlr.tool中的方法参数 修饰符和类型 方法 说明 protected java.lang.StringGrammarReport. getDFALocations(java.util.Set<DFA> dfas)
-