mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-27 04:24:43 +01:00
947a897238
And improve the code a tad bit in general. I left YY2TBLSTATES and YYNLSTATES around, because I don't fully understand their role in the action double indexing.
100 lines
2.0 KiB
Plaintext
100 lines
2.0 KiB
Plaintext
<?php
|
|
$meta #
|
|
#semval($) $this->semValue
|
|
#semval($,%t) $this->semValue
|
|
#semval(%n) $this->semStack[$this->stackPos-(%l-%n)]
|
|
#semval(%n,%t) $this->semStack[$this->stackPos-(%l-%n)]
|
|
#include;
|
|
|
|
namespace PhpParser;
|
|
|
|
/* 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
|
|
* * the skeleton file grammar/kymacc.php.parser
|
|
* * the preprocessing script grammar/rebuildParser.php
|
|
*/
|
|
class Parser extends ParserAbstract
|
|
{
|
|
protected $tokenToSymbolMapSize = #(YYMAXLEX);
|
|
protected $actionTableSize = #(YYLAST);
|
|
protected $gotoTableSize = #(YYGLAST);
|
|
|
|
protected $invalidToken = #(YYBADCH);
|
|
protected $defaultAction = #(YYDEFAULT);
|
|
protected $unexpectedTokenRule = #(YYUNEXPECTED);
|
|
|
|
protected $YY2TBLSTATE = #(YY2TBLSTATE);
|
|
protected $YYNLSTATES = #(YYNLSTATES);
|
|
|
|
#tokenval
|
|
const %s = %n;
|
|
#endtokenval
|
|
|
|
protected $symbolToName = array(
|
|
#listvar terminals
|
|
);
|
|
|
|
protected $tokenToSymbol = array(
|
|
#listvar yytranslate
|
|
);
|
|
|
|
protected $action = array(
|
|
#listvar yyaction
|
|
);
|
|
|
|
protected $actionCheck = array(
|
|
#listvar yycheck
|
|
);
|
|
|
|
protected $actionBase = array(
|
|
#listvar yybase
|
|
);
|
|
|
|
protected $actionDefault = array(
|
|
#listvar yydefault
|
|
);
|
|
|
|
protected $goto = array(
|
|
#listvar yygoto
|
|
);
|
|
|
|
protected $gotoCheck = array(
|
|
#listvar yygcheck
|
|
);
|
|
|
|
protected $gotoBase = array(
|
|
#listvar yygbase
|
|
);
|
|
|
|
protected $gotoDefault = array(
|
|
#listvar yygdefault
|
|
);
|
|
|
|
protected $ruleToNonTerminal = array(
|
|
#listvar yylhs
|
|
);
|
|
|
|
protected $ruleToLength = array(
|
|
#listvar yylen
|
|
);
|
|
#if -t
|
|
|
|
protected $productions = array(
|
|
#production-strings;
|
|
);
|
|
#endif
|
|
#reduce
|
|
|
|
protected function reduceRule%n($attributes) {
|
|
%b
|
|
}
|
|
#noact
|
|
|
|
protected function reduceRule%n() {
|
|
$this->semValue = $this->semStack[$this->stackPos];
|
|
}
|
|
#endreduce
|
|
}
|
|
#tailcode;
|