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 TP_SINGLEQUOTESTRING = 72; const YY_NO_ACTION = 499; const YY_ACCEPT_ACTION = 498; const YY_ERROR_ACTION = 497; /* 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 = 1198; static public $yy_action = array( /* 0 */ 65, 21, 150, 38, 183, 207, 72, 230, 233, 36, /* 10 */ 300, 307, 271, 360, 118, 190, 27, 60, 278, 82, /* 20 */ 166, 12, 90, 210, 164, 1, 268, 44, 161, 185, /* 30 */ 24, 100, 290, 315, 121, 9, 32, 14, 27, 200, /* 40 */ 211, 21, 186, 74, 42, 212, 77, 17, 50, 166, /* 50 */ 166, 50, 61, 297, 118, 231, 278, 170, 168, 19, /* 60 */ 195, 65, 54, 266, 291, 360, 358, 72, 288, 199, /* 70 */ 290, 300, 307, 31, 275, 276, 272, 10, 8, 317, /* 80 */ 308, 13, 11, 227, 304, 3, 5, 302, 130, 283, /* 90 */ 288, 190, 151, 318, 313, 82, 29, 21, 14, 96, /* 100 */ 256, 141, 311, 186, 303, 42, 309, 77, 232, 315, /* 110 */ 118, 356, 50, 61, 295, 65, 211, 187, 358, 45, /* 120 */ 23, 72, 143, 54, 266, 300, 307, 316, 275, 276, /* 130 */ 272, 10, 8, 317, 308, 13, 11, 227, 304, 3, /* 140 */ 5, 274, 204, 74, 140, 318, 313, 217, 50, 154, /* 150 */ 29, 125, 14, 223, 53, 181, 27, 186, 309, 42, /* 160 */ 74, 74, 129, 188, 152, 50, 50, 61, 82, 65, /* 170 */ 265, 182, 104, 158, 82, 72, 311, 54, 266, 300, /* 180 */ 307, 194, 111, 192, 64, 216, 52, 81, 67, 211, /* 190 */ 12, 35, 36, 289, 43, 211, 166, 255, 267, 193, /* 200 */ 100, 197, 315, 21, 9, 82, 14, 273, 288, 211, /* 210 */ 44, 186, 74, 42, 166, 68, 118, 50, 27, 188, /* 220 */ 50, 61, 40, 65, 196, 146, 211, 157, 214, 72, /* 230 */ 316, 54, 266, 300, 307, 112, 275, 276, 272, 10, /* 240 */ 8, 317, 308, 13, 11, 227, 304, 3, 5, 296, /* 250 */ 280, 318, 313, 31, 498, 95, 246, 142, 29, 55, /* 260 */ 14, 155, 195, 15, 309, 186, 34, 42, 138, 77, /* 270 */ 288, 311, 156, 166, 50, 61, 166, 65, 22, 306, /* 280 */ 27, 168, 311, 72, 74, 54, 266, 300, 307, 50, /* 290 */ 275, 276, 272, 10, 8, 317, 308, 13, 11, 227, /* 300 */ 304, 3, 5, 167, 245, 248, 203, 178, 247, 294, /* 310 */ 46, 241, 29, 110, 14, 242, 240, 132, 2, 186, /* 320 */ 190, 42, 147, 74, 82, 224, 166, 107, 50, 61, /* 330 */ 287, 65, 288, 255, 267, 165, 100, 72, 315, 54, /* 340 */ 266, 300, 307, 18, 207, 211, 39, 115, 56, 75, /* 350 */ 237, 239, 252, 258, 244, 243, 261, 314, 251, 166, /* 360 */ 215, 47, 27, 293, 1, 148, 29, 122, 14, 153, /* 370 */ 149, 153, 218, 186, 215, 42, 82, 77, 166, 311, /* 380 */ 234, 311, 50, 61, 311, 65, 16, 145, 131, 159, /* 390 */ 257, 72, 166, 54, 266, 300, 307, 211, 254, 201, /* 400 */ 39, 311, 311, 82, 237, 239, 252, 258, 244, 243, /* 410 */ 261, 314, 251, 21, 171, 254, 254, 190, 33, 296, /* 420 */ 29, 82, 14, 292, 211, 172, 118, 186, 209, 42, /* 430 */ 253, 74, 206, 15, 28, 315, 50, 61, 43, 65, /* 440 */ 16, 166, 211, 162, 222, 72, 166, 54, 266, 300, /* 450 */ 307, 101, 63, 66, 39, 62, 116, 226, 237, 239, /* 460 */ 252, 258, 244, 243, 261, 314, 251, 293, 293, 293, /* 470 */ 166, 293, 293, 167, 6, 37, 14, 166, 102, 281, /* 480 */ 46, 186, 188, 42, 153, 77, 173, 188, 319, 76, /* 490 */ 50, 61, 286, 65, 188, 285, 43, 168, 126, 72, /* 500 */ 166, 54, 266, 300, 307, 293, 7, 287, 137, 133, /* 510 */ 30, 65, 311, 316, 144, 279, 190, 72, 219, 316, /* 520 */ 82, 300, 307, 311, 180, 153, 19, 166, 6, 264, /* 530 */ 14, 301, 249, 71, 315, 186, 263, 42, 262, 77, /* 540 */ 179, 211, 312, 284, 50, 61, 29, 345, 14, 73, /* 550 */ 184, 45, 175, 186, 65, 54, 266, 74, 189, 17, /* 560 */ 72, 69, 50, 61, 300, 307, 190, 217, 277, 165, /* 570 */ 82, 80, 65, 54, 266, 25, 213, 123, 72, 235, /* 580 */ 220, 221, 300, 307, 315, 177, 40, 225, 198, 29, /* 590 */ 310, 211, 305, 26, 298, 250, 186, 259, 238, 214, /* 600 */ 74, 57, 105, 269, 37, 50, 61, 29, 254, 79, /* 610 */ 287, 282, 160, 260, 186, 41, 54, 266, 74, 4, /* 620 */ 48, 191, 70, 50, 61, 296, 20, 190, 49, 106, /* 630 */ 165, 82, 270, 296, 54, 266, 296, 296, 296, 296, /* 640 */ 255, 267, 296, 100, 296, 315, 296, 296, 296, 296, /* 650 */ 296, 296, 211, 296, 296, 190, 296, 60, 296, 82, /* 660 */ 169, 229, 92, 190, 296, 60, 296, 82, 208, 267, /* 670 */ 91, 100, 296, 315, 296, 296, 208, 267, 296, 100, /* 680 */ 211, 315, 296, 296, 296, 212, 296, 190, 211, 60, /* 690 */ 296, 82, 296, 212, 89, 190, 296, 60, 296, 82, /* 700 */ 208, 267, 93, 100, 296, 315, 296, 296, 208, 267, /* 710 */ 296, 100, 211, 315, 296, 296, 296, 212, 296, 296, /* 720 */ 211, 296, 190, 296, 60, 212, 82, 296, 296, 87, /* 730 */ 296, 296, 296, 296, 296, 208, 267, 296, 100, 296, /* 740 */ 315, 190, 296, 58, 296, 82, 296, 211, 84, 190, /* 750 */ 296, 60, 212, 82, 208, 267, 86, 100, 296, 315, /* 760 */ 296, 296, 208, 267, 296, 100, 211, 315, 190, 296, /* 770 */ 60, 212, 82, 296, 211, 85, 190, 296, 59, 212, /* 780 */ 82, 208, 267, 83, 100, 296, 315, 296, 296, 208, /* 790 */ 267, 296, 100, 211, 315, 296, 296, 296, 212, 296, /* 800 */ 296, 211, 296, 190, 296, 60, 212, 82, 296, 296, /* 810 */ 94, 296, 296, 296, 296, 296, 208, 267, 296, 100, /* 820 */ 296, 315, 190, 296, 60, 296, 82, 174, 211, 88, /* 830 */ 190, 296, 117, 212, 67, 208, 267, 296, 100, 296, /* 840 */ 315, 296, 296, 255, 267, 296, 100, 211, 315, 296, /* 850 */ 296, 296, 212, 296, 296, 211, 190, 296, 51, 78, /* 860 */ 82, 296, 190, 296, 128, 236, 82, 296, 296, 255, /* 870 */ 267, 296, 100, 296, 315, 163, 267, 296, 100, 296, /* 880 */ 315, 211, 190, 296, 106, 296, 82, 211, 190, 296, /* 890 */ 109, 296, 82, 296, 296, 255, 267, 296, 100, 296, /* 900 */ 315, 255, 267, 296, 100, 296, 315, 211, 296, 296, /* 910 */ 202, 296, 296, 211, 296, 190, 228, 109, 296, 82, /* 920 */ 296, 296, 296, 296, 296, 296, 296, 296, 255, 267, /* 930 */ 296, 100, 296, 315, 296, 296, 296, 299, 296, 190, /* 940 */ 211, 109, 296, 82, 296, 296, 296, 296, 296, 296, /* 950 */ 296, 296, 255, 267, 296, 100, 190, 315, 109, 296, /* 960 */ 82, 205, 296, 296, 211, 296, 296, 296, 296, 255, /* 970 */ 267, 190, 100, 124, 315, 82, 296, 296, 176, 296, /* 980 */ 296, 211, 296, 296, 255, 267, 296, 100, 190, 315, /* 990 */ 120, 296, 82, 296, 296, 296, 211, 296, 296, 296, /* 1000 */ 296, 255, 267, 296, 100, 296, 315, 296, 296, 296, /* 1010 */ 190, 296, 113, 211, 82, 296, 296, 296, 190, 296, /* 1020 */ 119, 296, 82, 255, 267, 296, 100, 296, 315, 296, /* 1030 */ 296, 255, 267, 296, 100, 211, 315, 190, 296, 103, /* 1040 */ 296, 82, 296, 211, 296, 190, 296, 108, 296, 82, /* 1050 */ 255, 267, 296, 100, 296, 315, 296, 296, 255, 267, /* 1060 */ 296, 100, 211, 315, 296, 190, 296, 139, 296, 82, /* 1070 */ 211, 190, 296, 134, 296, 82, 296, 296, 255, 267, /* 1080 */ 296, 100, 296, 315, 255, 267, 296, 100, 296, 315, /* 1090 */ 211, 190, 296, 136, 296, 82, 211, 296, 296, 190, /* 1100 */ 296, 135, 296, 82, 255, 267, 296, 100, 296, 315, /* 1110 */ 296, 296, 255, 267, 296, 100, 211, 315, 190, 296, /* 1120 */ 114, 296, 82, 296, 211, 296, 190, 296, 127, 296, /* 1130 */ 82, 255, 267, 296, 100, 296, 315, 296, 296, 255, /* 1140 */ 267, 296, 100, 211, 315, 296, 190, 296, 296, 296, /* 1150 */ 82, 211, 190, 296, 296, 296, 82, 296, 296, 255, /* 1160 */ 267, 296, 99, 296, 315, 255, 267, 296, 98, 296, /* 1170 */ 315, 211, 190, 296, 296, 296, 82, 211, 296, 296, /* 1180 */ 296, 296, 296, 296, 296, 255, 267, 296, 97, 296, /* 1190 */ 315, 296, 296, 296, 296, 296, 296, 211, ); static public $yy_lookahead = array( /* 0 */ 9, 44, 16, 15, 59, 48, 15, 19, 20, 46, /* 10 */ 19, 20, 67, 16, 57, 80, 15, 82, 1, 84, /* 20 */ 63, 30, 87, 88, 89, 68, 9, 64, 93, 94, /* 30 */ 15, 96, 15, 98, 86, 44, 49, 46, 15, 51, /* 40 */ 105, 44, 51, 55, 53, 110, 55, 50, 60, 63, /* 50 */ 63, 60, 61, 1, 57, 67, 1, 55, 67, 44, /* 60 */ 59, 9, 71, 72, 9, 68, 16, 15, 67, 67, /* 70 */ 15, 19, 20, 50, 31, 32, 33, 34, 35, 36, /* 80 */ 37, 38, 39, 40, 41, 42, 43, 47, 81, 1, /* 90 */ 67, 80, 85, 53, 54, 84, 44, 44, 46, 100, /* 100 */ 47, 58, 95, 51, 93, 53, 66, 55, 16, 98, /* 110 */ 57, 16, 60, 61, 115, 9, 105, 64, 68, 67, /* 120 */ 15, 15, 103, 71, 72, 19, 20, 108, 31, 32, /* 130 */ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, /* 140 */ 43, 1, 45, 55, 58, 53, 54, 52, 60, 16, /* 150 */ 44, 65, 46, 47, 86, 67, 15, 51, 66, 53, /* 160 */ 55, 55, 81, 68, 80, 60, 60, 61, 84, 9, /* 170 */ 80, 18, 67, 67, 84, 15, 95, 71, 72, 19, /* 180 */ 20, 77, 104, 79, 80, 101, 82, 83, 84, 105, /* 190 */ 30, 50, 46, 52, 48, 105, 63, 93, 94, 48, /* 200 */ 96, 80, 98, 44, 44, 84, 46, 67, 67, 105, /* 210 */ 64, 51, 55, 53, 63, 55, 57, 60, 15, 68, /* 220 */ 60, 61, 69, 9, 67, 103, 105, 67, 106, 15, /* 230 */ 108, 71, 72, 19, 20, 104, 31, 32, 33, 34, /* 240 */ 35, 36, 37, 38, 39, 40, 41, 42, 43, 1, /* 250 */ 45, 53, 54, 50, 74, 75, 76, 81, 44, 86, /* 260 */ 46, 85, 59, 15, 66, 51, 56, 53, 81, 55, /* 270 */ 67, 95, 85, 63, 60, 61, 63, 9, 65, 16, /* 280 */ 15, 67, 95, 15, 55, 71, 72, 19, 20, 60, /* 290 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, /* 300 */ 41, 42, 43, 55, 1, 2, 3, 4, 5, 61, /* 310 */ 62, 8, 44, 104, 46, 12, 13, 14, 15, 51, /* 320 */ 80, 53, 82, 55, 84, 47, 63, 104, 60, 61, /* 330 */ 107, 9, 67, 93, 94, 67, 96, 15, 98, 71, /* 340 */ 72, 19, 20, 65, 48, 105, 17, 91, 86, 55, /* 350 */ 21, 22, 23, 24, 25, 26, 27, 28, 29, 63, /* 360 */ 45, 67, 15, 107, 68, 81, 44, 81, 46, 85, /* 370 */ 81, 85, 80, 51, 45, 53, 84, 55, 63, 95, /* 380 */ 45, 95, 60, 61, 95, 9, 50, 81, 81, 67, /* 390 */ 95, 15, 63, 71, 72, 19, 20, 105, 109, 80, /* 400 */ 17, 95, 95, 84, 21, 22, 23, 24, 25, 26, /* 410 */ 27, 28, 29, 44, 67, 109, 109, 80, 49, 1, /* 420 */ 44, 84, 46, 16, 105, 77, 57, 51, 45, 53, /* 430 */ 93, 55, 84, 15, 56, 98, 60, 61, 48, 9, /* 440 */ 50, 63, 105, 67, 60, 15, 63, 71, 72, 19, /* 450 */ 20, 91, 91, 91, 17, 91, 91, 45, 21, 22, /* 460 */ 23, 24, 25, 26, 27, 28, 29, 107, 107, 107, /* 470 */ 63, 107, 107, 55, 44, 56, 46, 63, 99, 61, /* 480 */ 62, 51, 68, 53, 85, 55, 1, 68, 67, 91, /* 490 */ 60, 61, 92, 9, 68, 116, 48, 67, 81, 15, /* 500 */ 63, 71, 72, 19, 20, 107, 90, 107, 103, 81, /* 510 */ 111, 9, 95, 108, 103, 68, 80, 15, 108, 108, /* 520 */ 84, 19, 20, 95, 90, 85, 44, 63, 44, 93, /* 530 */ 46, 62, 5, 55, 98, 51, 16, 53, 16, 55, /* 540 */ 1, 105, 67, 62, 60, 61, 44, 16, 46, 55, /* 550 */ 18, 67, 64, 51, 9, 71, 72, 55, 67, 50, /* 560 */ 15, 55, 60, 61, 19, 20, 80, 52, 67, 67, /* 570 */ 84, 45, 9, 71, 72, 70, 60, 67, 15, 93, /* 580 */ 94, 67, 19, 20, 98, 56, 69, 47, 67, 44, /* 590 */ 16, 105, 51, 70, 16, 67, 51, 16, 5, 106, /* 600 */ 55, 67, 104, 116, 56, 60, 61, 44, 109, 101, /* 610 */ 107, 115, 67, 76, 51, 97, 71, 72, 55, 112, /* 620 */ 67, 78, 55, 60, 61, 117, 44, 80, 104, 82, /* 630 */ 67, 84, 88, 117, 71, 72, 117, 117, 117, 117, /* 640 */ 93, 94, 117, 96, 117, 98, 117, 117, 117, 117, /* 650 */ 117, 117, 105, 117, 117, 80, 117, 82, 117, 84, /* 660 */ 113, 114, 87, 80, 117, 82, 117, 84, 93, 94, /* 670 */ 87, 96, 117, 98, 117, 117, 93, 94, 117, 96, /* 680 */ 105, 98, 117, 117, 117, 110, 117, 80, 105, 82, /* 690 */ 117, 84, 117, 110, 87, 80, 117, 82, 117, 84, /* 700 */ 93, 94, 87, 96, 117, 98, 117, 117, 93, 94, /* 710 */ 117, 96, 105, 98, 117, 117, 117, 110, 117, 117, /* 720 */ 105, 117, 80, 117, 82, 110, 84, 117, 117, 87, /* 730 */ 117, 117, 117, 117, 117, 93, 94, 117, 96, 117, /* 740 */ 98, 80, 117, 82, 117, 84, 117, 105, 87, 80, /* 750 */ 117, 82, 110, 84, 93, 94, 87, 96, 117, 98, /* 760 */ 117, 117, 93, 94, 117, 96, 105, 98, 80, 117, /* 770 */ 82, 110, 84, 117, 105, 87, 80, 117, 82, 110, /* 780 */ 84, 93, 94, 87, 96, 117, 98, 117, 117, 93, /* 790 */ 94, 117, 96, 105, 98, 117, 117, 117, 110, 117, /* 800 */ 117, 105, 117, 80, 117, 82, 110, 84, 117, 117, /* 810 */ 87, 117, 117, 117, 117, 117, 93, 94, 117, 96, /* 820 */ 117, 98, 80, 117, 82, 117, 84, 77, 105, 87, /* 830 */ 80, 117, 82, 110, 84, 93, 94, 117, 96, 117, /* 840 */ 98, 117, 117, 93, 94, 117, 96, 105, 98, 117, /* 850 */ 117, 117, 110, 117, 117, 105, 80, 117, 82, 83, /* 860 */ 84, 117, 80, 117, 82, 83, 84, 117, 117, 93, /* 870 */ 94, 117, 96, 117, 98, 93, 94, 117, 96, 117, /* 880 */ 98, 105, 80, 117, 82, 117, 84, 105, 80, 117, /* 890 */ 82, 117, 84, 117, 117, 93, 94, 117, 96, 117, /* 900 */ 98, 93, 94, 117, 96, 117, 98, 105, 117, 117, /* 910 */ 102, 117, 117, 105, 117, 80, 114, 82, 117, 84, /* 920 */ 117, 117, 117, 117, 117, 117, 117, 117, 93, 94, /* 930 */ 117, 96, 117, 98, 117, 117, 117, 102, 117, 80, /* 940 */ 105, 82, 117, 84, 117, 117, 117, 117, 117, 117, /* 950 */ 117, 117, 93, 94, 117, 96, 80, 98, 82, 117, /* 960 */ 84, 102, 117, 117, 105, 117, 117, 117, 117, 93, /* 970 */ 94, 80, 96, 82, 98, 84, 117, 117, 102, 117, /* 980 */ 117, 105, 117, 117, 93, 94, 117, 96, 80, 98, /* 990 */ 82, 117, 84, 117, 117, 117, 105, 117, 117, 117, /* 1000 */ 117, 93, 94, 117, 96, 117, 98, 117, 117, 117, /* 1010 */ 80, 117, 82, 105, 84, 117, 117, 117, 80, 117, /* 1020 */ 82, 117, 84, 93, 94, 117, 96, 117, 98, 117, /* 1030 */ 117, 93, 94, 117, 96, 105, 98, 80, 117, 82, /* 1040 */ 117, 84, 117, 105, 117, 80, 117, 82, 117, 84, /* 1050 */ 93, 94, 117, 96, 117, 98, 117, 117, 93, 94, /* 1060 */ 117, 96, 105, 98, 117, 80, 117, 82, 117, 84, /* 1070 */ 105, 80, 117, 82, 117, 84, 117, 117, 93, 94, /* 1080 */ 117, 96, 117, 98, 93, 94, 117, 96, 117, 98, /* 1090 */ 105, 80, 117, 82, 117, 84, 105, 117, 117, 80, /* 1100 */ 117, 82, 117, 84, 93, 94, 117, 96, 117, 98, /* 1110 */ 117, 117, 93, 94, 117, 96, 105, 98, 80, 117, /* 1120 */ 82, 117, 84, 117, 105, 117, 80, 117, 82, 117, /* 1130 */ 84, 93, 94, 117, 96, 117, 98, 117, 117, 93, /* 1140 */ 94, 117, 96, 105, 98, 117, 80, 117, 117, 117, /* 1150 */ 84, 105, 80, 117, 117, 117, 84, 117, 117, 93, /* 1160 */ 94, 117, 96, 117, 98, 93, 94, 117, 96, 117, /* 1170 */ 98, 105, 80, 117, 117, 117, 84, 105, 117, 117, /* 1180 */ 117, 117, 117, 117, 117, 93, 94, 117, 96, 117, /* 1190 */ 98, 117, 117, 117, 117, 117, 117, 105, ); const YY_SHIFT_USE_DFLT = -56; const YY_SHIFT_MAX = 210; static public $yy_shift_ofst = array( /* 0 */ 303, 160, 484, -9, -9, -9, -9, -9, -9, -9, /* 10 */ -9, -9, -9, -9, 322, 52, 430, 430, 322, 214, /* 20 */ 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, /* 30 */ 214, 214, 214, 214, 214, 214, 106, 376, 268, 502, /* 40 */ 545, 563, 563, 105, -12, -43, 88, 296, 151, 146, /* 50 */ 157, 414, 414, 419, 229, 419, 419, 414, 329, 383, /* 60 */ 437, 248, 141, 203, 95, 55, 1, 390, 347, 265, /* 70 */ 265, 265, 294, 265, 265, 265, 265, 347, 426, 448, /* 80 */ 448, 426, 448, 97, 205, 43, 259, 259, 259, 259, /* 90 */ 259, 259, 259, 259, 259, 303, 418, 40, 92, 198, /* 100 */ 198, 23, 17, -14, 15, -37, -13, -37, 133, 213, /* 110 */ -37, -37, -37, 378, 407, 265, 265, 263, 2, 315, /* 120 */ 210, 548, 426, 582, 464, 567, 426, 464, 464, 426, /* 130 */ 426, 426, 553, 426, 464, 464, 464, 448, 426, 464, /* 140 */ 447, 447, 426, 448, 448, 426, 448, 464, 426, 426, /* 150 */ -56, -56, -56, -56, -56, -56, -56, -3, 53, 369, /* 160 */ 159, 153, 159, 50, 86, 159, -55, 140, 159, 278, /* 170 */ 510, 529, 574, 593, 578, 541, 526, 475, 539, 527, /* 180 */ 478, 481, 494, 501, 506, 532, 488, 521, 491, 509, /* 190 */ 515, 520, 522, 528, 581, 514, 516, 469, 540, 482, /* 200 */ 421, 384, 335, 485, 505, 412, 336, 534, 517, 523, /* 210 */ 531, ); const YY_REDUCE_USE_DFLT = -66; const YY_REDUCE_MAX = 156; static public $yy_reduce_ofst = array( /* 0 */ 180, -65, 104, 583, 742, 723, 696, 688, 642, 661, /* 10 */ 669, 607, 575, 615, 547, 750, 776, 782, 802, 808, /* 20 */ 876, 859, 835, 965, 957, 908, 930, 1038, 240, 938, /* 30 */ 891, 1046, 1019, 1011, 985, 991, 1092, 1066, 1072, 486, /* 40 */ 337, 11, 436, 84, 90, 176, 121, 176, 7, 122, /* 50 */ 319, 284, 286, 307, 292, 289, 306, 187, 399, 399, /* 60 */ 399, -1, 400, 223, 81, 379, 223, 19, 361, 256, /* 70 */ 360, 364, 348, 365, 362, 398, 223, 362, 417, 405, /* 80 */ 411, 428, 19, 507, 507, 507, 507, 507, 507, 507, /* 90 */ 507, 507, 507, 507, 507, 537, 496, 518, 518, 518, /* 100 */ 518, 503, 487, 440, 498, 493, 440, 493, 440, 440, /* 110 */ 493, 493, 493, 440, 440, 503, 503, 440, 508, 440, /* 120 */ 440, 499, 295, 524, 440, 544, 295, 440, 440, 295, /* 130 */ 295, 295, 543, 295, 440, 440, 440, 410, 295, 440, /* 140 */ 416, 434, 295, 410, 410, 295, 410, 440, 295, 295, /* 150 */ 131, 68, 209, -52, 78, 173, 262, ); static public $yyExpectedTokens = array( /* 0 */ array(1, 2, 3, 4, 5, 8, 12, 13, 14, 15, ), /* 1 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 2 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 3 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 4 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 5 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 6 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 7 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 8 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 9 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 10 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 11 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 12 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 13 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 14 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 15 */ array(1, 9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 16 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 17 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 18 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 19 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 20 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 21 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 22 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 23 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 24 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 25 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 26 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 27 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 28 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 29 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 30 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 31 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 32 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 33 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 34 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 35 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 36 */ array(9, 15, 19, 20, 44, 46, 47, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 37 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 38 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 39 */ array(9, 15, 19, 20, 44, 46, 51, 55, 60, 61, 67, 71, 72, ), /* 40 */ array(9, 15, 19, 20, 44, 51, 55, 60, 61, 67, 71, 72, ), /* 41 */ array(9, 15, 19, 20, 44, 51, 55, 60, 61, 67, 71, 72, ), /* 42 */ array(9, 15, 19, 20, 44, 51, 55, 60, 61, 67, 71, 72, ), /* 43 */ array(15, 55, 60, 67, ), /* 44 */ array(15, 19, 20, 51, 55, 60, 67, ), /* 45 */ array(44, 48, 57, 63, 68, ), /* 46 */ array(1, 55, 60, 67, ), /* 47 */ array(48, 63, 68, ), /* 48 */ array(48, 63, 68, ), /* 49 */ array(46, 48, 64, ), /* 50 */ array(55, 60, 67, ), /* 51 */ array(63, 68, ), /* 52 */ array(63, 68, ), /* 53 */ array(56, 68, ), /* 54 */ array(55, 60, ), /* 55 */ array(56, 68, ), /* 56 */ array(56, 68, ), /* 57 */ array(63, 68, ), /* 58 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ), /* 59 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ), /* 60 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 63, ), /* 61 */ array(1, 15, 55, 61, 62, ), /* 62 */ array(15, 50, 52, 67, ), /* 63 */ array(15, 50, 59, 67, ), /* 64 */ array(16, 52, 68, ), /* 65 */ array(1, 9, 15, ), /* 66 */ array(15, 59, 67, ), /* 67 */ array(48, 50, ), /* 68 */ array(15, 67, ), /* 69 */ array(15, 67, ), /* 70 */ array(15, 67, ), /* 71 */ array(15, 67, ), /* 72 */ array(55, 67, ), /* 73 */ array(15, 67, ), /* 74 */ array(15, 67, ), /* 75 */ array(15, 67, ), /* 76 */ array(15, 67, ), /* 77 */ array(15, 67, ), /* 78 */ array(68, ), /* 79 */ array(48, ), /* 80 */ array(48, ), /* 81 */ array(68, ), /* 82 */ array(48, ), /* 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, 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(53, 54, 66, ), /* 101 */ array(15, 50, 67, ), /* 102 */ array(1, 9, 15, ), /* 103 */ array(16, 63, ), /* 104 */ array(15, 44, ), /* 105 */ array(46, 64, ), /* 106 */ array(49, 63, ), /* 107 */ array(46, 64, ), /* 108 */ array(16, 63, ), /* 109 */ array(63, 65, ), /* 110 */ array(46, 64, ), /* 111 */ array(46, 64, ), /* 112 */ array(46, 64, ), /* 113 */ array(56, 63, ), /* 114 */ array(16, 63, ), /* 115 */ array(15, 67, ), /* 116 */ array(15, 67, ), /* 117 */ array(16, 63, ), /* 118 */ array(55, 67, ), /* 119 */ array(45, 63, ), /* 120 */ array(56, 63, ), /* 121 */ array(56, ), /* 122 */ array(68, ), /* 123 */ array(44, ), /* 124 */ array(63, ), /* 125 */ array(55, ), /* 126 */ array(68, ), /* 127 */ array(63, ), /* 128 */ array(63, ), /* 129 */ array(68, ), /* 130 */ array(68, ), /* 131 */ array(68, ), /* 132 */ array(67, ), /* 133 */ array(68, ), /* 134 */ array(63, ), /* 135 */ array(63, ), /* 136 */ array(63, ), /* 137 */ array(48, ), /* 138 */ array(68, ), /* 139 */ array(63, ), /* 140 */ array(68, ), /* 141 */ array(68, ), /* 142 */ array(68, ), /* 143 */ array(48, ), /* 144 */ array(48, ), /* 145 */ array(68, ), /* 146 */ array(48, ), /* 147 */ array(63, ), /* 148 */ array(68, ), /* 149 */ array(68, ), /* 150 */ array(), /* 151 */ array(), /* 152 */ array(), /* 153 */ array(), /* 154 */ array(), /* 155 */ array(), /* 156 */ array(), /* 157 */ array(16, 44, 50, 57, 68, ), /* 158 */ array(44, 47, 57, 64, ), /* 159 */ array(44, 49, 57, ), /* 160 */ array(44, 57, ), /* 161 */ array(18, 69, ), /* 162 */ array(44, 57, ), /* 163 */ array(16, 68, ), /* 164 */ array(58, 65, ), /* 165 */ array(44, 57, ), /* 166 */ array(59, 67, ), /* 167 */ array(1, 67, ), /* 168 */ array(44, 57, ), /* 169 */ array(47, 65, ), /* 170 */ array(67, ), /* 171 */ array(56, ), /* 172 */ array(16, ), /* 173 */ array(5, ), /* 174 */ array(16, ), /* 175 */ array(51, ), /* 176 */ array(45, ), /* 177 */ array(67, ), /* 178 */ array(1, ), /* 179 */ array(5, ), /* 180 */ array(55, ), /* 181 */ array(62, ), /* 182 */ array(55, ), /* 183 */ array(67, ), /* 184 */ array(55, ), /* 185 */ array(18, ), /* 186 */ array(64, ), /* 187 */ array(67, ), /* 188 */ array(67, ), /* 189 */ array(50, ), /* 190 */ array(52, ), /* 191 */ array(16, ), /* 192 */ array(16, ), /* 193 */ array(67, ), /* 194 */ array(16, ), /* 195 */ array(67, ), /* 196 */ array(60, ), /* 197 */ array(62, ), /* 198 */ array(47, ), /* 199 */ array(44, ), /* 200 */ array(67, ), /* 201 */ array(60, ), /* 202 */ array(45, ), /* 203 */ array(1, ), /* 204 */ array(70, ), /* 205 */ array(45, ), /* 206 */ array(50, ), /* 207 */ array(67, ), /* 208 */ array(69, ), /* 209 */ array(70, ), /* 210 */ array(16, ), /* 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(), /* 313 */ array(), /* 314 */ array(), /* 315 */ array(), /* 316 */ array(), /* 317 */ array(), /* 318 */ array(), /* 319 */ array(), ); static public $yy_default = array( /* 0 */ 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, /* 10 */ 497, 497, 497, 497, 476, 497, 497, 497, 497, 434, /* 20 */ 434, 434, 434, 497, 497, 497, 497, 497, 497, 497, /* 30 */ 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, /* 40 */ 497, 497, 497, 497, 497, 340, 497, 340, 356, 396, /* 50 */ 497, 356, 356, 356, 497, 356, 356, 356, 444, 444, /* 60 */ 444, 497, 497, 406, 377, 497, 406, 399, 497, 497, /* 70 */ 497, 497, 497, 497, 497, 497, 406, 497, 356, 391, /* 80 */ 392, 356, 399, 497, 497, 497, 457, 458, 448, 454, /* 90 */ 344, 449, 442, 453, 450, 320, 497, 497, 497, 439, /* 100 */ 365, 497, 497, 497, 406, 425, 479, 404, 497, 433, /* 110 */ 426, 427, 428, 497, 497, 350, 349, 497, 497, 497, /* 120 */ 497, 367, 335, 406, 445, 497, 338, 363, 357, 334, /* 130 */ 351, 352, 497, 336, 347, 477, 478, 393, 341, 372, /* 140 */ 492, 492, 339, 422, 394, 343, 397, 373, 337, 342, /* 150 */ 406, 438, 406, 438, 406, 438, 438, 364, 497, 364, /* 160 */ 459, 368, 440, 368, 497, 497, 497, 497, 364, 497, /* 170 */ 497, 420, 497, 497, 497, 497, 497, 497, 497, 497, /* 180 */ 497, 497, 497, 497, 497, 371, 380, 497, 497, 360, /* 190 */ 377, 497, 497, 497, 497, 497, 497, 497, 497, 395, /* 200 */ 410, 497, 497, 497, 497, 497, 497, 497, 368, 385, /* 210 */ 361, 401, 441, 402, 405, 385, 429, 379, 378, 424, /* 220 */ 446, 400, 403, 417, 473, 415, 430, 451, 475, 474, /* 230 */ 408, 407, 413, 409, 431, 447, 359, 467, 329, 468, /* 240 */ 328, 326, 327, 466, 465, 333, 321, 332, 331, 330, /* 250 */ 353, 469, 461, 460, 437, 368, 414, 354, 462, 323, /* 260 */ 322, 463, 325, 324, 369, 412, 386, 371, 387, 493, /* 270 */ 362, 436, 472, 484, 487, 470, 471, 435, 495, 491, /* 280 */ 443, 389, 480, 489, 482, 494, 346, 419, 420, 348, /* 290 */ 496, 388, 421, 418, 390, 481, 490, 488, 486, 432, /* 300 */ 382, 483, 416, 370, 452, 381, 485, 383, 456, 376, /* 310 */ 398, 355, 366, 375, 464, 384, 423, 455, 374, 411, ); /* 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 = 118; const YYSTACKDEPTH = 100; const YYNSTATE = 320; const YYNRULE = 177; const YYERRORSYMBOL = 73; 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 */ 0, /* SINGLEQUOTESTRING => nothing */ ); /** * 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', 'SINGLEQUOTESTRING', 'error', 'start', 'template', 'template_element', 'smartytag', 'smartyclosetag', 'outputtag', 'variable', 'attributes', 'expr', 'ternary', 'varindexed', 'modifier', 'modparameters', 'ifexprs', 'statement', 'statements', 'optspace', 'varvar', 'foraction', 'value', 'array', 'attribute', 'exprs', 'math', 'function', 'text', '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 ::= LDELIMTAG", /* 8 */ "template_element ::= RDELIMTAG", /* 9 */ "template_element ::= PHP OTHER SHORTTAGEND", /* 10 */ "template_element ::= SHORTTAGSTART OTHER SHORTTAGEND", /* 11 */ "template_element ::= XML", /* 12 */ "template_element ::= SHORTTAGEND", /* 13 */ "template_element ::= OTHER", /* 14 */ "outputtag ::= variable attributes", /* 15 */ "outputtag ::= expr attributes", /* 16 */ "outputtag ::= ternary attributes", /* 17 */ "smartytag ::= varindexed EQUAL expr attributes", /* 18 */ "smartytag ::= varindexed EQUAL ternary attributes", /* 19 */ "smartytag ::= ID attributes", /* 20 */ "smartytag ::= ID", /* 21 */ "smartytag ::= ID PTR ID attributes", /* 22 */ "smartytag ::= ID modifier modparameters attributes", /* 23 */ "smartytag ::= ID PTR ID modifier modparameters attributes", /* 24 */ "smartytag ::= ID SPACE ifexprs", /* 25 */ "smartytag ::= ID SPACE statement", /* 26 */ "smartytag ::= ID SPACE statements SEMICOLON optspace ifexprs SEMICOLON optspace 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 ::= SINGLEQUOTESTRING", /* 67 */ "value ::= SINGLEQUOTE text SINGLEQUOTE", /* 68 */ "value ::= SINGLEQUOTE SINGLEQUOTE", /* 69 */ "value ::= QUOTE doublequoted QUOTE", /* 70 */ "value ::= QUOTE QUOTE", /* 71 */ "value ::= ID DOUBLECOLON method", /* 72 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP", /* 73 */ "value ::= ID DOUBLECOLON method objectchain", /* 74 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain", /* 75 */ "value ::= ID DOUBLECOLON ID", /* 76 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex", /* 77 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain", /* 78 */ "value ::= LDEL smartytag RDEL", /* 79 */ "variable ::= varindexed", /* 80 */ "variable ::= DOLLAR varvar AT ID", /* 81 */ "variable ::= object", /* 82 */ "variable ::= HATCH ID HATCH", /* 83 */ "variable ::= HATCH variable HATCH", /* 84 */ "varindexed ::= DOLLAR varvar arrayindex", /* 85 */ "arrayindex ::= arrayindex indexdef", /* 86 */ "arrayindex ::=", /* 87 */ "indexdef ::= DOT ID", /* 88 */ "indexdef ::= DOT BOOLEAN", /* 89 */ "indexdef ::= DOT NULL", /* 90 */ "indexdef ::= DOT INTEGER", /* 91 */ "indexdef ::= DOT INTEGER ID", /* 92 */ "indexdef ::= DOT variable", /* 93 */ "indexdef ::= DOT LDEL exprs RDEL", /* 94 */ "indexdef ::= OPENB ID CLOSEB", /* 95 */ "indexdef ::= OPENB ID DOT ID CLOSEB", /* 96 */ "indexdef ::= OPENB exprs CLOSEB", /* 97 */ "indexdef ::= OPENB CLOSEB", /* 98 */ "varvar ::= varvarele", /* 99 */ "varvar ::= varvar varvarele", /* 100 */ "varvarele ::= ID", /* 101 */ "varvarele ::= LDEL expr RDEL", /* 102 */ "object ::= varindexed objectchain", /* 103 */ "objectchain ::= objectelement", /* 104 */ "objectchain ::= objectchain objectelement", /* 105 */ "objectelement ::= PTR ID arrayindex", /* 106 */ "objectelement ::= PTR variable arrayindex", /* 107 */ "objectelement ::= PTR LDEL expr RDEL arrayindex", /* 108 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex", /* 109 */ "objectelement ::= PTR method", /* 110 */ "function ::= ID OPENP params CLOSEP", /* 111 */ "method ::= ID OPENP params CLOSEP", /* 112 */ "params ::= expr COMMA params", /* 113 */ "params ::= expr", /* 114 */ "params ::=", /* 115 */ "modifier ::= VERT AT ID", /* 116 */ "modifier ::= VERT ID", /* 117 */ "modparameters ::= modparameters modparameter", /* 118 */ "modparameters ::=", /* 119 */ "modparameter ::= COLON exprs", /* 120 */ "modparameter ::= COLON ID", /* 121 */ "ifexprs ::= ifexpr", /* 122 */ "ifexprs ::= NOT ifexprs", /* 123 */ "ifexprs ::= OPENP ifexprs CLOSEP", /* 124 */ "ifexpr ::= expr", /* 125 */ "ifexpr ::= expr ifcond expr", /* 126 */ "ifexpr ::= expr ISIN array", /* 127 */ "ifexpr ::= expr ISIN value", /* 128 */ "ifexpr ::= ifexprs lop ifexprs", /* 129 */ "ifexpr ::= ifexprs ISDIVBY ifexprs", /* 130 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs", /* 131 */ "ifexpr ::= ifexprs ISEVEN", /* 132 */ "ifexpr ::= ifexprs ISNOTEVEN", /* 133 */ "ifexpr ::= ifexprs ISEVENBY ifexprs", /* 134 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs", /* 135 */ "ifexpr ::= ifexprs ISODD", /* 136 */ "ifexpr ::= ifexprs ISNOTODD", /* 137 */ "ifexpr ::= ifexprs ISODDBY ifexprs", /* 138 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs", /* 139 */ "ifexpr ::= value INSTANCEOF ID", /* 140 */ "ifexpr ::= value INSTANCEOF value", /* 141 */ "ifcond ::= EQUALS", /* 142 */ "ifcond ::= NOTEQUALS", /* 143 */ "ifcond ::= GREATERTHAN", /* 144 */ "ifcond ::= LESSTHAN", /* 145 */ "ifcond ::= GREATEREQUAL", /* 146 */ "ifcond ::= LESSEQUAL", /* 147 */ "ifcond ::= IDENTITY", /* 148 */ "ifcond ::= NONEIDENTITY", /* 149 */ "ifcond ::= MOD", /* 150 */ "lop ::= LAND", /* 151 */ "lop ::= LOR", /* 152 */ "lop ::= LXOR", /* 153 */ "array ::= OPENB arrayelements CLOSEB", /* 154 */ "arrayelements ::= arrayelement", /* 155 */ "arrayelements ::= arrayelements COMMA arrayelement", /* 156 */ "arrayelements ::=", /* 157 */ "arrayelement ::= expr APTR expr", /* 158 */ "arrayelement ::= ID APTR expr", /* 159 */ "arrayelement ::= expr", /* 160 */ "doublequoted ::= doublequoted doublequotedcontent", /* 161 */ "doublequoted ::= doublequotedcontent", /* 162 */ "doublequotedcontent ::= BACKTICK ID BACKTICK", /* 163 */ "doublequotedcontent ::= BACKTICK variable BACKTICK", /* 164 */ "doublequotedcontent ::= DOLLAR ID", /* 165 */ "doublequotedcontent ::= LDEL expr RDEL", /* 166 */ "doublequotedcontent ::= LDEL smartytag RDEL", /* 167 */ "doublequotedcontent ::= DOLLAR OTHER", /* 168 */ "doublequotedcontent ::= LDEL OTHER", /* 169 */ "doublequotedcontent ::= BACKTICK OTHER", /* 170 */ "doublequotedcontent ::= OTHER", /* 171 */ "optspace ::= SPACE", /* 172 */ "optspace ::=", /* 173 */ "text ::= text textelement", /* 174 */ "text ::= textelement", /* 175 */ "textelement ::= OTHER", /* 176 */ "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' => 74, 'rhs' => 1 ), array( 'lhs' => 75, 'rhs' => 1 ), array( 'lhs' => 75, 'rhs' => 2 ), array( 'lhs' => 76, 'rhs' => 3 ), array( 'lhs' => 76, 'rhs' => 3 ), array( 'lhs' => 76, 'rhs' => 3 ), array( 'lhs' => 76, 'rhs' => 1 ), array( 'lhs' => 76, 'rhs' => 1 ), array( 'lhs' => 76, 'rhs' => 1 ), array( 'lhs' => 76, 'rhs' => 3 ), array( 'lhs' => 76, 'rhs' => 3 ), array( 'lhs' => 76, 'rhs' => 1 ), array( 'lhs' => 76, 'rhs' => 1 ), array( 'lhs' => 76, 'rhs' => 1 ), array( 'lhs' => 79, 'rhs' => 2 ), array( 'lhs' => 79, 'rhs' => 2 ), array( 'lhs' => 79, 'rhs' => 2 ), array( 'lhs' => 77, 'rhs' => 4 ), array( 'lhs' => 77, 'rhs' => 4 ), array( 'lhs' => 77, 'rhs' => 2 ), array( 'lhs' => 77, 'rhs' => 1 ), array( 'lhs' => 77, 'rhs' => 4 ), array( 'lhs' => 77, 'rhs' => 4 ), array( 'lhs' => 77, 'rhs' => 6 ), array( 'lhs' => 77, 'rhs' => 3 ), array( 'lhs' => 77, 'rhs' => 3 ), array( 'lhs' => 77, 'rhs' => 11 ), array( 'lhs' => 92, 'rhs' => 2 ), array( 'lhs' => 92, 'rhs' => 1 ), array( 'lhs' => 77, 'rhs' => 6 ), array( 'lhs' => 77, 'rhs' => 6 ), array( 'lhs' => 78, 'rhs' => 2 ), array( 'lhs' => 78, 'rhs' => 4 ), array( 'lhs' => 78, 'rhs' => 3 ), array( 'lhs' => 81, 'rhs' => 2 ), array( 'lhs' => 81, 'rhs' => 1 ), array( 'lhs' => 81, 'rhs' => 0 ), array( 'lhs' => 95, 'rhs' => 4 ), array( 'lhs' => 95, 'rhs' => 4 ), array( 'lhs' => 95, 'rhs' => 4 ), array( 'lhs' => 95, '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' => 96, 'rhs' => 1 ), array( 'lhs' => 96, 'rhs' => 2 ), array( 'lhs' => 96, 'rhs' => 3 ), array( 'lhs' => 96, 'rhs' => 1 ), array( 'lhs' => 83, 'rhs' => 7 ), array( 'lhs' => 83, 'rhs' => 7 ), array( 'lhs' => 97, 'rhs' => 1 ), array( 'lhs' => 97, 'rhs' => 1 ), array( 'lhs' => 97, 'rhs' => 1 ), array( 'lhs' => 93, 'rhs' => 1 ), array( 'lhs' => 93, 'rhs' => 2 ), array( 'lhs' => 93, 'rhs' => 2 ), array( 'lhs' => 93, 'rhs' => 1 ), array( 'lhs' => 93, 'rhs' => 3 ), array( 'lhs' => 93, 'rhs' => 1 ), array( 'lhs' => 93, 'rhs' => 1 ), array( 'lhs' => 93, 'rhs' => 1 ), array( 'lhs' => 93, 'rhs' => 3 ), array( 'lhs' => 93, 'rhs' => 1 ), array( 'lhs' => 93, 'rhs' => 3 ), array( 'lhs' => 93, 'rhs' => 2 ), array( 'lhs' => 93, 'rhs' => 3 ), array( 'lhs' => 93, 'rhs' => 2 ), array( 'lhs' => 93, 'rhs' => 3 ), array( 'lhs' => 93, 'rhs' => 7 ), array( 'lhs' => 93, 'rhs' => 4 ), array( 'lhs' => 93, 'rhs' => 8 ), array( 'lhs' => 93, 'rhs' => 3 ), array( 'lhs' => 93, 'rhs' => 5 ), array( 'lhs' => 93, 'rhs' => 6 ), array( 'lhs' => 93, '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' => 104, 'rhs' => 2 ), array( 'lhs' => 104, 'rhs' => 0 ), array( 'lhs' => 106, 'rhs' => 2 ), array( 'lhs' => 106, 'rhs' => 2 ), array( 'lhs' => 106, 'rhs' => 2 ), array( 'lhs' => 106, 'rhs' => 2 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 2 ), array( 'lhs' => 106, 'rhs' => 4 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 5 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 2 ), array( 'lhs' => 91, 'rhs' => 1 ), array( 'lhs' => 91, 'rhs' => 2 ), array( 'lhs' => 107, 'rhs' => 1 ), array( 'lhs' => 107, 'rhs' => 3 ), array( 'lhs' => 105, 'rhs' => 2 ), array( 'lhs' => 103, 'rhs' => 1 ), array( 'lhs' => 103, 'rhs' => 2 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 5 ), array( 'lhs' => 108, 'rhs' => 6 ), array( 'lhs' => 108, 'rhs' => 2 ), array( 'lhs' => 98, 'rhs' => 4 ), array( 'lhs' => 101, 'rhs' => 4 ), array( 'lhs' => 102, 'rhs' => 3 ), array( 'lhs' => 102, 'rhs' => 1 ), array( 'lhs' => 102, 'rhs' => 0 ), array( 'lhs' => 85, 'rhs' => 3 ), array( 'lhs' => 85, 'rhs' => 2 ), array( 'lhs' => 86, 'rhs' => 2 ), array( 'lhs' => 86, 'rhs' => 0 ), array( 'lhs' => 109, 'rhs' => 2 ), array( 'lhs' => 109, 'rhs' => 2 ), array( 'lhs' => 87, 'rhs' => 1 ), array( 'lhs' => 87, 'rhs' => 2 ), array( 'lhs' => 87, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 2 ), array( 'lhs' => 110, 'rhs' => 2 ), array( 'lhs' => 110, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 2 ), array( 'lhs' => 110, 'rhs' => 2 ), array( 'lhs' => 110, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 3 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 112, 'rhs' => 1 ), array( 'lhs' => 112, 'rhs' => 1 ), array( 'lhs' => 112, 'rhs' => 1 ), array( 'lhs' => 94, 'rhs' => 3 ), array( 'lhs' => 113, 'rhs' => 1 ), array( 'lhs' => 113, 'rhs' => 3 ), array( 'lhs' => 113, 'rhs' => 0 ), array( 'lhs' => 114, 'rhs' => 3 ), array( 'lhs' => 114, 'rhs' => 3 ), array( 'lhs' => 114, 'rhs' => 1 ), array( 'lhs' => 100, 'rhs' => 2 ), array( 'lhs' => 100, 'rhs' => 1 ), array( 'lhs' => 115, 'rhs' => 3 ), array( 'lhs' => 115, 'rhs' => 3 ), array( 'lhs' => 115, 'rhs' => 2 ), array( 'lhs' => 115, 'rhs' => 3 ), array( 'lhs' => 115, 'rhs' => 3 ), array( 'lhs' => 115, 'rhs' => 2 ), array( 'lhs' => 115, 'rhs' => 2 ), array( 'lhs' => 115, 'rhs' => 2 ), array( 'lhs' => 115, 'rhs' => 1 ), array( 'lhs' => 90, 'rhs' => 1 ), array( 'lhs' => 90, 'rhs' => 0 ), array( 'lhs' => 99, 'rhs' => 2 ), array( 'lhs' => 99, 'rhs' => 1 ), array( 'lhs' => 116, 'rhs' => 1 ), array( 'lhs' => 116, '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, 66 => 0, 81 => 0, 154 => 0, 1 => 1, 45 => 1, 51 => 1, 54 => 1, 55 => 1, 98 => 1, 121 => 1, 161 => 1, 170 => 1, 171 => 1, 174 => 1, 175 => 1, 176 => 1, 2 => 2, 117 => 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 => 14, 16 => 14, 17 => 17, 18 => 17, 19 => 19, 20 => 20, 21 => 21, 22 => 22, 23 => 23, 24 => 24, 25 => 25, 26 => 26, 27 => 27, 28 => 28, 35 => 28, 113 => 28, 159 => 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, 67 => 67, 68 => 68, 70 => 68, 69 => 69, 71 => 71, 72 => 72, 73 => 73, 74 => 74, 75 => 75, 76 => 76, 77 => 77, 78 => 78, 79 => 79, 80 => 80, 82 => 82, 83 => 83, 84 => 84, 85 => 85, 160 => 85, 168 => 85, 173 => 85, 86 => 86, 118 => 86, 87 => 87, 88 => 87, 89 => 87, 90 => 90, 91 => 91, 92 => 92, 93 => 93, 96 => 93, 94 => 94, 95 => 95, 97 => 97, 172 => 97, 99 => 99, 100 => 100, 101 => 101, 123 => 101, 102 => 102, 103 => 103, 104 => 104, 105 => 105, 106 => 106, 107 => 107, 108 => 108, 109 => 109, 110 => 110, 111 => 111, 112 => 112, 114 => 114, 115 => 115, 116 => 116, 119 => 119, 120 => 120, 122 => 122, 124 => 124, 125 => 125, 128 => 125, 139 => 125, 126 => 126, 127 => 127, 129 => 129, 130 => 130, 131 => 131, 136 => 131, 132 => 132, 135 => 132, 133 => 133, 138 => 133, 134 => 134, 137 => 134, 140 => 140, 141 => 141, 142 => 142, 143 => 143, 144 => 144, 145 => 145, 146 => 146, 147 => 147, 148 => 148, 149 => 149, 150 => 150, 151 => 151, 152 => 152, 153 => 153, 155 => 155, 156 => 156, 157 => 157, 158 => 158, 162 => 162, 163 => 163, 164 => 164, 165 => 165, 166 => 166, 167 => 167, 169 => 169, ); /* Beginning here are the reduction cases. A typical example ** follows: ** #line ** function yy_r0($yymsp){ ... } // User supplied code ** #line */ #line 79 "smarty_internal_templateparser.y" function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2057 "smarty_internal_templateparser.php" #line 85 "smarty_internal_templateparser.y" function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2060 "smarty_internal_templateparser.php" #line 87 "smarty_internal_templateparser.y" function yy_r2(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2063 "smarty_internal_templateparser.php" #line 93 "smarty_internal_templateparser.y" function yy_r3(){ if ($this->compiler->has_code) { $tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array(); $this->_retvalue = $this->cacher->processNocacheCode($tmp.$this->yystack[$this->yyidx + -1]->minor, $this->compiler,true); } else { $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor;} $this->compiler->has_variable_string = false; } #line 2070 "smarty_internal_templateparser.php" #line 99 "smarty_internal_templateparser.y" function yy_r4(){ if ($this->compiler->has_code) { $tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array(); $this->_retvalue = $this->cacher->processNocacheCode($tmp.$this->yystack[$this->yyidx + -1]->minor, $this->compiler,true); } else { $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor;} $this->compiler->has_variable_string = false; } #line 2077 "smarty_internal_templateparser.php" #line 105 "smarty_internal_templateparser.y" function yy_r5(){ if ($this->compiler->has_code) { $tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array(); $this->_retvalue = $this->cacher->processNocacheCode($tmp.$this->yystack[$this->yyidx + -1]->minor, $this->compiler,true); } else { $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor;} $this->compiler->has_variable_string = false; } #line 2084 "smarty_internal_templateparser.php" #line 111 "smarty_internal_templateparser.y" function yy_r6(){ $this->_retvalue = ''; } #line 2087 "smarty_internal_templateparser.php" #line 116 "smarty_internal_templateparser.y" function yy_r7(){$this->_retvalue = $this->cacher->processNocacheCode($this->smarty->left_delimiter, $this->compiler,false); } #line 2090 "smarty_internal_templateparser.php" #line 118 "smarty_internal_templateparser.y" function yy_r8(){ $this->_retvalue = $this->cacher->processNocacheCode($this->smarty->right_delimiter, $this->compiler,false); } #line 2093 "smarty_internal_templateparser.php" #line 120 "smarty_internal_templateparser.y" function yy_r9(){if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU) { $this->_retvalue = $this->cacher->processNocacheCode("yystack[$this->yyidx + -1]->minor)."?>', ENT_QUOTES);?>\n", $this->compiler, false); } elseif ($this->sec_obj->php_handling == SMARTY_PHP_QUOTE) { $this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('yystack[$this->yyidx + -1]->minor.'?>', ENT_QUOTES), $this->compiler, false); }elseif ($this->sec_obj->php_handling == SMARTY_PHP_ALLOW) { $this->_retvalue = $this->cacher->processNocacheCode('yystack[$this->yyidx + -1]->minor.'?>', $this->compiler, true); }elseif ($this->sec_obj->php_handling == SMARTY_PHP_REMOVE) { $this->_retvalue = ''; } } #line 2105 "smarty_internal_templateparser.php" #line 131 "smarty_internal_templateparser.y" function yy_r10(){ if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU || $this->sec_obj->php_handling == SMARTY_PHP_ALLOW) { $this->_retvalue = $this->cacher->processNocacheCode("yystack[$this->yyidx + -1]->minor."?>'?>\n", $this->compiler, false); } elseif ($this->sec_obj->php_handling == SMARTY_PHP_QUOTE) { $this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('yystack[$this->yyidx + -1]->minor.'?>', ENT_QUOTES), $this->compiler, false); }elseif ($this->sec_obj == SMARTY_PHP_REMOVE) { $this->_retvalue = ''; } } #line 2116 "smarty_internal_templateparser.php" #line 142 "smarty_internal_templateparser.y" function yy_r11(){ $this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("", $this->compiler, true); } #line 2119 "smarty_internal_templateparser.php" #line 143 "smarty_internal_templateparser.y" function yy_r12(){$this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("';?>\n", $this->compiler, true); } #line 2122 "smarty_internal_templateparser.php" #line 145 "smarty_internal_templateparser.y" function yy_r13(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false); } #line 2125 "smarty_internal_templateparser.php" #line 152 "smarty_internal_templateparser.y" function yy_r14(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); } #line 2128 "smarty_internal_templateparser.php" #line 162 "smarty_internal_templateparser.y" function yy_r17(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor)); } #line 2131 "smarty_internal_templateparser.php" #line 165 "smarty_internal_templateparser.y" function yy_r19(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } #line 2134 "smarty_internal_templateparser.php" #line 166 "smarty_internal_templateparser.y" function yy_r20(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor,array()); } #line 2137 "smarty_internal_templateparser.php" #line 168 "smarty_internal_templateparser.y" function yy_r21(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); } #line 2140 "smarty_internal_templateparser.php" #line 170 "smarty_internal_templateparser.y" function yy_r22(){ $this->_retvalue = ''.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor).'smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -2]->minor[0],'modifier')) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>"; } else { if (is_callable($this->yystack[$this->yyidx + -2]->minor[0])) { if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -2]->minor[0], $this->compiler)) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>"; } } else { $this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -2]->minor[0] . "\""); } } } #line 2155 "smarty_internal_templateparser.php" #line 184 "smarty_internal_templateparser.y" function yy_r23(){ $this->_retvalue = ''.$this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -3]->minor),$this->yystack[$this->yyidx + 0]->minor)).'smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -2]->minor[0],'modifier')) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>"; } else { if (is_callable($this->yystack[$this->yyidx + -2]->minor[0])) { if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -2]->minor[0], $this->compiler)) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>"; } } else { $this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -2]->minor[0] . "\""); } } } #line 2170 "smarty_internal_templateparser.php" #line 198 "smarty_internal_templateparser.y" function yy_r24(){if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -2]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2176 "smarty_internal_templateparser.php" #line 202 "smarty_internal_templateparser.y" function yy_r25(){ if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -2]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2182 "smarty_internal_templateparser.php" #line 207 "smarty_internal_templateparser.y" function yy_r26(){ if ($this->yystack[$this->yyidx + -10]->minor != 'for') { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -10]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -10]->minor,array('start'=>$this->yystack[$this->yyidx + -8]->minor,'ifexp'=>$this->yystack[$this->yyidx + -5]->minor,'varloop'=>$this->yystack[$this->yyidx + -1]->minor,'loop'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2189 "smarty_internal_templateparser.php" #line 212 "smarty_internal_templateparser.y" function yy_r27(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; } #line 2192 "smarty_internal_templateparser.php" #line 213 "smarty_internal_templateparser.y" function yy_r28(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2195 "smarty_internal_templateparser.php" #line 215 "smarty_internal_templateparser.y" function yy_r29(){ if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2202 "smarty_internal_templateparser.php" #line 220 "smarty_internal_templateparser.y" function yy_r30(){ if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2209 "smarty_internal_templateparser.php" #line 227 "smarty_internal_templateparser.y" function yy_r31(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',$this->yystack[$this->yyidx + 0]->minor); } #line 2212 "smarty_internal_templateparser.php" #line 228 "smarty_internal_templateparser.y" function yy_r32(){ $this->_retvalue = ''.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',$this->yystack[$this->yyidx + 0]->minor).'smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -2]->minor[0],'modifier')) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>"; } else { if (is_callable($this->yystack[$this->yyidx + -2]->minor[0])) { if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -2]->minor[0], $this->compiler)) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>"; } } else { $this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -2]->minor[0] . "\""); } } } #line 2227 "smarty_internal_templateparser.php" #line 242 "smarty_internal_templateparser.y" function yy_r33(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2230 "smarty_internal_templateparser.php" #line 249 "smarty_internal_templateparser.y" function yy_r34(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } #line 2233 "smarty_internal_templateparser.php" #line 253 "smarty_internal_templateparser.y" function yy_r36(){ $this->_retvalue = array(); } #line 2236 "smarty_internal_templateparser.php" #line 256 "smarty_internal_templateparser.y" function yy_r37(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); } #line 2239 "smarty_internal_templateparser.php" #line 259 "smarty_internal_templateparser.y" function yy_r40(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); } #line 2242 "smarty_internal_templateparser.php" #line 265 "smarty_internal_templateparser.y" function yy_r41(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } #line 2245 "smarty_internal_templateparser.php" #line 266 "smarty_internal_templateparser.y" function yy_r42(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; } #line 2248 "smarty_internal_templateparser.php" #line 268 "smarty_internal_templateparser.y" function yy_r43(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); } #line 2251 "smarty_internal_templateparser.php" #line 274 "smarty_internal_templateparser.y" function yy_r44(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2254 "smarty_internal_templateparser.php" #line 277 "smarty_internal_templateparser.y" function yy_r46(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; } #line 2257 "smarty_internal_templateparser.php" #line 278 "smarty_internal_templateparser.y" function yy_r47(){ if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -1]->minor[0],'modifier')) { $this->_retvalue = "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -1]->minor[0] . "',array(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor. "),".$this->yystack[$this->yyidx + -1]->minor[1].")"; } else { if (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 = "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -1]->minor[0] . "',array(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor. "),".$this->yystack[$this->yyidx + -1]->minor[1].")"; } } else { $this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -1]->minor[0] . "\""); } } } #line 2272 "smarty_internal_templateparser.php" #line 295 "smarty_internal_templateparser.y" function yy_r49(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2275 "smarty_internal_templateparser.php" #line 297 "smarty_internal_templateparser.y" function yy_r50(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; } #line 2278 "smarty_internal_templateparser.php" #line 304 "smarty_internal_templateparser.y" function yy_r52(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; } #line 2281 "smarty_internal_templateparser.php" #line 318 "smarty_internal_templateparser.y" function yy_r56(){$this->_retvalue = ' & '; } #line 2284 "smarty_internal_templateparser.php" #line 326 "smarty_internal_templateparser.y" function yy_r61(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } #line 2287 "smarty_internal_templateparser.php" #line 334 "smarty_internal_templateparser.y" function yy_r65(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; } #line 2290 "smarty_internal_templateparser.php" #line 337 "smarty_internal_templateparser.y" function yy_r67(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; } #line 2293 "smarty_internal_templateparser.php" #line 338 "smarty_internal_templateparser.y" function yy_r68(){ $this->_retvalue = "''"; } #line 2296 "smarty_internal_templateparser.php" #line 340 "smarty_internal_templateparser.y" function yy_r69(){ $this->_retvalue = '"'.$this->yystack[$this->yyidx + -1]->minor.'"'; } #line 2299 "smarty_internal_templateparser.php" #line 343 "smarty_internal_templateparser.y" function yy_r71(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } #line 2302 "smarty_internal_templateparser.php" #line 344 "smarty_internal_templateparser.y" function yy_r72(){ $this->prefix_number++; $this->compiler->prefix_code[] = '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 .')'; } #line 2305 "smarty_internal_templateparser.php" #line 346 "smarty_internal_templateparser.y" function yy_r73(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2308 "smarty_internal_templateparser.php" #line 347 "smarty_internal_templateparser.y" function yy_r74(){ $this->prefix_number++; $this->compiler->prefix_code[] = '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; } #line 2311 "smarty_internal_templateparser.php" #line 349 "smarty_internal_templateparser.y" function yy_r75(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } #line 2314 "smarty_internal_templateparser.php" #line 351 "smarty_internal_templateparser.y" function yy_r76(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2317 "smarty_internal_templateparser.php" #line 353 "smarty_internal_templateparser.y" function yy_r77(){ $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; } #line 2320 "smarty_internal_templateparser.php" #line 355 "smarty_internal_templateparser.y" function yy_r78(){ $this->prefix_number++; $this->compiler->prefix_code[] = ''.$this->yystack[$this->yyidx + -1]->minor.'prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; } #line 2323 "smarty_internal_templateparser.php" #line 364 "smarty_internal_templateparser.y" function yy_r79(){if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('special_smarty_variable',$this->yystack[$this->yyidx + 0]->minor['index']);} else { $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor['var'] .')->value'.$this->yystack[$this->yyidx + 0]->minor['index']; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor['var'],"'"))->nocache;} } #line 2327 "smarty_internal_templateparser.php" #line 367 "smarty_internal_templateparser.y" function yy_r80(){ $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"))->nocache; } #line 2330 "smarty_internal_templateparser.php" #line 371 "smarty_internal_templateparser.y" function yy_r82(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; } #line 2333 "smarty_internal_templateparser.php" #line 372 "smarty_internal_templateparser.y" function yy_r83(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; } #line 2336 "smarty_internal_templateparser.php" #line 375 "smarty_internal_templateparser.y" function yy_r84(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); } #line 2339 "smarty_internal_templateparser.php" #line 381 "smarty_internal_templateparser.y" function yy_r85(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2342 "smarty_internal_templateparser.php" #line 383 "smarty_internal_templateparser.y" function yy_r86(){return; } #line 2345 "smarty_internal_templateparser.php" #line 387 "smarty_internal_templateparser.y" function yy_r87(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; } #line 2348 "smarty_internal_templateparser.php" #line 390 "smarty_internal_templateparser.y" function yy_r90(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; } #line 2351 "smarty_internal_templateparser.php" #line 391 "smarty_internal_templateparser.y" function yy_r91(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor ."']"; } #line 2354 "smarty_internal_templateparser.php" #line 392 "smarty_internal_templateparser.y" function yy_r92(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; } #line 2357 "smarty_internal_templateparser.php" #line 393 "smarty_internal_templateparser.y" function yy_r93(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; } #line 2360 "smarty_internal_templateparser.php" #line 395 "smarty_internal_templateparser.y" function yy_r94(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; } #line 2363 "smarty_internal_templateparser.php" #line 396 "smarty_internal_templateparser.y" function yy_r95(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; } #line 2366 "smarty_internal_templateparser.php" #line 400 "smarty_internal_templateparser.y" function yy_r97(){$this->_retvalue = ''; } #line 2369 "smarty_internal_templateparser.php" #line 408 "smarty_internal_templateparser.y" function yy_r99(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } #line 2372 "smarty_internal_templateparser.php" #line 410 "smarty_internal_templateparser.y" function yy_r100(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2375 "smarty_internal_templateparser.php" #line 412 "smarty_internal_templateparser.y" function yy_r101(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2378 "smarty_internal_templateparser.php" #line 417 "smarty_internal_templateparser.y" function yy_r102(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('special_smarty_variable',$this->yystack[$this->yyidx + -1]->minor['index']).$this->yystack[$this->yyidx + 0]->minor;} else { $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->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"))->nocache;} } #line 2382 "smarty_internal_templateparser.php" #line 420 "smarty_internal_templateparser.y" function yy_r103(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2385 "smarty_internal_templateparser.php" #line 422 "smarty_internal_templateparser.y" function yy_r104(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2388 "smarty_internal_templateparser.php" #line 424 "smarty_internal_templateparser.y" function yy_r105(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2391 "smarty_internal_templateparser.php" #line 425 "smarty_internal_templateparser.y" function yy_r106(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2394 "smarty_internal_templateparser.php" #line 426 "smarty_internal_templateparser.y" function yy_r107(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2397 "smarty_internal_templateparser.php" #line 427 "smarty_internal_templateparser.y" function yy_r108(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2400 "smarty_internal_templateparser.php" #line 429 "smarty_internal_templateparser.y" function yy_r109(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; } #line 2403 "smarty_internal_templateparser.php" #line 435 "smarty_internal_templateparser.y" function yy_r110(){if (!$this->template->security || $this->smarty->security_handler->isTrustedPhpFunction($this->yystack[$this->yyidx + -3]->minor, $this->compiler)) { 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)) { $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 . "\""); } } } #line 2412 "smarty_internal_templateparser.php" #line 446 "smarty_internal_templateparser.y" function yy_r111(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; } #line 2415 "smarty_internal_templateparser.php" #line 450 "smarty_internal_templateparser.y" function yy_r112(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; } #line 2418 "smarty_internal_templateparser.php" #line 454 "smarty_internal_templateparser.y" function yy_r114(){ return; } #line 2421 "smarty_internal_templateparser.php" #line 459 "smarty_internal_templateparser.y" function yy_r115(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); } #line 2424 "smarty_internal_templateparser.php" #line 460 "smarty_internal_templateparser.y" function yy_r116(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); } #line 2427 "smarty_internal_templateparser.php" #line 476 "smarty_internal_templateparser.y" function yy_r119(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; } #line 2430 "smarty_internal_templateparser.php" #line 477 "smarty_internal_templateparser.y" function yy_r120(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2433 "smarty_internal_templateparser.php" #line 484 "smarty_internal_templateparser.y" function yy_r122(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; } #line 2436 "smarty_internal_templateparser.php" #line 489 "smarty_internal_templateparser.y" function yy_r124(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; } #line 2439 "smarty_internal_templateparser.php" #line 491 "smarty_internal_templateparser.y" function yy_r125(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2442 "smarty_internal_templateparser.php" #line 492 "smarty_internal_templateparser.y" function yy_r126(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2445 "smarty_internal_templateparser.php" #line 493 "smarty_internal_templateparser.y" function yy_r127(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2448 "smarty_internal_templateparser.php" #line 495 "smarty_internal_templateparser.y" function yy_r129(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2451 "smarty_internal_templateparser.php" #line 496 "smarty_internal_templateparser.y" function yy_r130(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2454 "smarty_internal_templateparser.php" #line 497 "smarty_internal_templateparser.y" function yy_r131(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2457 "smarty_internal_templateparser.php" #line 498 "smarty_internal_templateparser.y" function yy_r132(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2460 "smarty_internal_templateparser.php" #line 499 "smarty_internal_templateparser.y" function yy_r133(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2463 "smarty_internal_templateparser.php" #line 500 "smarty_internal_templateparser.y" function yy_r134(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2466 "smarty_internal_templateparser.php" #line 506 "smarty_internal_templateparser.y" function yy_r140(){$this->prefix_number++; $this->compiler->prefix_code[] = 'prefix_number.'='.$this->yystack[$this->yyidx + 0]->minor.';?>'; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.'$_tmp'.$this->prefix_number; } #line 2469 "smarty_internal_templateparser.php" #line 508 "smarty_internal_templateparser.y" function yy_r141(){$this->_retvalue = '=='; } #line 2472 "smarty_internal_templateparser.php" #line 509 "smarty_internal_templateparser.y" function yy_r142(){$this->_retvalue = '!='; } #line 2475 "smarty_internal_templateparser.php" #line 510 "smarty_internal_templateparser.y" function yy_r143(){$this->_retvalue = '>'; } #line 2478 "smarty_internal_templateparser.php" #line 511 "smarty_internal_templateparser.y" function yy_r144(){$this->_retvalue = '<'; } #line 2481 "smarty_internal_templateparser.php" #line 512 "smarty_internal_templateparser.y" function yy_r145(){$this->_retvalue = '>='; } #line 2484 "smarty_internal_templateparser.php" #line 513 "smarty_internal_templateparser.y" function yy_r146(){$this->_retvalue = '<='; } #line 2487 "smarty_internal_templateparser.php" #line 514 "smarty_internal_templateparser.y" function yy_r147(){$this->_retvalue = '==='; } #line 2490 "smarty_internal_templateparser.php" #line 515 "smarty_internal_templateparser.y" function yy_r148(){$this->_retvalue = '!=='; } #line 2493 "smarty_internal_templateparser.php" #line 516 "smarty_internal_templateparser.y" function yy_r149(){$this->_retvalue = '%'; } #line 2496 "smarty_internal_templateparser.php" #line 518 "smarty_internal_templateparser.y" function yy_r150(){$this->_retvalue = '&&'; } #line 2499 "smarty_internal_templateparser.php" #line 519 "smarty_internal_templateparser.y" function yy_r151(){$this->_retvalue = '||'; } #line 2502 "smarty_internal_templateparser.php" #line 520 "smarty_internal_templateparser.y" function yy_r152(){$this->_retvalue = ' XOR '; } #line 2505 "smarty_internal_templateparser.php" #line 525 "smarty_internal_templateparser.y" function yy_r153(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2508 "smarty_internal_templateparser.php" #line 527 "smarty_internal_templateparser.y" function yy_r155(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; } #line 2511 "smarty_internal_templateparser.php" #line 528 "smarty_internal_templateparser.y" function yy_r156(){ return; } #line 2514 "smarty_internal_templateparser.php" #line 529 "smarty_internal_templateparser.y" function yy_r157(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; } #line 2517 "smarty_internal_templateparser.php" #line 530 "smarty_internal_templateparser.y" function yy_r158(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; } #line 2520 "smarty_internal_templateparser.php" #line 539 "smarty_internal_templateparser.y" function yy_r162(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; } #line 2523 "smarty_internal_templateparser.php" #line 540 "smarty_internal_templateparser.y" function yy_r163(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; $this->compiler->has_variable_string = true; } #line 2526 "smarty_internal_templateparser.php" #line 541 "smarty_internal_templateparser.y" function yy_r164(){$this->_retvalue = '".'.'$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + 0]->minor .'\')->value'.'."'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"))->nocache; $this->compiler->has_variable_string = true; } #line 2529 "smarty_internal_templateparser.php" #line 542 "smarty_internal_templateparser.y" function yy_r165(){ $this->_retvalue = '".('.$this->yystack[$this->yyidx + -1]->minor.')."'; $this->compiler->has_variable_string = true; } #line 2532 "smarty_internal_templateparser.php" #line 543 "smarty_internal_templateparser.y" function yy_r166(){ $this->prefix_number++; $this->compiler->prefix_code[] = ''.$this->yystack[$this->yyidx + -1]->minor.'prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '".$_tmp'.$this->prefix_number.'."'; $this->compiler->has_variable_string = true; } #line 2535 "smarty_internal_templateparser.php" #line 544 "smarty_internal_templateparser.y" function yy_r167(){$this->_retvalue = '$'.$this->yystack[$this->yyidx + 0]->minor; } #line 2538 "smarty_internal_templateparser.php" #line 546 "smarty_internal_templateparser.y" function yy_r169(){$this->_retvalue = '`'.$this->yystack[$this->yyidx + 0]->minor; } #line 2541 "smarty_internal_templateparser.php" /** * placeholder for the left hand side in a reduce operation. * * For a parser with a rule like this: *
     * 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 2659 "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 2684 "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); } } ?>