Lines Matching defs:parser

83  * memory. The goal is not to create the world's fastest parser anyway. I'd like
161 * All instances of the same parser share the same decision DFAs through a
197 * syntax error. For maximum speed, Sam starts the parser set to pure SLL
200 * parser.{@see Parser::getInterpreter()}.
202 * parser->{@see Parser::setErrorHandler()}(new {@see BailErrorStrategy}());
257 protected $parser;
269 * parser/atnsim object because it can only handle one input at a time.
298 Parser $parser,
305 $this->parser = $parser;
352 // parser precedence, and is provided by a DFA method.
354 $s0 = $dfa->getPrecedenceStartState($this->parser->getPrecedence());
366 $outerContext->toString($this->parser->getRuleNames())
401 $dfa->setPrecedenceStartState($this->parser->getPrecedence(), $s0);
411 $this->log[] = \sprintf('DFA after predictATN: %s', $dfa->toString($this->parser->getVocabulary()));
1260 $config->semanticContext->evalPrecedence($this->parser, $this->outerContext) :
1414 * the parser. Specifically, this could occur if the only configuration
1419 * in the parser will identify the specific predicate which is preventing
1420 * the parser from successfully parsing the decision rule, which helps
1427 * @param ParserRuleContext $outerContext The \gamma_0 initial parser context
1428 * from the paper or the parser stack
1503 $predicateEvaluationResult = $c->semanticContext->eval($this->parser, $outerContext);
1580 return $pred->eval($this->parser, $parserCallStack);
1846 * the lookahead (but not parser) consumes a token.
1991 if ($this->parser !== null && $index >= 0) {
1992 return $this->parser->getRuleNames()[$index];
2079 if ($this->parser !== null) {
2082 \implode(', ', $this->parser->getRuleInvocationStack())
2102 $pt->getPredicate()->eval($this->parser, $this->outerContext) :
2139 if ($this->parser !== null) {
2142 \implode(', ', $this->parser->getRuleInvocationStack())
2161 $pt->getPredicate()->eval($this->parser, $this->outerContext) :
2273 $vocabulary = $this->parser !== null ? $this->parser->getVocabulary() : VocabularyImpl::emptyVocabulary();
2295 $this->parser,
2362 $this->log[] = 'DFA =' . \PHP_EOL . $dfa->toString($this->parser->getVocabulary());
2423 $tokenStream = $this->parser->getTokenStream();
2433 if ($this->parser !== null) {
2434 $this->parser->getErrorListenerDispatch()->reportAttemptingFullContext(
2435 $this->parser,
2454 $tokenStream = $this->parser->getTokenStream();
2464 if ($this->parser !== null) {
2465 $this->parser->getErrorListenerDispatch()->reportContextSensitivity(
2466 $this->parser,
2490 $tokenStream = $this->parser->getTokenStream();
2500 if ($this->parser !== null) {
2501 $this->parser->getErrorListenerDispatch()->reportAmbiguity(
2502 $this->parser,
2525 return $this->parser;