Home
last modified time | relevance | path

Searched refs:atn (Results 1 – 15 of 15) sorted by relevance

/template/strap/vendor/antlr/antlr4-php-runtime/src/Atn/
H A DATNDeserializer.php137 $atn = $this->readATN();
138 $this->readStates($atn);
139 $this->readRules($atn);
140 $this->readModes($atn);
157 $this->readEdges($atn, $sets);
158 $this->readDecisions($atn);
159 $this->readLexerActions($atn);
160 $this->markPrecedenceDecisions($atn);
161 $this->verifyATN($atn);
163 if ($atn->grammarType === ATN::ATN_TYPE_PARSER
[all …]
H A DATNSimulator.php35 public $atn; variable in Antlr\\Antlr4\\Runtime\\Atn\\ATNSimulator
62 public function __construct(ATN $atn, PredictionContextCache $sharedContextCache) argument
64 $this->atn = $atn;
H A DParserATNSimulator.php299 ATN $atn, argument
303 parent::__construct($atn, $sharedContextCache);
316 $decisionState = $this->atn->getDecisionState($d);
703 $decisionState = $this->atn->getDecisionState($dfa->decision);
1081 $nextTokens = $this->atn->nextTokens($config->state);
1084 $endOfRuleState = $this->atn->ruleToStopState[$config->state->ruleIndex];
1096 $initialContext = PredictionContext::fromRuleContext($this->atn, $ctx);
1304 return $trans->matches($ttype, 0, $this->atn->maxTokenType) ? $trans->target : null;
1666 $returnState = $this->atn->states[$config->context->getReturnState($i)];
1920 $returnState = $this->atn->states[$config->context->getReturnState($i)];
[all …]
H A DLexerATNSimulator.php82 ATN $atn, argument
86 parent::__construct($atn, $sharedContextCache);
160 $startState = $this->atn->modeToStartState[$this->mode];
513 $returnState = $this->atn->states[$config->context->getReturnState($i)];
636 $lexerAction = $this->atn->lexerActions[$t->actionIndex];
806 … $prediction = $this->atn->ruleToTokenType[$firstConfigWithRuleStopState->state->ruleIndex];
H A DATN.php134 $state->atn = $this;
/template/strap/ComboStrap/PageSqlParser/
H A DPageSqlLexer.php597 protected static $atn; variable in ComboStrap\\PageSqlParser\\PageSqlLexer
606 …$this->interp = new LexerATNSimulator($this, self::$atn, self::$decisionToDFA, self::$sharedContex…
611 if (self::$atn !== null) {
617 $atn = (new ATNDeserializer())->deserialize(self::SERIALIZED_ATN);
620 for ($i = 0, $count = $atn->getNumberOfDecisions(); $i < $count; $i++) {
621 $decisionToDFA[] = new DFA($atn->getDecisionState($i), $i);
624 self::$atn = $atn;
669 return self::$atn;
H A DPageSql.interp164 atn:
H A DPageSqlParser.php232 protected static $atn; variable in ComboStrap\\PageSqlParser\\PageSqlParser
242 …$this->interp = new ParserATNSimulator($this, self::$atn, self::$decisionToDFA, self::$sharedConte…
247 if (self::$atn !== null) {
253 $atn = (new ATNDeserializer())->deserialize(self::SERIALIZED_ATN);
256 for ($i = 0, $count = $atn->getNumberOfDecisions(); $i < $count; $i++) {
257 $decisionToDFA[] = new DFA($atn->getDecisionState($i), $i);
260 self::$atn = $atn;
282 return self::$atn;
H A DPageSqlLexer.interp259 atn:
/template/strap/vendor/antlr/antlr4-php-runtime/src/
H A DLL1Analyzer.php30 public $atn; variable in Antlr\\Antlr4\\Runtime\\LL1Analyzer
32 public function __construct(ATN $atn) argument
34 $this->atn = $atn;
108 $lookContext = $context !== null && $s->atn !== null ?
109 PredictionContext::fromRuleContext($s->atn, $context) :
224 $returnState = $this->atn->states[$context->getReturnState($i)];
297 $look->addRange(Token::MIN_USER_TOKEN_TYPE, $this->atn->maxTokenType);
305 $this->atn->maxTokenType
H A DParser.php780 $atn = $this->interpreter()->atn;
783 $s = $atn->states[$this->getState()];
784 $following = $atn->nextTokens($s);
796 $invokingState = $atn->states[$ctx->invokingState];
800 $following = $atn->nextTokens($rt->followState);
832 $atn = $this->interpreter()->atn;
833 $s = $atn->states[$this->getState()];
835 return $atn->nextTokens($s);
/template/strap/vendor/antlr/antlr4-php-runtime/src/Error/
H A DDefaultErrorStrategy.php251 $s = $interpreter->atn->states[$recognizer->getState()];
579 $atn = $interpreter->atn;
581 $currentState = $atn->states[$recognizer->getState()];
583 $expectingAtLL2 = $atn->nextTokensInContext($next, $recognizer->getContext());
863 $atn = $interpreter->atn;
870 $invokingState = $atn->states[$ctx->invokingState];
873 $follow = $atn->nextTokens($rt->followState);
/template/strap/vendor/antlr/antlr4-php-runtime/src/Error/Exceptions/
H A DFailedPredicateException.php42 $s = $interpreter->atn->states[$recognizer->getState()];
/template/strap/vendor/antlr/antlr4-php-runtime/src/PredictionContexts/
H A DPredictionContext.php75 public static function fromRuleContext(ATN $atn, ?RuleContext $outerContext) : PredictionContext argument
88 $parent = self::fromRuleContext($atn, $outerContext->getParent());
89 $state = $atn->states[$outerContext->invokingState];
/template/strap/vendor/antlr/antlr4-php-runtime/src/Atn/States/
H A DATNState.php51 public $atn; variable in Antlr\\Antlr4\\Runtime\\Atn\\States\\ATNState