string = $s->string; $this->metadata = $s->metadata; } else { $this->string = (string) $s; if ($m instanceof TP_yyToken) { $this->metadata = $m->metadata; } elseif (is_array($m)) { $this->metadata = $m; } } } function __toString() { return $this->_string; } function offsetExists($offset) { return isset($this->metadata[$offset]); } function offsetGet($offset) { return $this->metadata[$offset]; } function offsetSet($offset, $value) { if ($offset === null) { if (isset($value[0])) { $x = ($value instanceof TP_yyToken) ? $value->metadata : $value; $this->metadata = array_merge($this->metadata, $x); return; } $offset = count($this->metadata); } if ($value === null) { return; } if ($value instanceof TP_yyToken) { if ($value->metadata) { $this->metadata[$offset] = $value->metadata; } } elseif ($value) { $this->metadata[$offset] = $value; } } function offsetUnset($offset) { unset($this->metadata[$offset]); } } /** The following structure represents a single element of the * parser's stack. Information stored includes: * * + The state number for the parser at this level of the stack. * * + The value of the token stored at this level of the stack. * (In other words, the "major" token.) * * + The semantic value stored at this level of the stack. This is * the information used by the action routines in the grammar. * It is sometimes called the "minor" token. */ class TP_yyStackEntry { public $stateno; /* The state-number */ public $major; /* The major token value. This is the code ** number for the token at this stack level */ public $minor; /* The user-supplied minor token value. This ** is the value of the token */ }; // code external to the class is included here // declare_class is output here #line 12 "internal.templateparser.y" class Smarty_Internal_Templateparser#line 109 "internal.templateparser.php" { /* First off, code is included which follows the "include_class" declaration ** in the input file. */ #line 14 "internal.templateparser.y" // states whether the parse was successful or not public $successful = true; public $retvalue = 0; private $lex; private $internalError = false; function __construct($lex, $compiler) { // set instance object self::instance($this); $this->lex = $lex; $this->compiler = $compiler; $this->smarty = $this->compiler->smarty; $this->template = $this->compiler->template; if ($this->template->security && isset($this->smarty->security_handler)) { $this->sec_obj = $this->smarty->security_policy; } else { $this->sec_obj = $this->smarty; } $this->cacher = $this->template->cacher_object; $this->compiler->has_variable_string = false; $this->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 "internal.templateparser.php" /* Next is all token values, as class constants */ /* ** These constants (all generated automatically by the parser generator) ** specify the various kinds of tokens (terminals) that the parser ** understands. ** ** Each symbol here is a terminal symbol in the grammar. */ const TP_OTHER = 1; const TP_XML = 2; const TP_PHP = 3; const TP_SHORTTAGSTART = 4; const TP_SHORTTAGEND = 5; const TP_PHPSTART = 6; const TP_PHPEND = 7; const TP_COMMENTEND = 8; const TP_COMMENTSTART = 9; const TP_SINGLEQUOTE = 10; const TP_LITERALSTART = 11; const TP_LITERALEND = 12; const TP_LDELIMTAG = 13; const TP_RDELIMTAG = 14; const TP_LDELSLASH = 15; const TP_LDEL = 16; const TP_RDEL = 17; const TP_ISIN = 18; const TP_AS = 19; const TP_BOOLEAN = 20; const TP_NULL = 21; const TP_IDENTITY = 22; const TP_NONEIDENTITY = 23; const TP_EQUALS = 24; const TP_NOTEQUALS = 25; const TP_GREATEREQUAL = 26; const TP_LESSEQUAL = 27; const TP_GREATERTHAN = 28; const TP_LESSTHAN = 29; const TP_NOT = 30; const TP_LAND = 31; const TP_LOR = 32; const TP_LXOR = 33; const TP_ISODDBY = 34; const TP_ISNOTODDBY = 35; const TP_ISODD = 36; const TP_ISNOTODD = 37; const TP_ISEVENBY = 38; const TP_ISNOTEVENBY = 39; const TP_ISEVEN = 40; const TP_ISNOTEVEN = 41; const TP_ISDIVBY = 42; const TP_ISNOTDIVBY = 43; const TP_OPENP = 44; const TP_CLOSEP = 45; const TP_OPENB = 46; const TP_CLOSEB = 47; const TP_PTR = 48; const TP_APTR = 49; const TP_EQUAL = 50; const TP_INTEGER = 51; const TP_INCDEC = 52; const TP_UNIMATH = 53; const TP_MATH = 54; const TP_DOLLAR = 55; const TP_COLON = 56; const TP_DOUBLECOLON = 57; const TP_SEMICOLON = 58; const TP_AT = 59; const TP_HATCH = 60; const TP_QUOTE = 61; const TP_BACKTICK = 62; const TP_VERT = 63; const TP_DOT = 64; const TP_COMMA = 65; const TP_ANDSYM = 66; const TP_ID = 67; const TP_SPACE = 68; const TP_INSTANCEOF = 69; const TP_QMARK = 70; const YY_NO_ACTION = 481; const YY_ACCEPT_ACTION = 480; const YY_ERROR_ACTION = 479; /* 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 = 1085; static public $yy_action = array( /* 0 */ 276, 282, 283, 8, 11, 277, 274, 7, 12, 280, /* 10 */ 281, 4, 3, 28, 276, 282, 283, 8, 11, 277, /* 20 */ 274, 7, 12, 280, 281, 4, 3, 183, 173, 276, /* 30 */ 282, 283, 8, 11, 277, 274, 7, 12, 280, 281, /* 40 */ 4, 3, 62, 289, 124, 62, 28, 24, 73, 291, /* 50 */ 170, 73, 254, 255, 78, 254, 255, 213, 210, 65, /* 60 */ 178, 214, 5, 69, 287, 76, 297, 74, 50, 226, /* 70 */ 227, 127, 2, 271, 182, 176, 13, 250, 14, 23, /* 80 */ 25, 14, 220, 207, 17, 40, 207, 67, 40, 192, /* 90 */ 69, 240, 50, 58, 62, 50, 58, 287, 228, 166, /* 100 */ 73, 128, 158, 153, 254, 255, 241, 78, 276, 282, /* 110 */ 283, 8, 11, 277, 274, 7, 12, 280, 281, 4, /* 120 */ 3, 232, 222, 347, 42, 184, 271, 62, 23, 78, /* 130 */ 62, 262, 161, 73, 18, 207, 73, 254, 255, 69, /* 140 */ 254, 255, 311, 249, 50, 58, 10, 5, 271, 62, /* 150 */ 217, 167, 28, 125, 38, 73, 244, 245, 258, 254, /* 160 */ 255, 13, 150, 14, 23, 270, 14, 263, 207, 246, /* 170 */ 40, 207, 64, 40, 171, 67, 131, 50, 58, 26, /* 180 */ 50, 58, 350, 23, 157, 14, 25, 45, 161, 265, /* 190 */ 207, 62, 40, 69, 67, 244, 245, 73, 50, 50, /* 200 */ 58, 254, 255, 287, 16, 264, 166, 20, 246, 16, /* 210 */ 62, 28, 122, 62, 28, 22, 73, 109, 51, 73, /* 220 */ 254, 255, 109, 254, 255, 9, 16, 14, 240, 190, /* 230 */ 206, 43, 207, 350, 40, 141, 67, 252, 33, 109, /* 240 */ 263, 50, 58, 241, 23, 161, 14, 23, 166, 14, /* 250 */ 1, 207, 161, 40, 207, 69, 40, 192, 69, 22, /* 260 */ 50, 58, 287, 50, 58, 287, 62, 163, 336, 36, /* 270 */ 167, 189, 73, 57, 230, 78, 254, 255, 89, 202, /* 280 */ 162, 189, 240, 165, 180, 78, 105, 44, 256, 15, /* 290 */ 43, 238, 19, 253, 271, 62, 35, 241, 256, 279, /* 300 */ 9, 73, 14, 161, 271, 254, 255, 207, 16, 40, /* 310 */ 189, 67, 16, 34, 78, 216, 50, 58, 480, 96, /* 320 */ 211, 109, 293, 45, 206, 109, 240, 256, 160, 23, /* 330 */ 155, 14, 198, 271, 234, 46, 207, 225, 40, 161, /* 340 */ 67, 241, 32, 172, 1, 50, 58, 36, 151, 43, /* 350 */ 39, 247, 159, 299, 305, 306, 303, 309, 307, 304, /* 360 */ 310, 308, 243, 240, 39, 44, 292, 209, 305, 306, /* 370 */ 303, 309, 307, 304, 310, 308, 161, 292, 241, 62, /* 380 */ 30, 69, 100, 61, 161, 73, 50, 161, 266, 254, /* 390 */ 255, 179, 78, 115, 161, 161, 39, 273, 273, 161, /* 400 */ 305, 306, 303, 309, 307, 304, 310, 308, 223, 161, /* 410 */ 140, 271, 186, 23, 156, 14, 69, 174, 152, 28, /* 420 */ 207, 50, 197, 251, 69, 204, 52, 161, 177, 50, /* 430 */ 58, 203, 171, 191, 188, 63, 167, 54, 82, 66, /* 440 */ 118, 161, 29, 288, 244, 245, 208, 260, 300, 189, /* 450 */ 105, 57, 256, 78, 138, 132, 93, 246, 271, 152, /* 460 */ 240, 195, 300, 103, 105, 161, 256, 251, 251, 189, /* 470 */ 201, 55, 271, 78, 146, 241, 85, 279, 152, 233, /* 480 */ 259, 195, 300, 106, 105, 275, 256, 251, 72, 189, /* 490 */ 68, 57, 271, 78, 142, 147, 95, 279, 237, 154, /* 500 */ 47, 195, 300, 102, 105, 273, 256, 251, 251, 189, /* 510 */ 60, 57, 271, 78, 161, 97, 90, 279, 237, 171, /* 520 */ 259, 195, 300, 37, 105, 273, 256, 189, 171, 57, /* 530 */ 224, 78, 271, 134, 88, 171, 230, 279, 237, 195, /* 540 */ 300, 189, 105, 56, 256, 78, 251, 59, 84, 152, /* 550 */ 271, 15, 101, 195, 300, 279, 105, 139, 256, 298, /* 560 */ 268, 189, 273, 113, 271, 78, 290, 120, 112, 279, /* 570 */ 251, 212, 143, 260, 300, 62, 105, 263, 256, 236, /* 580 */ 288, 73, 273, 273, 271, 254, 255, 237, 130, 137, /* 590 */ 160, 20, 164, 295, 145, 231, 215, 46, 205, 263, /* 600 */ 285, 251, 251, 185, 27, 77, 189, 71, 57, 23, /* 610 */ 78, 175, 75, 94, 181, 80, 207, 278, 195, 300, /* 620 */ 69, 105, 229, 256, 189, 50, 58, 267, 78, 271, /* 630 */ 31, 269, 168, 189, 279, 57, 261, 78, 83, 272, /* 640 */ 87, 256, 19, 258, 42, 195, 300, 271, 105, 257, /* 650 */ 256, 248, 200, 189, 169, 57, 271, 78, 219, 242, /* 660 */ 91, 279, 221, 111, 239, 195, 300, 288, 105, 21, /* 670 */ 256, 270, 41, 189, 110, 57, 271, 78, 6, 286, /* 680 */ 86, 279, 49, 187, 81, 195, 300, 37, 105, 48, /* 690 */ 256, 235, 70, 189, 259, 57, 271, 78, 283, 284, /* 700 */ 92, 279, 283, 283, 283, 195, 300, 283, 105, 283, /* 710 */ 256, 283, 283, 283, 283, 189, 271, 53, 79, 78, /* 720 */ 283, 279, 283, 283, 283, 283, 283, 260, 300, 283, /* 730 */ 105, 283, 256, 189, 283, 129, 218, 78, 271, 283, /* 740 */ 283, 283, 283, 283, 283, 260, 300, 283, 105, 199, /* 750 */ 256, 283, 283, 189, 283, 119, 271, 66, 283, 283, /* 760 */ 189, 283, 108, 283, 78, 260, 300, 283, 105, 283, /* 770 */ 256, 283, 260, 300, 283, 105, 271, 256, 283, 283, /* 780 */ 196, 283, 283, 271, 283, 189, 283, 108, 283, 78, /* 790 */ 283, 283, 283, 283, 283, 283, 283, 260, 300, 189, /* 800 */ 105, 108, 256, 78, 283, 301, 283, 283, 271, 283, /* 810 */ 283, 260, 300, 189, 105, 113, 256, 78, 283, 194, /* 820 */ 283, 283, 271, 283, 283, 260, 300, 283, 105, 189, /* 830 */ 256, 108, 283, 78, 283, 283, 271, 283, 283, 283, /* 840 */ 283, 260, 300, 283, 105, 294, 256, 283, 283, 193, /* 850 */ 283, 283, 271, 189, 283, 133, 283, 78, 283, 283, /* 860 */ 189, 283, 117, 283, 78, 260, 300, 189, 105, 116, /* 870 */ 256, 78, 260, 300, 283, 105, 271, 256, 283, 260, /* 880 */ 300, 283, 105, 271, 256, 189, 283, 121, 283, 78, /* 890 */ 271, 283, 189, 283, 148, 283, 78, 260, 300, 189, /* 900 */ 105, 123, 256, 78, 260, 300, 283, 105, 271, 256, /* 910 */ 283, 260, 300, 283, 105, 271, 256, 283, 283, 283, /* 920 */ 283, 189, 271, 126, 283, 78, 283, 283, 283, 283, /* 930 */ 283, 283, 283, 260, 300, 189, 105, 135, 256, 78, /* 940 */ 283, 283, 283, 283, 271, 283, 283, 260, 300, 189, /* 950 */ 105, 149, 256, 78, 283, 283, 283, 283, 271, 283, /* 960 */ 283, 260, 300, 189, 105, 114, 256, 78, 283, 283, /* 970 */ 283, 283, 271, 283, 283, 260, 300, 189, 105, 136, /* 980 */ 256, 78, 283, 283, 283, 283, 271, 283, 283, 260, /* 990 */ 300, 189, 105, 144, 256, 78, 283, 283, 283, 283, /* 1000 */ 271, 283, 283, 260, 300, 189, 105, 107, 256, 78, /* 1010 */ 283, 283, 283, 283, 271, 283, 283, 260, 300, 189, /* 1020 */ 105, 283, 256, 78, 283, 283, 283, 283, 271, 283, /* 1030 */ 283, 260, 300, 189, 104, 283, 256, 78, 283, 283, /* 1040 */ 283, 283, 271, 283, 283, 260, 300, 189, 99, 283, /* 1050 */ 256, 78, 283, 283, 283, 283, 271, 283, 283, 260, /* 1060 */ 300, 189, 98, 283, 256, 78, 283, 283, 283, 283, /* 1070 */ 271, 283, 283, 302, 296, 283, 283, 283, 256, 283, /* 1080 */ 283, 283, 283, 283, 271, ); static public $yy_lookahead = array( /* 0 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, /* 10 */ 41, 42, 43, 16, 31, 32, 33, 34, 35, 36, /* 20 */ 37, 38, 39, 40, 41, 42, 43, 58, 45, 31, /* 30 */ 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, /* 40 */ 42, 43, 10, 45, 101, 10, 16, 50, 16, 52, /* 50 */ 79, 16, 20, 21, 83, 20, 21, 1, 2, 3, /* 60 */ 4, 5, 30, 55, 67, 9, 47, 11, 60, 13, /* 70 */ 14, 15, 16, 102, 19, 67, 44, 1, 46, 44, /* 80 */ 50, 46, 47, 51, 65, 53, 51, 55, 53, 59, /* 90 */ 55, 1, 60, 61, 10, 60, 61, 67, 8, 67, /* 100 */ 16, 67, 67, 79, 20, 21, 16, 83, 31, 32, /* 110 */ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, /* 120 */ 43, 1, 98, 17, 69, 79, 102, 10, 44, 83, /* 130 */ 10, 105, 63, 16, 65, 51, 16, 20, 21, 55, /* 140 */ 20, 21, 17, 67, 60, 61, 58, 30, 102, 10, /* 150 */ 47, 67, 16, 65, 16, 16, 53, 54, 52, 20, /* 160 */ 21, 44, 100, 46, 44, 103, 46, 105, 51, 66, /* 170 */ 53, 51, 55, 53, 68, 55, 85, 60, 61, 16, /* 180 */ 60, 61, 17, 44, 67, 46, 50, 67, 63, 51, /* 190 */ 51, 10, 53, 55, 55, 53, 54, 16, 60, 60, /* 200 */ 61, 20, 21, 67, 44, 67, 67, 44, 66, 44, /* 210 */ 10, 16, 101, 10, 16, 50, 16, 57, 85, 16, /* 220 */ 20, 21, 57, 20, 21, 44, 44, 46, 1, 67, /* 230 */ 48, 48, 51, 68, 53, 100, 55, 10, 49, 57, /* 240 */ 105, 60, 61, 16, 44, 63, 46, 44, 67, 46, /* 250 */ 68, 51, 63, 53, 51, 55, 53, 59, 55, 50, /* 260 */ 60, 61, 67, 60, 61, 67, 10, 67, 17, 46, /* 270 */ 67, 79, 16, 81, 1, 83, 20, 21, 86, 87, /* 280 */ 88, 79, 1, 91, 92, 83, 94, 64, 96, 16, /* 290 */ 48, 10, 50, 91, 102, 10, 56, 16, 96, 107, /* 300 */ 44, 16, 46, 63, 102, 20, 21, 51, 44, 53, /* 310 */ 79, 55, 44, 49, 83, 47, 60, 61, 72, 73, /* 320 */ 74, 57, 91, 67, 48, 57, 1, 96, 55, 44, /* 330 */ 17, 46, 64, 102, 61, 62, 51, 12, 53, 63, /* 340 */ 55, 16, 16, 59, 68, 60, 61, 46, 17, 48, /* 350 */ 18, 67, 67, 17, 22, 23, 24, 25, 26, 27, /* 360 */ 28, 29, 1, 1, 18, 64, 45, 5, 22, 23, /* 370 */ 24, 25, 26, 27, 28, 29, 63, 45, 16, 10, /* 380 */ 56, 55, 89, 89, 63, 16, 60, 63, 79, 20, /* 390 */ 21, 45, 83, 67, 63, 63, 18, 104, 104, 63, /* 400 */ 22, 23, 24, 25, 26, 27, 28, 29, 17, 63, /* 410 */ 80, 102, 48, 44, 84, 46, 55, 75, 84, 16, /* 420 */ 51, 60, 55, 93, 55, 83, 85, 63, 67, 60, /* 430 */ 61, 75, 68, 77, 67, 79, 67, 81, 82, 83, /* 440 */ 101, 63, 108, 104, 53, 54, 17, 91, 92, 79, /* 450 */ 94, 81, 96, 83, 80, 80, 86, 66, 102, 84, /* 460 */ 1, 91, 92, 78, 94, 63, 96, 93, 93, 79, /* 470 */ 67, 81, 102, 83, 80, 16, 86, 107, 84, 93, /* 480 */ 106, 91, 92, 78, 94, 17, 96, 93, 55, 79, /* 490 */ 89, 81, 102, 83, 80, 80, 86, 107, 113, 84, /* 500 */ 67, 91, 92, 78, 94, 104, 96, 93, 93, 79, /* 510 */ 89, 81, 102, 83, 63, 97, 86, 107, 113, 68, /* 520 */ 106, 91, 92, 56, 94, 104, 96, 79, 68, 81, /* 530 */ 112, 83, 102, 80, 86, 68, 1, 107, 113, 91, /* 540 */ 92, 79, 94, 81, 96, 83, 93, 89, 86, 84, /* 550 */ 102, 16, 78, 91, 92, 107, 94, 80, 96, 45, /* 560 */ 60, 79, 104, 81, 102, 83, 90, 89, 89, 107, /* 570 */ 93, 5, 100, 91, 92, 10, 94, 105, 96, 62, /* 580 */ 104, 16, 104, 104, 102, 20, 21, 113, 80, 80, /* 590 */ 55, 44, 110, 111, 100, 17, 61, 62, 56, 105, /* 600 */ 17, 93, 93, 55, 70, 55, 79, 55, 81, 44, /* 610 */ 83, 67, 55, 86, 19, 45, 51, 17, 91, 92, /* 620 */ 55, 94, 67, 96, 79, 60, 61, 60, 83, 102, /* 630 */ 70, 67, 67, 79, 107, 81, 91, 83, 67, 67, /* 640 */ 86, 96, 50, 52, 69, 91, 92, 102, 94, 51, /* 650 */ 96, 67, 67, 79, 64, 81, 102, 83, 47, 62, /* 660 */ 86, 107, 45, 101, 113, 91, 92, 104, 94, 44, /* 670 */ 96, 103, 95, 79, 101, 81, 102, 83, 109, 74, /* 680 */ 86, 107, 101, 76, 98, 91, 92, 56, 94, 67, /* 690 */ 96, 112, 55, 79, 106, 81, 102, 83, 114, 87, /* 700 */ 86, 107, 114, 114, 114, 91, 92, 114, 94, 114, /* 710 */ 96, 114, 114, 114, 114, 79, 102, 81, 82, 83, /* 720 */ 114, 107, 114, 114, 114, 114, 114, 91, 92, 114, /* 730 */ 94, 114, 96, 79, 114, 81, 82, 83, 102, 114, /* 740 */ 114, 114, 114, 114, 114, 91, 92, 114, 94, 75, /* 750 */ 96, 114, 114, 79, 114, 81, 102, 83, 114, 114, /* 760 */ 79, 114, 81, 114, 83, 91, 92, 114, 94, 114, /* 770 */ 96, 114, 91, 92, 114, 94, 102, 96, 114, 114, /* 780 */ 99, 114, 114, 102, 114, 79, 114, 81, 114, 83, /* 790 */ 114, 114, 114, 114, 114, 114, 114, 91, 92, 79, /* 800 */ 94, 81, 96, 83, 114, 99, 114, 114, 102, 114, /* 810 */ 114, 91, 92, 79, 94, 81, 96, 83, 114, 99, /* 820 */ 114, 114, 102, 114, 114, 91, 92, 114, 94, 79, /* 830 */ 96, 81, 114, 83, 114, 114, 102, 114, 114, 114, /* 840 */ 114, 91, 92, 114, 94, 111, 96, 114, 114, 99, /* 850 */ 114, 114, 102, 79, 114, 81, 114, 83, 114, 114, /* 860 */ 79, 114, 81, 114, 83, 91, 92, 79, 94, 81, /* 870 */ 96, 83, 91, 92, 114, 94, 102, 96, 114, 91, /* 880 */ 92, 114, 94, 102, 96, 79, 114, 81, 114, 83, /* 890 */ 102, 114, 79, 114, 81, 114, 83, 91, 92, 79, /* 900 */ 94, 81, 96, 83, 91, 92, 114, 94, 102, 96, /* 910 */ 114, 91, 92, 114, 94, 102, 96, 114, 114, 114, /* 920 */ 114, 79, 102, 81, 114, 83, 114, 114, 114, 114, /* 930 */ 114, 114, 114, 91, 92, 79, 94, 81, 96, 83, /* 940 */ 114, 114, 114, 114, 102, 114, 114, 91, 92, 79, /* 950 */ 94, 81, 96, 83, 114, 114, 114, 114, 102, 114, /* 960 */ 114, 91, 92, 79, 94, 81, 96, 83, 114, 114, /* 970 */ 114, 114, 102, 114, 114, 91, 92, 79, 94, 81, /* 980 */ 96, 83, 114, 114, 114, 114, 102, 114, 114, 91, /* 990 */ 92, 79, 94, 81, 96, 83, 114, 114, 114, 114, /* 1000 */ 102, 114, 114, 91, 92, 79, 94, 81, 96, 83, /* 1010 */ 114, 114, 114, 114, 102, 114, 114, 91, 92, 79, /* 1020 */ 94, 114, 96, 83, 114, 114, 114, 114, 102, 114, /* 1030 */ 114, 91, 92, 79, 94, 114, 96, 83, 114, 114, /* 1040 */ 114, 114, 102, 114, 114, 91, 92, 79, 94, 114, /* 1050 */ 96, 83, 114, 114, 114, 114, 102, 114, 114, 91, /* 1060 */ 92, 79, 94, 114, 96, 83, 114, 114, 114, 114, /* 1070 */ 102, 114, 114, 91, 92, 114, 114, 114, 96, 114, /* 1080 */ 114, 114, 114, 114, 102, ); const YY_SHIFT_USE_DFLT = -32; const YY_SHIFT_MAX = 207; static public $yy_shift_ofst = array( /* 0 */ 56, 117, 256, 32, 32, 32, 32, 32, 32, 32, /* 10 */ 32, 32, 32, 32, 285, 120, 139, 285, 139, 181, /* 20 */ 139, 139, 181, 139, 139, 139, 139, 139, 139, 139, /* 30 */ 139, 139, 139, 139, 139, 139, 35, 200, 203, 369, /* 40 */ 84, 84, 565, 326, 138, 182, 361, 276, 364, 301, /* 50 */ 8, 467, 467, 451, 451, 332, 346, 378, 535, 30, /* 60 */ -3, 198, 281, 106, 403, 459, 242, 403, 195, 195, /* 70 */ 195, 195, 195, 433, 459, 195, 459, 195, 183, 460, /* 80 */ 183, 183, 460, 460, -17, -2, -31, 77, 77, 77, /* 90 */ 77, 77, 77, 77, 77, 77, 56, 273, 103, 391, /* 100 */ 136, 90, 227, 325, 142, 142, 362, 313, 69, 367, /* 110 */ 223, 223, 195, 189, 240, 163, 336, 324, 223, 125, /* 120 */ 195, 331, 223, 321, 223, 637, 402, 622, 625, 402, /* 130 */ 460, 631, 460, 402, 460, 402, 402, 460, 460, 460, /* 140 */ 460, 183, 460, 183, 402, 183, 460, 460, 402, 402, /* 150 */ 183, -32, -32, -32, -32, -32, -32, 165, 268, 264, /* 160 */ 76, 284, 88, 160, 19, 55, 160, 160, 160, 598, /* 170 */ 597, 585, 584, 560, 583, 566, 500, 517, 548, 534, /* 180 */ 595, 557, 550, 552, 567, 544, 555, 578, 547, 591, /* 190 */ 611, 600, 564, 570, 514, 575, 617, 34, 162, 429, /* 200 */ 209, 542, 251, 468, 592, 572, 571, 590, ); const YY_REDUCE_USE_DFLT = -58; const YY_REDUCE_MAX = 156; static public $yy_reduce_ofst = array( /* 0 */ 246, 192, 356, 527, 574, 614, 554, 370, 430, 462, /* 10 */ 594, 448, 410, 390, 482, 674, 720, 734, 706, 636, /* 20 */ 681, 750, 654, 820, 842, 813, 806, 781, 788, 870, /* 30 */ 856, 884, 926, 898, 912, 774, 968, 940, 954, 982, /* 40 */ 545, 202, 231, 24, 309, 330, -29, 330, 415, 62, /* 50 */ 46, 414, 374, 394, 375, 334, 334, 334, 418, 339, /* 60 */ 476, 339, 425, 453, 458, 405, 135, 294, 339, 294, /* 70 */ 293, 421, 401, 342, 385, 479, 474, 478, 135, 509, /* 80 */ 494, 472, 508, 477, 569, 569, 569, 569, 569, 569, /* 90 */ 569, 569, 569, 569, 569, 569, 605, 579, 577, 577, /* 100 */ 563, 551, 551, 551, 577, 577, 551, 465, 465, 586, /* 110 */ 568, 568, 563, 465, 465, 573, 465, 465, 568, 465, /* 120 */ 563, 465, 568, 465, 568, 612, 465, 607, 581, 465, /* 130 */ 386, 588, 386, 465, 386, 465, 465, 386, 386, 386, /* 140 */ 386, 26, 386, 26, 465, 26, 386, 386, 465, 465, /* 150 */ 26, 111, 91, -57, 133, 562, 341, ); static public $yyExpectedTokens = array( /* 0 */ array(1, 2, 3, 4, 5, 9, 11, 13, 14, 15, 16, ), /* 1 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 2 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 3 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 4 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 5 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 6 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 7 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 8 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 9 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 10 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 11 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 12 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 13 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 14 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 15 */ array(1, 10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 16 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 17 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 18 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 19 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 20 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 21 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 22 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 23 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 24 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 25 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 26 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 27 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 28 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 29 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 30 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 31 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 32 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 33 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 34 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 35 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 36 */ array(10, 16, 20, 21, 44, 46, 47, 51, 53, 55, 60, 61, 67, ), /* 37 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 38 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ), /* 39 */ array(10, 16, 20, 21, 44, 46, 51, 55, 60, 61, 67, ), /* 40 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ), /* 41 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ), /* 42 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ), /* 43 */ array(16, 55, 60, 67, ), /* 44 */ array(16, 51, 55, 60, 67, ), /* 45 */ array(44, 48, 57, 63, 68, ), /* 46 */ array(1, 55, 60, 67, ), /* 47 */ array(48, 63, 68, ), /* 48 */ array(48, 63, 68, ), /* 49 */ array(46, 48, 64, ), /* 50 */ array(55, 60, 67, ), /* 51 */ array(56, 68, ), /* 52 */ array(56, 68, ), /* 53 */ array(63, 68, ), /* 54 */ array(63, 68, ), /* 55 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ), /* 56 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ), /* 57 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 63, ), /* 58 */ array(1, 16, 55, 61, 62, ), /* 59 */ array(16, 50, 59, 67, ), /* 60 */ array(16, 50, 52, 67, ), /* 61 */ array(16, 59, 67, ), /* 62 */ array(1, 10, 16, ), /* 63 */ array(17, 52, 68, ), /* 64 */ array(16, 67, ), /* 65 */ array(1, 16, ), /* 66 */ array(48, 50, ), /* 67 */ array(16, 67, ), /* 68 */ array(16, 67, ), /* 69 */ array(16, 67, ), /* 70 */ array(16, 67, ), /* 71 */ array(16, 67, ), /* 72 */ array(16, 67, ), /* 73 */ array(55, 67, ), /* 74 */ array(1, 16, ), /* 75 */ array(16, 67, ), /* 76 */ array(1, 16, ), /* 77 */ array(16, 67, ), /* 78 */ array(48, ), /* 79 */ array(68, ), /* 80 */ array(48, ), /* 81 */ array(48, ), /* 82 */ array(68, ), /* 83 */ array(68, ), /* 84 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ), /* 85 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ), /* 86 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 58, ), /* 87 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 88 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 89 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 90 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 91 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 92 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 93 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 94 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 95 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ), /* 96 */ array(1, 2, 3, 4, 5, 9, 11, 13, 14, 15, 16, ), /* 97 */ array(1, 16, 55, 61, 62, ), /* 98 */ array(47, 53, 54, 66, ), /* 99 */ array(17, 53, 54, 66, ), /* 100 */ array(16, 50, 67, ), /* 101 */ array(1, 8, 16, ), /* 102 */ array(1, 10, 16, ), /* 103 */ array(1, 12, 16, ), /* 104 */ array(53, 54, 66, ), /* 105 */ array(53, 54, 66, ), /* 106 */ array(1, 5, 16, ), /* 107 */ array(17, 63, ), /* 108 */ array(63, 65, ), /* 109 */ array(55, 67, ), /* 110 */ array(46, 64, ), /* 111 */ array(46, 64, ), /* 112 */ array(16, 67, ), /* 113 */ array(49, 63, ), /* 114 */ array(56, 63, ), /* 115 */ array(16, 44, ), /* 116 */ array(17, 63, ), /* 117 */ array(56, 63, ), /* 118 */ array(46, 64, ), /* 119 */ array(17, 63, ), /* 120 */ array(16, 67, ), /* 121 */ array(17, 63, ), /* 122 */ array(46, 64, ), /* 123 */ array(45, 63, ), /* 124 */ array(46, 64, ), /* 125 */ array(55, ), /* 126 */ array(63, ), /* 127 */ array(67, ), /* 128 */ array(44, ), /* 129 */ array(63, ), /* 130 */ array(68, ), /* 131 */ array(56, ), /* 132 */ array(68, ), /* 133 */ array(63, ), /* 134 */ array(68, ), /* 135 */ array(63, ), /* 136 */ array(63, ), /* 137 */ array(68, ), /* 138 */ array(68, ), /* 139 */ array(68, ), /* 140 */ array(68, ), /* 141 */ array(48, ), /* 142 */ array(68, ), /* 143 */ array(48, ), /* 144 */ array(63, ), /* 145 */ array(48, ), /* 146 */ array(68, ), /* 147 */ array(68, ), /* 148 */ array(63, ), /* 149 */ array(63, ), /* 150 */ array(48, ), /* 151 */ array(), /* 152 */ array(), /* 153 */ array(), /* 154 */ array(), /* 155 */ array(), /* 156 */ array(), /* 157 */ array(17, 44, 50, 57, 68, ), /* 158 */ array(44, 47, 57, 64, ), /* 159 */ array(44, 49, 57, ), /* 160 */ array(1, 67, ), /* 161 */ array(59, 67, ), /* 162 */ array(58, 65, ), /* 163 */ array(44, 57, ), /* 164 */ array(47, 65, ), /* 165 */ array(19, 69, ), /* 166 */ array(44, 57, ), /* 167 */ array(44, 57, ), /* 168 */ array(44, 57, ), /* 169 */ array(51, ), /* 170 */ array(62, ), /* 171 */ array(67, ), /* 172 */ array(67, ), /* 173 */ array(70, ), /* 174 */ array(17, ), /* 175 */ array(5, ), /* 176 */ array(60, ), /* 177 */ array(62, ), /* 178 */ array(55, ), /* 179 */ array(70, ), /* 180 */ array(19, ), /* 181 */ array(55, ), /* 182 */ array(55, ), /* 183 */ array(55, ), /* 184 */ array(60, ), /* 185 */ array(67, ), /* 186 */ array(67, ), /* 187 */ array(17, ), /* 188 */ array(44, ), /* 189 */ array(52, ), /* 190 */ array(47, ), /* 191 */ array(17, ), /* 192 */ array(67, ), /* 193 */ array(45, ), /* 194 */ array(45, ), /* 195 */ array(69, ), /* 196 */ array(45, ), /* 197 */ array(67, ), /* 198 */ array(67, ), /* 199 */ array(17, ), /* 200 */ array(50, ), /* 201 */ array(56, ), /* 202 */ array(17, ), /* 203 */ array(17, ), /* 204 */ array(50, ), /* 205 */ array(67, ), /* 206 */ array(67, ), /* 207 */ array(64, ), /* 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(), ); static public $yy_default = array( /* 0 */ 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, /* 10 */ 479, 479, 479, 479, 460, 479, 419, 479, 419, 479, /* 20 */ 419, 419, 479, 479, 479, 479, 479, 479, 479, 479, /* 30 */ 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, /* 40 */ 479, 479, 479, 479, 479, 347, 479, 347, 347, 384, /* 50 */ 479, 347, 347, 347, 347, 429, 429, 429, 479, 394, /* 60 */ 479, 394, 479, 367, 479, 479, 387, 479, 394, 479, /* 70 */ 479, 479, 479, 479, 479, 479, 479, 479, 387, 347, /* 80 */ 380, 379, 347, 347, 479, 479, 479, 433, 443, 335, /* 90 */ 442, 434, 427, 438, 435, 439, 312, 479, 479, 479, /* 100 */ 479, 479, 479, 479, 424, 355, 479, 479, 418, 479, /* 110 */ 410, 412, 341, 463, 479, 394, 479, 479, 392, 479, /* 120 */ 340, 479, 413, 479, 411, 479, 338, 479, 394, 348, /* 130 */ 329, 357, 328, 362, 327, 363, 461, 331, 334, 333, /* 140 */ 332, 407, 343, 381, 462, 382, 330, 342, 353, 430, /* 150 */ 385, 394, 423, 394, 423, 394, 423, 354, 479, 354, /* 160 */ 479, 479, 479, 425, 479, 358, 354, 479, 444, 479, /* 170 */ 479, 479, 479, 479, 479, 479, 479, 479, 479, 374, /* 180 */ 361, 479, 479, 479, 479, 479, 479, 479, 383, 367, /* 190 */ 479, 479, 479, 479, 479, 358, 479, 479, 479, 479, /* 200 */ 350, 405, 351, 479, 479, 479, 479, 369, 470, 322, /* 210 */ 324, 313, 323, 326, 325, 378, 399, 401, 349, 400, /* 220 */ 402, 416, 414, 398, 465, 319, 320, 321, 318, 344, /* 230 */ 474, 316, 472, 345, 377, 464, 466, 476, 376, 475, /* 240 */ 477, 478, 467, 473, 364, 365, 366, 421, 420, 468, /* 250 */ 471, 346, 375, 360, 371, 372, 373, 370, 368, 422, /* 260 */ 358, 359, 409, 408, 395, 396, 397, 391, 390, 388, /* 270 */ 393, 389, 356, 403, 441, 315, 454, 440, 317, 426, /* 280 */ 436, 437, 455, 456, 352, 386, 314, 405, 404, 428, /* 290 */ 337, 339, 374, 445, 459, 458, 431, 457, 415, 406, /* 300 */ 361, 417, 432, 446, 451, 452, 453, 450, 449, 447, /* 310 */ 448, 469, ); /* 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 = 115; const YYSTACKDEPTH = 100; const YYNSTATE = 312; const YYNRULE = 167; const YYERRORSYMBOL = 71; const YYERRSYMDT = 'yy0'; const YYFALLBACK = 1; /** The next table maps tokens into fallback tokens. If a construct * like the following: * * %fallback ID X Y Z. * * appears in the grammer, then ID becomes a fallback token for X, Y, * and Z. Whenever one of the tokens X, Y, or Z is input to the parser * but it does not parse, the type of the token is changed to ID and * the parse is retried before an error is thrown. */ static public $yyFallback = array( 0, /* $ => nothing */ 0, /* OTHER => nothing */ 1, /* XML => OTHER */ 1, /* PHP => OTHER */ 1, /* SHORTTAGSTART => OTHER */ 1, /* SHORTTAGEND => OTHER */ 1, /* PHPSTART => OTHER */ 1, /* PHPEND => OTHER */ 1, /* COMMENTEND => OTHER */ 1, /* COMMENTSTART => OTHER */ 1, /* SINGLEQUOTE => OTHER */ 1, /* LITERALSTART => OTHER */ 1, /* LITERALEND => OTHER */ 1, /* LDELIMTAG => OTHER */ 1, /* RDELIMTAG => OTHER */ 1, /* LDELSLASH => OTHER */ 1, /* LDEL => OTHER */ 1, /* RDEL => OTHER */ 1, /* ISIN => OTHER */ 1, /* AS => OTHER */ 1, /* BOOLEAN => OTHER */ 1, /* NULL => OTHER */ 1, /* IDENTITY => OTHER */ 1, /* NONEIDENTITY => OTHER */ 1, /* EQUALS => OTHER */ 1, /* NOTEQUALS => OTHER */ 1, /* GREATEREQUAL => OTHER */ 1, /* LESSEQUAL => OTHER */ 1, /* GREATERTHAN => OTHER */ 1, /* LESSTHAN => OTHER */ 1, /* NOT => OTHER */ 1, /* LAND => OTHER */ 1, /* LOR => OTHER */ 1, /* LXOR => OTHER */ 1, /* ISODDBY => OTHER */ 1, /* ISNOTODDBY => OTHER */ 1, /* ISODD => OTHER */ 1, /* ISNOTODD => OTHER */ 1, /* ISEVENBY => OTHER */ 1, /* ISNOTEVENBY => OTHER */ 1, /* ISEVEN => OTHER */ 1, /* ISNOTEVEN => OTHER */ 1, /* ISDIVBY => OTHER */ 1, /* ISNOTDIVBY => OTHER */ 1, /* OPENP => OTHER */ 1, /* CLOSEP => OTHER */ 1, /* OPENB => OTHER */ 1, /* CLOSEB => OTHER */ 1, /* PTR => OTHER */ 1, /* APTR => OTHER */ 1, /* EQUAL => OTHER */ 1, /* INTEGER => OTHER */ 1, /* INCDEC => OTHER */ 1, /* UNIMATH => OTHER */ 1, /* MATH => OTHER */ 1, /* DOLLAR => OTHER */ 1, /* COLON => OTHER */ 1, /* DOUBLECOLON => OTHER */ 1, /* SEMICOLON => OTHER */ 1, /* AT => OTHER */ 1, /* HATCH => OTHER */ 1, /* QUOTE => OTHER */ 1, /* BACKTICK => OTHER */ 1, /* VERT => OTHER */ 1, /* DOT => OTHER */ 1, /* COMMA => OTHER */ 1, /* ANDSYM => OTHER */ 1, /* ID => OTHER */ 1, /* SPACE => OTHER */ 1, /* INSTANCEOF => OTHER */ 1, /* QMARK => OTHER */ ); /** * Turn parser tracing on by giving a stream to which to write the trace * and a prompt to preface each trace message. Tracing is turned off * by making either argument NULL * * Inputs: * * - A stream resource to which trace output should be written. * If NULL, then tracing is turned off. * - A prefix string written at the beginning of every * line of trace output. If NULL, then tracing is * turned off. * * Outputs: * * - None. * @param resource * @param string */ static function Trace($TraceFILE, $zTracePrompt) { if (!$TraceFILE) { $zTracePrompt = 0; } elseif (!$zTracePrompt) { $TraceFILE = 0; } self::$yyTraceFILE = $TraceFILE; self::$yyTracePrompt = $zTracePrompt; } /** * Output debug information to output (php://output stream) */ static function PrintTrace() { self::$yyTraceFILE = fopen('php://output', 'w'); self::$yyTracePrompt = '
'; } /** * @var resource|0 */ static public $yyTraceFILE; /** * String to prepend to debug output * @var string|0 */ static public $yyTracePrompt; /** * @var int */ public $yyidx; /* Index of top element in stack */ /** * @var int */ public $yyerrcnt; /* Shifts left before out of the error */ /** * @var array */ public $yystack = array(); /* The parser's stack */ /** * For tracing shifts, the names of all terminals and nonterminals * are required. The following table supplies these names * @var array */ public $yyTokenName = array( '$', 'OTHER', 'XML', 'PHP', 'SHORTTAGSTART', 'SHORTTAGEND', 'PHPSTART', 'PHPEND', 'COMMENTEND', 'COMMENTSTART', 'SINGLEQUOTE', 'LITERALSTART', 'LITERALEND', 'LDELIMTAG', 'RDELIMTAG', 'LDELSLASH', 'LDEL', 'RDEL', 'ISIN', 'AS', 'BOOLEAN', 'NULL', 'IDENTITY', 'NONEIDENTITY', 'EQUALS', 'NOTEQUALS', 'GREATEREQUAL', 'LESSEQUAL', 'GREATERTHAN', 'LESSTHAN', 'NOT', 'LAND', 'LOR', 'LXOR', 'ISODDBY', 'ISNOTODDBY', 'ISODD', 'ISNOTODD', 'ISEVENBY', 'ISNOTEVENBY', 'ISEVEN', 'ISNOTEVEN', 'ISDIVBY', 'ISNOTDIVBY', 'OPENP', 'CLOSEP', 'OPENB', 'CLOSEB', 'PTR', 'APTR', 'EQUAL', 'INTEGER', 'INCDEC', 'UNIMATH', 'MATH', 'DOLLAR', 'COLON', 'DOUBLECOLON', 'SEMICOLON', 'AT', 'HATCH', 'QUOTE', 'BACKTICK', 'VERT', 'DOT', 'COMMA', 'ANDSYM', 'ID', 'SPACE', 'INSTANCEOF', 'QMARK', 'error', 'start', 'template', 'template_element', 'smartytag', 'smartyclosetag', 'outputtag', 'text', 'variable', 'attributes', 'expr', 'ternary', 'varindexed', 'modifier', 'modparameters', 'ifexprs', 'statement', 'statements', 'varvar', 'foraction', 'value', 'array', 'attribute', 'exprs', 'math', 'function', 'doublequoted', 'method', 'params', 'objectchain', 'arrayindex', 'object', 'indexdef', 'varvarele', 'objectelement', 'modparameter', 'ifexpr', 'ifcond', 'lop', 'arrayelements', 'arrayelement', 'doublequotedcontent', 'textelement', ); /** * For tracing reduce actions, the names of all rules are required. * @var array */ static public $yyRuleName = array( /* 0 */ "start ::= template", /* 1 */ "template ::= template_element", /* 2 */ "template ::= template template_element", /* 3 */ "template_element ::= LDEL smartytag RDEL", /* 4 */ "template_element ::= LDELSLASH smartyclosetag RDEL", /* 5 */ "template_element ::= LDEL outputtag RDEL", /* 6 */ "template_element ::= COMMENTSTART text COMMENTEND", /* 7 */ "template_element ::= LITERALSTART text LITERALEND", /* 8 */ "template_element ::= LDELIMTAG", /* 9 */ "template_element ::= RDELIMTAG", /* 10 */ "template_element ::= PHP text SHORTTAGEND", /* 11 */ "template_element ::= SHORTTAGSTART DOLLAR ID SHORTTAGEND", /* 12 */ "template_element ::= XML", /* 13 */ "template_element ::= SHORTTAGEND", /* 14 */ "template_element ::= OTHER", /* 15 */ "outputtag ::= variable attributes", /* 16 */ "outputtag ::= expr attributes", /* 17 */ "outputtag ::= ternary attributes", /* 18 */ "smartytag ::= varindexed EQUAL expr attributes", /* 19 */ "smartytag ::= varindexed EQUAL ternary attributes", /* 20 */ "smartytag ::= ID attributes", /* 21 */ "smartytag ::= ID PTR ID attributes", /* 22 */ "smartytag ::= ID modifier modparameters attributes", /* 23 */ "smartytag ::= ID SPACE ifexprs", /* 24 */ "smartytag ::= ID SPACE statement", /* 25 */ "smartytag ::= ID SPACE statements SEMICOLON ifexprs SEMICOLON DOLLAR varvar foraction", /* 26 */ "foraction ::= EQUAL expr", /* 27 */ "foraction ::= INCDEC", /* 28 */ "smartytag ::= ID SPACE value AS DOLLAR varvar", /* 29 */ "smartytag ::= ID SPACE array AS DOLLAR varvar", /* 30 */ "smartyclosetag ::= ID attributes", /* 31 */ "smartyclosetag ::= ID modifier modparameters attributes", /* 32 */ "smartyclosetag ::= ID PTR ID", /* 33 */ "attributes ::= attributes attribute", /* 34 */ "attributes ::= attribute", /* 35 */ "attributes ::=", /* 36 */ "attribute ::= SPACE ID EQUAL expr", /* 37 */ "attribute ::= SPACE ID EQUAL 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 ::= variable INCDEC", /* 57 */ "value ::= INTEGER", /* 58 */ "value ::= INTEGER DOT INTEGER", /* 59 */ "value ::= BOOLEAN", /* 60 */ "value ::= NULL", /* 61 */ "value ::= function", /* 62 */ "value ::= OPENP expr CLOSEP", /* 63 */ "value ::= SINGLEQUOTE text SINGLEQUOTE", /* 64 */ "value ::= SINGLEQUOTE SINGLEQUOTE", /* 65 */ "value ::= QUOTE doublequoted QUOTE", /* 66 */ "value ::= QUOTE QUOTE", /* 67 */ "value ::= ID DOUBLECOLON method", /* 68 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP", /* 69 */ "value ::= ID DOUBLECOLON method objectchain", /* 70 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain", /* 71 */ "value ::= ID DOUBLECOLON ID", /* 72 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex", /* 73 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain", /* 74 */ "value ::= LDEL smartytag RDEL", /* 75 */ "variable ::= varindexed", /* 76 */ "variable ::= DOLLAR varvar AT ID", /* 77 */ "variable ::= object", /* 78 */ "variable ::= HATCH ID HATCH", /* 79 */ "variable ::= HATCH variable HATCH", /* 80 */ "varindexed ::= DOLLAR varvar arrayindex", /* 81 */ "arrayindex ::= arrayindex indexdef", /* 82 */ "arrayindex ::=", /* 83 */ "indexdef ::= DOT ID", /* 84 */ "indexdef ::= DOT INTEGER", /* 85 */ "indexdef ::= DOT variable", /* 86 */ "indexdef ::= DOT LDEL exprs RDEL", /* 87 */ "indexdef ::= OPENB ID CLOSEB", /* 88 */ "indexdef ::= OPENB ID DOT ID CLOSEB", /* 89 */ "indexdef ::= OPENB exprs CLOSEB", /* 90 */ "indexdef ::= OPENB CLOSEB", /* 91 */ "varvar ::= varvarele", /* 92 */ "varvar ::= varvar varvarele", /* 93 */ "varvarele ::= ID", /* 94 */ "varvarele ::= LDEL expr RDEL", /* 95 */ "object ::= varindexed objectchain", /* 96 */ "objectchain ::= objectelement", /* 97 */ "objectchain ::= objectchain objectelement", /* 98 */ "objectelement ::= PTR ID arrayindex", /* 99 */ "objectelement ::= PTR variable arrayindex", /* 100 */ "objectelement ::= PTR LDEL expr RDEL arrayindex", /* 101 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex", /* 102 */ "objectelement ::= PTR method", /* 103 */ "function ::= ID OPENP params CLOSEP", /* 104 */ "method ::= ID OPENP params CLOSEP", /* 105 */ "params ::= expr COMMA params", /* 106 */ "params ::= expr", /* 107 */ "params ::=", /* 108 */ "modifier ::= VERT AT ID", /* 109 */ "modifier ::= VERT ID", /* 110 */ "modparameters ::= modparameters modparameter", /* 111 */ "modparameters ::=", /* 112 */ "modparameter ::= COLON exprs", /* 113 */ "modparameter ::= COLON ID", /* 114 */ "ifexprs ::= ifexpr", /* 115 */ "ifexprs ::= NOT ifexprs", /* 116 */ "ifexprs ::= OPENP ifexprs CLOSEP", /* 117 */ "ifexpr ::= expr", /* 118 */ "ifexpr ::= expr ifcond expr", /* 119 */ "ifexpr ::= expr ISIN array", /* 120 */ "ifexpr ::= expr ISIN value", /* 121 */ "ifexpr ::= ifexprs lop ifexprs", /* 122 */ "ifexpr ::= ifexprs ISDIVBY ifexprs", /* 123 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs", /* 124 */ "ifexpr ::= ifexprs ISEVEN", /* 125 */ "ifexpr ::= ifexprs ISNOTEVEN", /* 126 */ "ifexpr ::= ifexprs ISEVENBY ifexprs", /* 127 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs", /* 128 */ "ifexpr ::= ifexprs ISODD", /* 129 */ "ifexpr ::= ifexprs ISNOTODD", /* 130 */ "ifexpr ::= ifexprs ISODDBY ifexprs", /* 131 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs", /* 132 */ "ifexpr ::= value INSTANCEOF ID", /* 133 */ "ifexpr ::= value INSTANCEOF value", /* 134 */ "ifcond ::= EQUALS", /* 135 */ "ifcond ::= NOTEQUALS", /* 136 */ "ifcond ::= GREATERTHAN", /* 137 */ "ifcond ::= LESSTHAN", /* 138 */ "ifcond ::= GREATEREQUAL", /* 139 */ "ifcond ::= LESSEQUAL", /* 140 */ "ifcond ::= IDENTITY", /* 141 */ "ifcond ::= NONEIDENTITY", /* 142 */ "lop ::= LAND", /* 143 */ "lop ::= LOR", /* 144 */ "lop ::= LXOR", /* 145 */ "array ::= OPENB arrayelements CLOSEB", /* 146 */ "arrayelements ::= arrayelement", /* 147 */ "arrayelements ::= arrayelements COMMA arrayelement", /* 148 */ "arrayelements ::=", /* 149 */ "arrayelement ::= expr APTR expr", /* 150 */ "arrayelement ::= ID APTR expr", /* 151 */ "arrayelement ::= expr", /* 152 */ "doublequoted ::= doublequoted doublequotedcontent", /* 153 */ "doublequoted ::= doublequotedcontent", /* 154 */ "doublequotedcontent ::= BACKTICK ID BACKTICK", /* 155 */ "doublequotedcontent ::= BACKTICK variable BACKTICK", /* 156 */ "doublequotedcontent ::= DOLLAR ID", /* 157 */ "doublequotedcontent ::= LDEL expr RDEL", /* 158 */ "doublequotedcontent ::= LDEL smartytag RDEL", /* 159 */ "doublequotedcontent ::= DOLLAR OTHER", /* 160 */ "doublequotedcontent ::= LDEL OTHER", /* 161 */ "doublequotedcontent ::= BACKTICK OTHER", /* 162 */ "doublequotedcontent ::= OTHER", /* 163 */ "text ::= text textelement", /* 164 */ "text ::= textelement", /* 165 */ "textelement ::= OTHER", /* 166 */ "textelement ::= LDEL", ); /** * This function returns the symbolic name associated with a token * value. * @param int * @return string */ function tokenName($tokenType) { if ($tokenType === 0) { return 'End of Input'; } if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) { return $this->yyTokenName[$tokenType]; } else { return "Unknown"; } } /** * The following function deletes the value associated with a * symbol. The symbol can be either a terminal or nonterminal. * @param int the symbol code * @param mixed the symbol's value */ static function yy_destructor($yymajor, $yypminor) { switch ($yymajor) { /* Here is inserted the actions which take place when a ** terminal or non-terminal is destroyed. This can happen ** when the symbol is popped from the stack during a ** reduce or during error processing or when a parser is ** being destroyed before it is finished parsing. ** ** Note: during a reduce, the only symbols destroyed are those ** which appear on the RHS of the rule, but which are not used ** inside the C code. */ default: break; /* If no destructor action specified: do nothing */ } } /** * Pop the parser's stack once. * * If there is a destructor routine associated with the token which * is popped from the stack, then call it. * * Return the major token number for the symbol popped. * @param TP_yyParser * @return int */ function yy_pop_parser_stack() { if (!count($this->yystack)) { return; } $yytos = array_pop($this->yystack); if (self::$yyTraceFILE && $this->yyidx >= 0) { fwrite(self::$yyTraceFILE, self::$yyTracePrompt . 'Popping ' . $this->yyTokenName[$yytos->major] . "\n"); } $yymajor = $yytos->major; self::yy_destructor($yymajor, $yytos->minor); $this->yyidx--; return $yymajor; } /** * Deallocate and destroy a parser. Destructors are all called for * all stack elements before shutting the parser down. */ function __destruct() { while ($this->yyidx >= 0) { $this->yy_pop_parser_stack(); } if (is_resource(self::$yyTraceFILE)) { fclose(self::$yyTraceFILE); } } /** * Based on the current state and parser stack, get a list of all * possible lookahead tokens * @param int * @return array */ function yy_get_expected_tokens($token) { $state = $this->yystack[$this->yyidx]->stateno; $expected = self::$yyExpectedTokens[$state]; if (in_array($token, self::$yyExpectedTokens[$state], true)) { return $expected; } $stack = $this->yystack; $yyidx = $this->yyidx; do { $yyact = $this->yy_find_shift_action($token); if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { // reduce action $done = 0; do { if ($done++ == 100) { $this->yyidx = $yyidx; $this->yystack = $stack; // too much recursion prevents proper detection // so give up return array_unique($expected); } $yyruleno = $yyact - self::YYNSTATE; $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; $nextstate = $this->yy_find_reduce_action( $this->yystack[$this->yyidx]->stateno, self::$yyRuleInfo[$yyruleno]['lhs']); if (isset(self::$yyExpectedTokens[$nextstate])) { $expected += self::$yyExpectedTokens[$nextstate]; if (in_array($token, self::$yyExpectedTokens[$nextstate], true)) { $this->yyidx = $yyidx; $this->yystack = $stack; return array_unique($expected); } } if ($nextstate < self::YYNSTATE) { // we need to shift a non-terminal $this->yyidx++; $x = new TP_yyStackEntry; $x->stateno = $nextstate; $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; $this->yystack[$this->yyidx] = $x; continue 2; } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { $this->yyidx = $yyidx; $this->yystack = $stack; // the last token was just ignored, we can't accept // by ignoring input, this is in essence ignoring a // syntax error! return array_unique($expected); } elseif ($nextstate === self::YY_NO_ACTION) { $this->yyidx = $yyidx; $this->yystack = $stack; // input accepted, but not shifted (I guess) return $expected; } else { $yyact = $nextstate; } } while (true); } break; } while (true); return array_unique($expected); } /** * Based on the parser state and current parser stack, determine whether * the lookahead token is possible. * * The parser will convert the token value to an error token if not. This * catches some unusual edge cases where the parser would fail. * @param int * @return bool */ function yy_is_expected_token($token) { if ($token === 0) { return true; // 0 is not part of this } $state = $this->yystack[$this->yyidx]->stateno; if (in_array($token, self::$yyExpectedTokens[$state], true)) { return true; } $stack = $this->yystack; $yyidx = $this->yyidx; do { $yyact = $this->yy_find_shift_action($token); if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { // reduce action $done = 0; do { if ($done++ == 100) { $this->yyidx = $yyidx; $this->yystack = $stack; // too much recursion prevents proper detection // so give up return true; } $yyruleno = $yyact - self::YYNSTATE; $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; $nextstate = $this->yy_find_reduce_action( $this->yystack[$this->yyidx]->stateno, self::$yyRuleInfo[$yyruleno]['lhs']); if (isset(self::$yyExpectedTokens[$nextstate]) && in_array($token, self::$yyExpectedTokens[$nextstate], true)) { $this->yyidx = $yyidx; $this->yystack = $stack; return true; } if ($nextstate < self::YYNSTATE) { // we need to shift a non-terminal $this->yyidx++; $x = new TP_yyStackEntry; $x->stateno = $nextstate; $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; $this->yystack[$this->yyidx] = $x; continue 2; } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { $this->yyidx = $yyidx; $this->yystack = $stack; if (!$token) { // end of input: this is valid return true; } // the last token was just ignored, we can't accept // by ignoring input, this is in essence ignoring a // syntax error! return false; } elseif ($nextstate === self::YY_NO_ACTION) { $this->yyidx = $yyidx; $this->yystack = $stack; // input accepted, but not shifted (I guess) return true; } else { $yyact = $nextstate; } } while (true); } break; } while (true); $this->yyidx = $yyidx; $this->yystack = $stack; return true; } /** * Find the appropriate action for a parser given the terminal * look-ahead token iLookAhead. * * If the look-ahead token is YYNOCODE, then check to see if the action is * independent of the look-ahead. If it is, return the action, otherwise * return YY_NO_ACTION. * @param int The look-ahead token */ function yy_find_shift_action($iLookAhead) { $stateno = $this->yystack[$this->yyidx]->stateno; /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */ if (!isset(self::$yy_shift_ofst[$stateno])) { // no shift actions return self::$yy_default[$stateno]; } $i = self::$yy_shift_ofst[$stateno]; if ($i === self::YY_SHIFT_USE_DFLT) { return self::$yy_default[$stateno]; } if ($iLookAhead == self::YYNOCODE) { return self::YY_NO_ACTION; } $i += $iLookAhead; if ($i < 0 || $i >= self::YY_SZ_ACTTAB || self::$yy_lookahead[$i] != $iLookAhead) { if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) && ($iFallback = self::$yyFallback[$iLookAhead]) != 0) { if (self::$yyTraceFILE) { fwrite(self::$yyTraceFILE, self::$yyTracePrompt . "FALLBACK " . $this->yyTokenName[$iLookAhead] . " => " . $this->yyTokenName[$iFallback] . "\n"); } return $this->yy_find_shift_action($iFallback); } return self::$yy_default[$stateno]; } else { return self::$yy_action[$i]; } } /** * Find the appropriate action for a parser given the non-terminal * look-ahead token $iLookAhead. * * If the look-ahead token is self::YYNOCODE, then check to see if the action is * independent of the look-ahead. If it is, return the action, otherwise * return self::YY_NO_ACTION. * @param int Current state number * @param int The look-ahead token */ function yy_find_reduce_action($stateno, $iLookAhead) { /* $stateno = $this->yystack[$this->yyidx]->stateno; */ if (!isset(self::$yy_reduce_ofst[$stateno])) { return self::$yy_default[$stateno]; } $i = self::$yy_reduce_ofst[$stateno]; if ($i == self::YY_REDUCE_USE_DFLT) { return self::$yy_default[$stateno]; } if ($iLookAhead == self::YYNOCODE) { return self::YY_NO_ACTION; } $i += $iLookAhead; if ($i < 0 || $i >= self::YY_SZ_ACTTAB || self::$yy_lookahead[$i] != $iLookAhead) { return self::$yy_default[$stateno]; } else { return self::$yy_action[$i]; } } /** * Perform a shift action. * @param int The new state to shift in * @param int The major token to shift in * @param mixed the minor token to shift in */ function yy_shift($yyNewState, $yyMajor, $yypMinor) { $this->yyidx++; if ($this->yyidx >= self::YYSTACKDEPTH) { $this->yyidx--; if (self::$yyTraceFILE) { fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt); } while ($this->yyidx >= 0) { $this->yy_pop_parser_stack(); } /* Here code is inserted which will execute if the parser ** stack ever overflows */ return; } $yytos = new TP_yyStackEntry; $yytos->stateno = $yyNewState; $yytos->major = $yyMajor; $yytos->minor = $yypMinor; array_push($this->yystack, $yytos); if (self::$yyTraceFILE && $this->yyidx > 0) { fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt, $yyNewState); fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt); for($i = 1; $i <= $this->yyidx; $i++) { fprintf(self::$yyTraceFILE, " %s", $this->yyTokenName[$this->yystack[$i]->major]); } fwrite(self::$yyTraceFILE,"\n"); } } /** * The following table contains information about every rule that * is used during the reduce. * *
     * array(
     *  array(
     *   int $lhs;         Symbol on the left-hand side of the rule
     *   int $nrhs;     Number of right-hand side symbols in the rule
     *  ),...
     * );
     * 
*/ static public $yyRuleInfo = array( array( 'lhs' => 72, 'rhs' => 1 ), array( 'lhs' => 73, 'rhs' => 1 ), array( 'lhs' => 73, 'rhs' => 2 ), array( 'lhs' => 74, 'rhs' => 3 ), array( 'lhs' => 74, 'rhs' => 3 ), array( 'lhs' => 74, 'rhs' => 3 ), array( 'lhs' => 74, 'rhs' => 3 ), array( 'lhs' => 74, 'rhs' => 3 ), array( 'lhs' => 74, 'rhs' => 1 ), array( 'lhs' => 74, 'rhs' => 1 ), array( 'lhs' => 74, 'rhs' => 3 ), array( 'lhs' => 74, 'rhs' => 4 ), array( 'lhs' => 74, 'rhs' => 1 ), array( 'lhs' => 74, 'rhs' => 1 ), array( 'lhs' => 74, 'rhs' => 1 ), array( 'lhs' => 77, 'rhs' => 2 ), array( 'lhs' => 77, 'rhs' => 2 ), array( 'lhs' => 77, 'rhs' => 2 ), array( 'lhs' => 75, 'rhs' => 4 ), array( 'lhs' => 75, 'rhs' => 4 ), array( 'lhs' => 75, 'rhs' => 2 ), array( 'lhs' => 75, 'rhs' => 4 ), array( 'lhs' => 75, 'rhs' => 4 ), array( 'lhs' => 75, 'rhs' => 3 ), array( 'lhs' => 75, 'rhs' => 3 ), array( 'lhs' => 75, 'rhs' => 9 ), array( 'lhs' => 90, 'rhs' => 2 ), array( 'lhs' => 90, 'rhs' => 1 ), array( 'lhs' => 75, 'rhs' => 6 ), array( 'lhs' => 75, 'rhs' => 6 ), array( 'lhs' => 76, 'rhs' => 2 ), array( 'lhs' => 76, 'rhs' => 4 ), array( 'lhs' => 76, 'rhs' => 3 ), array( 'lhs' => 80, 'rhs' => 2 ), array( 'lhs' => 80, 'rhs' => 1 ), array( 'lhs' => 80, 'rhs' => 0 ), array( 'lhs' => 93, 'rhs' => 4 ), array( 'lhs' => 93, 'rhs' => 4 ), array( 'lhs' => 93, 'rhs' => 2 ), array( 'lhs' => 88, 'rhs' => 1 ), array( 'lhs' => 88, 'rhs' => 3 ), array( 'lhs' => 87, 'rhs' => 4 ), array( 'lhs' => 81, 'rhs' => 1 ), array( 'lhs' => 81, 'rhs' => 1 ), array( 'lhs' => 81, 'rhs' => 4 ), array( 'lhs' => 81, 'rhs' => 3 ), array( 'lhs' => 94, 'rhs' => 1 ), array( 'lhs' => 94, 'rhs' => 2 ), array( 'lhs' => 94, 'rhs' => 3 ), array( 'lhs' => 94, 'rhs' => 1 ), array( 'lhs' => 82, 'rhs' => 7 ), array( 'lhs' => 82, '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' => 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' => 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' => 3 ), array( 'lhs' => 79, 'rhs' => 1 ), array( 'lhs' => 79, 'rhs' => 4 ), array( 'lhs' => 79, 'rhs' => 1 ), array( 'lhs' => 79, 'rhs' => 3 ), array( 'lhs' => 79, 'rhs' => 3 ), array( 'lhs' => 83, 'rhs' => 3 ), array( 'lhs' => 101, 'rhs' => 2 ), array( 'lhs' => 101, 'rhs' => 0 ), array( 'lhs' => 103, 'rhs' => 2 ), array( 'lhs' => 103, 'rhs' => 2 ), array( 'lhs' => 103, 'rhs' => 2 ), array( 'lhs' => 103, 'rhs' => 4 ), array( 'lhs' => 103, 'rhs' => 3 ), array( 'lhs' => 103, 'rhs' => 5 ), array( 'lhs' => 103, 'rhs' => 3 ), array( 'lhs' => 103, 'rhs' => 2 ), array( 'lhs' => 89, 'rhs' => 1 ), array( 'lhs' => 89, 'rhs' => 2 ), array( 'lhs' => 104, 'rhs' => 1 ), array( 'lhs' => 104, 'rhs' => 3 ), array( 'lhs' => 102, 'rhs' => 2 ), array( 'lhs' => 100, 'rhs' => 1 ), array( 'lhs' => 100, 'rhs' => 2 ), array( 'lhs' => 105, 'rhs' => 3 ), array( 'lhs' => 105, 'rhs' => 3 ), array( 'lhs' => 105, 'rhs' => 5 ), array( 'lhs' => 105, 'rhs' => 6 ), array( 'lhs' => 105, 'rhs' => 2 ), array( 'lhs' => 96, 'rhs' => 4 ), array( 'lhs' => 98, 'rhs' => 4 ), array( 'lhs' => 99, 'rhs' => 3 ), array( 'lhs' => 99, 'rhs' => 1 ), array( 'lhs' => 99, 'rhs' => 0 ), array( 'lhs' => 84, 'rhs' => 3 ), array( 'lhs' => 84, 'rhs' => 2 ), array( 'lhs' => 85, 'rhs' => 2 ), array( 'lhs' => 85, 'rhs' => 0 ), array( 'lhs' => 106, 'rhs' => 2 ), array( 'lhs' => 106, 'rhs' => 2 ), array( 'lhs' => 86, 'rhs' => 1 ), array( 'lhs' => 86, 'rhs' => 2 ), array( 'lhs' => 86, 'rhs' => 3 ), array( 'lhs' => 107, 'rhs' => 1 ), array( 'lhs' => 107, 'rhs' => 3 ), array( 'lhs' => 107, 'rhs' => 3 ), array( 'lhs' => 107, 'rhs' => 3 ), array( 'lhs' => 107, 'rhs' => 3 ), array( 'lhs' => 107, 'rhs' => 3 ), array( 'lhs' => 107, 'rhs' => 3 ), array( 'lhs' => 107, 'rhs' => 2 ), array( 'lhs' => 107, 'rhs' => 2 ), array( 'lhs' => 107, 'rhs' => 3 ), array( 'lhs' => 107, 'rhs' => 3 ), array( 'lhs' => 107, 'rhs' => 2 ), array( 'lhs' => 107, 'rhs' => 2 ), array( 'lhs' => 107, 'rhs' => 3 ), array( 'lhs' => 107, 'rhs' => 3 ), array( 'lhs' => 107, 'rhs' => 3 ), array( 'lhs' => 107, 'rhs' => 3 ), array( 'lhs' => 108, 'rhs' => 1 ), array( 'lhs' => 108, 'rhs' => 1 ), array( 'lhs' => 108, 'rhs' => 1 ), array( 'lhs' => 108, 'rhs' => 1 ), array( 'lhs' => 108, 'rhs' => 1 ), array( 'lhs' => 108, 'rhs' => 1 ), array( 'lhs' => 108, 'rhs' => 1 ), array( 'lhs' => 108, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 109, 'rhs' => 1 ), array( 'lhs' => 92, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 1 ), array( 'lhs' => 110, 'rhs' => 3 ), array( 'lhs' => 110, 'rhs' => 0 ), array( 'lhs' => 111, 'rhs' => 3 ), array( 'lhs' => 111, 'rhs' => 3 ), array( 'lhs' => 111, 'rhs' => 1 ), array( 'lhs' => 97, 'rhs' => 2 ), array( 'lhs' => 97, 'rhs' => 1 ), array( 'lhs' => 112, 'rhs' => 3 ), array( 'lhs' => 112, 'rhs' => 3 ), array( 'lhs' => 112, 'rhs' => 2 ), array( 'lhs' => 112, 'rhs' => 3 ), array( 'lhs' => 112, 'rhs' => 3 ), array( 'lhs' => 112, 'rhs' => 2 ), array( 'lhs' => 112, 'rhs' => 2 ), array( 'lhs' => 112, 'rhs' => 2 ), array( 'lhs' => 112, 'rhs' => 1 ), array( 'lhs' => 78, 'rhs' => 2 ), array( 'lhs' => 78, 'rhs' => 1 ), array( 'lhs' => 113, 'rhs' => 1 ), array( 'lhs' => 113, '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, 57 => 0, 59 => 0, 60 => 0, 61 => 0, 77 => 0, 146 => 0, 1 => 1, 43 => 1, 49 => 1, 52 => 1, 53 => 1, 91 => 1, 114 => 1, 153 => 1, 162 => 1, 164 => 1, 165 => 1, 166 => 1, 2 => 2, 81 => 2, 152 => 2, 160 => 2, 163 => 2, 3 => 3, 4 => 4, 5 => 4, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 11 => 11, 12 => 12, 13 => 13, 14 => 14, 15 => 15, 16 => 15, 17 => 15, 18 => 18, 19 => 18, 20 => 20, 21 => 21, 22 => 22, 23 => 23, 24 => 24, 25 => 25, 26 => 26, 27 => 27, 34 => 27, 106 => 27, 151 => 27, 28 => 28, 29 => 29, 30 => 30, 31 => 31, 32 => 32, 33 => 33, 35 => 35, 36 => 36, 37 => 36, 38 => 38, 39 => 39, 40 => 40, 41 => 41, 42 => 42, 44 => 44, 45 => 45, 47 => 47, 56 => 47, 48 => 48, 50 => 50, 51 => 50, 54 => 54, 58 => 58, 62 => 62, 63 => 63, 64 => 64, 66 => 64, 65 => 65, 67 => 67, 68 => 68, 69 => 69, 70 => 70, 71 => 71, 72 => 72, 73 => 73, 74 => 74, 75 => 75, 76 => 76, 78 => 78, 79 => 79, 80 => 80, 82 => 82, 111 => 82, 83 => 83, 84 => 84, 85 => 85, 86 => 86, 89 => 86, 87 => 87, 88 => 88, 90 => 90, 92 => 92, 93 => 93, 94 => 94, 116 => 94, 95 => 95, 96 => 96, 97 => 97, 98 => 98, 99 => 99, 100 => 100, 101 => 101, 102 => 102, 103 => 103, 104 => 104, 105 => 105, 107 => 107, 108 => 108, 109 => 109, 110 => 110, 112 => 112, 113 => 113, 115 => 115, 117 => 117, 118 => 118, 121 => 118, 132 => 118, 119 => 119, 120 => 120, 122 => 122, 123 => 123, 124 => 124, 129 => 124, 125 => 125, 128 => 125, 126 => 126, 131 => 126, 127 => 127, 130 => 127, 133 => 133, 134 => 134, 135 => 135, 136 => 136, 137 => 137, 138 => 138, 139 => 139, 140 => 140, 141 => 141, 142 => 142, 143 => 143, 144 => 144, 145 => 145, 147 => 147, 148 => 148, 149 => 149, 150 => 150, 154 => 154, 155 => 155, 156 => 156, 157 => 157, 158 => 158, 159 => 159, 161 => 161, ); /* Beginning here are the reduction cases. A typical example ** follows: ** #line ** function yy_r0($yymsp){ ... } // User supplied code ** #line */ #line 79 "internal.templateparser.y" function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 1991 "internal.templateparser.php" #line 85 "internal.templateparser.y" function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 1994 "internal.templateparser.php" #line 87 "internal.templateparser.y" function yy_r2(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 1997 "internal.templateparser.php" #line 93 "internal.templateparser.y" function yy_r3(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); if ($this->compiler->has_code) { $tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array(); $this->_retvalue = $this->cacher->processNocacheCode($tmp.$s[0].$this->yystack[$this->yyidx + -1]->minor, $this->compiler,true); } else { $this->_retvalue = $s[0].$this->yystack[$this->yyidx + -1]->minor;} $this->compiler->has_variable_string = false; } #line 2004 "internal.templateparser.php" #line 99 "internal.templateparser.y" function yy_r4(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); if ($this->compiler->has_code) { $tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array(); $this->_retvalue = $this->cacher->processNocacheCode($tmp.$s[0].$this->yystack[$this->yyidx + -1]->minor, $this->compiler,true); } else { $this->_retvalue = $s[0].$this->yystack[$this->yyidx + -1]->minor;} $this->compiler->has_variable_string = false; } #line 2011 "internal.templateparser.php" #line 111 "internal.templateparser.y" function yy_r6(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0]; } #line 2014 "internal.templateparser.php" #line 114 "internal.templateparser.y" function yy_r7(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s2); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->yystack[$this->yyidx + -1]->minor.$s2[0], $this->compiler,false); } #line 2017 "internal.templateparser.php" #line 116 "internal.templateparser.y" function yy_r8(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->smarty->left_delimiter, $this->compiler,false); } #line 2020 "internal.templateparser.php" #line 118 "internal.templateparser.y" function yy_r9(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->smarty->right_delimiter, $this->compiler,false); } #line 2023 "internal.templateparser.php" #line 120 "internal.templateparser.y" function yy_r10(){if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU) { $this->_retvalue = $this->cacher->processNocacheCode("yystack[$this->yyidx + -1]->minor)."?>', ENT_QUOTES);?>\n", $this->compiler, false); } elseif ($this->sec_obj->php_handling == SMARTY_PHP_QUOTE) { $this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('yystack[$this->yyidx + -1]->minor.'?>', ENT_QUOTES), $this->compiler, false); }elseif ($this->sec_obj->php_handling == SMARTY_PHP_ALLOW) { $this->_retvalue = $this->cacher->processNocacheCode('yystack[$this->yyidx + -1]->minor.'?>', $this->compiler, true); }elseif ($this->sec_obj->php_handling == SMARTY_PHP_REMOVE) { $this->_retvalue = ''; } } #line 2035 "internal.templateparser.php" #line 131 "internal.templateparser.y" function yy_r11(){preg_match('/\s*/',$this->yystack[$this->yyidx + -3]->minor,$s); $this->_retvalue = $s[0]; if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU || $this->sec_obj->php_handling == SMARTY_PHP_ALLOW) { $this->_retvalue .= $this->cacher->processNocacheCode("yystack[$this->yyidx + -1]->minor."?>'?>\n", $this->compiler, false); } 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 2046 "internal.templateparser.php" #line 142 "internal.templateparser.y" function yy_r12(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->compiler->tag_nocache = true; $this->_retvalue = $s[0].$this->cacher->processNocacheCode("", $this->compiler, true); } #line 2049 "internal.templateparser.php" #line 143 "internal.templateparser.y" function yy_r13(){$this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("';?>\n", $this->compiler, true); } #line 2052 "internal.templateparser.php" #line 146 "internal.templateparser.y" function yy_r14(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false); } #line 2055 "internal.templateparser.php" #line 153 "internal.templateparser.y" function yy_r15(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); } #line 2058 "internal.templateparser.php" #line 163 "internal.templateparser.y" function yy_r18(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor)); } #line 2061 "internal.templateparser.php" #line 166 "internal.templateparser.y" function yy_r20(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } #line 2064 "internal.templateparser.php" #line 168 "internal.templateparser.y" function yy_r21(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); } #line 2067 "internal.templateparser.php" #line 170 "internal.templateparser.y" function yy_r22(){ $this->_retvalue = ''.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor).'smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -2]->minor[0],'modifier')) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>"; } else { if (is_callable($this->yystack[$this->yyidx + -2]->minor[0])) { if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -2]->minor[0], $this->compiler)) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>"; } } else { $this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -2]->minor[0] . "\""); } } } #line 2082 "internal.templateparser.php" #line 184 "internal.templateparser.y" function yy_r23(){if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -2]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2088 "internal.templateparser.php" #line 188 "internal.templateparser.y" function yy_r24(){ if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -2]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2094 "internal.templateparser.php" #line 193 "internal.templateparser.y" function yy_r25(){ if ($this->yystack[$this->yyidx + -8]->minor != 'for') { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -8]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -8]->minor,array('start'=>$this->yystack[$this->yyidx + -6]->minor,'ifexp'=>$this->yystack[$this->yyidx + -4]->minor,'varloop'=>$this->yystack[$this->yyidx + -1]->minor,'loop'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2101 "internal.templateparser.php" #line 198 "internal.templateparser.y" function yy_r26(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; } #line 2104 "internal.templateparser.php" #line 199 "internal.templateparser.y" function yy_r27(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2107 "internal.templateparser.php" #line 201 "internal.templateparser.y" function yy_r28(){ if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2114 "internal.templateparser.php" #line 206 "internal.templateparser.y" function yy_r29(){ if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') { $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\""); } $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2121 "internal.templateparser.php" #line 213 "internal.templateparser.y" function yy_r30(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',$this->yystack[$this->yyidx + 0]->minor); } #line 2124 "internal.templateparser.php" #line 214 "internal.templateparser.y" function yy_r31(){ $this->_retvalue = ''.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',$this->yystack[$this->yyidx + 0]->minor).'smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -2]->minor[0],'modifier')) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>"; } else { if (is_callable($this->yystack[$this->yyidx + -2]->minor[0])) { if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -2]->minor[0], $this->compiler)) { $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>"; } } else { $this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -2]->minor[0] . "\""); } } } #line 2139 "internal.templateparser.php" #line 228 "internal.templateparser.y" function yy_r32(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + 0]->minor)); } #line 2142 "internal.templateparser.php" #line 235 "internal.templateparser.y" function yy_r33(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } #line 2145 "internal.templateparser.php" #line 239 "internal.templateparser.y" function yy_r35(){ $this->_retvalue = array(); } #line 2148 "internal.templateparser.php" #line 242 "internal.templateparser.y" function yy_r36(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); } #line 2151 "internal.templateparser.php" #line 244 "internal.templateparser.y" function yy_r38(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); } #line 2154 "internal.templateparser.php" #line 249 "internal.templateparser.y" function yy_r39(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } #line 2157 "internal.templateparser.php" #line 250 "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 2160 "internal.templateparser.php" #line 252 "internal.templateparser.y" function yy_r41(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); } #line 2163 "internal.templateparser.php" #line 258 "internal.templateparser.y" function yy_r42(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2166 "internal.templateparser.php" #line 261 "internal.templateparser.y" function yy_r44(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; } #line 2169 "internal.templateparser.php" #line 262 "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 2184 "internal.templateparser.php" #line 279 "internal.templateparser.y" function yy_r47(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2187 "internal.templateparser.php" #line 281 "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 2190 "internal.templateparser.php" #line 288 "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 2193 "internal.templateparser.php" #line 302 "internal.templateparser.y" function yy_r54(){$this->_retvalue = ' & '; } #line 2196 "internal.templateparser.php" #line 309 "internal.templateparser.y" function yy_r58(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } #line 2199 "internal.templateparser.php" #line 317 "internal.templateparser.y" function yy_r62(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; } #line 2202 "internal.templateparser.php" #line 319 "internal.templateparser.y" function yy_r63(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; } #line 2205 "internal.templateparser.php" #line 320 "internal.templateparser.y" function yy_r64(){ $this->_retvalue = "''"; } #line 2208 "internal.templateparser.php" #line 322 "internal.templateparser.y" function yy_r65(){ $this->_retvalue = '"'.$this->yystack[$this->yyidx + -1]->minor.'"'; } #line 2211 "internal.templateparser.php" #line 325 "internal.templateparser.y" function yy_r67(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } #line 2214 "internal.templateparser.php" #line 326 "internal.templateparser.y" function yy_r68(){ $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 2217 "internal.templateparser.php" #line 328 "internal.templateparser.y" function yy_r69(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2220 "internal.templateparser.php" #line 329 "internal.templateparser.y" function yy_r70(){ $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 2223 "internal.templateparser.php" #line 331 "internal.templateparser.y" function yy_r71(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; } #line 2226 "internal.templateparser.php" #line 333 "internal.templateparser.y" function yy_r72(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2229 "internal.templateparser.php" #line 335 "internal.templateparser.y" function yy_r73(){ $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 2232 "internal.templateparser.php" #line 337 "internal.templateparser.y" function yy_r74(){ $this->prefix_number++; $this->compiler->prefix_code[] = ''.$this->yystack[$this->yyidx + -1]->minor.'prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; } #line 2235 "internal.templateparser.php" #line 346 "internal.templateparser.y" function yy_r75(){if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('internal_smarty_var',$this->yystack[$this->yyidx + 0]->minor['index']);} else { $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor['var'] .')->value'.$this->yystack[$this->yyidx + 0]->minor['index']; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor['var'],"'"))->nocache;} } #line 2239 "internal.templateparser.php" #line 349 "internal.templateparser.y" function yy_r76(){ $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 2242 "internal.templateparser.php" #line 353 "internal.templateparser.y" function yy_r78(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; } #line 2245 "internal.templateparser.php" #line 354 "internal.templateparser.y" function yy_r79(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; } #line 2248 "internal.templateparser.php" #line 357 "internal.templateparser.y" function yy_r80(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); } #line 2251 "internal.templateparser.php" #line 365 "internal.templateparser.y" function yy_r82(){return; } #line 2254 "internal.templateparser.php" #line 369 "internal.templateparser.y" function yy_r83(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; } #line 2257 "internal.templateparser.php" #line 370 "internal.templateparser.y" function yy_r84(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; } #line 2260 "internal.templateparser.php" #line 371 "internal.templateparser.y" function yy_r85(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; } #line 2263 "internal.templateparser.php" #line 372 "internal.templateparser.y" function yy_r86(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; } #line 2266 "internal.templateparser.php" #line 374 "internal.templateparser.y" function yy_r87(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; } #line 2269 "internal.templateparser.php" #line 375 "internal.templateparser.y" function yy_r88(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; } #line 2272 "internal.templateparser.php" #line 379 "internal.templateparser.y" function yy_r90(){$this->_retvalue = ''; } #line 2275 "internal.templateparser.php" #line 387 "internal.templateparser.y" function yy_r92(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } #line 2278 "internal.templateparser.php" #line 389 "internal.templateparser.y" function yy_r93(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2281 "internal.templateparser.php" #line 391 "internal.templateparser.y" function yy_r94(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2284 "internal.templateparser.php" #line 396 "internal.templateparser.y" function yy_r95(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('internal_smarty_var',$this->yystack[$this->yyidx + -1]->minor['index']).$this->yystack[$this->yyidx + 0]->minor;} else { $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -1]->minor['var'] .')->value'.$this->yystack[$this->yyidx + -1]->minor['index'].$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"))->nocache;} } #line 2288 "internal.templateparser.php" #line 399 "internal.templateparser.y" function yy_r96(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } #line 2291 "internal.templateparser.php" #line 401 "internal.templateparser.y" function yy_r97(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2294 "internal.templateparser.php" #line 403 "internal.templateparser.y" function yy_r98(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2297 "internal.templateparser.php" #line 404 "internal.templateparser.y" function yy_r99(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2300 "internal.templateparser.php" #line 405 "internal.templateparser.y" function yy_r100(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2303 "internal.templateparser.php" #line 406 "internal.templateparser.y" function yy_r101(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2306 "internal.templateparser.php" #line 408 "internal.templateparser.y" function yy_r102(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; } #line 2309 "internal.templateparser.php" #line 414 "internal.templateparser.y" function yy_r103(){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 2318 "internal.templateparser.php" #line 425 "internal.templateparser.y" function yy_r104(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; } #line 2321 "internal.templateparser.php" #line 429 "internal.templateparser.y" function yy_r105(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; } #line 2324 "internal.templateparser.php" #line 433 "internal.templateparser.y" function yy_r107(){ return; } #line 2327 "internal.templateparser.php" #line 438 "internal.templateparser.y" function yy_r108(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); } #line 2330 "internal.templateparser.php" #line 439 "internal.templateparser.y" function yy_r109(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); } #line 2333 "internal.templateparser.php" #line 451 "internal.templateparser.y" function yy_r110(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2336 "internal.templateparser.php" #line 455 "internal.templateparser.y" function yy_r112(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; } #line 2339 "internal.templateparser.php" #line 456 "internal.templateparser.y" function yy_r113(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } #line 2342 "internal.templateparser.php" #line 463 "internal.templateparser.y" function yy_r115(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; } #line 2345 "internal.templateparser.php" #line 468 "internal.templateparser.y" function yy_r117(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; } #line 2348 "internal.templateparser.php" #line 470 "internal.templateparser.y" function yy_r118(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } #line 2351 "internal.templateparser.php" #line 471 "internal.templateparser.y" function yy_r119(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2354 "internal.templateparser.php" #line 472 "internal.templateparser.y" function yy_r120(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2357 "internal.templateparser.php" #line 474 "internal.templateparser.y" function yy_r122(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2360 "internal.templateparser.php" #line 475 "internal.templateparser.y" function yy_r123(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2363 "internal.templateparser.php" #line 476 "internal.templateparser.y" function yy_r124(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2366 "internal.templateparser.php" #line 477 "internal.templateparser.y" function yy_r125(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2369 "internal.templateparser.php" #line 478 "internal.templateparser.y" function yy_r126(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2372 "internal.templateparser.php" #line 479 "internal.templateparser.y" function yy_r127(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; } #line 2375 "internal.templateparser.php" #line 485 "internal.templateparser.y" function yy_r133(){$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 2378 "internal.templateparser.php" #line 487 "internal.templateparser.y" function yy_r134(){$this->_retvalue = '=='; } #line 2381 "internal.templateparser.php" #line 488 "internal.templateparser.y" function yy_r135(){$this->_retvalue = '!='; } #line 2384 "internal.templateparser.php" #line 489 "internal.templateparser.y" function yy_r136(){$this->_retvalue = '>'; } #line 2387 "internal.templateparser.php" #line 490 "internal.templateparser.y" function yy_r137(){$this->_retvalue = '<'; } #line 2390 "internal.templateparser.php" #line 491 "internal.templateparser.y" function yy_r138(){$this->_retvalue = '>='; } #line 2393 "internal.templateparser.php" #line 492 "internal.templateparser.y" function yy_r139(){$this->_retvalue = '<='; } #line 2396 "internal.templateparser.php" #line 493 "internal.templateparser.y" function yy_r140(){$this->_retvalue = '==='; } #line 2399 "internal.templateparser.php" #line 494 "internal.templateparser.y" function yy_r141(){$this->_retvalue = '!=='; } #line 2402 "internal.templateparser.php" #line 496 "internal.templateparser.y" function yy_r142(){$this->_retvalue = '&&'; } #line 2405 "internal.templateparser.php" #line 497 "internal.templateparser.y" function yy_r143(){$this->_retvalue = '||'; } #line 2408 "internal.templateparser.php" #line 498 "internal.templateparser.y" function yy_r144(){$this->_retvalue = ' XOR '; } #line 2411 "internal.templateparser.php" #line 503 "internal.templateparser.y" function yy_r145(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; } #line 2414 "internal.templateparser.php" #line 505 "internal.templateparser.y" function yy_r147(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; } #line 2417 "internal.templateparser.php" #line 506 "internal.templateparser.y" function yy_r148(){ return; } #line 2420 "internal.templateparser.php" #line 507 "internal.templateparser.y" function yy_r149(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; } #line 2423 "internal.templateparser.php" #line 508 "internal.templateparser.y" function yy_r150(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; } #line 2426 "internal.templateparser.php" #line 517 "internal.templateparser.y" function yy_r154(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; } #line 2429 "internal.templateparser.php" #line 518 "internal.templateparser.y" function yy_r155(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; $this->compiler->has_variable_string = true; } #line 2432 "internal.templateparser.php" #line 519 "internal.templateparser.y" function yy_r156(){$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 2435 "internal.templateparser.php" #line 520 "internal.templateparser.y" function yy_r157(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0].'".('.$this->yystack[$this->yyidx + -1]->minor.')."'; $this->compiler->has_variable_string = true; } #line 2438 "internal.templateparser.php" #line 521 "internal.templateparser.y" function yy_r158(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->prefix_number++; $this->compiler->prefix_code[] = ''.$this->yystack[$this->yyidx + -1]->minor.'prefix_number.'=ob_get_clean();?>'; $this->_retvalue = $s[0].'".$_tmp'.$this->prefix_number.'."'; $this->compiler->has_variable_string = true; } #line 2441 "internal.templateparser.php" #line 522 "internal.templateparser.y" function yy_r159(){$this->_retvalue = '$'.$this->yystack[$this->yyidx + 0]->minor; } #line 2444 "internal.templateparser.php" #line 524 "internal.templateparser.y" function yy_r161(){$this->_retvalue = '`'.$this->yystack[$this->yyidx + 0]->minor; } #line 2447 "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 "internal.templateparser.y" $this->internalError = true; $this->yymajor = $yymajor; $this->compiler->trigger_template_error(); #line 2565 "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 "internal.templateparser.y" $this->successful = !$this->internalError; $this->internalError = false; $this->retvalue = $this->_retvalue; //echo $this->retvalue."\n\n"; #line 2590 "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); } }