Lines Matching refs:symbol
222 $symbol = self::SYMBOL_NONE;
248 if ($symbol === self::SYMBOL_NONE) {
262 $symbol = $this->phpTokenToSymbol[$tokenId];
267 $idx = $this->actionBase[$state] + $symbol;
268 … if ((($idx >= 0 && $idx < $this->actionTableSize && $this->actionCheck[$idx] === $symbol)
270 … && ($idx = $this->actionBase[$state + $this->numNonLeafStates] + $symbol) >= 0
271 && $idx < $this->actionTableSize && $this->actionCheck[$idx] === $symbol))
289 $symbol = self::SYMBOL_NONE;
360 $msg = $this->getErrorMessage($symbol, $state);
395 if ($symbol === 0) {
401 $symbol = self::SYMBOL_NONE;
423 * @param int $symbol Unexpected symbol
428 protected function getErrorMessage(int $symbol, int $state): string { argument
434 return 'Syntax error, unexpected ' . $this->symbolToName[$symbol] . $expectedString;
448 foreach ($this->symbolToName as $symbol => $name) {
449 $idx = $base + $symbol;
450 if ($idx >= 0 && $idx < $this->actionTableSize && $this->actionCheck[$idx] === $symbol
452 && ($idx = $this->actionBase[$state + $this->numNonLeafStates] + $symbol) >= 0
453 && $idx < $this->actionTableSize && $this->actionCheck[$idx] === $symbol
457 && $symbol !== $this->errorSymbol