1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-26 20:04:48 +01:00
PHP-Parser/grammar/parser.template

107 lines
2.3 KiB
Plaintext
Raw Permalink Normal View History

2011-04-18 19:02:30 +02:00
<?php
$meta #
#semval($) $this->semValue
#semval($,%t) $this->semValue
#semval(%n) $stackPos-(%l-%n)
#semval(%n,%t) $stackPos-(%l-%n)
2011-04-18 19:02:30 +02:00
namespace PhpParser\Parser;
use PhpParser\Error;
use PhpParser\Node;
use PhpParser\Node\Expr;
use PhpParser\Node\Name;
use PhpParser\Node\Scalar;
use PhpParser\Node\Stmt;
#include;
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
* * 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
*/
class #(-p) extends \PhpParser\ParserAbstract
2011-04-18 19:02:30 +02:00
{
protected $tokenToSymbolMapSize = #(YYMAXLEX);
protected $actionTableSize = #(YYLAST);
protected $gotoTableSize = #(YYGLAST);
protected $invalidSymbol = #(YYBADCH);
protected $errorSymbol = #(YYINTERRTOK);
protected $defaultAction = #(YYDEFAULT);
protected $unexpectedTokenRule = #(YYUNEXPECTED);
2017-11-12 15:58:24 +01:00
protected $YY2TBLSTATE = #(YY2TBLSTATE);
protected $numNonLeafStates = #(YYNLSTATES);
2011-04-18 19:02:30 +02:00
protected $symbolToName = array(
#listvar terminals
2011-04-18 19:02:30 +02:00
);
protected $tokenToSymbol = array(
#listvar yytranslate
2011-04-18 19:02:30 +02:00
);
protected $action = array(
#listvar yyaction
2011-04-18 19:02:30 +02:00
);
protected $actionCheck = array(
#listvar yycheck
2011-04-18 19:02:30 +02:00
);
protected $actionBase = array(
#listvar yybase
2011-04-18 19:02:30 +02:00
);
protected $actionDefault = array(
#listvar yydefault
2011-04-18 19:02:30 +02:00
);
protected $goto = array(
#listvar yygoto
2011-04-18 19:02:30 +02:00
);
protected $gotoCheck = array(
#listvar yygcheck
2011-04-18 19:02:30 +02:00
);
protected $gotoBase = array(
#listvar yygbase
2011-04-18 19:02:30 +02:00
);
protected $gotoDefault = array(
#listvar yygdefault
2011-04-18 19:02:30 +02:00
);
protected $ruleToNonTerminal = array(
#listvar yylhs
2011-04-18 19:02:30 +02:00
);
protected $ruleToLength = array(
#listvar yylen
2011-04-18 19:02:30 +02:00
);
#if -t
protected $productions = array(
#production-strings;
);
#endif
2011-04-18 19:02:30 +02:00
protected function initReduceCallbacks() {
$this->reduceCallbacks = [
#reduce
%n => function ($stackPos) {
%b
},
#noact
%n => function ($stackPos) {
$this->semValue = $this->semStack[$stackPos];
},
#endreduce
];
}
2011-04-18 19:02:30 +02:00
}
#tailcode;