string = $s->string; $this->metadata = $s->metadata; } else { $this->string = (string) $s; if ($m instanceof TP_yyToken) { $this->metadata = $m->metadata; } elseif (is_array($m)) { $this->metadata = $m; } } } function __toString() { return $this->_string; } function offsetExists($offset) { return isset($this->metadata[$offset]); } function offsetGet($offset) { return $this->metadata[$offset]; } function offsetSet($offset, $value) { if ($offset === null) { if (isset($value[0])) { $x = ($value instanceof TP_yyToken) ? $value->metadata : $value; $this->metadata = array_merge($this->metadata, $x); return; } $offset = count($this->metadata); } if ($value === null) { return; } if ($value instanceof TP_yyToken) { if ($value->metadata) { $this->metadata[$offset] = $value->metadata; } } elseif ($value) { $this->metadata[$offset] = $value; } } function offsetUnset($offset) { unset($this->metadata[$offset]); } } /** The following structure represents a single element of the * parser's stack. Information stored includes: * * + The state number for the parser at this level of the stack. * * + The value of the token stored at this level of the stack. * (In other words, the "major" token.) * * + The semantic value stored at this level of the stack. This is * the information used by the action routines in the grammar. * It is sometimes called the "minor" token. */ class TP_yyStackEntry { public $stateno; /* The state-number */ public $major; /* The major token value. This is the code ** number for the token at this stack level */ public $minor; /* The user-supplied minor token value. This ** is the value of the token */ }; // code external to the class is included here // declare_class is output here #line 12 "smarty_internal_templateparser.y" class Smarty_Internal_Templateparser#line 109 "smarty_internal_templateparser.php" { /* First off, code is included which follows the "include_class" declaration ** in the input file. */ #line 14 "smarty_internal_templateparser.y" // states whether the parse was successful or not public $successful = true; public $retvalue = 0; private $lex; private $internalError = false; function __construct($lex, $compiler) { // set instance object self::instance($this); $this->lex = $lex; $this->compiler = $compiler; $this->smarty = $this->compiler->smarty; $this->template = $this->compiler->template; if ($this->template->security && isset($this->smarty->security_handler)) { $this->sec_obj = $this->smarty->security_policy; } else { $this->sec_obj = $this->smarty; } $this->cacher = $this->template->cacher_object; $this->compiler->has_variable_string = false; $this->compiler->prefix_code = array(); $this->prefix_number = 0; } public static function &instance($new_instance = null) { static $instance = null; if (isset($new_instance) && is_object($new_instance)) $instance = $new_instance; return $instance; } #line 147 "smarty_internal_templateparser.php" /* Next is all token values, as class constants */ /* ** These constants (all generated automatically by the parser generator) ** specify the various kinds of tokens (terminals) that the parser ** understands. ** ** Each symbol here is a terminal symbol in the grammar. */ const TP_OTHER = 1; const TP_XML = 2; const TP_PHP = 3; const TP_SHORTTAGSTART = 4; const TP_SHORTTAGEND = 5; const TP_PHPSTART = 6; const TP_PHPEND = 7; const TP_COMMENT = 8; const TP_SINGLEQUOTE = 9; const TP_LITERALSTART = 10; const TP_LITERALEND = 11; const TP_LDELIMTAG = 12; const TP_RDELIMTAG = 13; const TP_LDELSLASH = 14; const TP_LDEL = 15; const TP_RDEL = 16; const TP_ISIN = 17; const TP_AS = 18; const TP_BOOLEAN = 19; const TP_NULL = 20; const TP_IDENTITY = 21; const TP_NONEIDENTITY = 22; const TP_EQUALS = 23; const TP_NOTEQUALS = 24; const TP_GREATEREQUAL = 25; const TP_LESSEQUAL = 26; const TP_GREATERTHAN = 27; const TP_LESSTHAN = 28; const TP_MOD = 29; const TP_NOT = 30; const TP_LAND = 31; const TP_LOR = 32; const TP_LXOR = 33; const TP_ISODDBY = 34; const TP_ISNOTODDBY = 35; const TP_ISODD = 36; const TP_ISNOTODD = 37; const TP_ISEVENBY = 38; const TP_ISNOTEVENBY = 39; const TP_ISEVEN = 40; const TP_ISNOTEVEN = 41; const TP_ISDIVBY = 42; const TP_ISNOTDIVBY = 43; const TP_OPENP = 44; const TP_CLOSEP = 45; const TP_OPENB = 46; const TP_CLOSEB = 47; const TP_PTR = 48; const TP_APTR = 49; const TP_EQUAL = 50; const TP_INTEGER = 51; const TP_INCDEC = 52; const TP_UNIMATH = 53; const TP_MATH = 54; const TP_DOLLAR = 55; const TP_COLON = 56; const TP_DOUBLECOLON = 57; const TP_SEMICOLON = 58; const TP_AT = 59; const TP_HATCH = 60; const TP_QUOTE = 61; const TP_BACKTICK = 62; const TP_VERT = 63; const TP_DOT = 64; const TP_COMMA = 65; const TP_ANDSYM = 66; const TP_ID = 67; const TP_SPACE = 68; const TP_INSTANCEOF = 69; const TP_QMARK = 70; const TP_TYPECAST = 71; const YY_NO_ACTION = 490; const YY_ACCEPT_ACTION = 489; const YY_ERROR_ACTION = 488; /* 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 = 1174; static public $yy_action = array( /* 0 */ 285, 291, 292, 13, 11, 278, 284, 7, 9, 276, /* 10 */ 277, 4, 3, 63, 293, 122, 63, 25, 36, 69, /* 20 */ 43, 189, 69, 242, 239, 81, 242, 239, 232, 222, /* 30 */ 193, 190, 228, 256, 8, 229, 44, 75, 238, 210, /* 40 */ 212, 134, 2, 16, 272, 25, 216, 23, 5, 174, /* 50 */ 14, 32, 26, 14, 230, 180, 108, 41, 180, 68, /* 60 */ 41, 182, 71, 202, 47, 59, 140, 47, 59, 287, /* 70 */ 151, 159, 116, 200, 155, 54, 21, 81, 54, 298, /* 80 */ 285, 291, 292, 13, 11, 278, 284, 7, 9, 276, /* 90 */ 277, 4, 3, 218, 171, 196, 272, 287, 63, 215, /* 100 */ 42, 63, 25, 246, 69, 235, 236, 69, 242, 239, /* 110 */ 157, 242, 239, 214, 297, 1, 39, 247, 237, 8, /* 120 */ 281, 282, 309, 306, 295, 294, 307, 308, 283, 71, /* 130 */ 489, 95, 207, 5, 47, 14, 32, 34, 14, 289, /* 140 */ 180, 197, 41, 180, 65, 41, 157, 68, 17, 47, /* 150 */ 59, 141, 47, 59, 287, 148, 154, 351, 55, 45, /* 160 */ 54, 311, 157, 54, 298, 285, 291, 292, 13, 11, /* 170 */ 278, 284, 7, 9, 276, 277, 4, 3, 63, 20, /* 180 */ 296, 38, 37, 29, 69, 266, 267, 187, 242, 239, /* 190 */ 157, 81, 169, 257, 176, 285, 291, 292, 13, 11, /* 200 */ 278, 284, 7, 9, 276, 277, 4, 3, 152, 176, /* 210 */ 272, 132, 81, 32, 271, 14, 234, 254, 213, 64, /* 220 */ 180, 71, 41, 299, 68, 114, 47, 208, 25, 47, /* 230 */ 59, 272, 63, 265, 244, 353, 159, 189, 69, 58, /* 240 */ 54, 81, 242, 239, 89, 175, 162, 25, 28, 166, /* 250 */ 177, 52, 102, 144, 238, 235, 236, 250, 189, 16, /* 260 */ 272, 151, 81, 26, 33, 275, 298, 12, 237, 14, /* 270 */ 255, 249, 108, 97, 180, 238, 41, 71, 68, 258, /* 280 */ 287, 272, 47, 47, 59, 31, 63, 353, 71, 186, /* 290 */ 159, 182, 69, 47, 54, 151, 242, 239, 279, 287, /* 300 */ 120, 39, 235, 236, 157, 281, 282, 309, 306, 295, /* 310 */ 294, 307, 308, 283, 16, 237, 157, 246, 36, 112, /* 320 */ 125, 32, 189, 14, 150, 248, 81, 108, 180, 185, /* 330 */ 41, 247, 71, 298, 233, 310, 44, 47, 59, 238, /* 340 */ 63, 224, 30, 25, 161, 272, 69, 157, 54, 253, /* 350 */ 242, 239, 153, 81, 67, 39, 157, 219, 21, 281, /* 360 */ 282, 309, 306, 295, 294, 307, 308, 283, 203, 244, /* 370 */ 263, 15, 272, 246, 81, 32, 143, 14, 27, 149, /* 380 */ 151, 273, 180, 279, 41, 157, 71, 247, 157, 298, /* 390 */ 137, 47, 59, 272, 63, 206, 127, 201, 164, 157, /* 400 */ 69, 157, 54, 298, 242, 239, 172, 219, 170, 183, /* 410 */ 62, 165, 51, 78, 74, 191, 258, 221, 46, 355, /* 420 */ 189, 15, 255, 249, 81, 102, 157, 238, 241, 32, /* 430 */ 157, 14, 240, 272, 10, 176, 180, 238, 41, 66, /* 440 */ 68, 142, 184, 272, 157, 47, 59, 16, 63, 176, /* 450 */ 252, 48, 156, 22, 69, 106, 54, 223, 242, 239, /* 460 */ 108, 165, 107, 117, 157, 286, 63, 301, 46, 63, /* 470 */ 244, 355, 69, 96, 99, 69, 242, 239, 244, 242, /* 480 */ 239, 61, 43, 12, 19, 14, 243, 63, 220, 135, /* 490 */ 180, 290, 41, 69, 68, 100, 244, 242, 239, 47, /* 500 */ 59, 32, 298, 14, 32, 286, 45, 205, 180, 274, /* 510 */ 54, 180, 71, 176, 71, 71, 259, 47, 59, 47, /* 520 */ 47, 59, 32, 126, 164, 60, 178, 158, 54, 180, /* 530 */ 274, 54, 130, 71, 199, 138, 298, 234, 47, 59, /* 540 */ 244, 133, 139, 101, 76, 164, 234, 246, 298, 54, /* 550 */ 189, 288, 58, 268, 81, 298, 16, 87, 244, 270, /* 560 */ 196, 247, 195, 249, 189, 102, 58, 238, 81, 108, /* 570 */ 73, 83, 257, 272, 217, 157, 195, 249, 275, 102, /* 580 */ 1, 238, 189, 123, 58, 181, 81, 272, 234, 90, /* 590 */ 231, 261, 275, 79, 195, 249, 189, 102, 58, 238, /* 600 */ 81, 204, 340, 91, 226, 272, 314, 300, 195, 249, /* 610 */ 275, 102, 167, 238, 189, 269, 58, 168, 81, 272, /* 620 */ 225, 93, 24, 80, 275, 227, 195, 249, 6, 102, /* 630 */ 42, 238, 251, 209, 70, 262, 305, 272, 72, 194, /* 640 */ 35, 82, 275, 189, 303, 57, 22, 81, 19, 286, /* 650 */ 85, 271, 245, 40, 43, 195, 249, 189, 102, 56, /* 660 */ 238, 81, 119, 260, 84, 18, 272, 302, 37, 195, /* 670 */ 249, 275, 102, 264, 238, 189, 50, 58, 49, 81, /* 680 */ 272, 198, 92, 258, 290, 275, 290, 195, 249, 189, /* 690 */ 102, 58, 238, 81, 290, 290, 86, 290, 272, 290, /* 700 */ 290, 195, 249, 275, 102, 290, 238, 189, 290, 58, /* 710 */ 290, 81, 272, 290, 88, 290, 290, 275, 290, 195, /* 720 */ 249, 290, 102, 290, 238, 290, 290, 290, 290, 290, /* 730 */ 272, 290, 290, 290, 290, 275, 189, 290, 58, 290, /* 740 */ 81, 290, 290, 94, 290, 290, 290, 290, 195, 249, /* 750 */ 189, 102, 110, 238, 81, 290, 290, 290, 290, 272, /* 760 */ 290, 290, 255, 249, 275, 102, 290, 238, 290, 290, /* 770 */ 290, 189, 189, 272, 111, 81, 81, 290, 290, 290, /* 780 */ 290, 160, 313, 280, 255, 249, 290, 102, 238, 238, /* 790 */ 290, 290, 304, 290, 272, 272, 290, 290, 189, 290, /* 800 */ 111, 290, 81, 290, 290, 290, 290, 290, 290, 290, /* 810 */ 255, 249, 290, 102, 290, 238, 290, 290, 192, 290, /* 820 */ 290, 272, 290, 290, 189, 290, 111, 290, 81, 290, /* 830 */ 290, 290, 290, 290, 290, 290, 255, 249, 290, 102, /* 840 */ 290, 238, 290, 290, 188, 290, 189, 272, 53, 77, /* 850 */ 81, 290, 290, 189, 290, 110, 290, 81, 255, 249, /* 860 */ 290, 102, 290, 238, 290, 255, 249, 290, 102, 272, /* 870 */ 238, 290, 290, 290, 290, 290, 272, 290, 290, 189, /* 880 */ 290, 129, 211, 81, 290, 312, 290, 290, 290, 290, /* 890 */ 290, 163, 249, 290, 102, 290, 238, 290, 290, 189, /* 900 */ 290, 111, 272, 81, 290, 290, 290, 290, 290, 290, /* 910 */ 290, 255, 249, 290, 102, 290, 238, 290, 290, 179, /* 920 */ 290, 173, 272, 290, 290, 189, 290, 109, 290, 74, /* 930 */ 290, 290, 290, 290, 290, 290, 290, 255, 249, 189, /* 940 */ 102, 118, 238, 81, 290, 290, 290, 290, 272, 290, /* 950 */ 290, 255, 249, 290, 102, 290, 238, 189, 290, 147, /* 960 */ 290, 81, 272, 290, 189, 290, 105, 290, 81, 255, /* 970 */ 249, 290, 102, 290, 238, 290, 255, 249, 290, 102, /* 980 */ 272, 238, 189, 290, 115, 290, 81, 272, 290, 290, /* 990 */ 290, 290, 290, 290, 255, 249, 290, 102, 290, 238, /* 1000 */ 189, 290, 113, 290, 81, 272, 290, 290, 290, 290, /* 1010 */ 290, 290, 255, 249, 290, 102, 290, 238, 189, 290, /* 1020 */ 136, 290, 81, 272, 290, 290, 290, 290, 290, 290, /* 1030 */ 255, 249, 189, 102, 131, 238, 81, 290, 290, 290, /* 1040 */ 290, 272, 290, 290, 255, 249, 290, 102, 290, 238, /* 1050 */ 189, 290, 104, 290, 81, 272, 290, 189, 290, 146, /* 1060 */ 290, 81, 255, 249, 290, 102, 290, 238, 290, 255, /* 1070 */ 249, 290, 102, 272, 238, 189, 290, 124, 290, 81, /* 1080 */ 272, 290, 290, 290, 290, 290, 290, 255, 249, 290, /* 1090 */ 102, 290, 238, 189, 290, 121, 290, 81, 272, 290, /* 1100 */ 290, 290, 290, 290, 290, 255, 249, 290, 102, 290, /* 1110 */ 238, 189, 290, 128, 290, 81, 272, 290, 290, 290, /* 1120 */ 290, 290, 290, 255, 249, 189, 102, 145, 238, 81, /* 1130 */ 290, 290, 290, 290, 272, 290, 290, 255, 249, 290, /* 1140 */ 102, 290, 238, 189, 290, 290, 290, 81, 272, 290, /* 1150 */ 189, 290, 290, 290, 81, 255, 249, 290, 103, 290, /* 1160 */ 238, 290, 255, 249, 290, 98, 272, 238, 290, 290, /* 1170 */ 290, 290, 290, 272, ); static public $yy_lookahead = array( /* 0 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, /* 10 */ 41, 42, 43, 9, 45, 86, 9, 15, 46, 15, /* 20 */ 48, 80, 15, 19, 20, 84, 19, 20, 1, 2, /* 30 */ 3, 4, 5, 92, 30, 8, 64, 10, 97, 12, /* 40 */ 13, 14, 15, 44, 103, 15, 47, 15, 44, 18, /* 50 */ 46, 44, 50, 46, 47, 51, 57, 53, 51, 55, /* 60 */ 53, 59, 55, 64, 60, 61, 81, 60, 61, 67, /* 70 */ 85, 67, 102, 80, 67, 71, 44, 84, 71, 94, /* 80 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, /* 90 */ 41, 42, 43, 1, 45, 48, 103, 67, 9, 47, /* 100 */ 69, 9, 15, 1, 15, 53, 54, 15, 19, 20, /* 110 */ 63, 19, 20, 11, 1, 68, 17, 15, 66, 30, /* 120 */ 21, 22, 23, 24, 25, 26, 27, 28, 29, 55, /* 130 */ 73, 74, 75, 44, 60, 46, 44, 50, 46, 52, /* 140 */ 51, 67, 53, 51, 55, 53, 63, 55, 65, 60, /* 150 */ 61, 81, 60, 61, 67, 85, 67, 16, 86, 67, /* 160 */ 71, 47, 63, 71, 94, 31, 32, 33, 34, 35, /* 170 */ 36, 37, 38, 39, 40, 41, 42, 43, 9, 65, /* 180 */ 67, 15, 56, 56, 15, 19, 20, 80, 19, 20, /* 190 */ 63, 84, 58, 52, 68, 31, 32, 33, 34, 35, /* 200 */ 36, 37, 38, 39, 40, 41, 42, 43, 80, 68, /* 210 */ 103, 101, 84, 44, 104, 46, 106, 51, 16, 90, /* 220 */ 51, 55, 53, 1, 55, 102, 60, 99, 15, 60, /* 230 */ 61, 103, 9, 67, 105, 16, 67, 80, 15, 82, /* 240 */ 71, 84, 19, 20, 87, 88, 89, 15, 15, 92, /* 250 */ 93, 86, 95, 81, 97, 53, 54, 16, 80, 44, /* 260 */ 103, 85, 84, 50, 49, 108, 94, 44, 66, 46, /* 270 */ 92, 93, 57, 95, 51, 97, 53, 55, 55, 107, /* 280 */ 67, 103, 60, 60, 61, 109, 9, 68, 55, 67, /* 290 */ 67, 59, 15, 60, 71, 85, 19, 20, 45, 67, /* 300 */ 67, 17, 53, 54, 63, 21, 22, 23, 24, 25, /* 310 */ 26, 27, 28, 29, 44, 66, 63, 1, 46, 102, /* 320 */ 81, 44, 80, 46, 85, 9, 84, 57, 51, 45, /* 330 */ 53, 15, 55, 94, 92, 93, 64, 60, 61, 97, /* 340 */ 9, 16, 49, 15, 67, 103, 15, 63, 71, 80, /* 350 */ 19, 20, 16, 84, 90, 17, 63, 1, 44, 21, /* 360 */ 22, 23, 24, 25, 26, 27, 28, 29, 67, 105, /* 370 */ 80, 15, 103, 1, 84, 44, 81, 46, 56, 16, /* 380 */ 85, 9, 51, 45, 53, 63, 55, 15, 63, 94, /* 390 */ 81, 60, 61, 103, 9, 67, 67, 55, 67, 63, /* 400 */ 15, 63, 71, 94, 19, 20, 76, 1, 78, 67, /* 410 */ 80, 55, 82, 83, 84, 48, 107, 61, 62, 16, /* 420 */ 80, 15, 92, 93, 84, 95, 63, 97, 51, 44, /* 430 */ 63, 46, 92, 103, 58, 68, 51, 97, 53, 55, /* 440 */ 55, 65, 59, 103, 63, 60, 61, 44, 9, 68, /* 450 */ 67, 67, 67, 50, 15, 90, 71, 47, 19, 20, /* 460 */ 57, 55, 102, 90, 63, 105, 9, 61, 62, 9, /* 470 */ 105, 68, 15, 98, 79, 15, 19, 20, 105, 19, /* 480 */ 20, 90, 48, 44, 50, 46, 67, 9, 113, 81, /* 490 */ 51, 91, 53, 15, 55, 79, 105, 19, 20, 60, /* 500 */ 61, 44, 94, 46, 44, 105, 67, 56, 51, 114, /* 510 */ 71, 51, 55, 68, 55, 55, 94, 60, 61, 60, /* 520 */ 60, 61, 44, 81, 67, 90, 76, 67, 71, 51, /* 530 */ 114, 71, 101, 55, 84, 81, 94, 106, 60, 61, /* 540 */ 105, 101, 81, 90, 55, 67, 106, 1, 94, 71, /* 550 */ 80, 88, 82, 60, 84, 94, 44, 87, 105, 67, /* 560 */ 48, 15, 92, 93, 80, 95, 82, 97, 84, 57, /* 570 */ 55, 87, 52, 103, 16, 63, 92, 93, 108, 95, /* 580 */ 68, 97, 80, 101, 82, 1, 84, 103, 106, 87, /* 590 */ 5, 16, 108, 45, 92, 93, 80, 95, 82, 97, /* 600 */ 84, 64, 16, 87, 45, 103, 16, 62, 92, 93, /* 610 */ 108, 95, 18, 97, 80, 60, 82, 67, 84, 103, /* 620 */ 67, 87, 70, 67, 108, 5, 92, 93, 110, 95, /* 630 */ 69, 97, 67, 16, 55, 16, 45, 103, 55, 1, /* 640 */ 70, 99, 108, 80, 62, 82, 50, 84, 50, 105, /* 650 */ 87, 104, 114, 96, 48, 92, 93, 80, 95, 82, /* 660 */ 97, 84, 102, 75, 87, 44, 103, 113, 56, 92, /* 670 */ 93, 108, 95, 106, 97, 80, 102, 82, 67, 84, /* 680 */ 103, 77, 87, 107, 115, 108, 115, 92, 93, 80, /* 690 */ 95, 82, 97, 84, 115, 115, 87, 115, 103, 115, /* 700 */ 115, 92, 93, 108, 95, 115, 97, 80, 115, 82, /* 710 */ 115, 84, 103, 115, 87, 115, 115, 108, 115, 92, /* 720 */ 93, 115, 95, 115, 97, 115, 115, 115, 115, 115, /* 730 */ 103, 115, 115, 115, 115, 108, 80, 115, 82, 115, /* 740 */ 84, 115, 115, 87, 115, 115, 115, 115, 92, 93, /* 750 */ 80, 95, 82, 97, 84, 115, 115, 115, 115, 103, /* 760 */ 115, 115, 92, 93, 108, 95, 115, 97, 115, 115, /* 770 */ 115, 80, 80, 103, 82, 84, 84, 115, 115, 115, /* 780 */ 115, 111, 112, 92, 92, 93, 115, 95, 97, 97, /* 790 */ 115, 115, 100, 115, 103, 103, 115, 115, 80, 115, /* 800 */ 82, 115, 84, 115, 115, 115, 115, 115, 115, 115, /* 810 */ 92, 93, 115, 95, 115, 97, 115, 115, 100, 115, /* 820 */ 115, 103, 115, 115, 80, 115, 82, 115, 84, 115, /* 830 */ 115, 115, 115, 115, 115, 115, 92, 93, 115, 95, /* 840 */ 115, 97, 115, 115, 100, 115, 80, 103, 82, 83, /* 850 */ 84, 115, 115, 80, 115, 82, 115, 84, 92, 93, /* 860 */ 115, 95, 115, 97, 115, 92, 93, 115, 95, 103, /* 870 */ 97, 115, 115, 115, 115, 115, 103, 115, 115, 80, /* 880 */ 115, 82, 83, 84, 115, 112, 115, 115, 115, 115, /* 890 */ 115, 92, 93, 115, 95, 115, 97, 115, 115, 80, /* 900 */ 115, 82, 103, 84, 115, 115, 115, 115, 115, 115, /* 910 */ 115, 92, 93, 115, 95, 115, 97, 115, 115, 100, /* 920 */ 115, 76, 103, 115, 115, 80, 115, 82, 115, 84, /* 930 */ 115, 115, 115, 115, 115, 115, 115, 92, 93, 80, /* 940 */ 95, 82, 97, 84, 115, 115, 115, 115, 103, 115, /* 950 */ 115, 92, 93, 115, 95, 115, 97, 80, 115, 82, /* 960 */ 115, 84, 103, 115, 80, 115, 82, 115, 84, 92, /* 970 */ 93, 115, 95, 115, 97, 115, 92, 93, 115, 95, /* 980 */ 103, 97, 80, 115, 82, 115, 84, 103, 115, 115, /* 990 */ 115, 115, 115, 115, 92, 93, 115, 95, 115, 97, /* 1000 */ 80, 115, 82, 115, 84, 103, 115, 115, 115, 115, /* 1010 */ 115, 115, 92, 93, 115, 95, 115, 97, 80, 115, /* 1020 */ 82, 115, 84, 103, 115, 115, 115, 115, 115, 115, /* 1030 */ 92, 93, 80, 95, 82, 97, 84, 115, 115, 115, /* 1040 */ 115, 103, 115, 115, 92, 93, 115, 95, 115, 97, /* 1050 */ 80, 115, 82, 115, 84, 103, 115, 80, 115, 82, /* 1060 */ 115, 84, 92, 93, 115, 95, 115, 97, 115, 92, /* 1070 */ 93, 115, 95, 103, 97, 80, 115, 82, 115, 84, /* 1080 */ 103, 115, 115, 115, 115, 115, 115, 92, 93, 115, /* 1090 */ 95, 115, 97, 80, 115, 82, 115, 84, 103, 115, /* 1100 */ 115, 115, 115, 115, 115, 92, 93, 115, 95, 115, /* 1110 */ 97, 80, 115, 82, 115, 84, 103, 115, 115, 115, /* 1120 */ 115, 115, 115, 92, 93, 80, 95, 82, 97, 84, /* 1130 */ 115, 115, 115, 115, 103, 115, 115, 92, 93, 115, /* 1140 */ 95, 115, 97, 80, 115, 115, 115, 84, 103, 115, /* 1150 */ 80, 115, 115, 115, 84, 92, 93, 115, 95, 115, /* 1160 */ 97, 115, 92, 93, 115, 95, 103, 97, 115, 115, /* 1170 */ 115, 115, 115, 103, ); const YY_SHIFT_USE_DFLT = -32; const YY_SHIFT_MAX = 206; static public $yy_shift_ofst = array( /* 0 */ 27, 89, 439, 4, 4, 4, 4, 4, 4, 4, /* 10 */ 4, 4, 4, 4, 385, 92, 169, 169, 169, 223, /* 20 */ 385, 169, 223, 169, 169, 169, 169, 169, 169, 169, /* 30 */ 169, 169, 169, 169, 169, 169, 7, 277, 331, 457, /* 40 */ 478, 478, 460, 233, 166, 512, 222, 74, 47, 367, /* 50 */ -28, 381, 126, 381, 459, 126, 338, 284, 99, 356, /* 60 */ 2, 87, 141, 372, 232, 328, 30, 30, 328, 384, /* 70 */ 30, 30, 30, 30, 434, 546, 30, 445, 445, 606, /* 80 */ 445, 606, 606, 134, -31, 49, 164, 164, 164, 164, /* 90 */ 164, 164, 164, 164, 164, 27, 406, 52, 202, 316, /* 100 */ 102, 213, 249, 249, 127, 241, 30, 272, 342, 325, /* 110 */ 293, 83, 272, 322, 272, 363, 272, 30, 336, 272, /* 120 */ 32, 253, 612, 606, 401, 445, 445, 621, 401, 401, /* 130 */ 606, 401, 606, 606, 611, 445, 401, 445, 445, 445, /* 140 */ 445, 445, 489, 445, 445, 401, 401, 401, -32, -32, /* 150 */ -32, -32, -32, -32, 403, -1, 215, 383, 270, 270, /* 160 */ 114, 270, 376, 219, 270, 113, 31, 579, 596, 583, /* 170 */ 619, 552, 575, 558, 515, 586, 550, 594, 590, 559, /* 180 */ 537, 585, 492, 314, 565, 570, 582, 545, 548, 520, /* 190 */ 584, 553, 591, 638, 620, 561, 556, 555, 617, 598, /* 200 */ 493, 329, 301, 410, 377, 419, 451, ); const YY_REDUCE_USE_DFLT = -72; const YY_REDUCE_MAX = 153; static public $yy_reduce_ofst = array( /* 0 */ 57, 157, 330, 534, 516, 577, 609, 502, 595, 627, /* 10 */ 484, 470, 563, 656, 670, 845, 718, 692, 744, 766, /* 20 */ 773, 819, 799, 902, 920, 884, 938, 877, 859, 952, /* 30 */ 1031, 1045, 1013, 995, 977, 970, 178, 1063, 1070, 242, /* 40 */ 340, -59, 691, 128, 269, 70, 107, -7, 70, 239, /* 50 */ 110, -15, 172, 295, 290, 309, 176, 176, 176, 375, /* 60 */ 360, 400, 408, 395, 360, 435, 264, 360, 129, 450, /* 70 */ 365, 129, 391, 373, 431, 416, 453, 442, 454, 482, /* 80 */ 461, 431, 440, 518, 518, 518, 518, 518, 518, 518, /* 90 */ 518, 518, 518, 518, 518, 588, 554, 557, 557, 538, /* 100 */ 538, 544, 557, 557, 210, 210, 544, 547, 542, 210, /* 110 */ 210, 210, 547, 210, 547, 210, 547, 544, 210, 547, /* 120 */ 560, 210, 576, 567, 210, 422, 422, 574, 210, 210, /* 130 */ 567, 210, 567, 567, 604, 422, 210, 422, 422, 422, /* 140 */ 422, 422, 463, 422, 422, 210, 210, 210, 165, 123, /* 150 */ 72, -71, -30, 217, ); static public $yyExpectedTokens = array( /* 0 */ array(1, 2, 3, 4, 5, 8, 10, 12, 13, 14, 15, ), /* 1 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 2 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 3 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 4 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 5 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 6 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 7 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 8 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 9 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 10 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 11 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 12 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 13 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 14 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 15 */ array(1, 9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 16 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 17 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 18 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 19 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 20 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 21 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 22 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 23 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 24 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 25 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 26 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 27 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 28 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 29 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 30 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 31 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 32 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 33 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 34 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 35 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 36 */ array(9, 15, 19, 20, 44, 46, 47, 51, 53, 55, 60, 61, 67, 71, ), /* 37 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 38 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, ), /* 39 */ array(9, 15, 19, 20, 44, 46, 51, 55, 60, 61, 67, 71, ), /* 40 */ array(9, 15, 19, 20, 44, 51, 55, 60, 61, 67, 71, ), /* 41 */ array(9, 15, 19, 20, 44, 51, 55, 60, 61, 67, 71, ), /* 42 */ array(9, 15, 19, 20, 44, 51, 55, 60, 61, 67, 71, ), /* 43 */ array(15, 55, 60, 67, ), /* 44 */ array(15, 19, 20, 51, 55, 60, 67, ), /* 45 */ array(44, 48, 57, 63, 68, ), /* 46 */ array(1, 55, 60, 67, ), /* 47 */ array(55, 60, 67, ), /* 48 */ array(48, 63, 68, ), /* 49 */ array(48, 63, 68, ), /* 50 */ array(46, 48, 64, ), /* 51 */ array(63, 68, ), /* 52 */ array(56, 68, ), /* 53 */ array(63, 68, ), /* 54 */ array(55, 60, ), /* 55 */ array(56, 68, ), /* 56 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ), /* 57 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ), /* 58 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 63, ), /* 59 */ array(1, 15, 55, 61, 62, ), /* 60 */ array(15, 50, 59, 67, ), /* 61 */ array(15, 50, 52, 67, ), /* 62 */ array(16, 52, 68, ), /* 63 */ array(1, 9, 15, ), /* 64 */ array(15, 59, 67, ), /* 65 */ array(15, 67, ), /* 66 */ array(15, 67, ), /* 67 */ array(15, 67, ), /* 68 */ array(15, 67, ), /* 69 */ array(55, 67, ), /* 70 */ array(15, 67, ), /* 71 */ array(15, 67, ), /* 72 */ array(15, 67, ), /* 73 */ array(15, 67, ), /* 74 */ array(48, 50, ), /* 75 */ array(1, 15, ), /* 76 */ array(15, 67, ), /* 77 */ array(68, ), /* 78 */ array(68, ), /* 79 */ array(48, ), /* 80 */ array(68, ), /* 81 */ array(48, ), /* 82 */ array(48, ), /* 83 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 58, ), /* 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, 45, ), /* 86 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 87 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 88 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 89 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 90 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 91 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 92 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 93 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 94 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 95 */ array(1, 2, 3, 4, 5, 8, 10, 12, 13, 14, 15, ), /* 96 */ array(1, 15, 55, 61, 62, ), /* 97 */ array(47, 53, 54, 66, ), /* 98 */ array(16, 53, 54, 66, ), /* 99 */ array(1, 9, 15, ), /* 100 */ array(1, 11, 15, ), /* 101 */ array(15, 50, 67, ), /* 102 */ array(53, 54, 66, ), /* 103 */ array(53, 54, 66, ), /* 104 */ array(56, 63, ), /* 105 */ array(16, 63, ), /* 106 */ array(15, 67, ), /* 107 */ array(46, 64, ), /* 108 */ array(55, 67, ), /* 109 */ array(16, 63, ), /* 110 */ array(49, 63, ), /* 111 */ array(63, 65, ), /* 112 */ array(46, 64, ), /* 113 */ array(56, 63, ), /* 114 */ array(46, 64, ), /* 115 */ array(16, 63, ), /* 116 */ array(46, 64, ), /* 117 */ array(15, 67, ), /* 118 */ array(16, 63, ), /* 119 */ array(46, 64, ), /* 120 */ array(15, 44, ), /* 121 */ array(45, 63, ), /* 122 */ array(56, ), /* 123 */ array(48, ), /* 124 */ array(63, ), /* 125 */ array(68, ), /* 126 */ array(68, ), /* 127 */ array(44, ), /* 128 */ array(63, ), /* 129 */ array(63, ), /* 130 */ array(48, ), /* 131 */ array(63, ), /* 132 */ array(48, ), /* 133 */ array(48, ), /* 134 */ array(67, ), /* 135 */ array(68, ), /* 136 */ array(63, ), /* 137 */ array(68, ), /* 138 */ array(68, ), /* 139 */ array(68, ), /* 140 */ array(68, ), /* 141 */ array(68, ), /* 142 */ array(55, ), /* 143 */ array(68, ), /* 144 */ array(68, ), /* 145 */ array(63, ), /* 146 */ array(63, ), /* 147 */ array(63, ), /* 148 */ array(), /* 149 */ array(), /* 150 */ array(), /* 151 */ array(), /* 152 */ array(), /* 153 */ array(), /* 154 */ array(16, 44, 50, 57, 68, ), /* 155 */ array(44, 47, 57, 64, ), /* 156 */ array(44, 49, 57, ), /* 157 */ array(59, 67, ), /* 158 */ array(44, 57, ), /* 159 */ array(44, 57, ), /* 160 */ array(47, 65, ), /* 161 */ array(44, 57, ), /* 162 */ array(58, 65, ), /* 163 */ array(16, 68, ), /* 164 */ array(44, 57, ), /* 165 */ array(1, 67, ), /* 166 */ array(18, 69, ), /* 167 */ array(55, ), /* 168 */ array(50, ), /* 169 */ array(55, ), /* 170 */ array(16, ), /* 171 */ array(70, ), /* 172 */ array(16, ), /* 173 */ array(16, ), /* 174 */ array(55, ), /* 175 */ array(16, ), /* 176 */ array(67, ), /* 177 */ array(18, ), /* 178 */ array(16, ), /* 179 */ array(45, ), /* 180 */ array(64, ), /* 181 */ array(5, ), /* 182 */ array(67, ), /* 183 */ array(44, ), /* 184 */ array(67, ), /* 185 */ array(70, ), /* 186 */ array(62, ), /* 187 */ array(62, ), /* 188 */ array(45, ), /* 189 */ array(52, ), /* 190 */ array(1, ), /* 191 */ array(67, ), /* 192 */ array(45, ), /* 193 */ array(1, ), /* 194 */ array(5, ), /* 195 */ array(69, ), /* 196 */ array(67, ), /* 197 */ array(60, ), /* 198 */ array(16, ), /* 199 */ array(50, ), /* 200 */ array(60, ), /* 201 */ array(67, ), /* 202 */ array(67, ), /* 203 */ array(47, ), /* 204 */ array(51, ), /* 205 */ array(67, ), /* 206 */ array(56, ), /* 207 */ array(), /* 208 */ array(), /* 209 */ array(), /* 210 */ array(), /* 211 */ array(), /* 212 */ array(), /* 213 */ array(), /* 214 */ array(), /* 215 */ array(), /* 216 */ array(), /* 217 */ array(), /* 218 */ array(), /* 219 */ array(), /* 220 */ array(), /* 221 */ array(), /* 222 */ array(), /* 223 */ array(), /* 224 */ array(), /* 225 */ array(), /* 226 */ array(), /* 227 */ array(), /* 228 */ array(), /* 229 */ array(), /* 230 */ array(), /* 231 */ array(), /* 232 */ array(), /* 233 */ array(), /* 234 */ array(), /* 235 */ array(), /* 236 */ array(), /* 237 */ array(), /* 238 */ array(), /* 239 */ array(), /* 240 */ array(), /* 241 */ array(), /* 242 */ array(), /* 243 */ array(), /* 244 */ array(), /* 245 */ array(), /* 246 */ array(), /* 247 */ array(), /* 248 */ array(), /* 249 */ array(), /* 250 */ array(), /* 251 */ array(), /* 252 */ array(), /* 253 */ array(), /* 254 */ array(), /* 255 */ array(), /* 256 */ array(), /* 257 */ array(), /* 258 */ array(), /* 259 */ array(), /* 260 */ array(), /* 261 */ array(), /* 262 */ array(), /* 263 */ array(), /* 264 */ array(), /* 265 */ array(), /* 266 */ array(), /* 267 */ array(), /* 268 */ array(), /* 269 */ array(), /* 270 */ array(), /* 271 */ array(), /* 272 */ array(), /* 273 */ array(), /* 274 */ array(), /* 275 */ array(), /* 276 */ array(), /* 277 */ array(), /* 278 */ array(), /* 279 */ array(), /* 280 */ array(), /* 281 */ array(), /* 282 */ array(), /* 283 */ array(), /* 284 */ array(), /* 285 */ array(), /* 286 */ array(), /* 287 */ array(), /* 288 */ array(), /* 289 */ array(), /* 290 */ array(), /* 291 */ array(), /* 292 */ array(), /* 293 */ array(), /* 294 */ array(), /* 295 */ array(), /* 296 */ array(), /* 297 */ array(), /* 298 */ array(), /* 299 */ array(), /* 300 */ array(), /* 301 */ array(), /* 302 */ array(), /* 303 */ array(), /* 304 */ array(), /* 305 */ array(), /* 306 */ array(), /* 307 */ array(), /* 308 */ array(), /* 309 */ array(), /* 310 */ array(), /* 311 */ array(), /* 312 */ array(), /* 313 */ array(), /* 314 */ array(), ); static public $yy_default = array( /* 0 */ 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, /* 10 */ 488, 488, 488, 488, 469, 488, 427, 427, 427, 488, /* 20 */ 488, 427, 488, 488, 488, 488, 488, 488, 488, 488, /* 30 */ 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, /* 40 */ 488, 488, 488, 488, 488, 336, 488, 488, 336, 351, /* 50 */ 390, 351, 351, 351, 488, 351, 437, 437, 437, 488, /* 60 */ 400, 488, 372, 488, 400, 488, 488, 400, 488, 488, /* 70 */ 488, 488, 488, 488, 393, 488, 488, 351, 351, 386, /* 80 */ 351, 393, 385, 488, 488, 488, 441, 451, 447, 339, /* 90 */ 446, 442, 435, 443, 450, 315, 488, 488, 488, 488, /* 100 */ 488, 488, 360, 432, 488, 488, 345, 398, 488, 488, /* 110 */ 472, 426, 420, 488, 421, 488, 419, 344, 488, 418, /* 120 */ 400, 488, 362, 388, 471, 346, 334, 400, 470, 352, /* 130 */ 415, 368, 391, 387, 488, 330, 358, 347, 332, 337, /* 140 */ 331, 335, 488, 333, 338, 438, 342, 367, 431, 400, /* 150 */ 431, 431, 400, 400, 359, 488, 359, 488, 452, 359, /* 160 */ 488, 433, 488, 363, 488, 488, 363, 488, 355, 488, /* 170 */ 488, 488, 488, 488, 488, 356, 488, 366, 488, 488, /* 180 */ 375, 488, 488, 389, 488, 380, 488, 488, 488, 372, /* 190 */ 488, 488, 488, 488, 488, 363, 488, 488, 488, 488, /* 200 */ 488, 488, 488, 488, 488, 488, 413, 316, 422, 319, /* 210 */ 323, 354, 324, 406, 322, 409, 407, 479, 481, 483, /* 220 */ 474, 384, 327, 408, 478, 348, 424, 325, 328, 321, /* 230 */ 410, 326, 329, 440, 416, 369, 370, 371, 379, 378, /* 240 */ 365, 376, 377, 361, 411, 484, 486, 487, 381, 366, /* 250 */ 414, 428, 429, 405, 404, 363, 364, 374, 430, 349, /* 260 */ 317, 318, 320, 373, 417, 401, 402, 403, 397, 396, /* 270 */ 394, 399, 395, 382, 485, 434, 444, 445, 448, 380, /* 280 */ 453, 460, 461, 462, 449, 463, 412, 413, 357, 343, /* 290 */ 341, 464, 465, 436, 459, 458, 477, 480, 350, 482, /* 300 */ 476, 383, 473, 475, 425, 423, 455, 456, 457, 454, /* 310 */ 439, 466, 468, 467, 392, ); /* The next thing included is series of defines which control ** various aspects of the generated parser. ** self::YYNOCODE is a number which corresponds ** to no legal terminal or nonterminal number. This ** number is used to fill in empty slots of the hash ** table. ** self::YYFALLBACK If defined, this indicates that one or more tokens ** have fall-back values which should be used if the ** original value of the token will not parse. ** self::YYSTACKDEPTH is the maximum depth of the parser's stack. ** self::YYNSTATE the combined number of states. ** self::YYNRULE the number of rules in the grammar ** self::YYERRORSYMBOL is the code number of the error symbol. If not ** defined, then do no error processing. */ const YYNOCODE = 116; const YYSTACKDEPTH = 100; const YYNSTATE = 315; const YYNRULE = 173; const YYERRORSYMBOL = 72; const YYERRSYMDT = 'yy0'; const YYFALLBACK = 1; /** The next table maps tokens into fallback tokens. If a construct * like the following: * * %fallback ID X Y Z. * * appears in the grammer, then ID becomes a fallback token for X, Y, * and Z. Whenever one of the tokens X, Y, or Z is input to the parser * but it does not parse, the type of the token is changed to ID and * the parse is retried before an error is thrown. */ static public $yyFallback = array( 0, /* $ => nothing */ 0, /* OTHER => nothing */ 1, /* XML => OTHER */ 1, /* PHP => OTHER */ 1, /* SHORTTAGSTART => OTHER */ 1, /* SHORTTAGEND => OTHER */ 1, /* PHPSTART => OTHER */ 1, /* PHPEND => OTHER */ 1, /* COMMENT => OTHER */ 1, /* SINGLEQUOTE => OTHER */ 1, /* LITERALSTART => OTHER */ 1, /* LITERALEND => OTHER */ 1, /* LDELIMTAG => OTHER */ 1, /* RDELIMTAG => OTHER */ 1, /* LDELSLASH => OTHER */ 1, /* LDEL => OTHER */ 1, /* RDEL => OTHER */ 1, /* ISIN => OTHER */ 1, /* AS => OTHER */ 1, /* BOOLEAN => OTHER */ 1, /* NULL => OTHER */ 1, /* IDENTITY => OTHER */ 1, /* NONEIDENTITY => OTHER */ 1, /* EQUALS => OTHER */ 1, /* NOTEQUALS => OTHER */ 1, /* GREATEREQUAL => OTHER */ 1, /* LESSEQUAL => OTHER */ 1, /* GREATERTHAN => OTHER */ 1, /* LESSTHAN => OTHER */ 1, /* MOD => OTHER */ 1, /* NOT => OTHER */ 1, /* LAND => OTHER */ 1, /* LOR => OTHER */ 1, /* LXOR => OTHER */ 1, /* ISODDBY => OTHER */ 1, /* ISNOTODDBY => OTHER */ 1, /* ISODD => OTHER */ 1, /* ISNOTODD => OTHER */ 1, /* ISEVENBY => OTHER */ 1, /* ISNOTEVENBY => OTHER */ 1, /* ISEVEN => OTHER */ 1, /* ISNOTEVEN => OTHER */ 1, /* ISDIVBY => OTHER */ 1, /* ISNOTDIVBY => OTHER */ 1, /* OPENP => OTHER */ 1, /* CLOSEP => OTHER */ 1, /* OPENB => OTHER */ 1, /* CLOSEB => OTHER */ 1, /* PTR => OTHER */ 1, /* APTR => OTHER */ 1, /* EQUAL => OTHER */ 1, /* INTEGER => OTHER */ 1, /* INCDEC => OTHER */ 1, /* UNIMATH => OTHER */ 1, /* MATH => OTHER */ 1, /* DOLLAR => OTHER */ 1, /* COLON => OTHER */ 1, /* DOUBLECOLON => OTHER */ 1, /* SEMICOLON => OTHER */ 1, /* AT => OTHER */ 1, /* HATCH => OTHER */ 1, /* QUOTE => OTHER */ 1, /* BACKTICK => OTHER */ 1, /* VERT => OTHER */ 1, /* DOT => OTHER */ 1, /* COMMA => OTHER */ 1, /* ANDSYM => OTHER */ 1, /* ID => OTHER */ 1, /* SPACE => OTHER */ 1, /* INSTANCEOF => OTHER */ 1, /* QMARK => OTHER */ 1, /* TYPECAST => OTHER */ ); /** * Turn parser tracing on by giving a stream to which to write the trace * and a prompt to preface each trace message. Tracing is turned off * by making either argument NULL * * Inputs: * * - A stream resource to which trace output should be written. * If NULL, then tracing is turned off. * - A prefix string written at the beginning of every * line of trace output. If NULL, then tracing is * turned off. * * Outputs: * * - None. * @param resource * @param string */ static function Trace($TraceFILE, $zTracePrompt) { if (!$TraceFILE) { $zTracePrompt = 0; } elseif (!$zTracePrompt) { $TraceFILE = 0; } self::$yyTraceFILE = $TraceFILE; self::$yyTracePrompt = $zTracePrompt; } /** * Output debug information to output (php://output stream) */ static function PrintTrace() { self::$yyTraceFILE = fopen('php://output', 'w'); self::$yyTracePrompt = '
'; } /** * @var resource|0 */ static public $yyTraceFILE; /** * String to prepend to debug output * @var string|0 */ static public $yyTracePrompt; /** * @var int */ public $yyidx; /* Index of top element in stack */ /** * @var int */ public $yyerrcnt; /* Shifts left before out of the error */ /** * @var array */ public $yystack = array(); /* The parser's stack */ /** * For tracing shifts, the names of all terminals and nonterminals * are required. The following table supplies these names * @var array */ public $yyTokenName = array( '$', 'OTHER', 'XML', 'PHP', 'SHORTTAGSTART', 'SHORTTAGEND', 'PHPSTART', 'PHPEND', 'COMMENT', 'SINGLEQUOTE', 'LITERALSTART', 'LITERALEND', 'LDELIMTAG', 'RDELIMTAG', 'LDELSLASH', 'LDEL', 'RDEL', 'ISIN', 'AS', 'BOOLEAN', 'NULL', 'IDENTITY', 'NONEIDENTITY', 'EQUALS', 'NOTEQUALS', 'GREATEREQUAL', 'LESSEQUAL', 'GREATERTHAN', 'LESSTHAN', 'MOD', 'NOT', 'LAND', 'LOR', 'LXOR', 'ISODDBY', 'ISNOTODDBY', 'ISODD', 'ISNOTODD', 'ISEVENBY', 'ISNOTEVENBY', 'ISEVEN', 'ISNOTEVEN', 'ISDIVBY', 'ISNOTDIVBY', 'OPENP', 'CLOSEP', 'OPENB', 'CLOSEB', 'PTR', 'APTR', 'EQUAL', 'INTEGER', 'INCDEC', 'UNIMATH', 'MATH', 'DOLLAR', 'COLON', 'DOUBLECOLON', 'SEMICOLON', 'AT', 'HATCH', 'QUOTE', 'BACKTICK', 'VERT', 'DOT', 'COMMA', 'ANDSYM', 'ID', 'SPACE', 'INSTANCEOF', 'QMARK', 'TYPECAST', 'error', 'start', 'template', 'template_element', 'smartytag', 'smartyclosetag', 'outputtag', 'text', 'variable', 'attributes', 'expr', 'ternary', 'varindexed', 'modifier', 'modparameters', 'ifexprs', 'statement', 'statements', 'varvar', 'foraction', 'value', 'array', 'attribute', 'exprs', 'math', 'function', 'doublequoted', 'method', 'params', 'objectchain', 'arrayindex', 'object', 'indexdef', 'varvarele', 'objectelement', 'modparameter', 'ifexpr', 'ifcond', 'lop', 'arrayelements', 'arrayelement', 'doublequotedcontent', 'textelement', ); /** * For tracing reduce actions, the names of all rules are required. * @var array */ static public $yyRuleName = array( /* 0 */ "start ::= template", /* 1 */ "template ::= template_element", /* 2 */ "template ::= template template_element", /* 3 */ "template_element ::= LDEL smartytag RDEL", /* 4 */ "template_element ::= LDELSLASH smartyclosetag RDEL", /* 5 */ "template_element ::= LDEL outputtag RDEL", /* 6 */ "template_element ::= COMMENT", /* 7 */ "template_element ::= LITERALSTART text LITERALEND", /* 8 */ "template_element ::= LDELIMTAG", /* 9 */ "template_element ::= RDELIMTAG", /* 10 */ "template_element ::= PHP OTHER SHORTTAGEND", /* 11 */ "template_element ::= SHORTTAGSTART OTHER SHORTTAGEND", /* 12 */ "template_element ::= XML", /* 13 */ "template_element ::= SHORTTAGEND", /* 14 */ "template_element ::= OTHER", /* 15 */ "outputtag ::= variable attributes", /* 16 */ "outputtag ::= expr attributes", /* 17 */ "outputtag ::= ternary attributes", /* 18 */ "smartytag ::= varindexed EQUAL expr attributes", /* 19 */ "smartytag ::= varindexed EQUAL ternary attributes", /* 20 */ "smartytag ::= ID attributes", /* 21 */ "smartytag ::= ID", /* 22 */ "smartytag ::= ID PTR ID attributes", /* 23 */ "smartytag ::= ID modifier modparameters attributes", /* 24 */ "smartytag ::= ID SPACE ifexprs", /* 25 */ "smartytag ::= ID SPACE statement", /* 26 */ "smartytag ::= ID SPACE statements SEMICOLON ifexprs SEMICOLON DOLLAR varvar foraction", /* 27 */ "foraction ::= EQUAL expr", /* 28 */ "foraction ::= INCDEC", /* 29 */ "smartytag ::= ID SPACE value AS DOLLAR varvar", /* 30 */ "smartytag ::= ID SPACE array AS DOLLAR varvar", /* 31 */ "smartyclosetag ::= ID attributes", /* 32 */ "smartyclosetag ::= ID modifier modparameters attributes", /* 33 */ "smartyclosetag ::= ID PTR ID", /* 34 */ "attributes ::= attributes attribute", /* 35 */ "attributes ::= attribute", /* 36 */ "attributes ::=", /* 37 */ "attribute ::= SPACE ID EQUAL expr", /* 38 */ "attribute ::= SPACE ID EQUAL value", /* 39 */ "attribute ::= SPACE ID EQUAL ternary", /* 40 */ "attribute ::= SPACE ID", /* 41 */ "statements ::= statement", /* 42 */ "statements ::= statements COMMA statement", /* 43 */ "statement ::= DOLLAR varvar EQUAL expr", /* 44 */ "expr ::= ID", /* 45 */ "expr ::= exprs", /* 46 */ "expr ::= DOLLAR ID COLON ID", /* 47 */ "expr ::= expr modifier modparameters", /* 48 */ "exprs ::= value", /* 49 */ "exprs ::= UNIMATH value", /* 50 */ "exprs ::= exprs math value", /* 51 */ "exprs ::= array", /* 52 */ "ternary ::= OPENP ifexprs CLOSEP QMARK expr COLON expr", /* 53 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr", /* 54 */ "math ::= UNIMATH", /* 55 */ "math ::= MATH", /* 56 */ "math ::= ANDSYM", /* 57 */ "value ::= variable", /* 58 */ "value ::= TYPECAST variable", /* 59 */ "value ::= variable INCDEC", /* 60 */ "value ::= INTEGER", /* 61 */ "value ::= INTEGER DOT INTEGER", /* 62 */ "value ::= BOOLEAN", /* 63 */ "value ::= NULL", /* 64 */ "value ::= function", /* 65 */ "value ::= OPENP expr CLOSEP", /* 66 */ "value ::= SINGLEQUOTE text SINGLEQUOTE", /* 67 */ "value ::= SINGLEQUOTE SINGLEQUOTE", /* 68 */ "value ::= QUOTE doublequoted QUOTE", /* 69 */ "value ::= QUOTE QUOTE", /* 70 */ "value ::= ID DOUBLECOLON method", /* 71 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP", /* 72 */ "value ::= ID DOUBLECOLON method objectchain", /* 73 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain", /* 74 */ "value ::= ID DOUBLECOLON ID", /* 75 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex", /* 76 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain", /* 77 */ "value ::= LDEL smartytag RDEL", /* 78 */ "variable ::= varindexed", /* 79 */ "variable ::= DOLLAR varvar AT ID", /* 80 */ "variable ::= object", /* 81 */ "variable ::= HATCH ID HATCH", /* 82 */ "variable ::= HATCH variable HATCH", /* 83 */ "varindexed ::= DOLLAR varvar arrayindex", /* 84 */ "arrayindex ::= arrayindex indexdef", /* 85 */ "arrayindex ::=", /* 86 */ "indexdef ::= DOT ID", /* 87 */ "indexdef ::= DOT BOOLEAN", /* 88 */ "indexdef ::= DOT NULL", /* 89 */ "indexdef ::= DOT INTEGER", /* 90 */ "indexdef ::= DOT variable", /* 91 */ "indexdef ::= DOT LDEL exprs RDEL", /* 92 */ "indexdef ::= OPENB ID CLOSEB", /* 93 */ "indexdef ::= OPENB ID DOT ID CLOSEB", /* 94 */ "indexdef ::= OPENB exprs CLOSEB", /* 95 */ "indexdef ::= OPENB CLOSEB", /* 96 */ "varvar ::= varvarele", /* 97 */ "varvar ::= varvar varvarele", /* 98 */ "varvarele ::= ID", /* 99 */ "varvarele ::= LDEL expr RDEL", /* 100 */ "object ::= varindexed objectchain", /* 101 */ "objectchain ::= objectelement", /* 102 */ "objectchain ::= objectchain objectelement", /* 103 */ "objectelement ::= PTR ID arrayindex", /* 104 */ "objectelement ::= PTR variable arrayindex", /* 105 */ "objectelement ::= PTR LDEL expr RDEL arrayindex", /* 106 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex", /* 107 */ "objectelement ::= PTR method", /* 108 */ "function ::= ID OPENP params CLOSEP", /* 109 */ "method ::= ID OPENP params CLOSEP", /* 110 */ "params ::= expr COMMA params", /* 111 */ "params ::= expr", /* 112 */ "params ::=", /* 113 */ "modifier ::= VERT AT ID", /* 114 */ "modifier ::= VERT ID", /* 115 */ "modparameters ::= modparameters modparameter", /* 116 */ "modparameters ::=", /* 117 */ "modparameter ::= COLON exprs", /* 118 */ "modparameter ::= COLON ID", /* 119 */ "ifexprs ::= ifexpr", /* 120 */ "ifexprs ::= NOT ifexprs", /* 121 */ "ifexprs ::= OPENP ifexprs CLOSEP", /* 122 */ "ifexpr ::= expr", /* 123 */ "ifexpr ::= expr ifcond expr", /* 124 */ "ifexpr ::= expr ISIN array", /* 125 */ "ifexpr ::= expr ISIN value", /* 126 */ "ifexpr ::= ifexprs lop ifexprs", /* 127 */ "ifexpr ::= ifexprs ISDIVBY ifexprs", /* 128 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs", /* 129 */ "ifexpr ::= ifexprs ISEVEN", /* 130 */ "ifexpr ::= ifexprs ISNOTEVEN", /* 131 */ "ifexpr ::= ifexprs ISEVENBY ifexprs", /* 132 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs", /* 133 */ "ifexpr ::= ifexprs ISODD", /* 134 */ "ifexpr ::= ifexprs ISNOTODD", /* 135 */ "ifexpr ::= ifexprs ISODDBY ifexprs", /* 136 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs", /* 137 */ "ifexpr ::= value INSTANCEOF ID", /* 138 */ "ifexpr ::= value INSTANCEOF value", /* 139 */ "ifcond ::= EQUALS", /* 140 */ "ifcond ::= NOTEQUALS", /* 141 */ "ifcond ::= GREATERTHAN", /* 142 */ "ifcond ::= LESSTHAN", /* 143 */ "ifcond ::= GREATEREQUAL", /* 144 */ "ifcond ::= LESSEQUAL", /* 145 */ "ifcond ::= IDENTITY", /* 146 */ "ifcond ::= NONEIDENTITY", /* 147 */ "ifcond ::= MOD", /* 148 */ "lop ::= LAND", /* 149 */ "lop ::= LOR", /* 150 */ "lop ::= LXOR", /* 151 */ "array ::= OPENB arrayelements CLOSEB", /* 152 */ "arrayelements ::= arrayelement", /* 153 */ "arrayelements ::= arrayelements COMMA arrayelement", /* 154 */ "arrayelements ::=", /* 155 */ "arrayelement ::= expr APTR expr", /* 156 */ "arrayelement ::= ID APTR expr", /* 157 */ "arrayelement ::= expr", /* 158 */ "doublequoted ::= doublequoted doublequotedcontent", /* 159 */ "doublequoted ::= doublequotedcontent", /* 160 */ "doublequotedcontent ::= BACKTICK ID BACKTICK", /* 161 */ "doublequotedcontent ::= BACKTICK variable BACKTICK", /* 162 */ "doublequotedcontent ::= DOLLAR ID", /* 163 */ "doublequotedcontent ::= LDEL expr RDEL", /* 164 */ "doublequotedcontent ::= LDEL smartytag RDEL", /* 165 */ "doublequotedcontent ::= DOLLAR OTHER", /* 166 */ "doublequotedcontent ::= LDEL OTHER", /* 167 */ "doublequotedcontent ::= BACKTICK OTHER", /* 168 */ "doublequotedcontent ::= OTHER", /* 169 */ "text ::= text textelement", /* 170 */ "text ::= textelement", /* 171 */ "textelement ::= OTHER", /* 172 */ "textelement ::= LDEL", ); /** * This function returns the symbolic name associated with a token * value. * @param int * @return string */ function tokenName($tokenType) { if ($tokenType === 0) { return 'End of Input'; } if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) { return $this->yyTokenName[$tokenType]; } else { return "Unknown"; } } /** * The following function deletes the value associated with a * symbol. The symbol can be either a terminal or nonterminal. * @param int the symbol code * @param mixed the symbol's value */ static function yy_destructor($yymajor, $yypminor) { switch ($yymajor) { /* Here is inserted the actions which take place when a ** terminal or non-terminal is destroyed. This can happen ** when the symbol is popped from the stack during a ** reduce or during error processing or when a parser is ** being destroyed before it is finished parsing. ** ** Note: during a reduce, the only symbols destroyed are those ** which appear on the RHS of the rule, but which are not used ** inside the C code. */ default: break; /* If no destructor action specified: do nothing */ } } /** * Pop the parser's stack once. * * If there is a destructor routine associated with the token which * is popped from the stack, then call it. * * Return the major token number for the symbol popped. * @param TP_yyParser * @return int */ function yy_pop_parser_stack() { if (!count($this->yystack)) { return; } $yytos = array_pop($this->yystack); if (self::$yyTraceFILE && $this->yyidx >= 0) { fwrite(self::$yyTraceFILE, self::$yyTracePrompt . 'Popping ' . $this->yyTokenName[$yytos->major] . "\n"); } $yymajor = $yytos->major; self::yy_destructor($yymajor, $yytos->minor); $this->yyidx--; return $yymajor; } /** * Deallocate and destroy a parser. Destructors are all called for * all stack elements before shutting the parser down. */ function __destruct() { while ($this->yyidx >= 0) { $this->yy_pop_parser_stack(); } if (is_resource(self::$yyTraceFILE)) { fclose(self::$yyTraceFILE); } } /** * Based on the current state and parser stack, get a list of all * possible lookahead tokens * @param int * @return array */ function yy_get_expected_tokens($token) { $state = $this->yystack[$this->yyidx]->stateno; $expected = self::$yyExpectedTokens[$state]; if (in_array($token, self::$yyExpectedTokens[$state], true)) { return $expected; } $stack = $this->yystack; $yyidx = $this->yyidx; do { $yyact = $this->yy_find_shift_action($token); if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { // reduce action $done = 0; do { if ($done++ == 100) { $this->yyidx = $yyidx; $this->yystack = $stack; // too much recursion prevents proper detection // so give up return array_unique($expected); } $yyruleno = $yyact - self::YYNSTATE; $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; $nextstate = $this->yy_find_reduce_action( $this->yystack[$this->yyidx]->stateno, self::$yyRuleInfo[$yyruleno]['lhs']); if (isset(self::$yyExpectedTokens[$nextstate])) { $expected += self::$yyExpectedTokens[$nextstate]; if (in_array($token, self::$yyExpectedTokens[$nextstate], true)) { $this->yyidx = $yyidx; $this->yystack = $stack; return array_unique($expected); } } if ($nextstate < self::YYNSTATE) { // we need to shift a non-terminal $this->yyidx++; $x = new TP_yyStackEntry; $x->stateno = $nextstate; $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; $this->yystack[$this->yyidx] = $x; continue 2; } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { $this->yyidx = $yyidx; $this->yystack = $stack; // the last token was just ignored, we can't accept // by ignoring input, this is in essence ignoring a // syntax error! return array_unique($expected); } elseif ($nextstate === self::YY_NO_ACTION) { $this->yyidx = $yyidx; $this->yystack = $stack; // input accepted, but not shifted (I guess) return $expected; } else { $yyact = $nextstate; } } while (true); } break; } while (true); return array_unique($expected); } /** * Based on the parser state and current parser stack, determine whether * the lookahead token is possible. * * The parser will convert the token value to an error token if not. This * catches some unusual edge cases where the parser would fail. * @param int * @return bool */ function yy_is_expected_token($token) { if ($token === 0) { return true; // 0 is not part of this } $state = $this->yystack[$this->yyidx]->stateno; if (in_array($token, self::$yyExpectedTokens[$state], true)) { return true; } $stack = $this->yystack; $yyidx = $this->yyidx; do { $yyact = $this->yy_find_shift_action($token); if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { // reduce action $done = 0; do { if ($done++ == 100) { $this->yyidx = $yyidx; $this->yystack = $stack; // too much recursion prevents proper detection // so give up return true; } $yyruleno = $yyact - self::YYNSTATE; $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; $nextstate = $this->yy_find_reduce_action( $this->yystack[$this->yyidx]->stateno, self::$yyRuleInfo[$yyruleno]['lhs']); if (isset(self::$yyExpectedTokens[$nextstate]) && in_array($token, self::$yyExpectedTokens[$nextstate], true)) { $this->yyidx = $yyidx; $this->yystack = $stack; return true; } if ($nextstate < self::YYNSTATE) { // we need to shift a non-terminal $this->yyidx++; $x = new TP_yyStackEntry; $x->stateno = $nextstate; $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; $this->yystack[$this->yyidx] = $x; continue 2; } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { $this->yyidx = $yyidx; $this->yystack = $stack; if (!$token) { // end of input: this is valid return true; } // the last token was just ignored, we can't accept // by ignoring input, this is in essence ignoring a // syntax error! return false; } elseif ($nextstate === self::YY_NO_ACTION) { $this->yyidx = $yyidx; $this->yystack = $stack; // input accepted, but not shifted (I guess) return true; } else { $yyact = $nextstate; } } while (true); } break; } while (true); $this->yyidx = $yyidx; $this->yystack = $stack; return true; } /** * Find the appropriate action for a parser given the terminal * look-ahead token iLookAhead. * * If the look-ahead token is YYNOCODE, then check to see if the action is * independent of the look-ahead. If it is, return the action, otherwise * return YY_NO_ACTION. * @param int The look-ahead token */ function yy_find_shift_action($iLookAhead) { $stateno = $this->yystack[$this->yyidx]->stateno; /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */ if (!isset(self::$yy_shift_ofst[$stateno])) { // no shift actions return self::$yy_default[$stateno]; } $i = self::$yy_shift_ofst[$stateno]; if ($i === self::YY_SHIFT_USE_DFLT) { return self::$yy_default[$stateno]; } if ($iLookAhead == self::YYNOCODE) { return self::YY_NO_ACTION; } $i += $iLookAhead; if ($i < 0 || $i >= self::YY_SZ_ACTTAB || self::$yy_lookahead[$i] != $iLookAhead) { if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) && ($iFallback = self::$yyFallback[$iLookAhead]) != 0) { if (self::$yyTraceFILE) { fwrite(self::$yyTraceFILE, self::$yyTracePrompt . "FALLBACK " . $this->yyTokenName[$iLookAhead] . " => " . $this->yyTokenName[$iFallback] . "\n"); } return $this->yy_find_shift_action($iFallback); } return self::$yy_default[$stateno]; } else { return self::$yy_action[$i]; } } /** * Find the appropriate action for a parser given the non-terminal * look-ahead token $iLookAhead. * * If the look-ahead token is self::YYNOCODE, then check to see if the action is * independent of the look-ahead. If it is, return the action, otherwise * return self::YY_NO_ACTION. * @param int Current state number * @param int The look-ahead token */ function yy_find_reduce_action($stateno, $iLookAhead) { /* $stateno = $this->yystack[$this->yyidx]->stateno; */ if (!isset(self::$yy_reduce_ofst[$stateno])) { return self::$yy_default[$stateno]; } $i = self::$yy_reduce_ofst[$stateno]; if ($i == self::YY_REDUCE_USE_DFLT) { return self::$yy_default[$stateno]; } if ($iLookAhead == self::YYNOCODE) { return self::YY_NO_ACTION; } $i += $iLookAhead; if ($i < 0 || $i >= self::YY_SZ_ACTTAB || self::$yy_lookahead[$i] != $iLookAhead) { return self::$yy_default[$stateno]; } else { return self::$yy_action[$i]; } } /** * Perform a shift action. * @param int The new state to shift in * @param int The major token to shift in * @param mixed the minor token to shift in */ function yy_shift($yyNewState, $yyMajor, $yypMinor) { $this->yyidx++; if ($this->yyidx >= self::YYSTACKDEPTH) { $this->yyidx--; if (self::$yyTraceFILE) { fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt); } while ($this->yyidx >= 0) { $this->yy_pop_parser_stack(); } /* Here code is inserted which will execute if the parser ** stack ever overflows */ return; } $yytos = new TP_yyStackEntry; $yytos->stateno = $yyNewState; $yytos->major = $yyMajor; $yytos->minor = $yypMinor; array_push($this->yystack, $yytos); if (self::$yyTraceFILE && $this->yyidx > 0) { fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt, $yyNewState); fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt); for($i = 1; $i <= $this->yyidx; $i++) { fprintf(self::$yyTraceFILE, " %s", $this->yyTokenName[$this->yystack[$i]->major]); } fwrite(self::$yyTraceFILE,"\n"); } } /** * The following table contains information about every rule that * is used during the reduce. * *
     * array(
     *  array(
     *   int $lhs;         Symbol on the left-hand side of the rule
     *   int $nrhs;     Number of right-hand side symbols in the rule
     *  ),...
     * );
     * 
*/ static public $yyRuleInfo = array( array( 'lhs' => 73, 'rhs' => 1 ), array( 'lhs' => 74, 'rhs' => 1 ), array( 'lhs' => 74, 'rhs' => 2 ), array( 'lhs' => 75, 'rhs' => 3 ), array( 'lhs' => 75, 'rhs' => 3 ), array( 'lhs' => 75, 'rhs' => 3 ), array( 'lhs' => 75, 'rhs' => 1 ), array( 'lhs' => 75, 'rhs' => 3 ), array( 'lhs' => 75, 'rhs' => 1 ), array( 'lhs' => 75, 'rhs' => 1 ), array( 'lhs' => 75, 'rhs' => 3 ), array( 'lhs' => 75, 'rhs' => 3 ), array( 'lhs' => 75, 'rhs' => 1 ), array( 'lhs' => 75, 'rhs' => 1 ), array( 'lhs' => 75, 'rhs' => 1 ), array( 'lhs' => 78, 'rhs' => 2 ), array( 'lhs' => 78, 'rhs' => 2 ), array( 'lhs' => 78, 'rhs' => 2 ), array( 'lhs' => 76, 'rhs' => 4 ), array( 'lhs' => 76, 'rhs' => 4 ), array( 'lhs' => 76, 'rhs' => 2 ), array( 'lhs' => 76, 'rhs' => 1 ), array( 'lhs' => 76, 'rhs' => 4 ), array( 'lhs' => 76, 'rhs' => 4 ), array( 'lhs' => 76, 'rhs' => 3 ), array( 'lhs' => 76, 'rhs' => 3 ), array( 'lhs' => 76, 'rhs' => 9 ), array( 'lhs' => 91, 'rhs' => 2 ), array( 'lhs' => 91, 'rhs' => 1 ), array( 'lhs' => 76, 'rhs' => 6 ), array( 'lhs' => 76, 'rhs' => 6 ), array( 'lhs' => 77, 'rhs' => 2 ), array( 'lhs' => 77, 'rhs' => 4 ), array( 'lhs' => 77, 'rhs' => 3 ), array( 'lhs' => 81, 'rhs' => 2 ), array( 'lhs' => 81, 'rhs' => 1 ), array( 'lhs' => 81, 'rhs' => 0 ), array( 'lhs' => 94, 'rhs' => 4 ), array( 'lhs' => 94, 'rhs' => 4 ), array( 'lhs' => 94, 'rhs' => 4 ), array( 'lhs' => 94, 'rhs' => 2 ), array( 'lhs' => 89, 'rhs' => 1 ), array( 'lhs' => 89, 'rhs' => 3 ), array( 'lhs' => 88, 'rhs' => 4 ), array( 'lhs' => 82, 'rhs' => 1 ), array( 'lhs' => 82, 'rhs' => 1 ), array( 'lhs' => 82, 'rhs' => 4 ), array( 'lhs' => 82, 'rhs' => 3 ), array( 'lhs' => 95, 'rhs' => 1 ), array( 'lhs' => 95, 'rhs' => 2 ), array( 'lhs' => 95, 'rhs' => 3 ), array( 'lhs' => 95, 'rhs' => 1 ), array( 'lhs' => 83, 'rhs' => 7 ), array( 'lhs' => 83, 'rhs' => 7 ), array( 'lhs' => 96, 'rhs' => 1 ), array( 'lhs' => 96, 'rhs' => 1 ), array( 'lhs' => 96, 'rhs' => 1 ), array( 'lhs' => 92, 'rhs' => 1 ), array( 'lhs' => 92, 'rhs' => 2 ), array( 'lhs' => 92, 'rhs' => 2 ), array( 'lhs' => 92, 'rhs' => 1 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 92, 'rhs' => 1 ), array( 'lhs' => 92, 'rhs' => 1 ), array( 'lhs' => 92, 'rhs' => 1 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 92, 'rhs' => 2 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 92, 'rhs' => 2 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 92, 'rhs' => 7 ), array( 'lhs' => 92, 'rhs' => 4 ), array( 'lhs' => 92, 'rhs' => 8 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 92, 'rhs' => 5 ), array( 'lhs' => 92, 'rhs' => 6 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 80, 'rhs' => 1 ), array( 'lhs' => 80, 'rhs' => 4 ), array( 'lhs' => 80, 'rhs' => 1 ), array( 'lhs' => 80, 'rhs' => 3 ), array( 'lhs' => 80, 'rhs' => 3 ), array( 'lhs' => 84, 'rhs' => 3 ), array( 'lhs' => 102, 'rhs' => 2 ), array( 'lhs' => 102, 'rhs' => 0 ), array( 'lhs' => 104, 'rhs' => 2 ), array( 'lhs' => 104, 'rhs' => 2 ), array( 'lhs' => 104, 'rhs' => 2 ), array( 'lhs' => 104, 'rhs' => 2 ), array( 'lhs' => 104, 'rhs' => 2 ), array( 'lhs' => 104, 'rhs' => 4 ), array( 'lhs' => 104, 'rhs' => 3 ), array( 'lhs' => 104, 'rhs' => 5 ), array( 'lhs' => 104, 'rhs' => 3 ), array( 'lhs' => 104, 'rhs' => 2 ), array( 'lhs' => 90, 'rhs' => 1 ), array( 'lhs' => 90, 'rhs' => 2 ), array( 'lhs' => 105, 'rhs' => 1 ), array( 'lhs' => 105, 'rhs' => 3 ), array( 'lhs' => 103, 'rhs' => 2 ), array( 'lhs' => 101, 'rhs' => 1 ), array( 'lhs' => 101, 'rhs' => 2 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 5 ), array( 'lhs' => 106, 'rhs' => 6 ), array( 'lhs' => 106, 'rhs' => 2 ), array( 'lhs' => 97, 'rhs' => 4 ), array( 'lhs' => 99, 'rhs' => 4 ), array( 'lhs' => 100, 'rhs' => 3 ), array( 'lhs' => 100, 'rhs' => 1 ), array( 'lhs' => 100, 'rhs' => 0 ), array( 'lhs' => 85, 'rhs' => 3 ), array( 'lhs' => 85, 'rhs' => 2 ), array( 'lhs' => 86, 'rhs' => 2 ), array( 'lhs' => 86, 'rhs' => 0 ), array( 'lhs' => 107, 'rhs' => 2 ), array( 'lhs' => 107, 'rhs' => 2 ), array( 'lhs' => 87, 'rhs' => 1 ), array( 'lhs' => 87, 'rhs' => 2 ), array( 'lhs' => 87, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 1 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 2 ), array( 'lhs' => 108, 'rhs' => 2 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 2 ), array( 'lhs' => 108, 'rhs' => 2 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 93, 'rhs' => 3 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 111, 'rhs' => 3 ), array( 'lhs' => 111, 'rhs' => 0 ), array( 'lhs' => 112, 'rhs' => 3 ), array( 'lhs' => 112, 'rhs' => 3 ), array( 'lhs' => 112, 'rhs' => 1 ), array( 'lhs' => 98, 'rhs' => 2 ), array( 'lhs' => 98, 'rhs' => 1 ), array( 'lhs' => 113, 'rhs' => 3 ), array( 'lhs' => 113, 'rhs' => 3 ), array( 'lhs' => 113, 'rhs' => 2 ), array( 'lhs' => 113, 'rhs' => 3 ), array( 'lhs' => 113, 'rhs' => 3 ), array( 'lhs' => 113, 'rhs' => 2 ), array( 'lhs' => 113, 'rhs' => 2 ), array( 'lhs' => 113, 'rhs' => 2 ), array( 'lhs' => 113, 'rhs' => 1 ), array( 'lhs' => 79, 'rhs' => 2 ), array( 'lhs' => 79, 'rhs' => 1 ), array( 'lhs' => 114, 'rhs' => 1 ), array( 'lhs' => 114, 'rhs' => 1 ), ); /** * The following table contains a mapping of reduce action to method name * that handles the reduction. * * If a rule is not set, it has no handler. */ static public $yyReduceMap = array( 0 => 0, 48 => 0, 57 => 0, 60 => 0, 62 => 0, 63 => 0, 64 => 0, 80 => 0, 152 => 0, 1 => 1, 45 => 1, 51 => 1, 54 => 1, 55 => 1, 96 => 1, 119 => 1, 159 => 1, 168 => 1, 170 => 1, 171 => 1, 172 => 1, 2 => 2, 115 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 11 => 11, 12 => 12, 13 => 13, 14 => 14, 15 => 15, 16 => 15, 17 => 15, 18 => 18, 19 => 18, 20 => 20, 21 => 21, 22 => 22, 23 => 23, 24 => 24, 25 => 25, 26 => 26, 27 => 27, 28 => 28, 35 => 28, 111 => 28, 157 => 28, 29 => 29, 30 => 30, 31 => 31, 32 => 32, 33 => 33, 34 => 34, 36 => 36, 37 => 37, 38 => 37, 39 => 37, 40 => 40, 41 => 41, 42 => 42, 43 => 43, 44 => 44, 46 => 46, 47 => 47, 49 => 49, 58 => 49, 59 => 49, 50 => 50, 52 => 52, 53 => 52, 56 => 56, 61 => 61, 65 => 65, 66 => 66, 67 => 67, 69 => 67, 68 => 68, 70 => 70, 71 => 71, 72 => 72, 73 => 73, 74 => 74, 75 => 75, 76 => 76, 77 => 77, 78 => 78, 79 => 79, 81 => 81, 82 => 82, 83 => 83, 84 => 84, 158 => 84, 166 => 84, 169 => 84, 85 => 85, 116 => 85, 86 => 86, 87 => 86, 88 => 86, 89 => 89, 90 => 90, 91 => 91, 94 => 91, 92 => 92, 93 => 93, 95 => 95, 97 => 97, 98 => 98, 99 => 99, 121 => 99, 100 => 100, 101 => 101, 102 => 102, 103 => 103, 104 => 104, 105 => 105, 106 => 106, 107 => 107, 108 => 108, 109 => 109, 110 => 110, 112 => 112, 113 => 113, 114 => 114, 117 => 117, 118 => 118, 120 => 120, 122 => 122, 123 => 123, 126 => 123, 137 => 123, 124 => 124, 125 => 125, 127 => 127, 128 => 128, 129 => 129, 134 => 129, 130 => 130, 133 => 130, 131 => 131, 136 => 131, 132 => 132, 135 => 132, 138 => 138, 139 => 139, 140 => 140, 141 => 141, 142 => 142, 143 => 143, 144 => 144, 145 => 145, 146 => 146, 147 => 147, 148 => 148, 149 => 149, 150 => 150, 151 => 151, 153 => 153, 154 => 154, 155 => 155, 156 => 156, 160 => 160, 161 => 161, 162 => 162, 163 => 163, 164 => 164, 165 => 165, 167 => 167, ); /* 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 2032 "smarty_internal_templateparser.php" #line 85 "smarty_internal_templateparser.y" function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2035 "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 2038 "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 2045 "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 2052 "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 2059 "smarty_internal_templateparser.php" #line 111 "smarty_internal_templateparser.y" function yy_r6(){ $this->_retvalue = ''; } #line 2062 "smarty_internal_templateparser.php" #line 113 "smarty_internal_templateparser.y" function yy_r7(){ $this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + -1]->minor, $this->compiler,false); } #line 2065 "smarty_internal_templateparser.php" #line 115 "smarty_internal_templateparser.y" function yy_r8(){$this->_retvalue = $this->cacher->processNocacheCode($this->smarty->left_delimiter, $this->compiler,false); } #line 2068 "smarty_internal_templateparser.php" #line 117 "smarty_internal_templateparser.y" function yy_r9(){ $this->_retvalue = $this->cacher->processNocacheCode($this->smarty->right_delimiter, $this->compiler,false); } #line 2071 "smarty_internal_templateparser.php" #line 119 "smarty_internal_templateparser.y" function yy_r10(){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 2083 "smarty_internal_templateparser.php" #line 130 "smarty_internal_templateparser.y" function yy_r11(){ 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 2094 "smarty_internal_templateparser.php" #line 141 "smarty_internal_templateparser.y" function yy_r12(){ $this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("", $this->compiler, true); } #line 2097 "smarty_internal_templateparser.php" #line 142 "smarty_internal_templateparser.y" function yy_r13(){$this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("';?>\n", $this->compiler, true); } #line 2100 "smarty_internal_templateparser.php" #line 145 "smarty_internal_templateparser.y" function yy_r14(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false); } #line 2103 "smarty_internal_templateparser.php" #line 152 "smarty_internal_templateparser.y" function yy_r15(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); } #line 2106 "smarty_internal_templateparser.php" #line 162 "smarty_internal_templateparser.y" function yy_r18(){ $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 2109 "smarty_internal_templateparser.php" #line 165 "smarty_internal_templateparser.y" function yy_r20(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } #line 2112 "smarty_internal_templateparser.php" #line 166 "smarty_internal_templateparser.y" function yy_r21(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor,array()); } #line 2115 "smarty_internal_templateparser.php" #line 168 "smarty_internal_templateparser.y" function yy_r22(){ $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 2118 "smarty_internal_templateparser.php" #line 170 "smarty_internal_templateparser.y" function yy_r23(){ $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 2133 "smarty_internal_templateparser.php" #line 184 "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 2139 "smarty_internal_templateparser.php" #line 188 "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 2145 "smarty_internal_templateparser.php" #line 193 "smarty_internal_templateparser.y" function yy_r26(){ if ($this->yystack[$this->yyidx + -8]->minor != 'for') { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -8]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -8]->minor,array('start'=>$this->yystack[$this->yyidx + -6]->minor,'ifexp'=>$this->yystack[$this->yyidx + -4]->minor,'varloop'=>$this->yystack[$this->yyidx + -1]->minor,'loop'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2152 "smarty_internal_templateparser.php" #line 198 "smarty_internal_templateparser.y" function yy_r27(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; } #line 2155 "smarty_internal_templateparser.php" #line 199 "smarty_internal_templateparser.y" function yy_r28(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2158 "smarty_internal_templateparser.php" #line 201 "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 2165 "smarty_internal_templateparser.php" #line 206 "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 2172 "smarty_internal_templateparser.php" #line 213 "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 2175 "smarty_internal_templateparser.php" #line 214 "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 2190 "smarty_internal_templateparser.php" #line 228 "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 2193 "smarty_internal_templateparser.php" #line 235 "smarty_internal_templateparser.y" function yy_r34(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } #line 2196 "smarty_internal_templateparser.php" #line 239 "smarty_internal_templateparser.y" function yy_r36(){ $this->_retvalue = array(); } #line 2199 "smarty_internal_templateparser.php" #line 242 "smarty_internal_templateparser.y" function yy_r37(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); } #line 2202 "smarty_internal_templateparser.php" #line 245 "smarty_internal_templateparser.y" function yy_r40(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); } #line 2205 "smarty_internal_templateparser.php" #line 251 "smarty_internal_templateparser.y" function yy_r41(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } #line 2208 "smarty_internal_templateparser.php" #line 252 "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 2211 "smarty_internal_templateparser.php" #line 254 "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 2214 "smarty_internal_templateparser.php" #line 260 "smarty_internal_templateparser.y" function yy_r44(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2217 "smarty_internal_templateparser.php" #line 263 "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 2220 "smarty_internal_templateparser.php" #line 264 "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 2235 "smarty_internal_templateparser.php" #line 281 "smarty_internal_templateparser.y" function yy_r49(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2238 "smarty_internal_templateparser.php" #line 283 "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 2241 "smarty_internal_templateparser.php" #line 290 "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 2244 "smarty_internal_templateparser.php" #line 304 "smarty_internal_templateparser.y" function yy_r56(){$this->_retvalue = ' & '; } #line 2247 "smarty_internal_templateparser.php" #line 312 "smarty_internal_templateparser.y" function yy_r61(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } #line 2250 "smarty_internal_templateparser.php" #line 320 "smarty_internal_templateparser.y" function yy_r65(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; } #line 2253 "smarty_internal_templateparser.php" #line 322 "smarty_internal_templateparser.y" function yy_r66(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; } #line 2256 "smarty_internal_templateparser.php" #line 323 "smarty_internal_templateparser.y" function yy_r67(){ $this->_retvalue = "''"; } #line 2259 "smarty_internal_templateparser.php" #line 325 "smarty_internal_templateparser.y" function yy_r68(){ $this->_retvalue = '"'.$this->yystack[$this->yyidx + -1]->minor.'"'; } #line 2262 "smarty_internal_templateparser.php" #line 328 "smarty_internal_templateparser.y" function yy_r70(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } #line 2265 "smarty_internal_templateparser.php" #line 329 "smarty_internal_templateparser.y" function yy_r71(){ $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 2268 "smarty_internal_templateparser.php" #line 331 "smarty_internal_templateparser.y" function yy_r72(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2271 "smarty_internal_templateparser.php" #line 332 "smarty_internal_templateparser.y" function yy_r73(){ $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 2274 "smarty_internal_templateparser.php" #line 334 "smarty_internal_templateparser.y" function yy_r74(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } #line 2277 "smarty_internal_templateparser.php" #line 336 "smarty_internal_templateparser.y" function yy_r75(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2280 "smarty_internal_templateparser.php" #line 338 "smarty_internal_templateparser.y" function yy_r76(){ $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 2283 "smarty_internal_templateparser.php" #line 340 "smarty_internal_templateparser.y" function yy_r77(){ $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 2286 "smarty_internal_templateparser.php" #line 349 "smarty_internal_templateparser.y" function yy_r78(){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 2290 "smarty_internal_templateparser.php" #line 352 "smarty_internal_templateparser.y" function yy_r79(){ $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 2293 "smarty_internal_templateparser.php" #line 356 "smarty_internal_templateparser.y" function yy_r81(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; } #line 2296 "smarty_internal_templateparser.php" #line 357 "smarty_internal_templateparser.y" function yy_r82(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; } #line 2299 "smarty_internal_templateparser.php" #line 360 "smarty_internal_templateparser.y" function yy_r83(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); } #line 2302 "smarty_internal_templateparser.php" #line 366 "smarty_internal_templateparser.y" function yy_r84(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2305 "smarty_internal_templateparser.php" #line 368 "smarty_internal_templateparser.y" function yy_r85(){return; } #line 2308 "smarty_internal_templateparser.php" #line 372 "smarty_internal_templateparser.y" function yy_r86(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; } #line 2311 "smarty_internal_templateparser.php" #line 375 "smarty_internal_templateparser.y" function yy_r89(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; } #line 2314 "smarty_internal_templateparser.php" #line 376 "smarty_internal_templateparser.y" function yy_r90(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; } #line 2317 "smarty_internal_templateparser.php" #line 377 "smarty_internal_templateparser.y" function yy_r91(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; } #line 2320 "smarty_internal_templateparser.php" #line 379 "smarty_internal_templateparser.y" function yy_r92(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; } #line 2323 "smarty_internal_templateparser.php" #line 380 "smarty_internal_templateparser.y" function yy_r93(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; } #line 2326 "smarty_internal_templateparser.php" #line 384 "smarty_internal_templateparser.y" function yy_r95(){$this->_retvalue = ''; } #line 2329 "smarty_internal_templateparser.php" #line 392 "smarty_internal_templateparser.y" function yy_r97(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } #line 2332 "smarty_internal_templateparser.php" #line 394 "smarty_internal_templateparser.y" function yy_r98(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2335 "smarty_internal_templateparser.php" #line 396 "smarty_internal_templateparser.y" function yy_r99(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2338 "smarty_internal_templateparser.php" #line 401 "smarty_internal_templateparser.y" function yy_r100(){ 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 2342 "smarty_internal_templateparser.php" #line 404 "smarty_internal_templateparser.y" function yy_r101(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2345 "smarty_internal_templateparser.php" #line 406 "smarty_internal_templateparser.y" function yy_r102(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2348 "smarty_internal_templateparser.php" #line 408 "smarty_internal_templateparser.y" function yy_r103(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2351 "smarty_internal_templateparser.php" #line 409 "smarty_internal_templateparser.y" function yy_r104(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2354 "smarty_internal_templateparser.php" #line 410 "smarty_internal_templateparser.y" function yy_r105(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2357 "smarty_internal_templateparser.php" #line 411 "smarty_internal_templateparser.y" function yy_r106(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2360 "smarty_internal_templateparser.php" #line 413 "smarty_internal_templateparser.y" function yy_r107(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; } #line 2363 "smarty_internal_templateparser.php" #line 419 "smarty_internal_templateparser.y" function yy_r108(){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 2372 "smarty_internal_templateparser.php" #line 430 "smarty_internal_templateparser.y" function yy_r109(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; } #line 2375 "smarty_internal_templateparser.php" #line 434 "smarty_internal_templateparser.y" function yy_r110(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; } #line 2378 "smarty_internal_templateparser.php" #line 438 "smarty_internal_templateparser.y" function yy_r112(){ return; } #line 2381 "smarty_internal_templateparser.php" #line 443 "smarty_internal_templateparser.y" function yy_r113(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); } #line 2384 "smarty_internal_templateparser.php" #line 444 "smarty_internal_templateparser.y" function yy_r114(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); } #line 2387 "smarty_internal_templateparser.php" #line 460 "smarty_internal_templateparser.y" function yy_r117(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; } #line 2390 "smarty_internal_templateparser.php" #line 461 "smarty_internal_templateparser.y" function yy_r118(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2393 "smarty_internal_templateparser.php" #line 468 "smarty_internal_templateparser.y" function yy_r120(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; } #line 2396 "smarty_internal_templateparser.php" #line 473 "smarty_internal_templateparser.y" function yy_r122(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; } #line 2399 "smarty_internal_templateparser.php" #line 475 "smarty_internal_templateparser.y" function yy_r123(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2402 "smarty_internal_templateparser.php" #line 476 "smarty_internal_templateparser.y" function yy_r124(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2405 "smarty_internal_templateparser.php" #line 477 "smarty_internal_templateparser.y" function yy_r125(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2408 "smarty_internal_templateparser.php" #line 479 "smarty_internal_templateparser.y" function yy_r127(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2411 "smarty_internal_templateparser.php" #line 480 "smarty_internal_templateparser.y" function yy_r128(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2414 "smarty_internal_templateparser.php" #line 481 "smarty_internal_templateparser.y" function yy_r129(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2417 "smarty_internal_templateparser.php" #line 482 "smarty_internal_templateparser.y" function yy_r130(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2420 "smarty_internal_templateparser.php" #line 483 "smarty_internal_templateparser.y" function yy_r131(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2423 "smarty_internal_templateparser.php" #line 484 "smarty_internal_templateparser.y" function yy_r132(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2426 "smarty_internal_templateparser.php" #line 490 "smarty_internal_templateparser.y" function yy_r138(){$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 2429 "smarty_internal_templateparser.php" #line 492 "smarty_internal_templateparser.y" function yy_r139(){$this->_retvalue = '=='; } #line 2432 "smarty_internal_templateparser.php" #line 493 "smarty_internal_templateparser.y" function yy_r140(){$this->_retvalue = '!='; } #line 2435 "smarty_internal_templateparser.php" #line 494 "smarty_internal_templateparser.y" function yy_r141(){$this->_retvalue = '>'; } #line 2438 "smarty_internal_templateparser.php" #line 495 "smarty_internal_templateparser.y" function yy_r142(){$this->_retvalue = '<'; } #line 2441 "smarty_internal_templateparser.php" #line 496 "smarty_internal_templateparser.y" function yy_r143(){$this->_retvalue = '>='; } #line 2444 "smarty_internal_templateparser.php" #line 497 "smarty_internal_templateparser.y" function yy_r144(){$this->_retvalue = '<='; } #line 2447 "smarty_internal_templateparser.php" #line 498 "smarty_internal_templateparser.y" function yy_r145(){$this->_retvalue = '==='; } #line 2450 "smarty_internal_templateparser.php" #line 499 "smarty_internal_templateparser.y" function yy_r146(){$this->_retvalue = '!=='; } #line 2453 "smarty_internal_templateparser.php" #line 500 "smarty_internal_templateparser.y" function yy_r147(){$this->_retvalue = '%'; } #line 2456 "smarty_internal_templateparser.php" #line 502 "smarty_internal_templateparser.y" function yy_r148(){$this->_retvalue = '&&'; } #line 2459 "smarty_internal_templateparser.php" #line 503 "smarty_internal_templateparser.y" function yy_r149(){$this->_retvalue = '||'; } #line 2462 "smarty_internal_templateparser.php" #line 504 "smarty_internal_templateparser.y" function yy_r150(){$this->_retvalue = ' XOR '; } #line 2465 "smarty_internal_templateparser.php" #line 509 "smarty_internal_templateparser.y" function yy_r151(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2468 "smarty_internal_templateparser.php" #line 511 "smarty_internal_templateparser.y" function yy_r153(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; } #line 2471 "smarty_internal_templateparser.php" #line 512 "smarty_internal_templateparser.y" function yy_r154(){ return; } #line 2474 "smarty_internal_templateparser.php" #line 513 "smarty_internal_templateparser.y" function yy_r155(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; } #line 2477 "smarty_internal_templateparser.php" #line 514 "smarty_internal_templateparser.y" function yy_r156(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; } #line 2480 "smarty_internal_templateparser.php" #line 523 "smarty_internal_templateparser.y" function yy_r160(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; } #line 2483 "smarty_internal_templateparser.php" #line 524 "smarty_internal_templateparser.y" function yy_r161(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; $this->compiler->has_variable_string = true; } #line 2486 "smarty_internal_templateparser.php" #line 525 "smarty_internal_templateparser.y" function yy_r162(){$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 2489 "smarty_internal_templateparser.php" #line 526 "smarty_internal_templateparser.y" function yy_r163(){ $this->_retvalue = '".('.$this->yystack[$this->yyidx + -1]->minor.')."'; $this->compiler->has_variable_string = true; } #line 2492 "smarty_internal_templateparser.php" #line 527 "smarty_internal_templateparser.y" function yy_r164(){ $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 2495 "smarty_internal_templateparser.php" #line 528 "smarty_internal_templateparser.y" function yy_r165(){$this->_retvalue = '$'.$this->yystack[$this->yyidx + 0]->minor; } #line 2498 "smarty_internal_templateparser.php" #line 530 "smarty_internal_templateparser.y" function yy_r167(){$this->_retvalue = '`'.$this->yystack[$this->yyidx + 0]->minor; } #line 2501 "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 2619 "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 2644 "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); } } ?>