2009-03-22 16:09:05 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Smarty Internal Plugin Templateparser
|
|
|
|
*
|
|
|
|
* This is the template parser.
|
|
|
|
* It is generated from the internal.templateparser.y file
|
|
|
|
* @package Smarty
|
|
|
|
* @subpackage Compiler
|
|
|
|
* @author Uwe Tews
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This can be used to store both the string representation of
|
|
|
|
* a token, and any useful meta-data associated with the token.
|
|
|
|
*
|
|
|
|
* meta-data should be stored as an array
|
|
|
|
*/
|
|
|
|
class TP_yyToken implements ArrayAccess
|
|
|
|
{
|
|
|
|
public $string = '';
|
|
|
|
public $metadata = array();
|
|
|
|
|
|
|
|
function __construct($s, $m = array())
|
|
|
|
{
|
|
|
|
if ($s instanceof TP_yyToken) {
|
|
|
|
$this->string = $s->string;
|
|
|
|
$this->metadata = $s->metadata;
|
|
|
|
} else {
|
|
|
|
$this->string = (string) $s;
|
|
|
|
if ($m instanceof TP_yyToken) {
|
|
|
|
$this->metadata = $m->metadata;
|
|
|
|
} elseif (is_array($m)) {
|
|
|
|
$this->metadata = $m;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function __toString()
|
|
|
|
{
|
|
|
|
return $this->_string;
|
|
|
|
}
|
|
|
|
|
|
|
|
function offsetExists($offset)
|
|
|
|
{
|
|
|
|
return isset($this->metadata[$offset]);
|
|
|
|
}
|
|
|
|
|
|
|
|
function offsetGet($offset)
|
|
|
|
{
|
|
|
|
return $this->metadata[$offset];
|
|
|
|
}
|
|
|
|
|
|
|
|
function offsetSet($offset, $value)
|
|
|
|
{
|
|
|
|
if ($offset === null) {
|
|
|
|
if (isset($value[0])) {
|
|
|
|
$x = ($value instanceof TP_yyToken) ?
|
|
|
|
$value->metadata : $value;
|
|
|
|
$this->metadata = array_merge($this->metadata, $x);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
$offset = count($this->metadata);
|
|
|
|
}
|
|
|
|
if ($value === null) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if ($value instanceof TP_yyToken) {
|
|
|
|
if ($value->metadata) {
|
|
|
|
$this->metadata[$offset] = $value->metadata;
|
|
|
|
}
|
|
|
|
} elseif ($value) {
|
|
|
|
$this->metadata[$offset] = $value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function offsetUnset($offset)
|
|
|
|
{
|
|
|
|
unset($this->metadata[$offset]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/** The following structure represents a single element of the
|
|
|
|
* parser's stack. Information stored includes:
|
|
|
|
*
|
|
|
|
* + The state number for the parser at this level of the stack.
|
|
|
|
*
|
|
|
|
* + The value of the token stored at this level of the stack.
|
|
|
|
* (In other words, the "major" token.)
|
|
|
|
*
|
|
|
|
* + The semantic value stored at this level of the stack. This is
|
|
|
|
* the information used by the action routines in the grammar.
|
|
|
|
* It is sometimes called the "minor" token.
|
|
|
|
*/
|
|
|
|
class TP_yyStackEntry
|
|
|
|
{
|
|
|
|
public $stateno; /* The state-number */
|
|
|
|
public $major; /* The major token value. This is the code
|
|
|
|
** number for the token at this stack level */
|
|
|
|
public $minor; /* The user-supplied minor token value. This
|
|
|
|
** is the value of the token */
|
|
|
|
};
|
|
|
|
|
|
|
|
// code external to the class is included here
|
|
|
|
|
|
|
|
// declare_class is output here
|
|
|
|
#line 12 "internal.templateparser.y"
|
|
|
|
class Smarty_Internal_Templateparser#line 109 "internal.templateparser.php"
|
|
|
|
{
|
|
|
|
/* First off, code is included which follows the "include_class" declaration
|
|
|
|
** in the input file. */
|
|
|
|
#line 14 "internal.templateparser.y"
|
|
|
|
|
|
|
|
// states whether the parse was successful or not
|
|
|
|
public $successful = true;
|
|
|
|
public $retvalue = 0;
|
|
|
|
private $lex;
|
|
|
|
private $internalError = false;
|
|
|
|
|
|
|
|
function __construct($lex, $compiler) {
|
|
|
|
// set instance object
|
|
|
|
self::instance($this);
|
|
|
|
$this->lex = $lex;
|
|
|
|
$this->smarty = Smarty::instance();
|
|
|
|
$this->compiler = $compiler;
|
|
|
|
$this->template = $this->compiler->template;
|
|
|
|
$this->cacher = $this->template->cacher_object;
|
|
|
|
$this->nocache = false;
|
|
|
|
$this->prefix_code = array();
|
|
|
|
$this->prefix_number = 0;
|
|
|
|
}
|
|
|
|
public static function &instance($new_instance = null)
|
|
|
|
{
|
|
|
|
static $instance = null;
|
|
|
|
if (isset($new_instance) && is_object($new_instance))
|
|
|
|
$instance = $new_instance;
|
|
|
|
return $instance;
|
|
|
|
}
|
|
|
|
|
|
|
|
#line 142 "internal.templateparser.php"
|
|
|
|
|
|
|
|
/* Next is all token values, as class constants
|
|
|
|
*/
|
|
|
|
/*
|
|
|
|
** These constants (all generated automatically by the parser generator)
|
|
|
|
** specify the various kinds of tokens (terminals) that the parser
|
|
|
|
** understands.
|
|
|
|
**
|
|
|
|
** Each symbol here is a terminal symbol in the grammar.
|
|
|
|
*/
|
|
|
|
const TP_OTHER = 1;
|
|
|
|
const TP_LDELSLASH = 2;
|
|
|
|
const TP_LDEL = 3;
|
|
|
|
const TP_RDEL = 4;
|
2009-06-14 13:08:13 +00:00
|
|
|
const TP_PHP = 5;
|
|
|
|
const TP_SHORTTAGSTART = 6;
|
|
|
|
const TP_SHORTTAGEND = 7;
|
|
|
|
const TP_COMMENTEND = 8;
|
|
|
|
const TP_COMMENTSTART = 9;
|
|
|
|
const TP_INTEGER = 10;
|
|
|
|
const TP_MATH = 11;
|
|
|
|
const TP_UNIMATH = 12;
|
|
|
|
const TP_INCDEC = 13;
|
|
|
|
const TP_OPENP = 14;
|
|
|
|
const TP_CLOSEP = 15;
|
|
|
|
const TP_OPENB = 16;
|
|
|
|
const TP_CLOSEB = 17;
|
|
|
|
const TP_DOLLAR = 18;
|
|
|
|
const TP_DOT = 19;
|
|
|
|
const TP_COMMA = 20;
|
|
|
|
const TP_COLON = 21;
|
|
|
|
const TP_DOUBLECOLON = 22;
|
|
|
|
const TP_SEMICOLON = 23;
|
|
|
|
const TP_VERT = 24;
|
|
|
|
const TP_EQUAL = 25;
|
|
|
|
const TP_SPACE = 26;
|
|
|
|
const TP_PTR = 27;
|
|
|
|
const TP_APTR = 28;
|
|
|
|
const TP_ID = 29;
|
|
|
|
const TP_EQUALS = 30;
|
|
|
|
const TP_NOTEQUALS = 31;
|
|
|
|
const TP_GREATERTHAN = 32;
|
|
|
|
const TP_LESSTHAN = 33;
|
|
|
|
const TP_GREATEREQUAL = 34;
|
|
|
|
const TP_LESSEQUAL = 35;
|
|
|
|
const TP_IDENTITY = 36;
|
|
|
|
const TP_NONEIDENTITY = 37;
|
|
|
|
const TP_NOT = 38;
|
|
|
|
const TP_LAND = 39;
|
|
|
|
const TP_LOR = 40;
|
|
|
|
const TP_QUOTE = 41;
|
|
|
|
const TP_SINGLEQUOTE = 42;
|
|
|
|
const TP_BOOLEAN = 43;
|
|
|
|
const TP_NULL = 44;
|
|
|
|
const TP_AS = 45;
|
|
|
|
const TP_ANDSYM = 46;
|
|
|
|
const TP_BACKTICK = 47;
|
|
|
|
const TP_HATCH = 48;
|
|
|
|
const TP_AT = 49;
|
|
|
|
const TP_ISODD = 50;
|
|
|
|
const TP_ISNOTODD = 51;
|
|
|
|
const TP_ISEVEN = 52;
|
|
|
|
const TP_ISNOTEVEN = 53;
|
|
|
|
const TP_ISODDBY = 54;
|
|
|
|
const TP_ISNOTODDBY = 55;
|
|
|
|
const TP_ISEVENBY = 56;
|
|
|
|
const TP_ISNOTEVENBY = 57;
|
|
|
|
const TP_ISDIVBY = 58;
|
|
|
|
const TP_ISNOTDIVBY = 59;
|
|
|
|
const TP_ISIN = 60;
|
|
|
|
const TP_LITERALSTART = 61;
|
|
|
|
const TP_LITERALEND = 62;
|
|
|
|
const TP_LDELIMTAG = 63;
|
|
|
|
const TP_RDELIMTAG = 64;
|
|
|
|
const TP_PHPSTART = 65;
|
|
|
|
const TP_PHPEND = 66;
|
|
|
|
const TP_XML = 67;
|
2009-07-29 16:43:54 +00:00
|
|
|
const YY_NO_ACTION = 432;
|
|
|
|
const YY_ACCEPT_ACTION = 431;
|
|
|
|
const YY_ERROR_ACTION = 430;
|
2009-03-22 16:09:05 +00:00
|
|
|
|
|
|
|
/* Next are that tables used to determine what action to take based on the
|
|
|
|
** current state and lookahead token. These tables are used to implement
|
|
|
|
** functions that take a state number and lookahead value and return an
|
|
|
|
** action integer.
|
|
|
|
**
|
|
|
|
** Suppose the action integer is N. Then the action is determined as
|
|
|
|
** follows
|
|
|
|
**
|
|
|
|
** 0 <= N < self::YYNSTATE Shift N. That is,
|
|
|
|
** push the lookahead
|
|
|
|
** token onto the stack
|
|
|
|
** and goto state N.
|
|
|
|
**
|
|
|
|
** self::YYNSTATE <= N < self::YYNSTATE+self::YYNRULE Reduce by rule N-YYNSTATE.
|
|
|
|
**
|
|
|
|
** N == self::YYNSTATE+self::YYNRULE A syntax error has occurred.
|
|
|
|
**
|
|
|
|
** N == self::YYNSTATE+self::YYNRULE+1 The parser accepts its
|
|
|
|
** input. (and concludes parsing)
|
|
|
|
**
|
|
|
|
** N == self::YYNSTATE+self::YYNRULE+2 No such action. Denotes unused
|
|
|
|
** slots in the yy_action[] table.
|
|
|
|
**
|
|
|
|
** The action table is constructed as a single large static array $yy_action.
|
|
|
|
** Given state S and lookahead X, the action is computed as
|
|
|
|
**
|
|
|
|
** self::$yy_action[self::$yy_shift_ofst[S] + X ]
|
|
|
|
**
|
|
|
|
** If the index value self::$yy_shift_ofst[S]+X is out of range or if the value
|
|
|
|
** self::$yy_lookahead[self::$yy_shift_ofst[S]+X] is not equal to X or if
|
|
|
|
** self::$yy_shift_ofst[S] is equal to self::YY_SHIFT_USE_DFLT, it means that
|
|
|
|
** the action is not in the table and that self::$yy_default[S] should be used instead.
|
|
|
|
**
|
|
|
|
** The formula above is for computing the action when the lookahead is
|
|
|
|
** a terminal symbol. If the lookahead is a non-terminal (as occurs after
|
|
|
|
** a reduce action) then the static $yy_reduce_ofst array is used in place of
|
|
|
|
** the static $yy_shift_ofst array and self::YY_REDUCE_USE_DFLT is used in place of
|
|
|
|
** self::YY_SHIFT_USE_DFLT.
|
|
|
|
**
|
|
|
|
** The following are the tables generated in this section:
|
|
|
|
**
|
|
|
|
** self::$yy_action A single table containing all actions.
|
|
|
|
** self::$yy_lookahead A table containing the lookahead for each entry in
|
|
|
|
** yy_action. Used to detect hash collisions.
|
|
|
|
** self::$yy_shift_ofst For each state, the offset into self::$yy_action for
|
|
|
|
** shifting terminals.
|
|
|
|
** self::$yy_reduce_ofst For each state, the offset into self::$yy_action for
|
|
|
|
** shifting non-terminals after a reduce.
|
|
|
|
** self::$yy_default Default action for each state.
|
|
|
|
*/
|
2009-07-29 16:43:54 +00:00
|
|
|
const YY_SZ_ACTTAB = 982;
|
2009-03-22 16:09:05 +00:00
|
|
|
static public $yy_action = array(
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 0 */ 148, 16, 278, 200, 243, 16, 71, 146, 245, 103,
|
|
|
|
/* 10 */ 16, 274, 277, 103, 178, 173, 180, 181, 103, 209,
|
|
|
|
/* 20 */ 137, 240, 1, 144, 223, 231, 220, 187, 184, 185,
|
|
|
|
/* 30 */ 186, 11, 2, 5, 9, 10, 6, 180, 181, 223,
|
|
|
|
/* 40 */ 116, 220, 131, 188, 158, 71, 35, 71, 187, 184,
|
|
|
|
/* 50 */ 185, 186, 11, 2, 5, 9, 10, 6, 171, 266,
|
|
|
|
/* 60 */ 242, 274, 277, 137, 231, 217, 231, 180, 181, 192,
|
|
|
|
/* 70 */ 191, 190, 197, 179, 196, 195, 182, 238, 187, 184,
|
|
|
|
/* 80 */ 185, 186, 11, 2, 5, 9, 10, 6, 137, 152,
|
|
|
|
/* 90 */ 189, 37, 25, 8, 64, 12, 35, 60, 113, 34,
|
|
|
|
/* 100 */ 431, 48, 177, 226, 236, 147, 157, 223, 139, 220,
|
|
|
|
/* 110 */ 255, 164, 27, 20, 235, 44, 249, 3, 63, 271,
|
|
|
|
/* 120 */ 51, 55, 202, 208, 42, 262, 125, 42, 152, 230,
|
|
|
|
/* 130 */ 37, 215, 28, 21, 12, 19, 60, 180, 181, 241,
|
|
|
|
/* 140 */ 274, 277, 225, 226, 14, 163, 199, 139, 187, 184,
|
|
|
|
/* 150 */ 185, 186, 11, 2, 5, 9, 10, 6, 20, 51,
|
|
|
|
/* 160 */ 55, 202, 208, 152, 30, 37, 42, 8, 222, 12,
|
|
|
|
/* 170 */ 59, 58, 228, 229, 57, 35, 248, 20, 176, 64,
|
|
|
|
/* 180 */ 19, 152, 134, 37, 241, 28, 130, 12, 246, 64,
|
|
|
|
/* 190 */ 98, 3, 20, 174, 51, 55, 202, 208, 253, 31,
|
|
|
|
/* 200 */ 133, 42, 40, 241, 166, 200, 137, 107, 71, 42,
|
|
|
|
/* 210 */ 38, 65, 51, 55, 202, 208, 203, 91, 241, 42,
|
|
|
|
/* 220 */ 154, 209, 200, 50, 223, 71, 220, 231, 72, 169,
|
|
|
|
/* 230 */ 138, 227, 267, 167, 143, 272, 89, 18, 209, 152,
|
|
|
|
/* 240 */ 20, 37, 17, 28, 231, 12, 137, 60, 31, 183,
|
|
|
|
/* 250 */ 193, 40, 141, 33, 95, 152, 128, 37, 139, 28,
|
|
|
|
/* 260 */ 205, 12, 29, 64, 20, 254, 241, 106, 64, 128,
|
|
|
|
/* 270 */ 51, 55, 202, 208, 142, 259, 128, 42, 254, 218,
|
|
|
|
/* 280 */ 200, 41, 268, 71, 172, 13, 51, 55, 202, 208,
|
|
|
|
/* 290 */ 241, 216, 223, 42, 220, 32, 209, 152, 42, 37,
|
|
|
|
/* 300 */ 154, 28, 231, 12, 244, 64, 154, 105, 123, 129,
|
|
|
|
/* 310 */ 166, 4, 165, 137, 156, 71, 136, 71, 254, 192,
|
|
|
|
/* 320 */ 191, 190, 197, 179, 196, 195, 182, 100, 51, 55,
|
|
|
|
/* 330 */ 202, 208, 265, 214, 231, 42, 231, 206, 254, 152,
|
|
|
|
/* 340 */ 71, 37, 137, 28, 154, 12, 64, 60, 16, 34,
|
|
|
|
/* 350 */ 145, 264, 200, 110, 20, 71, 103, 150, 39, 231,
|
|
|
|
/* 360 */ 239, 160, 26, 204, 207, 45, 89, 16, 209, 137,
|
|
|
|
/* 370 */ 51, 55, 202, 208, 231, 103, 42, 42, 24, 101,
|
|
|
|
/* 380 */ 241, 152, 273, 37, 244, 28, 252, 12, 200, 60,
|
|
|
|
/* 390 */ 254, 71, 43, 137, 251, 200, 50, 64, 71, 263,
|
|
|
|
/* 400 */ 135, 82, 137, 54, 209, 270, 204, 207, 154, 89,
|
|
|
|
/* 410 */ 231, 209, 51, 55, 202, 208, 154, 231, 267, 42,
|
|
|
|
/* 420 */ 200, 49, 183, 71, 256, 137, 74, 42, 154, 159,
|
|
|
|
/* 430 */ 20, 204, 207, 272, 89, 18, 209, 104, 132, 250,
|
|
|
|
/* 440 */ 240, 200, 231, 223, 71, 220, 154, 183, 200, 50,
|
|
|
|
/* 450 */ 141, 71, 204, 207, 77, 84, 170, 209, 137, 204,
|
|
|
|
/* 460 */ 207, 154, 89, 231, 209, 99, 52, 93, 67, 92,
|
|
|
|
/* 470 */ 231, 200, 50, 213, 71, 183, 254, 73, 87, 41,
|
|
|
|
/* 480 */ 94, 267, 204, 207, 128, 89, 152, 209, 200, 112,
|
|
|
|
/* 490 */ 28, 71, 12, 231, 64, 23, 53, 38, 183, 204,
|
|
|
|
/* 500 */ 207, 221, 89, 221, 209, 136, 83, 162, 22, 198,
|
|
|
|
/* 510 */ 231, 267, 221, 114, 221, 234, 88, 51, 55, 202,
|
|
|
|
/* 520 */ 208, 258, 200, 50, 42, 71, 15, 90, 79, 200,
|
|
|
|
/* 530 */ 50, 267, 71, 204, 207, 76, 89, 38, 209, 7,
|
|
|
|
/* 540 */ 204, 207, 267, 89, 231, 209, 261, 200, 50, 183,
|
|
|
|
/* 550 */ 71, 231, 117, 75, 168, 121, 183, 215, 204, 207,
|
|
|
|
/* 560 */ 215, 89, 118, 209, 151, 200, 50, 215, 71, 231,
|
|
|
|
/* 570 */ 70, 80, 24, 201, 183, 56, 204, 207, 232, 89,
|
|
|
|
/* 580 */ 211, 209, 194, 153, 175, 276, 68, 231, 62, 237,
|
|
|
|
/* 590 */ 247, 14, 183, 200, 96, 212, 71, 219, 240, 61,
|
|
|
|
/* 600 */ 200, 50, 155, 71, 204, 207, 81, 89, 233, 209,
|
|
|
|
/* 610 */ 36, 204, 207, 126, 89, 231, 209, 111, 200, 96,
|
|
|
|
/* 620 */ 224, 71, 231, 140, 275, 200, 50, 183, 71, 204,
|
|
|
|
/* 630 */ 207, 78, 89, 257, 209, 154, 204, 207, 210, 89,
|
|
|
|
/* 640 */ 231, 209, 69, 200, 112, 32, 71, 231, 261, 269,
|
|
|
|
/* 650 */ 230, 261, 183, 261, 204, 207, 264, 89, 261, 209,
|
|
|
|
/* 660 */ 261, 261, 260, 152, 261, 231, 261, 28, 261, 200,
|
|
|
|
/* 670 */ 112, 64, 71, 261, 261, 261, 261, 261, 261, 261,
|
|
|
|
/* 680 */ 204, 207, 136, 89, 261, 209, 261, 261, 161, 261,
|
|
|
|
/* 690 */ 261, 231, 261, 261, 51, 55, 202, 208, 261, 200,
|
|
|
|
/* 700 */ 112, 42, 71, 261, 261, 261, 261, 261, 261, 261,
|
|
|
|
/* 710 */ 204, 207, 261, 89, 261, 209, 200, 47, 149, 71,
|
|
|
|
/* 720 */ 261, 231, 261, 261, 261, 261, 261, 204, 207, 261,
|
|
|
|
/* 730 */ 89, 261, 209, 261, 200, 122, 261, 71, 231, 261,
|
|
|
|
/* 740 */ 261, 261, 261, 261, 261, 204, 207, 261, 89, 261,
|
|
|
|
/* 750 */ 209, 261, 261, 261, 261, 261, 231, 200, 120, 261,
|
|
|
|
/* 760 */ 71, 261, 261, 261, 261, 261, 261, 261, 204, 207,
|
|
|
|
/* 770 */ 261, 89, 261, 209, 200, 109, 261, 71, 261, 231,
|
|
|
|
/* 780 */ 261, 261, 261, 261, 261, 204, 207, 261, 89, 261,
|
|
|
|
/* 790 */ 209, 200, 102, 261, 71, 261, 231, 261, 261, 261,
|
|
|
|
/* 800 */ 261, 261, 204, 207, 261, 89, 261, 209, 261, 200,
|
|
|
|
/* 810 */ 124, 261, 71, 231, 261, 261, 261, 261, 261, 261,
|
|
|
|
/* 820 */ 204, 207, 261, 89, 261, 209, 261, 261, 261, 261,
|
|
|
|
/* 830 */ 261, 231, 200, 115, 261, 71, 261, 261, 261, 261,
|
|
|
|
/* 840 */ 261, 261, 261, 204, 207, 261, 89, 261, 209, 200,
|
|
|
|
/* 850 */ 127, 261, 71, 261, 231, 261, 261, 261, 261, 261,
|
|
|
|
/* 860 */ 204, 207, 261, 89, 261, 209, 200, 119, 261, 71,
|
|
|
|
/* 870 */ 261, 231, 261, 261, 261, 261, 261, 204, 207, 261,
|
|
|
|
/* 880 */ 89, 261, 209, 261, 200, 97, 261, 71, 231, 261,
|
|
|
|
/* 890 */ 261, 261, 261, 261, 261, 204, 207, 261, 89, 261,
|
|
|
|
/* 900 */ 209, 261, 261, 261, 261, 261, 231, 200, 108, 261,
|
|
|
|
/* 910 */ 71, 261, 261, 261, 261, 261, 261, 261, 204, 207,
|
|
|
|
/* 920 */ 261, 89, 261, 209, 200, 46, 261, 66, 261, 231,
|
|
|
|
/* 930 */ 261, 261, 261, 261, 261, 204, 207, 261, 89, 261,
|
|
|
|
/* 940 */ 209, 200, 261, 261, 71, 261, 231, 261, 261, 261,
|
|
|
|
/* 950 */ 261, 261, 204, 207, 261, 85, 261, 209, 261, 200,
|
|
|
|
/* 960 */ 261, 261, 71, 231, 261, 261, 261, 261, 261, 261,
|
|
|
|
/* 970 */ 204, 207, 261, 86, 261, 209, 261, 261, 261, 261,
|
|
|
|
/* 980 */ 261, 231,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
static public $yy_lookahead = array(
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 0 */ 23, 14, 4, 74, 4, 14, 77, 84, 17, 22,
|
|
|
|
/* 10 */ 14, 11, 12, 22, 85, 86, 39, 40, 22, 90,
|
|
|
|
/* 20 */ 24, 98, 26, 27, 1, 96, 3, 50, 51, 52,
|
|
|
|
/* 30 */ 53, 54, 55, 56, 57, 58, 59, 39, 40, 1,
|
|
|
|
/* 40 */ 79, 3, 74, 15, 74, 77, 46, 77, 50, 51,
|
|
|
|
/* 50 */ 52, 53, 54, 55, 56, 57, 58, 59, 21, 29,
|
|
|
|
/* 60 */ 92, 11, 12, 24, 96, 42, 96, 39, 40, 30,
|
|
|
|
/* 70 */ 31, 32, 33, 34, 35, 36, 37, 1, 50, 51,
|
|
|
|
/* 80 */ 52, 53, 54, 55, 56, 57, 58, 59, 24, 10,
|
|
|
|
/* 90 */ 4, 12, 28, 14, 18, 16, 46, 18, 95, 60,
|
|
|
|
/* 100 */ 69, 70, 71, 72, 66, 29, 45, 1, 29, 3,
|
|
|
|
/* 110 */ 1, 2, 3, 3, 5, 6, 7, 38, 9, 1,
|
|
|
|
/* 120 */ 41, 42, 43, 44, 48, 29, 94, 48, 10, 97,
|
|
|
|
/* 130 */ 12, 99, 14, 3, 16, 25, 18, 39, 40, 29,
|
|
|
|
/* 140 */ 11, 12, 71, 72, 14, 49, 17, 29, 50, 51,
|
|
|
|
/* 150 */ 52, 53, 54, 55, 56, 57, 58, 59, 3, 41,
|
|
|
|
/* 160 */ 42, 43, 44, 10, 3, 12, 48, 14, 62, 16,
|
|
|
|
/* 170 */ 61, 18, 63, 64, 65, 46, 67, 3, 4, 18,
|
|
|
|
/* 180 */ 25, 10, 29, 12, 29, 14, 4, 16, 17, 18,
|
|
|
|
/* 190 */ 29, 38, 3, 4, 41, 42, 43, 44, 4, 16,
|
|
|
|
/* 200 */ 29, 48, 19, 29, 49, 74, 24, 95, 77, 48,
|
|
|
|
/* 210 */ 27, 18, 41, 42, 43, 44, 85, 83, 29, 48,
|
|
|
|
/* 220 */ 26, 90, 74, 75, 1, 77, 3, 96, 80, 81,
|
|
|
|
/* 230 */ 82, 8, 98, 85, 86, 1, 88, 3, 90, 10,
|
|
|
|
/* 240 */ 3, 12, 20, 14, 96, 16, 24, 18, 16, 101,
|
|
|
|
/* 250 */ 13, 19, 18, 3, 76, 10, 78, 12, 29, 14,
|
|
|
|
/* 260 */ 10, 16, 25, 18, 3, 87, 29, 76, 18, 78,
|
|
|
|
/* 270 */ 41, 42, 43, 44, 29, 41, 78, 48, 87, 29,
|
|
|
|
/* 280 */ 74, 47, 17, 77, 4, 20, 41, 42, 43, 44,
|
|
|
|
/* 290 */ 29, 85, 1, 48, 3, 21, 90, 10, 48, 12,
|
|
|
|
/* 300 */ 26, 14, 96, 16, 15, 18, 26, 76, 20, 78,
|
|
|
|
/* 310 */ 49, 23, 74, 24, 74, 77, 29, 77, 87, 30,
|
|
|
|
/* 320 */ 31, 32, 33, 34, 35, 36, 37, 76, 41, 42,
|
|
|
|
/* 330 */ 43, 44, 1, 42, 96, 48, 96, 74, 87, 10,
|
|
|
|
/* 340 */ 77, 12, 24, 14, 26, 16, 18, 18, 14, 60,
|
|
|
|
/* 350 */ 18, 100, 74, 75, 3, 77, 22, 29, 29, 96,
|
|
|
|
/* 360 */ 29, 29, 28, 85, 86, 79, 88, 14, 90, 24,
|
|
|
|
/* 370 */ 41, 42, 43, 44, 96, 22, 48, 48, 25, 76,
|
|
|
|
/* 380 */ 29, 10, 4, 12, 15, 14, 4, 16, 74, 18,
|
|
|
|
/* 390 */ 87, 77, 95, 24, 4, 74, 75, 18, 77, 85,
|
|
|
|
/* 400 */ 29, 80, 24, 83, 90, 4, 85, 86, 26, 88,
|
|
|
|
/* 410 */ 96, 90, 41, 42, 43, 44, 26, 96, 98, 48,
|
|
|
|
/* 420 */ 74, 75, 101, 77, 4, 24, 80, 48, 26, 27,
|
|
|
|
/* 430 */ 3, 85, 86, 1, 88, 3, 90, 95, 4, 4,
|
|
|
|
/* 440 */ 98, 74, 96, 1, 77, 3, 26, 101, 74, 75,
|
|
|
|
/* 450 */ 18, 77, 85, 86, 80, 88, 29, 90, 24, 85,
|
|
|
|
/* 460 */ 86, 26, 88, 96, 90, 76, 83, 73, 18, 73,
|
|
|
|
/* 470 */ 96, 74, 75, 41, 77, 101, 87, 80, 73, 47,
|
|
|
|
/* 480 */ 73, 98, 85, 86, 78, 88, 10, 90, 74, 75,
|
|
|
|
/* 490 */ 14, 77, 16, 96, 18, 25, 83, 27, 101, 85,
|
|
|
|
/* 500 */ 86, 107, 88, 107, 90, 29, 91, 93, 102, 81,
|
|
|
|
/* 510 */ 96, 98, 107, 95, 107, 99, 83, 41, 42, 43,
|
|
|
|
/* 520 */ 44, 106, 74, 75, 48, 77, 14, 83, 80, 74,
|
|
|
|
/* 530 */ 75, 98, 77, 85, 86, 80, 88, 27, 90, 103,
|
|
|
|
/* 540 */ 85, 86, 98, 88, 96, 90, 29, 74, 75, 101,
|
|
|
|
/* 550 */ 77, 96, 94, 80, 45, 94, 101, 99, 85, 86,
|
|
|
|
/* 560 */ 99, 88, 94, 90, 19, 74, 75, 99, 77, 96,
|
|
|
|
/* 570 */ 29, 80, 25, 10, 101, 18, 85, 86, 48, 88,
|
|
|
|
/* 580 */ 47, 90, 4, 29, 4, 15, 15, 96, 29, 7,
|
|
|
|
/* 590 */ 15, 14, 101, 74, 75, 47, 77, 48, 98, 18,
|
|
|
|
/* 600 */ 74, 75, 29, 77, 85, 86, 80, 88, 29, 90,
|
|
|
|
/* 610 */ 89, 85, 86, 29, 88, 96, 90, 95, 74, 75,
|
|
|
|
/* 620 */ 107, 77, 96, 104, 105, 74, 75, 101, 77, 85,
|
|
|
|
/* 630 */ 86, 80, 88, 87, 90, 26, 85, 86, 106, 88,
|
|
|
|
/* 640 */ 96, 90, 92, 74, 75, 21, 77, 96, 108, 105,
|
|
|
|
/* 650 */ 97, 108, 101, 108, 85, 86, 100, 88, 108, 90,
|
|
|
|
/* 660 */ 108, 108, 93, 10, 108, 96, 108, 14, 108, 74,
|
|
|
|
/* 670 */ 75, 18, 77, 108, 108, 108, 108, 108, 108, 108,
|
|
|
|
/* 680 */ 85, 86, 29, 88, 108, 90, 108, 108, 93, 108,
|
|
|
|
/* 690 */ 108, 96, 108, 108, 41, 42, 43, 44, 108, 74,
|
|
|
|
/* 700 */ 75, 48, 77, 108, 108, 108, 108, 108, 108, 108,
|
|
|
|
/* 710 */ 85, 86, 108, 88, 108, 90, 74, 75, 93, 77,
|
|
|
|
/* 720 */ 108, 96, 108, 108, 108, 108, 108, 85, 86, 108,
|
|
|
|
/* 730 */ 88, 108, 90, 108, 74, 75, 108, 77, 96, 108,
|
|
|
|
/* 740 */ 108, 108, 108, 108, 108, 85, 86, 108, 88, 108,
|
|
|
|
/* 750 */ 90, 108, 108, 108, 108, 108, 96, 74, 75, 108,
|
|
|
|
/* 760 */ 77, 108, 108, 108, 108, 108, 108, 108, 85, 86,
|
|
|
|
/* 770 */ 108, 88, 108, 90, 74, 75, 108, 77, 108, 96,
|
|
|
|
/* 780 */ 108, 108, 108, 108, 108, 85, 86, 108, 88, 108,
|
|
|
|
/* 790 */ 90, 74, 75, 108, 77, 108, 96, 108, 108, 108,
|
|
|
|
/* 800 */ 108, 108, 85, 86, 108, 88, 108, 90, 108, 74,
|
|
|
|
/* 810 */ 75, 108, 77, 96, 108, 108, 108, 108, 108, 108,
|
|
|
|
/* 820 */ 85, 86, 108, 88, 108, 90, 108, 108, 108, 108,
|
|
|
|
/* 830 */ 108, 96, 74, 75, 108, 77, 108, 108, 108, 108,
|
|
|
|
/* 840 */ 108, 108, 108, 85, 86, 108, 88, 108, 90, 74,
|
|
|
|
/* 850 */ 75, 108, 77, 108, 96, 108, 108, 108, 108, 108,
|
|
|
|
/* 860 */ 85, 86, 108, 88, 108, 90, 74, 75, 108, 77,
|
|
|
|
/* 870 */ 108, 96, 108, 108, 108, 108, 108, 85, 86, 108,
|
|
|
|
/* 880 */ 88, 108, 90, 108, 74, 75, 108, 77, 96, 108,
|
|
|
|
/* 890 */ 108, 108, 108, 108, 108, 85, 86, 108, 88, 108,
|
|
|
|
/* 900 */ 90, 108, 108, 108, 108, 108, 96, 74, 75, 108,
|
|
|
|
/* 910 */ 77, 108, 108, 108, 108, 108, 108, 108, 85, 86,
|
|
|
|
/* 920 */ 108, 88, 108, 90, 74, 75, 108, 77, 108, 96,
|
|
|
|
/* 930 */ 108, 108, 108, 108, 108, 85, 86, 108, 88, 108,
|
|
|
|
/* 940 */ 90, 74, 108, 108, 77, 108, 96, 108, 108, 108,
|
|
|
|
/* 950 */ 108, 108, 85, 86, 108, 88, 108, 90, 108, 74,
|
|
|
|
/* 960 */ 108, 108, 77, 96, 108, 108, 108, 108, 108, 108,
|
|
|
|
/* 970 */ 85, 86, 108, 88, 108, 90, 108, 108, 108, 108,
|
|
|
|
/* 980 */ 108, 96,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
2009-07-29 16:43:54 +00:00
|
|
|
const YY_SHIFT_USE_DFLT = -24;
|
|
|
|
const YY_SHIFT_MAX = 171;
|
2009-03-22 16:09:05 +00:00
|
|
|
static public $yy_shift_ofst = array(
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 0 */ 109, 153, 79, 79, 79, 79, 79, 79, 79, 79,
|
|
|
|
/* 10 */ 79, 79, 371, 371, 229, 229, 229, 229, 118, 229,
|
|
|
|
/* 20 */ 229, 229, 229, 229, 229, 229, 229, 329, 229, 229,
|
|
|
|
/* 30 */ 229, 171, 245, 287, 476, 653, 653, 653, 161, -4,
|
|
|
|
/* 40 */ 250, 76, 328, 183, 379, 274, 318, 318, 109, 289,
|
|
|
|
/* 50 */ 39, 234, 237, 155, 261, 291, 351, 442, 427, 442,
|
|
|
|
/* 60 */ 427, 351, 402, 442, 351, 351, 470, 351, 510, 510,
|
|
|
|
/* 70 */ 609, 510, -2, -23, 28, 98, 98, 98, 98, 98,
|
|
|
|
/* 80 */ 98, 98, 98, 432, 129, 0, 50, 23, 189, 50,
|
|
|
|
/* 90 */ 110, 174, 38, 223, 106, 194, 64, 369, 130, 390,
|
|
|
|
/* 100 */ 382, 280, 401, 332, 232, 435, 420, 232, 434, 378,
|
|
|
|
/* 110 */ 182, 232, 222, 232, 232, 345, 624, 510, 510, 345,
|
|
|
|
/* 120 */ 345, 510, 345, 450, 345, 510, 512, 345, -24, -24,
|
|
|
|
/* 130 */ -24, -24, -24, -9, 353, 334, -13, 96, 288, -13,
|
|
|
|
/* 140 */ 265, 331, -13, 509, 541, 584, 578, 533, 557, 571,
|
|
|
|
/* 150 */ 530, 563, 545, 547, 554, 580, 549, 581, 548, 573,
|
|
|
|
/* 160 */ 577, 575, 570, 517, 559, 582, 579, 61, 193, 86,
|
|
|
|
/* 170 */ 37, 30,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
2009-07-29 16:43:54 +00:00
|
|
|
const YY_REDUCE_USE_DFLT = -78;
|
|
|
|
const YY_REDUCE_MAX = 132;
|
2009-03-22 16:09:05 +00:00
|
|
|
static public $yy_reduce_ofst = array(
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 0 */ 31, 148, 448, 455, 397, 491, 321, 374, 346, 473,
|
|
|
|
/* 10 */ 551, 526, 519, 544, 595, 625, 414, 569, 717, 735,
|
|
|
|
/* 20 */ 700, 278, 683, 642, 660, 758, 775, 850, 810, 792,
|
|
|
|
/* 30 */ 833, 367, 885, 867, -71, 314, 206, 131, -32, 231,
|
|
|
|
/* 40 */ 263, -30, 240, 32, 238, 251, 191, 178, 71, 406,
|
|
|
|
/* 50 */ 406, 415, -77, 342, 342, 405, 383, 396, 413, 407,
|
|
|
|
/* 60 */ 320, 134, 303, 394, 320, 433, 461, 444, 468, 458,
|
|
|
|
/* 70 */ 389, 461, 436, 436, 436, 436, 436, 436, 436, 436,
|
|
|
|
/* 80 */ 436, 436, 436, 532, 521, 521, 521, 513, 500, 521,
|
|
|
|
/* 90 */ 500, 500, 513, 513, 513, 546, 198, 198, 522, 546,
|
|
|
|
/* 100 */ 546, 546, 198, 550, 553, 546, 546, 553, 198, 198,
|
|
|
|
/* 110 */ 198, 553, 198, 553, 553, 198, 556, 416, 416, 198,
|
|
|
|
/* 120 */ 198, 416, 198, 428, 198, 416, 297, 198, -39, 286,
|
|
|
|
/* 130 */ 112, 3, 418,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
static public $yyExpectedTokens = array(
|
2009-06-14 13:08:13 +00:00
|
|
|
/* 0 */ array(1, 2, 3, 5, 6, 7, 9, 61, 63, 64, 65, 67, ),
|
|
|
|
/* 1 */ array(10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 2 */ array(10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 3 */ array(10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 4 */ array(10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 5 */ array(10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 6 */ array(10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 7 */ array(10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 8 */ array(10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 9 */ array(10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 10 */ array(10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 11 */ array(10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 12 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 13 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 14 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 15 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 16 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 17 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
2009-07-22 16:22:24 +00:00
|
|
|
/* 18 */ array(1, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
2009-06-14 13:08:13 +00:00
|
|
|
/* 19 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 20 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 21 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 22 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 23 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 24 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 25 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 26 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 27 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 28 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 29 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 30 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 31 */ array(10, 12, 14, 16, 17, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 32 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 33 */ array(10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 34 */ array(10, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 35 */ array(10, 14, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 36 */ array(10, 14, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 37 */ array(10, 14, 18, 29, 41, 42, 43, 44, 48, ),
|
|
|
|
/* 38 */ array(3, 18, 29, 48, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 39 */ array(14, 22, 24, 26, 27, ),
|
|
|
|
/* 40 */ array(3, 10, 18, 29, 48, ),
|
2009-07-22 16:22:24 +00:00
|
|
|
/* 41 */ array(1, 18, 29, 48, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 42 */ array(18, 29, 48, ),
|
|
|
|
/* 43 */ array(16, 19, 27, ),
|
|
|
|
/* 44 */ array(18, 48, ),
|
|
|
|
/* 45 */ array(21, 26, ),
|
2009-07-22 16:22:24 +00:00
|
|
|
/* 46 */ array(24, 26, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 47 */ array(24, 26, ),
|
|
|
|
/* 48 */ array(1, 2, 3, 5, 6, 7, 9, 61, 63, 64, 65, 67, ),
|
|
|
|
/* 49 */ array(15, 24, 30, 31, 32, 33, 34, 35, 36, 37, 60, ),
|
|
|
|
/* 50 */ array(24, 30, 31, 32, 33, 34, 35, 36, 37, 60, ),
|
|
|
|
/* 51 */ array(1, 3, 18, 41, 47, ),
|
|
|
|
/* 52 */ array(3, 13, 25, 29, ),
|
|
|
|
/* 53 */ array(3, 25, 29, 49, ),
|
2009-07-28 19:26:56 +00:00
|
|
|
/* 54 */ array(3, 29, 49, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 55 */ array(1, 3, 42, ),
|
|
|
|
/* 56 */ array(3, 29, ),
|
2009-06-14 13:08:13 +00:00
|
|
|
/* 57 */ array(1, 3, ),
|
2009-07-22 16:22:24 +00:00
|
|
|
/* 58 */ array(3, 29, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 59 */ array(1, 3, ),
|
2009-07-22 16:22:24 +00:00
|
|
|
/* 60 */ array(3, 29, ),
|
2009-06-14 13:08:13 +00:00
|
|
|
/* 61 */ array(3, 29, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 62 */ array(26, 27, ),
|
|
|
|
/* 63 */ array(1, 3, ),
|
|
|
|
/* 64 */ array(3, 29, ),
|
2009-07-28 19:26:56 +00:00
|
|
|
/* 65 */ array(3, 29, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 66 */ array(25, 27, ),
|
|
|
|
/* 67 */ array(3, 29, ),
|
|
|
|
/* 68 */ array(27, ),
|
2009-06-14 13:08:13 +00:00
|
|
|
/* 69 */ array(27, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 70 */ array(26, ),
|
|
|
|
/* 71 */ array(27, ),
|
|
|
|
/* 72 */ array(4, 39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
|
|
|
|
/* 73 */ array(23, 39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
|
|
|
|
/* 74 */ array(15, 39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
|
2009-06-14 13:08:13 +00:00
|
|
|
/* 75 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
|
|
|
|
/* 76 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
|
|
|
|
/* 77 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
|
|
|
|
/* 78 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
|
|
|
|
/* 79 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
|
|
|
|
/* 80 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
|
2009-07-28 19:26:56 +00:00
|
|
|
/* 81 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 82 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
|
|
|
|
/* 83 */ array(1, 3, 18, 41, 47, ),
|
2009-07-28 19:26:56 +00:00
|
|
|
/* 84 */ array(11, 12, 17, 46, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 85 */ array(4, 11, 12, 46, ),
|
|
|
|
/* 86 */ array(11, 12, 46, ),
|
|
|
|
/* 87 */ array(1, 3, 42, ),
|
|
|
|
/* 88 */ array(3, 4, 29, ),
|
|
|
|
/* 89 */ array(11, 12, 46, ),
|
|
|
|
/* 90 */ array(3, 25, 29, ),
|
2009-07-28 19:26:56 +00:00
|
|
|
/* 91 */ array(3, 4, 29, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 92 */ array(1, 3, 66, ),
|
2009-07-28 19:26:56 +00:00
|
|
|
/* 93 */ array(1, 3, 8, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 94 */ array(1, 3, 62, ),
|
|
|
|
/* 95 */ array(4, 26, ),
|
|
|
|
/* 96 */ array(24, 28, ),
|
|
|
|
/* 97 */ array(15, 24, ),
|
2009-07-28 19:26:56 +00:00
|
|
|
/* 98 */ array(3, 14, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 99 */ array(4, 26, ),
|
2009-07-28 19:26:56 +00:00
|
|
|
/* 100 */ array(4, 26, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 101 */ array(4, 26, ),
|
|
|
|
/* 102 */ array(4, 24, ),
|
|
|
|
/* 103 */ array(18, 29, ),
|
|
|
|
/* 104 */ array(16, 19, ),
|
|
|
|
/* 105 */ array(4, 26, ),
|
|
|
|
/* 106 */ array(4, 26, ),
|
|
|
|
/* 107 */ array(16, 19, ),
|
|
|
|
/* 108 */ array(4, 24, ),
|
|
|
|
/* 109 */ array(4, 24, ),
|
2009-06-14 13:08:13 +00:00
|
|
|
/* 110 */ array(4, 24, ),
|
2009-07-22 16:22:24 +00:00
|
|
|
/* 111 */ array(16, 19, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 112 */ array(20, 24, ),
|
|
|
|
/* 113 */ array(16, 19, ),
|
|
|
|
/* 114 */ array(16, 19, ),
|
2009-07-22 16:22:24 +00:00
|
|
|
/* 115 */ array(24, ),
|
2009-07-28 19:26:56 +00:00
|
|
|
/* 116 */ array(21, ),
|
|
|
|
/* 117 */ array(27, ),
|
|
|
|
/* 118 */ array(27, ),
|
|
|
|
/* 119 */ array(24, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 120 */ array(24, ),
|
|
|
|
/* 121 */ array(27, ),
|
2009-06-14 13:08:13 +00:00
|
|
|
/* 122 */ array(24, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 123 */ array(18, ),
|
|
|
|
/* 124 */ array(24, ),
|
|
|
|
/* 125 */ array(27, ),
|
|
|
|
/* 126 */ array(14, ),
|
|
|
|
/* 127 */ array(24, ),
|
2009-04-21 18:02:34 +00:00
|
|
|
/* 128 */ array(),
|
2009-05-09 12:44:43 +00:00
|
|
|
/* 129 */ array(),
|
2009-07-28 19:26:56 +00:00
|
|
|
/* 130 */ array(),
|
|
|
|
/* 131 */ array(),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 132 */ array(),
|
2009-07-28 19:26:56 +00:00
|
|
|
/* 133 */ array(14, 17, 22, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 134 */ array(14, 22, 25, ),
|
|
|
|
/* 135 */ array(14, 22, 28, ),
|
|
|
|
/* 136 */ array(14, 22, ),
|
|
|
|
/* 137 */ array(29, 49, ),
|
|
|
|
/* 138 */ array(20, 23, ),
|
|
|
|
/* 139 */ array(14, 22, ),
|
|
|
|
/* 140 */ array(17, 20, ),
|
|
|
|
/* 141 */ array(1, 29, ),
|
|
|
|
/* 142 */ array(14, 22, ),
|
|
|
|
/* 143 */ array(45, ),
|
|
|
|
/* 144 */ array(29, ),
|
2009-07-22 16:22:24 +00:00
|
|
|
/* 145 */ array(29, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 146 */ array(4, ),
|
|
|
|
/* 147 */ array(47, ),
|
|
|
|
/* 148 */ array(18, ),
|
|
|
|
/* 149 */ array(15, ),
|
|
|
|
/* 150 */ array(48, ),
|
|
|
|
/* 151 */ array(10, ),
|
|
|
|
/* 152 */ array(19, ),
|
|
|
|
/* 153 */ array(25, ),
|
2009-07-28 19:26:56 +00:00
|
|
|
/* 154 */ array(29, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 155 */ array(4, ),
|
|
|
|
/* 156 */ array(48, ),
|
|
|
|
/* 157 */ array(18, ),
|
|
|
|
/* 158 */ array(47, ),
|
|
|
|
/* 159 */ array(29, ),
|
|
|
|
/* 160 */ array(14, ),
|
|
|
|
/* 161 */ array(15, ),
|
2009-07-28 19:26:56 +00:00
|
|
|
/* 162 */ array(15, ),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 163 */ array(29, ),
|
|
|
|
/* 164 */ array(29, ),
|
|
|
|
/* 165 */ array(7, ),
|
|
|
|
/* 166 */ array(29, ),
|
|
|
|
/* 167 */ array(45, ),
|
|
|
|
/* 168 */ array(18, ),
|
|
|
|
/* 169 */ array(4, ),
|
|
|
|
/* 170 */ array(21, ),
|
|
|
|
/* 171 */ array(29, ),
|
2009-03-22 16:09:05 +00:00
|
|
|
/* 172 */ array(),
|
|
|
|
/* 173 */ array(),
|
|
|
|
/* 174 */ array(),
|
|
|
|
/* 175 */ array(),
|
|
|
|
/* 176 */ array(),
|
|
|
|
/* 177 */ array(),
|
|
|
|
/* 178 */ array(),
|
|
|
|
/* 179 */ array(),
|
|
|
|
/* 180 */ array(),
|
|
|
|
/* 181 */ array(),
|
|
|
|
/* 182 */ array(),
|
|
|
|
/* 183 */ array(),
|
|
|
|
/* 184 */ array(),
|
|
|
|
/* 185 */ array(),
|
|
|
|
/* 186 */ array(),
|
|
|
|
/* 187 */ array(),
|
|
|
|
/* 188 */ array(),
|
|
|
|
/* 189 */ array(),
|
|
|
|
/* 190 */ array(),
|
|
|
|
/* 191 */ array(),
|
|
|
|
/* 192 */ array(),
|
|
|
|
/* 193 */ array(),
|
|
|
|
/* 194 */ array(),
|
|
|
|
/* 195 */ array(),
|
|
|
|
/* 196 */ array(),
|
|
|
|
/* 197 */ array(),
|
|
|
|
/* 198 */ array(),
|
|
|
|
/* 199 */ array(),
|
|
|
|
/* 200 */ array(),
|
|
|
|
/* 201 */ array(),
|
|
|
|
/* 202 */ array(),
|
|
|
|
/* 203 */ array(),
|
|
|
|
/* 204 */ array(),
|
|
|
|
/* 205 */ array(),
|
|
|
|
/* 206 */ array(),
|
|
|
|
/* 207 */ array(),
|
|
|
|
/* 208 */ array(),
|
|
|
|
/* 209 */ array(),
|
|
|
|
/* 210 */ array(),
|
|
|
|
/* 211 */ array(),
|
|
|
|
/* 212 */ array(),
|
|
|
|
/* 213 */ array(),
|
|
|
|
/* 214 */ array(),
|
|
|
|
/* 215 */ array(),
|
|
|
|
/* 216 */ array(),
|
|
|
|
/* 217 */ array(),
|
|
|
|
/* 218 */ array(),
|
|
|
|
/* 219 */ array(),
|
|
|
|
/* 220 */ array(),
|
|
|
|
/* 221 */ array(),
|
|
|
|
/* 222 */ array(),
|
|
|
|
/* 223 */ array(),
|
|
|
|
/* 224 */ array(),
|
|
|
|
/* 225 */ array(),
|
|
|
|
/* 226 */ array(),
|
|
|
|
/* 227 */ array(),
|
|
|
|
/* 228 */ array(),
|
|
|
|
/* 229 */ array(),
|
|
|
|
/* 230 */ array(),
|
|
|
|
/* 231 */ array(),
|
|
|
|
/* 232 */ array(),
|
|
|
|
/* 233 */ array(),
|
|
|
|
/* 234 */ array(),
|
|
|
|
/* 235 */ array(),
|
|
|
|
/* 236 */ array(),
|
|
|
|
/* 237 */ array(),
|
2009-03-26 14:08:43 +00:00
|
|
|
/* 238 */ array(),
|
|
|
|
/* 239 */ array(),
|
2009-04-03 15:59:40 +00:00
|
|
|
/* 240 */ array(),
|
|
|
|
/* 241 */ array(),
|
2009-04-08 14:47:28 +00:00
|
|
|
/* 242 */ array(),
|
|
|
|
/* 243 */ array(),
|
|
|
|
/* 244 */ array(),
|
|
|
|
/* 245 */ array(),
|
|
|
|
/* 246 */ array(),
|
|
|
|
/* 247 */ array(),
|
|
|
|
/* 248 */ array(),
|
|
|
|
/* 249 */ array(),
|
|
|
|
/* 250 */ array(),
|
|
|
|
/* 251 */ array(),
|
|
|
|
/* 252 */ array(),
|
2009-04-09 15:53:52 +00:00
|
|
|
/* 253 */ array(),
|
2009-04-09 17:43:32 +00:00
|
|
|
/* 254 */ array(),
|
|
|
|
/* 255 */ array(),
|
|
|
|
/* 256 */ array(),
|
|
|
|
/* 257 */ array(),
|
2009-04-10 12:33:51 +00:00
|
|
|
/* 258 */ array(),
|
2009-04-14 09:04:15 +00:00
|
|
|
/* 259 */ array(),
|
|
|
|
/* 260 */ array(),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 261 */ array(),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 262 */ array(),
|
|
|
|
/* 263 */ array(),
|
|
|
|
/* 264 */ array(),
|
2009-04-20 20:33:14 +00:00
|
|
|
/* 265 */ array(),
|
2009-04-21 18:02:34 +00:00
|
|
|
/* 266 */ array(),
|
|
|
|
/* 267 */ array(),
|
|
|
|
/* 268 */ array(),
|
|
|
|
/* 269 */ array(),
|
|
|
|
/* 270 */ array(),
|
2009-05-14 10:53:28 +00:00
|
|
|
/* 271 */ array(),
|
|
|
|
/* 272 */ array(),
|
2009-06-14 13:08:13 +00:00
|
|
|
/* 273 */ array(),
|
2009-07-22 16:22:24 +00:00
|
|
|
/* 274 */ array(),
|
|
|
|
/* 275 */ array(),
|
|
|
|
/* 276 */ array(),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 277 */ array(),
|
|
|
|
/* 278 */ array(),
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
static public $yy_default = array(
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 0 */ 430, 430, 430, 430, 430, 430, 430, 430, 430, 430,
|
|
|
|
/* 10 */ 430, 430, 412, 430, 374, 374, 374, 374, 430, 430,
|
|
|
|
/* 20 */ 430, 430, 430, 430, 430, 430, 430, 430, 430, 430,
|
|
|
|
/* 30 */ 430, 430, 430, 430, 430, 430, 430, 430, 430, 309,
|
|
|
|
/* 40 */ 430, 430, 430, 341, 430, 309, 309, 309, 279, 384,
|
|
|
|
/* 50 */ 384, 430, 430, 350, 350, 430, 430, 430, 430, 430,
|
|
|
|
/* 60 */ 430, 430, 309, 430, 430, 430, 343, 430, 337, 336,
|
|
|
|
/* 70 */ 309, 343, 430, 430, 430, 394, 382, 388, 389, 398,
|
|
|
|
/* 80 */ 393, 397, 390, 430, 430, 430, 379, 430, 430, 315,
|
|
|
|
/* 90 */ 430, 430, 430, 430, 430, 430, 413, 430, 350, 430,
|
|
|
|
/* 100 */ 430, 430, 430, 430, 348, 430, 430, 368, 430, 430,
|
|
|
|
/* 110 */ 430, 365, 373, 366, 367, 414, 317, 338, 339, 303,
|
|
|
|
/* 120 */ 385, 362, 310, 430, 313, 342, 350, 415, 378, 378,
|
|
|
|
/* 130 */ 350, 350, 350, 430, 314, 314, 430, 430, 430, 314,
|
|
|
|
/* 140 */ 430, 430, 380, 318, 430, 430, 430, 430, 430, 430,
|
|
|
|
/* 150 */ 430, 430, 326, 430, 430, 430, 430, 430, 430, 430,
|
|
|
|
/* 160 */ 340, 430, 430, 430, 430, 430, 430, 319, 430, 311,
|
|
|
|
/* 170 */ 360, 430, 298, 386, 306, 299, 305, 280, 387, 403,
|
|
|
|
/* 180 */ 407, 408, 406, 381, 396, 391, 392, 395, 383, 301,
|
|
|
|
/* 190 */ 401, 400, 399, 304, 302, 405, 404, 402, 312, 356,
|
|
|
|
/* 200 */ 325, 327, 328, 320, 319, 352, 353, 318, 329, 330,
|
|
|
|
/* 210 */ 416, 418, 419, 334, 333, 363, 321, 332, 351, 347,
|
|
|
|
/* 220 */ 429, 427, 284, 428, 426, 281, 282, 283, 285, 286,
|
|
|
|
/* 230 */ 349, 345, 346, 344, 364, 287, 288, 289, 424, 420,
|
|
|
|
/* 240 */ 359, 360, 369, 354, 331, 355, 357, 371, 290, 291,
|
|
|
|
/* 250 */ 295, 296, 297, 294, 308, 292, 293, 307, 417, 335,
|
|
|
|
/* 260 */ 372, 375, 376, 322, 377, 422, 316, 358, 409, 411,
|
|
|
|
/* 270 */ 421, 423, 425, 361, 324, 410, 370, 323, 300,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
/* The next thing included is series of defines which control
|
|
|
|
** various aspects of the generated parser.
|
|
|
|
** self::YYNOCODE is a number which corresponds
|
|
|
|
** to no legal terminal or nonterminal number. This
|
|
|
|
** number is used to fill in empty slots of the hash
|
|
|
|
** table.
|
|
|
|
** self::YYFALLBACK If defined, this indicates that one or more tokens
|
|
|
|
** have fall-back values which should be used if the
|
|
|
|
** original value of the token will not parse.
|
|
|
|
** self::YYSTACKDEPTH is the maximum depth of the parser's stack.
|
|
|
|
** self::YYNSTATE the combined number of states.
|
|
|
|
** self::YYNRULE the number of rules in the grammar
|
|
|
|
** self::YYERRORSYMBOL is the code number of the error symbol. If not
|
|
|
|
** defined, then do no error processing.
|
|
|
|
*/
|
2009-04-14 09:04:15 +00:00
|
|
|
const YYNOCODE = 109;
|
2009-03-22 16:09:05 +00:00
|
|
|
const YYSTACKDEPTH = 100;
|
2009-07-29 16:43:54 +00:00
|
|
|
const YYNSTATE = 279;
|
|
|
|
const YYNRULE = 151;
|
2009-04-14 09:04:15 +00:00
|
|
|
const YYERRORSYMBOL = 68;
|
2009-03-22 16:09:05 +00:00
|
|
|
const YYERRSYMDT = 'yy0';
|
|
|
|
const YYFALLBACK = 1;
|
|
|
|
/** The next table maps tokens into fallback tokens. If a construct
|
|
|
|
* like the following:
|
|
|
|
*
|
|
|
|
* %fallback ID X Y Z.
|
|
|
|
*
|
|
|
|
* appears in the grammer, then ID becomes a fallback token for X, Y,
|
|
|
|
* and Z. Whenever one of the tokens X, Y, or Z is input to the parser
|
|
|
|
* but it does not parse, the type of the token is changed to ID and
|
|
|
|
* the parse is retried before an error is thrown.
|
|
|
|
*/
|
|
|
|
static public $yyFallback = array(
|
|
|
|
0, /* $ => nothing */
|
|
|
|
0, /* OTHER => nothing */
|
|
|
|
1, /* LDELSLASH => OTHER */
|
|
|
|
1, /* LDEL => OTHER */
|
|
|
|
1, /* RDEL => OTHER */
|
|
|
|
1, /* PHP => OTHER */
|
|
|
|
1, /* SHORTTAGSTART => OTHER */
|
|
|
|
1, /* SHORTTAGEND => OTHER */
|
|
|
|
1, /* COMMENTEND => OTHER */
|
|
|
|
1, /* COMMENTSTART => OTHER */
|
2009-04-09 15:53:52 +00:00
|
|
|
1, /* INTEGER => OTHER */
|
2009-03-22 16:09:05 +00:00
|
|
|
1, /* MATH => OTHER */
|
|
|
|
1, /* UNIMATH => OTHER */
|
|
|
|
1, /* INCDEC => OTHER */
|
|
|
|
1, /* OPENP => OTHER */
|
|
|
|
1, /* CLOSEP => OTHER */
|
|
|
|
1, /* OPENB => OTHER */
|
|
|
|
1, /* CLOSEB => OTHER */
|
|
|
|
1, /* DOLLAR => OTHER */
|
|
|
|
1, /* DOT => OTHER */
|
|
|
|
1, /* COMMA => OTHER */
|
|
|
|
1, /* COLON => OTHER */
|
|
|
|
1, /* DOUBLECOLON => OTHER */
|
|
|
|
1, /* SEMICOLON => OTHER */
|
|
|
|
1, /* VERT => OTHER */
|
|
|
|
1, /* EQUAL => OTHER */
|
|
|
|
1, /* SPACE => OTHER */
|
|
|
|
1, /* PTR => OTHER */
|
|
|
|
1, /* APTR => OTHER */
|
|
|
|
1, /* ID => OTHER */
|
|
|
|
1, /* EQUALS => OTHER */
|
|
|
|
1, /* NOTEQUALS => OTHER */
|
|
|
|
1, /* GREATERTHAN => OTHER */
|
|
|
|
1, /* LESSTHAN => OTHER */
|
|
|
|
1, /* GREATEREQUAL => OTHER */
|
|
|
|
1, /* LESSEQUAL => OTHER */
|
|
|
|
1, /* IDENTITY => OTHER */
|
|
|
|
1, /* NONEIDENTITY => OTHER */
|
|
|
|
1, /* NOT => OTHER */
|
|
|
|
1, /* LAND => OTHER */
|
|
|
|
1, /* LOR => OTHER */
|
|
|
|
1, /* QUOTE => OTHER */
|
|
|
|
1, /* SINGLEQUOTE => OTHER */
|
|
|
|
1, /* BOOLEAN => OTHER */
|
|
|
|
1, /* NULL => OTHER */
|
2009-04-21 18:02:34 +00:00
|
|
|
1, /* AS => OTHER */
|
2009-03-22 16:09:05 +00:00
|
|
|
1, /* ANDSYM => OTHER */
|
|
|
|
1, /* BACKTICK => OTHER */
|
|
|
|
1, /* HATCH => OTHER */
|
|
|
|
1, /* AT => OTHER */
|
|
|
|
1, /* ISODD => OTHER */
|
|
|
|
1, /* ISNOTODD => OTHER */
|
|
|
|
1, /* ISEVEN => OTHER */
|
|
|
|
1, /* ISNOTEVEN => OTHER */
|
|
|
|
1, /* ISODDBY => OTHER */
|
|
|
|
1, /* ISNOTODDBY => OTHER */
|
|
|
|
1, /* ISEVENBY => OTHER */
|
|
|
|
1, /* ISNOTEVENBY => OTHER */
|
|
|
|
1, /* ISDIVBY => OTHER */
|
|
|
|
1, /* ISNOTDIVBY => OTHER */
|
2009-04-14 09:04:15 +00:00
|
|
|
1, /* ISIN => OTHER */
|
2009-03-22 16:09:05 +00:00
|
|
|
0, /* LITERALSTART => nothing */
|
|
|
|
0, /* LITERALEND => nothing */
|
|
|
|
0, /* LDELIMTAG => nothing */
|
|
|
|
0, /* RDELIMTAG => nothing */
|
|
|
|
0, /* PHPSTART => nothing */
|
|
|
|
0, /* PHPEND => nothing */
|
2009-06-14 13:08:13 +00:00
|
|
|
0, /* XML => nothing */
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
/**
|
|
|
|
* Turn parser tracing on by giving a stream to which to write the trace
|
|
|
|
* and a prompt to preface each trace message. Tracing is turned off
|
|
|
|
* by making either argument NULL
|
|
|
|
*
|
|
|
|
* Inputs:
|
|
|
|
*
|
|
|
|
* - A stream resource to which trace output should be written.
|
|
|
|
* If NULL, then tracing is turned off.
|
|
|
|
* - A prefix string written at the beginning of every
|
|
|
|
* line of trace output. If NULL, then tracing is
|
|
|
|
* turned off.
|
|
|
|
*
|
|
|
|
* Outputs:
|
|
|
|
*
|
|
|
|
* - None.
|
|
|
|
* @param resource
|
|
|
|
* @param string
|
|
|
|
*/
|
|
|
|
static function Trace($TraceFILE, $zTracePrompt)
|
|
|
|
{
|
|
|
|
if (!$TraceFILE) {
|
|
|
|
$zTracePrompt = 0;
|
|
|
|
} elseif (!$zTracePrompt) {
|
|
|
|
$TraceFILE = 0;
|
|
|
|
}
|
|
|
|
self::$yyTraceFILE = $TraceFILE;
|
|
|
|
self::$yyTracePrompt = $zTracePrompt;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Output debug information to output (php://output stream)
|
|
|
|
*/
|
|
|
|
static function PrintTrace()
|
|
|
|
{
|
|
|
|
self::$yyTraceFILE = fopen('php://output', 'w');
|
|
|
|
self::$yyTracePrompt = '<br>';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var resource|0
|
|
|
|
*/
|
|
|
|
static public $yyTraceFILE;
|
|
|
|
/**
|
|
|
|
* String to prepend to debug output
|
|
|
|
* @var string|0
|
|
|
|
*/
|
|
|
|
static public $yyTracePrompt;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $yyidx; /* Index of top element in stack */
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $yyerrcnt; /* Shifts left before out of the error */
|
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
public $yystack = array(); /* The parser's stack */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* For tracing shifts, the names of all terminals and nonterminals
|
|
|
|
* are required. The following table supplies these names
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
public $yyTokenName = array(
|
|
|
|
'$', 'OTHER', 'LDELSLASH', 'LDEL',
|
2009-06-14 13:08:13 +00:00
|
|
|
'RDEL', 'PHP', 'SHORTTAGSTART', 'SHORTTAGEND',
|
|
|
|
'COMMENTEND', 'COMMENTSTART', 'INTEGER', 'MATH',
|
|
|
|
'UNIMATH', 'INCDEC', 'OPENP', 'CLOSEP',
|
|
|
|
'OPENB', 'CLOSEB', 'DOLLAR', 'DOT',
|
|
|
|
'COMMA', 'COLON', 'DOUBLECOLON', 'SEMICOLON',
|
|
|
|
'VERT', 'EQUAL', 'SPACE', 'PTR',
|
|
|
|
'APTR', 'ID', 'EQUALS', 'NOTEQUALS',
|
|
|
|
'GREATERTHAN', 'LESSTHAN', 'GREATEREQUAL', 'LESSEQUAL',
|
|
|
|
'IDENTITY', 'NONEIDENTITY', 'NOT', 'LAND',
|
|
|
|
'LOR', 'QUOTE', 'SINGLEQUOTE', 'BOOLEAN',
|
|
|
|
'NULL', 'AS', 'ANDSYM', 'BACKTICK',
|
|
|
|
'HATCH', 'AT', 'ISODD', 'ISNOTODD',
|
|
|
|
'ISEVEN', 'ISNOTEVEN', 'ISODDBY', 'ISNOTODDBY',
|
|
|
|
'ISEVENBY', 'ISNOTEVENBY', 'ISDIVBY', 'ISNOTDIVBY',
|
|
|
|
'ISIN', 'LITERALSTART', 'LITERALEND', 'LDELIMTAG',
|
|
|
|
'RDELIMTAG', 'PHPSTART', 'PHPEND', 'XML',
|
2009-04-14 09:04:15 +00:00
|
|
|
'error', 'start', 'template', 'template_element',
|
|
|
|
'smartytag', 'text', 'variable', 'expr',
|
2009-05-05 17:19:33 +00:00
|
|
|
'attributes', 'varindexed', 'modifier', 'modparameters',
|
|
|
|
'ifexprs', 'statement', 'statements', 'varvar',
|
|
|
|
'foraction', 'value', 'array', 'attribute',
|
|
|
|
'exprs', 'math', 'function', 'doublequoted',
|
|
|
|
'method', 'params', 'objectchain', 'arrayindex',
|
2009-04-14 09:04:15 +00:00
|
|
|
'object', 'indexdef', 'varvarele', 'objectelement',
|
|
|
|
'modparameter', 'ifexpr', 'ifcond', 'lop',
|
|
|
|
'arrayelements', 'arrayelement', 'doublequotedcontent', 'textelement',
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* For tracing reduce actions, the names of all rules are required.
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
static public $yyRuleName = array(
|
|
|
|
/* 0 */ "start ::= template",
|
|
|
|
/* 1 */ "template ::= template_element",
|
|
|
|
/* 2 */ "template ::= template template_element",
|
|
|
|
/* 3 */ "template_element ::= smartytag",
|
|
|
|
/* 4 */ "template_element ::= COMMENTSTART text COMMENTEND",
|
|
|
|
/* 5 */ "template_element ::= LITERALSTART text LITERALEND",
|
|
|
|
/* 6 */ "template_element ::= LDELIMTAG",
|
|
|
|
/* 7 */ "template_element ::= RDELIMTAG",
|
|
|
|
/* 8 */ "template_element ::= PHP",
|
|
|
|
/* 9 */ "template_element ::= PHPSTART text PHPEND",
|
|
|
|
/* 10 */ "template_element ::= SHORTTAGSTART variable SHORTTAGEND",
|
|
|
|
/* 11 */ "template_element ::= XML",
|
2009-06-14 13:08:13 +00:00
|
|
|
/* 12 */ "template_element ::= SHORTTAGEND",
|
|
|
|
/* 13 */ "template_element ::= OTHER",
|
|
|
|
/* 14 */ "smartytag ::= LDEL expr attributes RDEL",
|
|
|
|
/* 15 */ "smartytag ::= LDEL varindexed EQUAL expr attributes RDEL",
|
|
|
|
/* 16 */ "smartytag ::= LDEL ID attributes RDEL",
|
|
|
|
/* 17 */ "smartytag ::= LDEL ID PTR ID attributes RDEL",
|
|
|
|
/* 18 */ "smartytag ::= LDEL ID modifier modparameters attributes RDEL",
|
|
|
|
/* 19 */ "smartytag ::= LDELSLASH ID attributes RDEL",
|
|
|
|
/* 20 */ "smartytag ::= LDELSLASH ID PTR ID RDEL",
|
|
|
|
/* 21 */ "smartytag ::= LDEL ID SPACE ifexprs RDEL",
|
|
|
|
/* 22 */ "smartytag ::= LDEL ID SPACE statement RDEL",
|
|
|
|
/* 23 */ "smartytag ::= LDEL ID SPACE statements SEMICOLON ifexprs SEMICOLON DOLLAR varvar foraction RDEL",
|
|
|
|
/* 24 */ "foraction ::= EQUAL expr",
|
|
|
|
/* 25 */ "foraction ::= INCDEC",
|
|
|
|
/* 26 */ "smartytag ::= LDEL ID SPACE value AS DOLLAR varvar RDEL",
|
|
|
|
/* 27 */ "smartytag ::= LDEL ID SPACE array AS DOLLAR varvar RDEL",
|
|
|
|
/* 28 */ "attributes ::= attributes attribute",
|
|
|
|
/* 29 */ "attributes ::= attribute",
|
|
|
|
/* 30 */ "attributes ::=",
|
|
|
|
/* 31 */ "attribute ::= SPACE ID EQUAL expr",
|
|
|
|
/* 32 */ "statements ::= statement",
|
|
|
|
/* 33 */ "statements ::= statements COMMA statement",
|
|
|
|
/* 34 */ "statement ::= DOLLAR varvar EQUAL expr",
|
|
|
|
/* 35 */ "expr ::= ID",
|
|
|
|
/* 36 */ "expr ::= exprs",
|
|
|
|
/* 37 */ "expr ::= DOLLAR ID COLON ID",
|
|
|
|
/* 38 */ "expr ::= expr modifier modparameters",
|
|
|
|
/* 39 */ "exprs ::= array",
|
|
|
|
/* 40 */ "exprs ::= value",
|
|
|
|
/* 41 */ "exprs ::= UNIMATH value",
|
|
|
|
/* 42 */ "exprs ::= exprs math value",
|
|
|
|
/* 43 */ "exprs ::= exprs ANDSYM value",
|
|
|
|
/* 44 */ "math ::= UNIMATH",
|
|
|
|
/* 45 */ "math ::= MATH",
|
|
|
|
/* 46 */ "value ::= variable",
|
|
|
|
/* 47 */ "value ::= INTEGER",
|
|
|
|
/* 48 */ "value ::= INTEGER DOT INTEGER",
|
|
|
|
/* 49 */ "value ::= BOOLEAN",
|
|
|
|
/* 50 */ "value ::= NULL",
|
|
|
|
/* 51 */ "value ::= function",
|
|
|
|
/* 52 */ "value ::= OPENP expr CLOSEP",
|
|
|
|
/* 53 */ "value ::= SINGLEQUOTE text SINGLEQUOTE",
|
|
|
|
/* 54 */ "value ::= SINGLEQUOTE SINGLEQUOTE",
|
|
|
|
/* 55 */ "value ::= QUOTE doublequoted QUOTE",
|
|
|
|
/* 56 */ "value ::= QUOTE QUOTE",
|
|
|
|
/* 57 */ "value ::= ID DOUBLECOLON method",
|
|
|
|
/* 58 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP",
|
|
|
|
/* 59 */ "value ::= ID DOUBLECOLON method objectchain",
|
|
|
|
/* 60 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain",
|
|
|
|
/* 61 */ "value ::= ID DOUBLECOLON ID",
|
|
|
|
/* 62 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex",
|
|
|
|
/* 63 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain",
|
|
|
|
/* 64 */ "variable ::= varindexed",
|
|
|
|
/* 65 */ "variable ::= DOLLAR varvar AT ID",
|
|
|
|
/* 66 */ "variable ::= object",
|
|
|
|
/* 67 */ "variable ::= HATCH ID HATCH",
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 68 */ "variable ::= HATCH variable HATCH",
|
|
|
|
/* 69 */ "varindexed ::= DOLLAR varvar arrayindex",
|
|
|
|
/* 70 */ "arrayindex ::= arrayindex indexdef",
|
|
|
|
/* 71 */ "arrayindex ::=",
|
|
|
|
/* 72 */ "indexdef ::= DOT ID",
|
|
|
|
/* 73 */ "indexdef ::= DOT INTEGER",
|
|
|
|
/* 74 */ "indexdef ::= DOT variable",
|
|
|
|
/* 75 */ "indexdef ::= DOT LDEL exprs RDEL",
|
|
|
|
/* 76 */ "indexdef ::= OPENB ID CLOSEB",
|
|
|
|
/* 77 */ "indexdef ::= OPENB exprs CLOSEB",
|
|
|
|
/* 78 */ "indexdef ::= OPENB CLOSEB",
|
|
|
|
/* 79 */ "varvar ::= varvarele",
|
|
|
|
/* 80 */ "varvar ::= varvar varvarele",
|
|
|
|
/* 81 */ "varvarele ::= ID",
|
|
|
|
/* 82 */ "varvarele ::= LDEL expr RDEL",
|
|
|
|
/* 83 */ "object ::= varindexed objectchain",
|
|
|
|
/* 84 */ "objectchain ::= objectelement",
|
|
|
|
/* 85 */ "objectchain ::= objectchain objectelement",
|
|
|
|
/* 86 */ "objectelement ::= PTR ID arrayindex",
|
|
|
|
/* 87 */ "objectelement ::= PTR variable arrayindex",
|
|
|
|
/* 88 */ "objectelement ::= PTR LDEL expr RDEL arrayindex",
|
|
|
|
/* 89 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex",
|
|
|
|
/* 90 */ "objectelement ::= PTR method",
|
|
|
|
/* 91 */ "function ::= ID OPENP params CLOSEP",
|
|
|
|
/* 92 */ "method ::= ID OPENP params CLOSEP",
|
|
|
|
/* 93 */ "params ::= expr COMMA params",
|
|
|
|
/* 94 */ "params ::= expr",
|
|
|
|
/* 95 */ "params ::=",
|
|
|
|
/* 96 */ "modifier ::= VERT AT ID",
|
|
|
|
/* 97 */ "modifier ::= VERT ID",
|
|
|
|
/* 98 */ "modparameters ::= modparameters modparameter",
|
|
|
|
/* 99 */ "modparameters ::=",
|
|
|
|
/* 100 */ "modparameter ::= COLON exprs",
|
|
|
|
/* 101 */ "modparameter ::= COLON ID",
|
|
|
|
/* 102 */ "ifexprs ::= ifexpr",
|
|
|
|
/* 103 */ "ifexprs ::= NOT ifexprs",
|
|
|
|
/* 104 */ "ifexprs ::= OPENP ifexprs CLOSEP",
|
|
|
|
/* 105 */ "ifexpr ::= expr",
|
|
|
|
/* 106 */ "ifexpr ::= expr ifcond expr",
|
|
|
|
/* 107 */ "ifexpr ::= expr ISIN array",
|
|
|
|
/* 108 */ "ifexpr ::= expr ISIN value",
|
|
|
|
/* 109 */ "ifexpr ::= ifexprs lop ifexprs",
|
|
|
|
/* 110 */ "ifexpr ::= ifexprs ISDIVBY ifexprs",
|
|
|
|
/* 111 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs",
|
|
|
|
/* 112 */ "ifexpr ::= ifexprs ISEVEN",
|
|
|
|
/* 113 */ "ifexpr ::= ifexprs ISNOTEVEN",
|
|
|
|
/* 114 */ "ifexpr ::= ifexprs ISEVENBY ifexprs",
|
|
|
|
/* 115 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs",
|
|
|
|
/* 116 */ "ifexpr ::= ifexprs ISODD",
|
|
|
|
/* 117 */ "ifexpr ::= ifexprs ISNOTODD",
|
|
|
|
/* 118 */ "ifexpr ::= ifexprs ISODDBY ifexprs",
|
|
|
|
/* 119 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs",
|
|
|
|
/* 120 */ "ifcond ::= EQUALS",
|
|
|
|
/* 121 */ "ifcond ::= NOTEQUALS",
|
|
|
|
/* 122 */ "ifcond ::= GREATERTHAN",
|
|
|
|
/* 123 */ "ifcond ::= LESSTHAN",
|
|
|
|
/* 124 */ "ifcond ::= GREATEREQUAL",
|
|
|
|
/* 125 */ "ifcond ::= LESSEQUAL",
|
|
|
|
/* 126 */ "ifcond ::= IDENTITY",
|
|
|
|
/* 127 */ "ifcond ::= NONEIDENTITY",
|
|
|
|
/* 128 */ "lop ::= LAND",
|
|
|
|
/* 129 */ "lop ::= LOR",
|
|
|
|
/* 130 */ "array ::= OPENB arrayelements CLOSEB",
|
|
|
|
/* 131 */ "arrayelements ::= arrayelement",
|
|
|
|
/* 132 */ "arrayelements ::= arrayelements COMMA arrayelement",
|
|
|
|
/* 133 */ "arrayelements ::=",
|
|
|
|
/* 134 */ "arrayelement ::= expr",
|
|
|
|
/* 135 */ "arrayelement ::= expr APTR expr",
|
|
|
|
/* 136 */ "arrayelement ::= ID APTR expr",
|
|
|
|
/* 137 */ "doublequoted ::= doublequoted doublequotedcontent",
|
|
|
|
/* 138 */ "doublequoted ::= doublequotedcontent",
|
|
|
|
/* 139 */ "doublequotedcontent ::= BACKTICK ID BACKTICK",
|
|
|
|
/* 140 */ "doublequotedcontent ::= BACKTICK variable BACKTICK",
|
|
|
|
/* 141 */ "doublequotedcontent ::= DOLLAR ID",
|
|
|
|
/* 142 */ "doublequotedcontent ::= LDEL expr RDEL",
|
|
|
|
/* 143 */ "doublequotedcontent ::= DOLLAR OTHER",
|
|
|
|
/* 144 */ "doublequotedcontent ::= LDEL OTHER",
|
|
|
|
/* 145 */ "doublequotedcontent ::= BACKTICK OTHER",
|
|
|
|
/* 146 */ "doublequotedcontent ::= OTHER",
|
|
|
|
/* 147 */ "text ::= text textelement",
|
|
|
|
/* 148 */ "text ::= textelement",
|
|
|
|
/* 149 */ "textelement ::= OTHER",
|
|
|
|
/* 150 */ "textelement ::= LDEL",
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This function returns the symbolic name associated with a token
|
|
|
|
* value.
|
|
|
|
* @param int
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
function tokenName($tokenType)
|
|
|
|
{
|
|
|
|
if ($tokenType === 0) {
|
|
|
|
return 'End of Input';
|
|
|
|
}
|
|
|
|
if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) {
|
|
|
|
return $this->yyTokenName[$tokenType];
|
|
|
|
} else {
|
|
|
|
return "Unknown";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The following function deletes the value associated with a
|
|
|
|
* symbol. The symbol can be either a terminal or nonterminal.
|
|
|
|
* @param int the symbol code
|
|
|
|
* @param mixed the symbol's value
|
|
|
|
*/
|
|
|
|
static function yy_destructor($yymajor, $yypminor)
|
|
|
|
{
|
|
|
|
switch ($yymajor) {
|
|
|
|
/* Here is inserted the actions which take place when a
|
|
|
|
** terminal or non-terminal is destroyed. This can happen
|
|
|
|
** when the symbol is popped from the stack during a
|
|
|
|
** reduce or during error processing or when a parser is
|
|
|
|
** being destroyed before it is finished parsing.
|
|
|
|
**
|
|
|
|
** Note: during a reduce, the only symbols destroyed are those
|
|
|
|
** which appear on the RHS of the rule, but which are not used
|
|
|
|
** inside the C code.
|
|
|
|
*/
|
|
|
|
default: break; /* If no destructor action specified: do nothing */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Pop the parser's stack once.
|
|
|
|
*
|
|
|
|
* If there is a destructor routine associated with the token which
|
|
|
|
* is popped from the stack, then call it.
|
|
|
|
*
|
|
|
|
* Return the major token number for the symbol popped.
|
|
|
|
* @param TP_yyParser
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
function yy_pop_parser_stack()
|
|
|
|
{
|
|
|
|
if (!count($this->yystack)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
$yytos = array_pop($this->yystack);
|
|
|
|
if (self::$yyTraceFILE && $this->yyidx >= 0) {
|
|
|
|
fwrite(self::$yyTraceFILE,
|
|
|
|
self::$yyTracePrompt . 'Popping ' . $this->yyTokenName[$yytos->major] .
|
|
|
|
"\n");
|
|
|
|
}
|
|
|
|
$yymajor = $yytos->major;
|
|
|
|
self::yy_destructor($yymajor, $yytos->minor);
|
|
|
|
$this->yyidx--;
|
|
|
|
return $yymajor;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deallocate and destroy a parser. Destructors are all called for
|
|
|
|
* all stack elements before shutting the parser down.
|
|
|
|
*/
|
|
|
|
function __destruct()
|
|
|
|
{
|
|
|
|
while ($this->yyidx >= 0) {
|
|
|
|
$this->yy_pop_parser_stack();
|
|
|
|
}
|
|
|
|
if (is_resource(self::$yyTraceFILE)) {
|
|
|
|
fclose(self::$yyTraceFILE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Based on the current state and parser stack, get a list of all
|
|
|
|
* possible lookahead tokens
|
|
|
|
* @param int
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
function yy_get_expected_tokens($token)
|
|
|
|
{
|
|
|
|
$state = $this->yystack[$this->yyidx]->stateno;
|
|
|
|
$expected = self::$yyExpectedTokens[$state];
|
|
|
|
if (in_array($token, self::$yyExpectedTokens[$state], true)) {
|
|
|
|
return $expected;
|
|
|
|
}
|
|
|
|
$stack = $this->yystack;
|
|
|
|
$yyidx = $this->yyidx;
|
|
|
|
do {
|
|
|
|
$yyact = $this->yy_find_shift_action($token);
|
|
|
|
if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
|
|
|
|
// reduce action
|
|
|
|
$done = 0;
|
|
|
|
do {
|
|
|
|
if ($done++ == 100) {
|
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
|
|
|
// too much recursion prevents proper detection
|
|
|
|
// so give up
|
|
|
|
return array_unique($expected);
|
|
|
|
}
|
|
|
|
$yyruleno = $yyact - self::YYNSTATE;
|
|
|
|
$this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs'];
|
|
|
|
$nextstate = $this->yy_find_reduce_action(
|
|
|
|
$this->yystack[$this->yyidx]->stateno,
|
|
|
|
self::$yyRuleInfo[$yyruleno]['lhs']);
|
|
|
|
if (isset(self::$yyExpectedTokens[$nextstate])) {
|
|
|
|
$expected += self::$yyExpectedTokens[$nextstate];
|
|
|
|
if (in_array($token,
|
|
|
|
self::$yyExpectedTokens[$nextstate], true)) {
|
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
|
|
|
return array_unique($expected);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($nextstate < self::YYNSTATE) {
|
|
|
|
// we need to shift a non-terminal
|
|
|
|
$this->yyidx++;
|
|
|
|
$x = new TP_yyStackEntry;
|
|
|
|
$x->stateno = $nextstate;
|
|
|
|
$x->major = self::$yyRuleInfo[$yyruleno]['lhs'];
|
|
|
|
$this->yystack[$this->yyidx] = $x;
|
|
|
|
continue 2;
|
|
|
|
} elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) {
|
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
|
|
|
// the last token was just ignored, we can't accept
|
|
|
|
// by ignoring input, this is in essence ignoring a
|
|
|
|
// syntax error!
|
|
|
|
return array_unique($expected);
|
|
|
|
} elseif ($nextstate === self::YY_NO_ACTION) {
|
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
|
|
|
// input accepted, but not shifted (I guess)
|
|
|
|
return $expected;
|
|
|
|
} else {
|
|
|
|
$yyact = $nextstate;
|
|
|
|
}
|
|
|
|
} while (true);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
} while (true);
|
|
|
|
return array_unique($expected);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Based on the parser state and current parser stack, determine whether
|
|
|
|
* the lookahead token is possible.
|
|
|
|
*
|
|
|
|
* The parser will convert the token value to an error token if not. This
|
|
|
|
* catches some unusual edge cases where the parser would fail.
|
|
|
|
* @param int
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
function yy_is_expected_token($token)
|
|
|
|
{
|
|
|
|
if ($token === 0) {
|
|
|
|
return true; // 0 is not part of this
|
|
|
|
}
|
|
|
|
$state = $this->yystack[$this->yyidx]->stateno;
|
|
|
|
if (in_array($token, self::$yyExpectedTokens[$state], true)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
$stack = $this->yystack;
|
|
|
|
$yyidx = $this->yyidx;
|
|
|
|
do {
|
|
|
|
$yyact = $this->yy_find_shift_action($token);
|
|
|
|
if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
|
|
|
|
// reduce action
|
|
|
|
$done = 0;
|
|
|
|
do {
|
|
|
|
if ($done++ == 100) {
|
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
|
|
|
// too much recursion prevents proper detection
|
|
|
|
// so give up
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
$yyruleno = $yyact - self::YYNSTATE;
|
|
|
|
$this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs'];
|
|
|
|
$nextstate = $this->yy_find_reduce_action(
|
|
|
|
$this->yystack[$this->yyidx]->stateno,
|
|
|
|
self::$yyRuleInfo[$yyruleno]['lhs']);
|
|
|
|
if (isset(self::$yyExpectedTokens[$nextstate]) &&
|
|
|
|
in_array($token, self::$yyExpectedTokens[$nextstate], true)) {
|
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
if ($nextstate < self::YYNSTATE) {
|
|
|
|
// we need to shift a non-terminal
|
|
|
|
$this->yyidx++;
|
|
|
|
$x = new TP_yyStackEntry;
|
|
|
|
$x->stateno = $nextstate;
|
|
|
|
$x->major = self::$yyRuleInfo[$yyruleno]['lhs'];
|
|
|
|
$this->yystack[$this->yyidx] = $x;
|
|
|
|
continue 2;
|
|
|
|
} elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) {
|
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
|
|
|
if (!$token) {
|
|
|
|
// end of input: this is valid
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
// the last token was just ignored, we can't accept
|
|
|
|
// by ignoring input, this is in essence ignoring a
|
|
|
|
// syntax error!
|
|
|
|
return false;
|
|
|
|
} elseif ($nextstate === self::YY_NO_ACTION) {
|
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
|
|
|
// input accepted, but not shifted (I guess)
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
$yyact = $nextstate;
|
|
|
|
}
|
|
|
|
} while (true);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
} while (true);
|
|
|
|
$this->yyidx = $yyidx;
|
|
|
|
$this->yystack = $stack;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Find the appropriate action for a parser given the terminal
|
|
|
|
* look-ahead token iLookAhead.
|
|
|
|
*
|
|
|
|
* If the look-ahead token is YYNOCODE, then check to see if the action is
|
|
|
|
* independent of the look-ahead. If it is, return the action, otherwise
|
|
|
|
* return YY_NO_ACTION.
|
|
|
|
* @param int The look-ahead token
|
|
|
|
*/
|
|
|
|
function yy_find_shift_action($iLookAhead)
|
|
|
|
{
|
|
|
|
$stateno = $this->yystack[$this->yyidx]->stateno;
|
|
|
|
|
|
|
|
/* if ($this->yyidx < 0) return self::YY_NO_ACTION; */
|
|
|
|
if (!isset(self::$yy_shift_ofst[$stateno])) {
|
|
|
|
// no shift actions
|
|
|
|
return self::$yy_default[$stateno];
|
|
|
|
}
|
|
|
|
$i = self::$yy_shift_ofst[$stateno];
|
|
|
|
if ($i === self::YY_SHIFT_USE_DFLT) {
|
|
|
|
return self::$yy_default[$stateno];
|
|
|
|
}
|
|
|
|
if ($iLookAhead == self::YYNOCODE) {
|
|
|
|
return self::YY_NO_ACTION;
|
|
|
|
}
|
|
|
|
$i += $iLookAhead;
|
|
|
|
if ($i < 0 || $i >= self::YY_SZ_ACTTAB ||
|
|
|
|
self::$yy_lookahead[$i] != $iLookAhead) {
|
|
|
|
if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback)
|
|
|
|
&& ($iFallback = self::$yyFallback[$iLookAhead]) != 0) {
|
|
|
|
if (self::$yyTraceFILE) {
|
|
|
|
fwrite(self::$yyTraceFILE, self::$yyTracePrompt . "FALLBACK " .
|
|
|
|
$this->yyTokenName[$iLookAhead] . " => " .
|
|
|
|
$this->yyTokenName[$iFallback] . "\n");
|
|
|
|
}
|
|
|
|
return $this->yy_find_shift_action($iFallback);
|
|
|
|
}
|
|
|
|
return self::$yy_default[$stateno];
|
|
|
|
} else {
|
|
|
|
return self::$yy_action[$i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Find the appropriate action for a parser given the non-terminal
|
|
|
|
* look-ahead token $iLookAhead.
|
|
|
|
*
|
|
|
|
* If the look-ahead token is self::YYNOCODE, then check to see if the action is
|
|
|
|
* independent of the look-ahead. If it is, return the action, otherwise
|
|
|
|
* return self::YY_NO_ACTION.
|
|
|
|
* @param int Current state number
|
|
|
|
* @param int The look-ahead token
|
|
|
|
*/
|
|
|
|
function yy_find_reduce_action($stateno, $iLookAhead)
|
|
|
|
{
|
|
|
|
/* $stateno = $this->yystack[$this->yyidx]->stateno; */
|
|
|
|
|
|
|
|
if (!isset(self::$yy_reduce_ofst[$stateno])) {
|
|
|
|
return self::$yy_default[$stateno];
|
|
|
|
}
|
|
|
|
$i = self::$yy_reduce_ofst[$stateno];
|
|
|
|
if ($i == self::YY_REDUCE_USE_DFLT) {
|
|
|
|
return self::$yy_default[$stateno];
|
|
|
|
}
|
|
|
|
if ($iLookAhead == self::YYNOCODE) {
|
|
|
|
return self::YY_NO_ACTION;
|
|
|
|
}
|
|
|
|
$i += $iLookAhead;
|
|
|
|
if ($i < 0 || $i >= self::YY_SZ_ACTTAB ||
|
|
|
|
self::$yy_lookahead[$i] != $iLookAhead) {
|
|
|
|
return self::$yy_default[$stateno];
|
|
|
|
} else {
|
|
|
|
return self::$yy_action[$i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Perform a shift action.
|
|
|
|
* @param int The new state to shift in
|
|
|
|
* @param int The major token to shift in
|
|
|
|
* @param mixed the minor token to shift in
|
|
|
|
*/
|
|
|
|
function yy_shift($yyNewState, $yyMajor, $yypMinor)
|
|
|
|
{
|
|
|
|
$this->yyidx++;
|
|
|
|
if ($this->yyidx >= self::YYSTACKDEPTH) {
|
|
|
|
$this->yyidx--;
|
|
|
|
if (self::$yyTraceFILE) {
|
|
|
|
fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt);
|
|
|
|
}
|
|
|
|
while ($this->yyidx >= 0) {
|
|
|
|
$this->yy_pop_parser_stack();
|
|
|
|
}
|
|
|
|
/* Here code is inserted which will execute if the parser
|
|
|
|
** stack ever overflows */
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
$yytos = new TP_yyStackEntry;
|
|
|
|
$yytos->stateno = $yyNewState;
|
|
|
|
$yytos->major = $yyMajor;
|
|
|
|
$yytos->minor = $yypMinor;
|
|
|
|
array_push($this->yystack, $yytos);
|
|
|
|
if (self::$yyTraceFILE && $this->yyidx > 0) {
|
|
|
|
fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt,
|
|
|
|
$yyNewState);
|
|
|
|
fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt);
|
|
|
|
for($i = 1; $i <= $this->yyidx; $i++) {
|
|
|
|
fprintf(self::$yyTraceFILE, " %s",
|
|
|
|
$this->yyTokenName[$this->yystack[$i]->major]);
|
|
|
|
}
|
|
|
|
fwrite(self::$yyTraceFILE,"\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The following table contains information about every rule that
|
|
|
|
* is used during the reduce.
|
|
|
|
*
|
|
|
|
* <pre>
|
|
|
|
* array(
|
|
|
|
* array(
|
|
|
|
* int $lhs; Symbol on the left-hand side of the rule
|
|
|
|
* int $nrhs; Number of right-hand side symbols in the rule
|
|
|
|
* ),...
|
|
|
|
* );
|
|
|
|
* </pre>
|
|
|
|
*/
|
|
|
|
static public $yyRuleInfo = array(
|
|
|
|
array( 'lhs' => 69, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 70, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 70, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 1 ),
|
2009-06-14 13:08:13 +00:00
|
|
|
array( 'lhs' => 71, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 72, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 6 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 6 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 6 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 5 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 5 ),
|
2009-04-28 15:37:13 +00:00
|
|
|
array( 'lhs' => 72, 'rhs' => 5 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 72, 'rhs' => 11 ),
|
2009-05-05 17:19:33 +00:00
|
|
|
array( 'lhs' => 84, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 84, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 72, 'rhs' => 8 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 8 ),
|
|
|
|
array( 'lhs' => 76, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 76, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 76, 'rhs' => 0 ),
|
2009-05-05 17:19:33 +00:00
|
|
|
array( 'lhs' => 87, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 82, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 82, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 81, 'rhs' => 4 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
array( 'lhs' => 75, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 75, 'rhs' => 1 ),
|
2009-05-14 10:53:28 +00:00
|
|
|
array( 'lhs' => 75, 'rhs' => 4 ),
|
2009-05-09 12:44:43 +00:00
|
|
|
array( 'lhs' => 75, 'rhs' => 3 ),
|
2009-05-05 17:19:33 +00:00
|
|
|
array( 'lhs' => 88, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 3 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 89, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 89, 'rhs' => 1 ),
|
2009-05-05 17:19:33 +00:00
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 7 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 8 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 5 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 6 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 4 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 74, 'rhs' => 3 ),
|
2009-07-29 16:43:54 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 3 ),
|
2009-05-05 17:19:33 +00:00
|
|
|
array( 'lhs' => 77, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 95, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 95, 'rhs' => 0 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
2009-05-05 17:19:33 +00:00
|
|
|
array( 'lhs' => 83, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 83, 'rhs' => 2 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 98, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 98, 'rhs' => 3 ),
|
2009-07-28 19:26:56 +00:00
|
|
|
array( 'lhs' => 96, 'rhs' => 2 ),
|
2009-05-05 17:19:33 +00:00
|
|
|
array( 'lhs' => 94, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 94, 'rhs' => 2 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 99, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 99, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 99, 'rhs' => 5 ),
|
|
|
|
array( 'lhs' => 99, 'rhs' => 6 ),
|
|
|
|
array( 'lhs' => 99, 'rhs' => 2 ),
|
2009-05-05 17:19:33 +00:00
|
|
|
array( 'lhs' => 90, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 92, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 93, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 93, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 93, 'rhs' => 0 ),
|
|
|
|
array( 'lhs' => 78, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 78, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 79, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 79, 'rhs' => 0 ),
|
2009-04-05 14:49:27 +00:00
|
|
|
array( 'lhs' => 100, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 100, 'rhs' => 2 ),
|
2009-05-05 17:19:33 +00:00
|
|
|
array( 'lhs' => 80, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 80, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 80, 'rhs' => 3 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
array( 'lhs' => 101, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
2009-04-14 12:41:07 +00:00
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 101, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
2009-04-05 14:49:27 +00:00
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 103, 'rhs' => 1 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
array( 'lhs' => 103, 'rhs' => 1 ),
|
2009-05-05 17:19:33 +00:00
|
|
|
array( 'lhs' => 86, 'rhs' => 3 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
array( 'lhs' => 104, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 104, 'rhs' => 0 ),
|
2009-04-10 14:31:23 +00:00
|
|
|
array( 'lhs' => 105, 'rhs' => 1 ),
|
2009-04-05 14:49:27 +00:00
|
|
|
array( 'lhs' => 105, 'rhs' => 3 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 105, 'rhs' => 3 ),
|
2009-05-05 17:19:33 +00:00
|
|
|
array( 'lhs' => 91, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 106, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 106, 'rhs' => 3 ),
|
2009-04-20 20:33:14 +00:00
|
|
|
array( 'lhs' => 106, 'rhs' => 2 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 106, 'rhs' => 3 ),
|
2009-07-22 16:22:24 +00:00
|
|
|
array( 'lhs' => 106, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 106, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 106, 'rhs' => 2 ),
|
2009-04-05 14:49:27 +00:00
|
|
|
array( 'lhs' => 106, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 73, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 73, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 1 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The following table contains a mapping of reduce action to method name
|
|
|
|
* that handles the reduction.
|
|
|
|
*
|
|
|
|
* If a rule is not set, it has no handler.
|
|
|
|
*/
|
|
|
|
static public $yyReduceMap = array(
|
|
|
|
0 => 0,
|
2009-06-14 13:08:13 +00:00
|
|
|
40 => 0,
|
2009-05-09 12:44:43 +00:00
|
|
|
46 => 0,
|
2009-06-14 13:08:13 +00:00
|
|
|
47 => 0,
|
2009-04-05 14:49:27 +00:00
|
|
|
49 => 0,
|
2009-05-09 12:44:43 +00:00
|
|
|
50 => 0,
|
2009-06-14 13:08:13 +00:00
|
|
|
51 => 0,
|
|
|
|
66 => 0,
|
2009-07-29 16:43:54 +00:00
|
|
|
131 => 0,
|
2009-03-22 16:09:05 +00:00
|
|
|
1 => 1,
|
2009-06-14 13:08:13 +00:00
|
|
|
36 => 1,
|
|
|
|
39 => 1,
|
2009-05-09 12:44:43 +00:00
|
|
|
44 => 1,
|
2009-06-14 13:08:13 +00:00
|
|
|
45 => 1,
|
2009-07-29 16:43:54 +00:00
|
|
|
79 => 1,
|
|
|
|
102 => 1,
|
|
|
|
138 => 1,
|
2009-07-22 16:22:24 +00:00
|
|
|
148 => 1,
|
|
|
|
149 => 1,
|
2009-07-29 16:43:54 +00:00
|
|
|
150 => 1,
|
2009-03-22 16:09:05 +00:00
|
|
|
2 => 2,
|
2009-07-29 16:43:54 +00:00
|
|
|
70 => 2,
|
|
|
|
137 => 2,
|
|
|
|
147 => 2,
|
2009-03-22 16:09:05 +00:00
|
|
|
3 => 3,
|
|
|
|
4 => 4,
|
|
|
|
5 => 5,
|
|
|
|
6 => 6,
|
|
|
|
7 => 7,
|
|
|
|
8 => 8,
|
|
|
|
9 => 9,
|
|
|
|
10 => 10,
|
|
|
|
11 => 11,
|
|
|
|
12 => 12,
|
|
|
|
13 => 13,
|
|
|
|
14 => 14,
|
|
|
|
15 => 15,
|
|
|
|
16 => 16,
|
|
|
|
17 => 17,
|
|
|
|
18 => 18,
|
|
|
|
19 => 19,
|
|
|
|
20 => 20,
|
|
|
|
21 => 21,
|
2009-05-05 17:19:33 +00:00
|
|
|
22 => 22,
|
2009-03-22 16:09:05 +00:00
|
|
|
23 => 23,
|
|
|
|
24 => 24,
|
2009-04-05 14:49:27 +00:00
|
|
|
25 => 25,
|
2009-06-14 13:08:13 +00:00
|
|
|
29 => 25,
|
2009-07-29 16:43:54 +00:00
|
|
|
94 => 25,
|
|
|
|
134 => 25,
|
2009-04-28 15:37:13 +00:00
|
|
|
26 => 26,
|
2009-05-05 17:19:33 +00:00
|
|
|
27 => 27,
|
2009-06-14 13:08:13 +00:00
|
|
|
28 => 28,
|
2009-03-22 16:09:05 +00:00
|
|
|
30 => 30,
|
|
|
|
31 => 31,
|
|
|
|
32 => 32,
|
|
|
|
33 => 33,
|
2009-04-05 14:49:27 +00:00
|
|
|
34 => 34,
|
2009-06-14 13:08:13 +00:00
|
|
|
35 => 35,
|
2009-05-09 12:44:43 +00:00
|
|
|
37 => 37,
|
2009-06-14 13:08:13 +00:00
|
|
|
38 => 38,
|
2009-04-05 14:49:27 +00:00
|
|
|
41 => 41,
|
2009-05-09 12:44:43 +00:00
|
|
|
42 => 42,
|
2009-06-14 13:08:13 +00:00
|
|
|
43 => 43,
|
|
|
|
48 => 48,
|
2009-03-22 16:09:05 +00:00
|
|
|
52 => 52,
|
2009-04-05 14:49:27 +00:00
|
|
|
53 => 53,
|
2009-05-09 12:44:43 +00:00
|
|
|
54 => 54,
|
2009-06-14 13:08:13 +00:00
|
|
|
56 => 54,
|
|
|
|
55 => 55,
|
2009-03-22 16:09:05 +00:00
|
|
|
57 => 57,
|
|
|
|
58 => 58,
|
|
|
|
59 => 59,
|
|
|
|
60 => 60,
|
|
|
|
61 => 61,
|
|
|
|
62 => 62,
|
2009-04-05 14:49:27 +00:00
|
|
|
63 => 63,
|
2009-05-09 12:44:43 +00:00
|
|
|
64 => 64,
|
2009-06-14 13:08:13 +00:00
|
|
|
65 => 65,
|
2009-04-28 15:37:13 +00:00
|
|
|
67 => 67,
|
2009-06-14 13:08:13 +00:00
|
|
|
68 => 68,
|
2009-07-29 16:43:54 +00:00
|
|
|
69 => 69,
|
2009-04-09 15:53:52 +00:00
|
|
|
71 => 71,
|
2009-07-29 16:43:54 +00:00
|
|
|
99 => 71,
|
2009-04-08 14:47:28 +00:00
|
|
|
72 => 72,
|
2009-04-18 14:46:29 +00:00
|
|
|
73 => 73,
|
2009-04-28 15:37:13 +00:00
|
|
|
74 => 74,
|
2009-06-14 13:08:13 +00:00
|
|
|
75 => 75,
|
2009-07-29 16:43:54 +00:00
|
|
|
77 => 75,
|
|
|
|
76 => 76,
|
|
|
|
78 => 78,
|
2009-03-22 16:09:05 +00:00
|
|
|
80 => 80,
|
|
|
|
81 => 81,
|
2009-04-03 15:59:40 +00:00
|
|
|
82 => 82,
|
2009-07-29 16:43:54 +00:00
|
|
|
104 => 82,
|
2009-04-05 14:49:27 +00:00
|
|
|
83 => 83,
|
2009-04-08 14:47:28 +00:00
|
|
|
84 => 84,
|
2009-03-22 16:09:05 +00:00
|
|
|
85 => 85,
|
|
|
|
86 => 86,
|
2009-04-09 15:53:52 +00:00
|
|
|
87 => 87,
|
2009-04-05 14:49:27 +00:00
|
|
|
88 => 88,
|
2009-04-09 17:43:32 +00:00
|
|
|
89 => 89,
|
2009-04-18 14:46:29 +00:00
|
|
|
90 => 90,
|
2009-04-28 15:37:13 +00:00
|
|
|
91 => 91,
|
2009-06-14 13:08:13 +00:00
|
|
|
92 => 92,
|
2009-07-29 16:43:54 +00:00
|
|
|
93 => 93,
|
2009-04-18 14:46:29 +00:00
|
|
|
95 => 95,
|
2009-04-28 15:37:13 +00:00
|
|
|
96 => 96,
|
2009-06-14 13:08:13 +00:00
|
|
|
97 => 97,
|
2009-07-29 16:43:54 +00:00
|
|
|
98 => 98,
|
2009-06-14 13:08:13 +00:00
|
|
|
100 => 100,
|
2009-07-29 16:43:54 +00:00
|
|
|
101 => 101,
|
|
|
|
103 => 103,
|
2009-04-18 14:46:29 +00:00
|
|
|
105 => 105,
|
2009-04-28 15:37:13 +00:00
|
|
|
106 => 106,
|
2009-07-29 16:43:54 +00:00
|
|
|
109 => 106,
|
2009-06-14 13:08:13 +00:00
|
|
|
107 => 107,
|
2009-07-29 16:43:54 +00:00
|
|
|
108 => 108,
|
2009-04-14 09:04:15 +00:00
|
|
|
110 => 110,
|
2009-04-14 12:41:07 +00:00
|
|
|
111 => 111,
|
2009-04-18 14:46:29 +00:00
|
|
|
112 => 112,
|
2009-07-29 16:43:54 +00:00
|
|
|
117 => 112,
|
2009-04-28 15:37:13 +00:00
|
|
|
113 => 113,
|
2009-07-29 16:43:54 +00:00
|
|
|
116 => 113,
|
2009-06-14 13:08:13 +00:00
|
|
|
114 => 114,
|
2009-07-29 16:43:54 +00:00
|
|
|
119 => 114,
|
|
|
|
115 => 115,
|
|
|
|
118 => 115,
|
2009-04-03 15:59:40 +00:00
|
|
|
120 => 120,
|
2009-04-05 14:49:27 +00:00
|
|
|
121 => 121,
|
2009-04-09 15:53:52 +00:00
|
|
|
122 => 122,
|
2009-04-03 15:59:40 +00:00
|
|
|
123 => 123,
|
2009-04-09 17:43:32 +00:00
|
|
|
124 => 124,
|
2009-04-14 09:04:15 +00:00
|
|
|
125 => 125,
|
2009-04-14 12:41:07 +00:00
|
|
|
126 => 126,
|
2009-04-18 14:46:29 +00:00
|
|
|
127 => 127,
|
2009-04-28 15:37:13 +00:00
|
|
|
128 => 128,
|
2009-06-14 13:08:13 +00:00
|
|
|
129 => 129,
|
2009-07-29 16:43:54 +00:00
|
|
|
130 => 130,
|
2009-06-14 13:08:13 +00:00
|
|
|
132 => 132,
|
2009-07-29 16:43:54 +00:00
|
|
|
133 => 133,
|
2009-06-14 13:08:13 +00:00
|
|
|
135 => 135,
|
2009-07-29 16:43:54 +00:00
|
|
|
136 => 136,
|
2009-04-14 12:41:07 +00:00
|
|
|
139 => 139,
|
2009-04-18 14:46:29 +00:00
|
|
|
140 => 140,
|
2009-04-28 15:37:13 +00:00
|
|
|
141 => 141,
|
2009-06-14 13:08:13 +00:00
|
|
|
142 => 142,
|
2009-07-22 16:22:24 +00:00
|
|
|
143 => 143,
|
|
|
|
144 => 144,
|
|
|
|
145 => 145,
|
2009-07-29 16:43:54 +00:00
|
|
|
146 => 146,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
/* Beginning here are the reduction cases. A typical example
|
|
|
|
** follows:
|
|
|
|
** #line <lineno> <grammarfile>
|
|
|
|
** function yy_r0($yymsp){ ... } // User supplied code
|
|
|
|
** #line <lineno> <thisfile>
|
|
|
|
*/
|
|
|
|
#line 73 "internal.templateparser.y"
|
|
|
|
function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1868 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 79 "internal.templateparser.y"
|
|
|
|
function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1871 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 81 "internal.templateparser.y"
|
|
|
|
function yy_r2(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1874 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 87 "internal.templateparser.y"
|
|
|
|
function yy_r3(){if ($this->compiler->has_code) {
|
|
|
|
$tmp =''; foreach ($this->prefix_code as $code) {$tmp.=$code;} $this->prefix_code=array();
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode($tmp.$this->yystack[$this->yyidx + 0]->minor, $this->compiler,$this->nocache,true);
|
|
|
|
} $this->nocache=false; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1880 "internal.templateparser.php"
|
2009-05-05 17:19:33 +00:00
|
|
|
#line 92 "internal.templateparser.y"
|
2009-03-22 16:09:05 +00:00
|
|
|
function yy_r4(){ $this->_retvalue = ''; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1883 "internal.templateparser.php"
|
2009-05-05 17:19:33 +00:00
|
|
|
#line 95 "internal.templateparser.y"
|
2009-03-22 16:09:05 +00:00
|
|
|
function yy_r5(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + -1]->minor, $this->compiler,false,false); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1886 "internal.templateparser.php"
|
2009-05-05 17:19:33 +00:00
|
|
|
#line 97 "internal.templateparser.y"
|
2009-03-22 16:09:05 +00:00
|
|
|
function yy_r6(){$this->_retvalue = $this->cacher->processNocacheCode($this->smarty->left_delimiter, $this->compiler,false,false); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1889 "internal.templateparser.php"
|
2009-05-05 17:19:33 +00:00
|
|
|
#line 99 "internal.templateparser.y"
|
2009-03-22 16:09:05 +00:00
|
|
|
function yy_r7(){$this->_retvalue = $this->cacher->processNocacheCode($this->smarty->right_delimiter, $this->compiler,false,false); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1892 "internal.templateparser.php"
|
2009-05-05 17:19:33 +00:00
|
|
|
#line 101 "internal.templateparser.y"
|
2009-03-22 16:09:05 +00:00
|
|
|
function yy_r8(){if (!$this->template->security) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler, false,true);
|
|
|
|
} elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_QUOTE) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars($this->yystack[$this->yyidx + 0]->minor, ENT_QUOTES), $this->compiler, false, false);
|
|
|
|
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_PASSTHRU || $this->smarty->security_policy->php_handling == SMARTY_PHP_ALLOW) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '".$this->yystack[$this->yyidx + 0]->minor."';?>\n", $this->compiler, false, false);
|
|
|
|
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_REMOVE) {
|
|
|
|
$this->_retvalue = '';
|
|
|
|
} }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1903 "internal.templateparser.php"
|
2009-05-05 17:19:33 +00:00
|
|
|
#line 111 "internal.templateparser.y"
|
2009-03-22 16:09:05 +00:00
|
|
|
function yy_r9(){if (!$this->template->security) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode('<?php '.$this->yystack[$this->yyidx + -1]->minor.' ?>', $this->compiler, false,true);
|
|
|
|
} elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_QUOTE) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('<?php '.$this->yystack[$this->yyidx + -1]->minor.' ?>', ENT_QUOTES), $this->compiler, false, false);
|
|
|
|
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_PASSTHRU || $this->smarty->security_policy->php_handling == SMARTY_PHP_ALLOW) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '<?php ".$this->yystack[$this->yyidx + -1]->minor." ?>';?>\n", $this->compiler, false, false);
|
|
|
|
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_REMOVE) {
|
|
|
|
$this->_retvalue = '';
|
|
|
|
} }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1914 "internal.templateparser.php"
|
2009-05-05 17:19:33 +00:00
|
|
|
#line 121 "internal.templateparser.y"
|
2009-03-22 16:09:05 +00:00
|
|
|
function yy_r10(){if (!$this->template->security) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode($this->compiler->compileTag('print_expression',array('value'=>$this->yystack[$this->yyidx + -1]->minor)), $this->compiler, false,true);
|
|
|
|
} elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_QUOTE) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('<?php '.t.' ?>', ENT_QUOTES), $this->compiler, false, false);
|
|
|
|
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_PASSTHRU || $this->smarty->security_policy->php_handling == SMARTY_PHP_ALLOW) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '<?php ".t." ?>';?>\n", $this->compiler, false, false);
|
|
|
|
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_REMOVE) {
|
|
|
|
$this->_retvalue = '';
|
|
|
|
} }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1925 "internal.templateparser.php"
|
2009-05-05 17:19:33 +00:00
|
|
|
#line 131 "internal.templateparser.y"
|
2009-03-22 16:09:05 +00:00
|
|
|
function yy_r11(){$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '".$this->yystack[$this->yyidx + 0]->minor."';?>\n", $this->compiler, true, true); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1928 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 132 "internal.templateparser.y"
|
|
|
|
function yy_r12(){$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '?>';?>\n", $this->compiler, true, true); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1931 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 134 "internal.templateparser.y"
|
|
|
|
function yy_r13(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false,false); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1934 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 141 "internal.templateparser.y"
|
|
|
|
function yy_r14(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1937 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 143 "internal.templateparser.y"
|
|
|
|
function yy_r15(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1940 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 145 "internal.templateparser.y"
|
|
|
|
function yy_r16(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,$this->yystack[$this->yyidx + -1]->minor); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1943 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 147 "internal.templateparser.y"
|
|
|
|
function yy_r17(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1946 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 149 "internal.templateparser.y"
|
|
|
|
function yy_r18(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor).'<?php echo ';
|
2009-03-22 16:09:05 +00:00
|
|
|
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -3]->minor[0],'modifier')) {
|
|
|
|
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->".$this->yystack[$this->yyidx + -3]->minor[0] . "(array(ob_get_clean()". $this->yystack[$this->yyidx + -2]->minor ."),'modifier');?>";
|
|
|
|
} else {
|
|
|
|
if ($this->yystack[$this->yyidx + -3]->minor[0] == 'isset' || $this->yystack[$this->yyidx + -3]->minor[0] == 'empty' || is_callable($this->yystack[$this->yyidx + -3]->minor[0])) {
|
|
|
|
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -3]->minor[0], $this->compiler)) {
|
|
|
|
$this->_retvalue .= $this->yystack[$this->yyidx + -3]->minor[0] . "(ob_get_clean()". $this->yystack[$this->yyidx + -2]->minor .");?>";
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -3]->minor[0] . "\"");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1961 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 163 "internal.templateparser.y"
|
|
|
|
function yy_r19(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',$this->yystack[$this->yyidx + -1]->minor); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1964 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 165 "internal.templateparser.y"
|
|
|
|
function yy_r20(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1967 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 167 "internal.templateparser.y"
|
|
|
|
function yy_r21(){if (!in_array($this->yystack[$this->yyidx + -3]->minor,array('if','elseif','while'))) {
|
2009-05-05 17:19:33 +00:00
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -3]->minor . "\"");
|
|
|
|
}
|
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1973 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 171 "internal.templateparser.y"
|
|
|
|
function yy_r22(){ if (!in_array($this->yystack[$this->yyidx + -3]->minor,array('if','elseif','while'))) {
|
2009-05-05 17:19:33 +00:00
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -3]->minor . "\"");
|
|
|
|
}
|
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1979 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 176 "internal.templateparser.y"
|
|
|
|
function yy_r23(){
|
2009-05-05 17:19:33 +00:00
|
|
|
if ($this->yystack[$this->yyidx + -9]->minor != 'for') {
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -9]->minor . "\"");
|
|
|
|
}
|
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -9]->minor,array('start'=>$this->yystack[$this->yyidx + -7]->minor,'ifexp'=>$this->yystack[$this->yyidx + -5]->minor,'varloop'=>$this->yystack[$this->yyidx + -2]->minor,'loop'=>$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1986 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 181 "internal.templateparser.y"
|
2009-06-14 13:08:13 +00:00
|
|
|
function yy_r24(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1989 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 182 "internal.templateparser.y"
|
|
|
|
function yy_r25(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1992 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 184 "internal.templateparser.y"
|
|
|
|
function yy_r26(){
|
2009-05-05 17:19:33 +00:00
|
|
|
if ($this->yystack[$this->yyidx + -6]->minor != 'foreach') {
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -6]->minor . "\"");
|
|
|
|
}
|
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array('from'=>$this->yystack[$this->yyidx + -4]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 1999 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 189 "internal.templateparser.y"
|
|
|
|
function yy_r27(){
|
2009-05-05 17:19:33 +00:00
|
|
|
if ($this->yystack[$this->yyidx + -6]->minor != 'foreach') {
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -6]->minor . "\"");
|
|
|
|
}
|
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array('from'=>$this->yystack[$this->yyidx + -4]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2006 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 199 "internal.templateparser.y"
|
|
|
|
function yy_r28(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2009 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 203 "internal.templateparser.y"
|
|
|
|
function yy_r30(){ $this->_retvalue = array(); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2012 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 206 "internal.templateparser.y"
|
|
|
|
function yy_r31(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2015 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 211 "internal.templateparser.y"
|
|
|
|
function yy_r32(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2018 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 212 "internal.templateparser.y"
|
|
|
|
function yy_r33(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2021 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 214 "internal.templateparser.y"
|
|
|
|
function yy_r34(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2024 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 220 "internal.templateparser.y"
|
|
|
|
function yy_r35(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2027 "internal.templateparser.php"
|
2009-05-14 10:53:28 +00:00
|
|
|
#line 224 "internal.templateparser.y"
|
2009-06-14 13:08:13 +00:00
|
|
|
function yy_r37(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2030 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 225 "internal.templateparser.y"
|
|
|
|
function yy_r38(){
|
2009-03-22 16:09:05 +00:00
|
|
|
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -1]->minor[0],'modifier')) {
|
|
|
|
$this->_retvalue = "\$_smarty_tpl->smarty->plugin_handler->".$this->yystack[$this->yyidx + -1]->minor[0] . "(array(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor ."),'modifier')";
|
|
|
|
} else {
|
|
|
|
if ($this->yystack[$this->yyidx + -1]->minor[0] == 'isset' || $this->yystack[$this->yyidx + -1]->minor[0] == 'empty' || is_callable($this->yystack[$this->yyidx + -1]->minor[0])) {
|
|
|
|
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -1]->minor[0], $this->compiler)) {
|
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor[0] . "(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor .")";
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -1]->minor[0] . "\"");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2045 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 243 "internal.templateparser.y"
|
|
|
|
function yy_r41(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2048 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 245 "internal.templateparser.y"
|
|
|
|
function yy_r42(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2051 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 247 "internal.templateparser.y"
|
|
|
|
function yy_r43(){ $this->_retvalue = '('. $this->yystack[$this->yyidx + -2]->minor . ').(' . $this->yystack[$this->yyidx + 0]->minor. ')'; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2054 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 264 "internal.templateparser.y"
|
|
|
|
function yy_r48(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2057 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 273 "internal.templateparser.y"
|
|
|
|
function yy_r52(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2060 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 276 "internal.templateparser.y"
|
|
|
|
function yy_r53(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2063 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 277 "internal.templateparser.y"
|
|
|
|
function yy_r54(){ $this->_retvalue = "''"; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2066 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 279 "internal.templateparser.y"
|
|
|
|
function yy_r55(){ $this->_retvalue = "'".str_replace('\"','"',$this->yystack[$this->yyidx + -1]->minor)."'"; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2069 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 283 "internal.templateparser.y"
|
|
|
|
function yy_r57(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2072 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 284 "internal.templateparser.y"
|
|
|
|
function yy_r58(){ $this->prefix_number++; $this->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -3]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -1]->minor .')'; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2075 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 286 "internal.templateparser.y"
|
|
|
|
function yy_r59(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2078 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 287 "internal.templateparser.y"
|
|
|
|
function yy_r60(){ $this->prefix_number++; $this->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -4]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -7]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -2]->minor .')'.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2081 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 289 "internal.templateparser.y"
|
|
|
|
function yy_r61(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2084 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 291 "internal.templateparser.y"
|
|
|
|
function yy_r62(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2087 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 293 "internal.templateparser.y"
|
|
|
|
function yy_r63(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.'::$'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2090 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 300 "internal.templateparser.y"
|
2009-07-28 19:26:56 +00:00
|
|
|
function yy_r64(){if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('internal_smarty_var',$this->yystack[$this->yyidx + 0]->minor['index']);} else {
|
2009-04-05 14:49:27 +00:00
|
|
|
$this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor['var'] .')->value'.$this->yystack[$this->yyidx + 0]->minor['index']; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor['var'],"'"))->nocache;} }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2094 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 303 "internal.templateparser.y"
|
|
|
|
function yy_r65(){ $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"))->nocache; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2097 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 307 "internal.templateparser.y"
|
|
|
|
function yy_r67(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2100 "internal.templateparser.php"
|
|
|
|
#line 308 "internal.templateparser.y"
|
|
|
|
function yy_r68(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; }
|
|
|
|
#line 2103 "internal.templateparser.php"
|
|
|
|
#line 311 "internal.templateparser.y"
|
|
|
|
function yy_r69(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); }
|
|
|
|
#line 2106 "internal.templateparser.php"
|
|
|
|
#line 319 "internal.templateparser.y"
|
|
|
|
function yy_r71(){return; }
|
|
|
|
#line 2109 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 323 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r72(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; }
|
|
|
|
#line 2112 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 324 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r73(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; }
|
|
|
|
#line 2115 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 325 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r74(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; }
|
|
|
|
#line 2118 "internal.templateparser.php"
|
|
|
|
#line 326 "internal.templateparser.y"
|
|
|
|
function yy_r75(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; }
|
|
|
|
#line 2121 "internal.templateparser.php"
|
|
|
|
#line 328 "internal.templateparser.y"
|
|
|
|
function yy_r76(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; }
|
|
|
|
#line 2124 "internal.templateparser.php"
|
|
|
|
#line 332 "internal.templateparser.y"
|
|
|
|
function yy_r78(){$this->_retvalue = ''; }
|
|
|
|
#line 2127 "internal.templateparser.php"
|
|
|
|
#line 340 "internal.templateparser.y"
|
|
|
|
function yy_r80(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2130 "internal.templateparser.php"
|
|
|
|
#line 342 "internal.templateparser.y"
|
|
|
|
function yy_r81(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
|
|
|
|
#line 2133 "internal.templateparser.php"
|
|
|
|
#line 344 "internal.templateparser.y"
|
|
|
|
function yy_r82(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2136 "internal.templateparser.php"
|
|
|
|
#line 349 "internal.templateparser.y"
|
|
|
|
function yy_r83(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('internal_smarty_var',$this->yystack[$this->yyidx + -1]->minor['index']).$this->yystack[$this->yyidx + 0]->minor;} else {
|
2009-07-28 19:26:56 +00:00
|
|
|
$this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -1]->minor['var'] .')->value'.$this->yystack[$this->yyidx + -1]->minor['index'].$this->yystack[$this->yyidx + 0]->minor; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"))->nocache;} }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2140 "internal.templateparser.php"
|
|
|
|
#line 353 "internal.templateparser.y"
|
|
|
|
function yy_r84(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2143 "internal.templateparser.php"
|
|
|
|
#line 355 "internal.templateparser.y"
|
|
|
|
function yy_r85(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2146 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 357 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r86(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2149 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 358 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r87(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
|
|
|
|
#line 2152 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 359 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r88(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
|
|
|
|
#line 2155 "internal.templateparser.php"
|
|
|
|
#line 360 "internal.templateparser.y"
|
|
|
|
function yy_r89(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
|
|
|
|
#line 2158 "internal.templateparser.php"
|
|
|
|
#line 362 "internal.templateparser.y"
|
|
|
|
function yy_r90(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2161 "internal.templateparser.php"
|
|
|
|
#line 368 "internal.templateparser.y"
|
|
|
|
function yy_r91(){if (!$this->template->security || $this->smarty->security_handler->isTrustedPhpFunction($this->yystack[$this->yyidx + -3]->minor, $this->compiler)) {
|
2009-03-26 14:08:43 +00:00
|
|
|
if ($this->yystack[$this->yyidx + -3]->minor == 'isset' || $this->yystack[$this->yyidx + -3]->minor == 'empty' || $this->yystack[$this->yyidx + -3]->minor == 'array' || is_callable($this->yystack[$this->yyidx + -3]->minor)) {
|
2009-03-22 16:09:05 +00:00
|
|
|
$this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")";
|
|
|
|
} else {
|
|
|
|
$this->compiler->trigger_template_error ("unknown function \"" . $this->yystack[$this->yyidx + -3]->minor . "\"");
|
|
|
|
}
|
|
|
|
} }
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2170 "internal.templateparser.php"
|
|
|
|
#line 379 "internal.templateparser.y"
|
|
|
|
function yy_r92(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
|
|
|
|
#line 2173 "internal.templateparser.php"
|
|
|
|
#line 383 "internal.templateparser.y"
|
|
|
|
function yy_r93(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2176 "internal.templateparser.php"
|
|
|
|
#line 387 "internal.templateparser.y"
|
|
|
|
function yy_r95(){ return; }
|
|
|
|
#line 2179 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 392 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r96(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,true); }
|
|
|
|
#line 2182 "internal.templateparser.php"
|
|
|
|
#line 393 "internal.templateparser.y"
|
|
|
|
function yy_r97(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,false); }
|
|
|
|
#line 2185 "internal.templateparser.php"
|
|
|
|
#line 400 "internal.templateparser.y"
|
|
|
|
function yy_r98(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2188 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 404 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r100(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2191 "internal.templateparser.php"
|
|
|
|
#line 405 "internal.templateparser.y"
|
|
|
|
function yy_r101(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
|
|
|
|
#line 2194 "internal.templateparser.php"
|
|
|
|
#line 412 "internal.templateparser.y"
|
|
|
|
function yy_r103(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2197 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 417 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r105(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2200 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 418 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r106(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2203 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 419 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r107(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2206 "internal.templateparser.php"
|
|
|
|
#line 420 "internal.templateparser.y"
|
|
|
|
function yy_r108(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2209 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 422 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r110(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2212 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 423 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r111(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2215 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 424 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r112(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2218 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 425 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r113(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2221 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 426 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r114(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2224 "internal.templateparser.php"
|
|
|
|
#line 427 "internal.templateparser.y"
|
|
|
|
function yy_r115(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2227 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 433 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r120(){$this->_retvalue = '=='; }
|
|
|
|
#line 2230 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 434 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r121(){$this->_retvalue = '!='; }
|
|
|
|
#line 2233 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 435 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r122(){$this->_retvalue = '>'; }
|
|
|
|
#line 2236 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 436 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r123(){$this->_retvalue = '<'; }
|
|
|
|
#line 2239 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 437 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r124(){$this->_retvalue = '>='; }
|
|
|
|
#line 2242 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 438 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r125(){$this->_retvalue = '<='; }
|
|
|
|
#line 2245 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 439 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r126(){$this->_retvalue = '==='; }
|
|
|
|
#line 2248 "internal.templateparser.php"
|
|
|
|
#line 440 "internal.templateparser.y"
|
|
|
|
function yy_r127(){$this->_retvalue = '!=='; }
|
|
|
|
#line 2251 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 442 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r128(){$this->_retvalue = '&&'; }
|
|
|
|
#line 2254 "internal.templateparser.php"
|
|
|
|
#line 443 "internal.templateparser.y"
|
|
|
|
function yy_r129(){$this->_retvalue = '||'; }
|
|
|
|
#line 2257 "internal.templateparser.php"
|
|
|
|
#line 448 "internal.templateparser.y"
|
|
|
|
function yy_r130(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2260 "internal.templateparser.php"
|
2009-06-14 13:08:13 +00:00
|
|
|
#line 450 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r132(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2263 "internal.templateparser.php"
|
|
|
|
#line 451 "internal.templateparser.y"
|
|
|
|
function yy_r133(){ return; }
|
|
|
|
#line 2266 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 453 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r135(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2269 "internal.templateparser.php"
|
|
|
|
#line 454 "internal.templateparser.y"
|
|
|
|
function yy_r136(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2272 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 461 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r139(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; }
|
|
|
|
#line 2275 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 462 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r140(){$this->_retvalue = "'.".$this->yystack[$this->yyidx + -1]->minor.".'"; }
|
|
|
|
#line 2278 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 463 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r141(){$this->_retvalue = "'.".'$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + 0]->minor .'\')->value'.".'"; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"))->nocache; }
|
|
|
|
#line 2281 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 464 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r142(){$this->_retvalue = "'.(".$this->yystack[$this->yyidx + -1]->minor.").'"; }
|
|
|
|
#line 2284 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 465 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r143(){$this->_retvalue = '$'.addcslashes($this->yystack[$this->yyidx + 0]->minor,"'"); }
|
|
|
|
#line 2287 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 466 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r144(){$this->_retvalue = '{'.addcslashes($this->yystack[$this->yyidx + 0]->minor,"'"); }
|
|
|
|
#line 2290 "internal.templateparser.php"
|
2009-07-28 19:26:56 +00:00
|
|
|
#line 467 "internal.templateparser.y"
|
2009-07-29 16:43:54 +00:00
|
|
|
function yy_r145(){$this->_retvalue = '`'.addcslashes($this->yystack[$this->yyidx + 0]->minor,"'"); }
|
|
|
|
#line 2293 "internal.templateparser.php"
|
|
|
|
#line 468 "internal.templateparser.y"
|
|
|
|
function yy_r146(){$this->_retvalue = addcslashes($this->yystack[$this->yyidx + 0]->minor,"'"); }
|
|
|
|
#line 2296 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* placeholder for the left hand side in a reduce operation.
|
|
|
|
*
|
|
|
|
* For a parser with a rule like this:
|
|
|
|
* <pre>
|
|
|
|
* rule(A) ::= B. { A = 1; }
|
|
|
|
* </pre>
|
|
|
|
*
|
|
|
|
* The parser will translate to something like:
|
|
|
|
*
|
|
|
|
* <code>
|
|
|
|
* function yy_r0(){$this->_retvalue = 1;}
|
|
|
|
* </code>
|
|
|
|
*/
|
|
|
|
private $_retvalue;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Perform a reduce action and the shift that must immediately
|
|
|
|
* follow the reduce.
|
|
|
|
*
|
|
|
|
* For a rule such as:
|
|
|
|
*
|
|
|
|
* <pre>
|
|
|
|
* A ::= B blah C. { dosomething(); }
|
|
|
|
* </pre>
|
|
|
|
*
|
|
|
|
* This function will first call the action, if any, ("dosomething();" in our
|
|
|
|
* example), and then it will pop three states from the stack,
|
|
|
|
* one for each entry on the right-hand side of the expression
|
|
|
|
* (B, blah, and C in our example rule), and then push the result of the action
|
|
|
|
* back on to the stack with the resulting state reduced to (as described in the .out
|
|
|
|
* file)
|
|
|
|
* @param int Number of the rule by which to reduce
|
|
|
|
*/
|
|
|
|
function yy_reduce($yyruleno)
|
|
|
|
{
|
|
|
|
//int $yygoto; /* The next state */
|
|
|
|
//int $yyact; /* The next action */
|
|
|
|
//mixed $yygotominor; /* The LHS of the rule reduced */
|
|
|
|
//TP_yyStackEntry $yymsp; /* The top of the parser's stack */
|
|
|
|
//int $yysize; /* Amount to pop the stack */
|
|
|
|
$yymsp = $this->yystack[$this->yyidx];
|
|
|
|
if (self::$yyTraceFILE && $yyruleno >= 0
|
|
|
|
&& $yyruleno < count(self::$yyRuleName)) {
|
|
|
|
fprintf(self::$yyTraceFILE, "%sReduce (%d) [%s].\n",
|
|
|
|
self::$yyTracePrompt, $yyruleno,
|
|
|
|
self::$yyRuleName[$yyruleno]);
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->_retvalue = $yy_lefthand_side = null;
|
|
|
|
if (array_key_exists($yyruleno, self::$yyReduceMap)) {
|
|
|
|
// call the action
|
|
|
|
$this->_retvalue = null;
|
|
|
|
$this->{'yy_r' . self::$yyReduceMap[$yyruleno]}();
|
|
|
|
$yy_lefthand_side = $this->_retvalue;
|
|
|
|
}
|
|
|
|
$yygoto = self::$yyRuleInfo[$yyruleno]['lhs'];
|
|
|
|
$yysize = self::$yyRuleInfo[$yyruleno]['rhs'];
|
|
|
|
$this->yyidx -= $yysize;
|
|
|
|
for($i = $yysize; $i; $i--) {
|
|
|
|
// pop all of the right-hand side parameters
|
|
|
|
array_pop($this->yystack);
|
|
|
|
}
|
|
|
|
$yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto);
|
|
|
|
if ($yyact < self::YYNSTATE) {
|
|
|
|
/* If we are not debugging and the reduce action popped at least
|
|
|
|
** one element off the stack, then we can push the new element back
|
|
|
|
** onto the stack here, and skip the stack overflow test in yy_shift().
|
|
|
|
** That gives a significant speed improvement. */
|
|
|
|
if (!self::$yyTraceFILE && $yysize) {
|
|
|
|
$this->yyidx++;
|
|
|
|
$x = new TP_yyStackEntry;
|
|
|
|
$x->stateno = $yyact;
|
|
|
|
$x->major = $yygoto;
|
|
|
|
$x->minor = $yy_lefthand_side;
|
|
|
|
$this->yystack[$this->yyidx] = $x;
|
|
|
|
} else {
|
|
|
|
$this->yy_shift($yyact, $yygoto, $yy_lefthand_side);
|
|
|
|
}
|
|
|
|
} elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) {
|
|
|
|
$this->yy_accept();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The following code executes when the parse fails
|
|
|
|
*
|
|
|
|
* Code from %parse_fail is inserted here
|
|
|
|
*/
|
|
|
|
function yy_parse_failed()
|
|
|
|
{
|
|
|
|
if (self::$yyTraceFILE) {
|
|
|
|
fprintf(self::$yyTraceFILE, "%sFail!\n", self::$yyTracePrompt);
|
|
|
|
}
|
|
|
|
while ($this->yyidx >= 0) {
|
|
|
|
$this->yy_pop_parser_stack();
|
|
|
|
}
|
|
|
|
/* Here code is inserted which will be executed whenever the
|
|
|
|
** parser fails */
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The following code executes when a syntax error first occurs.
|
|
|
|
*
|
|
|
|
* %syntax_error code is inserted here
|
|
|
|
* @param int The major type of the error token
|
|
|
|
* @param mixed The minor type of the error token
|
|
|
|
*/
|
|
|
|
function yy_syntax_error($yymajor, $TOKEN)
|
|
|
|
{
|
|
|
|
#line 55 "internal.templateparser.y"
|
|
|
|
|
|
|
|
$this->internalError = true;
|
|
|
|
$this->yymajor = $yymajor;
|
|
|
|
$this->compiler->trigger_template_error();
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2414 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The following is executed when the parser accepts
|
|
|
|
*
|
|
|
|
* %parse_accept code is inserted here
|
|
|
|
*/
|
|
|
|
function yy_accept()
|
|
|
|
{
|
|
|
|
if (self::$yyTraceFILE) {
|
|
|
|
fprintf(self::$yyTraceFILE, "%sAccept!\n", self::$yyTracePrompt);
|
|
|
|
}
|
|
|
|
while ($this->yyidx >= 0) {
|
|
|
|
$stack = $this->yy_pop_parser_stack();
|
|
|
|
}
|
|
|
|
/* Here code is inserted which will be executed whenever the
|
|
|
|
** parser accepts */
|
|
|
|
#line 47 "internal.templateparser.y"
|
|
|
|
|
|
|
|
$this->successful = !$this->internalError;
|
|
|
|
$this->internalError = false;
|
|
|
|
$this->retvalue = $this->_retvalue;
|
|
|
|
//echo $this->retvalue."\n\n";
|
2009-07-29 16:43:54 +00:00
|
|
|
#line 2439 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The main parser program.
|
|
|
|
*
|
|
|
|
* The first argument is the major token number. The second is
|
|
|
|
* the token value string as scanned from the input.
|
|
|
|
*
|
|
|
|
* @param int the token number
|
|
|
|
* @param mixed the token value
|
|
|
|
* @param mixed any extra arguments that should be passed to handlers
|
|
|
|
*/
|
|
|
|
function doParse($yymajor, $yytokenvalue)
|
|
|
|
{
|
|
|
|
// $yyact; /* The parser action. */
|
|
|
|
// $yyendofinput; /* True if we are at the end of input */
|
|
|
|
$yyerrorhit = 0; /* True if yymajor has invoked an error */
|
|
|
|
|
|
|
|
/* (re)initialize the parser, if necessary */
|
|
|
|
if ($this->yyidx === null || $this->yyidx < 0) {
|
|
|
|
/* if ($yymajor == 0) return; // not sure why this was here... */
|
|
|
|
$this->yyidx = 0;
|
|
|
|
$this->yyerrcnt = -1;
|
|
|
|
$x = new TP_yyStackEntry;
|
|
|
|
$x->stateno = 0;
|
|
|
|
$x->major = 0;
|
|
|
|
$this->yystack = array();
|
|
|
|
array_push($this->yystack, $x);
|
|
|
|
}
|
|
|
|
$yyendofinput = ($yymajor==0);
|
|
|
|
|
|
|
|
if (self::$yyTraceFILE) {
|
|
|
|
fprintf(self::$yyTraceFILE, "%sInput %s\n",
|
|
|
|
self::$yyTracePrompt, $this->yyTokenName[$yymajor]);
|
|
|
|
}
|
|
|
|
|
|
|
|
do {
|
|
|
|
$yyact = $this->yy_find_shift_action($yymajor);
|
|
|
|
if ($yymajor < self::YYERRORSYMBOL &&
|
|
|
|
!$this->yy_is_expected_token($yymajor)) {
|
|
|
|
// force a syntax error
|
|
|
|
$yyact = self::YY_ERROR_ACTION;
|
|
|
|
}
|
|
|
|
if ($yyact < self::YYNSTATE) {
|
|
|
|
$this->yy_shift($yyact, $yymajor, $yytokenvalue);
|
|
|
|
$this->yyerrcnt--;
|
|
|
|
if ($yyendofinput && $this->yyidx >= 0) {
|
|
|
|
$yymajor = 0;
|
|
|
|
} else {
|
|
|
|
$yymajor = self::YYNOCODE;
|
|
|
|
}
|
|
|
|
} elseif ($yyact < self::YYNSTATE + self::YYNRULE) {
|
|
|
|
$this->yy_reduce($yyact - self::YYNSTATE);
|
|
|
|
} elseif ($yyact == self::YY_ERROR_ACTION) {
|
|
|
|
if (self::$yyTraceFILE) {
|
|
|
|
fprintf(self::$yyTraceFILE, "%sSyntax Error!\n",
|
|
|
|
self::$yyTracePrompt);
|
|
|
|
}
|
|
|
|
if (self::YYERRORSYMBOL) {
|
|
|
|
/* A syntax error has occurred.
|
|
|
|
** The response to an error depends upon whether or not the
|
|
|
|
** grammar defines an error token "ERROR".
|
|
|
|
**
|
|
|
|
** This is what we do if the grammar does define ERROR:
|
|
|
|
**
|
|
|
|
** * Call the %syntax_error function.
|
|
|
|
**
|
|
|
|
** * Begin popping the stack until we enter a state where
|
|
|
|
** it is legal to shift the error symbol, then shift
|
|
|
|
** the error symbol.
|
|
|
|
**
|
|
|
|
** * Set the error count to three.
|
|
|
|
**
|
|
|
|
** * Begin accepting and shifting new tokens. No new error
|
|
|
|
** processing will occur until three tokens have been
|
|
|
|
** shifted successfully.
|
|
|
|
**
|
|
|
|
*/
|
|
|
|
if ($this->yyerrcnt < 0) {
|
|
|
|
$this->yy_syntax_error($yymajor, $yytokenvalue);
|
|
|
|
}
|
|
|
|
$yymx = $this->yystack[$this->yyidx]->major;
|
|
|
|
if ($yymx == self::YYERRORSYMBOL || $yyerrorhit ){
|
|
|
|
if (self::$yyTraceFILE) {
|
|
|
|
fprintf(self::$yyTraceFILE, "%sDiscard input token %s\n",
|
|
|
|
self::$yyTracePrompt, $this->yyTokenName[$yymajor]);
|
|
|
|
}
|
|
|
|
$this->yy_destructor($yymajor, $yytokenvalue);
|
|
|
|
$yymajor = self::YYNOCODE;
|
|
|
|
} else {
|
|
|
|
while ($this->yyidx >= 0 &&
|
|
|
|
$yymx != self::YYERRORSYMBOL &&
|
|
|
|
($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE
|
|
|
|
){
|
|
|
|
$this->yy_pop_parser_stack();
|
|
|
|
}
|
|
|
|
if ($this->yyidx < 0 || $yymajor==0) {
|
|
|
|
$this->yy_destructor($yymajor, $yytokenvalue);
|
|
|
|
$this->yy_parse_failed();
|
|
|
|
$yymajor = self::YYNOCODE;
|
|
|
|
} elseif ($yymx != self::YYERRORSYMBOL) {
|
|
|
|
$u2 = 0;
|
|
|
|
$this->yy_shift($yyact, self::YYERRORSYMBOL, $u2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->yyerrcnt = 3;
|
|
|
|
$yyerrorhit = 1;
|
|
|
|
} else {
|
|
|
|
/* YYERRORSYMBOL is not defined */
|
|
|
|
/* This is what we do if the grammar does not define ERROR:
|
|
|
|
**
|
|
|
|
** * Report an error message, and throw away the input token.
|
|
|
|
**
|
|
|
|
** * If the input token is $, then fail the parse.
|
|
|
|
**
|
|
|
|
** As before, subsequent error messages are suppressed until
|
|
|
|
** three input tokens have been successfully shifted.
|
|
|
|
*/
|
|
|
|
if ($this->yyerrcnt <= 0) {
|
|
|
|
$this->yy_syntax_error($yymajor, $yytokenvalue);
|
|
|
|
}
|
|
|
|
$this->yyerrcnt = 3;
|
|
|
|
$this->yy_destructor($yymajor, $yytokenvalue);
|
|
|
|
if ($yyendofinput) {
|
|
|
|
$this->yy_parse_failed();
|
|
|
|
}
|
|
|
|
$yymajor = self::YYNOCODE;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$this->yy_accept();
|
|
|
|
$yymajor = self::YYNOCODE;
|
|
|
|
}
|
|
|
|
} while ($yymajor != self::YYNOCODE && $this->yyidx >= 0);
|
|
|
|
}
|
|
|
|
}
|