1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-30 04:19:30 +01:00
PHP-Parser/grammar/kmyacc.php.parser

101 lines
2.0 KiB
Plaintext
Raw Normal View History

2011-04-18 19:02:30 +02:00
<?php
$meta #
#semval($) $this->semValue
#semval($,%t) $this->semValue
#semval(%n) $this->stackPos-(%l-%n)
#semval(%n,%t) $this->stackPos-(%l-%n)
2011-04-18 19:02:30 +02:00
namespace PhpParser;
#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:
* * the grammar file grammar/zend_language_parser.phpy
* * 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
*/
class Parser extends 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);
protected $YY2TBLSTATE = #(YY2TBLSTATE);
protected $YYNLSTATES = #(YYNLSTATES);
2011-04-18 19:02:30 +02:00
#tokenval
2011-04-18 19:02:30 +02:00
const %s = %n;
#endtokenval
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
#reduce
2011-04-18 19:02:30 +02:00
protected function reduceRule%n() {
2011-04-18 19:02:30 +02:00
%b
}
#noact
protected function reduceRule%n() {
$this->semValue = $this->semStack[$this->stackPos];
}
#endreduce
2011-04-18 19:02:30 +02:00
}
#tailcode;