string = $s->string; $this->metadata = $s->metadata; } else { $this->string = (string) $s; if ($m instanceof TP_yyToken) { $this->metadata = $m->metadata; } elseif (is_array($m)) { $this->metadata = $m; } } } function __toString() { return $this->_string; } function offsetExists($offset) { return isset($this->metadata[$offset]); } function offsetGet($offset) { return $this->metadata[$offset]; } function offsetSet($offset, $value) { if ($offset === null) { if (isset($value[0])) { $x = ($value instanceof TP_yyToken) ? $value->metadata : $value; $this->metadata = array_merge($this->metadata, $x); return; } $offset = count($this->metadata); } if ($value === null) { return; } if ($value instanceof TP_yyToken) { if ($value->metadata) { $this->metadata[$offset] = $value->metadata; } } elseif ($value) { $this->metadata[$offset] = $value; } } function offsetUnset($offset) { unset($this->metadata[$offset]); } } /** The following structure represents a single element of the * parser's stack. Information stored includes: * * + The state number for the parser at this level of the stack. * * + The value of the token stored at this level of the stack. * (In other words, the "major" token.) * * + The semantic value stored at this level of the stack. This is * the information used by the action routines in the grammar. * It is sometimes called the "minor" token. */ class TP_yyStackEntry { public $stateno; /* The state-number */ public $major; /* The major token value. This is the code ** number for the token at this stack level */ public $minor; /* The user-supplied minor token value. This ** is the value of the token */ }; // code external to the class is included here // declare_class is output here #line 12 "smarty_internal_templateparser.y" class Smarty_Internal_Templateparser#line 109 "smarty_internal_templateparser.php" { /* First off, code is included which follows the "include_class" declaration ** in the input file. */ #line 14 "smarty_internal_templateparser.y" // states whether the parse was successful or not public $successful = true; public $retvalue = 0; private $lex; private $internalError = false; function __construct($lex, $compiler) { // set instance object self::instance($this); $this->lex = $lex; $this->compiler = $compiler; $this->smarty = $this->compiler->smarty; $this->template = $this->compiler->template; if ($this->template->security && isset($this->smarty->security_handler)) { $this->sec_obj = $this->smarty->security_policy; } else { $this->sec_obj = $this->smarty; } $this->cacher = $this->template->cacher_object; $this->compiler->has_variable_string = false; $this->compiler->prefix_code = array(); $this->prefix_number = 0; } public static function &instance($new_instance = null) { static $instance = null; if (isset($new_instance) && is_object($new_instance)) $instance = $new_instance; return $instance; } #line 147 "smarty_internal_templateparser.php" /* Next is all token values, as class constants */ /* ** These constants (all generated automatically by the parser generator) ** specify the various kinds of tokens (terminals) that the parser ** understands. ** ** Each symbol here is a terminal symbol in the grammar. */ const TP_OTHER = 1; const TP_XML = 2; const TP_PHP = 3; const TP_SHORTTAGSTART = 4; const TP_SHORTTAGEND = 5; const TP_PHPSTART = 6; const TP_PHPEND = 7; const TP_COMMENT = 8; const TP_SINGLEQUOTE = 9; const TP_LITERALSTART = 10; const TP_LITERALEND = 11; const TP_LDELIMTAG = 12; const TP_RDELIMTAG = 13; const TP_LDELSLASH = 14; const TP_LDEL = 15; const TP_RDEL = 16; const TP_ISIN = 17; const TP_AS = 18; const TP_BOOLEAN = 19; const TP_NULL = 20; const TP_IDENTITY = 21; const TP_NONEIDENTITY = 22; const TP_EQUALS = 23; const TP_NOTEQUALS = 24; const TP_GREATEREQUAL = 25; const TP_LESSEQUAL = 26; const TP_GREATERTHAN = 27; const TP_LESSTHAN = 28; const TP_MOD = 29; const TP_NOT = 30; const TP_LAND = 31; const TP_LOR = 32; const TP_LXOR = 33; const TP_ISODDBY = 34; const TP_ISNOTODDBY = 35; const TP_ISODD = 36; const TP_ISNOTODD = 37; const TP_ISEVENBY = 38; const TP_ISNOTEVENBY = 39; const TP_ISEVEN = 40; const TP_ISNOTEVEN = 41; const TP_ISDIVBY = 42; const TP_ISNOTDIVBY = 43; const TP_OPENP = 44; const TP_CLOSEP = 45; const TP_OPENB = 46; const TP_CLOSEB = 47; const TP_PTR = 48; const TP_APTR = 49; const TP_EQUAL = 50; const TP_INTEGER = 51; const TP_INCDEC = 52; const TP_UNIMATH = 53; const TP_MATH = 54; const TP_DOLLAR = 55; const TP_COLON = 56; const TP_DOUBLECOLON = 57; const TP_SEMICOLON = 58; const TP_AT = 59; const TP_HATCH = 60; const TP_QUOTE = 61; const TP_BACKTICK = 62; const TP_VERT = 63; const TP_DOT = 64; const TP_COMMA = 65; const TP_ANDSYM = 66; const TP_ID = 67; const TP_SPACE = 68; const TP_INSTANCEOF = 69; const TP_QMARK = 70; const TP_TYPECAST = 71; const TP_SINGLEQUOTESTRING = 72; const YY_NO_ACTION = 490; const YY_ACCEPT_ACTION = 489; const YY_ERROR_ACTION = 488; /* Next are that tables used to determine what action to take based on the ** current state and lookahead token. These tables are used to implement ** functions that take a state number and lookahead value and return an ** action integer. ** ** Suppose the action integer is N. Then the action is determined as ** follows ** ** 0 <= N < self::YYNSTATE Shift N. That is, ** push the lookahead ** token onto the stack ** and goto state N. ** ** self::YYNSTATE <= N < self::YYNSTATE+self::YYNRULE Reduce by rule N-YYNSTATE. ** ** N == self::YYNSTATE+self::YYNRULE A syntax error has occurred. ** ** N == self::YYNSTATE+self::YYNRULE+1 The parser accepts its ** input. (and concludes parsing) ** ** N == self::YYNSTATE+self::YYNRULE+2 No such action. Denotes unused ** slots in the yy_action[] table. ** ** The action table is constructed as a single large static array $yy_action. ** Given state S and lookahead X, the action is computed as ** ** self::$yy_action[self::$yy_shift_ofst[S] + X ] ** ** If the index value self::$yy_shift_ofst[S]+X is out of range or if the value ** self::$yy_lookahead[self::$yy_shift_ofst[S]+X] is not equal to X or if ** self::$yy_shift_ofst[S] is equal to self::YY_SHIFT_USE_DFLT, it means that ** the action is not in the table and that self::$yy_default[S] should be used instead. ** ** The formula above is for computing the action when the lookahead is ** a terminal symbol. If the lookahead is a non-terminal (as occurs after ** a reduce action) then the static $yy_reduce_ofst array is used in place of ** the static $yy_shift_ofst array and self::YY_REDUCE_USE_DFLT is used in place of ** self::YY_SHIFT_USE_DFLT. ** ** The following are the tables generated in this section: ** ** self::$yy_action A single table containing all actions. ** self::$yy_lookahead A table containing the lookahead for each entry in ** yy_action. Used to detect hash collisions. ** self::$yy_shift_ofst For each state, the offset into self::$yy_action for ** shifting terminals. ** self::$yy_reduce_ofst For each state, the offset into self::$yy_action for ** shifting non-terminals after a reduce. ** self::$yy_default Default action for each state. */ const YY_SZ_ACTTAB = 1179; static public $yy_action = array( /* 0 */ 62, 287, 164, 73, 20, 182, 68, 58, 48, 76, /* 10 */ 210, 296, 88, 178, 157, 198, 95, 158, 183, 125, /* 20 */ 101, 13, 295, 150, 257, 110, 182, 36, 58, 234, /* 30 */ 76, 246, 250, 85, 276, 12, 146, 14, 187, 308, /* 40 */ 76, 101, 188, 295, 42, 44, 74, 36, 164, 43, /* 50 */ 234, 48, 59, 291, 141, 276, 247, 235, 163, 290, /* 60 */ 234, 62, 51, 307, 179, 44, 30, 68, 76, 217, /* 70 */ 147, 210, 296, 76, 264, 262, 261, 4, 5, 251, /* 80 */ 252, 3, 8, 254, 253, 7, 6, 182, 234, 58, /* 90 */ 258, 76, 30, 234, 92, 43, 32, 19, 14, 187, /* 100 */ 308, 177, 101, 188, 295, 42, 54, 74, 121, 16, /* 110 */ 199, 234, 48, 59, 28, 62, 276, 164, 306, 45, /* 120 */ 26, 68, 114, 51, 307, 210, 296, 34, 264, 262, /* 130 */ 261, 4, 5, 251, 252, 3, 8, 254, 253, 7, /* 140 */ 6, 143, 260, 55, 306, 151, 265, 202, 353, 212, /* 150 */ 32, 76, 14, 216, 250, 249, 284, 188, 37, 42, /* 160 */ 73, 73, 238, 214, 22, 48, 48, 59, 283, 62, /* 170 */ 302, 234, 117, 153, 203, 68, 16, 51, 307, 210, /* 180 */ 296, 200, 17, 185, 63, 305, 52, 81, 66, 114, /* 190 */ 13, 102, 249, 284, 204, 29, 243, 308, 73, 101, /* 200 */ 353, 295, 292, 48, 12, 283, 14, 201, 234, 164, /* 210 */ 239, 188, 292, 42, 248, 65, 15, 16, 30, 176, /* 220 */ 48, 59, 120, 62, 30, 41, 15, 152, 351, 68, /* 230 */ 114, 51, 307, 210, 296, 250, 264, 262, 261, 4, /* 240 */ 5, 251, 252, 3, 8, 254, 253, 7, 6, 233, /* 250 */ 195, 249, 284, 35, 10, 300, 161, 150, 32, 34, /* 260 */ 14, 136, 303, 46, 283, 188, 161, 42, 199, 74, /* 270 */ 306, 275, 313, 46, 48, 59, 306, 62, 206, 263, /* 280 */ 351, 163, 27, 68, 240, 51, 307, 210, 296, 164, /* 290 */ 264, 262, 261, 4, 5, 251, 252, 3, 8, 254, /* 300 */ 253, 7, 6, 25, 226, 229, 196, 186, 228, 132, /* 310 */ 164, 219, 9, 148, 14, 224, 225, 128, 2, 188, /* 320 */ 294, 42, 250, 74, 489, 94, 227, 144, 48, 59, /* 330 */ 123, 62, 290, 73, 150, 163, 170, 68, 48, 51, /* 340 */ 307, 210, 296, 250, 298, 175, 39, 221, 67, 180, /* 350 */ 267, 268, 274, 289, 270, 269, 271, 272, 273, 16, /* 360 */ 50, 205, 207, 349, 164, 31, 32, 164, 14, 1, /* 370 */ 311, 30, 114, 188, 275, 42, 164, 74, 309, 172, /* 380 */ 189, 165, 48, 59, 299, 62, 149, 24, 104, 154, /* 390 */ 145, 68, 164, 51, 307, 210, 296, 211, 75, 245, /* 400 */ 39, 76, 255, 250, 267, 268, 274, 289, 270, 269, /* 410 */ 271, 272, 273, 150, 288, 165, 18, 233, 33, 173, /* 420 */ 32, 234, 14, 306, 311, 164, 168, 188, 169, 42, /* 430 */ 30, 73, 301, 164, 165, 100, 48, 59, 299, 62, /* 440 */ 64, 116, 209, 160, 164, 68, 164, 51, 307, 210, /* 450 */ 296, 288, 232, 112, 39, 60, 288, 288, 267, 268, /* 460 */ 274, 289, 270, 269, 271, 272, 273, 38, 164, 288, /* 470 */ 43, 288, 73, 165, 32, 133, 14, 48, 99, 165, /* 480 */ 61, 188, 171, 42, 241, 73, 131, 237, 250, 108, /* 490 */ 48, 59, 305, 62, 16, 304, 288, 156, 180, 68, /* 500 */ 164, 51, 307, 210, 296, 223, 281, 114, 218, 72, /* 510 */ 138, 62, 182, 164, 58, 290, 76, 68, 1, 93, /* 520 */ 127, 210, 296, 285, 187, 308, 130, 101, 9, 295, /* 530 */ 14, 290, 184, 250, 190, 188, 234, 42, 213, 74, /* 540 */ 18, 276, 80, 259, 48, 59, 32, 245, 14, 174, /* 550 */ 338, 45, 69, 188, 62, 51, 307, 73, 140, 236, /* 560 */ 68, 181, 48, 59, 210, 296, 71, 17, 166, 160, /* 570 */ 230, 250, 62, 51, 307, 142, 231, 293, 68, 286, /* 580 */ 182, 297, 210, 296, 76, 194, 215, 19, 250, 32, /* 590 */ 222, 41, 243, 308, 23, 97, 188, 295, 182, 77, /* 600 */ 73, 310, 76, 235, 234, 48, 59, 32, 78, 305, /* 610 */ 243, 308, 155, 96, 188, 295, 51, 307, 73, 40, /* 620 */ 11, 21, 234, 48, 59, 49, 220, 282, 119, 182, /* 630 */ 160, 58, 312, 76, 51, 307, 89, 167, 47, 38, /* 640 */ 233, 187, 308, 70, 101, 292, 295, 292, 292, 292, /* 650 */ 182, 292, 105, 234, 76, 292, 292, 292, 276, 292, /* 660 */ 292, 292, 243, 308, 182, 101, 58, 295, 76, 292, /* 670 */ 292, 90, 292, 292, 234, 292, 187, 308, 292, 101, /* 680 */ 292, 295, 162, 277, 292, 292, 182, 182, 234, 56, /* 690 */ 76, 76, 292, 276, 83, 292, 292, 292, 280, 187, /* 700 */ 308, 292, 101, 295, 295, 182, 292, 58, 292, 76, /* 710 */ 234, 234, 84, 292, 292, 292, 276, 187, 308, 292, /* 720 */ 101, 292, 295, 182, 292, 58, 292, 76, 292, 234, /* 730 */ 86, 292, 292, 292, 276, 187, 308, 292, 101, 292, /* 740 */ 295, 292, 292, 292, 182, 292, 58, 234, 76, 292, /* 750 */ 292, 91, 276, 292, 292, 292, 187, 308, 292, 101, /* 760 */ 292, 295, 182, 292, 57, 292, 76, 292, 234, 82, /* 770 */ 292, 292, 292, 276, 187, 308, 292, 101, 292, 295, /* 780 */ 182, 292, 58, 292, 76, 292, 234, 87, 292, 292, /* 790 */ 292, 276, 187, 308, 292, 101, 292, 295, 182, 292, /* 800 */ 105, 292, 76, 292, 234, 292, 292, 292, 292, 276, /* 810 */ 243, 308, 292, 101, 191, 295, 292, 182, 292, 111, /* 820 */ 292, 66, 234, 292, 292, 292, 292, 292, 292, 243, /* 830 */ 308, 266, 101, 182, 295, 124, 242, 76, 292, 292, /* 840 */ 292, 234, 292, 292, 292, 159, 308, 182, 101, 103, /* 850 */ 295, 76, 292, 292, 292, 292, 292, 234, 292, 243, /* 860 */ 308, 182, 101, 103, 295, 76, 292, 292, 197, 292, /* 870 */ 292, 234, 292, 243, 308, 292, 101, 292, 295, 182, /* 880 */ 292, 103, 193, 76, 292, 234, 292, 292, 292, 292, /* 890 */ 292, 243, 308, 292, 101, 182, 295, 103, 292, 76, /* 900 */ 256, 292, 292, 234, 292, 292, 292, 243, 308, 292, /* 910 */ 101, 182, 295, 53, 79, 76, 192, 292, 292, 234, /* 920 */ 292, 292, 292, 243, 308, 292, 101, 182, 295, 109, /* 930 */ 292, 76, 292, 292, 292, 234, 292, 292, 292, 243, /* 940 */ 308, 182, 101, 107, 295, 76, 292, 292, 292, 292, /* 950 */ 292, 234, 292, 243, 308, 182, 101, 106, 295, 76, /* 960 */ 292, 292, 292, 292, 292, 234, 292, 243, 308, 292, /* 970 */ 101, 292, 295, 182, 292, 139, 292, 76, 292, 234, /* 980 */ 292, 292, 292, 292, 292, 243, 308, 292, 101, 182, /* 990 */ 295, 122, 292, 76, 292, 292, 292, 234, 292, 292, /* 1000 */ 292, 243, 308, 292, 101, 182, 295, 137, 292, 76, /* 1010 */ 292, 292, 292, 234, 292, 292, 292, 243, 308, 292, /* 1020 */ 101, 182, 295, 118, 292, 76, 292, 292, 292, 234, /* 1030 */ 292, 292, 292, 243, 308, 182, 101, 115, 295, 76, /* 1040 */ 292, 292, 292, 292, 292, 234, 292, 243, 308, 182, /* 1050 */ 101, 129, 295, 76, 292, 292, 292, 292, 292, 234, /* 1060 */ 292, 243, 308, 292, 101, 292, 295, 182, 292, 113, /* 1070 */ 292, 76, 292, 234, 292, 292, 292, 292, 292, 243, /* 1080 */ 308, 292, 101, 182, 295, 126, 292, 76, 292, 292, /* 1090 */ 292, 234, 292, 292, 292, 243, 308, 292, 101, 182, /* 1100 */ 295, 135, 292, 76, 292, 292, 292, 234, 292, 292, /* 1110 */ 292, 243, 308, 292, 101, 182, 295, 134, 292, 76, /* 1120 */ 292, 292, 292, 234, 292, 292, 292, 243, 308, 182, /* 1130 */ 101, 292, 295, 76, 292, 292, 292, 292, 292, 234, /* 1140 */ 292, 243, 308, 182, 98, 182, 295, 76, 292, 76, /* 1150 */ 292, 292, 292, 234, 182, 279, 278, 208, 76, 292, /* 1160 */ 295, 292, 295, 292, 292, 292, 244, 234, 292, 234, /* 1170 */ 292, 295, 292, 292, 292, 292, 292, 292, 234, ); static public $yy_lookahead = array( /* 0 */ 9, 16, 63, 55, 65, 80, 15, 82, 60, 84, /* 10 */ 19, 20, 87, 88, 89, 67, 99, 92, 93, 81, /* 20 */ 95, 30, 97, 85, 1, 103, 80, 46, 82, 104, /* 30 */ 84, 114, 94, 87, 109, 44, 80, 46, 92, 93, /* 40 */ 84, 95, 51, 97, 53, 64, 55, 46, 63, 48, /* 50 */ 104, 60, 61, 1, 102, 109, 100, 105, 67, 107, /* 60 */ 104, 9, 71, 72, 80, 64, 15, 15, 84, 80, /* 70 */ 16, 19, 20, 84, 31, 32, 33, 34, 35, 36, /* 80 */ 37, 38, 39, 40, 41, 42, 43, 80, 104, 82, /* 90 */ 67, 84, 15, 104, 87, 48, 44, 50, 46, 92, /* 100 */ 93, 58, 95, 51, 97, 53, 86, 55, 86, 44, /* 110 */ 59, 104, 60, 61, 49, 9, 109, 63, 67, 67, /* 120 */ 15, 15, 57, 71, 72, 19, 20, 50, 31, 32, /* 130 */ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, /* 140 */ 43, 81, 45, 86, 67, 85, 47, 80, 16, 47, /* 150 */ 44, 84, 46, 47, 94, 53, 54, 51, 15, 53, /* 160 */ 55, 55, 19, 20, 65, 60, 60, 61, 66, 9, /* 170 */ 91, 104, 67, 67, 18, 15, 44, 71, 72, 19, /* 180 */ 20, 77, 50, 79, 80, 106, 82, 83, 84, 57, /* 190 */ 30, 103, 53, 54, 51, 49, 92, 93, 55, 95, /* 200 */ 68, 97, 1, 60, 44, 66, 46, 55, 104, 63, /* 210 */ 67, 51, 1, 53, 16, 55, 15, 44, 15, 67, /* 220 */ 60, 61, 81, 9, 15, 69, 15, 67, 16, 15, /* 230 */ 57, 71, 72, 19, 20, 94, 31, 32, 33, 34, /* 240 */ 35, 36, 37, 38, 39, 40, 41, 42, 43, 108, /* 250 */ 45, 53, 54, 50, 58, 52, 55, 85, 44, 50, /* 260 */ 46, 65, 61, 62, 66, 51, 55, 53, 59, 55, /* 270 */ 67, 45, 61, 62, 60, 61, 67, 9, 45, 1, /* 280 */ 68, 67, 110, 15, 67, 71, 72, 19, 20, 63, /* 290 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, /* 300 */ 41, 42, 43, 56, 1, 2, 3, 4, 5, 81, /* 310 */ 63, 8, 44, 85, 46, 12, 13, 14, 15, 51, /* 320 */ 16, 53, 94, 55, 74, 75, 76, 102, 60, 61, /* 330 */ 81, 9, 107, 55, 85, 67, 59, 15, 60, 71, /* 340 */ 72, 19, 20, 94, 67, 67, 17, 16, 55, 48, /* 350 */ 21, 22, 23, 24, 25, 26, 27, 28, 29, 44, /* 360 */ 67, 48, 47, 16, 63, 70, 44, 63, 46, 68, /* 370 */ 1, 15, 57, 51, 45, 53, 63, 55, 9, 64, /* 380 */ 1, 68, 60, 61, 15, 9, 16, 15, 103, 67, /* 390 */ 81, 15, 63, 71, 72, 19, 20, 80, 90, 52, /* 400 */ 17, 84, 45, 94, 21, 22, 23, 24, 25, 26, /* 410 */ 27, 28, 29, 85, 106, 68, 44, 108, 56, 77, /* 420 */ 44, 104, 46, 67, 1, 63, 84, 51, 45, 53, /* 430 */ 15, 55, 9, 63, 68, 90, 60, 61, 15, 9, /* 440 */ 90, 90, 51, 67, 63, 15, 63, 71, 72, 19, /* 450 */ 20, 106, 94, 90, 17, 90, 106, 106, 21, 22, /* 460 */ 23, 24, 25, 26, 27, 28, 29, 56, 63, 106, /* 470 */ 48, 106, 55, 68, 44, 81, 46, 60, 98, 68, /* 480 */ 90, 51, 67, 53, 107, 55, 67, 60, 94, 103, /* 490 */ 60, 61, 106, 9, 44, 115, 106, 67, 48, 15, /* 500 */ 63, 71, 72, 19, 20, 16, 62, 57, 67, 55, /* 510 */ 102, 9, 80, 63, 82, 107, 84, 15, 68, 87, /* 520 */ 81, 19, 20, 16, 92, 93, 102, 95, 44, 97, /* 530 */ 46, 107, 67, 94, 1, 51, 104, 53, 47, 55, /* 540 */ 44, 109, 67, 62, 60, 61, 44, 52, 46, 18, /* 550 */ 16, 67, 55, 51, 9, 71, 72, 55, 81, 60, /* 560 */ 15, 56, 60, 61, 19, 20, 55, 50, 67, 67, /* 570 */ 5, 94, 9, 71, 72, 81, 5, 16, 15, 67, /* 580 */ 80, 67, 19, 20, 84, 64, 67, 50, 94, 44, /* 590 */ 16, 69, 92, 93, 70, 95, 51, 97, 80, 45, /* 600 */ 55, 115, 84, 105, 104, 60, 61, 44, 100, 106, /* 610 */ 92, 93, 67, 95, 51, 97, 71, 72, 55, 96, /* 620 */ 111, 44, 104, 60, 61, 67, 76, 114, 103, 80, /* 630 */ 67, 82, 88, 84, 71, 72, 87, 78, 103, 56, /* 640 */ 108, 92, 93, 55, 95, 116, 97, 116, 116, 116, /* 650 */ 80, 116, 82, 104, 84, 116, 116, 116, 109, 116, /* 660 */ 116, 116, 92, 93, 80, 95, 82, 97, 84, 116, /* 670 */ 116, 87, 116, 116, 104, 116, 92, 93, 116, 95, /* 680 */ 116, 97, 112, 113, 116, 116, 80, 80, 104, 82, /* 690 */ 84, 84, 116, 109, 87, 116, 116, 116, 92, 92, /* 700 */ 93, 116, 95, 97, 97, 80, 116, 82, 116, 84, /* 710 */ 104, 104, 87, 116, 116, 116, 109, 92, 93, 116, /* 720 */ 95, 116, 97, 80, 116, 82, 116, 84, 116, 104, /* 730 */ 87, 116, 116, 116, 109, 92, 93, 116, 95, 116, /* 740 */ 97, 116, 116, 116, 80, 116, 82, 104, 84, 116, /* 750 */ 116, 87, 109, 116, 116, 116, 92, 93, 116, 95, /* 760 */ 116, 97, 80, 116, 82, 116, 84, 116, 104, 87, /* 770 */ 116, 116, 116, 109, 92, 93, 116, 95, 116, 97, /* 780 */ 80, 116, 82, 116, 84, 116, 104, 87, 116, 116, /* 790 */ 116, 109, 92, 93, 116, 95, 116, 97, 80, 116, /* 800 */ 82, 116, 84, 116, 104, 116, 116, 116, 116, 109, /* 810 */ 92, 93, 116, 95, 77, 97, 116, 80, 116, 82, /* 820 */ 116, 84, 104, 116, 116, 116, 116, 116, 116, 92, /* 830 */ 93, 113, 95, 80, 97, 82, 83, 84, 116, 116, /* 840 */ 116, 104, 116, 116, 116, 92, 93, 80, 95, 82, /* 850 */ 97, 84, 116, 116, 116, 116, 116, 104, 116, 92, /* 860 */ 93, 80, 95, 82, 97, 84, 116, 116, 101, 116, /* 870 */ 116, 104, 116, 92, 93, 116, 95, 116, 97, 80, /* 880 */ 116, 82, 101, 84, 116, 104, 116, 116, 116, 116, /* 890 */ 116, 92, 93, 116, 95, 80, 97, 82, 116, 84, /* 900 */ 101, 116, 116, 104, 116, 116, 116, 92, 93, 116, /* 910 */ 95, 80, 97, 82, 83, 84, 101, 116, 116, 104, /* 920 */ 116, 116, 116, 92, 93, 116, 95, 80, 97, 82, /* 930 */ 116, 84, 116, 116, 116, 104, 116, 116, 116, 92, /* 940 */ 93, 80, 95, 82, 97, 84, 116, 116, 116, 116, /* 950 */ 116, 104, 116, 92, 93, 80, 95, 82, 97, 84, /* 960 */ 116, 116, 116, 116, 116, 104, 116, 92, 93, 116, /* 970 */ 95, 116, 97, 80, 116, 82, 116, 84, 116, 104, /* 980 */ 116, 116, 116, 116, 116, 92, 93, 116, 95, 80, /* 990 */ 97, 82, 116, 84, 116, 116, 116, 104, 116, 116, /* 1000 */ 116, 92, 93, 116, 95, 80, 97, 82, 116, 84, /* 1010 */ 116, 116, 116, 104, 116, 116, 116, 92, 93, 116, /* 1020 */ 95, 80, 97, 82, 116, 84, 116, 116, 116, 104, /* 1030 */ 116, 116, 116, 92, 93, 80, 95, 82, 97, 84, /* 1040 */ 116, 116, 116, 116, 116, 104, 116, 92, 93, 80, /* 1050 */ 95, 82, 97, 84, 116, 116, 116, 116, 116, 104, /* 1060 */ 116, 92, 93, 116, 95, 116, 97, 80, 116, 82, /* 1070 */ 116, 84, 116, 104, 116, 116, 116, 116, 116, 92, /* 1080 */ 93, 116, 95, 80, 97, 82, 116, 84, 116, 116, /* 1090 */ 116, 104, 116, 116, 116, 92, 93, 116, 95, 80, /* 1100 */ 97, 82, 116, 84, 116, 116, 116, 104, 116, 116, /* 1110 */ 116, 92, 93, 116, 95, 80, 97, 82, 116, 84, /* 1120 */ 116, 116, 116, 104, 116, 116, 116, 92, 93, 80, /* 1130 */ 95, 116, 97, 84, 116, 116, 116, 116, 116, 104, /* 1140 */ 116, 92, 93, 80, 95, 80, 97, 84, 116, 84, /* 1150 */ 116, 116, 116, 104, 80, 92, 93, 92, 84, 116, /* 1160 */ 97, 116, 97, 116, 116, 116, 92, 104, 116, 104, /* 1170 */ 116, 97, 116, 116, 116, 116, 116, 116, 104, ); const YY_SHIFT_USE_DFLT = -62; const YY_SHIFT_MAX = 205; static public $yy_shift_ofst = array( /* 0 */ 303, 160, 484, -9, -9, -9, -9, -9, -9, -9, /* 10 */ -9, -9, -9, -9, 322, 52, 214, 268, 214, 268, /* 20 */ 214, 214, 322, 214, 214, 214, 214, 214, 214, 214, /* 30 */ 214, 214, 214, 214, 214, 214, 106, 376, 430, 502, /* 40 */ 563, 545, 563, 105, 143, 450, 278, 1, -52, 313, /* 50 */ 301, 417, 405, 405, 411, 411, 383, 329, 437, 211, /* 60 */ 209, 203, 423, 347, 51, 415, 47, 356, 293, 356, /* 70 */ 356, 356, 356, 356, 415, 356, 422, 422, 422, 366, /* 80 */ 366, 366, 97, 205, 43, 259, 259, 259, 259, 259, /* 90 */ 259, 259, 259, 259, 303, 201, 198, 102, 139, 369, /* 100 */ 77, 139, -19, -61, -19, 146, 370, 247, -19, 54, /* 110 */ -19, 304, 356, 362, 152, -15, 356, 372, 226, -19, /* 120 */ 366, 583, 381, 366, 381, 366, 381, 366, 558, 381, /* 130 */ 422, 577, 366, 366, 381, 381, 588, 381, 422, 381, /* 140 */ 366, 422, 366, 366, 422, 366, -62, -62, -62, -62, /* 150 */ -62, -62, 132, 315, 65, 173, 173, 196, 156, 212, /* 160 */ 173, 23, 99, 173, 277, 501, 517, 574, 537, 524, /* 170 */ 514, 505, 465, 507, 454, 444, 496, 497, 534, 481, /* 180 */ 475, 512, 495, 531, 491, 489, 533, 522, 521, 565, /* 190 */ 571, 561, 554, 233, 391, 295, 379, 357, 499, 217, /* 200 */ 331, 419, 427, 511, 519, 441, ); const YY_REDUCE_USE_DFLT = -84; const YY_REDUCE_MAX = 151; static public $yy_reduce_ofst = array( /* 0 */ 250, -75, 104, -54, 7, 549, 432, 664, 584, 607, /* 10 */ 625, 643, 682, 700, 570, 737, 767, 753, 781, 831, /* 20 */ 799, 815, 718, 861, 847, 893, 875, 909, 1003, 969, /* 30 */ 955, 987, 941, 1019, 1035, 925, 500, 518, 1049, 1063, /* 40 */ 1065, 606, 1074, -44, 317, 60, -16, -48, 67, 228, /* 50 */ 60, -11, -62, 249, 309, 141, 172, 172, 172, -83, /* 60 */ 386, 79, 380, 394, 386, 365, 225, 308, 342, 390, /* 70 */ 345, 363, 351, 350, 350, 386, 225, 408, 424, 477, /* 80 */ 494, 439, 509, 509, 509, 509, 509, 509, 509, 509, /* 90 */ 509, 509, 509, 509, 550, 513, 523, 523, 523, 486, /* 100 */ 503, 523, 498, 328, 498, 328, 328, 328, 498, 328, /* 110 */ 498, 328, 503, 328, 508, 328, 503, 525, 328, 498, /* 120 */ 358, 532, 328, 358, 328, 358, 328, 358, 559, 328, /* 130 */ 377, 535, 358, 358, 328, 328, 544, 328, 377, 328, /* 140 */ 358, 377, 358, 358, 377, 358, 285, -78, 57, 88, /* 150 */ 22, 20, ); static public $yyExpectedTokens = array( /* 0 */ array(1, 2, 3, 4, 5, 8, 12, 13, 14, 15, ), /* 1 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 2 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 3 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 4 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 5 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 6 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 7 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 8 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 9 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 10 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 11 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 12 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 13 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 14 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 15 */ array(1, 9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 16 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 17 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 18 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 19 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 20 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 21 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 22 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 23 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 24 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 25 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 26 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 27 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 28 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 29 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 30 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 31 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 32 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 33 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 34 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 35 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 36 */ array(9, 15, 19, 20, 44, 46, 47, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 37 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 38 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 39 */ array(9, 15, 19, 20, 44, 46, 51, 55, 60, 61, 67, 71, 72, ), /* 40 */ array(9, 15, 19, 20, 44, 51, 55, 60, 61, 67, 71, 72, ), /* 41 */ array(9, 15, 19, 20, 44, 51, 55, 60, 61, 67, 71, 72, ), /* 42 */ array(9, 15, 19, 20, 44, 51, 55, 60, 61, 67, 71, 72, ), /* 43 */ array(15, 55, 60, 67, ), /* 44 */ array(15, 19, 20, 51, 55, 60, 67, ), /* 45 */ array(44, 48, 57, 63, 68, ), /* 46 */ array(1, 55, 60, 67, ), /* 47 */ array(46, 48, 64, ), /* 48 */ array(55, 60, 67, ), /* 49 */ array(48, 63, 68, ), /* 50 */ array(48, 63, 68, ), /* 51 */ array(55, 60, ), /* 52 */ array(63, 68, ), /* 53 */ array(63, 68, ), /* 54 */ array(56, 68, ), /* 55 */ array(56, 68, ), /* 56 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ), /* 57 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ), /* 58 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 63, ), /* 59 */ array(1, 15, 55, 61, 62, ), /* 60 */ array(15, 50, 59, 67, ), /* 61 */ array(15, 50, 52, 67, ), /* 62 */ array(1, 9, 15, ), /* 63 */ array(16, 52, 68, ), /* 64 */ array(15, 59, 67, ), /* 65 */ array(15, 67, ), /* 66 */ array(48, 50, ), /* 67 */ array(15, 67, ), /* 68 */ array(55, 67, ), /* 69 */ array(15, 67, ), /* 70 */ array(15, 67, ), /* 71 */ array(15, 67, ), /* 72 */ array(15, 67, ), /* 73 */ array(15, 67, ), /* 74 */ array(15, 67, ), /* 75 */ array(15, 67, ), /* 76 */ array(48, ), /* 77 */ array(48, ), /* 78 */ array(48, ), /* 79 */ array(68, ), /* 80 */ array(68, ), /* 81 */ array(68, ), /* 82 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ), /* 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, 58, ), /* 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, 8, 12, 13, 14, 15, ), /* 95 */ array(1, 15, 55, 61, 62, ), /* 96 */ array(16, 53, 54, 66, ), /* 97 */ array(47, 53, 54, 66, ), /* 98 */ array(53, 54, 66, ), /* 99 */ array(1, 9, 15, ), /* 100 */ array(15, 50, 67, ), /* 101 */ array(53, 54, 66, ), /* 102 */ array(46, 64, ), /* 103 */ array(63, 65, ), /* 104 */ array(46, 64, ), /* 105 */ array(49, 63, ), /* 106 */ array(16, 63, ), /* 107 */ array(56, 63, ), /* 108 */ array(46, 64, ), /* 109 */ array(16, 63, ), /* 110 */ array(46, 64, ), /* 111 */ array(16, 63, ), /* 112 */ array(15, 67, ), /* 113 */ array(56, 63, ), /* 114 */ array(55, 67, ), /* 115 */ array(16, 63, ), /* 116 */ array(15, 67, ), /* 117 */ array(15, 44, ), /* 118 */ array(45, 63, ), /* 119 */ array(46, 64, ), /* 120 */ array(68, ), /* 121 */ array(56, ), /* 122 */ array(63, ), /* 123 */ array(68, ), /* 124 */ array(63, ), /* 125 */ array(68, ), /* 126 */ array(63, ), /* 127 */ array(68, ), /* 128 */ array(67, ), /* 129 */ array(63, ), /* 130 */ array(48, ), /* 131 */ array(44, ), /* 132 */ array(68, ), /* 133 */ array(68, ), /* 134 */ array(63, ), /* 135 */ array(63, ), /* 136 */ array(55, ), /* 137 */ array(63, ), /* 138 */ array(48, ), /* 139 */ array(63, ), /* 140 */ array(68, ), /* 141 */ array(48, ), /* 142 */ array(68, ), /* 143 */ array(68, ), /* 144 */ array(48, ), /* 145 */ array(68, ), /* 146 */ array(), /* 147 */ array(), /* 148 */ array(), /* 149 */ array(), /* 150 */ array(), /* 151 */ array(), /* 152 */ array(16, 44, 50, 57, 68, ), /* 153 */ array(44, 47, 57, 64, ), /* 154 */ array(44, 49, 57, ), /* 155 */ array(44, 57, ), /* 156 */ array(44, 57, ), /* 157 */ array(58, 65, ), /* 158 */ array(18, 69, ), /* 159 */ array(16, 68, ), /* 160 */ array(44, 57, ), /* 161 */ array(1, 67, ), /* 162 */ array(47, 65, ), /* 163 */ array(44, 57, ), /* 164 */ array(59, 67, ), /* 165 */ array(67, ), /* 166 */ array(50, ), /* 167 */ array(16, ), /* 168 */ array(50, ), /* 169 */ array(70, ), /* 170 */ array(67, ), /* 171 */ array(56, ), /* 172 */ array(67, ), /* 173 */ array(16, ), /* 174 */ array(55, ), /* 175 */ array(62, ), /* 176 */ array(44, ), /* 177 */ array(55, ), /* 178 */ array(16, ), /* 179 */ array(62, ), /* 180 */ array(67, ), /* 181 */ array(67, ), /* 182 */ array(52, ), /* 183 */ array(18, ), /* 184 */ array(47, ), /* 185 */ array(16, ), /* 186 */ array(1, ), /* 187 */ array(69, ), /* 188 */ array(64, ), /* 189 */ array(5, ), /* 190 */ array(5, ), /* 191 */ array(16, ), /* 192 */ array(45, ), /* 193 */ array(45, ), /* 194 */ array(51, ), /* 195 */ array(70, ), /* 196 */ array(1, ), /* 197 */ array(45, ), /* 198 */ array(60, ), /* 199 */ array(67, ), /* 200 */ array(16, ), /* 201 */ array(67, ), /* 202 */ array(60, ), /* 203 */ array(55, ), /* 204 */ array(67, ), /* 205 */ array(67, ), /* 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(), /* 305 */ array(), /* 306 */ array(), /* 307 */ array(), /* 308 */ array(), /* 309 */ array(), /* 310 */ array(), /* 311 */ array(), /* 312 */ array(), /* 313 */ array(), ); static public $yy_default = array( /* 0 */ 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, /* 10 */ 488, 488, 488, 488, 469, 488, 427, 488, 427, 488, /* 20 */ 427, 427, 488, 488, 488, 488, 488, 488, 488, 488, /* 30 */ 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, /* 40 */ 488, 488, 488, 488, 488, 334, 488, 389, 488, 349, /* 50 */ 334, 488, 349, 349, 349, 349, 437, 437, 437, 488, /* 60 */ 399, 488, 488, 370, 399, 488, 392, 488, 488, 488, /* 70 */ 488, 488, 488, 488, 488, 399, 392, 385, 384, 349, /* 80 */ 349, 349, 488, 488, 488, 446, 441, 435, 337, 451, /* 90 */ 447, 442, 450, 443, 314, 488, 488, 488, 432, 488, /* 100 */ 488, 358, 420, 426, 419, 472, 488, 488, 397, 488, /* 110 */ 421, 488, 342, 488, 488, 488, 343, 399, 488, 418, /* 120 */ 345, 360, 438, 331, 350, 329, 471, 330, 488, 470, /* 130 */ 386, 399, 344, 328, 356, 365, 488, 340, 387, 366, /* 140 */ 332, 390, 335, 333, 415, 336, 399, 399, 431, 399, /* 150 */ 431, 431, 357, 488, 357, 452, 433, 488, 361, 361, /* 160 */ 488, 488, 488, 357, 488, 488, 353, 488, 488, 378, /* 170 */ 488, 413, 488, 488, 488, 488, 388, 488, 354, 488, /* 180 */ 488, 488, 370, 364, 488, 488, 488, 361, 373, 488, /* 190 */ 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, /* 200 */ 488, 488, 488, 488, 403, 488, 424, 407, 363, 374, /* 210 */ 375, 405, 409, 408, 402, 404, 410, 371, 346, 320, /* 220 */ 316, 317, 318, 319, 321, 322, 327, 315, 326, 325, /* 230 */ 323, 324, 347, 430, 394, 398, 395, 396, 401, 400, /* 240 */ 393, 417, 352, 361, 362, 372, 474, 422, 406, 367, /* 250 */ 348, 448, 449, 445, 444, 423, 425, 480, 477, 476, /* 260 */ 436, 465, 464, 482, 463, 466, 468, 460, 461, 459, /* 270 */ 458, 456, 457, 462, 454, 378, 434, 467, 439, 440, /* 280 */ 453, 475, 473, 369, 368, 391, 359, 414, 411, 455, /* 290 */ 416, 481, 483, 479, 478, 377, 376, 428, 429, 487, /* 300 */ 341, 381, 339, 382, 485, 412, 413, 379, 364, 380, /* 310 */ 484, 486, 355, 383, ); /* 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 = 117; const YYSTACKDEPTH = 100; const YYNSTATE = 314; const YYNRULE = 174; const YYERRORSYMBOL = 73; const YYERRSYMDT = 'yy0'; const YYFALLBACK = 1; /** The next table maps tokens into fallback tokens. If a construct * like the following: * * %fallback ID X Y Z. * * appears in the grammer, then ID becomes a fallback token for X, Y, * and Z. Whenever one of the tokens X, Y, or Z is input to the parser * but it does not parse, the type of the token is changed to ID and * the parse is retried before an error is thrown. */ static public $yyFallback = array( 0, /* $ => nothing */ 0, /* OTHER => nothing */ 1, /* XML => OTHER */ 1, /* PHP => OTHER */ 1, /* SHORTTAGSTART => OTHER */ 1, /* SHORTTAGEND => OTHER */ 1, /* PHPSTART => OTHER */ 1, /* PHPEND => OTHER */ 1, /* COMMENT => OTHER */ 1, /* SINGLEQUOTE => OTHER */ 1, /* LITERALSTART => OTHER */ 1, /* LITERALEND => OTHER */ 1, /* LDELIMTAG => OTHER */ 1, /* RDELIMTAG => OTHER */ 1, /* LDELSLASH => OTHER */ 1, /* LDEL => OTHER */ 1, /* RDEL => OTHER */ 1, /* ISIN => OTHER */ 1, /* AS => OTHER */ 1, /* BOOLEAN => OTHER */ 1, /* NULL => OTHER */ 1, /* IDENTITY => OTHER */ 1, /* NONEIDENTITY => OTHER */ 1, /* EQUALS => OTHER */ 1, /* NOTEQUALS => OTHER */ 1, /* GREATEREQUAL => OTHER */ 1, /* LESSEQUAL => OTHER */ 1, /* GREATERTHAN => OTHER */ 1, /* LESSTHAN => OTHER */ 1, /* MOD => OTHER */ 1, /* NOT => OTHER */ 1, /* LAND => OTHER */ 1, /* LOR => OTHER */ 1, /* LXOR => OTHER */ 1, /* ISODDBY => OTHER */ 1, /* ISNOTODDBY => OTHER */ 1, /* ISODD => OTHER */ 1, /* ISNOTODD => OTHER */ 1, /* ISEVENBY => OTHER */ 1, /* ISNOTEVENBY => OTHER */ 1, /* ISEVEN => OTHER */ 1, /* ISNOTEVEN => OTHER */ 1, /* ISDIVBY => OTHER */ 1, /* ISNOTDIVBY => OTHER */ 1, /* OPENP => OTHER */ 1, /* CLOSEP => OTHER */ 1, /* OPENB => OTHER */ 1, /* CLOSEB => OTHER */ 1, /* PTR => OTHER */ 1, /* APTR => OTHER */ 1, /* EQUAL => OTHER */ 1, /* INTEGER => OTHER */ 1, /* INCDEC => OTHER */ 1, /* UNIMATH => OTHER */ 1, /* MATH => OTHER */ 1, /* DOLLAR => OTHER */ 1, /* COLON => OTHER */ 1, /* DOUBLECOLON => OTHER */ 1, /* SEMICOLON => OTHER */ 1, /* AT => OTHER */ 1, /* HATCH => OTHER */ 1, /* QUOTE => OTHER */ 1, /* BACKTICK => OTHER */ 1, /* VERT => OTHER */ 1, /* DOT => OTHER */ 1, /* COMMA => OTHER */ 1, /* ANDSYM => OTHER */ 1, /* ID => OTHER */ 1, /* SPACE => OTHER */ 1, /* INSTANCEOF => OTHER */ 1, /* QMARK => OTHER */ 1, /* TYPECAST => OTHER */ 0, /* SINGLEQUOTESTRING => nothing */ ); /** * Turn parser tracing on by giving a stream to which to write the trace * and a prompt to preface each trace message. Tracing is turned off * by making either argument NULL * * Inputs: * * - A stream resource to which trace output should be written. * If NULL, then tracing is turned off. * - A prefix string written at the beginning of every * line of trace output. If NULL, then tracing is * turned off. * * Outputs: * * - None. * @param resource * @param string */ static function Trace($TraceFILE, $zTracePrompt) { if (!$TraceFILE) { $zTracePrompt = 0; } elseif (!$zTracePrompt) { $TraceFILE = 0; } self::$yyTraceFILE = $TraceFILE; self::$yyTracePrompt = $zTracePrompt; } /** * Output debug information to output (php://output stream) */ static function PrintTrace() { self::$yyTraceFILE = fopen('php://output', 'w'); self::$yyTracePrompt = '
'; } /** * @var resource|0 */ static public $yyTraceFILE; /** * String to prepend to debug output * @var string|0 */ static public $yyTracePrompt; /** * @var int */ public $yyidx; /* Index of top element in stack */ /** * @var int */ public $yyerrcnt; /* Shifts left before out of the error */ /** * @var array */ public $yystack = array(); /* The parser's stack */ /** * For tracing shifts, the names of all terminals and nonterminals * are required. The following table supplies these names * @var array */ public $yyTokenName = array( '$', 'OTHER', 'XML', 'PHP', 'SHORTTAGSTART', 'SHORTTAGEND', 'PHPSTART', 'PHPEND', 'COMMENT', 'SINGLEQUOTE', 'LITERALSTART', 'LITERALEND', 'LDELIMTAG', 'RDELIMTAG', 'LDELSLASH', 'LDEL', 'RDEL', 'ISIN', 'AS', 'BOOLEAN', 'NULL', 'IDENTITY', 'NONEIDENTITY', 'EQUALS', 'NOTEQUALS', 'GREATEREQUAL', 'LESSEQUAL', 'GREATERTHAN', 'LESSTHAN', 'MOD', 'NOT', 'LAND', 'LOR', 'LXOR', 'ISODDBY', 'ISNOTODDBY', 'ISODD', 'ISNOTODD', 'ISEVENBY', 'ISNOTEVENBY', 'ISEVEN', 'ISNOTEVEN', 'ISDIVBY', 'ISNOTDIVBY', 'OPENP', 'CLOSEP', 'OPENB', 'CLOSEB', 'PTR', 'APTR', 'EQUAL', 'INTEGER', 'INCDEC', 'UNIMATH', 'MATH', 'DOLLAR', 'COLON', 'DOUBLECOLON', 'SEMICOLON', 'AT', 'HATCH', 'QUOTE', 'BACKTICK', 'VERT', 'DOT', 'COMMA', 'ANDSYM', 'ID', 'SPACE', 'INSTANCEOF', 'QMARK', 'TYPECAST', 'SINGLEQUOTESTRING', 'error', 'start', 'template', 'template_element', 'smartytag', 'smartyclosetag', 'outputtag', 'variable', 'attributes', 'expr', 'ternary', 'varindexed', 'modifier', 'modparameters', 'ifexprs', 'statement', 'statements', 'varvar', 'foraction', 'value', 'array', 'attribute', 'exprs', 'math', 'function', 'text', 'doublequoted', 'method', 'params', 'objectchain', 'arrayindex', 'object', 'indexdef', 'varvarele', 'objectelement', 'modparameter', 'ifexpr', 'ifcond', 'lop', 'arrayelements', 'arrayelement', 'doublequotedcontent', 'textelement', ); /** * For tracing reduce actions, the names of all rules are required. * @var array */ static public $yyRuleName = array( /* 0 */ "start ::= template", /* 1 */ "template ::= template_element", /* 2 */ "template ::= template template_element", /* 3 */ "template_element ::= LDEL smartytag RDEL", /* 4 */ "template_element ::= LDELSLASH smartyclosetag RDEL", /* 5 */ "template_element ::= LDEL outputtag RDEL", /* 6 */ "template_element ::= COMMENT", /* 7 */ "template_element ::= LDELIMTAG", /* 8 */ "template_element ::= RDELIMTAG", /* 9 */ "template_element ::= PHP OTHER SHORTTAGEND", /* 10 */ "template_element ::= SHORTTAGSTART OTHER SHORTTAGEND", /* 11 */ "template_element ::= XML", /* 12 */ "template_element ::= SHORTTAGEND", /* 13 */ "template_element ::= OTHER", /* 14 */ "outputtag ::= variable attributes", /* 15 */ "outputtag ::= expr attributes", /* 16 */ "outputtag ::= ternary attributes", /* 17 */ "smartytag ::= varindexed EQUAL expr attributes", /* 18 */ "smartytag ::= varindexed EQUAL ternary attributes", /* 19 */ "smartytag ::= ID attributes", /* 20 */ "smartytag ::= ID", /* 21 */ "smartytag ::= ID PTR ID attributes", /* 22 */ "smartytag ::= ID modifier modparameters attributes", /* 23 */ "smartytag ::= ID SPACE ifexprs", /* 24 */ "smartytag ::= ID SPACE statement", /* 25 */ "smartytag ::= ID SPACE statements SEMICOLON ifexprs SEMICOLON DOLLAR varvar foraction", /* 26 */ "foraction ::= EQUAL expr", /* 27 */ "foraction ::= INCDEC", /* 28 */ "smartytag ::= ID SPACE value AS DOLLAR varvar", /* 29 */ "smartytag ::= ID SPACE array AS DOLLAR varvar", /* 30 */ "smartyclosetag ::= ID attributes", /* 31 */ "smartyclosetag ::= ID modifier modparameters attributes", /* 32 */ "smartyclosetag ::= ID PTR ID", /* 33 */ "attributes ::= attributes attribute", /* 34 */ "attributes ::= attribute", /* 35 */ "attributes ::=", /* 36 */ "attribute ::= SPACE ID EQUAL expr", /* 37 */ "attribute ::= SPACE ID EQUAL value", /* 38 */ "attribute ::= SPACE ID EQUAL ternary", /* 39 */ "attribute ::= SPACE ID", /* 40 */ "statements ::= statement", /* 41 */ "statements ::= statements COMMA statement", /* 42 */ "statement ::= DOLLAR varvar EQUAL expr", /* 43 */ "expr ::= ID", /* 44 */ "expr ::= exprs", /* 45 */ "expr ::= DOLLAR ID COLON ID", /* 46 */ "expr ::= expr modifier modparameters", /* 47 */ "exprs ::= value", /* 48 */ "exprs ::= UNIMATH value", /* 49 */ "exprs ::= exprs math value", /* 50 */ "exprs ::= array", /* 51 */ "ternary ::= OPENP ifexprs CLOSEP QMARK expr COLON expr", /* 52 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr", /* 53 */ "math ::= UNIMATH", /* 54 */ "math ::= MATH", /* 55 */ "math ::= ANDSYM", /* 56 */ "value ::= variable", /* 57 */ "value ::= TYPECAST variable", /* 58 */ "value ::= variable INCDEC", /* 59 */ "value ::= INTEGER", /* 60 */ "value ::= INTEGER DOT INTEGER", /* 61 */ "value ::= BOOLEAN", /* 62 */ "value ::= NULL", /* 63 */ "value ::= function", /* 64 */ "value ::= OPENP expr CLOSEP", /* 65 */ "value ::= SINGLEQUOTESTRING", /* 66 */ "value ::= SINGLEQUOTE text SINGLEQUOTE", /* 67 */ "value ::= SINGLEQUOTE SINGLEQUOTE", /* 68 */ "value ::= QUOTE doublequoted QUOTE", /* 69 */ "value ::= QUOTE QUOTE", /* 70 */ "value ::= ID DOUBLECOLON method", /* 71 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP", /* 72 */ "value ::= ID DOUBLECOLON method objectchain", /* 73 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain", /* 74 */ "value ::= ID DOUBLECOLON ID", /* 75 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex", /* 76 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain", /* 77 */ "value ::= LDEL smartytag RDEL", /* 78 */ "variable ::= varindexed", /* 79 */ "variable ::= DOLLAR varvar AT ID", /* 80 */ "variable ::= object", /* 81 */ "variable ::= HATCH ID HATCH", /* 82 */ "variable ::= HATCH variable HATCH", /* 83 */ "varindexed ::= DOLLAR varvar arrayindex", /* 84 */ "arrayindex ::= arrayindex indexdef", /* 85 */ "arrayindex ::=", /* 86 */ "indexdef ::= DOT ID", /* 87 */ "indexdef ::= DOT BOOLEAN", /* 88 */ "indexdef ::= DOT NULL", /* 89 */ "indexdef ::= DOT INTEGER", /* 90 */ "indexdef ::= DOT INTEGER ID", /* 91 */ "indexdef ::= DOT variable", /* 92 */ "indexdef ::= DOT LDEL exprs RDEL", /* 93 */ "indexdef ::= OPENB ID CLOSEB", /* 94 */ "indexdef ::= OPENB ID DOT ID CLOSEB", /* 95 */ "indexdef ::= OPENB exprs CLOSEB", /* 96 */ "indexdef ::= OPENB CLOSEB", /* 97 */ "varvar ::= varvarele", /* 98 */ "varvar ::= varvar varvarele", /* 99 */ "varvarele ::= ID", /* 100 */ "varvarele ::= LDEL expr RDEL", /* 101 */ "object ::= varindexed objectchain", /* 102 */ "objectchain ::= objectelement", /* 103 */ "objectchain ::= objectchain objectelement", /* 104 */ "objectelement ::= PTR ID arrayindex", /* 105 */ "objectelement ::= PTR variable arrayindex", /* 106 */ "objectelement ::= PTR LDEL expr RDEL arrayindex", /* 107 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex", /* 108 */ "objectelement ::= PTR method", /* 109 */ "function ::= ID OPENP params CLOSEP", /* 110 */ "method ::= ID OPENP params CLOSEP", /* 111 */ "params ::= expr COMMA params", /* 112 */ "params ::= expr", /* 113 */ "params ::=", /* 114 */ "modifier ::= VERT AT ID", /* 115 */ "modifier ::= VERT ID", /* 116 */ "modparameters ::= modparameters modparameter", /* 117 */ "modparameters ::=", /* 118 */ "modparameter ::= COLON exprs", /* 119 */ "modparameter ::= COLON ID", /* 120 */ "ifexprs ::= ifexpr", /* 121 */ "ifexprs ::= NOT ifexprs", /* 122 */ "ifexprs ::= OPENP ifexprs CLOSEP", /* 123 */ "ifexpr ::= expr", /* 124 */ "ifexpr ::= expr ifcond expr", /* 125 */ "ifexpr ::= expr ISIN array", /* 126 */ "ifexpr ::= expr ISIN value", /* 127 */ "ifexpr ::= ifexprs lop ifexprs", /* 128 */ "ifexpr ::= ifexprs ISDIVBY ifexprs", /* 129 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs", /* 130 */ "ifexpr ::= ifexprs ISEVEN", /* 131 */ "ifexpr ::= ifexprs ISNOTEVEN", /* 132 */ "ifexpr ::= ifexprs ISEVENBY ifexprs", /* 133 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs", /* 134 */ "ifexpr ::= ifexprs ISODD", /* 135 */ "ifexpr ::= ifexprs ISNOTODD", /* 136 */ "ifexpr ::= ifexprs ISODDBY ifexprs", /* 137 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs", /* 138 */ "ifexpr ::= value INSTANCEOF ID", /* 139 */ "ifexpr ::= value INSTANCEOF value", /* 140 */ "ifcond ::= EQUALS", /* 141 */ "ifcond ::= NOTEQUALS", /* 142 */ "ifcond ::= GREATERTHAN", /* 143 */ "ifcond ::= LESSTHAN", /* 144 */ "ifcond ::= GREATEREQUAL", /* 145 */ "ifcond ::= LESSEQUAL", /* 146 */ "ifcond ::= IDENTITY", /* 147 */ "ifcond ::= NONEIDENTITY", /* 148 */ "ifcond ::= MOD", /* 149 */ "lop ::= LAND", /* 150 */ "lop ::= LOR", /* 151 */ "lop ::= LXOR", /* 152 */ "array ::= OPENB arrayelements CLOSEB", /* 153 */ "arrayelements ::= arrayelement", /* 154 */ "arrayelements ::= arrayelements COMMA arrayelement", /* 155 */ "arrayelements ::=", /* 156 */ "arrayelement ::= expr APTR expr", /* 157 */ "arrayelement ::= ID APTR expr", /* 158 */ "arrayelement ::= expr", /* 159 */ "doublequoted ::= doublequoted doublequotedcontent", /* 160 */ "doublequoted ::= doublequotedcontent", /* 161 */ "doublequotedcontent ::= BACKTICK ID BACKTICK", /* 162 */ "doublequotedcontent ::= BACKTICK variable BACKTICK", /* 163 */ "doublequotedcontent ::= DOLLAR ID", /* 164 */ "doublequotedcontent ::= LDEL expr RDEL", /* 165 */ "doublequotedcontent ::= LDEL smartytag RDEL", /* 166 */ "doublequotedcontent ::= DOLLAR OTHER", /* 167 */ "doublequotedcontent ::= LDEL OTHER", /* 168 */ "doublequotedcontent ::= BACKTICK OTHER", /* 169 */ "doublequotedcontent ::= OTHER", /* 170 */ "text ::= text textelement", /* 171 */ "text ::= textelement", /* 172 */ "textelement ::= OTHER", /* 173 */ "textelement ::= LDEL", ); /** * This function returns the symbolic name associated with a token * value. * @param int * @return string */ function tokenName($tokenType) { if ($tokenType === 0) { return 'End of Input'; } if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) { return $this->yyTokenName[$tokenType]; } else { return "Unknown"; } } /** * The following function deletes the value associated with a * symbol. The symbol can be either a terminal or nonterminal. * @param int the symbol code * @param mixed the symbol's value */ static function yy_destructor($yymajor, $yypminor) { switch ($yymajor) { /* Here is inserted the actions which take place when a ** terminal or non-terminal is destroyed. This can happen ** when the symbol is popped from the stack during a ** reduce or during error processing or when a parser is ** being destroyed before it is finished parsing. ** ** Note: during a reduce, the only symbols destroyed are those ** which appear on the RHS of the rule, but which are not used ** inside the C code. */ default: break; /* If no destructor action specified: do nothing */ } } /** * Pop the parser's stack once. * * If there is a destructor routine associated with the token which * is popped from the stack, then call it. * * Return the major token number for the symbol popped. * @param TP_yyParser * @return int */ function yy_pop_parser_stack() { if (!count($this->yystack)) { return; } $yytos = array_pop($this->yystack); if (self::$yyTraceFILE && $this->yyidx >= 0) { fwrite(self::$yyTraceFILE, self::$yyTracePrompt . 'Popping ' . $this->yyTokenName[$yytos->major] . "\n"); } $yymajor = $yytos->major; self::yy_destructor($yymajor, $yytos->minor); $this->yyidx--; return $yymajor; } /** * Deallocate and destroy a parser. Destructors are all called for * all stack elements before shutting the parser down. */ function __destruct() { while ($this->yyidx >= 0) { $this->yy_pop_parser_stack(); } if (is_resource(self::$yyTraceFILE)) { fclose(self::$yyTraceFILE); } } /** * Based on the current state and parser stack, get a list of all * possible lookahead tokens * @param int * @return array */ function yy_get_expected_tokens($token) { $state = $this->yystack[$this->yyidx]->stateno; $expected = self::$yyExpectedTokens[$state]; if (in_array($token, self::$yyExpectedTokens[$state], true)) { return $expected; } $stack = $this->yystack; $yyidx = $this->yyidx; do { $yyact = $this->yy_find_shift_action($token); if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { // reduce action $done = 0; do { if ($done++ == 100) { $this->yyidx = $yyidx; $this->yystack = $stack; // too much recursion prevents proper detection // so give up return array_unique($expected); } $yyruleno = $yyact - self::YYNSTATE; $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; $nextstate = $this->yy_find_reduce_action( $this->yystack[$this->yyidx]->stateno, self::$yyRuleInfo[$yyruleno]['lhs']); if (isset(self::$yyExpectedTokens[$nextstate])) { $expected += self::$yyExpectedTokens[$nextstate]; if (in_array($token, self::$yyExpectedTokens[$nextstate], true)) { $this->yyidx = $yyidx; $this->yystack = $stack; return array_unique($expected); } } if ($nextstate < self::YYNSTATE) { // we need to shift a non-terminal $this->yyidx++; $x = new TP_yyStackEntry; $x->stateno = $nextstate; $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; $this->yystack[$this->yyidx] = $x; continue 2; } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { $this->yyidx = $yyidx; $this->yystack = $stack; // the last token was just ignored, we can't accept // by ignoring input, this is in essence ignoring a // syntax error! return array_unique($expected); } elseif ($nextstate === self::YY_NO_ACTION) { $this->yyidx = $yyidx; $this->yystack = $stack; // input accepted, but not shifted (I guess) return $expected; } else { $yyact = $nextstate; } } while (true); } break; } while (true); return array_unique($expected); } /** * Based on the parser state and current parser stack, determine whether * the lookahead token is possible. * * The parser will convert the token value to an error token if not. This * catches some unusual edge cases where the parser would fail. * @param int * @return bool */ function yy_is_expected_token($token) { if ($token === 0) { return true; // 0 is not part of this } $state = $this->yystack[$this->yyidx]->stateno; if (in_array($token, self::$yyExpectedTokens[$state], true)) { return true; } $stack = $this->yystack; $yyidx = $this->yyidx; do { $yyact = $this->yy_find_shift_action($token); if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { // reduce action $done = 0; do { if ($done++ == 100) { $this->yyidx = $yyidx; $this->yystack = $stack; // too much recursion prevents proper detection // so give up return true; } $yyruleno = $yyact - self::YYNSTATE; $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; $nextstate = $this->yy_find_reduce_action( $this->yystack[$this->yyidx]->stateno, self::$yyRuleInfo[$yyruleno]['lhs']); if (isset(self::$yyExpectedTokens[$nextstate]) && in_array($token, self::$yyExpectedTokens[$nextstate], true)) { $this->yyidx = $yyidx; $this->yystack = $stack; return true; } if ($nextstate < self::YYNSTATE) { // we need to shift a non-terminal $this->yyidx++; $x = new TP_yyStackEntry; $x->stateno = $nextstate; $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; $this->yystack[$this->yyidx] = $x; continue 2; } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { $this->yyidx = $yyidx; $this->yystack = $stack; if (!$token) { // end of input: this is valid return true; } // the last token was just ignored, we can't accept // by ignoring input, this is in essence ignoring a // syntax error! return false; } elseif ($nextstate === self::YY_NO_ACTION) { $this->yyidx = $yyidx; $this->yystack = $stack; // input accepted, but not shifted (I guess) return true; } else { $yyact = $nextstate; } } while (true); } break; } while (true); $this->yyidx = $yyidx; $this->yystack = $stack; return true; } /** * Find the appropriate action for a parser given the terminal * look-ahead token iLookAhead. * * If the look-ahead token is YYNOCODE, then check to see if the action is * independent of the look-ahead. If it is, return the action, otherwise * return YY_NO_ACTION. * @param int The look-ahead token */ function yy_find_shift_action($iLookAhead) { $stateno = $this->yystack[$this->yyidx]->stateno; /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */ if (!isset(self::$yy_shift_ofst[$stateno])) { // no shift actions return self::$yy_default[$stateno]; } $i = self::$yy_shift_ofst[$stateno]; if ($i === self::YY_SHIFT_USE_DFLT) { return self::$yy_default[$stateno]; } if ($iLookAhead == self::YYNOCODE) { return self::YY_NO_ACTION; } $i += $iLookAhead; if ($i < 0 || $i >= self::YY_SZ_ACTTAB || self::$yy_lookahead[$i] != $iLookAhead) { if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) && ($iFallback = self::$yyFallback[$iLookAhead]) != 0) { if (self::$yyTraceFILE) { fwrite(self::$yyTraceFILE, self::$yyTracePrompt . "FALLBACK " . $this->yyTokenName[$iLookAhead] . " => " . $this->yyTokenName[$iFallback] . "\n"); } return $this->yy_find_shift_action($iFallback); } return self::$yy_default[$stateno]; } else { return self::$yy_action[$i]; } } /** * Find the appropriate action for a parser given the non-terminal * look-ahead token $iLookAhead. * * If the look-ahead token is self::YYNOCODE, then check to see if the action is * independent of the look-ahead. If it is, return the action, otherwise * return self::YY_NO_ACTION. * @param int Current state number * @param int The look-ahead token */ function yy_find_reduce_action($stateno, $iLookAhead) { /* $stateno = $this->yystack[$this->yyidx]->stateno; */ if (!isset(self::$yy_reduce_ofst[$stateno])) { return self::$yy_default[$stateno]; } $i = self::$yy_reduce_ofst[$stateno]; if ($i == self::YY_REDUCE_USE_DFLT) { return self::$yy_default[$stateno]; } if ($iLookAhead == self::YYNOCODE) { return self::YY_NO_ACTION; } $i += $iLookAhead; if ($i < 0 || $i >= self::YY_SZ_ACTTAB || self::$yy_lookahead[$i] != $iLookAhead) { return self::$yy_default[$stateno]; } else { return self::$yy_action[$i]; } } /** * Perform a shift action. * @param int The new state to shift in * @param int The major token to shift in * @param mixed the minor token to shift in */ function yy_shift($yyNewState, $yyMajor, $yypMinor) { $this->yyidx++; if ($this->yyidx >= self::YYSTACKDEPTH) { $this->yyidx--; if (self::$yyTraceFILE) { fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt); } while ($this->yyidx >= 0) { $this->yy_pop_parser_stack(); } /* Here code is inserted which will execute if the parser ** stack ever overflows */ return; } $yytos = new TP_yyStackEntry; $yytos->stateno = $yyNewState; $yytos->major = $yyMajor; $yytos->minor = $yypMinor; array_push($this->yystack, $yytos); if (self::$yyTraceFILE && $this->yyidx > 0) { fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt, $yyNewState); fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt); for($i = 1; $i <= $this->yyidx; $i++) { fprintf(self::$yyTraceFILE, " %s", $this->yyTokenName[$this->yystack[$i]->major]); } fwrite(self::$yyTraceFILE,"\n"); } } /** * The following table contains information about every rule that * is used during the reduce. * *
     * array(
     *  array(
     *   int $lhs;         Symbol on the left-hand side of the rule
     *   int $nrhs;     Number of right-hand side symbols in the rule
     *  ),...
     * );
     * 
*/ static public $yyRuleInfo = array( array( 'lhs' => 74, 'rhs' => 1 ), array( 'lhs' => 75, 'rhs' => 1 ), array( 'lhs' => 75, 'rhs' => 2 ), array( 'lhs' => 76, 'rhs' => 3 ), array( 'lhs' => 76, 'rhs' => 3 ), array( 'lhs' => 76, 'rhs' => 3 ), array( 'lhs' => 76, 'rhs' => 1 ), array( 'lhs' => 76, 'rhs' => 1 ), array( 'lhs' => 76, 'rhs' => 1 ), array( 'lhs' => 76, 'rhs' => 3 ), array( 'lhs' => 76, 'rhs' => 3 ), array( 'lhs' => 76, 'rhs' => 1 ), array( 'lhs' => 76, 'rhs' => 1 ), array( 'lhs' => 76, 'rhs' => 1 ), array( 'lhs' => 79, 'rhs' => 2 ), array( 'lhs' => 79, 'rhs' => 2 ), array( 'lhs' => 79, 'rhs' => 2 ), array( 'lhs' => 77, 'rhs' => 4 ), array( 'lhs' => 77, 'rhs' => 4 ), array( 'lhs' => 77, 'rhs' => 2 ), array( 'lhs' => 77, 'rhs' => 1 ), array( 'lhs' => 77, 'rhs' => 4 ), array( 'lhs' => 77, 'rhs' => 4 ), array( 'lhs' => 77, 'rhs' => 3 ), array( 'lhs' => 77, 'rhs' => 3 ), array( 'lhs' => 77, 'rhs' => 9 ), array( 'lhs' => 91, 'rhs' => 2 ), array( 'lhs' => 91, 'rhs' => 1 ), array( 'lhs' => 77, 'rhs' => 6 ), array( 'lhs' => 77, 'rhs' => 6 ), array( 'lhs' => 78, 'rhs' => 2 ), array( 'lhs' => 78, 'rhs' => 4 ), array( 'lhs' => 78, 'rhs' => 3 ), array( 'lhs' => 81, 'rhs' => 2 ), array( 'lhs' => 81, 'rhs' => 1 ), array( 'lhs' => 81, 'rhs' => 0 ), array( 'lhs' => 94, 'rhs' => 4 ), array( 'lhs' => 94, 'rhs' => 4 ), array( 'lhs' => 94, 'rhs' => 4 ), array( 'lhs' => 94, 'rhs' => 2 ), array( 'lhs' => 89, 'rhs' => 1 ), array( 'lhs' => 89, 'rhs' => 3 ), array( 'lhs' => 88, 'rhs' => 4 ), array( 'lhs' => 82, 'rhs' => 1 ), array( 'lhs' => 82, 'rhs' => 1 ), array( 'lhs' => 82, 'rhs' => 4 ), array( 'lhs' => 82, 'rhs' => 3 ), array( 'lhs' => 95, 'rhs' => 1 ), array( 'lhs' => 95, 'rhs' => 2 ), array( 'lhs' => 95, 'rhs' => 3 ), array( 'lhs' => 95, 'rhs' => 1 ), array( 'lhs' => 83, 'rhs' => 7 ), array( 'lhs' => 83, 'rhs' => 7 ), array( 'lhs' => 96, 'rhs' => 1 ), array( 'lhs' => 96, 'rhs' => 1 ), array( 'lhs' => 96, 'rhs' => 1 ), array( 'lhs' => 92, 'rhs' => 1 ), array( 'lhs' => 92, 'rhs' => 2 ), array( 'lhs' => 92, 'rhs' => 2 ), array( 'lhs' => 92, 'rhs' => 1 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 92, 'rhs' => 1 ), array( 'lhs' => 92, 'rhs' => 1 ), array( 'lhs' => 92, 'rhs' => 1 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 92, 'rhs' => 1 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 92, 'rhs' => 2 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 92, 'rhs' => 2 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 92, 'rhs' => 7 ), array( 'lhs' => 92, 'rhs' => 4 ), array( 'lhs' => 92, 'rhs' => 8 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 92, 'rhs' => 5 ), array( 'lhs' => 92, 'rhs' => 6 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 80, 'rhs' => 1 ), array( 'lhs' => 80, 'rhs' => 4 ), array( 'lhs' => 80, 'rhs' => 1 ), array( 'lhs' => 80, 'rhs' => 3 ), array( 'lhs' => 80, 'rhs' => 3 ), array( 'lhs' => 84, 'rhs' => 3 ), array( 'lhs' => 103, 'rhs' => 2 ), array( 'lhs' => 103, 'rhs' => 0 ), array( 'lhs' => 105, 'rhs' => 2 ), array( 'lhs' => 105, 'rhs' => 2 ), array( 'lhs' => 105, 'rhs' => 2 ), array( 'lhs' => 105, 'rhs' => 2 ), array( 'lhs' => 105, 'rhs' => 3 ), array( 'lhs' => 105, 'rhs' => 2 ), array( 'lhs' => 105, 'rhs' => 4 ), array( 'lhs' => 105, 'rhs' => 3 ), array( 'lhs' => 105, 'rhs' => 5 ), array( 'lhs' => 105, 'rhs' => 3 ), array( 'lhs' => 105, 'rhs' => 2 ), array( 'lhs' => 90, 'rhs' => 1 ), array( 'lhs' => 90, 'rhs' => 2 ), array( 'lhs' => 106, 'rhs' => 1 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 104, 'rhs' => 2 ), array( 'lhs' => 102, 'rhs' => 1 ), array( 'lhs' => 102, 'rhs' => 2 ), array( 'lhs' => 107, 'rhs' => 3 ), array( 'lhs' => 107, 'rhs' => 3 ), array( 'lhs' => 107, 'rhs' => 5 ), array( 'lhs' => 107, 'rhs' => 6 ), array( 'lhs' => 107, 'rhs' => 2 ), array( 'lhs' => 97, 'rhs' => 4 ), array( 'lhs' => 100, 'rhs' => 4 ), array( 'lhs' => 101, 'rhs' => 3 ), array( 'lhs' => 101, 'rhs' => 1 ), array( 'lhs' => 101, 'rhs' => 0 ), array( 'lhs' => 85, 'rhs' => 3 ), array( 'lhs' => 85, 'rhs' => 2 ), array( 'lhs' => 86, 'rhs' => 2 ), array( 'lhs' => 86, 'rhs' => 0 ), array( 'lhs' => 108, 'rhs' => 2 ), array( 'lhs' => 108, 'rhs' => 2 ), array( 'lhs' => 87, 'rhs' => 1 ), array( 'lhs' => 87, 'rhs' => 2 ), array( 'lhs' => 87, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 2 ), array( 'lhs' => 109, 'rhs' => 2 ), array( 'lhs' => 109, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 2 ), array( 'lhs' => 109, 'rhs' => 2 ), array( 'lhs' => 109, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 93, 'rhs' => 3 ), array( 'lhs' => 112, 'rhs' => 1 ), array( 'lhs' => 112, 'rhs' => 3 ), array( 'lhs' => 112, 'rhs' => 0 ), array( 'lhs' => 113, 'rhs' => 3 ), array( 'lhs' => 113, 'rhs' => 3 ), array( 'lhs' => 113, 'rhs' => 1 ), array( 'lhs' => 99, 'rhs' => 2 ), array( 'lhs' => 99, 'rhs' => 1 ), array( 'lhs' => 114, 'rhs' => 3 ), array( 'lhs' => 114, 'rhs' => 3 ), array( 'lhs' => 114, 'rhs' => 2 ), array( 'lhs' => 114, 'rhs' => 3 ), array( 'lhs' => 114, 'rhs' => 3 ), array( 'lhs' => 114, 'rhs' => 2 ), array( 'lhs' => 114, 'rhs' => 2 ), array( 'lhs' => 114, 'rhs' => 2 ), array( 'lhs' => 114, 'rhs' => 1 ), array( 'lhs' => 98, 'rhs' => 2 ), array( 'lhs' => 98, 'rhs' => 1 ), array( 'lhs' => 115, 'rhs' => 1 ), array( 'lhs' => 115, '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, 47 => 0, 56 => 0, 59 => 0, 61 => 0, 62 => 0, 63 => 0, 65 => 0, 80 => 0, 153 => 0, 1 => 1, 44 => 1, 50 => 1, 53 => 1, 54 => 1, 97 => 1, 120 => 1, 160 => 1, 169 => 1, 171 => 1, 172 => 1, 173 => 1, 2 => 2, 116 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 11 => 11, 12 => 12, 13 => 13, 14 => 14, 15 => 14, 16 => 14, 17 => 17, 18 => 17, 19 => 19, 20 => 20, 21 => 21, 22 => 22, 23 => 23, 24 => 24, 25 => 25, 26 => 26, 27 => 27, 34 => 27, 112 => 27, 158 => 27, 28 => 28, 29 => 29, 30 => 30, 31 => 31, 32 => 32, 33 => 33, 35 => 35, 36 => 36, 37 => 36, 38 => 36, 39 => 39, 40 => 40, 41 => 41, 42 => 42, 43 => 43, 45 => 45, 46 => 46, 48 => 48, 57 => 48, 58 => 48, 49 => 49, 51 => 51, 52 => 51, 55 => 55, 60 => 60, 64 => 64, 66 => 66, 67 => 67, 69 => 67, 68 => 68, 70 => 70, 71 => 71, 72 => 72, 73 => 73, 74 => 74, 75 => 75, 76 => 76, 77 => 77, 78 => 78, 79 => 79, 81 => 81, 82 => 82, 83 => 83, 84 => 84, 159 => 84, 167 => 84, 170 => 84, 85 => 85, 117 => 85, 86 => 86, 87 => 86, 88 => 86, 89 => 89, 90 => 90, 91 => 91, 92 => 92, 95 => 92, 93 => 93, 94 => 94, 96 => 96, 98 => 98, 99 => 99, 100 => 100, 122 => 100, 101 => 101, 102 => 102, 103 => 103, 104 => 104, 105 => 105, 106 => 106, 107 => 107, 108 => 108, 109 => 109, 110 => 110, 111 => 111, 113 => 113, 114 => 114, 115 => 115, 118 => 118, 119 => 119, 121 => 121, 123 => 123, 124 => 124, 127 => 124, 138 => 124, 125 => 125, 126 => 126, 128 => 128, 129 => 129, 130 => 130, 135 => 130, 131 => 131, 134 => 131, 132 => 132, 137 => 132, 133 => 133, 136 => 133, 139 => 139, 140 => 140, 141 => 141, 142 => 142, 143 => 143, 144 => 144, 145 => 145, 146 => 146, 147 => 147, 148 => 148, 149 => 149, 150 => 150, 151 => 151, 152 => 152, 154 => 154, 155 => 155, 156 => 156, 157 => 157, 161 => 161, 162 => 162, 163 => 163, 164 => 164, 165 => 165, 166 => 166, 168 => 168, ); /* Beginning here are the reduction cases. A typical example ** follows: ** #line ** function yy_r0($yymsp){ ... } // User supplied code ** #line */ #line 79 "smarty_internal_templateparser.y" function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2036 "smarty_internal_templateparser.php" #line 85 "smarty_internal_templateparser.y" function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2039 "smarty_internal_templateparser.php" #line 87 "smarty_internal_templateparser.y" function yy_r2(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2042 "smarty_internal_templateparser.php" #line 93 "smarty_internal_templateparser.y" function yy_r3(){ if ($this->compiler->has_code) { $tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array(); $this->_retvalue = $this->cacher->processNocacheCode($tmp.$this->yystack[$this->yyidx + -1]->minor, $this->compiler,true); } else { $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor;} $this->compiler->has_variable_string = false; } #line 2049 "smarty_internal_templateparser.php" #line 99 "smarty_internal_templateparser.y" function yy_r4(){ if ($this->compiler->has_code) { $tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array(); $this->_retvalue = $this->cacher->processNocacheCode($tmp.$this->yystack[$this->yyidx + -1]->minor, $this->compiler,true); } else { $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor;} $this->compiler->has_variable_string = false; } #line 2056 "smarty_internal_templateparser.php" #line 105 "smarty_internal_templateparser.y" function yy_r5(){ if ($this->compiler->has_code) { $tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array(); $this->_retvalue = $this->cacher->processNocacheCode($tmp.$this->yystack[$this->yyidx + -1]->minor, $this->compiler,true); } else { $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor;} $this->compiler->has_variable_string = false; } #line 2063 "smarty_internal_templateparser.php" #line 111 "smarty_internal_templateparser.y" function yy_r6(){ $this->_retvalue = ''; } #line 2066 "smarty_internal_templateparser.php" #line 116 "smarty_internal_templateparser.y" function yy_r7(){$this->_retvalue = $this->cacher->processNocacheCode($this->smarty->left_delimiter, $this->compiler,false); } #line 2069 "smarty_internal_templateparser.php" #line 118 "smarty_internal_templateparser.y" function yy_r8(){ $this->_retvalue = $this->cacher->processNocacheCode($this->smarty->right_delimiter, $this->compiler,false); } #line 2072 "smarty_internal_templateparser.php" #line 120 "smarty_internal_templateparser.y" function yy_r9(){if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU) { $this->_retvalue = $this->cacher->processNocacheCode("yystack[$this->yyidx + -1]->minor)."?>', ENT_QUOTES);?>\n", $this->compiler, false); } elseif ($this->sec_obj->php_handling == SMARTY_PHP_QUOTE) { $this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('yystack[$this->yyidx + -1]->minor.'?>', ENT_QUOTES), $this->compiler, false); }elseif ($this->sec_obj->php_handling == SMARTY_PHP_ALLOW) { $this->_retvalue = $this->cacher->processNocacheCode('yystack[$this->yyidx + -1]->minor.'?>', $this->compiler, true); }elseif ($this->sec_obj->php_handling == SMARTY_PHP_REMOVE) { $this->_retvalue = ''; } } #line 2084 "smarty_internal_templateparser.php" #line 131 "smarty_internal_templateparser.y" function yy_r10(){ if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU || $this->sec_obj->php_handling == SMARTY_PHP_ALLOW) { $this->_retvalue = $this->cacher->processNocacheCode("yystack[$this->yyidx + -1]->minor."?>'?>\n", $this->compiler, false); } elseif ($this->sec_obj->php_handling == SMARTY_PHP_QUOTE) { $this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('yystack[$this->yyidx + -1]->minor.'?>', ENT_QUOTES), $this->compiler, false); }elseif ($this->sec_obj == SMARTY_PHP_REMOVE) { $this->_retvalue = ''; } } #line 2095 "smarty_internal_templateparser.php" #line 142 "smarty_internal_templateparser.y" function yy_r11(){ $this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("", $this->compiler, true); } #line 2098 "smarty_internal_templateparser.php" #line 143 "smarty_internal_templateparser.y" function yy_r12(){$this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("';?>\n", $this->compiler, true); } #line 2101 "smarty_internal_templateparser.php" #line 146 "smarty_internal_templateparser.y" function yy_r13(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false); } #line 2104 "smarty_internal_templateparser.php" #line 153 "smarty_internal_templateparser.y" function yy_r14(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); } #line 2107 "smarty_internal_templateparser.php" #line 163 "smarty_internal_templateparser.y" function yy_r17(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor)); } #line 2110 "smarty_internal_templateparser.php" #line 166 "smarty_internal_templateparser.y" function yy_r19(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } #line 2113 "smarty_internal_templateparser.php" #line 167 "smarty_internal_templateparser.y" function yy_r20(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor,array()); } #line 2116 "smarty_internal_templateparser.php" #line 169 "smarty_internal_templateparser.y" function yy_r21(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); } #line 2119 "smarty_internal_templateparser.php" #line 171 "smarty_internal_templateparser.y" function yy_r22(){ $this->_retvalue = ''.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor).'smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -2]->minor[0],'modifier')) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>"; } else { if (is_callable($this->yystack[$this->yyidx + -2]->minor[0])) { if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -2]->minor[0], $this->compiler)) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>"; } } else { $this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -2]->minor[0] . "\""); } } } #line 2134 "smarty_internal_templateparser.php" #line 185 "smarty_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 2140 "smarty_internal_templateparser.php" #line 189 "smarty_internal_templateparser.y" function yy_r24(){ if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -2]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2146 "smarty_internal_templateparser.php" #line 194 "smarty_internal_templateparser.y" function yy_r25(){ 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 2153 "smarty_internal_templateparser.php" #line 199 "smarty_internal_templateparser.y" function yy_r26(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; } #line 2156 "smarty_internal_templateparser.php" #line 200 "smarty_internal_templateparser.y" function yy_r27(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2159 "smarty_internal_templateparser.php" #line 202 "smarty_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 2166 "smarty_internal_templateparser.php" #line 207 "smarty_internal_templateparser.y" function yy_r29(){ if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2173 "smarty_internal_templateparser.php" #line 214 "smarty_internal_templateparser.y" function yy_r30(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',$this->yystack[$this->yyidx + 0]->minor); } #line 2176 "smarty_internal_templateparser.php" #line 215 "smarty_internal_templateparser.y" function yy_r31(){ $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 2191 "smarty_internal_templateparser.php" #line 229 "smarty_internal_templateparser.y" function yy_r32(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2194 "smarty_internal_templateparser.php" #line 236 "smarty_internal_templateparser.y" function yy_r33(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } #line 2197 "smarty_internal_templateparser.php" #line 240 "smarty_internal_templateparser.y" function yy_r35(){ $this->_retvalue = array(); } #line 2200 "smarty_internal_templateparser.php" #line 243 "smarty_internal_templateparser.y" function yy_r36(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); } #line 2203 "smarty_internal_templateparser.php" #line 246 "smarty_internal_templateparser.y" function yy_r39(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); } #line 2206 "smarty_internal_templateparser.php" #line 252 "smarty_internal_templateparser.y" function yy_r40(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } #line 2209 "smarty_internal_templateparser.php" #line 253 "smarty_internal_templateparser.y" function yy_r41(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; } #line 2212 "smarty_internal_templateparser.php" #line 255 "smarty_internal_templateparser.y" function yy_r42(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); } #line 2215 "smarty_internal_templateparser.php" #line 261 "smarty_internal_templateparser.y" function yy_r43(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2218 "smarty_internal_templateparser.php" #line 264 "smarty_internal_templateparser.y" function yy_r45(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; } #line 2221 "smarty_internal_templateparser.php" #line 265 "smarty_internal_templateparser.y" function yy_r46(){ 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 2236 "smarty_internal_templateparser.php" #line 282 "smarty_internal_templateparser.y" function yy_r48(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2239 "smarty_internal_templateparser.php" #line 284 "smarty_internal_templateparser.y" function yy_r49(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; } #line 2242 "smarty_internal_templateparser.php" #line 291 "smarty_internal_templateparser.y" function yy_r51(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; } #line 2245 "smarty_internal_templateparser.php" #line 305 "smarty_internal_templateparser.y" function yy_r55(){$this->_retvalue = ' & '; } #line 2248 "smarty_internal_templateparser.php" #line 313 "smarty_internal_templateparser.y" function yy_r60(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } #line 2251 "smarty_internal_templateparser.php" #line 321 "smarty_internal_templateparser.y" function yy_r64(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; } #line 2254 "smarty_internal_templateparser.php" #line 324 "smarty_internal_templateparser.y" function yy_r66(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; } #line 2257 "smarty_internal_templateparser.php" #line 325 "smarty_internal_templateparser.y" function yy_r67(){ $this->_retvalue = "''"; } #line 2260 "smarty_internal_templateparser.php" #line 327 "smarty_internal_templateparser.y" function yy_r68(){ $this->_retvalue = '"'.$this->yystack[$this->yyidx + -1]->minor.'"'; } #line 2263 "smarty_internal_templateparser.php" #line 330 "smarty_internal_templateparser.y" function yy_r70(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } #line 2266 "smarty_internal_templateparser.php" #line 331 "smarty_internal_templateparser.y" function yy_r71(){ $this->prefix_number++; $this->compiler->prefix_code[] = 'prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -3]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -1]->minor .')'; } #line 2269 "smarty_internal_templateparser.php" #line 333 "smarty_internal_templateparser.y" function yy_r72(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2272 "smarty_internal_templateparser.php" #line 334 "smarty_internal_templateparser.y" function yy_r73(){ $this->prefix_number++; $this->compiler->prefix_code[] = 'prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -4]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -7]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -2]->minor .')'.$this->yystack[$this->yyidx + 0]->minor; } #line 2275 "smarty_internal_templateparser.php" #line 336 "smarty_internal_templateparser.y" function yy_r74(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } #line 2278 "smarty_internal_templateparser.php" #line 338 "smarty_internal_templateparser.y" function yy_r75(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2281 "smarty_internal_templateparser.php" #line 340 "smarty_internal_templateparser.y" function yy_r76(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.'::$'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2284 "smarty_internal_templateparser.php" #line 342 "smarty_internal_templateparser.y" function yy_r77(){ $this->prefix_number++; $this->compiler->prefix_code[] = ''.$this->yystack[$this->yyidx + -1]->minor.'prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; } #line 2287 "smarty_internal_templateparser.php" #line 351 "smarty_internal_templateparser.y" function yy_r78(){if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('special_smarty_variable',$this->yystack[$this->yyidx + 0]->minor['index']);} else { $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor['var'] .')->value'.$this->yystack[$this->yyidx + 0]->minor['index']; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor['var'],"'"))->nocache;} } #line 2291 "smarty_internal_templateparser.php" #line 354 "smarty_internal_templateparser.y" function yy_r79(){ $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"))->nocache; } #line 2294 "smarty_internal_templateparser.php" #line 358 "smarty_internal_templateparser.y" function yy_r81(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; } #line 2297 "smarty_internal_templateparser.php" #line 359 "smarty_internal_templateparser.y" function yy_r82(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; } #line 2300 "smarty_internal_templateparser.php" #line 362 "smarty_internal_templateparser.y" function yy_r83(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); } #line 2303 "smarty_internal_templateparser.php" #line 368 "smarty_internal_templateparser.y" function yy_r84(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2306 "smarty_internal_templateparser.php" #line 370 "smarty_internal_templateparser.y" function yy_r85(){return; } #line 2309 "smarty_internal_templateparser.php" #line 374 "smarty_internal_templateparser.y" function yy_r86(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; } #line 2312 "smarty_internal_templateparser.php" #line 377 "smarty_internal_templateparser.y" function yy_r89(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; } #line 2315 "smarty_internal_templateparser.php" #line 378 "smarty_internal_templateparser.y" function yy_r90(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor ."']"; } #line 2318 "smarty_internal_templateparser.php" #line 379 "smarty_internal_templateparser.y" function yy_r91(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; } #line 2321 "smarty_internal_templateparser.php" #line 380 "smarty_internal_templateparser.y" function yy_r92(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; } #line 2324 "smarty_internal_templateparser.php" #line 382 "smarty_internal_templateparser.y" function yy_r93(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; } #line 2327 "smarty_internal_templateparser.php" #line 383 "smarty_internal_templateparser.y" function yy_r94(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; } #line 2330 "smarty_internal_templateparser.php" #line 387 "smarty_internal_templateparser.y" function yy_r96(){$this->_retvalue = ''; } #line 2333 "smarty_internal_templateparser.php" #line 395 "smarty_internal_templateparser.y" function yy_r98(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } #line 2336 "smarty_internal_templateparser.php" #line 397 "smarty_internal_templateparser.y" function yy_r99(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2339 "smarty_internal_templateparser.php" #line 399 "smarty_internal_templateparser.y" function yy_r100(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2342 "smarty_internal_templateparser.php" #line 404 "smarty_internal_templateparser.y" function yy_r101(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('special_smarty_variable',$this->yystack[$this->yyidx + -1]->minor['index']).$this->yystack[$this->yyidx + 0]->minor;} else { $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -1]->minor['var'] .')->value'.$this->yystack[$this->yyidx + -1]->minor['index'].$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"))->nocache;} } #line 2346 "smarty_internal_templateparser.php" #line 407 "smarty_internal_templateparser.y" function yy_r102(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2349 "smarty_internal_templateparser.php" #line 409 "smarty_internal_templateparser.y" function yy_r103(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2352 "smarty_internal_templateparser.php" #line 411 "smarty_internal_templateparser.y" function yy_r104(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2355 "smarty_internal_templateparser.php" #line 412 "smarty_internal_templateparser.y" function yy_r105(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2358 "smarty_internal_templateparser.php" #line 413 "smarty_internal_templateparser.y" function yy_r106(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2361 "smarty_internal_templateparser.php" #line 414 "smarty_internal_templateparser.y" function yy_r107(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2364 "smarty_internal_templateparser.php" #line 416 "smarty_internal_templateparser.y" function yy_r108(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; } #line 2367 "smarty_internal_templateparser.php" #line 422 "smarty_internal_templateparser.y" function yy_r109(){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 2376 "smarty_internal_templateparser.php" #line 433 "smarty_internal_templateparser.y" function yy_r110(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; } #line 2379 "smarty_internal_templateparser.php" #line 437 "smarty_internal_templateparser.y" function yy_r111(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; } #line 2382 "smarty_internal_templateparser.php" #line 441 "smarty_internal_templateparser.y" function yy_r113(){ return; } #line 2385 "smarty_internal_templateparser.php" #line 446 "smarty_internal_templateparser.y" function yy_r114(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); } #line 2388 "smarty_internal_templateparser.php" #line 447 "smarty_internal_templateparser.y" function yy_r115(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); } #line 2391 "smarty_internal_templateparser.php" #line 463 "smarty_internal_templateparser.y" function yy_r118(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; } #line 2394 "smarty_internal_templateparser.php" #line 464 "smarty_internal_templateparser.y" function yy_r119(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2397 "smarty_internal_templateparser.php" #line 471 "smarty_internal_templateparser.y" function yy_r121(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; } #line 2400 "smarty_internal_templateparser.php" #line 476 "smarty_internal_templateparser.y" function yy_r123(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; } #line 2403 "smarty_internal_templateparser.php" #line 478 "smarty_internal_templateparser.y" function yy_r124(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2406 "smarty_internal_templateparser.php" #line 479 "smarty_internal_templateparser.y" function yy_r125(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2409 "smarty_internal_templateparser.php" #line 480 "smarty_internal_templateparser.y" function yy_r126(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2412 "smarty_internal_templateparser.php" #line 482 "smarty_internal_templateparser.y" function yy_r128(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2415 "smarty_internal_templateparser.php" #line 483 "smarty_internal_templateparser.y" function yy_r129(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2418 "smarty_internal_templateparser.php" #line 484 "smarty_internal_templateparser.y" function yy_r130(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2421 "smarty_internal_templateparser.php" #line 485 "smarty_internal_templateparser.y" function yy_r131(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2424 "smarty_internal_templateparser.php" #line 486 "smarty_internal_templateparser.y" function yy_r132(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2427 "smarty_internal_templateparser.php" #line 487 "smarty_internal_templateparser.y" function yy_r133(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2430 "smarty_internal_templateparser.php" #line 493 "smarty_internal_templateparser.y" function yy_r139(){$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 2433 "smarty_internal_templateparser.php" #line 495 "smarty_internal_templateparser.y" function yy_r140(){$this->_retvalue = '=='; } #line 2436 "smarty_internal_templateparser.php" #line 496 "smarty_internal_templateparser.y" function yy_r141(){$this->_retvalue = '!='; } #line 2439 "smarty_internal_templateparser.php" #line 497 "smarty_internal_templateparser.y" function yy_r142(){$this->_retvalue = '>'; } #line 2442 "smarty_internal_templateparser.php" #line 498 "smarty_internal_templateparser.y" function yy_r143(){$this->_retvalue = '<'; } #line 2445 "smarty_internal_templateparser.php" #line 499 "smarty_internal_templateparser.y" function yy_r144(){$this->_retvalue = '>='; } #line 2448 "smarty_internal_templateparser.php" #line 500 "smarty_internal_templateparser.y" function yy_r145(){$this->_retvalue = '<='; } #line 2451 "smarty_internal_templateparser.php" #line 501 "smarty_internal_templateparser.y" function yy_r146(){$this->_retvalue = '==='; } #line 2454 "smarty_internal_templateparser.php" #line 502 "smarty_internal_templateparser.y" function yy_r147(){$this->_retvalue = '!=='; } #line 2457 "smarty_internal_templateparser.php" #line 503 "smarty_internal_templateparser.y" function yy_r148(){$this->_retvalue = '%'; } #line 2460 "smarty_internal_templateparser.php" #line 505 "smarty_internal_templateparser.y" function yy_r149(){$this->_retvalue = '&&'; } #line 2463 "smarty_internal_templateparser.php" #line 506 "smarty_internal_templateparser.y" function yy_r150(){$this->_retvalue = '||'; } #line 2466 "smarty_internal_templateparser.php" #line 507 "smarty_internal_templateparser.y" function yy_r151(){$this->_retvalue = ' XOR '; } #line 2469 "smarty_internal_templateparser.php" #line 512 "smarty_internal_templateparser.y" function yy_r152(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2472 "smarty_internal_templateparser.php" #line 514 "smarty_internal_templateparser.y" function yy_r154(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; } #line 2475 "smarty_internal_templateparser.php" #line 515 "smarty_internal_templateparser.y" function yy_r155(){ return; } #line 2478 "smarty_internal_templateparser.php" #line 516 "smarty_internal_templateparser.y" function yy_r156(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; } #line 2481 "smarty_internal_templateparser.php" #line 517 "smarty_internal_templateparser.y" function yy_r157(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; } #line 2484 "smarty_internal_templateparser.php" #line 526 "smarty_internal_templateparser.y" function yy_r161(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; } #line 2487 "smarty_internal_templateparser.php" #line 527 "smarty_internal_templateparser.y" function yy_r162(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; $this->compiler->has_variable_string = true; } #line 2490 "smarty_internal_templateparser.php" #line 528 "smarty_internal_templateparser.y" function yy_r163(){$this->_retvalue = '".'.'$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + 0]->minor .'\')->value'.'."'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"))->nocache; $this->compiler->has_variable_string = true; } #line 2493 "smarty_internal_templateparser.php" #line 529 "smarty_internal_templateparser.y" function yy_r164(){ $this->_retvalue = '".('.$this->yystack[$this->yyidx + -1]->minor.')."'; $this->compiler->has_variable_string = true; } #line 2496 "smarty_internal_templateparser.php" #line 530 "smarty_internal_templateparser.y" function yy_r165(){ $this->prefix_number++; $this->compiler->prefix_code[] = ''.$this->yystack[$this->yyidx + -1]->minor.'prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '".$_tmp'.$this->prefix_number.'."'; $this->compiler->has_variable_string = true; } #line 2499 "smarty_internal_templateparser.php" #line 531 "smarty_internal_templateparser.y" function yy_r166(){$this->_retvalue = '$'.$this->yystack[$this->yyidx + 0]->minor; } #line 2502 "smarty_internal_templateparser.php" #line 533 "smarty_internal_templateparser.y" function yy_r168(){$this->_retvalue = '`'.$this->yystack[$this->yyidx + 0]->minor; } #line 2505 "smarty_internal_templateparser.php" /** * placeholder for the left hand side in a reduce operation. * * For a parser with a rule like this: *
     * rule(A) ::= B. { A = 1; }
     * 
* * The parser will translate to something like: * * * function yy_r0(){$this->_retvalue = 1;} * */ private $_retvalue; /** * Perform a reduce action and the shift that must immediately * follow the reduce. * * For a rule such as: * *
     * A ::= B blah C. { dosomething(); }
     * 
* * This function will first call the action, if any, ("dosomething();" in our * example), and then it will pop three states from the stack, * one for each entry on the right-hand side of the expression * (B, blah, and C in our example rule), and then push the result of the action * back on to the stack with the resulting state reduced to (as described in the .out * file) * @param int Number of the rule by which to reduce */ function yy_reduce($yyruleno) { //int $yygoto; /* The next state */ //int $yyact; /* The next action */ //mixed $yygotominor; /* The LHS of the rule reduced */ //TP_yyStackEntry $yymsp; /* The top of the parser's stack */ //int $yysize; /* Amount to pop the stack */ $yymsp = $this->yystack[$this->yyidx]; if (self::$yyTraceFILE && $yyruleno >= 0 && $yyruleno < count(self::$yyRuleName)) { fprintf(self::$yyTraceFILE, "%sReduce (%d) [%s].\n", self::$yyTracePrompt, $yyruleno, self::$yyRuleName[$yyruleno]); } $this->_retvalue = $yy_lefthand_side = null; if (array_key_exists($yyruleno, self::$yyReduceMap)) { // call the action $this->_retvalue = null; $this->{'yy_r' . self::$yyReduceMap[$yyruleno]}(); $yy_lefthand_side = $this->_retvalue; } $yygoto = self::$yyRuleInfo[$yyruleno]['lhs']; $yysize = self::$yyRuleInfo[$yyruleno]['rhs']; $this->yyidx -= $yysize; for($i = $yysize; $i; $i--) { // pop all of the right-hand side parameters array_pop($this->yystack); } $yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto); if ($yyact < self::YYNSTATE) { /* If we are not debugging and the reduce action popped at least ** one element off the stack, then we can push the new element back ** onto the stack here, and skip the stack overflow test in yy_shift(). ** That gives a significant speed improvement. */ if (!self::$yyTraceFILE && $yysize) { $this->yyidx++; $x = new TP_yyStackEntry; $x->stateno = $yyact; $x->major = $yygoto; $x->minor = $yy_lefthand_side; $this->yystack[$this->yyidx] = $x; } else { $this->yy_shift($yyact, $yygoto, $yy_lefthand_side); } } elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) { $this->yy_accept(); } } /** * The following code executes when the parse fails * * Code from %parse_fail is inserted here */ function yy_parse_failed() { if (self::$yyTraceFILE) { fprintf(self::$yyTraceFILE, "%sFail!\n", self::$yyTracePrompt); } while ($this->yyidx >= 0) { $this->yy_pop_parser_stack(); } /* Here code is inserted which will be executed whenever the ** parser fails */ } /** * The following code executes when a syntax error first occurs. * * %syntax_error code is inserted here * @param int The major type of the error token * @param mixed The minor type of the error token */ function yy_syntax_error($yymajor, $TOKEN) { #line 60 "smarty_internal_templateparser.y" $this->internalError = true; $this->yymajor = $yymajor; $this->compiler->trigger_template_error(); #line 2623 "smarty_internal_templateparser.php" } /** * The following is executed when the parser accepts * * %parse_accept code is inserted here */ function yy_accept() { if (self::$yyTraceFILE) { fprintf(self::$yyTraceFILE, "%sAccept!\n", self::$yyTracePrompt); } while ($this->yyidx >= 0) { $stack = $this->yy_pop_parser_stack(); } /* Here code is inserted which will be executed whenever the ** parser accepts */ #line 52 "smarty_internal_templateparser.y" $this->successful = !$this->internalError; $this->internalError = false; $this->retvalue = $this->_retvalue; //echo $this->retvalue."\n\n"; #line 2648 "smarty_internal_templateparser.php" } /** * The main parser program. * * The first argument is the major token number. The second is * the token value string as scanned from the input. * * @param int the token number * @param mixed the token value * @param mixed any extra arguments that should be passed to handlers */ function doParse($yymajor, $yytokenvalue) { // $yyact; /* The parser action. */ // $yyendofinput; /* True if we are at the end of input */ $yyerrorhit = 0; /* True if yymajor has invoked an error */ /* (re)initialize the parser, if necessary */ if ($this->yyidx === null || $this->yyidx < 0) { /* if ($yymajor == 0) return; // not sure why this was here... */ $this->yyidx = 0; $this->yyerrcnt = -1; $x = new TP_yyStackEntry; $x->stateno = 0; $x->major = 0; $this->yystack = array(); array_push($this->yystack, $x); } $yyendofinput = ($yymajor==0); if (self::$yyTraceFILE) { fprintf(self::$yyTraceFILE, "%sInput %s\n", self::$yyTracePrompt, $this->yyTokenName[$yymajor]); } do { $yyact = $this->yy_find_shift_action($yymajor); if ($yymajor < self::YYERRORSYMBOL && !$this->yy_is_expected_token($yymajor)) { // force a syntax error $yyact = self::YY_ERROR_ACTION; } if ($yyact < self::YYNSTATE) { $this->yy_shift($yyact, $yymajor, $yytokenvalue); $this->yyerrcnt--; if ($yyendofinput && $this->yyidx >= 0) { $yymajor = 0; } else { $yymajor = self::YYNOCODE; } } elseif ($yyact < self::YYNSTATE + self::YYNRULE) { $this->yy_reduce($yyact - self::YYNSTATE); } elseif ($yyact == self::YY_ERROR_ACTION) { if (self::$yyTraceFILE) { fprintf(self::$yyTraceFILE, "%sSyntax Error!\n", self::$yyTracePrompt); } if (self::YYERRORSYMBOL) { /* A syntax error has occurred. ** The response to an error depends upon whether or not the ** grammar defines an error token "ERROR". ** ** This is what we do if the grammar does define ERROR: ** ** * Call the %syntax_error function. ** ** * Begin popping the stack until we enter a state where ** it is legal to shift the error symbol, then shift ** the error symbol. ** ** * Set the error count to three. ** ** * Begin accepting and shifting new tokens. No new error ** processing will occur until three tokens have been ** shifted successfully. ** */ if ($this->yyerrcnt < 0) { $this->yy_syntax_error($yymajor, $yytokenvalue); } $yymx = $this->yystack[$this->yyidx]->major; if ($yymx == self::YYERRORSYMBOL || $yyerrorhit ){ if (self::$yyTraceFILE) { fprintf(self::$yyTraceFILE, "%sDiscard input token %s\n", self::$yyTracePrompt, $this->yyTokenName[$yymajor]); } $this->yy_destructor($yymajor, $yytokenvalue); $yymajor = self::YYNOCODE; } else { while ($this->yyidx >= 0 && $yymx != self::YYERRORSYMBOL && ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE ){ $this->yy_pop_parser_stack(); } if ($this->yyidx < 0 || $yymajor==0) { $this->yy_destructor($yymajor, $yytokenvalue); $this->yy_parse_failed(); $yymajor = self::YYNOCODE; } elseif ($yymx != self::YYERRORSYMBOL) { $u2 = 0; $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2); } } $this->yyerrcnt = 3; $yyerrorhit = 1; } else { /* YYERRORSYMBOL is not defined */ /* This is what we do if the grammar does not define ERROR: ** ** * Report an error message, and throw away the input token. ** ** * If the input token is $, then fail the parse. ** ** As before, subsequent error messages are suppressed until ** three input tokens have been successfully shifted. */ if ($this->yyerrcnt <= 0) { $this->yy_syntax_error($yymajor, $yytokenvalue); } $this->yyerrcnt = 3; $this->yy_destructor($yymajor, $yytokenvalue); if ($yyendofinput) { $this->yy_parse_failed(); } $yymajor = self::YYNOCODE; } } else { $this->yy_accept(); $yymajor = self::YYNOCODE; } } while ($yymajor != self::YYNOCODE && $this->yyidx >= 0); } } ?>