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
|
2015-04-22 15:57:29 +02:00
|
|
|
#semval(%n) $this->stackPos-(%l-%n)
|
|
|
|
#semval(%n,%t) $this->stackPos-(%l-%n)
|
2011-04-18 19:02:30 +02:00
|
|
|
|
2014-02-06 14:44:16 +01:00
|
|
|
namespace PhpParser;
|
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:
|
|
|
|
* * the grammar file grammar/zend_language_parser.phpy
|
2014-04-20 00:08:59 +02:00
|
|
|
* * the skeleton file grammar/kymacc.php.parser
|
2012-03-02 00:43:34 +01:00
|
|
|
* * the preprocessing script grammar/rebuildParser.php
|
2011-04-18 19:02:30 +02:00
|
|
|
*/
|
2014-04-20 00:08:59 +02:00
|
|
|
class Parser extends 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
|
|
|
|
2011-05-31 16:33:11 +02:00
|
|
|
#tokenval
|
2011-04-18 19:02:30 +02:00
|
|
|
const %s = %n;
|
2011-05-31 16:33:11 +02:00
|
|
|
#endtokenval
|
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
|
|
|
|
#reduce
|
2011-04-18 19:02:30 +02:00
|
|
|
|
2015-04-22 15:57:29 +02:00
|
|
|
protected function reduceRule%n() {
|
2011-04-18 19:02:30 +02:00
|
|
|
%b
|
|
|
|
}
|
2011-05-31 16:33:11 +02:00
|
|
|
#noact
|
2011-04-20 13:40:29 +02:00
|
|
|
|
2014-04-20 13:16:54 +02:00
|
|
|
protected function reduceRule%n() {
|
|
|
|
$this->semValue = $this->semStack[$this->stackPos];
|
2011-04-20 13:40:29 +02:00
|
|
|
}
|
2011-05-31 16:33:11 +02:00
|
|
|
#endreduce
|
2011-04-18 19:02:30 +02:00
|
|
|
}
|
2011-05-31 16:33:11 +02:00
|
|
|
#tailcode;
|