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 = 503; const YY_ACCEPT_ACTION = 502; const YY_ERROR_ACTION = 501; /* 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 = 1374; static public $yy_action = array( /* 0 */ 66, 28, 24, 37, 120, 170, 18, 239, 238, 36, /* 10 */ 244, 245, 312, 364, 315, 200, 35, 61, 278, 78, /* 20 */ 310, 9, 85, 168, 156, 142, 313, 44, 157, 177, /* 30 */ 19, 100, 275, 252, 235, 10, 26, 13, 78, 185, /* 40 */ 240, 21, 201, 74, 42, 281, 69, 15, 49, 56, /* 50 */ 161, 49, 46, 225, 126, 243, 35, 221, 164, 240, /* 60 */ 190, 66, 53, 280, 33, 364, 170, 18, 224, 127, /* 70 */ 306, 244, 245, 112, 292, 299, 300, 11, 12, 284, /* 80 */ 291, 4, 2, 282, 283, 7, 8, 175, 502, 62, /* 90 */ 214, 265, 315, 200, 257, 249, 3, 78, 13, 35, /* 100 */ 220, 133, 197, 201, 74, 42, 236, 69, 224, 49, /* 110 */ 314, 252, 49, 46, 189, 66, 121, 229, 240, 45, /* 120 */ 170, 18, 172, 53, 280, 244, 245, 111, 292, 299, /* 130 */ 300, 11, 12, 284, 291, 4, 2, 282, 283, 7, /* 140 */ 8, 278, 301, 148, 315, 200, 312, 78, 40, 78, /* 150 */ 30, 224, 13, 211, 309, 275, 35, 201, 286, 42, /* 160 */ 313, 74, 172, 252, 216, 191, 49, 46, 240, 66, /* 170 */ 240, 74, 173, 153, 170, 18, 49, 53, 280, 244, /* 180 */ 245, 315, 200, 176, 61, 123, 78, 161, 232, 93, /* 190 */ 9, 34, 172, 203, 70, 188, 279, 21, 100, 360, /* 200 */ 252, 254, 255, 298, 10, 102, 13, 240, 224, 151, /* 210 */ 126, 201, 281, 42, 251, 76, 40, 21, 304, 278, /* 220 */ 49, 46, 25, 66, 35, 212, 71, 152, 170, 18, /* 230 */ 126, 53, 280, 244, 245, 271, 292, 299, 300, 11, /* 240 */ 12, 284, 291, 4, 2, 282, 283, 7, 8, 218, /* 250 */ 194, 172, 315, 200, 36, 172, 43, 78, 30, 27, /* 260 */ 13, 285, 170, 14, 228, 201, 270, 42, 190, 69, /* 270 */ 172, 252, 44, 307, 49, 46, 224, 66, 240, 161, /* 280 */ 147, 164, 170, 18, 161, 53, 280, 244, 245, 172, /* 290 */ 292, 299, 300, 11, 12, 284, 291, 4, 2, 282, /* 300 */ 283, 7, 8, 162, 261, 259, 179, 181, 260, 210, /* 310 */ 47, 266, 3, 35, 13, 267, 263, 170, 18, 201, /* 320 */ 110, 42, 297, 69, 151, 172, 208, 161, 49, 46, /* 330 */ 227, 66, 254, 255, 278, 164, 170, 18, 207, 53, /* 340 */ 280, 244, 245, 219, 136, 251, 66, 256, 27, 253, /* 350 */ 21, 170, 18, 31, 166, 32, 244, 245, 218, 96, /* 360 */ 161, 277, 161, 126, 63, 224, 3, 21, 13, 161, /* 370 */ 206, 170, 14, 201, 1, 42, 308, 69, 149, 209, /* 380 */ 126, 30, 49, 46, 234, 66, 305, 195, 201, 45, /* 390 */ 170, 18, 74, 53, 280, 244, 245, 49, 46, 272, /* 400 */ 66, 230, 295, 78, 160, 170, 18, 143, 53, 280, /* 410 */ 244, 245, 162, 172, 144, 161, 324, 16, 226, 47, /* 420 */ 30, 43, 13, 22, 240, 161, 122, 201, 186, 42, /* 430 */ 146, 74, 78, 161, 20, 30, 49, 46, 172, 66, /* 440 */ 278, 161, 201, 155, 170, 18, 74, 53, 280, 244, /* 450 */ 245, 49, 46, 240, 172, 362, 131, 293, 158, 17, /* 460 */ 39, 253, 53, 280, 288, 289, 318, 319, 302, 287, /* 470 */ 233, 303, 290, 118, 30, 217, 13, 150, 104, 276, /* 480 */ 119, 201, 145, 42, 74, 74, 294, 278, 285, 49, /* 490 */ 49, 46, 278, 66, 278, 247, 178, 160, 170, 18, /* 500 */ 35, 53, 280, 244, 245, 116, 161, 362, 275, 172, /* 510 */ 117, 66, 254, 255, 268, 198, 170, 18, 35, 78, /* 520 */ 38, 244, 245, 219, 278, 251, 48, 98, 30, 273, /* 530 */ 13, 172, 172, 65, 67, 201, 74, 42, 172, 69, /* 540 */ 240, 49, 161, 246, 49, 46, 30, 43, 13, 246, /* 550 */ 246, 154, 224, 201, 107, 53, 280, 74, 275, 231, /* 560 */ 151, 296, 49, 46, 264, 265, 172, 137, 278, 160, /* 570 */ 183, 38, 253, 53, 280, 58, 292, 299, 300, 11, /* 580 */ 12, 284, 291, 4, 2, 282, 283, 7, 8, 97, /* 590 */ 64, 39, 151, 106, 99, 288, 289, 318, 319, 302, /* 600 */ 287, 233, 303, 290, 55, 246, 246, 278, 315, 200, /* 610 */ 246, 61, 139, 78, 222, 169, 92, 253, 29, 184, /* 620 */ 75, 223, 188, 279, 5, 100, 23, 252, 72, 248, /* 630 */ 232, 325, 81, 271, 240, 315, 200, 161, 59, 281, /* 640 */ 78, 19, 54, 84, 204, 215, 237, 171, 202, 188, /* 650 */ 279, 15, 100, 51, 252, 315, 200, 250, 61, 140, /* 660 */ 78, 240, 205, 82, 180, 262, 281, 165, 323, 188, /* 670 */ 279, 174, 100, 258, 252, 315, 200, 196, 61, 241, /* 680 */ 78, 240, 182, 90, 242, 193, 281, 269, 232, 188, /* 690 */ 279, 41, 100, 256, 252, 6, 311, 315, 200, 172, /* 700 */ 60, 240, 78, 292, 187, 83, 281, 79, 125, 292, /* 710 */ 292, 188, 279, 292, 100, 292, 252, 292, 292, 292, /* 720 */ 292, 292, 292, 240, 292, 292, 292, 292, 281, 39, /* 730 */ 292, 292, 292, 288, 289, 318, 319, 302, 287, 233, /* 740 */ 303, 290, 292, 292, 315, 200, 292, 105, 292, 78, /* 750 */ 292, 292, 292, 292, 292, 292, 292, 292, 274, 279, /* 760 */ 292, 100, 292, 252, 292, 292, 292, 292, 315, 200, /* 770 */ 240, 61, 292, 78, 292, 161, 87, 292, 163, 320, /* 780 */ 292, 292, 188, 279, 292, 100, 292, 252, 292, 292, /* 790 */ 315, 200, 292, 61, 240, 78, 292, 292, 86, 281, /* 800 */ 292, 292, 292, 292, 188, 279, 292, 100, 292, 252, /* 810 */ 292, 292, 315, 200, 292, 61, 240, 78, 292, 292, /* 820 */ 91, 281, 292, 292, 292, 292, 188, 279, 292, 100, /* 830 */ 292, 252, 292, 292, 292, 292, 315, 200, 240, 61, /* 840 */ 292, 78, 292, 281, 89, 292, 292, 292, 292, 292, /* 850 */ 188, 279, 292, 100, 292, 252, 315, 200, 292, 61, /* 860 */ 292, 78, 240, 292, 88, 292, 292, 281, 292, 292, /* 870 */ 188, 279, 292, 100, 292, 252, 315, 200, 292, 109, /* 880 */ 292, 78, 240, 292, 292, 292, 292, 281, 292, 292, /* 890 */ 274, 279, 292, 100, 292, 252, 292, 292, 292, 322, /* 900 */ 292, 292, 240, 292, 315, 68, 292, 50, 80, 73, /* 910 */ 292, 292, 292, 292, 292, 292, 292, 292, 274, 279, /* 920 */ 292, 100, 292, 252, 292, 292, 292, 292, 315, 200, /* 930 */ 240, 57, 77, 78, 315, 200, 292, 138, 213, 78, /* 940 */ 292, 292, 274, 279, 292, 100, 292, 252, 159, 279, /* 950 */ 292, 100, 292, 252, 240, 292, 292, 292, 292, 292, /* 960 */ 240, 292, 292, 292, 292, 315, 200, 292, 105, 292, /* 970 */ 78, 315, 68, 292, 52, 80, 73, 292, 292, 274, /* 980 */ 279, 292, 100, 292, 252, 274, 279, 292, 100, 292, /* 990 */ 252, 240, 292, 292, 292, 292, 292, 240, 292, 292, /* 1000 */ 321, 315, 200, 292, 109, 292, 78, 292, 292, 292, /* 1010 */ 292, 292, 292, 292, 292, 274, 279, 292, 100, 292, /* 1020 */ 252, 292, 292, 292, 167, 315, 200, 240, 109, 292, /* 1030 */ 78, 292, 292, 292, 292, 292, 292, 292, 292, 274, /* 1040 */ 279, 292, 100, 292, 252, 292, 292, 292, 192, 315, /* 1050 */ 200, 240, 109, 292, 78, 292, 292, 292, 292, 292, /* 1060 */ 292, 292, 292, 274, 279, 292, 100, 292, 252, 292, /* 1070 */ 292, 292, 199, 292, 292, 240, 292, 292, 315, 200, /* 1080 */ 292, 124, 292, 78, 315, 200, 292, 135, 292, 78, /* 1090 */ 292, 292, 274, 279, 292, 100, 292, 252, 274, 279, /* 1100 */ 292, 100, 292, 252, 240, 292, 315, 200, 292, 134, /* 1110 */ 240, 78, 292, 292, 292, 292, 292, 292, 292, 292, /* 1120 */ 274, 279, 292, 100, 292, 252, 315, 200, 292, 114, /* 1130 */ 292, 78, 240, 292, 292, 292, 292, 292, 292, 292, /* 1140 */ 274, 279, 292, 100, 292, 252, 315, 200, 292, 141, /* 1150 */ 292, 78, 240, 292, 292, 292, 292, 292, 292, 292, /* 1160 */ 274, 279, 292, 100, 292, 252, 292, 292, 292, 292, /* 1170 */ 315, 200, 240, 113, 292, 78, 315, 200, 292, 129, /* 1180 */ 292, 78, 292, 292, 274, 279, 292, 100, 292, 252, /* 1190 */ 274, 279, 292, 100, 292, 252, 240, 292, 315, 200, /* 1200 */ 292, 108, 240, 78, 315, 200, 292, 103, 292, 78, /* 1210 */ 292, 292, 274, 279, 292, 100, 292, 252, 274, 279, /* 1220 */ 292, 100, 292, 252, 240, 292, 292, 292, 292, 292, /* 1230 */ 240, 292, 292, 292, 292, 292, 292, 292, 315, 200, /* 1240 */ 292, 128, 292, 78, 292, 292, 292, 292, 292, 292, /* 1250 */ 292, 292, 274, 279, 292, 100, 292, 252, 292, 292, /* 1260 */ 292, 292, 315, 200, 240, 132, 292, 78, 315, 200, /* 1270 */ 292, 115, 292, 78, 292, 292, 274, 279, 292, 100, /* 1280 */ 292, 252, 274, 279, 292, 100, 292, 252, 240, 292, /* 1290 */ 315, 200, 292, 130, 240, 78, 315, 200, 292, 292, /* 1300 */ 292, 78, 292, 292, 274, 279, 292, 100, 292, 252, /* 1310 */ 274, 279, 292, 95, 292, 252, 240, 292, 292, 315, /* 1320 */ 200, 292, 240, 292, 78, 292, 292, 292, 292, 292, /* 1330 */ 292, 292, 292, 274, 279, 292, 101, 292, 252, 292, /* 1340 */ 292, 315, 200, 292, 292, 240, 78, 315, 200, 292, /* 1350 */ 292, 292, 78, 292, 292, 274, 279, 292, 94, 292, /* 1360 */ 252, 317, 316, 292, 292, 292, 252, 240, 292, 292, /* 1370 */ 292, 292, 292, 240, ); static public $yy_lookahead = array( /* 0 */ 9, 15, 70, 15, 79, 14, 15, 19, 20, 46, /* 10 */ 19, 20, 1, 16, 77, 78, 15, 80, 93, 82, /* 20 */ 9, 30, 85, 86, 87, 84, 15, 64, 91, 92, /* 30 */ 44, 94, 107, 96, 78, 44, 49, 46, 82, 51, /* 40 */ 103, 44, 51, 55, 53, 108, 55, 50, 60, 84, /* 50 */ 63, 60, 61, 1, 57, 67, 15, 16, 67, 103, /* 60 */ 59, 9, 71, 72, 15, 68, 14, 15, 67, 102, /* 70 */ 16, 19, 20, 102, 31, 32, 33, 34, 35, 36, /* 80 */ 37, 38, 39, 40, 41, 42, 43, 59, 74, 75, /* 90 */ 76, 77, 77, 78, 67, 67, 44, 82, 46, 15, /* 100 */ 16, 58, 55, 51, 55, 53, 91, 55, 67, 60, /* 110 */ 16, 96, 60, 61, 67, 9, 67, 1, 103, 67, /* 120 */ 14, 15, 68, 71, 72, 19, 20, 79, 31, 32, /* 130 */ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, /* 140 */ 43, 93, 45, 78, 77, 78, 1, 82, 69, 82, /* 150 */ 44, 67, 46, 47, 9, 107, 15, 51, 91, 53, /* 160 */ 15, 55, 68, 96, 99, 18, 60, 61, 103, 9, /* 170 */ 103, 55, 48, 67, 14, 15, 60, 71, 72, 19, /* 180 */ 20, 77, 78, 67, 80, 102, 82, 63, 105, 85, /* 190 */ 30, 50, 68, 52, 55, 91, 92, 44, 94, 16, /* 200 */ 96, 53, 54, 16, 44, 79, 46, 103, 67, 83, /* 210 */ 57, 51, 108, 53, 66, 55, 69, 44, 16, 93, /* 220 */ 60, 61, 49, 9, 15, 45, 55, 67, 14, 15, /* 230 */ 57, 71, 72, 19, 20, 52, 31, 32, 33, 34, /* 240 */ 35, 36, 37, 38, 39, 40, 41, 42, 43, 1, /* 250 */ 45, 68, 77, 78, 46, 68, 48, 82, 44, 50, /* 260 */ 46, 45, 14, 15, 1, 51, 91, 53, 59, 55, /* 270 */ 68, 96, 64, 16, 60, 61, 67, 9, 103, 63, /* 280 */ 16, 67, 14, 15, 63, 71, 72, 19, 20, 68, /* 290 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, /* 300 */ 41, 42, 43, 55, 1, 2, 3, 4, 5, 61, /* 310 */ 62, 8, 44, 15, 46, 12, 13, 14, 15, 51, /* 320 */ 79, 53, 16, 55, 83, 68, 47, 63, 60, 61, /* 330 */ 67, 9, 53, 54, 93, 67, 14, 15, 47, 71, /* 340 */ 72, 19, 20, 77, 101, 66, 9, 104, 50, 106, /* 350 */ 44, 14, 15, 56, 48, 56, 19, 20, 1, 97, /* 360 */ 63, 16, 63, 57, 98, 67, 44, 44, 46, 63, /* 370 */ 47, 14, 15, 51, 68, 53, 114, 55, 16, 113, /* 380 */ 57, 44, 60, 61, 67, 9, 16, 64, 51, 67, /* 390 */ 14, 15, 55, 71, 72, 19, 20, 60, 61, 78, /* 400 */ 9, 62, 16, 82, 67, 14, 15, 58, 71, 72, /* 410 */ 19, 20, 55, 68, 65, 63, 47, 65, 61, 62, /* 420 */ 44, 48, 46, 50, 103, 63, 79, 51, 78, 53, /* 430 */ 83, 55, 82, 63, 65, 44, 60, 61, 68, 9, /* 440 */ 93, 63, 51, 67, 14, 15, 55, 71, 72, 19, /* 450 */ 20, 60, 61, 103, 68, 16, 101, 16, 67, 44, /* 460 */ 17, 106, 71, 72, 21, 22, 23, 24, 25, 26, /* 470 */ 27, 28, 29, 79, 44, 16, 46, 83, 79, 16, /* 480 */ 79, 51, 83, 53, 55, 55, 16, 93, 45, 60, /* 490 */ 60, 61, 93, 9, 93, 16, 67, 67, 14, 15, /* 500 */ 15, 71, 72, 19, 20, 102, 63, 68, 107, 68, /* 510 */ 79, 9, 53, 54, 16, 78, 14, 15, 15, 82, /* 520 */ 56, 19, 20, 77, 93, 66, 102, 89, 44, 106, /* 530 */ 46, 68, 68, 89, 89, 51, 55, 53, 68, 55, /* 540 */ 103, 60, 63, 105, 60, 61, 44, 48, 46, 105, /* 550 */ 105, 67, 67, 51, 79, 71, 72, 55, 107, 113, /* 560 */ 83, 16, 60, 61, 76, 77, 68, 101, 93, 67, /* 570 */ 67, 56, 106, 71, 72, 84, 31, 32, 33, 34, /* 580 */ 35, 36, 37, 38, 39, 40, 41, 42, 43, 89, /* 590 */ 89, 17, 83, 79, 89, 21, 22, 23, 24, 25, /* 600 */ 26, 27, 28, 29, 84, 105, 105, 93, 77, 78, /* 610 */ 105, 80, 101, 82, 86, 90, 85, 106, 109, 45, /* 620 */ 55, 68, 91, 92, 88, 94, 70, 96, 55, 67, /* 630 */ 105, 16, 45, 52, 103, 77, 78, 63, 80, 108, /* 640 */ 82, 44, 67, 85, 16, 16, 51, 67, 64, 91, /* 650 */ 92, 50, 94, 67, 96, 77, 78, 67, 80, 67, /* 660 */ 82, 103, 62, 85, 1, 5, 108, 56, 45, 91, /* 670 */ 92, 67, 94, 5, 96, 77, 78, 18, 80, 60, /* 680 */ 82, 103, 1, 85, 60, 67, 108, 93, 105, 91, /* 690 */ 92, 95, 94, 104, 96, 110, 114, 77, 78, 68, /* 700 */ 80, 103, 82, 115, 88, 85, 108, 99, 102, 115, /* 710 */ 115, 91, 92, 115, 94, 115, 96, 115, 115, 115, /* 720 */ 115, 115, 115, 103, 115, 115, 115, 115, 108, 17, /* 730 */ 115, 115, 115, 21, 22, 23, 24, 25, 26, 27, /* 740 */ 28, 29, 115, 115, 77, 78, 115, 80, 115, 82, /* 750 */ 115, 115, 115, 115, 115, 115, 115, 115, 91, 92, /* 760 */ 115, 94, 115, 96, 115, 115, 115, 115, 77, 78, /* 770 */ 103, 80, 115, 82, 115, 63, 85, 115, 111, 112, /* 780 */ 115, 115, 91, 92, 115, 94, 115, 96, 115, 115, /* 790 */ 77, 78, 115, 80, 103, 82, 115, 115, 85, 108, /* 800 */ 115, 115, 115, 115, 91, 92, 115, 94, 115, 96, /* 810 */ 115, 115, 77, 78, 115, 80, 103, 82, 115, 115, /* 820 */ 85, 108, 115, 115, 115, 115, 91, 92, 115, 94, /* 830 */ 115, 96, 115, 115, 115, 115, 77, 78, 103, 80, /* 840 */ 115, 82, 115, 108, 85, 115, 115, 115, 115, 115, /* 850 */ 91, 92, 115, 94, 115, 96, 77, 78, 115, 80, /* 860 */ 115, 82, 103, 115, 85, 115, 115, 108, 115, 115, /* 870 */ 91, 92, 115, 94, 115, 96, 77, 78, 115, 80, /* 880 */ 115, 82, 103, 115, 115, 115, 115, 108, 115, 115, /* 890 */ 91, 92, 115, 94, 115, 96, 115, 115, 115, 100, /* 900 */ 115, 115, 103, 115, 77, 78, 115, 80, 81, 82, /* 910 */ 115, 115, 115, 115, 115, 115, 115, 115, 91, 92, /* 920 */ 115, 94, 115, 96, 115, 115, 115, 115, 77, 78, /* 930 */ 103, 80, 81, 82, 77, 78, 115, 80, 81, 82, /* 940 */ 115, 115, 91, 92, 115, 94, 115, 96, 91, 92, /* 950 */ 115, 94, 115, 96, 103, 115, 115, 115, 115, 115, /* 960 */ 103, 115, 115, 115, 115, 77, 78, 115, 80, 115, /* 970 */ 82, 77, 78, 115, 80, 81, 82, 115, 115, 91, /* 980 */ 92, 115, 94, 115, 96, 91, 92, 115, 94, 115, /* 990 */ 96, 103, 115, 115, 115, 115, 115, 103, 115, 115, /* 1000 */ 112, 77, 78, 115, 80, 115, 82, 115, 115, 115, /* 1010 */ 115, 115, 115, 115, 115, 91, 92, 115, 94, 115, /* 1020 */ 96, 115, 115, 115, 100, 77, 78, 103, 80, 115, /* 1030 */ 82, 115, 115, 115, 115, 115, 115, 115, 115, 91, /* 1040 */ 92, 115, 94, 115, 96, 115, 115, 115, 100, 77, /* 1050 */ 78, 103, 80, 115, 82, 115, 115, 115, 115, 115, /* 1060 */ 115, 115, 115, 91, 92, 115, 94, 115, 96, 115, /* 1070 */ 115, 115, 100, 115, 115, 103, 115, 115, 77, 78, /* 1080 */ 115, 80, 115, 82, 77, 78, 115, 80, 115, 82, /* 1090 */ 115, 115, 91, 92, 115, 94, 115, 96, 91, 92, /* 1100 */ 115, 94, 115, 96, 103, 115, 77, 78, 115, 80, /* 1110 */ 103, 82, 115, 115, 115, 115, 115, 115, 115, 115, /* 1120 */ 91, 92, 115, 94, 115, 96, 77, 78, 115, 80, /* 1130 */ 115, 82, 103, 115, 115, 115, 115, 115, 115, 115, /* 1140 */ 91, 92, 115, 94, 115, 96, 77, 78, 115, 80, /* 1150 */ 115, 82, 103, 115, 115, 115, 115, 115, 115, 115, /* 1160 */ 91, 92, 115, 94, 115, 96, 115, 115, 115, 115, /* 1170 */ 77, 78, 103, 80, 115, 82, 77, 78, 115, 80, /* 1180 */ 115, 82, 115, 115, 91, 92, 115, 94, 115, 96, /* 1190 */ 91, 92, 115, 94, 115, 96, 103, 115, 77, 78, /* 1200 */ 115, 80, 103, 82, 77, 78, 115, 80, 115, 82, /* 1210 */ 115, 115, 91, 92, 115, 94, 115, 96, 91, 92, /* 1220 */ 115, 94, 115, 96, 103, 115, 115, 115, 115, 115, /* 1230 */ 103, 115, 115, 115, 115, 115, 115, 115, 77, 78, /* 1240 */ 115, 80, 115, 82, 115, 115, 115, 115, 115, 115, /* 1250 */ 115, 115, 91, 92, 115, 94, 115, 96, 115, 115, /* 1260 */ 115, 115, 77, 78, 103, 80, 115, 82, 77, 78, /* 1270 */ 115, 80, 115, 82, 115, 115, 91, 92, 115, 94, /* 1280 */ 115, 96, 91, 92, 115, 94, 115, 96, 103, 115, /* 1290 */ 77, 78, 115, 80, 103, 82, 77, 78, 115, 115, /* 1300 */ 115, 82, 115, 115, 91, 92, 115, 94, 115, 96, /* 1310 */ 91, 92, 115, 94, 115, 96, 103, 115, 115, 77, /* 1320 */ 78, 115, 103, 115, 82, 115, 115, 115, 115, 115, /* 1330 */ 115, 115, 115, 91, 92, 115, 94, 115, 96, 115, /* 1340 */ 115, 77, 78, 115, 115, 103, 82, 77, 78, 115, /* 1350 */ 115, 115, 82, 115, 115, 91, 92, 115, 94, 115, /* 1360 */ 96, 91, 92, 115, 115, 115, 96, 103, 115, 115, /* 1370 */ 115, 115, 115, 103, ); const YY_SHIFT_USE_DFLT = -69; const YY_SHIFT_MAX = 202; static public $yy_shift_ofst = array( /* 0 */ 303, 160, -9, -9, -9, -9, -9, -9, -9, -9, /* 10 */ -9, -9, -9, 484, 52, 268, 214, 214, 322, 214, /* 20 */ 484, 214, 268, 214, 214, 214, 214, 214, 214, 214, /* 30 */ 214, 214, 214, 214, 214, 214, 106, 430, 376, 502, /* 40 */ 391, 337, 337, 49, -12, 306, 248, 116, 208, 429, /* 50 */ 370, 124, 221, 481, 221, 464, 464, 221, 464, 574, /* 60 */ 443, 712, 303, 357, 209, 141, 145, 1, 183, 503, /* 70 */ 485, 485, 485, 373, 485, 485, 503, 631, 499, 499, /* 80 */ 631, 499, 43, 97, 205, 545, 259, 259, 259, 259, /* 90 */ 259, 259, 259, 259, 279, 459, 11, 41, 84, 298, /* 100 */ 148, 148, 202, 299, 187, -13, 54, 94, 297, 352, /* 110 */ 257, 470, -37, 264, 362, 479, -37, 498, 463, 386, /* 120 */ 345, -14, 441, -37, 216, -37, 47, -37, 378, 378, /* 130 */ 378, 499, 378, 553, 378, 378, 499, 499, 378, 499, /* 140 */ 415, 378, 515, 553, 565, -69, -69, -69, -69, -69, /* 150 */ -69, -69, -3, 323, 173, 153, 349, 147, 153, 439, /* 160 */ 153, 28, 263, 369, 153, 590, 575, 587, 615, 628, /* 170 */ 586, 601, 580, 604, 629, 562, 600, 659, 619, 681, /* 180 */ 668, 663, 660, 611, 556, 317, 339, 139, 79, 597, /* 190 */ 27, 171, 180, 291, -68, 618, 573, 592, 624, 623, /* 200 */ 581, 584, 595, ); const YY_REDUCE_USE_DFLT = -76; const YY_REDUCE_MAX = 151; static public $yy_reduce_ofst = array( /* 0 */ 14, -63, 779, 558, 598, 578, 104, 531, 735, 759, /* 10 */ 620, 713, 691, 667, 827, 857, 799, 924, 894, 948, /* 20 */ 888, 972, 851, 1121, 1127, 1161, 1185, 1099, 1093, 1213, /* 30 */ 1001, 1007, 1029, 1049, 1069, 1191, 1264, 1219, 1242, 1270, /* 40 */ 67, 15, 175, 65, -44, 399, 266, 350, 243, 437, /* 50 */ 126, 394, 126, 321, 347, 48, -75, 241, 401, 509, /* 60 */ 509, 509, 488, 446, 83, 525, 262, 83, 431, 445, /* 70 */ 444, 438, 500, 355, 445, 505, 501, 475, 355, 511, /* 80 */ 514, 466, 585, 585, 585, 585, 585, 585, 585, 585, /* 90 */ 585, 585, 585, 585, 596, 596, 582, 583, 583, 583, /* 100 */ 596, 596, 594, 477, 594, 477, 594, 594, 477, 477, /* 110 */ 594, 594, 589, 477, 477, 477, 589, 594, 594, 594, /* 120 */ 594, 606, 594, 589, 477, 589, 608, 589, 477, 477, /* 130 */ 477, 423, 477, 616, 477, 477, 423, 423, 477, 423, /* 140 */ 424, 477, 451, 536, 528, 491, 520, 403, -29, -33, /* 150 */ -35, -59, ); static public $yyExpectedTokens = array( /* 0 */ array(1, 2, 3, 4, 5, 8, 12, 13, 14, 15, ), /* 1 */ array(9, 14, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 2 */ array(9, 14, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 3 */ array(9, 14, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 4 */ array(9, 14, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 5 */ array(9, 14, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 6 */ array(9, 14, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 7 */ array(9, 14, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 8 */ array(9, 14, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 9 */ array(9, 14, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 10 */ array(9, 14, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 11 */ array(9, 14, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 12 */ array(9, 14, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 13 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 14 */ array(1, 9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 15 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 16 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 17 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 18 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 19 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 20 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 21 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 22 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 23 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 24 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 25 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 26 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 27 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 28 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 29 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 30 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 31 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 32 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 33 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 34 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 35 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 36 */ array(9, 14, 15, 19, 20, 44, 46, 47, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 37 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 38 */ array(9, 14, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, 71, 72, ), /* 39 */ array(9, 14, 15, 19, 20, 44, 46, 51, 55, 60, 61, 67, 71, 72, ), /* 40 */ array(9, 14, 15, 19, 20, 44, 51, 55, 60, 61, 67, 71, 72, ), /* 41 */ array(9, 14, 15, 19, 20, 44, 51, 55, 60, 61, 67, 71, 72, ), /* 42 */ array(9, 14, 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(16, 44, 48, 57, 63, 68, ), /* 46 */ array(1, 14, 15, 55, 61, 62, ), /* 47 */ array(1, 55, 60, 67, ), /* 48 */ array(46, 48, 64, ), /* 49 */ array(55, 60, 67, ), /* 50 */ array(16, 63, 68, ), /* 51 */ array(48, 63, 68, ), /* 52 */ array(63, 68, ), /* 53 */ array(55, 60, ), /* 54 */ array(63, 68, ), /* 55 */ array(56, 68, ), /* 56 */ array(56, 68, ), /* 57 */ array(63, 68, ), /* 58 */ array(56, 68, ), /* 59 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ), /* 60 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ), /* 61 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 63, ), /* 62 */ array(1, 2, 3, 4, 5, 8, 12, 13, 14, 15, ), /* 63 */ array(1, 14, 15, 55, 61, 62, ), /* 64 */ array(15, 50, 59, 67, ), /* 65 */ array(15, 50, 52, 67, ), /* 66 */ array(1, 9, 15, ), /* 67 */ array(15, 59, 67, ), /* 68 */ array(16, 52, 68, ), /* 69 */ array(15, 67, ), /* 70 */ array(15, 67, ), /* 71 */ array(15, 67, ), /* 72 */ array(15, 67, ), /* 73 */ array(48, 50, ), /* 74 */ array(15, 67, ), /* 75 */ array(15, 67, ), /* 76 */ array(15, 67, ), /* 77 */ array(68, ), /* 78 */ array(48, ), /* 79 */ array(48, ), /* 80 */ array(68, ), /* 81 */ array(48, ), /* 82 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 58, ), /* 83 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ), /* 84 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ), /* 85 */ array(16, 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(47, 53, 54, 66, ), /* 95 */ array(16, 53, 54, 66, ), /* 96 */ array(1, 9, 15, ), /* 97 */ array(15, 16, 67, ), /* 98 */ array(15, 16, 67, ), /* 99 */ array(15, 50, 67, ), /* 100 */ array(53, 54, 66, ), /* 101 */ array(53, 54, 66, ), /* 102 */ array(16, 68, ), /* 103 */ array(56, 63, ), /* 104 */ array(16, 68, ), /* 105 */ array(49, 63, ), /* 106 */ array(16, 68, ), /* 107 */ array(16, 68, ), /* 108 */ array(56, 63, ), /* 109 */ array(63, 65, ), /* 110 */ array(16, 68, ), /* 111 */ array(16, 68, ), /* 112 */ array(46, 64, ), /* 113 */ array(16, 63, ), /* 114 */ array(16, 63, ), /* 115 */ array(16, 63, ), /* 116 */ array(46, 64, ), /* 117 */ array(16, 68, ), /* 118 */ array(16, 68, ), /* 119 */ array(16, 68, ), /* 120 */ array(16, 68, ), /* 121 */ array(15, 44, ), /* 122 */ array(16, 68, ), /* 123 */ array(46, 64, ), /* 124 */ array(45, 63, ), /* 125 */ array(46, 64, ), /* 126 */ array(55, 67, ), /* 127 */ array(46, 64, ), /* 128 */ array(63, ), /* 129 */ array(63, ), /* 130 */ array(63, ), /* 131 */ array(48, ), /* 132 */ array(63, ), /* 133 */ array(68, ), /* 134 */ array(63, ), /* 135 */ array(63, ), /* 136 */ array(48, ), /* 137 */ array(48, ), /* 138 */ array(63, ), /* 139 */ array(48, ), /* 140 */ array(44, ), /* 141 */ array(63, ), /* 142 */ array(56, ), /* 143 */ array(68, ), /* 144 */ array(55, ), /* 145 */ array(), /* 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(58, 65, ), /* 157 */ array(18, 69, ), /* 158 */ array(44, 57, ), /* 159 */ array(16, 68, ), /* 160 */ array(44, 57, ), /* 161 */ array(59, 67, ), /* 162 */ array(1, 67, ), /* 163 */ array(47, 65, ), /* 164 */ array(44, 57, ), /* 165 */ array(67, ), /* 166 */ array(67, ), /* 167 */ array(45, ), /* 168 */ array(16, ), /* 169 */ array(16, ), /* 170 */ array(67, ), /* 171 */ array(50, ), /* 172 */ array(67, ), /* 173 */ array(67, ), /* 174 */ array(16, ), /* 175 */ array(67, ), /* 176 */ array(62, ), /* 177 */ array(18, ), /* 178 */ array(60, ), /* 179 */ array(1, ), /* 180 */ array(5, ), /* 181 */ array(1, ), /* 182 */ array(5, ), /* 183 */ array(56, ), /* 184 */ array(70, ), /* 185 */ array(67, ), /* 186 */ array(62, ), /* 187 */ array(55, ), /* 188 */ array(69, ), /* 189 */ array(44, ), /* 190 */ array(67, ), /* 191 */ array(55, ), /* 192 */ array(45, ), /* 193 */ array(47, ), /* 194 */ array(70, ), /* 195 */ array(67, ), /* 196 */ array(55, ), /* 197 */ array(67, ), /* 198 */ array(60, ), /* 199 */ array(45, ), /* 200 */ array(52, ), /* 201 */ array(64, ), /* 202 */ array(51, ), /* 203 */ array(), /* 204 */ array(), /* 205 */ array(), /* 206 */ array(), /* 207 */ array(), /* 208 */ array(), /* 209 */ array(), /* 210 */ array(), /* 211 */ array(), /* 212 */ array(), /* 213 */ array(), /* 214 */ array(), /* 215 */ array(), /* 216 */ array(), /* 217 */ array(), /* 218 */ array(), /* 219 */ array(), /* 220 */ array(), /* 221 */ array(), /* 222 */ array(), /* 223 */ array(), /* 224 */ array(), /* 225 */ array(), /* 226 */ array(), /* 227 */ array(), /* 228 */ array(), /* 229 */ array(), /* 230 */ array(), /* 231 */ array(), /* 232 */ array(), /* 233 */ array(), /* 234 */ array(), /* 235 */ array(), /* 236 */ array(), /* 237 */ array(), /* 238 */ array(), /* 239 */ array(), /* 240 */ array(), /* 241 */ array(), /* 242 */ array(), /* 243 */ array(), /* 244 */ array(), /* 245 */ array(), /* 246 */ array(), /* 247 */ array(), /* 248 */ array(), /* 249 */ array(), /* 250 */ array(), /* 251 */ array(), /* 252 */ array(), /* 253 */ array(), /* 254 */ array(), /* 255 */ array(), /* 256 */ array(), /* 257 */ array(), /* 258 */ array(), /* 259 */ array(), /* 260 */ array(), /* 261 */ array(), /* 262 */ array(), /* 263 */ array(), /* 264 */ array(), /* 265 */ array(), /* 266 */ array(), /* 267 */ array(), /* 268 */ array(), /* 269 */ array(), /* 270 */ array(), /* 271 */ array(), /* 272 */ array(), /* 273 */ array(), /* 274 */ array(), /* 275 */ array(), /* 276 */ array(), /* 277 */ array(), /* 278 */ array(), /* 279 */ array(), /* 280 */ array(), /* 281 */ array(), /* 282 */ array(), /* 283 */ array(), /* 284 */ array(), /* 285 */ array(), /* 286 */ array(), /* 287 */ array(), /* 288 */ array(), /* 289 */ array(), /* 290 */ array(), /* 291 */ array(), /* 292 */ array(), /* 293 */ array(), /* 294 */ array(), /* 295 */ array(), /* 296 */ array(), /* 297 */ array(), /* 298 */ array(), /* 299 */ array(), /* 300 */ array(), /* 301 */ array(), /* 302 */ array(), /* 303 */ array(), /* 304 */ array(), /* 305 */ array(), /* 306 */ array(), /* 307 */ array(), /* 308 */ array(), /* 309 */ array(), /* 310 */ array(), /* 311 */ array(), /* 312 */ array(), /* 313 */ array(), /* 314 */ array(), /* 315 */ array(), /* 316 */ array(), /* 317 */ array(), /* 318 */ array(), /* 319 */ array(), /* 320 */ array(), /* 321 */ array(), /* 322 */ array(), /* 323 */ array(), /* 324 */ array(), /* 325 */ array(), ); static public $yy_default = array( /* 0 */ 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, /* 10 */ 501, 501, 501, 480, 501, 501, 438, 438, 501, 438, /* 20 */ 501, 438, 501, 501, 501, 501, 501, 501, 501, 501, /* 30 */ 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, /* 40 */ 501, 501, 501, 501, 501, 501, 501, 501, 400, 501, /* 50 */ 501, 360, 360, 501, 360, 360, 360, 360, 360, 448, /* 60 */ 448, 448, 326, 501, 410, 501, 501, 410, 381, 501, /* 70 */ 501, 501, 501, 403, 501, 501, 501, 360, 403, 395, /* 80 */ 360, 396, 501, 501, 501, 501, 461, 462, 458, 446, /* 90 */ 457, 454, 453, 452, 501, 501, 501, 501, 501, 501, /* 100 */ 369, 443, 501, 501, 501, 483, 501, 501, 501, 437, /* 110 */ 501, 501, 430, 501, 501, 501, 432, 501, 501, 501, /* 120 */ 501, 410, 501, 408, 501, 429, 501, 431, 482, 367, /* 130 */ 449, 426, 481, 496, 376, 377, 401, 398, 361, 397, /* 140 */ 410, 351, 371, 496, 501, 442, 442, 410, 410, 410, /* 150 */ 442, 442, 368, 501, 368, 444, 501, 372, 463, 372, /* 160 */ 501, 501, 501, 501, 368, 501, 501, 501, 365, 501, /* 170 */ 501, 364, 501, 501, 501, 501, 501, 375, 501, 501, /* 180 */ 501, 501, 501, 424, 389, 414, 501, 501, 372, 399, /* 190 */ 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, /* 200 */ 381, 384, 501, 352, 350, 486, 418, 419, 420, 485, /* 210 */ 394, 421, 435, 363, 327, 357, 433, 417, 494, 490, /* 220 */ 353, 354, 366, 495, 424, 492, 393, 488, 491, 493, /* 230 */ 487, 484, 423, 467, 415, 416, 374, 385, 413, 412, /* 240 */ 405, 406, 407, 411, 386, 387, 422, 425, 439, 440, /* 250 */ 370, 380, 388, 427, 378, 379, 409, 404, 334, 335, /* 260 */ 336, 337, 333, 332, 328, 329, 330, 331, 338, 358, /* 270 */ 373, 383, 382, 428, 372, 441, 355, 356, 359, 375, /* 280 */ 390, 445, 455, 456, 459, 389, 464, 470, 471, 472, /* 290 */ 473, 460, 474, 345, 347, 346, 348, 344, 343, 475, /* 300 */ 476, 447, 469, 468, 339, 489, 340, 341, 498, 392, /* 310 */ 391, 497, 499, 500, 342, 402, 450, 451, 465, 466, /* 320 */ 478, 479, 436, 434, 477, 349, ); /* The next thing included is series of defines which control ** various aspects of the generated parser. ** self::YYNOCODE is a number which corresponds ** to no legal terminal or nonterminal number. This ** number is used to fill in empty slots of the hash ** table. ** self::YYFALLBACK If defined, this indicates that one or more tokens ** have fall-back values which should be used if the ** original value of the token will not parse. ** self::YYSTACKDEPTH is the maximum depth of the parser's stack. ** self::YYNSTATE the combined number of states. ** self::YYNRULE the number of rules in the grammar ** self::YYERRORSYMBOL is the code number of the error symbol. If not ** defined, then do no error processing. */ const YYNOCODE = 116; const YYSTACKDEPTH = 100; const YYNSTATE = 326; const YYNRULE = 175; 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', 'variable', 'attributes', 'expr', 'ternary', 'varindexed', 'modifier', 'modparameters', 'ifexprs', 'statement', 'statements', 'optspace', 'varvar', 'foraction', 'value', 'array', 'attribute', 'exprs', 'math', 'function', 'text', 'doublequoted', 'method', 'params', 'objectchain', 'arrayindex', 'object', 'indexdef', 'varvarele', 'objectelement', 'modparameter', 'ifexpr', 'ifcond', 'lop', 'arrayelements', 'arrayelement', 'doublequotedcontent', 'textelement', ); /** * For tracing reduce actions, the names of all rules are required. * @var array */ static public $yyRuleName = array( /* 0 */ "start ::= template", /* 1 */ "template ::= template_element", /* 2 */ "template ::= template template_element", /* 3 */ "template_element ::= smartytag", /* 4 */ "template_element ::= COMMENT", /* 5 */ "template_element ::= LDELIMTAG", /* 6 */ "template_element ::= RDELIMTAG", /* 7 */ "template_element ::= PHP OTHER SHORTTAGEND", /* 8 */ "template_element ::= SHORTTAGSTART OTHER SHORTTAGEND", /* 9 */ "template_element ::= XML", /* 10 */ "template_element ::= SHORTTAGEND", /* 11 */ "template_element ::= OTHER", /* 12 */ "smartytag ::= LDEL variable attributes RDEL", /* 13 */ "smartytag ::= LDEL expr attributes RDEL", /* 14 */ "smartytag ::= LDEL ternary attributes RDEL", /* 15 */ "smartytag ::= LDEL varindexed EQUAL expr attributes RDEL", /* 16 */ "smartytag ::= LDEL varindexed EQUAL ternary attributes RDEL", /* 17 */ "smartytag ::= LDEL ID attributes RDEL", /* 18 */ "smartytag ::= LDEL ID RDEL", /* 19 */ "smartytag ::= LDEL ID PTR ID attributes RDEL", /* 20 */ "smartytag ::= LDEL ID modifier modparameters attributes RDEL", /* 21 */ "smartytag ::= LDEL ID PTR ID modifier modparameters attributes RDEL", /* 22 */ "smartytag ::= LDEL ID SPACE ifexprs RDEL", /* 23 */ "smartytag ::= LDEL ID SPACE statement RDEL", /* 24 */ "smartytag ::= LDEL ID SPACE statements SEMICOLON optspace ifexprs SEMICOLON optspace DOLLAR varvar foraction RDEL", /* 25 */ "foraction ::= EQUAL expr", /* 26 */ "foraction ::= INCDEC", /* 27 */ "smartytag ::= LDEL ID SPACE value AS DOLLAR varvar RDEL", /* 28 */ "smartytag ::= LDEL ID SPACE array AS DOLLAR varvar RDEL", /* 29 */ "smartytag ::= LDELSLASH ID attributes RDEL", /* 30 */ "smartytag ::= LDELSLASH ID modifier modparameters attributes RDEL", /* 31 */ "smartytag ::= LDELSLASH ID PTR ID RDEL", /* 32 */ "attributes ::= attributes attribute", /* 33 */ "attributes ::= attribute", /* 34 */ "attributes ::=", /* 35 */ "attribute ::= SPACE ID EQUAL expr", /* 36 */ "attribute ::= SPACE ID EQUAL value", /* 37 */ "attribute ::= SPACE ID EQUAL ternary", /* 38 */ "attribute ::= SPACE ID", /* 39 */ "statements ::= statement", /* 40 */ "statements ::= statements COMMA statement", /* 41 */ "statement ::= DOLLAR varvar EQUAL expr", /* 42 */ "expr ::= ID", /* 43 */ "expr ::= exprs", /* 44 */ "expr ::= DOLLAR ID COLON ID", /* 45 */ "expr ::= expr modifier modparameters", /* 46 */ "exprs ::= value", /* 47 */ "exprs ::= UNIMATH value", /* 48 */ "exprs ::= exprs math value", /* 49 */ "exprs ::= array", /* 50 */ "ternary ::= OPENP ifexprs CLOSEP QMARK expr COLON expr", /* 51 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr", /* 52 */ "math ::= UNIMATH", /* 53 */ "math ::= MATH", /* 54 */ "math ::= ANDSYM", /* 55 */ "value ::= variable", /* 56 */ "value ::= TYPECAST variable", /* 57 */ "value ::= variable INCDEC", /* 58 */ "value ::= INTEGER", /* 59 */ "value ::= INTEGER DOT INTEGER", /* 60 */ "value ::= BOOLEAN", /* 61 */ "value ::= NULL", /* 62 */ "value ::= function", /* 63 */ "value ::= OPENP expr CLOSEP", /* 64 */ "value ::= SINGLEQUOTESTRING", /* 65 */ "value ::= SINGLEQUOTE text SINGLEQUOTE", /* 66 */ "value ::= SINGLEQUOTE SINGLEQUOTE", /* 67 */ "value ::= QUOTE doublequoted QUOTE", /* 68 */ "value ::= QUOTE QUOTE", /* 69 */ "value ::= ID DOUBLECOLON method", /* 70 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP", /* 71 */ "value ::= ID DOUBLECOLON method objectchain", /* 72 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain", /* 73 */ "value ::= ID DOUBLECOLON ID", /* 74 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex", /* 75 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain", /* 76 */ "value ::= smartytag", /* 77 */ "variable ::= varindexed", /* 78 */ "variable ::= DOLLAR varvar AT ID", /* 79 */ "variable ::= object", /* 80 */ "variable ::= HATCH ID HATCH", /* 81 */ "variable ::= HATCH variable HATCH", /* 82 */ "varindexed ::= DOLLAR varvar arrayindex", /* 83 */ "arrayindex ::= arrayindex indexdef", /* 84 */ "arrayindex ::=", /* 85 */ "indexdef ::= DOT ID", /* 86 */ "indexdef ::= DOT BOOLEAN", /* 87 */ "indexdef ::= DOT NULL", /* 88 */ "indexdef ::= DOT INTEGER", /* 89 */ "indexdef ::= DOT INTEGER ID", /* 90 */ "indexdef ::= DOT variable", /* 91 */ "indexdef ::= DOT LDEL exprs RDEL", /* 92 */ "indexdef ::= OPENB ID CLOSEB", /* 93 */ "indexdef ::= OPENB ID DOT ID CLOSEB", /* 94 */ "indexdef ::= OPENB exprs CLOSEB", /* 95 */ "indexdef ::= OPENB CLOSEB", /* 96 */ "varvar ::= varvarele", /* 97 */ "varvar ::= varvar varvarele", /* 98 */ "varvarele ::= ID", /* 99 */ "varvarele ::= LDEL expr RDEL", /* 100 */ "object ::= varindexed objectchain", /* 101 */ "objectchain ::= objectelement", /* 102 */ "objectchain ::= objectchain objectelement", /* 103 */ "objectelement ::= PTR ID arrayindex", /* 104 */ "objectelement ::= PTR variable arrayindex", /* 105 */ "objectelement ::= PTR LDEL expr RDEL arrayindex", /* 106 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex", /* 107 */ "objectelement ::= PTR method", /* 108 */ "function ::= ID OPENP params CLOSEP", /* 109 */ "method ::= ID OPENP params CLOSEP", /* 110 */ "params ::= expr COMMA params", /* 111 */ "params ::= expr", /* 112 */ "params ::=", /* 113 */ "modifier ::= VERT AT ID", /* 114 */ "modifier ::= VERT ID", /* 115 */ "modparameters ::= modparameters modparameter", /* 116 */ "modparameters ::=", /* 117 */ "modparameter ::= COLON exprs", /* 118 */ "modparameter ::= COLON ID", /* 119 */ "ifexprs ::= ifexpr", /* 120 */ "ifexprs ::= NOT ifexprs", /* 121 */ "ifexprs ::= OPENP ifexprs CLOSEP", /* 122 */ "ifexpr ::= expr", /* 123 */ "ifexpr ::= expr ifcond expr", /* 124 */ "ifexpr ::= expr ISIN array", /* 125 */ "ifexpr ::= expr ISIN value", /* 126 */ "ifexpr ::= ifexprs lop ifexprs", /* 127 */ "ifexpr ::= ifexprs ISDIVBY ifexprs", /* 128 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs", /* 129 */ "ifexpr ::= ifexprs ISEVEN", /* 130 */ "ifexpr ::= ifexprs ISNOTEVEN", /* 131 */ "ifexpr ::= ifexprs ISEVENBY ifexprs", /* 132 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs", /* 133 */ "ifexpr ::= ifexprs ISODD", /* 134 */ "ifexpr ::= ifexprs ISNOTODD", /* 135 */ "ifexpr ::= ifexprs ISODDBY ifexprs", /* 136 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs", /* 137 */ "ifexpr ::= value INSTANCEOF ID", /* 138 */ "ifexpr ::= value INSTANCEOF value", /* 139 */ "ifcond ::= EQUALS", /* 140 */ "ifcond ::= NOTEQUALS", /* 141 */ "ifcond ::= GREATERTHAN", /* 142 */ "ifcond ::= LESSTHAN", /* 143 */ "ifcond ::= GREATEREQUAL", /* 144 */ "ifcond ::= LESSEQUAL", /* 145 */ "ifcond ::= IDENTITY", /* 146 */ "ifcond ::= NONEIDENTITY", /* 147 */ "ifcond ::= MOD", /* 148 */ "lop ::= LAND", /* 149 */ "lop ::= LOR", /* 150 */ "lop ::= LXOR", /* 151 */ "array ::= OPENB arrayelements CLOSEB", /* 152 */ "arrayelements ::= arrayelement", /* 153 */ "arrayelements ::= arrayelements COMMA arrayelement", /* 154 */ "arrayelements ::=", /* 155 */ "arrayelement ::= expr APTR expr", /* 156 */ "arrayelement ::= ID APTR expr", /* 157 */ "arrayelement ::= expr", /* 158 */ "doublequoted ::= doublequoted doublequotedcontent", /* 159 */ "doublequoted ::= doublequotedcontent", /* 160 */ "doublequotedcontent ::= BACKTICK ID BACKTICK", /* 161 */ "doublequotedcontent ::= BACKTICK variable BACKTICK", /* 162 */ "doublequotedcontent ::= DOLLAR ID", /* 163 */ "doublequotedcontent ::= LDEL expr RDEL", /* 164 */ "doublequotedcontent ::= smartytag", /* 165 */ "doublequotedcontent ::= DOLLAR OTHER", /* 166 */ "doublequotedcontent ::= LDEL OTHER", /* 167 */ "doublequotedcontent ::= BACKTICK OTHER", /* 168 */ "doublequotedcontent ::= OTHER", /* 169 */ "optspace ::= SPACE", /* 170 */ "optspace ::=", /* 171 */ "text ::= text textelement", /* 172 */ "text ::= textelement", /* 173 */ "textelement ::= OTHER", /* 174 */ "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' => 1 ), 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' => 77, 'rhs' => 4 ), array( 'lhs' => 77, 'rhs' => 4 ), array( 'lhs' => 77, 'rhs' => 4 ), array( 'lhs' => 77, 'rhs' => 6 ), array( 'lhs' => 77, 'rhs' => 6 ), array( 'lhs' => 77, 'rhs' => 4 ), array( 'lhs' => 77, 'rhs' => 3 ), array( 'lhs' => 77, 'rhs' => 6 ), array( 'lhs' => 77, 'rhs' => 6 ), array( 'lhs' => 77, 'rhs' => 8 ), array( 'lhs' => 77, 'rhs' => 5 ), array( 'lhs' => 77, 'rhs' => 5 ), array( 'lhs' => 77, 'rhs' => 13 ), array( 'lhs' => 90, 'rhs' => 2 ), array( 'lhs' => 90, 'rhs' => 1 ), array( 'lhs' => 77, 'rhs' => 8 ), array( 'lhs' => 77, 'rhs' => 8 ), array( 'lhs' => 77, 'rhs' => 4 ), array( 'lhs' => 77, 'rhs' => 6 ), array( 'lhs' => 77, 'rhs' => 5 ), array( 'lhs' => 79, 'rhs' => 2 ), array( 'lhs' => 79, 'rhs' => 1 ), array( 'lhs' => 79, 'rhs' => 0 ), array( 'lhs' => 93, 'rhs' => 4 ), array( 'lhs' => 93, 'rhs' => 4 ), array( 'lhs' => 93, 'rhs' => 4 ), array( 'lhs' => 93, 'rhs' => 2 ), array( 'lhs' => 87, 'rhs' => 1 ), array( 'lhs' => 87, 'rhs' => 3 ), array( 'lhs' => 86, 'rhs' => 4 ), array( 'lhs' => 80, 'rhs' => 1 ), array( 'lhs' => 80, 'rhs' => 1 ), array( 'lhs' => 80, 'rhs' => 4 ), array( 'lhs' => 80, 'rhs' => 3 ), array( 'lhs' => 94, 'rhs' => 1 ), array( 'lhs' => 94, 'rhs' => 2 ), array( 'lhs' => 94, 'rhs' => 3 ), array( 'lhs' => 94, 'rhs' => 1 ), array( 'lhs' => 81, 'rhs' => 7 ), array( 'lhs' => 81, 'rhs' => 7 ), array( 'lhs' => 95, 'rhs' => 1 ), array( 'lhs' => 95, 'rhs' => 1 ), array( 'lhs' => 95, 'rhs' => 1 ), array( 'lhs' => 91, 'rhs' => 1 ), array( 'lhs' => 91, 'rhs' => 2 ), array( 'lhs' => 91, 'rhs' => 2 ), array( 'lhs' => 91, 'rhs' => 1 ), array( 'lhs' => 91, 'rhs' => 3 ), array( 'lhs' => 91, 'rhs' => 1 ), array( 'lhs' => 91, 'rhs' => 1 ), array( 'lhs' => 91, 'rhs' => 1 ), array( 'lhs' => 91, 'rhs' => 3 ), array( 'lhs' => 91, 'rhs' => 1 ), array( 'lhs' => 91, 'rhs' => 3 ), array( 'lhs' => 91, 'rhs' => 2 ), array( 'lhs' => 91, 'rhs' => 3 ), array( 'lhs' => 91, 'rhs' => 2 ), array( 'lhs' => 91, 'rhs' => 3 ), array( 'lhs' => 91, 'rhs' => 7 ), array( 'lhs' => 91, 'rhs' => 4 ), array( 'lhs' => 91, 'rhs' => 8 ), array( 'lhs' => 91, 'rhs' => 3 ), array( 'lhs' => 91, 'rhs' => 5 ), array( 'lhs' => 91, 'rhs' => 6 ), array( 'lhs' => 91, 'rhs' => 1 ), array( 'lhs' => 78, 'rhs' => 1 ), array( 'lhs' => 78, 'rhs' => 4 ), array( 'lhs' => 78, 'rhs' => 1 ), array( 'lhs' => 78, 'rhs' => 3 ), array( 'lhs' => 78, 'rhs' => 3 ), array( 'lhs' => 82, 'rhs' => 3 ), array( 'lhs' => 102, 'rhs' => 2 ), array( 'lhs' => 102, 'rhs' => 0 ), array( 'lhs' => 104, 'rhs' => 2 ), array( 'lhs' => 104, 'rhs' => 2 ), array( 'lhs' => 104, 'rhs' => 2 ), array( 'lhs' => 104, 'rhs' => 2 ), array( 'lhs' => 104, 'rhs' => 3 ), array( 'lhs' => 104, 'rhs' => 2 ), array( 'lhs' => 104, 'rhs' => 4 ), array( 'lhs' => 104, 'rhs' => 3 ), array( 'lhs' => 104, 'rhs' => 5 ), array( 'lhs' => 104, 'rhs' => 3 ), array( 'lhs' => 104, 'rhs' => 2 ), array( 'lhs' => 89, 'rhs' => 1 ), array( 'lhs' => 89, 'rhs' => 2 ), array( 'lhs' => 105, 'rhs' => 1 ), array( 'lhs' => 105, 'rhs' => 3 ), array( 'lhs' => 103, 'rhs' => 2 ), array( 'lhs' => 101, 'rhs' => 1 ), array( 'lhs' => 101, 'rhs' => 2 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 3 ), array( 'lhs' => 106, 'rhs' => 5 ), array( 'lhs' => 106, 'rhs' => 6 ), array( 'lhs' => 106, 'rhs' => 2 ), array( 'lhs' => 96, 'rhs' => 4 ), array( 'lhs' => 99, 'rhs' => 4 ), array( 'lhs' => 100, 'rhs' => 3 ), array( 'lhs' => 100, 'rhs' => 1 ), array( 'lhs' => 100, 'rhs' => 0 ), array( 'lhs' => 83, 'rhs' => 3 ), array( 'lhs' => 83, 'rhs' => 2 ), array( 'lhs' => 84, 'rhs' => 2 ), array( 'lhs' => 84, 'rhs' => 0 ), array( 'lhs' => 107, 'rhs' => 2 ), array( 'lhs' => 107, 'rhs' => 2 ), array( 'lhs' => 85, 'rhs' => 1 ), array( 'lhs' => 85, 'rhs' => 2 ), array( 'lhs' => 85, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 1 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 2 ), array( 'lhs' => 108, 'rhs' => 2 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 2 ), array( 'lhs' => 108, 'rhs' => 2 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 3 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 111, 'rhs' => 3 ), array( 'lhs' => 111, 'rhs' => 0 ), array( 'lhs' => 112, 'rhs' => 3 ), array( 'lhs' => 112, 'rhs' => 3 ), array( 'lhs' => 112, 'rhs' => 1 ), array( 'lhs' => 98, 'rhs' => 2 ), array( 'lhs' => 98, 'rhs' => 1 ), array( 'lhs' => 113, 'rhs' => 3 ), array( 'lhs' => 113, 'rhs' => 3 ), array( 'lhs' => 113, 'rhs' => 2 ), array( 'lhs' => 113, 'rhs' => 3 ), array( 'lhs' => 113, 'rhs' => 1 ), array( 'lhs' => 113, 'rhs' => 2 ), array( 'lhs' => 113, 'rhs' => 2 ), array( 'lhs' => 113, 'rhs' => 2 ), array( 'lhs' => 113, 'rhs' => 1 ), array( 'lhs' => 88, 'rhs' => 1 ), array( 'lhs' => 88, 'rhs' => 0 ), array( 'lhs' => 97, 'rhs' => 2 ), array( 'lhs' => 97, 'rhs' => 1 ), array( 'lhs' => 114, 'rhs' => 1 ), array( 'lhs' => 114, 'rhs' => 1 ), ); /** * The following table contains a mapping of reduce action to method name * that handles the reduction. * * If a rule is not set, it has no handler. */ static public $yyReduceMap = array( 0 => 0, 46 => 0, 55 => 0, 58 => 0, 60 => 0, 61 => 0, 62 => 0, 64 => 0, 79 => 0, 152 => 0, 1 => 1, 43 => 1, 49 => 1, 52 => 1, 53 => 1, 96 => 1, 119 => 1, 159 => 1, 168 => 1, 169 => 1, 172 => 1, 173 => 1, 174 => 1, 2 => 2, 115 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 11 => 11, 12 => 12, 13 => 12, 14 => 12, 15 => 15, 16 => 15, 17 => 17, 18 => 18, 19 => 19, 20 => 20, 21 => 21, 22 => 22, 23 => 23, 24 => 24, 25 => 25, 26 => 26, 33 => 26, 111 => 26, 157 => 26, 27 => 27, 28 => 28, 29 => 29, 30 => 30, 31 => 31, 32 => 32, 34 => 34, 35 => 35, 36 => 35, 37 => 35, 38 => 38, 39 => 39, 40 => 40, 41 => 41, 42 => 42, 44 => 44, 45 => 45, 47 => 47, 56 => 47, 57 => 47, 48 => 48, 50 => 50, 51 => 50, 54 => 54, 59 => 59, 63 => 63, 65 => 65, 66 => 66, 68 => 66, 67 => 67, 69 => 69, 70 => 70, 71 => 71, 72 => 72, 73 => 73, 74 => 74, 75 => 75, 76 => 76, 77 => 77, 78 => 78, 80 => 80, 81 => 81, 82 => 82, 83 => 83, 158 => 83, 166 => 83, 171 => 83, 84 => 84, 116 => 84, 85 => 85, 86 => 85, 87 => 85, 88 => 88, 89 => 89, 90 => 90, 91 => 91, 94 => 91, 92 => 92, 93 => 93, 95 => 95, 170 => 95, 97 => 97, 98 => 98, 99 => 99, 121 => 99, 100 => 100, 101 => 101, 102 => 102, 103 => 103, 104 => 104, 105 => 105, 106 => 106, 107 => 107, 108 => 108, 109 => 109, 110 => 110, 112 => 112, 113 => 113, 114 => 114, 117 => 117, 118 => 118, 120 => 120, 122 => 122, 123 => 123, 126 => 123, 137 => 123, 124 => 124, 125 => 125, 127 => 127, 128 => 128, 129 => 129, 134 => 129, 130 => 130, 133 => 130, 131 => 131, 136 => 131, 132 => 132, 135 => 132, 138 => 138, 139 => 139, 140 => 140, 141 => 141, 142 => 142, 143 => 143, 144 => 144, 145 => 145, 146 => 146, 147 => 147, 148 => 148, 149 => 149, 150 => 150, 151 => 151, 153 => 153, 154 => 154, 155 => 155, 156 => 156, 160 => 160, 161 => 161, 162 => 162, 163 => 163, 164 => 164, 165 => 165, 167 => 167, ); /* Beginning here are the reduction cases. A typical example ** follows: ** #line ** function yy_r0($yymsp){ ... } // User supplied code ** #line */ #line 79 "smarty_internal_templateparser.y" function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2092 "smarty_internal_templateparser.php" #line 85 "smarty_internal_templateparser.y" function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2095 "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 2098 "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 + 0]->minor, $this->compiler,true); } else { $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;} $this->compiler->has_variable_string = false; } #line 2105 "smarty_internal_templateparser.php" #line 100 "smarty_internal_templateparser.y" function yy_r4(){ $this->_retvalue = ''; } #line 2108 "smarty_internal_templateparser.php" #line 105 "smarty_internal_templateparser.y" function yy_r5(){$this->_retvalue = $this->cacher->processNocacheCode($this->smarty->left_delimiter, $this->compiler,false); } #line 2111 "smarty_internal_templateparser.php" #line 107 "smarty_internal_templateparser.y" function yy_r6(){ $this->_retvalue = $this->cacher->processNocacheCode($this->smarty->right_delimiter, $this->compiler,false); } #line 2114 "smarty_internal_templateparser.php" #line 109 "smarty_internal_templateparser.y" function yy_r7(){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 2126 "smarty_internal_templateparser.php" #line 120 "smarty_internal_templateparser.y" function yy_r8(){ 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 2137 "smarty_internal_templateparser.php" #line 131 "smarty_internal_templateparser.y" function yy_r9(){ $this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("", $this->compiler, true); } #line 2140 "smarty_internal_templateparser.php" #line 132 "smarty_internal_templateparser.y" function yy_r10(){$this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("';?>\n", $this->compiler, true); } #line 2143 "smarty_internal_templateparser.php" #line 134 "smarty_internal_templateparser.y" function yy_r11(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false); } #line 2146 "smarty_internal_templateparser.php" #line 141 "smarty_internal_templateparser.y" function yy_r12(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)); } #line 2149 "smarty_internal_templateparser.php" #line 151 "smarty_internal_templateparser.y" function yy_r15(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor)); } #line 2152 "smarty_internal_templateparser.php" #line 154 "smarty_internal_templateparser.y" function yy_r17(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,$this->yystack[$this->yyidx + -1]->minor); } #line 2155 "smarty_internal_templateparser.php" #line 155 "smarty_internal_templateparser.y" function yy_r18(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,array()); } #line 2158 "smarty_internal_templateparser.php" #line 157 "smarty_internal_templateparser.y" function yy_r19(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)); } #line 2161 "smarty_internal_templateparser.php" #line 159 "smarty_internal_templateparser.y" function yy_r20(){ $this->_retvalue = ''.$this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor).'smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -3]->minor[0],'modifier')) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>"; } else { if (is_callable($this->yystack[$this->yyidx + -3]->minor[0])) { if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -3]->minor[0], $this->compiler)) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>"; } } else { $this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -3]->minor[0] . "\""); } } } #line 2176 "smarty_internal_templateparser.php" #line 173 "smarty_internal_templateparser.y" function yy_r21(){ $this->_retvalue = ''.$this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -4]->minor),$this->yystack[$this->yyidx + -1]->minor)).'smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -3]->minor[0],'modifier')) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>"; } else { if (is_callable($this->yystack[$this->yyidx + -3]->minor[0])) { if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -3]->minor[0], $this->compiler)) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>"; } } else { $this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -3]->minor[0] . "\""); } } } #line 2191 "smarty_internal_templateparser.php" #line 187 "smarty_internal_templateparser.y" function yy_r22(){if (!in_array($this->yystack[$this->yyidx + -3]->minor,array('if','elseif','while'))) { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -3]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); } #line 2197 "smarty_internal_templateparser.php" #line 191 "smarty_internal_templateparser.y" function yy_r23(){ if (!in_array($this->yystack[$this->yyidx + -3]->minor,array('if','elseif','while'))) { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -3]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); } #line 2203 "smarty_internal_templateparser.php" #line 196 "smarty_internal_templateparser.y" function yy_r24(){ if ($this->yystack[$this->yyidx + -11]->minor != 'for') { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -11]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -11]->minor,array('start'=>$this->yystack[$this->yyidx + -9]->minor,'ifexp'=>$this->yystack[$this->yyidx + -6]->minor,'varloop'=>$this->yystack[$this->yyidx + -2]->minor,'loop'=>$this->yystack[$this->yyidx + -1]->minor)); } #line 2210 "smarty_internal_templateparser.php" #line 201 "smarty_internal_templateparser.y" function yy_r25(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; } #line 2213 "smarty_internal_templateparser.php" #line 202 "smarty_internal_templateparser.y" function yy_r26(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2216 "smarty_internal_templateparser.php" #line 204 "smarty_internal_templateparser.y" function yy_r27(){ if ($this->yystack[$this->yyidx + -6]->minor != 'foreach') { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -6]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array('from'=>$this->yystack[$this->yyidx + -4]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor)); } #line 2223 "smarty_internal_templateparser.php" #line 209 "smarty_internal_templateparser.y" function yy_r28(){ if ($this->yystack[$this->yyidx + -6]->minor != 'foreach') { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -6]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array('from'=>$this->yystack[$this->yyidx + -4]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor)); } #line 2230 "smarty_internal_templateparser.php" #line 216 "smarty_internal_templateparser.y" function yy_r29(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',$this->yystack[$this->yyidx + -1]->minor); } #line 2233 "smarty_internal_templateparser.php" #line 217 "smarty_internal_templateparser.y" function yy_r30(){ $this->_retvalue = ''.$this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor.'close',$this->yystack[$this->yyidx + -1]->minor).'smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -3]->minor[0],'modifier')) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>"; } else { if (is_callable($this->yystack[$this->yyidx + -3]->minor[0])) { if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -3]->minor[0], $this->compiler)) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>"; } } else { $this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -3]->minor[0] . "\""); } } } #line 2248 "smarty_internal_templateparser.php" #line 231 "smarty_internal_templateparser.y" function yy_r31(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor)); } #line 2251 "smarty_internal_templateparser.php" #line 238 "smarty_internal_templateparser.y" function yy_r32(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } #line 2254 "smarty_internal_templateparser.php" #line 242 "smarty_internal_templateparser.y" function yy_r34(){ $this->_retvalue = array(); } #line 2257 "smarty_internal_templateparser.php" #line 245 "smarty_internal_templateparser.y" function yy_r35(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); } #line 2260 "smarty_internal_templateparser.php" #line 248 "smarty_internal_templateparser.y" function yy_r38(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); } #line 2263 "smarty_internal_templateparser.php" #line 254 "smarty_internal_templateparser.y" function yy_r39(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } #line 2266 "smarty_internal_templateparser.php" #line 255 "smarty_internal_templateparser.y" function yy_r40(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; } #line 2269 "smarty_internal_templateparser.php" #line 257 "smarty_internal_templateparser.y" function yy_r41(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); } #line 2272 "smarty_internal_templateparser.php" #line 263 "smarty_internal_templateparser.y" function yy_r42(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2275 "smarty_internal_templateparser.php" #line 266 "smarty_internal_templateparser.y" function yy_r44(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; } #line 2278 "smarty_internal_templateparser.php" #line 267 "smarty_internal_templateparser.y" function yy_r45(){ 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 2293 "smarty_internal_templateparser.php" #line 284 "smarty_internal_templateparser.y" function yy_r47(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2296 "smarty_internal_templateparser.php" #line 286 "smarty_internal_templateparser.y" function yy_r48(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; } #line 2299 "smarty_internal_templateparser.php" #line 293 "smarty_internal_templateparser.y" function yy_r50(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; } #line 2302 "smarty_internal_templateparser.php" #line 307 "smarty_internal_templateparser.y" function yy_r54(){$this->_retvalue = ' & '; } #line 2305 "smarty_internal_templateparser.php" #line 315 "smarty_internal_templateparser.y" function yy_r59(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } #line 2308 "smarty_internal_templateparser.php" #line 323 "smarty_internal_templateparser.y" function yy_r63(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; } #line 2311 "smarty_internal_templateparser.php" #line 326 "smarty_internal_templateparser.y" function yy_r65(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; } #line 2314 "smarty_internal_templateparser.php" #line 327 "smarty_internal_templateparser.y" function yy_r66(){ $this->_retvalue = "''"; } #line 2317 "smarty_internal_templateparser.php" #line 329 "smarty_internal_templateparser.y" function yy_r67(){ $this->_retvalue = '"'.$this->yystack[$this->yyidx + -1]->minor.'"'; } #line 2320 "smarty_internal_templateparser.php" #line 332 "smarty_internal_templateparser.y" function yy_r69(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } #line 2323 "smarty_internal_templateparser.php" #line 333 "smarty_internal_templateparser.y" function yy_r70(){ $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 2326 "smarty_internal_templateparser.php" #line 335 "smarty_internal_templateparser.y" function yy_r71(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2329 "smarty_internal_templateparser.php" #line 336 "smarty_internal_templateparser.y" function yy_r72(){ $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 2332 "smarty_internal_templateparser.php" #line 338 "smarty_internal_templateparser.y" function yy_r73(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } #line 2335 "smarty_internal_templateparser.php" #line 340 "smarty_internal_templateparser.y" function yy_r74(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2338 "smarty_internal_templateparser.php" #line 342 "smarty_internal_templateparser.y" function yy_r75(){ $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 2341 "smarty_internal_templateparser.php" #line 344 "smarty_internal_templateparser.y" function yy_r76(){ $this->prefix_number++; $this->compiler->prefix_code[] = ''.$this->yystack[$this->yyidx + 0]->minor.'prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; } #line 2344 "smarty_internal_templateparser.php" #line 353 "smarty_internal_templateparser.y" function yy_r77(){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 2348 "smarty_internal_templateparser.php" #line 356 "smarty_internal_templateparser.y" function yy_r78(){ $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 2351 "smarty_internal_templateparser.php" #line 360 "smarty_internal_templateparser.y" function yy_r80(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; } #line 2354 "smarty_internal_templateparser.php" #line 361 "smarty_internal_templateparser.y" function yy_r81(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; } #line 2357 "smarty_internal_templateparser.php" #line 364 "smarty_internal_templateparser.y" function yy_r82(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); } #line 2360 "smarty_internal_templateparser.php" #line 370 "smarty_internal_templateparser.y" function yy_r83(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2363 "smarty_internal_templateparser.php" #line 372 "smarty_internal_templateparser.y" function yy_r84(){return; } #line 2366 "smarty_internal_templateparser.php" #line 376 "smarty_internal_templateparser.y" function yy_r85(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; } #line 2369 "smarty_internal_templateparser.php" #line 379 "smarty_internal_templateparser.y" function yy_r88(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; } #line 2372 "smarty_internal_templateparser.php" #line 380 "smarty_internal_templateparser.y" function yy_r89(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor ."']"; } #line 2375 "smarty_internal_templateparser.php" #line 381 "smarty_internal_templateparser.y" function yy_r90(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; } #line 2378 "smarty_internal_templateparser.php" #line 382 "smarty_internal_templateparser.y" function yy_r91(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; } #line 2381 "smarty_internal_templateparser.php" #line 384 "smarty_internal_templateparser.y" function yy_r92(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; } #line 2384 "smarty_internal_templateparser.php" #line 385 "smarty_internal_templateparser.y" function yy_r93(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; } #line 2387 "smarty_internal_templateparser.php" #line 389 "smarty_internal_templateparser.y" function yy_r95(){$this->_retvalue = ''; } #line 2390 "smarty_internal_templateparser.php" #line 397 "smarty_internal_templateparser.y" function yy_r97(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } #line 2393 "smarty_internal_templateparser.php" #line 399 "smarty_internal_templateparser.y" function yy_r98(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2396 "smarty_internal_templateparser.php" #line 401 "smarty_internal_templateparser.y" function yy_r99(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2399 "smarty_internal_templateparser.php" #line 406 "smarty_internal_templateparser.y" function yy_r100(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('special_smarty_variable',$this->yystack[$this->yyidx + -1]->minor['index']).$this->yystack[$this->yyidx + 0]->minor;} else { $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -1]->minor['var'] .')->value'.$this->yystack[$this->yyidx + -1]->minor['index'].$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"))->nocache;} } #line 2403 "smarty_internal_templateparser.php" #line 409 "smarty_internal_templateparser.y" function yy_r101(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2406 "smarty_internal_templateparser.php" #line 411 "smarty_internal_templateparser.y" function yy_r102(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2409 "smarty_internal_templateparser.php" #line 413 "smarty_internal_templateparser.y" function yy_r103(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2412 "smarty_internal_templateparser.php" #line 414 "smarty_internal_templateparser.y" function yy_r104(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2415 "smarty_internal_templateparser.php" #line 415 "smarty_internal_templateparser.y" function yy_r105(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2418 "smarty_internal_templateparser.php" #line 416 "smarty_internal_templateparser.y" function yy_r106(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2421 "smarty_internal_templateparser.php" #line 418 "smarty_internal_templateparser.y" function yy_r107(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; } #line 2424 "smarty_internal_templateparser.php" #line 424 "smarty_internal_templateparser.y" function yy_r108(){if (!$this->template->security || $this->smarty->security_handler->isTrustedPhpFunction($this->yystack[$this->yyidx + -3]->minor, $this->compiler)) { if ($this->yystack[$this->yyidx + -3]->minor == 'isset' || $this->yystack[$this->yyidx + -3]->minor == 'empty' || $this->yystack[$this->yyidx + -3]->minor == 'array' || is_callable($this->yystack[$this->yyidx + -3]->minor)) { $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; } else { $this->compiler->trigger_template_error ("unknown function \"" . $this->yystack[$this->yyidx + -3]->minor . "\""); } } } #line 2433 "smarty_internal_templateparser.php" #line 435 "smarty_internal_templateparser.y" function yy_r109(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; } #line 2436 "smarty_internal_templateparser.php" #line 439 "smarty_internal_templateparser.y" function yy_r110(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; } #line 2439 "smarty_internal_templateparser.php" #line 443 "smarty_internal_templateparser.y" function yy_r112(){ return; } #line 2442 "smarty_internal_templateparser.php" #line 448 "smarty_internal_templateparser.y" function yy_r113(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); } #line 2445 "smarty_internal_templateparser.php" #line 449 "smarty_internal_templateparser.y" function yy_r114(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); } #line 2448 "smarty_internal_templateparser.php" #line 465 "smarty_internal_templateparser.y" function yy_r117(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; } #line 2451 "smarty_internal_templateparser.php" #line 466 "smarty_internal_templateparser.y" function yy_r118(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2454 "smarty_internal_templateparser.php" #line 473 "smarty_internal_templateparser.y" function yy_r120(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; } #line 2457 "smarty_internal_templateparser.php" #line 478 "smarty_internal_templateparser.y" function yy_r122(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; } #line 2460 "smarty_internal_templateparser.php" #line 480 "smarty_internal_templateparser.y" function yy_r123(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2463 "smarty_internal_templateparser.php" #line 481 "smarty_internal_templateparser.y" function yy_r124(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2466 "smarty_internal_templateparser.php" #line 482 "smarty_internal_templateparser.y" function yy_r125(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2469 "smarty_internal_templateparser.php" #line 484 "smarty_internal_templateparser.y" function yy_r127(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2472 "smarty_internal_templateparser.php" #line 485 "smarty_internal_templateparser.y" function yy_r128(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2475 "smarty_internal_templateparser.php" #line 486 "smarty_internal_templateparser.y" function yy_r129(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2478 "smarty_internal_templateparser.php" #line 487 "smarty_internal_templateparser.y" function yy_r130(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2481 "smarty_internal_templateparser.php" #line 488 "smarty_internal_templateparser.y" function yy_r131(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2484 "smarty_internal_templateparser.php" #line 489 "smarty_internal_templateparser.y" function yy_r132(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2487 "smarty_internal_templateparser.php" #line 495 "smarty_internal_templateparser.y" function yy_r138(){$this->prefix_number++; $this->compiler->prefix_code[] = 'prefix_number.'='.$this->yystack[$this->yyidx + 0]->minor.';?>'; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.'$_tmp'.$this->prefix_number; } #line 2490 "smarty_internal_templateparser.php" #line 497 "smarty_internal_templateparser.y" function yy_r139(){$this->_retvalue = '=='; } #line 2493 "smarty_internal_templateparser.php" #line 498 "smarty_internal_templateparser.y" function yy_r140(){$this->_retvalue = '!='; } #line 2496 "smarty_internal_templateparser.php" #line 499 "smarty_internal_templateparser.y" function yy_r141(){$this->_retvalue = '>'; } #line 2499 "smarty_internal_templateparser.php" #line 500 "smarty_internal_templateparser.y" function yy_r142(){$this->_retvalue = '<'; } #line 2502 "smarty_internal_templateparser.php" #line 501 "smarty_internal_templateparser.y" function yy_r143(){$this->_retvalue = '>='; } #line 2505 "smarty_internal_templateparser.php" #line 502 "smarty_internal_templateparser.y" function yy_r144(){$this->_retvalue = '<='; } #line 2508 "smarty_internal_templateparser.php" #line 503 "smarty_internal_templateparser.y" function yy_r145(){$this->_retvalue = '==='; } #line 2511 "smarty_internal_templateparser.php" #line 504 "smarty_internal_templateparser.y" function yy_r146(){$this->_retvalue = '!=='; } #line 2514 "smarty_internal_templateparser.php" #line 505 "smarty_internal_templateparser.y" function yy_r147(){$this->_retvalue = '%'; } #line 2517 "smarty_internal_templateparser.php" #line 507 "smarty_internal_templateparser.y" function yy_r148(){$this->_retvalue = '&&'; } #line 2520 "smarty_internal_templateparser.php" #line 508 "smarty_internal_templateparser.y" function yy_r149(){$this->_retvalue = '||'; } #line 2523 "smarty_internal_templateparser.php" #line 509 "smarty_internal_templateparser.y" function yy_r150(){$this->_retvalue = ' XOR '; } #line 2526 "smarty_internal_templateparser.php" #line 514 "smarty_internal_templateparser.y" function yy_r151(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2529 "smarty_internal_templateparser.php" #line 516 "smarty_internal_templateparser.y" function yy_r153(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; } #line 2532 "smarty_internal_templateparser.php" #line 517 "smarty_internal_templateparser.y" function yy_r154(){ return; } #line 2535 "smarty_internal_templateparser.php" #line 518 "smarty_internal_templateparser.y" function yy_r155(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; } #line 2538 "smarty_internal_templateparser.php" #line 519 "smarty_internal_templateparser.y" function yy_r156(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; } #line 2541 "smarty_internal_templateparser.php" #line 528 "smarty_internal_templateparser.y" function yy_r160(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; } #line 2544 "smarty_internal_templateparser.php" #line 529 "smarty_internal_templateparser.y" function yy_r161(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; $this->compiler->has_variable_string = true; } #line 2547 "smarty_internal_templateparser.php" #line 530 "smarty_internal_templateparser.y" function yy_r162(){$this->_retvalue = '".'.'$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + 0]->minor .'\')->value'.'."'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"))->nocache; $this->compiler->has_variable_string = true; } #line 2550 "smarty_internal_templateparser.php" #line 531 "smarty_internal_templateparser.y" function yy_r163(){ $this->_retvalue = '".('.$this->yystack[$this->yyidx + -1]->minor.')."'; $this->compiler->has_variable_string = true; } #line 2553 "smarty_internal_templateparser.php" #line 532 "smarty_internal_templateparser.y" function yy_r164(){ $this->prefix_number++; $this->compiler->prefix_code[] = ''.$this->yystack[$this->yyidx + 0]->minor.'prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '".$_tmp'.$this->prefix_number.'."'; $this->compiler->has_variable_string = true; } #line 2556 "smarty_internal_templateparser.php" #line 533 "smarty_internal_templateparser.y" function yy_r165(){$this->_retvalue = '$'.$this->yystack[$this->yyidx + 0]->minor; } #line 2559 "smarty_internal_templateparser.php" #line 535 "smarty_internal_templateparser.y" function yy_r167(){$this->_retvalue = '`'.$this->yystack[$this->yyidx + 0]->minor; } #line 2562 "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 2680 "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 2705 "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); } } ?>