2011-04-18 19:02:30 +02:00
|
|
|
<?php
|
2011-05-31 16:33:11 +02:00
|
|
|
$meta #
|
2014-04-20 13:16:54 +02:00
|
|
|
#semval($) $this->semValue
|
|
|
|
#semval($,%t) $this->semValue
|
2017-02-04 20:18:56 +01:00
|
|
|
#semval(%n) $stackPos-(%l-%n)
|
|
|
|
#semval(%n,%t) $stackPos-(%l-%n)
|
2011-04-18 19:02:30 +02:00
|
|
|
|
2015-05-02 22:50:11 +02:00
|
|
|
namespace PhpParser\Parser;
|
2015-06-13 18:39:55 +02:00
|
|
|
|
|
|
|
use PhpParser\Error;
|
|
|
|
use PhpParser\Node;
|
|
|
|
use PhpParser\Node\Expr;
|
|
|
|
use PhpParser\Node\Name;
|
|
|
|
use PhpParser\Node\Scalar;
|
|
|
|
use PhpParser\Node\Stmt;
|
2015-04-30 19:18:42 +02:00
|
|
|
#include;
|
2014-02-06 14:44:16 +01:00
|
|
|
|
2012-03-02 00:43:34 +01:00
|
|
|
/* This is an automatically GENERATED file, which should not be manually edited.
|
|
|
|
* Instead edit one of the following:
|
2015-06-13 13:30:20 +02:00
|
|
|
* * the grammar files grammar/php5.y or grammar/php7.y
|
2015-06-13 18:39:55 +02:00
|
|
|
* * the skeleton file grammar/parser.template
|
2015-06-13 13:30:20 +02:00
|
|
|
* * the preprocessing script grammar/rebuildParsers.php
|
2011-04-18 19:02:30 +02:00
|
|
|
*/
|
2015-06-13 13:50:16 +02:00
|
|
|
class #(-p) extends \PhpParser\ParserAbstract
|
2011-04-18 19:02:30 +02:00
|
|
|
{
|
2014-04-20 13:16:54 +02:00
|
|
|
protected $tokenToSymbolMapSize = #(YYMAXLEX);
|
|
|
|
protected $actionTableSize = #(YYLAST);
|
|
|
|
protected $gotoTableSize = #(YYGLAST);
|
2012-04-29 22:57:46 +02:00
|
|
|
|
2015-02-02 23:25:34 +01:00
|
|
|
protected $invalidSymbol = #(YYBADCH);
|
|
|
|
protected $errorSymbol = #(YYINTERRTOK);
|
2014-04-20 13:16:54 +02:00
|
|
|
protected $defaultAction = #(YYDEFAULT);
|
|
|
|
protected $unexpectedTokenRule = #(YYUNEXPECTED);
|
|
|
|
|
|
|
|
protected $YY2TBLSTATE = #(YY2TBLSTATE);
|
|
|
|
protected $YYNLSTATES = #(YYNLSTATES);
|
2011-04-18 19:02:30 +02:00
|
|
|
|
2014-04-20 13:16:54 +02:00
|
|
|
protected $symbolToName = array(
|
2011-05-31 16:33:11 +02:00
|
|
|
#listvar terminals
|
2011-04-18 19:02:30 +02:00
|
|
|
);
|
|
|
|
|
2014-04-20 13:16:54 +02:00
|
|
|
protected $tokenToSymbol = array(
|
2011-05-31 16:33:11 +02:00
|
|
|
#listvar yytranslate
|
2011-04-18 19:02:30 +02:00
|
|
|
);
|
|
|
|
|
2014-04-20 13:16:54 +02:00
|
|
|
protected $action = array(
|
2011-05-31 16:33:11 +02:00
|
|
|
#listvar yyaction
|
2011-04-18 19:02:30 +02:00
|
|
|
);
|
|
|
|
|
2014-04-20 13:16:54 +02:00
|
|
|
protected $actionCheck = array(
|
2011-05-31 16:33:11 +02:00
|
|
|
#listvar yycheck
|
2011-04-18 19:02:30 +02:00
|
|
|
);
|
|
|
|
|
2014-04-20 13:16:54 +02:00
|
|
|
protected $actionBase = array(
|
2011-05-31 16:33:11 +02:00
|
|
|
#listvar yybase
|
2011-04-18 19:02:30 +02:00
|
|
|
);
|
|
|
|
|
2014-04-20 13:16:54 +02:00
|
|
|
protected $actionDefault = array(
|
2011-05-31 16:33:11 +02:00
|
|
|
#listvar yydefault
|
2011-04-18 19:02:30 +02:00
|
|
|
);
|
|
|
|
|
2014-04-20 13:16:54 +02:00
|
|
|
protected $goto = array(
|
2011-05-31 16:33:11 +02:00
|
|
|
#listvar yygoto
|
2011-04-18 19:02:30 +02:00
|
|
|
);
|
|
|
|
|
2014-04-20 13:16:54 +02:00
|
|
|
protected $gotoCheck = array(
|
2011-05-31 16:33:11 +02:00
|
|
|
#listvar yygcheck
|
2011-04-18 19:02:30 +02:00
|
|
|
);
|
|
|
|
|
2014-04-20 13:16:54 +02:00
|
|
|
protected $gotoBase = array(
|
2011-05-31 16:33:11 +02:00
|
|
|
#listvar yygbase
|
2011-04-18 19:02:30 +02:00
|
|
|
);
|
|
|
|
|
2014-04-20 13:16:54 +02:00
|
|
|
protected $gotoDefault = array(
|
2011-05-31 16:33:11 +02:00
|
|
|
#listvar yygdefault
|
2011-04-18 19:02:30 +02:00
|
|
|
);
|
|
|
|
|
2014-04-20 13:16:54 +02:00
|
|
|
protected $ruleToNonTerminal = array(
|
2011-05-31 16:33:11 +02:00
|
|
|
#listvar yylhs
|
2011-04-18 19:02:30 +02:00
|
|
|
);
|
|
|
|
|
2014-04-20 13:16:54 +02:00
|
|
|
protected $ruleToLength = array(
|
2011-05-31 16:33:11 +02:00
|
|
|
#listvar yylen
|
2011-04-18 19:02:30 +02:00
|
|
|
);
|
2011-05-31 16:33:11 +02:00
|
|
|
#if -t
|
2014-04-20 00:08:59 +02:00
|
|
|
|
2014-04-20 13:16:54 +02:00
|
|
|
protected $productions = array(
|
2011-08-14 15:36:15 +02:00
|
|
|
#production-strings;
|
|
|
|
);
|
2011-05-31 16:33:11 +02:00
|
|
|
#endif
|
2011-04-18 19:02:30 +02:00
|
|
|
|
2017-02-05 11:53:48 +01:00
|
|
|
protected function initReduceCallbacks() {
|
|
|
|
$this->reduceCallbacks = [
|
|
|
|
#reduce
|
|
|
|
%n => function ($stackPos) {
|
|
|
|
%b
|
|
|
|
},
|
2011-05-31 16:33:11 +02:00
|
|
|
#noact
|
2017-02-05 11:53:48 +01:00
|
|
|
%n => function ($stackPos) {
|
|
|
|
$this->semValue = $this->semStack[$stackPos];
|
|
|
|
},
|
2011-05-31 16:33:11 +02:00
|
|
|
#endreduce
|
2017-02-05 11:53:48 +01:00
|
|
|
];
|
|
|
|
}
|
2011-04-18 19:02:30 +02:00
|
|
|
}
|
2011-05-31 16:33:11 +02:00
|
|
|
#tailcode;
|