Lines Matching refs:state
231 $state = 0;
232 $stateStack = [$state];
245 if ($this->actionBase[$state] === 0) {
246 $rule = $this->actionDefault[$state];
267 $idx = $this->actionBase[$state] + $symbol;
269 || ($state < $this->YY2TBLSTATE
270 … && ($idx = $this->actionBase[$state + $this->numNonLeafStates] + $symbol) >= 0
285 $stateStack[$stackPos] = $state = $action;
305 $rule = $this->actionDefault[$state];
343 $state = $this->goto[$idx];
345 $state = $this->gotoDefault[$nonTerminal];
349 $stateStack[$stackPos] = $state;
360 $msg = $this->getErrorMessage($symbol, $state);
370 (($idx = $this->actionBase[$state] + $this->errorSymbol) >= 0
372 || ($state < $this->YY2TBLSTATE
373 … && ($idx = $this->actionBase[$state + $this->numNonLeafStates] + $this->errorSymbol) >= 0
380 $state = $stateStack[--$stackPos];
386 $stateStack[$stackPos] = $state = $action;
406 if ($state < $this->numNonLeafStates) {
411 $rule = $state - $this->numNonLeafStates;
424 * @param int $state State at time of error
428 protected function getErrorMessage(int $symbol, int $state): string { argument
430 if ($expected = $this->getExpectedTokens($state)) {
440 * @param int $state State
444 protected function getExpectedTokens(int $state): array { argument
447 $base = $this->actionBase[$state];
451 || $state < $this->YY2TBLSTATE
452 && ($idx = $this->actionBase[$state + $this->numNonLeafStates] + $symbol) >= 0