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 "smarty_internal_templateparser.y"
class Smarty_Internal_Templateparser#line 109 "smarty_internal_templateparser.php"
{
/* First off, code is included which follows the "include_class" declaration
** in the input file. */
#line 14 "smarty_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->compiler = $compiler;
$this->smarty = $this->compiler->smarty;
$this->template = $this->compiler->template;
if ($this->template->security && isset($this->smarty->security_handler)) {
$this->sec_obj = $this->smarty->security_policy;
} else {
$this->sec_obj = $this->smarty;
}
$this->cacher = $this->template->cacher_object;
$this->compiler->has_variable_string = false;
$this->compiler->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 147 "smarty_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_XML = 2;
const TP_PHP = 3;
const TP_SHORTTAGSTART = 4;
const TP_SHORTTAGEND = 5;
const TP_PHPSTART = 6;
const TP_PHPEND = 7;
const TP_COMMENT = 8;
const TP_SINGLEQUOTE = 9;
const TP_LITERALSTART = 10;
const TP_LITERALEND = 11;
const TP_LDELIMTAG = 12;
const TP_RDELIMTAG = 13;
const TP_LDELSLASH = 14;
const TP_LDEL = 15;
const TP_RDEL = 16;
const TP_ISIN = 17;
const TP_AS = 18;
const TP_BOOLEAN = 19;
const TP_NULL = 20;
const TP_IDENTITY = 21;
const TP_NONEIDENTITY = 22;
const TP_EQUALS = 23;
const TP_NOTEQUALS = 24;
const TP_GREATEREQUAL = 25;
const TP_LESSEQUAL = 26;
const TP_GREATERTHAN = 27;
const TP_LESSTHAN = 28;
const TP_MOD = 29;
const TP_NOT = 30;
const TP_LAND = 31;
const TP_LOR = 32;
const TP_LXOR = 33;
const TP_ISODDBY = 34;
const TP_ISNOTODDBY = 35;
const TP_ISODD = 36;
const TP_ISNOTODD = 37;
const TP_ISEVENBY = 38;
const TP_ISNOTEVENBY = 39;
const TP_ISEVEN = 40;
const TP_ISNOTEVEN = 41;
const TP_ISDIVBY = 42;
const TP_ISNOTDIVBY = 43;
const TP_OPENP = 44;
const TP_CLOSEP = 45;
const TP_OPENB = 46;
const TP_CLOSEB = 47;
const TP_PTR = 48;
const TP_APTR = 49;
const TP_EQUAL = 50;
const TP_INTEGER = 51;
const TP_INCDEC = 52;
const TP_UNIMATH = 53;
const TP_MATH = 54;
const TP_DOLLAR = 55;
const TP_COLON = 56;
const TP_DOUBLECOLON = 57;
const TP_SEMICOLON = 58;
const TP_AT = 59;
const TP_HATCH = 60;
const TP_QUOTE = 61;
const TP_BACKTICK = 62;
const TP_VERT = 63;
const TP_DOT = 64;
const TP_COMMA = 65;
const TP_ANDSYM = 66;
const TP_ID = 67;
const TP_SPACE = 68;
const TP_INSTANCEOF = 69;
const TP_QMARK = 70;
const TP_TYPECAST = 71;
const YY_NO_ACTION = 486;
const YY_ACCEPT_ACTION = 485;
const YY_ERROR_ACTION = 484;
/* 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.
*/
const YY_SZ_ACTTAB = 1182;
static public $yy_action = array(
/* 0 */ 62, 69, 181, 16, 67, 27, 74, 187, 62, 48,
/* 10 */ 239, 240, 27, 178, 74, 56, 116, 80, 239, 240,
/* 20 */ 84, 5, 166, 286, 244, 199, 251, 1, 102, 36,
/* 30 */ 241, 43, 248, 258, 166, 6, 271, 14, 245, 181,
/* 40 */ 26, 277, 206, 32, 40, 14, 76, 45, 187, 189,
/* 50 */ 206, 48, 59, 224, 67, 52, 189, 285, 159, 48,
/* 60 */ 59, 62, 53, 166, 285, 27, 165, 74, 1, 150,
/* 70 */ 53, 239, 240, 80, 283, 289, 290, 11, 10, 276,
/* 80 */ 282, 9, 13, 274, 275, 4, 7, 178, 211, 123,
/* 90 */ 208, 80, 271, 143, 153, 110, 32, 149, 14, 161,
/* 100 */ 251, 173, 102, 206, 241, 40, 295, 76, 225, 16,
/* 110 */ 271, 176, 48, 59, 34, 62, 55, 285, 349, 44,
/* 120 */ 38, 74, 116, 53, 111, 239, 240, 284, 283, 289,
/* 130 */ 290, 11, 10, 276, 282, 9, 13, 274, 275, 4,
/* 140 */ 7, 166, 291, 101, 298, 237, 234, 227, 353, 128,
/* 150 */ 32, 178, 14, 231, 256, 80, 265, 206, 235, 40,
/* 160 */ 67, 67, 41, 308, 311, 48, 48, 59, 241, 62,
/* 170 */ 181, 244, 264, 155, 271, 74, 16, 53, 272, 239,
/* 180 */ 240, 207, 22, 148, 178, 245, 58, 23, 80, 116,
/* 190 */ 5, 94, 174, 157, 166, 223, 163, 177, 67, 102,
/* 200 */ 353, 241, 201, 48, 6, 16, 14, 271, 220, 15,
/* 210 */ 188, 206, 277, 40, 67, 68, 21, 166, 116, 48,
/* 220 */ 48, 59, 181, 62, 119, 197, 198, 154, 25, 74,
/* 230 */ 166, 53, 243, 239, 240, 152, 283, 289, 290, 11,
/* 240 */ 10, 276, 282, 9, 13, 274, 275, 4, 7, 160,
/* 250 */ 172, 62, 36, 237, 234, 273, 46, 74, 32, 37,
/* 260 */ 14, 239, 240, 209, 244, 206, 235, 40, 67, 76,
/* 270 */ 45, 181, 246, 48, 48, 59, 223, 222, 245, 166,
/* 280 */ 115, 159, 12, 237, 234, 53, 3, 178, 14, 142,
/* 290 */ 15, 80, 166, 206, 17, 40, 235, 76, 30, 253,
/* 300 */ 35, 16, 48, 59, 241, 62, 294, 166, 152, 159,
/* 310 */ 271, 74, 166, 53, 116, 239, 240, 283, 289, 290,
/* 320 */ 11, 10, 276, 282, 9, 13, 274, 275, 4, 7,
/* 330 */ 160, 27, 31, 62, 166, 120, 216, 46, 27, 74,
/* 340 */ 32, 178, 14, 239, 240, 80, 196, 206, 178, 40,
/* 350 */ 80, 67, 80, 281, 228, 24, 48, 59, 241, 61,
/* 360 */ 255, 267, 166, 165, 271, 241, 26, 53, 32, 271,
/* 370 */ 14, 271, 297, 146, 242, 206, 303, 40, 262, 67,
/* 380 */ 27, 103, 80, 285, 48, 59, 295, 62, 203, 96,
/* 390 */ 184, 164, 139, 74, 20, 53, 152, 239, 240, 257,
/* 400 */ 204, 271, 39, 351, 219, 295, 292, 279, 233, 307,
/* 410 */ 306, 293, 304, 305, 280, 28, 272, 287, 485, 95,
/* 420 */ 232, 144, 32, 125, 14, 151, 270, 63, 238, 206,
/* 430 */ 193, 40, 285, 76, 295, 180, 182, 269, 48, 59,
/* 440 */ 140, 62, 242, 250, 152, 156, 266, 74, 166, 53,
/* 450 */ 80, 239, 240, 295, 190, 351, 39, 100, 80, 244,
/* 460 */ 292, 279, 233, 307, 306, 293, 304, 305, 280, 271,
/* 470 */ 29, 118, 242, 245, 137, 136, 3, 271, 14, 238,
/* 480 */ 19, 288, 70, 206, 278, 40, 242, 76, 295, 43,
/* 490 */ 169, 19, 48, 59, 186, 284, 127, 242, 192, 44,
/* 500 */ 72, 257, 166, 53, 215, 221, 191, 179, 217, 295,
/* 510 */ 141, 210, 49, 71, 130, 214, 213, 135, 2, 238,
/* 520 */ 268, 39, 278, 295, 134, 292, 279, 233, 307, 306,
/* 530 */ 293, 304, 305, 280, 145, 62, 60, 295, 62, 109,
/* 540 */ 166, 74, 301, 202, 74, 239, 240, 295, 239, 240,
/* 550 */ 21, 242, 252, 122, 242, 167, 205, 170, 238, 64,
/* 560 */ 218, 51, 82, 66, 132, 41, 22, 166, 338, 212,
/* 570 */ 32, 254, 251, 32, 102, 226, 241, 206, 73, 300,
/* 580 */ 206, 67, 271, 75, 67, 33, 48, 59, 230, 48,
/* 590 */ 59, 77, 312, 165, 261, 65, 158, 53, 175, 178,
/* 600 */ 53, 104, 302, 80, 229, 236, 200, 256, 185, 249,
/* 610 */ 260, 254, 251, 270, 102, 78, 241, 8, 42, 284,
/* 620 */ 121, 43, 271, 81, 299, 178, 259, 58, 257, 80,
/* 630 */ 162, 310, 92, 47, 247, 37, 18, 199, 251, 263,
/* 640 */ 102, 50, 241, 178, 194, 58, 288, 80, 271, 288,
/* 650 */ 85, 288, 288, 277, 288, 199, 251, 178, 102, 58,
/* 660 */ 241, 80, 288, 288, 88, 288, 271, 288, 288, 199,
/* 670 */ 251, 277, 102, 288, 241, 288, 288, 178, 288, 58,
/* 680 */ 271, 80, 288, 288, 90, 277, 288, 288, 288, 199,
/* 690 */ 251, 288, 102, 288, 241, 178, 288, 58, 288, 80,
/* 700 */ 271, 288, 89, 288, 288, 277, 288, 199, 251, 288,
/* 710 */ 102, 288, 241, 178, 288, 58, 288, 80, 271, 288,
/* 720 */ 91, 288, 288, 277, 288, 199, 251, 288, 102, 288,
/* 730 */ 241, 178, 288, 58, 288, 80, 271, 288, 93, 288,
/* 740 */ 288, 277, 288, 199, 251, 178, 102, 57, 241, 80,
/* 750 */ 288, 288, 83, 288, 271, 288, 288, 199, 251, 277,
/* 760 */ 102, 288, 241, 288, 288, 178, 288, 58, 271, 80,
/* 770 */ 288, 288, 87, 277, 288, 288, 288, 199, 251, 288,
/* 780 */ 102, 288, 241, 178, 288, 58, 288, 80, 271, 288,
/* 790 */ 86, 288, 288, 277, 288, 199, 251, 288, 102, 288,
/* 800 */ 241, 178, 288, 107, 288, 80, 271, 288, 288, 288,
/* 810 */ 288, 277, 288, 254, 251, 288, 102, 288, 241, 288,
/* 820 */ 288, 195, 288, 288, 271, 178, 288, 104, 288, 80,
/* 830 */ 288, 288, 288, 288, 288, 288, 288, 254, 251, 178,
/* 840 */ 102, 107, 241, 80, 288, 288, 288, 288, 271, 288,
/* 850 */ 288, 254, 251, 288, 102, 288, 241, 309, 288, 168,
/* 860 */ 288, 178, 271, 54, 79, 80, 288, 288, 178, 288,
/* 870 */ 107, 288, 80, 254, 251, 288, 102, 288, 241, 288,
/* 880 */ 254, 251, 288, 102, 271, 241, 288, 288, 296, 288,
/* 890 */ 171, 271, 288, 288, 178, 288, 112, 288, 66, 288,
/* 900 */ 288, 288, 288, 288, 288, 288, 254, 251, 178, 102,
/* 910 */ 107, 241, 80, 288, 288, 288, 288, 271, 288, 288,
/* 920 */ 254, 251, 178, 102, 108, 241, 80, 288, 183, 288,
/* 930 */ 288, 271, 288, 288, 254, 251, 288, 102, 178, 241,
/* 940 */ 131, 288, 80, 288, 288, 271, 288, 288, 288, 288,
/* 950 */ 254, 251, 288, 102, 178, 241, 129, 288, 80, 288,
/* 960 */ 288, 271, 288, 288, 288, 288, 254, 251, 288, 102,
/* 970 */ 288, 241, 178, 288, 106, 288, 80, 271, 288, 178,
/* 980 */ 288, 126, 288, 80, 254, 251, 288, 102, 288, 241,
/* 990 */ 288, 254, 251, 288, 102, 271, 241, 288, 288, 288,
/* 1000 */ 288, 178, 271, 124, 288, 80, 288, 288, 288, 288,
/* 1010 */ 288, 288, 288, 254, 251, 178, 102, 105, 241, 80,
/* 1020 */ 288, 288, 288, 288, 271, 288, 288, 254, 251, 288,
/* 1030 */ 102, 178, 241, 133, 288, 80, 288, 288, 271, 288,
/* 1040 */ 288, 288, 288, 254, 251, 288, 102, 178, 241, 147,
/* 1050 */ 288, 80, 288, 288, 271, 288, 288, 288, 288, 254,
/* 1060 */ 251, 288, 102, 288, 241, 178, 288, 114, 288, 80,
/* 1070 */ 271, 288, 178, 288, 117, 288, 80, 254, 251, 288,
/* 1080 */ 102, 288, 241, 288, 254, 251, 288, 102, 271, 241,
/* 1090 */ 288, 288, 288, 288, 178, 271, 113, 288, 80, 288,
/* 1100 */ 288, 288, 288, 288, 288, 288, 254, 251, 178, 102,
/* 1110 */ 138, 241, 80, 288, 288, 288, 288, 271, 288, 288,
/* 1120 */ 254, 251, 288, 102, 178, 241, 288, 288, 80, 288,
/* 1130 */ 288, 271, 288, 288, 288, 288, 254, 251, 288, 98,
/* 1140 */ 178, 241, 288, 288, 80, 288, 288, 271, 288, 288,
/* 1150 */ 288, 288, 254, 251, 288, 99, 288, 241, 178, 288,
/* 1160 */ 288, 288, 80, 271, 288, 288, 288, 288, 288, 288,
/* 1170 */ 254, 251, 288, 97, 288, 241, 288, 288, 288, 288,
/* 1180 */ 288, 271,
);
static public $yy_lookahead = array(
/* 0 */ 9, 55, 68, 44, 55, 15, 15, 48, 9, 60,
/* 10 */ 19, 20, 15, 80, 15, 82, 57, 84, 19, 20,
/* 20 */ 87, 30, 63, 88, 1, 92, 93, 68, 95, 46,
/* 30 */ 97, 48, 9, 94, 63, 44, 103, 46, 15, 68,
/* 40 */ 50, 108, 51, 44, 53, 46, 55, 64, 48, 59,
/* 50 */ 51, 60, 61, 1, 55, 86, 59, 67, 67, 60,
/* 60 */ 61, 9, 71, 63, 67, 15, 67, 15, 68, 80,
/* 70 */ 71, 19, 20, 84, 31, 32, 33, 34, 35, 36,
/* 80 */ 37, 38, 39, 40, 41, 42, 43, 80, 99, 82,
/* 90 */ 83, 84, 103, 81, 16, 102, 44, 85, 46, 92,
/* 100 */ 93, 58, 95, 51, 97, 53, 94, 55, 16, 44,
/* 110 */ 103, 18, 60, 61, 49, 9, 86, 67, 16, 67,
/* 120 */ 15, 15, 57, 71, 102, 19, 20, 105, 31, 32,
/* 130 */ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
/* 140 */ 43, 63, 45, 79, 1, 53, 54, 16, 16, 86,
/* 150 */ 44, 80, 46, 47, 52, 84, 51, 51, 66, 53,
/* 160 */ 55, 55, 69, 92, 93, 60, 60, 61, 97, 9,
/* 170 */ 68, 1, 67, 67, 103, 15, 44, 71, 114, 19,
/* 180 */ 20, 11, 50, 16, 80, 15, 82, 15, 84, 57,
/* 190 */ 30, 87, 88, 89, 63, 1, 92, 93, 55, 95,
/* 200 */ 68, 97, 48, 60, 44, 44, 46, 103, 47, 15,
/* 210 */ 67, 51, 108, 53, 55, 55, 44, 63, 57, 60,
/* 220 */ 60, 61, 68, 9, 102, 64, 67, 67, 15, 15,
/* 230 */ 63, 71, 16, 19, 20, 85, 31, 32, 33, 34,
/* 240 */ 35, 36, 37, 38, 39, 40, 41, 42, 43, 55,
/* 250 */ 45, 9, 46, 53, 54, 61, 62, 15, 44, 56,
/* 260 */ 46, 19, 20, 16, 1, 51, 66, 53, 55, 55,
/* 270 */ 64, 68, 9, 60, 60, 61, 1, 47, 15, 63,
/* 280 */ 67, 67, 58, 53, 54, 71, 44, 80, 46, 65,
/* 290 */ 15, 84, 63, 51, 65, 53, 66, 55, 49, 92,
/* 300 */ 56, 44, 60, 61, 97, 9, 1, 63, 85, 67,
/* 310 */ 103, 15, 63, 71, 57, 19, 20, 31, 32, 33,
/* 320 */ 34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
/* 330 */ 55, 15, 109, 9, 63, 102, 61, 62, 15, 15,
/* 340 */ 44, 80, 46, 19, 20, 84, 80, 51, 80, 53,
/* 350 */ 84, 55, 84, 92, 45, 56, 60, 61, 97, 90,
/* 360 */ 92, 60, 63, 67, 103, 97, 50, 71, 44, 103,
/* 370 */ 46, 103, 67, 81, 105, 51, 47, 53, 80, 55,
/* 380 */ 15, 79, 84, 67, 60, 61, 94, 9, 55, 98,
/* 390 */ 67, 67, 81, 15, 65, 71, 85, 19, 20, 107,
/* 400 */ 67, 103, 17, 16, 113, 94, 21, 22, 23, 24,
/* 410 */ 25, 26, 27, 28, 29, 50, 114, 52, 73, 74,
/* 420 */ 75, 81, 44, 101, 46, 85, 104, 90, 106, 51,
/* 430 */ 45, 53, 67, 55, 94, 59, 56, 67, 60, 61,
/* 440 */ 81, 9, 105, 67, 85, 67, 80, 15, 63, 71,
/* 450 */ 84, 19, 20, 94, 80, 68, 17, 90, 84, 1,
/* 460 */ 21, 22, 23, 24, 25, 26, 27, 28, 29, 103,
/* 470 */ 70, 90, 105, 15, 101, 81, 44, 103, 46, 106,
/* 480 */ 50, 91, 90, 51, 45, 53, 105, 55, 94, 48,
/* 490 */ 76, 50, 60, 61, 1, 105, 81, 105, 84, 67,
/* 500 */ 55, 107, 63, 71, 1, 2, 3, 4, 5, 94,
/* 510 */ 81, 8, 67, 10, 101, 12, 13, 14, 15, 106,
/* 520 */ 60, 17, 45, 94, 81, 21, 22, 23, 24, 25,
/* 530 */ 26, 27, 28, 29, 81, 9, 90, 94, 9, 90,
/* 540 */ 63, 15, 62, 67, 15, 19, 20, 94, 19, 20,
/* 550 */ 44, 105, 51, 101, 105, 76, 64, 78, 106, 80,
/* 560 */ 47, 82, 83, 84, 67, 69, 50, 63, 16, 67,
/* 570 */ 44, 92, 93, 44, 95, 5, 97, 51, 55, 62,
/* 580 */ 51, 55, 103, 55, 55, 70, 60, 61, 16, 60,
/* 590 */ 61, 45, 16, 67, 16, 55, 67, 71, 18, 80,
/* 600 */ 71, 82, 45, 84, 5, 67, 67, 52, 1, 67,
/* 610 */ 16, 92, 93, 104, 95, 67, 97, 110, 96, 105,
/* 620 */ 102, 48, 103, 99, 113, 80, 75, 82, 107, 84,
/* 630 */ 111, 112, 87, 102, 114, 56, 44, 92, 93, 106,
/* 640 */ 95, 67, 97, 80, 77, 82, 115, 84, 103, 115,
/* 650 */ 87, 115, 115, 108, 115, 92, 93, 80, 95, 82,
/* 660 */ 97, 84, 115, 115, 87, 115, 103, 115, 115, 92,
/* 670 */ 93, 108, 95, 115, 97, 115, 115, 80, 115, 82,
/* 680 */ 103, 84, 115, 115, 87, 108, 115, 115, 115, 92,
/* 690 */ 93, 115, 95, 115, 97, 80, 115, 82, 115, 84,
/* 700 */ 103, 115, 87, 115, 115, 108, 115, 92, 93, 115,
/* 710 */ 95, 115, 97, 80, 115, 82, 115, 84, 103, 115,
/* 720 */ 87, 115, 115, 108, 115, 92, 93, 115, 95, 115,
/* 730 */ 97, 80, 115, 82, 115, 84, 103, 115, 87, 115,
/* 740 */ 115, 108, 115, 92, 93, 80, 95, 82, 97, 84,
/* 750 */ 115, 115, 87, 115, 103, 115, 115, 92, 93, 108,
/* 760 */ 95, 115, 97, 115, 115, 80, 115, 82, 103, 84,
/* 770 */ 115, 115, 87, 108, 115, 115, 115, 92, 93, 115,
/* 780 */ 95, 115, 97, 80, 115, 82, 115, 84, 103, 115,
/* 790 */ 87, 115, 115, 108, 115, 92, 93, 115, 95, 115,
/* 800 */ 97, 80, 115, 82, 115, 84, 103, 115, 115, 115,
/* 810 */ 115, 108, 115, 92, 93, 115, 95, 115, 97, 115,
/* 820 */ 115, 100, 115, 115, 103, 80, 115, 82, 115, 84,
/* 830 */ 115, 115, 115, 115, 115, 115, 115, 92, 93, 80,
/* 840 */ 95, 82, 97, 84, 115, 115, 115, 115, 103, 115,
/* 850 */ 115, 92, 93, 115, 95, 115, 97, 112, 115, 100,
/* 860 */ 115, 80, 103, 82, 83, 84, 115, 115, 80, 115,
/* 870 */ 82, 115, 84, 92, 93, 115, 95, 115, 97, 115,
/* 880 */ 92, 93, 115, 95, 103, 97, 115, 115, 100, 115,
/* 890 */ 76, 103, 115, 115, 80, 115, 82, 115, 84, 115,
/* 900 */ 115, 115, 115, 115, 115, 115, 92, 93, 80, 95,
/* 910 */ 82, 97, 84, 115, 115, 115, 115, 103, 115, 115,
/* 920 */ 92, 93, 80, 95, 82, 97, 84, 115, 100, 115,
/* 930 */ 115, 103, 115, 115, 92, 93, 115, 95, 80, 97,
/* 940 */ 82, 115, 84, 115, 115, 103, 115, 115, 115, 115,
/* 950 */ 92, 93, 115, 95, 80, 97, 82, 115, 84, 115,
/* 960 */ 115, 103, 115, 115, 115, 115, 92, 93, 115, 95,
/* 970 */ 115, 97, 80, 115, 82, 115, 84, 103, 115, 80,
/* 980 */ 115, 82, 115, 84, 92, 93, 115, 95, 115, 97,
/* 990 */ 115, 92, 93, 115, 95, 103, 97, 115, 115, 115,
/* 1000 */ 115, 80, 103, 82, 115, 84, 115, 115, 115, 115,
/* 1010 */ 115, 115, 115, 92, 93, 80, 95, 82, 97, 84,
/* 1020 */ 115, 115, 115, 115, 103, 115, 115, 92, 93, 115,
/* 1030 */ 95, 80, 97, 82, 115, 84, 115, 115, 103, 115,
/* 1040 */ 115, 115, 115, 92, 93, 115, 95, 80, 97, 82,
/* 1050 */ 115, 84, 115, 115, 103, 115, 115, 115, 115, 92,
/* 1060 */ 93, 115, 95, 115, 97, 80, 115, 82, 115, 84,
/* 1070 */ 103, 115, 80, 115, 82, 115, 84, 92, 93, 115,
/* 1080 */ 95, 115, 97, 115, 92, 93, 115, 95, 103, 97,
/* 1090 */ 115, 115, 115, 115, 80, 103, 82, 115, 84, 115,
/* 1100 */ 115, 115, 115, 115, 115, 115, 92, 93, 80, 95,
/* 1110 */ 82, 97, 84, 115, 115, 115, 115, 103, 115, 115,
/* 1120 */ 92, 93, 115, 95, 80, 97, 115, 115, 84, 115,
/* 1130 */ 115, 103, 115, 115, 115, 115, 92, 93, 115, 95,
/* 1140 */ 80, 97, 115, 115, 84, 115, 115, 103, 115, 115,
/* 1150 */ 115, 115, 92, 93, 115, 95, 115, 97, 80, 115,
/* 1160 */ 115, 115, 84, 103, 115, 115, 115, 115, 115, 115,
/* 1170 */ 92, 93, 115, 95, 115, 97, 115, 115, 115, 115,
/* 1180 */ 115, 103,
);
const YY_SHIFT_USE_DFLT = -67;
const YY_SHIFT_MAX = 206;
static public $yy_shift_ofst = array(
/* 0 */ 503, 160, 432, -9, -9, -9, -9, -9, -9, -9,
/* 10 */ -9, -9, -9, -9, 378, 52, 214, 214, 214, 242,
/* 20 */ 378, 214, 242, 214, 214, 214, 214, 214, 214, 214,
/* 30 */ 214, 214, 214, 214, 214, 214, 106, 324, 296, -1,
/* 40 */ 526, 529, 526, 213, -41, 105, 143, -17, 159, 0,
/* 50 */ 154, -29, 203, -51, -29, 203, 385, 439, 504, 275,
/* 60 */ 365, -10, 263, -3, 102, 50, 441, 50, 323, 50,
/* 70 */ 50, 458, 50, 50, 445, 50, 323, 573, -66, -66,
/* 80 */ 573, 573, -66, 97, 205, 43, 286, 286, 286, 286,
/* 90 */ 286, 286, 286, 286, 286, 503, 194, 230, 92, 200,
/* 100 */ 316, 170, 200, 23, 249, 244, 477, 229, 299, 50,
/* 110 */ 206, 206, 131, 167, 78, 172, 333, 216, 50, 206,
/* 120 */ 206, 206, 573, 271, 271, 573, 271, -66, 579, 271,
/* 130 */ 573, 271, 592, 271, -66, 574, -66, 573, 271, -66,
/* 140 */ -66, -66, -54, -66, -66, -66, -66, 271, -67, -67,
/* 150 */ -67, -67, -67, -67, 132, 161, 65, 224, 257, 257,
/* 160 */ 305, 387, 329, 93, 257, 257, 376, 594, 546, 576,
/* 170 */ 578, 572, 515, 523, 552, 528, 540, 580, 555, 607,
/* 180 */ 542, 539, 538, 557, 380, 599, 570, 548, 517, 370,
/* 190 */ 480, 493, 430, 400, 247, 309, 301, 476, 460, 496,
/* 200 */ 516, 502, 513, 497, 506, 501, 492,
);
const YY_REDUCE_USE_DFLT = -68;
const YY_REDUCE_MAX = 153;
static public $yy_reduce_ofst = array(
/* 0 */ 345, 104, 479, -67, 615, 597, 665, 703, 685, 633,
/* 10 */ 651, 577, 563, 545, 519, 814, 828, 788, 759, 781,
/* 20 */ 745, 721, 7, 985, 1028, 1014, 899, 992, 967, 935,
/* 30 */ 874, 921, 892, 842, 858, 951, 1078, 1060, 1044, 71,
/* 40 */ 268, 261, 207, -11, 12, 366, 374, 322, 266, 12,
/* 50 */ 340, 311, 292, 298, 359, 394, 223, 223, 223, 291,
/* 60 */ 390, 22, 302, 22, 415, 381, 373, 337, 269, 367,
/* 70 */ 22, 64, 392, 446, 414, 449, 337, 452, 453, 429,
/* 80 */ 373, 413, 443, 507, 507, 507, 507, 507, 507, 507,
/* 90 */ 507, 507, 507, 507, 507, 551, 511, 522, 522, 522,
/* 100 */ 514, 520, 522, 520, 150, 150, 150, 150, 150, 514,
/* 110 */ 509, 509, 150, 150, 150, 518, 524, 150, 514, 509,
/* 120 */ 509, 509, 533, 150, 150, 533, 150, -61, 521, 150,
/* 130 */ 533, 150, 531, 150, -61, 567, -61, 533, 150, -61,
/* 140 */ -61, -61, -65, -61, -61, -61, -61, 150, 122, -31,
/* 150 */ -7, 30, 63, 233,
);
static public $yyExpectedTokens = array(
/* 0 */ array(1, 2, 3, 4, 5, 8, 10, 12, 13, 14, 15, ),
/* 1 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 2 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 3 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 4 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 5 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 6 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 7 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 8 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 9 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 10 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 11 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 12 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 13 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 14 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 15 */ array(1, 9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 16 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 17 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 18 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 19 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 20 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 21 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 22 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 23 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 24 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 25 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 26 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 27 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 28 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 29 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 30 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 31 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 32 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 33 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 34 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 35 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 36 */ array(9, 15, 19, 20, 44, 46, 47, 51, 53, 55, 60, 61, 67, 71, ),
/* 37 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 38 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ),
/* 39 */ array(9, 15, 19, 20, 44, 46, 51, 55, 60, 61, 67, 71, ),
/* 40 */ array(9, 15, 19, 20, 44, 51, 55, 60, 61, 67, 71, ),
/* 41 */ array(9, 15, 19, 20, 44, 51, 55, 60, 61, 67, 71, ),
/* 42 */ array(9, 15, 19, 20, 44, 51, 55, 60, 61, 67, 71, ),
/* 43 */ array(15, 55, 60, 67, ),
/* 44 */ array(44, 48, 57, 63, 68, ),
/* 45 */ array(15, 51, 55, 60, 67, ),
/* 46 */ array(1, 55, 60, 67, ),
/* 47 */ array(46, 48, 64, ),
/* 48 */ array(55, 60, 67, ),
/* 49 */ array(48, 63, 68, ),
/* 50 */ array(48, 63, 68, ),
/* 51 */ array(63, 68, ),
/* 52 */ array(56, 68, ),
/* 53 */ array(55, 60, ),
/* 54 */ array(63, 68, ),
/* 55 */ array(56, 68, ),
/* 56 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ),
/* 57 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ),
/* 58 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 63, ),
/* 59 */ array(1, 15, 55, 61, 62, ),
/* 60 */ array(15, 50, 52, 67, ),
/* 61 */ array(15, 50, 59, 67, ),
/* 62 */ array(1, 9, 15, ),
/* 63 */ array(15, 59, 67, ),
/* 64 */ array(16, 52, 68, ),
/* 65 */ array(15, 67, ),
/* 66 */ array(48, 50, ),
/* 67 */ array(15, 67, ),
/* 68 */ array(15, 67, ),
/* 69 */ array(15, 67, ),
/* 70 */ array(15, 67, ),
/* 71 */ array(1, 15, ),
/* 72 */ array(15, 67, ),
/* 73 */ array(15, 67, ),
/* 74 */ array(55, 67, ),
/* 75 */ array(15, 67, ),
/* 76 */ array(15, 67, ),
/* 77 */ array(48, ),
/* 78 */ array(68, ),
/* 79 */ array(68, ),
/* 80 */ array(48, ),
/* 81 */ array(48, ),
/* 82 */ array(68, ),
/* 83 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ),
/* 84 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ),
/* 85 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 58, ),
/* 86 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 87 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 88 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 89 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 90 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 91 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 92 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 93 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 94 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 95 */ array(1, 2, 3, 4, 5, 8, 10, 12, 13, 14, 15, ),
/* 96 */ array(1, 15, 55, 61, 62, ),
/* 97 */ array(47, 53, 54, 66, ),
/* 98 */ array(16, 53, 54, 66, ),
/* 99 */ array(53, 54, 66, ),
/* 100 */ array(15, 50, 67, ),
/* 101 */ array(1, 11, 15, ),
/* 102 */ array(53, 54, 66, ),
/* 103 */ array(1, 9, 15, ),
/* 104 */ array(49, 63, ),
/* 105 */ array(56, 63, ),
/* 106 */ array(45, 63, ),
/* 107 */ array(63, 65, ),
/* 108 */ array(56, 63, ),
/* 109 */ array(15, 67, ),
/* 110 */ array(46, 64, ),
/* 111 */ array(46, 64, ),
/* 112 */ array(16, 63, ),
/* 113 */ array(16, 63, ),
/* 114 */ array(16, 63, ),
/* 115 */ array(15, 44, ),
/* 116 */ array(55, 67, ),
/* 117 */ array(16, 63, ),
/* 118 */ array(15, 67, ),
/* 119 */ array(46, 64, ),
/* 120 */ array(46, 64, ),
/* 121 */ array(46, 64, ),
/* 122 */ array(48, ),
/* 123 */ array(63, ),
/* 124 */ array(63, ),
/* 125 */ array(48, ),
/* 126 */ array(63, ),
/* 127 */ array(68, ),
/* 128 */ array(56, ),
/* 129 */ array(63, ),
/* 130 */ array(48, ),
/* 131 */ array(63, ),
/* 132 */ array(44, ),
/* 133 */ array(63, ),
/* 134 */ array(68, ),
/* 135 */ array(67, ),
/* 136 */ array(68, ),
/* 137 */ array(48, ),
/* 138 */ array(63, ),
/* 139 */ array(68, ),
/* 140 */ array(68, ),
/* 141 */ array(68, ),
/* 142 */ array(55, ),
/* 143 */ array(68, ),
/* 144 */ array(68, ),
/* 145 */ array(68, ),
/* 146 */ array(68, ),
/* 147 */ array(63, ),
/* 148 */ array(),
/* 149 */ array(),
/* 150 */ array(),
/* 151 */ array(),
/* 152 */ array(),
/* 153 */ array(),
/* 154 */ array(16, 44, 50, 57, 68, ),
/* 155 */ array(44, 47, 57, 64, ),
/* 156 */ array(44, 49, 57, ),
/* 157 */ array(58, 65, ),
/* 158 */ array(44, 57, ),
/* 159 */ array(44, 57, ),
/* 160 */ array(1, 67, ),
/* 161 */ array(16, 68, ),
/* 162 */ array(47, 65, ),
/* 163 */ array(18, 69, ),
/* 164 */ array(44, 57, ),
/* 165 */ array(44, 57, ),
/* 166 */ array(59, 67, ),
/* 167 */ array(16, ),
/* 168 */ array(45, ),
/* 169 */ array(16, ),
/* 170 */ array(16, ),
/* 171 */ array(16, ),
/* 172 */ array(70, ),
/* 173 */ array(55, ),
/* 174 */ array(16, ),
/* 175 */ array(55, ),
/* 176 */ array(55, ),
/* 177 */ array(18, ),
/* 178 */ array(52, ),
/* 179 */ array(1, ),
/* 180 */ array(67, ),
/* 181 */ array(67, ),
/* 182 */ array(67, ),
/* 183 */ array(45, ),
/* 184 */ array(56, ),
/* 185 */ array(5, ),
/* 186 */ array(5, ),
/* 187 */ array(67, ),
/* 188 */ array(62, ),
/* 189 */ array(67, ),
/* 190 */ array(62, ),
/* 191 */ array(1, ),
/* 192 */ array(50, ),
/* 193 */ array(70, ),
/* 194 */ array(16, ),
/* 195 */ array(45, ),
/* 196 */ array(60, ),
/* 197 */ array(67, ),
/* 198 */ array(60, ),
/* 199 */ array(69, ),
/* 200 */ array(50, ),
/* 201 */ array(67, ),
/* 202 */ array(47, ),
/* 203 */ array(67, ),
/* 204 */ array(44, ),
/* 205 */ array(51, ),
/* 206 */ array(64, ),
/* 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(),
/* 238 */ array(),
/* 239 */ array(),
/* 240 */ array(),
/* 241 */ array(),
/* 242 */ array(),
/* 243 */ array(),
/* 244 */ array(),
/* 245 */ array(),
/* 246 */ array(),
/* 247 */ array(),
/* 248 */ array(),
/* 249 */ array(),
/* 250 */ array(),
/* 251 */ array(),
/* 252 */ array(),
/* 253 */ array(),
/* 254 */ array(),
/* 255 */ array(),
/* 256 */ array(),
/* 257 */ array(),
/* 258 */ array(),
/* 259 */ array(),
/* 260 */ array(),
/* 261 */ array(),
/* 262 */ array(),
/* 263 */ array(),
/* 264 */ array(),
/* 265 */ array(),
/* 266 */ array(),
/* 267 */ array(),
/* 268 */ array(),
/* 269 */ array(),
/* 270 */ array(),
/* 271 */ array(),
/* 272 */ array(),
/* 273 */ array(),
/* 274 */ array(),
/* 275 */ array(),
/* 276 */ array(),
/* 277 */ array(),
/* 278 */ array(),
/* 279 */ array(),
/* 280 */ array(),
/* 281 */ array(),
/* 282 */ array(),
/* 283 */ array(),
/* 284 */ array(),
/* 285 */ array(),
/* 286 */ array(),
/* 287 */ array(),
/* 288 */ array(),
/* 289 */ array(),
/* 290 */ array(),
/* 291 */ array(),
/* 292 */ array(),
/* 293 */ array(),
/* 294 */ array(),
/* 295 */ array(),
/* 296 */ array(),
/* 297 */ array(),
/* 298 */ array(),
/* 299 */ array(),
/* 300 */ array(),
/* 301 */ array(),
/* 302 */ array(),
/* 303 */ array(),
/* 304 */ array(),
/* 305 */ array(),
/* 306 */ array(),
/* 307 */ array(),
/* 308 */ array(),
/* 309 */ array(),
/* 310 */ array(),
/* 311 */ array(),
/* 312 */ array(),
);
static public $yy_default = array(
/* 0 */ 484, 484, 484, 484, 484, 484, 484, 484, 484, 484,
/* 10 */ 484, 484, 484, 484, 465, 484, 423, 423, 423, 484,
/* 20 */ 484, 423, 484, 484, 484, 484, 484, 484, 484, 484,
/* 30 */ 484, 484, 484, 484, 484, 484, 484, 484, 484, 484,
/* 40 */ 484, 484, 484, 484, 334, 484, 484, 388, 484, 334,
/* 50 */ 349, 349, 349, 484, 349, 349, 433, 433, 433, 484,
/* 60 */ 484, 398, 484, 398, 370, 484, 391, 484, 484, 484,
/* 70 */ 398, 484, 484, 484, 484, 484, 484, 384, 349, 349,
/* 80 */ 391, 383, 349, 484, 484, 484, 439, 437, 446, 438,
/* 90 */ 431, 442, 443, 447, 337, 313, 484, 484, 484, 428,
/* 100 */ 484, 484, 358, 484, 468, 484, 484, 422, 484, 343,
/* 110 */ 415, 396, 484, 484, 484, 398, 484, 484, 342, 416,
/* 120 */ 417, 414, 386, 350, 434, 389, 356, 328, 360, 466,
/* 130 */ 385, 467, 398, 366, 330, 484, 345, 411, 365, 329,
/* 140 */ 331, 332, 484, 333, 344, 335, 336, 340, 398, 427,
/* 150 */ 398, 427, 427, 398, 357, 484, 357, 484, 448, 357,
/* 160 */ 484, 361, 484, 361, 429, 484, 484, 484, 484, 484,
/* 170 */ 484, 484, 484, 484, 354, 484, 484, 364, 370, 484,
/* 180 */ 484, 484, 484, 484, 409, 484, 484, 484, 484, 484,
/* 190 */ 484, 484, 484, 378, 484, 484, 484, 484, 484, 361,
/* 200 */ 353, 484, 484, 484, 387, 484, 373, 320, 352, 317,
/* 210 */ 319, 418, 346, 322, 321, 327, 382, 326, 404, 470,
/* 220 */ 403, 325, 405, 479, 477, 402, 323, 474, 420, 324,
/* 230 */ 475, 406, 314, 450, 368, 369, 359, 367, 412, 375,
/* 240 */ 376, 377, 407, 410, 482, 483, 380, 480, 379, 424,
/* 250 */ 425, 364, 374, 363, 361, 362, 372, 426, 347, 315,
/* 260 */ 316, 318, 371, 413, 399, 400, 401, 395, 394, 392,
/* 270 */ 397, 393, 481, 381, 440, 441, 444, 430, 378, 457,
/* 280 */ 458, 449, 445, 459, 408, 409, 355, 341, 339, 460,
/* 290 */ 461, 432, 456, 455, 476, 348, 421, 473, 478, 469,
/* 300 */ 471, 472, 419, 462, 452, 453, 454, 451, 436, 464,
/* 310 */ 463, 435, 390,
);
/* 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.
*/
const YYNOCODE = 116;
const YYSTACKDEPTH = 100;
const YYNSTATE = 313;
const YYNRULE = 171;
const YYERRORSYMBOL = 72;
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, /* XML => OTHER */
1, /* PHP => OTHER */
1, /* SHORTTAGSTART => OTHER */
1, /* SHORTTAGEND => OTHER */
1, /* PHPSTART => OTHER */
1, /* PHPEND => OTHER */
1, /* COMMENT => OTHER */
1, /* SINGLEQUOTE => OTHER */
1, /* LITERALSTART => OTHER */
1, /* LITERALEND => OTHER */
1, /* LDELIMTAG => OTHER */
1, /* RDELIMTAG => OTHER */
1, /* LDELSLASH => OTHER */
1, /* LDEL => OTHER */
1, /* RDEL => OTHER */
1, /* ISIN => OTHER */
1, /* AS => OTHER */
1, /* BOOLEAN => OTHER */
1, /* NULL => OTHER */
1, /* IDENTITY => OTHER */
1, /* NONEIDENTITY => OTHER */
1, /* EQUALS => OTHER */
1, /* NOTEQUALS => OTHER */
1, /* GREATEREQUAL => OTHER */
1, /* LESSEQUAL => OTHER */
1, /* GREATERTHAN => OTHER */
1, /* LESSTHAN => OTHER */
1, /* MOD => OTHER */
1, /* NOT => OTHER */
1, /* LAND => OTHER */
1, /* LOR => OTHER */
1, /* LXOR => OTHER */
1, /* ISODDBY => OTHER */
1, /* ISNOTODDBY => OTHER */
1, /* ISODD => OTHER */
1, /* ISNOTODD => OTHER */
1, /* ISEVENBY => OTHER */
1, /* ISNOTEVENBY => OTHER */
1, /* ISEVEN => OTHER */
1, /* ISNOTEVEN => OTHER */
1, /* ISDIVBY => OTHER */
1, /* ISNOTDIVBY => OTHER */
1, /* OPENP => OTHER */
1, /* CLOSEP => OTHER */
1, /* OPENB => OTHER */
1, /* CLOSEB => OTHER */
1, /* PTR => OTHER */
1, /* APTR => OTHER */
1, /* EQUAL => OTHER */
1, /* INTEGER => OTHER */
1, /* INCDEC => OTHER */
1, /* UNIMATH => OTHER */
1, /* MATH => OTHER */
1, /* DOLLAR => OTHER */
1, /* COLON => OTHER */
1, /* DOUBLECOLON => OTHER */
1, /* SEMICOLON => OTHER */
1, /* AT => OTHER */
1, /* HATCH => OTHER */
1, /* QUOTE => OTHER */
1, /* BACKTICK => OTHER */
1, /* VERT => OTHER */
1, /* DOT => OTHER */
1, /* COMMA => OTHER */
1, /* ANDSYM => OTHER */
1, /* ID => OTHER */
1, /* SPACE => OTHER */
1, /* INSTANCEOF => OTHER */
1, /* QMARK => OTHER */
1, /* TYPECAST => OTHER */
);
/**
* 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 = '
';
}
/**
* @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', 'XML', 'PHP',
'SHORTTAGSTART', 'SHORTTAGEND', 'PHPSTART', 'PHPEND',
'COMMENT', 'SINGLEQUOTE', 'LITERALSTART', 'LITERALEND',
'LDELIMTAG', 'RDELIMTAG', 'LDELSLASH', 'LDEL',
'RDEL', 'ISIN', 'AS', 'BOOLEAN',
'NULL', 'IDENTITY', 'NONEIDENTITY', 'EQUALS',
'NOTEQUALS', 'GREATEREQUAL', 'LESSEQUAL', 'GREATERTHAN',
'LESSTHAN', 'MOD', 'NOT', 'LAND',
'LOR', 'LXOR', 'ISODDBY', 'ISNOTODDBY',
'ISODD', 'ISNOTODD', 'ISEVENBY', 'ISNOTEVENBY',
'ISEVEN', 'ISNOTEVEN', 'ISDIVBY', 'ISNOTDIVBY',
'OPENP', 'CLOSEP', 'OPENB', 'CLOSEB',
'PTR', 'APTR', 'EQUAL', 'INTEGER',
'INCDEC', 'UNIMATH', 'MATH', 'DOLLAR',
'COLON', 'DOUBLECOLON', 'SEMICOLON', 'AT',
'HATCH', 'QUOTE', 'BACKTICK', 'VERT',
'DOT', 'COMMA', 'ANDSYM', 'ID',
'SPACE', 'INSTANCEOF', 'QMARK', 'TYPECAST',
'error', 'start', 'template', 'template_element',
'smartytag', 'smartyclosetag', 'outputtag', 'text',
'variable', 'attributes', 'expr', 'ternary',
'varindexed', 'modifier', 'modparameters', 'ifexprs',
'statement', 'statements', 'varvar', 'foraction',
'value', 'array', 'attribute', 'exprs',
'math', 'function', 'doublequoted', 'method',
'params', 'objectchain', 'arrayindex', 'object',
'indexdef', 'varvarele', 'objectelement', 'modparameter',
'ifexpr', 'ifcond', 'lop', 'arrayelements',
'arrayelement', 'doublequotedcontent', 'textelement',
);
/**
* 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 ::= LDEL smartytag RDEL",
/* 4 */ "template_element ::= LDELSLASH smartyclosetag RDEL",
/* 5 */ "template_element ::= LDEL outputtag RDEL",
/* 6 */ "template_element ::= COMMENT",
/* 7 */ "template_element ::= LITERALSTART text LITERALEND",
/* 8 */ "template_element ::= LDELIMTAG",
/* 9 */ "template_element ::= RDELIMTAG",
/* 10 */ "template_element ::= PHP OTHER SHORTTAGEND",
/* 11 */ "template_element ::= SHORTTAGSTART OTHER SHORTTAGEND",
/* 12 */ "template_element ::= XML",
/* 13 */ "template_element ::= SHORTTAGEND",
/* 14 */ "template_element ::= OTHER",
/* 15 */ "outputtag ::= variable attributes",
/* 16 */ "outputtag ::= expr attributes",
/* 17 */ "outputtag ::= ternary attributes",
/* 18 */ "smartytag ::= varindexed EQUAL expr attributes",
/* 19 */ "smartytag ::= varindexed EQUAL ternary attributes",
/* 20 */ "smartytag ::= ID attributes",
/* 21 */ "smartytag ::= ID",
/* 22 */ "smartytag ::= ID PTR ID attributes",
/* 23 */ "smartytag ::= ID modifier modparameters attributes",
/* 24 */ "smartytag ::= ID SPACE ifexprs",
/* 25 */ "smartytag ::= ID SPACE statement",
/* 26 */ "smartytag ::= ID SPACE statements SEMICOLON ifexprs SEMICOLON DOLLAR varvar foraction",
/* 27 */ "foraction ::= EQUAL expr",
/* 28 */ "foraction ::= INCDEC",
/* 29 */ "smartytag ::= ID SPACE value AS DOLLAR varvar",
/* 30 */ "smartytag ::= ID SPACE array AS DOLLAR varvar",
/* 31 */ "smartyclosetag ::= ID attributes",
/* 32 */ "smartyclosetag ::= ID modifier modparameters attributes",
/* 33 */ "smartyclosetag ::= ID PTR ID",
/* 34 */ "attributes ::= attributes attribute",
/* 35 */ "attributes ::= attribute",
/* 36 */ "attributes ::=",
/* 37 */ "attribute ::= SPACE ID EQUAL expr",
/* 38 */ "attribute ::= SPACE ID EQUAL value",
/* 39 */ "attribute ::= SPACE ID EQUAL ternary",
/* 40 */ "attribute ::= SPACE ID",
/* 41 */ "statements ::= statement",
/* 42 */ "statements ::= statements COMMA statement",
/* 43 */ "statement ::= DOLLAR varvar EQUAL expr",
/* 44 */ "expr ::= ID",
/* 45 */ "expr ::= exprs",
/* 46 */ "expr ::= DOLLAR ID COLON ID",
/* 47 */ "expr ::= expr modifier modparameters",
/* 48 */ "exprs ::= value",
/* 49 */ "exprs ::= UNIMATH value",
/* 50 */ "exprs ::= exprs math value",
/* 51 */ "exprs ::= array",
/* 52 */ "ternary ::= OPENP ifexprs CLOSEP QMARK expr COLON expr",
/* 53 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr",
/* 54 */ "math ::= UNIMATH",
/* 55 */ "math ::= MATH",
/* 56 */ "math ::= ANDSYM",
/* 57 */ "value ::= variable",
/* 58 */ "value ::= TYPECAST variable",
/* 59 */ "value ::= variable INCDEC",
/* 60 */ "value ::= INTEGER",
/* 61 */ "value ::= INTEGER DOT INTEGER",
/* 62 */ "value ::= BOOLEAN",
/* 63 */ "value ::= NULL",
/* 64 */ "value ::= function",
/* 65 */ "value ::= OPENP expr CLOSEP",
/* 66 */ "value ::= SINGLEQUOTE text SINGLEQUOTE",
/* 67 */ "value ::= SINGLEQUOTE SINGLEQUOTE",
/* 68 */ "value ::= QUOTE doublequoted QUOTE",
/* 69 */ "value ::= QUOTE QUOTE",
/* 70 */ "value ::= ID DOUBLECOLON method",
/* 71 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP",
/* 72 */ "value ::= ID DOUBLECOLON method objectchain",
/* 73 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain",
/* 74 */ "value ::= ID DOUBLECOLON ID",
/* 75 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex",
/* 76 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain",
/* 77 */ "value ::= LDEL smartytag RDEL",
/* 78 */ "variable ::= varindexed",
/* 79 */ "variable ::= DOLLAR varvar AT ID",
/* 80 */ "variable ::= object",
/* 81 */ "variable ::= HATCH ID HATCH",
/* 82 */ "variable ::= HATCH variable HATCH",
/* 83 */ "varindexed ::= DOLLAR varvar arrayindex",
/* 84 */ "arrayindex ::= arrayindex indexdef",
/* 85 */ "arrayindex ::=",
/* 86 */ "indexdef ::= DOT ID",
/* 87 */ "indexdef ::= DOT INTEGER",
/* 88 */ "indexdef ::= DOT variable",
/* 89 */ "indexdef ::= DOT LDEL exprs RDEL",
/* 90 */ "indexdef ::= OPENB ID CLOSEB",
/* 91 */ "indexdef ::= OPENB ID DOT ID CLOSEB",
/* 92 */ "indexdef ::= OPENB exprs CLOSEB",
/* 93 */ "indexdef ::= OPENB CLOSEB",
/* 94 */ "varvar ::= varvarele",
/* 95 */ "varvar ::= varvar varvarele",
/* 96 */ "varvarele ::= ID",
/* 97 */ "varvarele ::= LDEL expr RDEL",
/* 98 */ "object ::= varindexed objectchain",
/* 99 */ "objectchain ::= objectelement",
/* 100 */ "objectchain ::= objectchain objectelement",
/* 101 */ "objectelement ::= PTR ID arrayindex",
/* 102 */ "objectelement ::= PTR variable arrayindex",
/* 103 */ "objectelement ::= PTR LDEL expr RDEL arrayindex",
/* 104 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex",
/* 105 */ "objectelement ::= PTR method",
/* 106 */ "function ::= ID OPENP params CLOSEP",
/* 107 */ "method ::= ID OPENP params CLOSEP",
/* 108 */ "params ::= expr COMMA params",
/* 109 */ "params ::= expr",
/* 110 */ "params ::=",
/* 111 */ "modifier ::= VERT AT ID",
/* 112 */ "modifier ::= VERT ID",
/* 113 */ "modparameters ::= modparameters modparameter",
/* 114 */ "modparameters ::=",
/* 115 */ "modparameter ::= COLON exprs",
/* 116 */ "modparameter ::= COLON ID",
/* 117 */ "ifexprs ::= ifexpr",
/* 118 */ "ifexprs ::= NOT ifexprs",
/* 119 */ "ifexprs ::= OPENP ifexprs CLOSEP",
/* 120 */ "ifexpr ::= expr",
/* 121 */ "ifexpr ::= expr ifcond expr",
/* 122 */ "ifexpr ::= expr ISIN array",
/* 123 */ "ifexpr ::= expr ISIN value",
/* 124 */ "ifexpr ::= ifexprs lop ifexprs",
/* 125 */ "ifexpr ::= ifexprs ISDIVBY ifexprs",
/* 126 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs",
/* 127 */ "ifexpr ::= ifexprs ISEVEN",
/* 128 */ "ifexpr ::= ifexprs ISNOTEVEN",
/* 129 */ "ifexpr ::= ifexprs ISEVENBY ifexprs",
/* 130 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs",
/* 131 */ "ifexpr ::= ifexprs ISODD",
/* 132 */ "ifexpr ::= ifexprs ISNOTODD",
/* 133 */ "ifexpr ::= ifexprs ISODDBY ifexprs",
/* 134 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs",
/* 135 */ "ifexpr ::= value INSTANCEOF ID",
/* 136 */ "ifexpr ::= value INSTANCEOF value",
/* 137 */ "ifcond ::= EQUALS",
/* 138 */ "ifcond ::= NOTEQUALS",
/* 139 */ "ifcond ::= GREATERTHAN",
/* 140 */ "ifcond ::= LESSTHAN",
/* 141 */ "ifcond ::= GREATEREQUAL",
/* 142 */ "ifcond ::= LESSEQUAL",
/* 143 */ "ifcond ::= IDENTITY",
/* 144 */ "ifcond ::= NONEIDENTITY",
/* 145 */ "ifcond ::= MOD",
/* 146 */ "lop ::= LAND",
/* 147 */ "lop ::= LOR",
/* 148 */ "lop ::= LXOR",
/* 149 */ "array ::= OPENB arrayelements CLOSEB",
/* 150 */ "arrayelements ::= arrayelement",
/* 151 */ "arrayelements ::= arrayelements COMMA arrayelement",
/* 152 */ "arrayelements ::=",
/* 153 */ "arrayelement ::= expr APTR expr",
/* 154 */ "arrayelement ::= ID APTR expr",
/* 155 */ "arrayelement ::= expr",
/* 156 */ "doublequoted ::= doublequoted doublequotedcontent",
/* 157 */ "doublequoted ::= doublequotedcontent",
/* 158 */ "doublequotedcontent ::= BACKTICK ID BACKTICK",
/* 159 */ "doublequotedcontent ::= BACKTICK variable BACKTICK",
/* 160 */ "doublequotedcontent ::= DOLLAR ID",
/* 161 */ "doublequotedcontent ::= LDEL expr RDEL",
/* 162 */ "doublequotedcontent ::= LDEL smartytag RDEL",
/* 163 */ "doublequotedcontent ::= DOLLAR OTHER",
/* 164 */ "doublequotedcontent ::= LDEL OTHER",
/* 165 */ "doublequotedcontent ::= BACKTICK OTHER",
/* 166 */ "doublequotedcontent ::= OTHER",
/* 167 */ "text ::= text textelement",
/* 168 */ "text ::= textelement",
/* 169 */ "textelement ::= OTHER",
/* 170 */ "textelement ::= LDEL",
);
/**
* 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.
*
*
* array(
* array(
* int $lhs; Symbol on the left-hand side of the rule
* int $nrhs; Number of right-hand side symbols in the rule
* ),...
* );
*
*/
static public $yyRuleInfo = array(
array( 'lhs' => 73, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 2 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 1 ),
array( 'lhs' => 78, 'rhs' => 2 ),
array( 'lhs' => 78, 'rhs' => 2 ),
array( 'lhs' => 78, 'rhs' => 2 ),
array( 'lhs' => 76, 'rhs' => 4 ),
array( 'lhs' => 76, 'rhs' => 4 ),
array( 'lhs' => 76, 'rhs' => 2 ),
array( 'lhs' => 76, 'rhs' => 1 ),
array( 'lhs' => 76, 'rhs' => 4 ),
array( 'lhs' => 76, 'rhs' => 4 ),
array( 'lhs' => 76, 'rhs' => 3 ),
array( 'lhs' => 76, 'rhs' => 3 ),
array( 'lhs' => 76, 'rhs' => 9 ),
array( 'lhs' => 91, 'rhs' => 2 ),
array( 'lhs' => 91, 'rhs' => 1 ),
array( 'lhs' => 76, 'rhs' => 6 ),
array( 'lhs' => 76, 'rhs' => 6 ),
array( 'lhs' => 77, 'rhs' => 2 ),
array( 'lhs' => 77, 'rhs' => 4 ),
array( 'lhs' => 77, 'rhs' => 3 ),
array( 'lhs' => 81, 'rhs' => 2 ),
array( 'lhs' => 81, 'rhs' => 1 ),
array( 'lhs' => 81, 'rhs' => 0 ),
array( 'lhs' => 94, 'rhs' => 4 ),
array( 'lhs' => 94, 'rhs' => 4 ),
array( 'lhs' => 94, 'rhs' => 4 ),
array( 'lhs' => 94, 'rhs' => 2 ),
array( 'lhs' => 89, 'rhs' => 1 ),
array( 'lhs' => 89, 'rhs' => 3 ),
array( 'lhs' => 88, 'rhs' => 4 ),
array( 'lhs' => 82, 'rhs' => 1 ),
array( 'lhs' => 82, 'rhs' => 1 ),
array( 'lhs' => 82, 'rhs' => 4 ),
array( 'lhs' => 82, 'rhs' => 3 ),
array( 'lhs' => 95, 'rhs' => 1 ),
array( 'lhs' => 95, 'rhs' => 2 ),
array( 'lhs' => 95, 'rhs' => 3 ),
array( 'lhs' => 95, 'rhs' => 1 ),
array( 'lhs' => 83, 'rhs' => 7 ),
array( 'lhs' => 83, 'rhs' => 7 ),
array( 'lhs' => 96, 'rhs' => 1 ),
array( 'lhs' => 96, 'rhs' => 1 ),
array( 'lhs' => 96, 'rhs' => 1 ),
array( 'lhs' => 92, 'rhs' => 1 ),
array( 'lhs' => 92, 'rhs' => 2 ),
array( 'lhs' => 92, 'rhs' => 2 ),
array( 'lhs' => 92, 'rhs' => 1 ),
array( 'lhs' => 92, 'rhs' => 3 ),
array( 'lhs' => 92, 'rhs' => 1 ),
array( 'lhs' => 92, 'rhs' => 1 ),
array( 'lhs' => 92, 'rhs' => 1 ),
array( 'lhs' => 92, 'rhs' => 3 ),
array( 'lhs' => 92, 'rhs' => 3 ),
array( 'lhs' => 92, 'rhs' => 2 ),
array( 'lhs' => 92, 'rhs' => 3 ),
array( 'lhs' => 92, 'rhs' => 2 ),
array( 'lhs' => 92, 'rhs' => 3 ),
array( 'lhs' => 92, 'rhs' => 7 ),
array( 'lhs' => 92, 'rhs' => 4 ),
array( 'lhs' => 92, 'rhs' => 8 ),
array( 'lhs' => 92, 'rhs' => 3 ),
array( 'lhs' => 92, 'rhs' => 5 ),
array( 'lhs' => 92, 'rhs' => 6 ),
array( 'lhs' => 92, 'rhs' => 3 ),
array( 'lhs' => 80, 'rhs' => 1 ),
array( 'lhs' => 80, 'rhs' => 4 ),
array( 'lhs' => 80, 'rhs' => 1 ),
array( 'lhs' => 80, 'rhs' => 3 ),
array( 'lhs' => 80, 'rhs' => 3 ),
array( 'lhs' => 84, 'rhs' => 3 ),
array( 'lhs' => 102, 'rhs' => 2 ),
array( 'lhs' => 102, 'rhs' => 0 ),
array( 'lhs' => 104, 'rhs' => 2 ),
array( 'lhs' => 104, 'rhs' => 2 ),
array( 'lhs' => 104, 'rhs' => 2 ),
array( 'lhs' => 104, 'rhs' => 4 ),
array( 'lhs' => 104, 'rhs' => 3 ),
array( 'lhs' => 104, 'rhs' => 5 ),
array( 'lhs' => 104, 'rhs' => 3 ),
array( 'lhs' => 104, 'rhs' => 2 ),
array( 'lhs' => 90, 'rhs' => 1 ),
array( 'lhs' => 90, 'rhs' => 2 ),
array( 'lhs' => 105, 'rhs' => 1 ),
array( 'lhs' => 105, 'rhs' => 3 ),
array( 'lhs' => 103, 'rhs' => 2 ),
array( 'lhs' => 101, 'rhs' => 1 ),
array( 'lhs' => 101, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 5 ),
array( 'lhs' => 106, 'rhs' => 6 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 97, 'rhs' => 4 ),
array( 'lhs' => 99, 'rhs' => 4 ),
array( 'lhs' => 100, 'rhs' => 3 ),
array( 'lhs' => 100, 'rhs' => 1 ),
array( 'lhs' => 100, 'rhs' => 0 ),
array( 'lhs' => 85, 'rhs' => 3 ),
array( 'lhs' => 85, 'rhs' => 2 ),
array( 'lhs' => 86, 'rhs' => 2 ),
array( 'lhs' => 86, 'rhs' => 0 ),
array( 'lhs' => 107, 'rhs' => 2 ),
array( 'lhs' => 107, 'rhs' => 2 ),
array( 'lhs' => 87, 'rhs' => 1 ),
array( 'lhs' => 87, 'rhs' => 2 ),
array( 'lhs' => 87, 'rhs' => 3 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 3 ),
array( 'lhs' => 108, 'rhs' => 3 ),
array( 'lhs' => 108, 'rhs' => 3 ),
array( 'lhs' => 108, 'rhs' => 3 ),
array( 'lhs' => 108, 'rhs' => 3 ),
array( 'lhs' => 108, 'rhs' => 3 ),
array( 'lhs' => 108, 'rhs' => 2 ),
array( 'lhs' => 108, 'rhs' => 2 ),
array( 'lhs' => 108, 'rhs' => 3 ),
array( 'lhs' => 108, 'rhs' => 3 ),
array( 'lhs' => 108, 'rhs' => 2 ),
array( 'lhs' => 108, 'rhs' => 2 ),
array( 'lhs' => 108, 'rhs' => 3 ),
array( 'lhs' => 108, 'rhs' => 3 ),
array( 'lhs' => 108, 'rhs' => 3 ),
array( 'lhs' => 108, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 93, 'rhs' => 3 ),
array( 'lhs' => 111, 'rhs' => 1 ),
array( 'lhs' => 111, 'rhs' => 3 ),
array( 'lhs' => 111, 'rhs' => 0 ),
array( 'lhs' => 112, 'rhs' => 3 ),
array( 'lhs' => 112, 'rhs' => 3 ),
array( 'lhs' => 112, 'rhs' => 1 ),
array( 'lhs' => 98, 'rhs' => 2 ),
array( 'lhs' => 98, 'rhs' => 1 ),
array( 'lhs' => 113, 'rhs' => 3 ),
array( 'lhs' => 113, 'rhs' => 3 ),
array( 'lhs' => 113, 'rhs' => 2 ),
array( 'lhs' => 113, 'rhs' => 3 ),
array( 'lhs' => 113, 'rhs' => 3 ),
array( 'lhs' => 113, 'rhs' => 2 ),
array( 'lhs' => 113, 'rhs' => 2 ),
array( 'lhs' => 113, 'rhs' => 2 ),
array( 'lhs' => 113, 'rhs' => 1 ),
array( 'lhs' => 79, 'rhs' => 2 ),
array( 'lhs' => 79, 'rhs' => 1 ),
array( 'lhs' => 114, 'rhs' => 1 ),
array( 'lhs' => 114, 'rhs' => 1 ),
);
/**
* 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,
48 => 0,
57 => 0,
60 => 0,
62 => 0,
63 => 0,
64 => 0,
80 => 0,
150 => 0,
1 => 1,
45 => 1,
51 => 1,
54 => 1,
55 => 1,
94 => 1,
117 => 1,
157 => 1,
166 => 1,
168 => 1,
169 => 1,
170 => 1,
2 => 2,
84 => 2,
156 => 2,
164 => 2,
167 => 2,
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 => 15,
17 => 15,
18 => 18,
19 => 18,
20 => 20,
21 => 21,
22 => 22,
23 => 23,
24 => 24,
25 => 25,
26 => 26,
27 => 27,
28 => 28,
35 => 28,
109 => 28,
155 => 28,
29 => 29,
30 => 30,
31 => 31,
32 => 32,
33 => 33,
34 => 34,
36 => 36,
37 => 37,
38 => 37,
39 => 37,
40 => 40,
41 => 41,
42 => 42,
43 => 43,
44 => 44,
46 => 46,
47 => 47,
49 => 49,
58 => 49,
59 => 49,
50 => 50,
52 => 52,
53 => 52,
56 => 56,
61 => 61,
65 => 65,
66 => 66,
67 => 67,
69 => 67,
68 => 68,
70 => 70,
71 => 71,
72 => 72,
73 => 73,
74 => 74,
75 => 75,
76 => 76,
77 => 77,
78 => 78,
79 => 79,
81 => 81,
82 => 82,
83 => 83,
85 => 85,
114 => 85,
86 => 86,
87 => 87,
88 => 88,
89 => 89,
92 => 89,
90 => 90,
91 => 91,
93 => 93,
95 => 95,
96 => 96,
97 => 97,
119 => 97,
98 => 98,
99 => 99,
100 => 100,
101 => 101,
102 => 102,
103 => 103,
104 => 104,
105 => 105,
106 => 106,
107 => 107,
108 => 108,
110 => 110,
111 => 111,
112 => 112,
113 => 113,
115 => 115,
116 => 116,
118 => 118,
120 => 120,
121 => 121,
124 => 121,
135 => 121,
122 => 122,
123 => 123,
125 => 125,
126 => 126,
127 => 127,
132 => 127,
128 => 128,
131 => 128,
129 => 129,
134 => 129,
130 => 130,
133 => 130,
136 => 136,
137 => 137,
138 => 138,
139 => 139,
140 => 140,
141 => 141,
142 => 142,
143 => 143,
144 => 144,
145 => 145,
146 => 146,
147 => 147,
148 => 148,
149 => 149,
151 => 151,
152 => 152,
153 => 153,
154 => 154,
158 => 158,
159 => 159,
160 => 160,
161 => 161,
162 => 162,
163 => 163,
165 => 165,
);
/* Beginning here are the reduction cases. A typical example
** follows:
** #line
* rule(A) ::= B. { A = 1; }
*
*
* The parser will translate to something like:
*
*
* function yy_r0(){$this->_retvalue = 1;}
*
*/
private $_retvalue;
/**
* Perform a reduce action and the shift that must immediately
* follow the reduce.
*
* For a rule such as:
*
*
* A ::= B blah C. { dosomething(); }
*
*
* 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 60 "smarty_internal_templateparser.y"
$this->internalError = true;
$this->yymajor = $yymajor;
$this->compiler->trigger_template_error();
#line 2613 "smarty_internal_templateparser.php"
}
/**
* 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 52 "smarty_internal_templateparser.y"
$this->successful = !$this->internalError;
$this->internalError = false;
$this->retvalue = $this->_retvalue;
//echo $this->retvalue."\n\n";
#line 2638 "smarty_internal_templateparser.php"
}
/**
* 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);
}
}