1<?php 2$meta # 3#semval($) $this->semValue 4#semval($,%t) $this->semValue 5#semval(%n) $stackPos-(%l-%n) 6#semval(%n,%t) $stackPos-(%l-%n) 7 8namespace PhpParser\Parser; 9 10use PhpParser\Error; 11use PhpParser\Node; 12use PhpParser\Node\Expr; 13use PhpParser\Node\Name; 14use PhpParser\Node\Scalar; 15use PhpParser\Node\Stmt; 16#include; 17 18/* This is an automatically GENERATED file, which should not be manually edited. 19 * Instead edit one of the following: 20 * * the grammar files grammar/php5.y or grammar/php7.y 21 * * the skeleton file grammar/parser.template 22 * * the preprocessing script grammar/rebuildParsers.php 23 */ 24class #(-p) extends \PhpParser\ParserAbstract 25{ 26 protected $tokenToSymbolMapSize = #(YYMAXLEX); 27 protected $actionTableSize = #(YYLAST); 28 protected $gotoTableSize = #(YYGLAST); 29 30 protected $invalidSymbol = #(YYBADCH); 31 protected $errorSymbol = #(YYINTERRTOK); 32 protected $defaultAction = #(YYDEFAULT); 33 protected $unexpectedTokenRule = #(YYUNEXPECTED); 34 35 protected $YY2TBLSTATE = #(YY2TBLSTATE); 36 protected $numNonLeafStates = #(YYNLSTATES); 37 38 protected $symbolToName = array( 39 #listvar terminals 40 ); 41 42 protected $tokenToSymbol = array( 43 #listvar yytranslate 44 ); 45 46 protected $action = array( 47 #listvar yyaction 48 ); 49 50 protected $actionCheck = array( 51 #listvar yycheck 52 ); 53 54 protected $actionBase = array( 55 #listvar yybase 56 ); 57 58 protected $actionDefault = array( 59 #listvar yydefault 60 ); 61 62 protected $goto = array( 63 #listvar yygoto 64 ); 65 66 protected $gotoCheck = array( 67 #listvar yygcheck 68 ); 69 70 protected $gotoBase = array( 71 #listvar yygbase 72 ); 73 74 protected $gotoDefault = array( 75 #listvar yygdefault 76 ); 77 78 protected $ruleToNonTerminal = array( 79 #listvar yylhs 80 ); 81 82 protected $ruleToLength = array( 83 #listvar yylen 84 ); 85#if -t 86 87 protected $productions = array( 88 #production-strings; 89 ); 90#endif 91 92 protected function initReduceCallbacks() { 93 $this->reduceCallbacks = [ 94#reduce 95 %n => function ($stackPos) { 96 %b 97 }, 98#noact 99 %n => function ($stackPos) { 100 $this->semValue = $this->semStack[$stackPos]; 101 }, 102#endreduce 103 ]; 104 } 105} 106#tailcode; 107