Home
last modified time | relevance | path

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

12

/external/antlr/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.java302 if ( dfa==null || dfa.startState==null ) { in getSampleNonDeterministicInputSequence()
305 getSampleInputSequenceUsingStateSet(dfa.startState, in getSampleNonDeterministicInputSequence()
704 protected boolean reachesState(DFAState startState, in reachesState() argument
707 if ( startState==targetState ) { in reachesState()
710 stateReachable.put(startState.stateNumber, REACHABLE_YES); in reachesState()
714 DFAState s = startState; in reachesState()
750 if ( dfa==null || dfa.startState==null ) { in getDFAPathStatesToTarget()
753 boolean reaches = reachesState(dfa.startState, targetState, dfaStates); in getDFAPathStatesToTarget()
766 protected void getSampleInputSequenceUsingStateSet(State startState, in getSampleInputSequenceUsingStateSet() argument
771 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.java55 startState = s0; in LL1DFA()
82 startState = s0; in LL1DFA()
/external/antlr/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.java200 public NFAState startState; field in Grammar.Decision
1022 r.startState = ruleBeginState; in createRuleStartAndStopNFAStates()
1121 if ( dfa.startState==null ) { in createLookaheadDFAs()
1128 String result = serializer.serialize(dfa.startState); in createLookaheadDFAs()
1167 String enclosingRule = d.startState.enclosingRule.name; in createLL_1_LookaheadDFA()
1168 Rule r = d.startState.enclosingRule; in createLL_1_LookaheadDFA()
1342 String enclosingRule = d.startState.enclosingRule.name; in createLookaheadDFA()
1343 Rule r = d.startState.enclosingRule; in createLookaheadDFA()
2761 return r.startState; in getRuleStartState()
2819 states.add(dec.startState); in getDecisionNFAStartStateList()
[all …]
DGrammarSanity.java68 traceStatesLookingForLeftRecursion(r.startState, in checkAllRulesForLeftRecursion()
DInterpreter.java398 DFAState s = dfa.startState; in predict()
DRule.java48 public NFAState startState; field in Rule
/external/apache-commons-bcel/src/examples/Mini/
DMiniParserTokenManager.java57 static private int jjMoveNfa_1(int startState, int curPos) in jjMoveNfa_1() argument
62 jjstateSet[0] = startState; in jjMoveNfa_1()
425 static private int jjMoveNfa_0(int startState, int curPos) in jjMoveNfa_0() argument
430 jjstateSet[0] = startState; in jjMoveNfa_0()
/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/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRBBITableBuilder.java1138 for (int startState = 1; startState < numStates; ++startState) {
1139 RBBIStateDescriptor startStateD = fDStates.get(startState);
1176 short[] startState = fSafeTable.get(1);
1179 startState[charClass] = (short)(charClass+2);
1185 System.arraycopy(startState, 0, fSafeTable.get(row), 0, startState.length);
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRBBITableBuilder.java1139 for (int startState = 1; startState < numStates; ++startState) {
1140 RBBIStateDescriptor startStateD = fDStates.get(startState);
1177 short[] startState = fSafeTable.get(1);
1180 startState[charClass] = (short)(charClass+2);
1186 System.arraycopy(startState, 0, fSafeTable.get(row), 0, startState.length);
/external/antlr/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/icu/icu4c/source/common/
Drbbitblb.cpp1377 for (int32_t startState = 1; startState < numStates; ++startState) { in buildSafeReverseTable() local
1378 …StateDescriptor *startStateD = static_cast<RBBIStateDescriptor *>(fDStates->elementAt(startState)); in buildSafeReverseTable()
1416 UnicodeString &startState = *static_cast<UnicodeString *>(fSafeTable->elementAt(1)); in buildSafeReverseTable() local
1419 startState.setCharAt(charClass, static_cast<char16_t>(charClass+2)); in buildSafeReverseTable()
1425 rowState = startState; // UnicodeString assignment, copies contents. in buildSafeReverseTable()
/external/antlr/tool/src/test/java/org/antlr/test/
DTestCharDFAConversion.java226 String result = serializer.serialize(dfa.startState); in testLoopsWithOptimizedOutExitBranches()
529 String result = serializer.serialize(dfa.startState); in checkDecision()
DTestNFAConstruction.java1198 State startState = g.getRuleStartState(rule); in checkRule() local
1200 String result = serializer.serialize(startState); in checkRule()
DTestSemanticPredicates.java820 String result = serializer.serialize(dfa.startState); in checkDecision()
/external/antlr/tool/src/main/java/org/antlr/codegen/
DACyclicDFACodeGenerator.java48 return walkFixedDFAGeneratingStateMachine(templates, dfa, dfa.startState, 1); in genFixedLookaheadDecision()
/external/antlr/tool/src/main/java/org/antlr/
DTool.java697 String dot = dotGenerator.getDOT(dfa.startState); in generateDFAs()
719 String dot = dotGenerator.getDOT(r.startState); in generateNFAs()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/generated/com/github/javaparser/
DASTParserTokenManager.java1079 private int jjMoveNfa_0(int startState, int curPos) in jjMoveNfa_0() argument
1084 jjstateSet[0] = startState; in jjMoveNfa_0()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-generated-sources/com/github/javaparser/
DASTParserTokenManager.java1155 private int jjMoveNfa_0(int startState, int curPos) in jjMoveNfa_0() argument
1160 jjstateSet[0] = startState; in jjMoveNfa_0()
/external/javaparser/javaparser-core/generated-sources/javacc/com/github/javaparser/
DGeneratedJavaParserTokenManager.java1274 private int jjMoveNfa_0(int startState, int curPos) in jjMoveNfa_0() argument
1279 jjstateSet[0] = startState; in jjMoveNfa_0()

12