Lines Matching defs:token
113 * Indicates parser has matched EOF token. See {@see Parser::exitRule()}.
156 * {@see Parser::getBuildParseTree()} is `true` and the token index
162 * @param int $ttype the token type to match.
187 // we must have conjured up a new token during single token insertion
203 * If {@see Parser::getBuildParseTree()} is `true` and the token index
217 $t = $this->token();
226 // we must have conjured up a new token during single token insertion
381 * Tell our token source and error strategy about a new way to create tokens.
431 throw new \RuntimeException('The stream must be a token stream.');
445 throw new \RuntimeException('The current token stream is null.');
451 /** Set the token stream and reset the parser. */
461 * into the label for the associated token ref; e.g., x=ID.
468 private function token() : Token
470 $token = $this->getCurrentToken();
472 if ($token === null) {
473 throw new \RuntimeException('The current token is null.');
476 return $token;
485 $offendingToken = $this->token();
518 $o = $this->token();
548 * How to create a token leaf node associated with a parent.
557 /** How to create an error node, given a token, associated with a parent.
925 * events as well as token matches. This is for quick and dirty debugging.