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