Lines Matching defs:s
204 * Implements Jim Idle's magic sync mechanism in closures and optional
250 /** @var ATNState $s */
251 $s = $interpreter->atn->states[$recognizer->getState()];
267 $nextTokens = $recognizer->getATN()->nextTokens($s);
279 // It's possible the next token won't match; information tracked
287 switch ($s->getStateType()) {
342 $msg = \sprintf('no viable alternative at input %s', $this->escapeWSAndQuote($input));
365 'mismatched input %s expecting %s',
384 $msg = \sprintf('rule %s %s', $recognizer->getCurrentRuleName(), $e->getMessage());
420 'extraneous input %s expecting %s',
457 'missing %s at %s',
487 * and use the parser's {@see TokenFactory} to create it on the fly. The
688 $tokenText = \sprintf('<missing %s>', $recognizer->getVocabulary()->getDisplayName($expectedTokenType));
733 $s = $this->getSymbolText($t);
735 if ($s === null) {
737 $s = '<EOF>';
739 $s = '<' . $this->getSymbolType($t) . '>';
743 return $this->escapeWSAndQuote($s);
756 protected function escapeWSAndQuote(string $s) : string
758 return "'" . StringUtils::escapeWhitespace($s) . "'";
837 * ANTLR's error recovery mechanism is based upon original ideas: