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