Chris@0: semValue Chris@0: #semval($,%t) $this->semValue Chris@13: #semval(%n) $stackPos-(%l-%n) Chris@13: #semval(%n,%t) $stackPos-(%l-%n) Chris@0: Chris@0: namespace PhpParser\Parser; Chris@0: Chris@0: use PhpParser\Error; Chris@0: use PhpParser\Node; Chris@0: use PhpParser\Node\Expr; Chris@0: use PhpParser\Node\Name; Chris@0: use PhpParser\Node\Scalar; Chris@0: use PhpParser\Node\Stmt; Chris@0: #include; Chris@0: Chris@0: /* This is an automatically GENERATED file, which should not be manually edited. Chris@0: * Instead edit one of the following: Chris@0: * * the grammar files grammar/php5.y or grammar/php7.y Chris@0: * * the skeleton file grammar/parser.template Chris@0: * * the preprocessing script grammar/rebuildParsers.php Chris@0: */ Chris@0: class #(-p) extends \PhpParser\ParserAbstract Chris@0: { Chris@0: protected $tokenToSymbolMapSize = #(YYMAXLEX); Chris@0: protected $actionTableSize = #(YYLAST); Chris@0: protected $gotoTableSize = #(YYGLAST); Chris@0: Chris@0: protected $invalidSymbol = #(YYBADCH); Chris@0: protected $errorSymbol = #(YYINTERRTOK); Chris@0: protected $defaultAction = #(YYDEFAULT); Chris@0: protected $unexpectedTokenRule = #(YYUNEXPECTED); Chris@0: Chris@13: protected $YY2TBLSTATE = #(YY2TBLSTATE); Chris@13: protected $numNonLeafStates = #(YYNLSTATES); Chris@0: Chris@0: protected $symbolToName = array( Chris@0: #listvar terminals Chris@0: ); Chris@0: Chris@0: protected $tokenToSymbol = array( Chris@0: #listvar yytranslate Chris@0: ); Chris@0: Chris@0: protected $action = array( Chris@0: #listvar yyaction Chris@0: ); Chris@0: Chris@0: protected $actionCheck = array( Chris@0: #listvar yycheck Chris@0: ); Chris@0: Chris@0: protected $actionBase = array( Chris@0: #listvar yybase Chris@0: ); Chris@0: Chris@0: protected $actionDefault = array( Chris@0: #listvar yydefault Chris@0: ); Chris@0: Chris@0: protected $goto = array( Chris@0: #listvar yygoto Chris@0: ); Chris@0: Chris@0: protected $gotoCheck = array( Chris@0: #listvar yygcheck Chris@0: ); Chris@0: Chris@0: protected $gotoBase = array( Chris@0: #listvar yygbase Chris@0: ); Chris@0: Chris@0: protected $gotoDefault = array( Chris@0: #listvar yygdefault Chris@0: ); Chris@0: Chris@0: protected $ruleToNonTerminal = array( Chris@0: #listvar yylhs Chris@0: ); Chris@0: Chris@0: protected $ruleToLength = array( Chris@0: #listvar yylen Chris@0: ); Chris@0: #if -t Chris@0: Chris@0: protected $productions = array( Chris@0: #production-strings; Chris@0: ); Chris@0: #endif Chris@13: Chris@13: protected function initReduceCallbacks() { Chris@13: $this->reduceCallbacks = [ Chris@0: #reduce Chris@13: %n => function ($stackPos) { Chris@13: %b Chris@13: }, Chris@13: #noact Chris@13: %n => function ($stackPos) { Chris@13: $this->semValue = $this->semStack[$stackPos]; Chris@13: }, Chris@13: #endreduce Chris@13: ]; Chris@0: } Chris@0: } Chris@0: #tailcode;