Lines Matching refs:ATN

44  * We begin with ATN simulation to build paths in a DFA. Subsequent prediction
46 * the current symbol, the algorithm fails over to the ATN simulation to
56 * prediction occurs without invoking another rule's ATN, there are no context
62 * retry the ATN simulation, this time using full outer context without adding
71 * simulation, we will again retry the ATN simulation using full context mode.
73 * ATN each time we get that input.
79 * of visible predicates from the ATN start state changes depending on the
138 * ATN simulation whereas, if we had evaluated predicates on-the-fly during
142 * When building a DFA accept state during ATN simulation, we evaluate any
154 * During full LL ATN simulation, closure always evaluates predicates and
162 * static field. Each instance gets its own ATN simulator but they share the
189 * but in either case the DFA simulator works; if `null`, and requests ATN
299 ATN $atn,
373 throw new \RuntimeException('ATN Start State cannot be null.');
424 * Performs ATN simulation to compute a predicted alternative based
426 * having to traverse the ATN again for the same input sequence.
429 * set of ATN configs (proposed DFA state):
499 * ATN states in SLL implies LL will also get nowhere.
513 if ($alt !== ATN::INVALID_ALT_NUMBER) {
563 throw new \RuntimeException('ATN Start State cannot be null.');
678 if ($predictedAlt !== ATN::INVALID_ALT_NUMBER) {
710 $D->prediction = ATN::INVALID_ALT_NUMBER;
735 $dfaState->prediction = ATN::INVALID_ALT_NUMBER; // make sure we use preds
782 * ATN states in SLL implies LL will also get nowhere.
793 if ($alt !== ATN::INVALID_ALT_NUMBER) {
814 if ($reach->uniqueAlt !== ATN::INVALID_ALT_NUMBER) {
823 if ($predictedAlt !== ATN::INVALID_ALT_NUMBER) {
851 if ($reach->uniqueAlt !== ATN::INVALID_ALT_NUMBER) {
976 } elseif (self::getUniqueAlt($intermediate) !== ATN::INVALID_ALT_NUMBER) {
1047 * When `lookToEndOfRule` is true, this method uses {@see ATN::nextTokens()}
1169 * ATN state and predicate context, remove any configuration associated with
1209 * same ATN state with the same prediction context. This transformation is
1229 * If the above grammar, the ATN state immediately before the token
1397 * {@see ParserATNSimulator::error()} state was reached during ATN simulation.
1400 * algorithm to identify an ATN configuration which successfully parsed the
1410 * - Otherwise, return {@see ATN::INVALID_ALT_NUMBER}.
1423 * @param ATNConfigSet $configs The ATN configurations which were valid
1432 * or {@see ATN::INVALID_ALT_NUMBER} if a suitable alternative
1448 if ($alt !== ATN::INVALID_ALT_NUMBER) {
1458 if ($alt !== ATN::INVALID_ALT_NUMBER) {
1465 return ATN::INVALID_ALT_NUMBER;
1479 return $alts->length() === 0 ? ATN::INVALID_ALT_NUMBER : $alts->getMinElement();
2225 When the ATN simulation reaches the state before ';', it has a DFA
2256 if ($configs->uniqueAlt !== ATN::INVALID_ALT_NUMBER) {
2306 $alt = ATN::INVALID_ALT_NUMBER;
2309 if ($alt === ATN::INVALID_ALT_NUMBER) {
2312 return ATN::INVALID_ALT_NUMBER;