Home
last modified time | relevance | path

Searched refs:startState (Results 1 – 24 of 24) sorted by relevance

/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/
DMachineProbe.java50 return getAnyDFAPathToTarget(dfa.startState, targetState, visited); in getAnyDFAPathToTarget()
53 public List<DFAState> getAnyDFAPathToTarget(DFAState startState, in getAnyDFAPathToTarget() argument
56 visited.add(startState); in getAnyDFAPathToTarget()
57 if (startState.equals(targetState)) { in getAnyDFAPathToTarget()
63 for (int i = 0; i < startState.getNumberOfTransitions(); i++) { in getAnyDFAPathToTarget()
64 Transition e = startState.getTransition(i); in getAnyDFAPathToTarget()
69 dfaStates.add(startState); in getAnyDFAPathToTarget()
DDecisionProbe.java305 if ( dfa==null || dfa.startState==null ) { in getSampleNonDeterministicInputSequence()
308 getSampleInputSequenceUsingStateSet(dfa.startState, in getSampleNonDeterministicInputSequence()
710 protected boolean reachesState(DFAState startState, in reachesState() argument
713 if ( startState==targetState ) { in reachesState()
716 stateReachable.put(startState.stateNumber, REACHABLE_YES); in reachesState()
720 DFAState s = startState; in reachesState()
756 if ( dfa==null || dfa.startState==null ) { in getDFAPathStatesToTarget()
759 boolean reaches = reachesState(dfa.startState, targetState, dfaStates); in getDFAPathStatesToTarget()
772 protected void getSampleInputSequenceUsingStateSet(State startState, in getSampleInputSequenceUsingStateSet() argument
777 statesVisitedDuringSampleSequence.add(startState.stateNumber); in getSampleInputSequenceUsingStateSet()
[all …]
DDFA.java68 public DFAState startState; field in DFA
751 NFAState TokensRuleStart = r.startState;
782 return _getMaxLookaheadDepth(startState, 0);
817 boolean has = _hasSynPred(startState, new HashSet<DFAState>());
849 boolean has = _hasSemPred(startState, new HashSet<DFAState>());
870 boolean cyclic = _hasCycle(startState, new HashMap<DFAState, Integer>());
910 doesStateReachAcceptState(startState);
1107 if ( startState==null ) {
1110 return serializer.serialize(startState, false);
DDFAOptimizer.java164 optimizeExitBranches(dfa.startState); in optimize()
173 optimizeEOTBranches(dfa.startState); in optimize()
DNFAToDFAConverter.java80 dfa.startState = computeStartState(); in convert()
141 DFAState startState = dfa.newState(); in computeStartState() local
163 startState, in computeStartState() local
173 startState, in computeStartState() local
190 dfa.addState(startState); // make sure dfa knows about this state in computeStartState()
191 work.add(startState); in computeStartState()
193 return startState; in computeStartState()
DLL1DFA.java53 startState = s0; in LL1DFA()
79 startState = s0; in LL1DFA()
/external/svox/pico/lib/
Dpicokfst.c342 extern void picokfst_kfstGetTrans (picokfst_FST this, picokfst_state_t startState, picokfst_class_t… in picokfst_kfstGetTrans() argument
351 …if ((startState < 1) || (startState > fst->nrStates) || (transClass < 1) || (transClass > fst->nrC… in picokfst_kfstGetTrans()
354 index = (startState - 1) * fst->nrClasses + transClass - 1; in picokfst_kfstGetTrans()
363 extern void picokfst_kfstStartInEpsTransSearch (picokfst_FST this, picokfst_state_t startState, in picokfst_kfstStartInEpsTransSearch() argument
373 if ((startState > 0) && (startState <= fst->nrStates)) { in picokfst_kfstStartInEpsTransSearch()
374 pos = fst->inEpsStateTabPos + (startState - 1) * 4; in picokfst_kfstStartInEpsTransSearch()
Dpicokfst.h135 void picokfst_kfstGetTrans (picokfst_FST this, picokfst_state_t startState, picokfst_class_t transC…
144 void picokfst_kfstStartInEpsTransSearch (picokfst_FST this, picokfst_state_t startState,
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DDOTGenerator.java67 public String getDOT(State startState) { in getDOT() argument
68 if ( startState==null ) { in getDOT()
74 if ( startState instanceof DFAState ) { in getDOT()
77 Utils.integer(startState.stateNumber)); in getDOT()
80 walkCreatingDFADOT(dot, (DFAState)startState); in getDOT()
85 Utils.integer(startState.stateNumber)); in getDOT()
86 walkRuleNFACreatingDOT(dot, startState); in getDOT()
DGrammar.java157 public NFAState startState; field in Grammar.Decision
981 r.startState = ruleBeginState; in createRuleStartAndStopNFAStates()
1080 if ( dfa.startState==null ) { in createLookaheadDFAs()
1087 String result = serializer.serialize(dfa.startState); in createLookaheadDFAs()
1126 String enclosingRule = d.startState.enclosingRule.name; in createLL_1_LookaheadDFA()
1127 Rule r = d.startState.enclosingRule; in createLL_1_LookaheadDFA()
1301 String enclosingRule = d.startState.enclosingRule.name; in createLookaheadDFA()
1302 Rule r = d.startState.enclosingRule; in createLookaheadDFA()
2717 return r.startState; in getRuleStartState()
2775 states.add(dec.startState); in getDecisionNFAStartStateList()
[all …]
DGrammarSanity.java68 traceStatesLookingForLeftRecursion(r.startState, in checkAllRulesForLeftRecursion()
DInterpreter.java396 DFAState s = dfa.startState; in predict()
DRule.java43 public NFAState startState; field in Rule
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/
DAutoEscaper.java106 AutoEscapeContext.AutoEscapeState startState = autoEscapeContext.getCurrentState(); in caseStart() local
112 if (!autoEscapeContext.isPermittedStateChangeForIncludes(startState, endState)) { in caseStart()
124 throw new JSilverAutoEscapingException("Template starts in context " + startState in caseStart()
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/tool/templates/dot/
Ddot.stg33 dfa(decisionRanks,states,edges,rankdir,startState,useBox) ::= <<
42 nfa(decisionRanks,states,edges,rankdir,startState) ::= <<
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestCharDFAConversion.java224 String result = serializer.serialize(dfa.startState); in testLoopsWithOptimizedOutExitBranches()
527 String result = serializer.serialize(dfa.startState); in checkDecision()
DTestNFAConstruction.java1196 State startState = g.getRuleStartState(rule); in checkRule() local
1198 String result = serializer.serialize(startState); in checkRule()
DTestSemanticPredicates.java817 String result = serializer.serialize(dfa.startState); in checkDecision()
DTestCompositeGrammars.java634 String result = serializer.serialize(dfa.startState); in testLexerDelegatorRuleOverridesDelegateLeavingNoRules()
DTestDFAConversion.java1643 String result = serializer.serialize(dfa.startState); in checkDecision()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
DACyclicDFACodeGenerator.java47 return walkFixedDFAGeneratingStateMachine(templates, dfa, dfa.startState, 1); in genFixedLookaheadDecision()
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CPP/
DCPP.stg1004 // startState = <dfa.startState>
1005 // startState.numberOfTransitions = <dfa.startState.NumberOfTransitions>
1006 // startState.lookaheadDepth = <dfa.startState.LookaheadDepth>
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/
DTool.java678 String dot = dotGenerator.getDOT(dfa.startState); in generateDFAs()
701 String dot = dotGenerator.getDOT(r.startState); in generateNFAs()
/external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/
DTreeToNFAConverter.g243 NFAState start = thisR.startState;