string = $s->string; $this->metadata = $s->metadata; } else { $this->string = (string) $s; if ($m instanceof TP_yyToken) { $this->metadata = $m->metadata; } elseif (is_array($m)) { $this->metadata = $m; } } } function __toString() { return $this->_string; } function offsetExists($offset) { return isset($this->metadata[$offset]); } function offsetGet($offset) { return $this->metadata[$offset]; } function offsetSet($offset, $value) { if ($offset === null) { if (isset($value[0])) { $x = ($value instanceof TP_yyToken) ? $value->metadata : $value; $this->metadata = array_merge($this->metadata, $x); return; } $offset = count($this->metadata); } if ($value === null) { return; } if ($value instanceof TP_yyToken) { if ($value->metadata) { $this->metadata[$offset] = $value->metadata; } } elseif ($value) { $this->metadata[$offset] = $value; } } function offsetUnset($offset) { unset($this->metadata[$offset]); } } /** The following structure represents a single element of the * parser's stack. Information stored includes: * * + The state number for the parser at this level of the stack. * * + The value of the token stored at this level of the stack. * (In other words, the "major" token.) * * + The semantic value stored at this level of the stack. This is * the information used by the action routines in the grammar. * It is sometimes called the "minor" token. */ class TP_yyStackEntry { public $stateno; /* The state-number */ public $major; /* The major token value. This is the code ** number for the token at this stack level */ public $minor; /* The user-supplied minor token value. This ** is the value of the token */ }; // code external to the class is included here // declare_class is output here #line 12 "internal.templateparser.y" class Smarty_Internal_Templateparser#line 109 "internal.templateparser.php" { /* First off, code is included which follows the "include_class" declaration ** in the input file. */ #line 14 "internal.templateparser.y" // states whether the parse was successful or not public $successful = true; public $retvalue = 0; private $lex; private $internalError = false; function __construct($lex, $compiler) { // set instance object self::instance($this); $this->lex = $lex; $this->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->nocache = 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 148 "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_COMMENTEND = 8; const TP_COMMENTSTART = 9; const TP_SINGLEQUOTE = 10; const TP_LITERALSTART = 11; const TP_LITERALEND = 12; const TP_LDELIMTAG = 13; const TP_RDELIMTAG = 14; const TP_LDELSLASH = 15; const TP_LDEL = 16; const TP_RDEL = 17; const TP_ISIN = 18; const TP_AS = 19; const TP_BOOLEAN = 20; const TP_NULL = 21; const TP_IDENTITY = 22; const TP_NONEIDENTITY = 23; const TP_EQUALS = 24; const TP_NOTEQUALS = 25; const TP_GREATEREQUAL = 26; const TP_LESSEQUAL = 27; const TP_GREATERTHAN = 28; const TP_LESSTHAN = 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 YY_NO_ACTION = 472; const YY_ACCEPT_ACTION = 471; const YY_ERROR_ACTION = 470; /* 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 = 1095; static public $yy_action = array( /* 0 */ 277, 283, 284, 10, 13, 270, 276, 7, 6, 268, /* 10 */ 269, 2, 5, 27, 277, 283, 284, 10, 13, 270, /* 20 */ 276, 7, 6, 268, 269, 2, 5, 172, 282, 277, /* 30 */ 283, 284, 10, 13, 270, 276, 7, 6, 268, 269, /* 40 */ 2, 5, 63, 169, 44, 63, 27, 25, 14, 278, /* 50 */ 136, 14, 257, 258, 152, 257, 258, 202, 210, 75, /* 60 */ 175, 209, 11, 240, 280, 69, 37, 68, 44, 214, /* 70 */ 224, 135, 15, 471, 94, 204, 12, 151, 16, 29, /* 80 */ 33, 16, 205, 176, 46, 42, 176, 66, 42, 173, /* 90 */ 72, 229, 51, 59, 63, 51, 59, 280, 217, 161, /* 100 */ 14, 32, 155, 150, 257, 258, 230, 76, 277, 283, /* 110 */ 284, 10, 13, 270, 276, 7, 6, 268, 269, 2, /* 120 */ 5, 63, 206, 292, 293, 193, 260, 14, 29, 30, /* 130 */ 16, 257, 258, 266, 213, 176, 294, 42, 49, 66, /* 140 */ 9, 11, 37, 63, 51, 59, 250, 125, 127, 14, /* 150 */ 76, 161, 229, 257, 258, 12, 221, 16, 252, 288, /* 160 */ 46, 101, 176, 264, 42, 265, 65, 230, 72, 260, /* 170 */ 189, 51, 59, 51, 19, 35, 225, 4, 154, 16, /* 180 */ 120, 229, 164, 27, 176, 164, 42, 250, 66, 243, /* 190 */ 174, 76, 215, 51, 59, 63, 230, 151, 195, 236, /* 200 */ 45, 14, 76, 229, 264, 257, 258, 250, 256, 58, /* 210 */ 260, 76, 292, 293, 88, 179, 160, 63, 230, 159, /* 220 */ 178, 260, 101, 14, 264, 294, 173, 257, 258, 29, /* 230 */ 260, 16, 218, 239, 280, 271, 176, 342, 42, 130, /* 240 */ 66, 174, 259, 72, 263, 51, 59, 3, 51, 27, /* 250 */ 235, 29, 156, 16, 76, 192, 164, 26, 176, 211, /* 260 */ 42, 174, 72, 183, 17, 292, 293, 51, 59, 63, /* 270 */ 23, 164, 250, 260, 158, 14, 76, 106, 294, 257, /* 280 */ 258, 39, 253, 33, 252, 288, 157, 97, 342, 264, /* 290 */ 272, 63, 238, 47, 250, 260, 116, 14, 76, 242, /* 300 */ 280, 257, 258, 4, 114, 16, 252, 288, 164, 101, /* 310 */ 176, 264, 42, 43, 66, 281, 72, 260, 200, 51, /* 320 */ 59, 51, 218, 27, 229, 4, 161, 16, 171, 279, /* 330 */ 194, 17, 176, 233, 42, 188, 66, 3, 296, 230, /* 340 */ 31, 51, 59, 63, 106, 17, 17, 164, 45, 14, /* 350 */ 164, 24, 149, 257, 258, 1, 21, 186, 106, 106, /* 360 */ 40, 76, 52, 148, 228, 274, 297, 298, 285, 273, /* 370 */ 299, 286, 17, 54, 280, 227, 157, 29, 267, 16, /* 380 */ 260, 229, 212, 47, 176, 106, 42, 272, 72, 143, /* 390 */ 231, 144, 197, 51, 59, 153, 230, 63, 164, 287, /* 400 */ 165, 139, 240, 14, 240, 164, 36, 257, 258, 164, /* 410 */ 164, 164, 40, 20, 39, 253, 228, 274, 297, 298, /* 420 */ 285, 273, 299, 286, 164, 44, 174, 18, 110, 174, /* 430 */ 63, 29, 100, 16, 22, 43, 14, 115, 176, 182, /* 440 */ 257, 258, 72, 290, 109, 164, 250, 51, 59, 129, /* 450 */ 76, 27, 145, 151, 165, 60, 250, 164, 252, 288, /* 460 */ 76, 104, 240, 264, 29, 240, 295, 237, 275, 260, /* 470 */ 290, 176, 134, 264, 248, 72, 151, 38, 253, 260, /* 480 */ 51, 59, 250, 141, 58, 240, 76, 165, 263, 90, /* 490 */ 223, 62, 99, 339, 198, 288, 250, 101, 58, 264, /* 500 */ 76, 113, 199, 85, 279, 260, 290, 102, 198, 288, /* 510 */ 271, 101, 234, 264, 61, 23, 72, 111, 250, 260, /* 520 */ 58, 51, 76, 103, 271, 82, 138, 237, 247, 290, /* 530 */ 198, 288, 290, 101, 128, 264, 250, 207, 58, 240, /* 540 */ 76, 260, 237, 89, 174, 95, 271, 240, 198, 288, /* 550 */ 250, 101, 58, 264, 76, 34, 98, 93, 237, 260, /* 560 */ 219, 140, 198, 288, 271, 101, 263, 264, 250, 131, /* 570 */ 58, 290, 76, 260, 263, 91, 132, 70, 271, 196, /* 580 */ 198, 288, 133, 101, 191, 264, 246, 168, 81, 240, /* 590 */ 67, 260, 50, 79, 71, 240, 271, 250, 245, 56, /* 600 */ 22, 76, 252, 288, 84, 101, 208, 264, 80, 198, /* 610 */ 288, 216, 101, 260, 264, 250, 291, 58, 251, 76, /* 620 */ 260, 142, 86, 255, 261, 271, 73, 198, 288, 250, /* 630 */ 101, 58, 264, 76, 220, 28, 92, 226, 260, 241, /* 640 */ 262, 198, 288, 271, 101, 185, 264, 250, 328, 112, /* 650 */ 203, 76, 260, 184, 177, 63, 64, 271, 180, 252, /* 660 */ 288, 14, 101, 181, 264, 257, 258, 232, 170, 41, /* 670 */ 260, 67, 259, 53, 79, 71, 77, 279, 162, 303, /* 680 */ 74, 254, 304, 252, 288, 8, 101, 244, 264, 29, /* 690 */ 48, 250, 187, 280, 260, 76, 176, 119, 280, 280, /* 700 */ 72, 280, 280, 249, 166, 51, 59, 67, 264, 53, /* 710 */ 79, 71, 163, 280, 260, 280, 280, 280, 280, 252, /* 720 */ 288, 250, 101, 57, 264, 76, 280, 280, 83, 280, /* 730 */ 260, 280, 280, 198, 288, 280, 101, 280, 264, 250, /* 740 */ 280, 58, 280, 76, 260, 280, 87, 280, 280, 271, /* 750 */ 280, 198, 288, 280, 101, 280, 264, 280, 280, 280, /* 760 */ 280, 280, 260, 280, 280, 40, 280, 271, 280, 228, /* 770 */ 274, 297, 298, 285, 273, 299, 286, 280, 280, 250, /* 780 */ 280, 107, 280, 76, 280, 280, 280, 280, 280, 280, /* 790 */ 280, 252, 288, 280, 101, 280, 264, 280, 280, 289, /* 800 */ 280, 250, 260, 55, 78, 76, 280, 280, 280, 280, /* 810 */ 164, 280, 280, 252, 288, 250, 101, 107, 264, 76, /* 820 */ 280, 280, 280, 280, 260, 280, 280, 252, 288, 280, /* 830 */ 101, 280, 264, 280, 280, 167, 280, 280, 260, 280, /* 840 */ 280, 250, 280, 107, 280, 76, 280, 280, 280, 280, /* 850 */ 280, 280, 280, 252, 288, 250, 101, 112, 264, 76, /* 860 */ 280, 190, 280, 280, 260, 280, 280, 252, 288, 280, /* 870 */ 101, 250, 264, 107, 280, 76, 280, 280, 260, 280, /* 880 */ 280, 280, 280, 252, 288, 280, 101, 302, 264, 280, /* 890 */ 280, 201, 280, 250, 260, 137, 222, 76, 280, 280, /* 900 */ 280, 280, 280, 280, 280, 252, 288, 250, 101, 118, /* 910 */ 264, 76, 280, 280, 250, 280, 260, 280, 76, 252, /* 920 */ 288, 280, 101, 280, 264, 280, 252, 288, 280, 96, /* 930 */ 260, 264, 250, 280, 105, 280, 76, 260, 280, 280, /* 940 */ 280, 280, 280, 280, 252, 288, 250, 101, 117, 264, /* 950 */ 76, 280, 280, 280, 280, 260, 280, 280, 252, 288, /* 960 */ 280, 101, 250, 264, 124, 280, 76, 280, 280, 260, /* 970 */ 280, 280, 280, 280, 252, 288, 250, 101, 126, 264, /* 980 */ 76, 280, 280, 280, 280, 260, 280, 280, 252, 288, /* 990 */ 250, 101, 147, 264, 76, 280, 280, 250, 280, 260, /* 1000 */ 280, 76, 252, 288, 280, 101, 280, 264, 280, 300, /* 1010 */ 301, 280, 280, 260, 264, 250, 280, 122, 280, 76, /* 1020 */ 260, 280, 280, 280, 280, 280, 280, 252, 288, 250, /* 1030 */ 101, 123, 264, 76, 280, 280, 280, 280, 260, 280, /* 1040 */ 280, 252, 288, 250, 101, 146, 264, 76, 280, 280, /* 1050 */ 280, 280, 260, 280, 280, 252, 288, 250, 101, 121, /* 1060 */ 264, 76, 280, 280, 280, 280, 260, 280, 280, 252, /* 1070 */ 288, 250, 101, 108, 264, 76, 280, 280, 280, 280, /* 1080 */ 260, 280, 280, 252, 288, 280, 101, 280, 264, 280, /* 1090 */ 280, 280, 280, 280, 260, ); static public $yy_lookahead = array( /* 0 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, /* 10 */ 41, 42, 43, 16, 31, 32, 33, 34, 35, 36, /* 20 */ 37, 38, 39, 40, 41, 42, 43, 58, 45, 31, /* 30 */ 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, /* 40 */ 42, 43, 10, 45, 48, 10, 16, 50, 16, 52, /* 50 */ 79, 16, 20, 21, 83, 20, 21, 1, 2, 3, /* 60 */ 4, 5, 30, 92, 67, 9, 46, 11, 48, 13, /* 70 */ 14, 15, 16, 72, 73, 74, 44, 83, 46, 44, /* 80 */ 50, 46, 47, 51, 64, 53, 51, 55, 53, 59, /* 90 */ 55, 1, 60, 61, 10, 60, 61, 67, 8, 67, /* 100 */ 16, 107, 67, 78, 20, 21, 16, 82, 31, 32, /* 110 */ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, /* 120 */ 43, 10, 97, 53, 54, 59, 101, 16, 44, 16, /* 130 */ 46, 20, 21, 67, 1, 51, 66, 53, 100, 55, /* 140 */ 58, 30, 46, 10, 60, 61, 78, 65, 80, 16, /* 150 */ 82, 67, 1, 20, 21, 44, 5, 46, 90, 91, /* 160 */ 64, 93, 51, 95, 53, 104, 55, 16, 55, 101, /* 170 */ 48, 60, 61, 60, 44, 56, 17, 44, 67, 46, /* 180 */ 67, 1, 63, 16, 51, 63, 53, 78, 55, 1, /* 190 */ 68, 82, 12, 60, 61, 10, 16, 83, 78, 90, /* 200 */ 67, 16, 82, 1, 95, 20, 21, 78, 92, 80, /* 210 */ 101, 82, 53, 54, 85, 86, 87, 10, 16, 90, /* 220 */ 91, 101, 93, 16, 95, 66, 59, 20, 21, 44, /* 230 */ 101, 46, 1, 1, 67, 106, 51, 17, 53, 99, /* 240 */ 55, 68, 102, 55, 104, 60, 61, 16, 60, 16, /* 250 */ 78, 44, 67, 46, 82, 67, 63, 49, 51, 47, /* 260 */ 53, 68, 55, 19, 44, 53, 54, 60, 61, 10, /* 270 */ 50, 63, 78, 101, 67, 16, 82, 57, 66, 20, /* 280 */ 21, 56, 105, 50, 90, 91, 55, 93, 68, 95, /* 290 */ 45, 10, 61, 62, 78, 101, 80, 16, 82, 67, /* 300 */ 67, 20, 21, 44, 100, 46, 90, 91, 63, 93, /* 310 */ 51, 95, 53, 69, 55, 89, 55, 101, 55, 60, /* 320 */ 61, 60, 1, 16, 1, 44, 67, 46, 67, 103, /* 330 */ 67, 44, 51, 10, 53, 48, 55, 16, 47, 16, /* 340 */ 56, 60, 61, 10, 57, 44, 44, 63, 67, 16, /* 350 */ 63, 49, 17, 20, 21, 68, 65, 78, 57, 57, /* 360 */ 18, 82, 84, 17, 22, 23, 24, 25, 26, 27, /* 370 */ 28, 29, 44, 84, 67, 47, 55, 44, 17, 46, /* 380 */ 101, 1, 61, 62, 51, 57, 53, 45, 55, 79, /* 390 */ 10, 79, 64, 60, 61, 83, 16, 10, 63, 17, /* 400 */ 67, 84, 92, 16, 92, 63, 16, 20, 21, 63, /* 410 */ 63, 63, 18, 65, 56, 105, 22, 23, 24, 25, /* 420 */ 26, 27, 28, 29, 63, 48, 68, 50, 88, 68, /* 430 */ 10, 44, 77, 46, 44, 69, 16, 100, 51, 45, /* 440 */ 20, 21, 55, 103, 100, 63, 78, 60, 61, 79, /* 450 */ 82, 16, 79, 83, 67, 88, 78, 63, 90, 91, /* 460 */ 82, 93, 92, 95, 44, 92, 45, 112, 90, 101, /* 470 */ 103, 51, 79, 95, 60, 55, 83, 16, 105, 101, /* 480 */ 60, 61, 78, 99, 80, 92, 82, 67, 104, 85, /* 490 */ 17, 88, 77, 17, 90, 91, 78, 93, 80, 95, /* 500 */ 82, 100, 67, 85, 103, 101, 103, 77, 90, 91, /* 510 */ 106, 93, 51, 95, 88, 50, 55, 88, 78, 101, /* 520 */ 80, 60, 82, 77, 106, 85, 79, 112, 67, 103, /* 530 */ 90, 91, 103, 93, 79, 95, 78, 5, 80, 92, /* 540 */ 82, 101, 112, 85, 68, 96, 106, 92, 90, 91, /* 550 */ 78, 93, 80, 95, 82, 70, 88, 85, 112, 101, /* 560 */ 111, 99, 90, 91, 106, 93, 104, 95, 78, 99, /* 570 */ 80, 103, 82, 101, 104, 85, 79, 55, 106, 56, /* 580 */ 90, 91, 79, 93, 67, 95, 62, 75, 67, 92, /* 590 */ 78, 101, 80, 81, 82, 92, 106, 78, 62, 80, /* 600 */ 44, 82, 90, 91, 85, 93, 47, 95, 45, 90, /* 610 */ 91, 67, 93, 101, 95, 78, 67, 80, 51, 82, /* 620 */ 101, 67, 85, 17, 60, 106, 55, 90, 91, 78, /* 630 */ 93, 80, 95, 82, 17, 70, 85, 17, 101, 67, /* 640 */ 67, 90, 91, 106, 93, 67, 95, 78, 17, 80, /* 650 */ 45, 82, 101, 67, 19, 10, 55, 106, 55, 90, /* 660 */ 91, 16, 93, 64, 95, 20, 21, 112, 75, 94, /* 670 */ 101, 78, 102, 80, 81, 82, 97, 103, 109, 110, /* 680 */ 55, 74, 86, 90, 91, 108, 93, 111, 95, 44, /* 690 */ 67, 78, 76, 113, 101, 82, 51, 100, 113, 113, /* 700 */ 55, 113, 113, 90, 75, 60, 61, 78, 95, 80, /* 710 */ 81, 82, 67, 113, 101, 113, 113, 113, 113, 90, /* 720 */ 91, 78, 93, 80, 95, 82, 113, 113, 85, 113, /* 730 */ 101, 113, 113, 90, 91, 113, 93, 113, 95, 78, /* 740 */ 113, 80, 113, 82, 101, 113, 85, 113, 113, 106, /* 750 */ 113, 90, 91, 113, 93, 113, 95, 113, 113, 113, /* 760 */ 113, 113, 101, 113, 113, 18, 113, 106, 113, 22, /* 770 */ 23, 24, 25, 26, 27, 28, 29, 113, 113, 78, /* 780 */ 113, 80, 113, 82, 113, 113, 113, 113, 113, 113, /* 790 */ 113, 90, 91, 113, 93, 113, 95, 113, 113, 98, /* 800 */ 113, 78, 101, 80, 81, 82, 113, 113, 113, 113, /* 810 */ 63, 113, 113, 90, 91, 78, 93, 80, 95, 82, /* 820 */ 113, 113, 113, 113, 101, 113, 113, 90, 91, 113, /* 830 */ 93, 113, 95, 113, 113, 98, 113, 113, 101, 113, /* 840 */ 113, 78, 113, 80, 113, 82, 113, 113, 113, 113, /* 850 */ 113, 113, 113, 90, 91, 78, 93, 80, 95, 82, /* 860 */ 113, 98, 113, 113, 101, 113, 113, 90, 91, 113, /* 870 */ 93, 78, 95, 80, 113, 82, 113, 113, 101, 113, /* 880 */ 113, 113, 113, 90, 91, 113, 93, 110, 95, 113, /* 890 */ 113, 98, 113, 78, 101, 80, 81, 82, 113, 113, /* 900 */ 113, 113, 113, 113, 113, 90, 91, 78, 93, 80, /* 910 */ 95, 82, 113, 113, 78, 113, 101, 113, 82, 90, /* 920 */ 91, 113, 93, 113, 95, 113, 90, 91, 113, 93, /* 930 */ 101, 95, 78, 113, 80, 113, 82, 101, 113, 113, /* 940 */ 113, 113, 113, 113, 90, 91, 78, 93, 80, 95, /* 950 */ 82, 113, 113, 113, 113, 101, 113, 113, 90, 91, /* 960 */ 113, 93, 78, 95, 80, 113, 82, 113, 113, 101, /* 970 */ 113, 113, 113, 113, 90, 91, 78, 93, 80, 95, /* 980 */ 82, 113, 113, 113, 113, 101, 113, 113, 90, 91, /* 990 */ 78, 93, 80, 95, 82, 113, 113, 78, 113, 101, /* 1000 */ 113, 82, 90, 91, 113, 93, 113, 95, 113, 90, /* 1010 */ 91, 113, 113, 101, 95, 78, 113, 80, 113, 82, /* 1020 */ 101, 113, 113, 113, 113, 113, 113, 90, 91, 78, /* 1030 */ 93, 80, 95, 82, 113, 113, 113, 113, 101, 113, /* 1040 */ 113, 90, 91, 78, 93, 80, 95, 82, 113, 113, /* 1050 */ 113, 113, 101, 113, 113, 90, 91, 78, 93, 80, /* 1060 */ 95, 82, 113, 113, 113, 113, 101, 113, 113, 90, /* 1070 */ 91, 78, 93, 80, 95, 82, 113, 113, 113, 113, /* 1080 */ 101, 113, 113, 90, 91, 113, 93, 113, 95, 113, /* 1090 */ 113, 113, 113, 113, 101, ); const YY_SHIFT_USE_DFLT = -32; const YY_SHIFT_MAX = 201; static public $yy_shift_ofst = array( /* 0 */ 56, 111, 32, 133, 32, 32, 32, 32, 32, 32, /* 10 */ 32, 32, 32, 32, 281, 281, 185, 84, 259, 84, /* 20 */ 84, 185, 84, 259, 84, 84, 84, 84, 84, 84, /* 30 */ 84, 84, 84, 84, 84, 84, 84, 35, 333, 207, /* 40 */ 387, 420, 420, 645, 113, 287, 461, 188, 122, 20, /* 50 */ 361, 261, 358, 193, 358, 193, 394, 342, 747, 321, /* 60 */ -3, 30, 167, 380, 307, 435, 435, 476, 202, 202, /* 70 */ 307, 377, 307, 307, 307, 202, -4, -4, 173, 173, /* 80 */ -4, 173, -31, -17, -2, 77, 77, 77, 77, 77, /* 90 */ 77, 77, 77, 77, 56, 231, 212, 159, 233, 323, /* 100 */ 90, 70, 180, 151, 70, 119, 263, 348, 284, 96, /* 110 */ 307, 307, 208, 96, 96, 96, 245, 382, 335, 96, /* 120 */ 390, 346, 347, 347, 347, 625, 347, 347, 173, 173, /* 130 */ -4, -4, 173, 173, 173, 623, 173, 347, 173, 225, /* 140 */ -4, -4, 130, 173, 173, 173, 347, 347, -32, -32, /* 150 */ -32, -32, -32, -32, 220, 328, 302, 232, 301, 244, /* 160 */ 82, 301, 291, 301, 66, 301, 620, 421, 617, 565, /* 170 */ 606, 564, 571, 573, 578, 603, 599, 601, 635, 631, /* 180 */ 586, 567, 485, 522, 532, 465, 414, 473, 521, 544, /* 190 */ 563, 559, 536, 572, 556, 524, 549, 517, 366, 523, /* 200 */ 554, 605, ); const YY_REDUCE_USE_DFLT = -30; const YY_REDUCE_MAX = 153; static public $yy_reduce_ofst = array( /* 0 */ 1, 129, 490, 512, 519, 472, 458, 404, 418, 440, /* 10 */ 537, 551, 643, 661, 629, 593, 569, 737, 723, 763, /* 20 */ 701, 777, 793, 815, 884, 68, 898, 868, 854, 216, /* 30 */ 829, 937, 912, 951, 993, 965, 979, 836, 194, 368, /* 40 */ 919, 109, 613, 378, 25, 312, 172, 120, -29, 140, /* 50 */ 370, 279, 373, 370, 310, 393, -6, -6, -6, 449, /* 60 */ 226, 401, 401, 415, 429, 426, 403, 447, 430, 355, /* 70 */ 340, 384, 403, 367, 468, 446, 384, 462, 503, 497, /* 80 */ 470, 455, 577, 577, 577, 577, 577, 577, 577, 577, /* 90 */ 577, 577, 577, 577, 607, 576, 575, 575, 574, 555, /* 100 */ 555, 575, 555, 555, 575, 114, 579, 114, 114, 570, /* 110 */ 574, 574, 114, 570, 570, 570, 114, 114, 114, 570, /* 120 */ 597, 114, 114, 114, 114, 596, 114, 114, 116, 116, /* 130 */ 61, 61, 116, 116, 116, 616, 116, 114, 116, 177, /* 140 */ 61, 61, 38, 116, 116, 116, 114, 114, 204, 337, /* 150 */ 344, 317, 289, 278, ); static public $yyExpectedTokens = array( /* 0 */ array(1, 2, 3, 4, 5, 9, 11, 13, 14, 15, 16, ), /* 1 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 2 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 3 */ array(1, 10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 4 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 5 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 6 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 7 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 8 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 9 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 10 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 11 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 12 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 13 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 14 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 15 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 16 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 17 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 18 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 19 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 20 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 21 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 22 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 23 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 24 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 25 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 26 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 27 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 28 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 29 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 30 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 31 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 32 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 33 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 34 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 35 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 36 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 37 */ array(10, 16, 20, 21, 44, 46, 47, 51, 53, 55, 60, 61, 67, ), /* 38 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 39 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 40 */ array(10, 16, 20, 21, 44, 46, 51, 55, 60, 61, 67, ), /* 41 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ), /* 42 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ), /* 43 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ), /* 44 */ array(16, 55, 60, 67, ), /* 45 */ array(44, 48, 57, 63, 68, ), /* 46 */ array(16, 51, 55, 60, 67, ), /* 47 */ array(1, 55, 60, 67, ), /* 48 */ array(48, 63, 68, ), /* 49 */ array(46, 48, 64, ), /* 50 */ array(17, 63, 68, ), /* 51 */ array(55, 60, 67, ), /* 52 */ array(56, 68, ), /* 53 */ array(63, 68, ), /* 54 */ array(56, 68, ), /* 55 */ array(63, 68, ), /* 56 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ), /* 57 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ), /* 58 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 63, ), /* 59 */ array(1, 16, 55, 61, 62, ), /* 60 */ array(16, 50, 52, 67, ), /* 61 */ array(16, 50, 59, 67, ), /* 62 */ array(16, 59, 67, ), /* 63 */ array(1, 10, 16, ), /* 64 */ array(16, 67, ), /* 65 */ array(16, 67, ), /* 66 */ array(16, 67, ), /* 67 */ array(17, 68, ), /* 68 */ array(1, 16, ), /* 69 */ array(1, 16, ), /* 70 */ array(16, 67, ), /* 71 */ array(48, 50, ), /* 72 */ array(16, 67, ), /* 73 */ array(16, 67, ), /* 74 */ array(16, 67, ), /* 75 */ array(1, 16, ), /* 76 */ array(48, ), /* 77 */ array(48, ), /* 78 */ array(68, ), /* 79 */ array(68, ), /* 80 */ array(48, ), /* 81 */ array(68, ), /* 82 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 58, ), /* 83 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ), /* 84 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ), /* 85 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 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(1, 2, 3, 4, 5, 9, 11, 13, 14, 15, 16, ), /* 95 */ array(1, 16, 55, 61, 62, ), /* 96 */ array(47, 53, 54, 66, ), /* 97 */ array(17, 53, 54, 66, ), /* 98 */ array(16, 50, 67, ), /* 99 */ array(1, 10, 16, ), /* 100 */ array(1, 8, 16, ), /* 101 */ array(53, 54, 66, ), /* 102 */ array(1, 12, 16, ), /* 103 */ array(1, 5, 16, ), /* 104 */ array(53, 54, 66, ), /* 105 */ array(56, 63, ), /* 106 */ array(55, 67, ), /* 107 */ array(63, 65, ), /* 108 */ array(56, 63, ), /* 109 */ array(46, 64, ), /* 110 */ array(16, 67, ), /* 111 */ array(16, 67, ), /* 112 */ array(49, 63, ), /* 113 */ array(46, 64, ), /* 114 */ array(46, 64, ), /* 115 */ array(46, 64, ), /* 116 */ array(45, 63, ), /* 117 */ array(17, 63, ), /* 118 */ array(17, 63, ), /* 119 */ array(46, 64, ), /* 120 */ array(16, 44, ), /* 121 */ array(17, 63, ), /* 122 */ array(63, ), /* 123 */ array(63, ), /* 124 */ array(63, ), /* 125 */ array(55, ), /* 126 */ array(63, ), /* 127 */ array(63, ), /* 128 */ array(68, ), /* 129 */ array(68, ), /* 130 */ array(48, ), /* 131 */ array(48, ), /* 132 */ array(68, ), /* 133 */ array(68, ), /* 134 */ array(68, ), /* 135 */ array(67, ), /* 136 */ array(68, ), /* 137 */ array(63, ), /* 138 */ array(68, ), /* 139 */ array(56, ), /* 140 */ array(48, ), /* 141 */ array(48, ), /* 142 */ array(44, ), /* 143 */ array(68, ), /* 144 */ array(68, ), /* 145 */ array(68, ), /* 146 */ array(63, ), /* 147 */ array(63, ), /* 148 */ array(), /* 149 */ array(), /* 150 */ array(), /* 151 */ array(), /* 152 */ array(), /* 153 */ array(), /* 154 */ array(17, 44, 50, 57, 68, ), /* 155 */ array(44, 47, 57, 64, ), /* 156 */ array(44, 49, 57, ), /* 157 */ array(1, 67, ), /* 158 */ array(44, 57, ), /* 159 */ array(19, 69, ), /* 160 */ array(58, 65, ), /* 161 */ array(44, 57, ), /* 162 */ array(47, 65, ), /* 163 */ array(44, 57, ), /* 164 */ array(59, 67, ), /* 165 */ array(44, 57, ), /* 166 */ array(17, ), /* 167 */ array(45, ), /* 168 */ array(17, ), /* 169 */ array(70, ), /* 170 */ array(17, ), /* 171 */ array(60, ), /* 172 */ array(55, ), /* 173 */ array(67, ), /* 174 */ array(67, ), /* 175 */ array(55, ), /* 176 */ array(64, ), /* 177 */ array(55, ), /* 178 */ array(19, ), /* 179 */ array(17, ), /* 180 */ array(67, ), /* 181 */ array(51, ), /* 182 */ array(70, ), /* 183 */ array(55, ), /* 184 */ array(5, ), /* 185 */ array(50, ), /* 186 */ array(60, ), /* 187 */ array(17, ), /* 188 */ array(67, ), /* 189 */ array(67, ), /* 190 */ array(45, ), /* 191 */ array(47, ), /* 192 */ array(62, ), /* 193 */ array(67, ), /* 194 */ array(44, ), /* 195 */ array(62, ), /* 196 */ array(67, ), /* 197 */ array(67, ), /* 198 */ array(69, ), /* 199 */ array(56, ), /* 200 */ array(67, ), /* 201 */ array(45, ), /* 202 */ array(), /* 203 */ array(), /* 204 */ array(), /* 205 */ array(), /* 206 */ array(), /* 207 */ array(), /* 208 */ array(), /* 209 */ array(), /* 210 */ array(), /* 211 */ array(), /* 212 */ array(), /* 213 */ array(), /* 214 */ array(), /* 215 */ array(), /* 216 */ array(), /* 217 */ array(), /* 218 */ array(), /* 219 */ array(), /* 220 */ array(), /* 221 */ array(), /* 222 */ array(), /* 223 */ array(), /* 224 */ array(), /* 225 */ array(), /* 226 */ array(), /* 227 */ array(), /* 228 */ array(), /* 229 */ array(), /* 230 */ array(), /* 231 */ array(), /* 232 */ array(), /* 233 */ array(), /* 234 */ array(), /* 235 */ array(), /* 236 */ array(), /* 237 */ array(), /* 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(), ); static public $yy_default = array( /* 0 */ 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, /* 10 */ 470, 470, 470, 470, 470, 470, 451, 410, 470, 410, /* 20 */ 410, 470, 410, 470, 470, 470, 470, 470, 470, 470, /* 30 */ 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, /* 40 */ 470, 470, 470, 470, 470, 339, 470, 470, 339, 375, /* 50 */ 470, 470, 339, 339, 339, 339, 420, 420, 420, 470, /* 60 */ 470, 385, 385, 470, 470, 470, 470, 359, 470, 470, /* 70 */ 470, 378, 470, 470, 470, 470, 378, 370, 339, 339, /* 80 */ 371, 339, 470, 470, 470, 424, 433, 434, 327, 430, /* 90 */ 429, 425, 418, 426, 305, 470, 470, 470, 470, 470, /* 100 */ 470, 347, 470, 470, 415, 470, 470, 409, 470, 402, /* 110 */ 332, 333, 454, 383, 404, 403, 470, 470, 470, 401, /* 120 */ 385, 470, 355, 345, 453, 470, 452, 330, 325, 320, /* 130 */ 376, 373, 321, 323, 322, 470, 334, 340, 319, 349, /* 140 */ 372, 398, 385, 335, 324, 326, 354, 421, 385, 385, /* 150 */ 385, 414, 414, 414, 346, 470, 346, 470, 416, 350, /* 160 */ 470, 346, 470, 435, 470, 470, 470, 470, 470, 470, /* 170 */ 470, 470, 470, 470, 470, 470, 360, 470, 353, 343, /* 180 */ 470, 470, 365, 470, 470, 342, 470, 470, 470, 470, /* 190 */ 470, 470, 470, 470, 374, 470, 470, 470, 350, 396, /* 200 */ 470, 470, 318, 407, 306, 393, 405, 315, 391, 317, /* 210 */ 316, 392, 369, 463, 312, 311, 336, 310, 465, 456, /* 220 */ 461, 314, 341, 309, 313, 389, 377, 390, 443, 468, /* 230 */ 469, 367, 466, 366, 387, 388, 352, 467, 368, 462, /* 240 */ 338, 411, 459, 464, 455, 457, 458, 386, 382, 351, /* 250 */ 359, 361, 350, 413, 307, 308, 337, 362, 363, 384, /* 260 */ 380, 381, 379, 399, 364, 400, 412, 460, 427, 428, /* 270 */ 431, 417, 365, 442, 444, 436, 432, 445, 331, 395, /* 280 */ 396, 329, 419, 446, 447, 441, 440, 397, 353, 408, /* 290 */ 394, 348, 356, 357, 358, 406, 448, 437, 438, 439, /* 300 */ 423, 422, 450, 449, 344, ); /* 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 = 114; const YYSTACKDEPTH = 100; const YYNSTATE = 305; const YYNRULE = 165; const YYERRORSYMBOL = 71; 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, /* COMMENTEND => OTHER */ 1, /* COMMENTSTART => 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, /* 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 */ ); /** * 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', 'COMMENTEND', 'COMMENTSTART', 'SINGLEQUOTE', 'LITERALSTART', 'LITERALEND', 'LDELIMTAG', 'RDELIMTAG', 'LDELSLASH', 'LDEL', 'RDEL', 'ISIN', 'AS', 'BOOLEAN', 'NULL', 'IDENTITY', 'NONEIDENTITY', 'EQUALS', 'NOTEQUALS', 'GREATEREQUAL', 'LESSEQUAL', 'GREATERTHAN', 'LESSTHAN', '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', 'error', 'start', 'template', 'template_element', 'smartytag', 'smartyclosetag', '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 ::= COMMENTSTART text COMMENTEND", /* 6 */ "template_element ::= LITERALSTART text LITERALEND", /* 7 */ "template_element ::= LDELIMTAG", /* 8 */ "template_element ::= RDELIMTAG", /* 9 */ "template_element ::= PHP text SHORTTAGEND", /* 10 */ "template_element ::= SHORTTAGSTART DOLLAR ID SHORTTAGEND", /* 11 */ "template_element ::= XML", /* 12 */ "template_element ::= SHORTTAGEND", /* 13 */ "template_element ::= OTHER", /* 14 */ "smartytag ::= variable attributes", /* 15 */ "smartytag ::= expr attributes", /* 16 */ "smartytag ::= ternary attributes", /* 17 */ "smartytag ::= varindexed EQUAL expr attributes", /* 18 */ "smartytag ::= varindexed EQUAL ternary attributes", /* 19 */ "smartytag ::= ID attributes", /* 20 */ "smartytag ::= ID PTR ID attributes", /* 21 */ "smartytag ::= ID modifier modparameters attributes", /* 22 */ "smartytag ::= ID SPACE ifexprs", /* 23 */ "smartytag ::= ID SPACE statement", /* 24 */ "smartytag ::= ID SPACE statements SEMICOLON ifexprs SEMICOLON DOLLAR varvar foraction", /* 25 */ "foraction ::= EQUAL expr", /* 26 */ "foraction ::= INCDEC", /* 27 */ "smartytag ::= ID SPACE value AS DOLLAR varvar", /* 28 */ "smartytag ::= ID SPACE array AS DOLLAR varvar", /* 29 */ "smartyclosetag ::= ID attributes", /* 30 */ "smartyclosetag ::= ID modifier modparameters attributes", /* 31 */ "smartyclosetag ::= ID PTR ID", /* 32 */ "attributes ::= attributes attribute", /* 33 */ "attributes ::= attribute", /* 34 */ "attributes ::=", /* 35 */ "attribute ::= SPACE ID EQUAL expr", /* 36 */ "attribute ::= SPACE ID EQUAL ternary", /* 37 */ "attribute ::= SPACE ID", /* 38 */ "statements ::= statement", /* 39 */ "statements ::= statements COMMA statement", /* 40 */ "statement ::= DOLLAR varvar EQUAL expr", /* 41 */ "expr ::= ID", /* 42 */ "expr ::= exprs", /* 43 */ "expr ::= DOLLAR ID COLON ID", /* 44 */ "expr ::= expr modifier modparameters", /* 45 */ "exprs ::= value", /* 46 */ "exprs ::= UNIMATH value", /* 47 */ "exprs ::= exprs math value", /* 48 */ "exprs ::= array", /* 49 */ "ternary ::= OPENP ifexprs CLOSEP QMARK expr COLON expr", /* 50 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr", /* 51 */ "math ::= UNIMATH", /* 52 */ "math ::= MATH", /* 53 */ "math ::= ANDSYM", /* 54 */ "value ::= variable", /* 55 */ "value ::= INTEGER", /* 56 */ "value ::= INTEGER DOT INTEGER", /* 57 */ "value ::= BOOLEAN", /* 58 */ "value ::= NULL", /* 59 */ "value ::= function", /* 60 */ "value ::= OPENP expr CLOSEP", /* 61 */ "value ::= SINGLEQUOTE text SINGLEQUOTE", /* 62 */ "value ::= SINGLEQUOTE SINGLEQUOTE", /* 63 */ "value ::= QUOTE doublequoted QUOTE", /* 64 */ "value ::= QUOTE QUOTE", /* 65 */ "value ::= ID DOUBLECOLON method", /* 66 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP", /* 67 */ "value ::= ID DOUBLECOLON method objectchain", /* 68 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain", /* 69 */ "value ::= ID DOUBLECOLON ID", /* 70 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex", /* 71 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain", /* 72 */ "value ::= LDEL smartytag RDEL", /* 73 */ "variable ::= varindexed", /* 74 */ "variable ::= DOLLAR varvar AT ID", /* 75 */ "variable ::= object", /* 76 */ "variable ::= HATCH ID HATCH", /* 77 */ "variable ::= HATCH variable HATCH", /* 78 */ "varindexed ::= DOLLAR varvar arrayindex", /* 79 */ "arrayindex ::= arrayindex indexdef", /* 80 */ "arrayindex ::=", /* 81 */ "indexdef ::= DOT ID", /* 82 */ "indexdef ::= DOT INTEGER", /* 83 */ "indexdef ::= DOT variable", /* 84 */ "indexdef ::= DOT LDEL exprs RDEL", /* 85 */ "indexdef ::= OPENB ID CLOSEB", /* 86 */ "indexdef ::= OPENB ID DOT ID CLOSEB", /* 87 */ "indexdef ::= OPENB exprs CLOSEB", /* 88 */ "indexdef ::= OPENB CLOSEB", /* 89 */ "varvar ::= varvarele", /* 90 */ "varvar ::= varvar varvarele", /* 91 */ "varvarele ::= ID", /* 92 */ "varvarele ::= LDEL expr RDEL", /* 93 */ "object ::= varindexed objectchain", /* 94 */ "objectchain ::= objectelement", /* 95 */ "objectchain ::= objectchain objectelement", /* 96 */ "objectelement ::= PTR ID arrayindex", /* 97 */ "objectelement ::= PTR variable arrayindex", /* 98 */ "objectelement ::= PTR LDEL expr RDEL arrayindex", /* 99 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex", /* 100 */ "objectelement ::= PTR method", /* 101 */ "function ::= ID OPENP params CLOSEP", /* 102 */ "method ::= ID OPENP params CLOSEP", /* 103 */ "params ::= expr COMMA params", /* 104 */ "params ::= expr", /* 105 */ "params ::=", /* 106 */ "modifier ::= VERT AT ID", /* 107 */ "modifier ::= VERT ID", /* 108 */ "modparameters ::= modparameters modparameter", /* 109 */ "modparameters ::=", /* 110 */ "modparameter ::= COLON exprs", /* 111 */ "modparameter ::= COLON ID", /* 112 */ "ifexprs ::= ifexpr", /* 113 */ "ifexprs ::= NOT ifexprs", /* 114 */ "ifexprs ::= OPENP ifexprs CLOSEP", /* 115 */ "ifexpr ::= expr", /* 116 */ "ifexpr ::= expr ifcond expr", /* 117 */ "ifexpr ::= expr ISIN array", /* 118 */ "ifexpr ::= expr ISIN value", /* 119 */ "ifexpr ::= ifexprs lop ifexprs", /* 120 */ "ifexpr ::= ifexprs ISDIVBY ifexprs", /* 121 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs", /* 122 */ "ifexpr ::= ifexprs ISEVEN", /* 123 */ "ifexpr ::= ifexprs ISNOTEVEN", /* 124 */ "ifexpr ::= ifexprs ISEVENBY ifexprs", /* 125 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs", /* 126 */ "ifexpr ::= ifexprs ISODD", /* 127 */ "ifexpr ::= ifexprs ISNOTODD", /* 128 */ "ifexpr ::= ifexprs ISODDBY ifexprs", /* 129 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs", /* 130 */ "ifexpr ::= value INSTANCEOF ID", /* 131 */ "ifexpr ::= value INSTANCEOF value", /* 132 */ "ifcond ::= EQUALS", /* 133 */ "ifcond ::= NOTEQUALS", /* 134 */ "ifcond ::= GREATERTHAN", /* 135 */ "ifcond ::= LESSTHAN", /* 136 */ "ifcond ::= GREATEREQUAL", /* 137 */ "ifcond ::= LESSEQUAL", /* 138 */ "ifcond ::= IDENTITY", /* 139 */ "ifcond ::= NONEIDENTITY", /* 140 */ "lop ::= LAND", /* 141 */ "lop ::= LOR", /* 142 */ "lop ::= LXOR", /* 143 */ "array ::= OPENB arrayelements CLOSEB", /* 144 */ "arrayelements ::= arrayelement", /* 145 */ "arrayelements ::= arrayelements COMMA arrayelement", /* 146 */ "arrayelements ::=", /* 147 */ "arrayelement ::= expr APTR expr", /* 148 */ "arrayelement ::= ID APTR expr", /* 149 */ "arrayelement ::= expr", /* 150 */ "doublequoted ::= doublequoted doublequotedcontent", /* 151 */ "doublequoted ::= doublequotedcontent", /* 152 */ "doublequotedcontent ::= BACKTICK ID BACKTICK", /* 153 */ "doublequotedcontent ::= BACKTICK variable BACKTICK", /* 154 */ "doublequotedcontent ::= DOLLAR ID", /* 155 */ "doublequotedcontent ::= LDEL expr RDEL", /* 156 */ "doublequotedcontent ::= LDEL smartytag RDEL", /* 157 */ "doublequotedcontent ::= DOLLAR OTHER", /* 158 */ "doublequotedcontent ::= LDEL OTHER", /* 159 */ "doublequotedcontent ::= BACKTICK OTHER", /* 160 */ "doublequotedcontent ::= OTHER", /* 161 */ "text ::= text textelement", /* 162 */ "text ::= textelement", /* 163 */ "textelement ::= OTHER", /* 164 */ "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' => 72, 'rhs' => 1 ), array( 'lhs' => 73, 'rhs' => 1 ), array( 'lhs' => 73, 'rhs' => 2 ), array( 'lhs' => 74, 'rhs' => 3 ), array( 'lhs' => 74, 'rhs' => 3 ), array( 'lhs' => 74, 'rhs' => 3 ), array( 'lhs' => 74, 'rhs' => 3 ), array( 'lhs' => 74, 'rhs' => 1 ), array( 'lhs' => 74, 'rhs' => 1 ), array( 'lhs' => 74, 'rhs' => 3 ), array( 'lhs' => 74, 'rhs' => 4 ), array( 'lhs' => 74, 'rhs' => 1 ), array( 'lhs' => 74, 'rhs' => 1 ), array( 'lhs' => 74, 'rhs' => 1 ), array( 'lhs' => 75, 'rhs' => 2 ), array( 'lhs' => 75, 'rhs' => 2 ), array( 'lhs' => 75, 'rhs' => 2 ), array( 'lhs' => 75, 'rhs' => 4 ), array( 'lhs' => 75, 'rhs' => 4 ), array( 'lhs' => 75, 'rhs' => 2 ), array( 'lhs' => 75, 'rhs' => 4 ), array( 'lhs' => 75, 'rhs' => 4 ), array( 'lhs' => 75, 'rhs' => 3 ), array( 'lhs' => 75, 'rhs' => 3 ), array( 'lhs' => 75, 'rhs' => 9 ), array( 'lhs' => 89, 'rhs' => 2 ), array( 'lhs' => 89, 'rhs' => 1 ), array( 'lhs' => 75, 'rhs' => 6 ), array( 'lhs' => 75, 'rhs' => 6 ), array( 'lhs' => 76, 'rhs' => 2 ), array( 'lhs' => 76, 'rhs' => 4 ), array( 'lhs' => 76, 'rhs' => 3 ), array( 'lhs' => 79, 'rhs' => 2 ), array( 'lhs' => 79, 'rhs' => 1 ), array( 'lhs' => 79, 'rhs' => 0 ), array( 'lhs' => 92, 'rhs' => 4 ), array( 'lhs' => 92, 'rhs' => 4 ), array( 'lhs' => 92, 'rhs' => 2 ), array( 'lhs' => 87, 'rhs' => 1 ), array( 'lhs' => 87, 'rhs' => 3 ), array( 'lhs' => 86, 'rhs' => 4 ), array( 'lhs' => 80, 'rhs' => 1 ), array( 'lhs' => 80, 'rhs' => 1 ), array( 'lhs' => 80, 'rhs' => 4 ), array( 'lhs' => 80, 'rhs' => 3 ), array( 'lhs' => 93, 'rhs' => 1 ), array( 'lhs' => 93, 'rhs' => 2 ), array( 'lhs' => 93, 'rhs' => 3 ), array( 'lhs' => 93, 'rhs' => 1 ), array( 'lhs' => 81, 'rhs' => 7 ), array( 'lhs' => 81, 'rhs' => 7 ), array( 'lhs' => 94, 'rhs' => 1 ), array( 'lhs' => 94, 'rhs' => 1 ), array( 'lhs' => 94, 'rhs' => 1 ), array( 'lhs' => 90, 'rhs' => 1 ), array( 'lhs' => 90, 'rhs' => 1 ), array( 'lhs' => 90, 'rhs' => 3 ), array( 'lhs' => 90, 'rhs' => 1 ), array( 'lhs' => 90, 'rhs' => 1 ), array( 'lhs' => 90, 'rhs' => 1 ), array( 'lhs' => 90, 'rhs' => 3 ), array( 'lhs' => 90, 'rhs' => 3 ), array( 'lhs' => 90, 'rhs' => 2 ), array( 'lhs' => 90, 'rhs' => 3 ), array( 'lhs' => 90, 'rhs' => 2 ), array( 'lhs' => 90, 'rhs' => 3 ), array( 'lhs' => 90, 'rhs' => 7 ), array( 'lhs' => 90, 'rhs' => 4 ), array( 'lhs' => 90, 'rhs' => 8 ), array( 'lhs' => 90, 'rhs' => 3 ), array( 'lhs' => 90, 'rhs' => 5 ), array( 'lhs' => 90, 'rhs' => 6 ), array( 'lhs' => 90, 'rhs' => 3 ), array( 'lhs' => 78, 'rhs' => 1 ), array( 'lhs' => 78, 'rhs' => 4 ), array( 'lhs' => 78, 'rhs' => 1 ), array( 'lhs' => 78, 'rhs' => 3 ), array( 'lhs' => 78, 'rhs' => 3 ), array( 'lhs' => 82, 'rhs' => 3 ), array( 'lhs' => 100, 'rhs' => 2 ), array( 'lhs' => 100, 'rhs' => 0 ), array( 'lhs' => 102, 'rhs' => 2 ), array( 'lhs' => 102, 'rhs' => 2 ), array( 'lhs' => 102, 'rhs' => 2 ), array( 'lhs' => 102, 'rhs' => 4 ), array( 'lhs' => 102, 'rhs' => 3 ), array( 'lhs' => 102, 'rhs' => 5 ), array( 'lhs' => 102, 'rhs' => 3 ), array( 'lhs' => 102, 'rhs' => 2 ), array( 'lhs' => 88, 'rhs' => 1 ), array( 'lhs' => 88, 'rhs' => 2 ), array( 'lhs' => 103, 'rhs' => 1 ), array( 'lhs' => 103, 'rhs' => 3 ), array( 'lhs' => 101, 'rhs' => 2 ), array( 'lhs' => 99, 'rhs' => 1 ), array( 'lhs' => 99, 'rhs' => 2 ), array( 'lhs' => 104, 'rhs' => 3 ), array( 'lhs' => 104, 'rhs' => 3 ), array( 'lhs' => 104, 'rhs' => 5 ), array( 'lhs' => 104, 'rhs' => 6 ), array( 'lhs' => 104, 'rhs' => 2 ), array( 'lhs' => 95, 'rhs' => 4 ), array( 'lhs' => 97, 'rhs' => 4 ), array( 'lhs' => 98, 'rhs' => 3 ), array( 'lhs' => 98, 'rhs' => 1 ), array( 'lhs' => 98, 'rhs' => 0 ), array( 'lhs' => 83, 'rhs' => 3 ), array( 'lhs' => 83, 'rhs' => 2 ), array( 'lhs' => 84, 'rhs' => 2 ), array( 'lhs' => 84, 'rhs' => 0 ), array( 'lhs' => 105, 'rhs' => 2 ), array( 'lhs' => 105, 'rhs' => 2 ), array( 'lhs' => 85, 'rhs' => 1 ), array( 'lhs' => 85, 'rhs' => 2 ), array( 'lhs' => 85, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 1 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 2 ), array( 'lhs' => 106, 'rhs' => 2 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 2 ), array( 'lhs' => 106, 'rhs' => 2 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 107, 'rhs' => 1 ), array( 'lhs' => 107, 'rhs' => 1 ), array( 'lhs' => 107, 'rhs' => 1 ), array( 'lhs' => 107, 'rhs' => 1 ), array( 'lhs' => 107, 'rhs' => 1 ), array( 'lhs' => 107, 'rhs' => 1 ), array( 'lhs' => 107, 'rhs' => 1 ), array( 'lhs' => 107, 'rhs' => 1 ), array( 'lhs' => 108, 'rhs' => 1 ), array( 'lhs' => 108, 'rhs' => 1 ), array( 'lhs' => 108, 'rhs' => 1 ), array( 'lhs' => 91, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 0 ), array( 'lhs' => 110, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 96, 'rhs' => 2 ), array( 'lhs' => 96, 'rhs' => 1 ), array( 'lhs' => 111, 'rhs' => 3 ), array( 'lhs' => 111, 'rhs' => 3 ), array( 'lhs' => 111, 'rhs' => 2 ), array( 'lhs' => 111, 'rhs' => 3 ), array( 'lhs' => 111, 'rhs' => 3 ), array( 'lhs' => 111, 'rhs' => 2 ), array( 'lhs' => 111, 'rhs' => 2 ), array( 'lhs' => 111, 'rhs' => 2 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 77, 'rhs' => 2 ), array( 'lhs' => 77, 'rhs' => 1 ), array( 'lhs' => 112, 'rhs' => 1 ), array( 'lhs' => 112, '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, 45 => 0, 54 => 0, 55 => 0, 57 => 0, 58 => 0, 59 => 0, 75 => 0, 144 => 0, 1 => 1, 42 => 1, 48 => 1, 51 => 1, 52 => 1, 89 => 1, 112 => 1, 151 => 1, 160 => 1, 162 => 1, 163 => 1, 164 => 1, 2 => 2, 79 => 2, 150 => 2, 158 => 2, 161 => 2, 3 => 3, 4 => 3, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 11 => 11, 12 => 12, 13 => 13, 14 => 14, 15 => 14, 16 => 14, 17 => 17, 18 => 17, 19 => 19, 20 => 20, 21 => 21, 22 => 22, 23 => 23, 24 => 24, 25 => 25, 26 => 26, 33 => 26, 104 => 26, 149 => 26, 27 => 27, 28 => 28, 29 => 29, 30 => 30, 31 => 31, 32 => 32, 34 => 34, 35 => 35, 36 => 35, 37 => 37, 38 => 38, 39 => 39, 40 => 40, 41 => 41, 43 => 43, 44 => 44, 46 => 46, 47 => 47, 49 => 49, 50 => 49, 53 => 53, 56 => 56, 60 => 60, 61 => 61, 62 => 62, 64 => 62, 63 => 63, 65 => 65, 66 => 66, 67 => 67, 68 => 68, 69 => 69, 70 => 70, 71 => 71, 72 => 72, 73 => 73, 74 => 74, 76 => 76, 77 => 77, 78 => 78, 80 => 80, 109 => 80, 81 => 81, 82 => 82, 83 => 83, 84 => 84, 87 => 84, 85 => 85, 86 => 86, 88 => 88, 90 => 90, 91 => 91, 92 => 92, 114 => 92, 93 => 93, 94 => 94, 95 => 95, 96 => 96, 97 => 97, 98 => 98, 99 => 99, 100 => 100, 101 => 101, 102 => 102, 103 => 103, 105 => 105, 106 => 106, 107 => 107, 108 => 108, 110 => 110, 111 => 111, 113 => 113, 115 => 115, 116 => 116, 119 => 116, 130 => 116, 117 => 117, 118 => 118, 120 => 120, 121 => 121, 122 => 122, 127 => 122, 123 => 123, 126 => 123, 124 => 124, 129 => 124, 125 => 125, 128 => 125, 131 => 131, 132 => 132, 133 => 133, 134 => 134, 135 => 135, 136 => 136, 137 => 137, 138 => 138, 139 => 139, 140 => 140, 141 => 141, 142 => 142, 143 => 143, 145 => 145, 146 => 146, 147 => 147, 148 => 148, 152 => 152, 153 => 153, 154 => 154, 155 => 155, 156 => 156, 157 => 157, 159 => 159, ); /* Beginning here are the reduction cases. A typical example ** follows: ** #line ** function yy_r0($yymsp){ ... } // User supplied code ** #line */ #line 80 "internal.templateparser.y" function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 1980 "internal.templateparser.php" #line 86 "internal.templateparser.y" function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 1983 "internal.templateparser.php" #line 88 "internal.templateparser.y" function yy_r2(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 1986 "internal.templateparser.php" #line 94 "internal.templateparser.y" function yy_r3(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); 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.$s[0].$this->yystack[$this->yyidx + -1]->minor, $this->compiler,$this->nocache,true); } else { $this->_retvalue = $s[0].$this->yystack[$this->yyidx + -1]->minor;} $this->nocache=false; $this->compiler->has_variable_string = false; } #line 1993 "internal.templateparser.php" #line 106 "internal.templateparser.y" function yy_r5(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0]; } #line 1996 "internal.templateparser.php" #line 109 "internal.templateparser.y" function yy_r6(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s2); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->yystack[$this->yyidx + -1]->minor.$s2[0], $this->compiler,false,false); } #line 1999 "internal.templateparser.php" #line 111 "internal.templateparser.y" function yy_r7(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->smarty->left_delimiter, $this->compiler,false,false); } #line 2002 "internal.templateparser.php" #line 113 "internal.templateparser.y" function yy_r8(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->smarty->right_delimiter, $this->compiler,false,false); } #line 2005 "internal.templateparser.php" #line 115 "internal.templateparser.y" function yy_r9(){if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU) { $this->_retvalue = $this->cacher->processNocacheCode("yystack[$this->yyidx + -1]->minor)."?>';?>\n", $this->compiler, false, 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, false); }elseif ($this->sec_obj->php_handling == SMARTY_PHP_ALLOW) { $this->_retvalue = $this->cacher->processNocacheCode('yystack[$this->yyidx + -1]->minor.'?>', $this->compiler, false,true); }elseif ($this->sec_obj->php_handling == SMARTY_PHP_REMOVE) { $this->_retvalue = ''; } } #line 2017 "internal.templateparser.php" #line 126 "internal.templateparser.y" function yy_r10(){preg_match('/\s*/',$this->yystack[$this->yyidx + -3]->minor,$s); $this->_retvalue = $s[0]; 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, 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, false); }elseif ($this->sec_obj == SMARTY_PHP_REMOVE) { $this->_retvalue .= ''; } } #line 2028 "internal.templateparser.php" #line 137 "internal.templateparser.y" function yy_r11(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode("", $this->compiler, true, true); } #line 2031 "internal.templateparser.php" #line 138 "internal.templateparser.y" function yy_r12(){$this->_retvalue = $this->cacher->processNocacheCode("';?>\n", $this->compiler, true, true); } #line 2034 "internal.templateparser.php" #line 140 "internal.templateparser.y" function yy_r13(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false,false); } #line 2037 "internal.templateparser.php" #line 147 "internal.templateparser.y" function yy_r14(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); } #line 2040 "internal.templateparser.php" #line 152 "internal.templateparser.y" function yy_r17(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor)); } #line 2043 "internal.templateparser.php" #line 155 "internal.templateparser.y" function yy_r19(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } #line 2046 "internal.templateparser.php" #line 157 "internal.templateparser.y" function yy_r20(){ $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 2049 "internal.templateparser.php" #line 159 "internal.templateparser.y" function yy_r21(){ $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 2064 "internal.templateparser.php" #line 173 "internal.templateparser.y" function yy_r22(){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 2070 "internal.templateparser.php" #line 177 "internal.templateparser.y" function yy_r23(){ 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 2076 "internal.templateparser.php" #line 182 "internal.templateparser.y" function yy_r24(){ 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 2083 "internal.templateparser.php" #line 187 "internal.templateparser.y" function yy_r25(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; } #line 2086 "internal.templateparser.php" #line 188 "internal.templateparser.y" function yy_r26(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2089 "internal.templateparser.php" #line 190 "internal.templateparser.y" function yy_r27(){ 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 2096 "internal.templateparser.php" #line 195 "internal.templateparser.y" function yy_r28(){ 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 2103 "internal.templateparser.php" #line 202 "internal.templateparser.y" function yy_r29(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',$this->yystack[$this->yyidx + 0]->minor); } #line 2106 "internal.templateparser.php" #line 203 "internal.templateparser.y" function yy_r30(){ $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 2121 "internal.templateparser.php" #line 217 "internal.templateparser.y" function yy_r31(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2124 "internal.templateparser.php" #line 224 "internal.templateparser.y" function yy_r32(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } #line 2127 "internal.templateparser.php" #line 228 "internal.templateparser.y" function yy_r34(){ $this->_retvalue = array(); } #line 2130 "internal.templateparser.php" #line 231 "internal.templateparser.y" function yy_r35(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); } #line 2133 "internal.templateparser.php" #line 233 "internal.templateparser.y" function yy_r37(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); } #line 2136 "internal.templateparser.php" #line 238 "internal.templateparser.y" function yy_r38(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } #line 2139 "internal.templateparser.php" #line 239 "internal.templateparser.y" function yy_r39(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; } #line 2142 "internal.templateparser.php" #line 241 "internal.templateparser.y" function yy_r40(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); } #line 2145 "internal.templateparser.php" #line 247 "internal.templateparser.y" function yy_r41(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2148 "internal.templateparser.php" #line 250 "internal.templateparser.y" function yy_r43(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; } #line 2151 "internal.templateparser.php" #line 251 "internal.templateparser.y" function yy_r44(){ 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 2166 "internal.templateparser.php" #line 268 "internal.templateparser.y" function yy_r46(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2169 "internal.templateparser.php" #line 270 "internal.templateparser.y" function yy_r47(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; } #line 2172 "internal.templateparser.php" #line 277 "internal.templateparser.y" function yy_r49(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; } #line 2175 "internal.templateparser.php" #line 291 "internal.templateparser.y" function yy_r53(){$this->_retvalue = ' & '; } #line 2178 "internal.templateparser.php" #line 297 "internal.templateparser.y" function yy_r56(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } #line 2181 "internal.templateparser.php" #line 305 "internal.templateparser.y" function yy_r60(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; } #line 2184 "internal.templateparser.php" #line 307 "internal.templateparser.y" function yy_r61(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; } #line 2187 "internal.templateparser.php" #line 308 "internal.templateparser.y" function yy_r62(){ $this->_retvalue = "''"; } #line 2190 "internal.templateparser.php" #line 310 "internal.templateparser.y" function yy_r63(){ $this->_retvalue = '"'.$this->yystack[$this->yyidx + -1]->minor.'"'; } #line 2193 "internal.templateparser.php" #line 313 "internal.templateparser.y" function yy_r65(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } #line 2196 "internal.templateparser.php" #line 314 "internal.templateparser.y" function yy_r66(){ $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 2199 "internal.templateparser.php" #line 316 "internal.templateparser.y" function yy_r67(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2202 "internal.templateparser.php" #line 317 "internal.templateparser.y" function yy_r68(){ $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 2205 "internal.templateparser.php" #line 319 "internal.templateparser.y" function yy_r69(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } #line 2208 "internal.templateparser.php" #line 321 "internal.templateparser.y" function yy_r70(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2211 "internal.templateparser.php" #line 323 "internal.templateparser.y" function yy_r71(){ $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 2214 "internal.templateparser.php" #line 325 "internal.templateparser.y" function yy_r72(){ $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 2217 "internal.templateparser.php" #line 334 "internal.templateparser.y" function yy_r73(){if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('internal_smarty_var',$this->yystack[$this->yyidx + 0]->minor['index']);} else { $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor['var'] .')->value'.$this->yystack[$this->yyidx + 0]->minor['index']; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor['var'],"'"))->nocache;} } #line 2221 "internal.templateparser.php" #line 337 "internal.templateparser.y" function yy_r74(){ $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"))->nocache; } #line 2224 "internal.templateparser.php" #line 341 "internal.templateparser.y" function yy_r76(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; } #line 2227 "internal.templateparser.php" #line 342 "internal.templateparser.y" function yy_r77(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; } #line 2230 "internal.templateparser.php" #line 345 "internal.templateparser.y" function yy_r78(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); } #line 2233 "internal.templateparser.php" #line 353 "internal.templateparser.y" function yy_r80(){return; } #line 2236 "internal.templateparser.php" #line 357 "internal.templateparser.y" function yy_r81(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; } #line 2239 "internal.templateparser.php" #line 358 "internal.templateparser.y" function yy_r82(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; } #line 2242 "internal.templateparser.php" #line 359 "internal.templateparser.y" function yy_r83(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; } #line 2245 "internal.templateparser.php" #line 360 "internal.templateparser.y" function yy_r84(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; } #line 2248 "internal.templateparser.php" #line 362 "internal.templateparser.y" function yy_r85(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; } #line 2251 "internal.templateparser.php" #line 363 "internal.templateparser.y" function yy_r86(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; } #line 2254 "internal.templateparser.php" #line 367 "internal.templateparser.y" function yy_r88(){$this->_retvalue = ''; } #line 2257 "internal.templateparser.php" #line 375 "internal.templateparser.y" function yy_r90(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } #line 2260 "internal.templateparser.php" #line 377 "internal.templateparser.y" function yy_r91(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2263 "internal.templateparser.php" #line 379 "internal.templateparser.y" function yy_r92(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2266 "internal.templateparser.php" #line 384 "internal.templateparser.y" function yy_r93(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('internal_smarty_var',$this->yystack[$this->yyidx + -1]->minor['index']).$this->yystack[$this->yyidx + 0]->minor;} else { $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -1]->minor['var'] .')->value'.$this->yystack[$this->yyidx + -1]->minor['index'].$this->yystack[$this->yyidx + 0]->minor; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"))->nocache;} } #line 2270 "internal.templateparser.php" #line 387 "internal.templateparser.y" function yy_r94(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2273 "internal.templateparser.php" #line 389 "internal.templateparser.y" function yy_r95(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2276 "internal.templateparser.php" #line 391 "internal.templateparser.y" function yy_r96(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2279 "internal.templateparser.php" #line 392 "internal.templateparser.y" function yy_r97(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2282 "internal.templateparser.php" #line 393 "internal.templateparser.y" function yy_r98(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2285 "internal.templateparser.php" #line 394 "internal.templateparser.y" function yy_r99(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2288 "internal.templateparser.php" #line 396 "internal.templateparser.y" function yy_r100(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; } #line 2291 "internal.templateparser.php" #line 402 "internal.templateparser.y" function yy_r101(){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 2300 "internal.templateparser.php" #line 413 "internal.templateparser.y" function yy_r102(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; } #line 2303 "internal.templateparser.php" #line 417 "internal.templateparser.y" function yy_r103(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; } #line 2306 "internal.templateparser.php" #line 421 "internal.templateparser.y" function yy_r105(){ return; } #line 2309 "internal.templateparser.php" #line 426 "internal.templateparser.y" function yy_r106(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); } #line 2312 "internal.templateparser.php" #line 427 "internal.templateparser.y" function yy_r107(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); } #line 2315 "internal.templateparser.php" #line 439 "internal.templateparser.y" function yy_r108(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2318 "internal.templateparser.php" #line 443 "internal.templateparser.y" function yy_r110(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; } #line 2321 "internal.templateparser.php" #line 444 "internal.templateparser.y" function yy_r111(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2324 "internal.templateparser.php" #line 451 "internal.templateparser.y" function yy_r113(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; } #line 2327 "internal.templateparser.php" #line 456 "internal.templateparser.y" function yy_r115(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; } #line 2330 "internal.templateparser.php" #line 458 "internal.templateparser.y" function yy_r116(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2333 "internal.templateparser.php" #line 459 "internal.templateparser.y" function yy_r117(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2336 "internal.templateparser.php" #line 460 "internal.templateparser.y" function yy_r118(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2339 "internal.templateparser.php" #line 462 "internal.templateparser.y" function yy_r120(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2342 "internal.templateparser.php" #line 463 "internal.templateparser.y" function yy_r121(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2345 "internal.templateparser.php" #line 464 "internal.templateparser.y" function yy_r122(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2348 "internal.templateparser.php" #line 465 "internal.templateparser.y" function yy_r123(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2351 "internal.templateparser.php" #line 466 "internal.templateparser.y" function yy_r124(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2354 "internal.templateparser.php" #line 467 "internal.templateparser.y" function yy_r125(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2357 "internal.templateparser.php" #line 473 "internal.templateparser.y" function yy_r131(){$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 2360 "internal.templateparser.php" #line 475 "internal.templateparser.y" function yy_r132(){$this->_retvalue = '=='; } #line 2363 "internal.templateparser.php" #line 476 "internal.templateparser.y" function yy_r133(){$this->_retvalue = '!='; } #line 2366 "internal.templateparser.php" #line 477 "internal.templateparser.y" function yy_r134(){$this->_retvalue = '>'; } #line 2369 "internal.templateparser.php" #line 478 "internal.templateparser.y" function yy_r135(){$this->_retvalue = '<'; } #line 2372 "internal.templateparser.php" #line 479 "internal.templateparser.y" function yy_r136(){$this->_retvalue = '>='; } #line 2375 "internal.templateparser.php" #line 480 "internal.templateparser.y" function yy_r137(){$this->_retvalue = '<='; } #line 2378 "internal.templateparser.php" #line 481 "internal.templateparser.y" function yy_r138(){$this->_retvalue = '==='; } #line 2381 "internal.templateparser.php" #line 482 "internal.templateparser.y" function yy_r139(){$this->_retvalue = '!=='; } #line 2384 "internal.templateparser.php" #line 484 "internal.templateparser.y" function yy_r140(){$this->_retvalue = '&&'; } #line 2387 "internal.templateparser.php" #line 485 "internal.templateparser.y" function yy_r141(){$this->_retvalue = '||'; } #line 2390 "internal.templateparser.php" #line 486 "internal.templateparser.y" function yy_r142(){$this->_retvalue = ' XOR '; } #line 2393 "internal.templateparser.php" #line 491 "internal.templateparser.y" function yy_r143(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2396 "internal.templateparser.php" #line 493 "internal.templateparser.y" function yy_r145(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; } #line 2399 "internal.templateparser.php" #line 494 "internal.templateparser.y" function yy_r146(){ return; } #line 2402 "internal.templateparser.php" #line 495 "internal.templateparser.y" function yy_r147(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; } #line 2405 "internal.templateparser.php" #line 496 "internal.templateparser.y" function yy_r148(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; } #line 2408 "internal.templateparser.php" #line 505 "internal.templateparser.y" function yy_r152(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; } #line 2411 "internal.templateparser.php" #line 506 "internal.templateparser.y" function yy_r153(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; $this->compiler->has_variable_string = true; } #line 2414 "internal.templateparser.php" #line 507 "internal.templateparser.y" function yy_r154(){$this->_retvalue = '".'.'$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + 0]->minor .'\')->value'.'."'; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"))->nocache; $this->compiler->has_variable_string = true; } #line 2417 "internal.templateparser.php" #line 508 "internal.templateparser.y" function yy_r155(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0].'".('.$this->yystack[$this->yyidx + -1]->minor.')."'; $this->compiler->has_variable_string = true; } #line 2420 "internal.templateparser.php" #line 509 "internal.templateparser.y" function yy_r156(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->prefix_number++; $this->compiler->prefix_code[] = ''.$this->yystack[$this->yyidx + -1]->minor.'prefix_number.'=ob_get_clean();?>'; $this->_retvalue = $s[0].'".$_tmp'.$this->prefix_number.'."'; $this->compiler->has_variable_string = true; } #line 2423 "internal.templateparser.php" #line 510 "internal.templateparser.y" function yy_r157(){$this->_retvalue = '$'.$this->yystack[$this->yyidx + 0]->minor; } #line 2426 "internal.templateparser.php" #line 512 "internal.templateparser.y" function yy_r159(){$this->_retvalue = '`'.$this->yystack[$this->yyidx + 0]->minor; } #line 2429 "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 61 "internal.templateparser.y" $this->internalError = true; $this->yymajor = $yymajor; $this->compiler->trigger_template_error(); #line 2547 "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 53 "internal.templateparser.y" $this->successful = !$this->internalError; $this->internalError = false; $this->retvalue = $this->_retvalue; //echo $this->retvalue."\n\n"; #line 2572 "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); } }