*/ class TemplateParser { // line 35 "src/Parser/TemplateParser.y" const ERR1 = 'Security error: Call to private object member not allowed'; const ERR2 = 'Security error: Call to dynamic object member not allowed'; /** * result status * * @var bool */ public $successful = true; /** * return value * * @var mixed */ public $retvalue = 0; /** * @var */ public $yymajor; /** * last index of array variable * * @var mixed */ public $last_index; /** * last variable name * * @var string */ public $last_variable; /** * root parse tree buffer * * @var TemplateParseTree */ public $root_buffer; /** * current parse tree object * * @var \Smarty\ParseTree\Base */ public $current_buffer; /** * lexer object * * @var Lexer */ public $lex; /** * internal error flag * * @var bool */ private $internalError = false; /** * {strip} status * * @var bool */ public $strip = false; /** * compiler object * * @var TemplateCompiler */ public $compiler = null; /** * smarty object * * @var \Smarty\Smarty */ public $smarty = null; /** * template object * * @var \Smarty\Template */ public $template = null; /** * block nesting level * * @var int */ public $block_nesting_level = 0; /** * security object * * @var \Smarty\Security */ public $security = null; /** * template prefix array * * @var \Smarty\ParseTree\Base[] */ public $template_prefix = array(); /** * template prefix array * * @var \Smarty\ParseTree\Base[] */ public $template_postfix = array(); /** * constructor * * @param Lexer $lex * @param TemplateCompiler $compiler */ public function __construct(Lexer $lex, TemplateCompiler $compiler) { $this->lex = $lex; $this->compiler = $compiler; $this->template = $this->compiler->getTemplate(); $this->smarty = $this->template->getSmarty(); $this->security = $this->smarty->security_policy ?? false; $this->current_buffer = $this->root_buffer = new TemplateParseTree(); } /** * insert PHP code in current buffer * * @param string $code */ public function insertPhpCode($code) { $this->current_buffer->append_subtree($this, new Tag($this, $code)); } /** * error rundown * */ public function errorRunDown() { while ($this->yystack !== array()) { $this->yy_pop_parser_stack(); } if (is_resource($this->yyTraceFILE)) { fclose($this->yyTraceFILE); } } /** * merge PHP code with prefix code and return parse tree tag object * * @param string $code * * @return Tag */ private function mergePrefixCode($code) { $tmp = ''; foreach ($this->compiler->prefix_code as $preCode) { $tmp .= $preCode; } $this->compiler->prefix_code = array(); $tmp .= $code; return new Tag($this, $this->compiler->processNocacheCode($tmp)); } const TP_VERT = 1; const TP_COLON = 2; const TP_TEXT = 3; const TP_STRIPON = 4; const TP_STRIPOFF = 5; const TP_LITERALSTART = 6; const TP_LITERALEND = 7; const TP_LITERAL = 8; const TP_SIMPELOUTPUT = 9; const TP_SIMPLETAG = 10; const TP_SMARTYBLOCKCHILDPARENT = 11; const TP_LDEL = 12; const TP_RDEL = 13; const TP_DOLLARID = 14; const TP_EQUAL = 15; const TP_ID = 16; const TP_PTR = 17; const TP_LDELIF = 18; const TP_LDELFOR = 19; const TP_SEMICOLON = 20; const TP_INCDEC = 21; const TP_TO = 22; const TP_STEP = 23; const TP_LDELFOREACH = 24; const TP_SPACE = 25; const TP_AS = 26; const TP_APTR = 27; const TP_LDELSETFILTER = 28; const TP_CLOSETAG = 29; const TP_LDELSLASH = 30; const TP_ATTR = 31; const TP_INTEGER = 32; const TP_COMMA = 33; const TP_OPENP = 34; const TP_CLOSEP = 35; const TP_MATH = 36; const TP_UNIMATH = 37; const TP_ISIN = 38; const TP_QMARK = 39; const TP_NOT = 40; const TP_TYPECAST = 41; const TP_HEX = 42; const TP_DOT = 43; const TP_INSTANCEOF = 44; const TP_SINGLEQUOTESTRING = 45; const TP_DOUBLECOLON = 46; const TP_NAMESPACE = 47; const TP_AT = 48; const TP_HATCH = 49; const TP_OPENB = 50; const TP_CLOSEB = 51; const TP_DOLLAR = 52; const TP_LOGOP = 53; const TP_SLOGOP = 54; const TP_TLOGOP = 55; const TP_SINGLECOND = 56; const TP_MATCHES = 57; const TP_ARRAYOPEN = 58; const TP_QUOTE = 59; const TP_BACKTICK = 60; const YY_NO_ACTION = 553; const YY_ACCEPT_ACTION = 552; const YY_ERROR_ACTION = 551; const YY_SZ_ACTTAB = 2723; public static $yy_action = array( 30, 47, 22, 292, 41, 14, 48, 252, 253, 254, 1, 15, 142, 242, 208, 206, 6, 88, 206, 228, 244, 205, 114, 109, 406, 206, 223, 266, 224, 103, 230, 406, 21, 406, 226, 44, 406, 29, 45, 46, 283, 232, 406, 287, 406, 209, 406, 54, 4, 14, 304, 186, 333, 290, 231, 15, 5, 86, 252, 253, 254, 1, 103, 139, 400, 199, 241, 6, 88, 518, 228, 552, 101, 114, 153, 258, 400, 223, 266, 224, 144, 213, 400, 21, 261, 453, 44, 13, 144, 45, 46, 283, 232, 206, 240, 13, 209, 453, 54, 4, 332, 304, 206, 40, 262, 368, 156, 5, 86, 252, 253, 254, 1, 143, 102, 272, 87, 368, 6, 88, 310, 228, 103, 368, 114, 319, 156, 222, 223, 266, 224, 274, 230, 184, 21, 290, 143, 44, 235, 10, 45, 46, 283, 232, 175, 287, 273, 209, 54, 54, 4, 304, 304, 251, 183, 222, 290, 180, 5, 86, 252, 253, 254, 1, 20, 141, 198, 208, 276, 6, 88, 54, 228, 315, 304, 114, 190, 265, 453, 223, 266, 224, 206, 230, 277, 21, 147, 238, 44, 190, 453, 45, 46, 283, 232, 329, 287, 3, 209, 103, 54, 4, 146, 304, 304, 289, 98, 311, 23, 5, 86, 252, 253, 254, 1, 269, 141, 134, 200, 367, 6, 88, 25, 228, 304, 367, 114, 108, 117, 453, 223, 266, 224, 34, 230, 233, 21, 167, 53, 44, 304, 453, 45, 46, 283, 232, 103, 287, 37, 209, 103, 54, 4, 336, 304, 157, 206, 262, 367, 145, 5, 86, 252, 253, 254, 1, 269, 140, 402, 208, 367, 6, 88, 304, 228, 117, 367, 114, 155, 117, 402, 223, 266, 224, 260, 230, 402, 11, 261, 53, 44, 206, 24, 45, 46, 283, 232, 206, 287, 166, 209, 262, 54, 4, 183, 304, 290, 163, 262, 399, 262, 5, 86, 252, 253, 254, 1, 261, 141, 165, 195, 399, 6, 88, 36, 228, 274, 399, 114, 261, 242, 113, 223, 266, 224, 91, 219, 344, 21, 341, 109, 44, 18, 189, 45, 46, 283, 232, 15, 287, 242, 209, 473, 54, 4, 189, 304, 243, 269, 473, 109, 177, 5, 86, 252, 253, 254, 1, 33, 141, 148, 193, 92, 6, 88, 264, 228, 304, 19, 114, 261, 53, 263, 223, 266, 224, 159, 230, 327, 21, 10, 150, 44, 190, 206, 45, 46, 283, 232, 151, 287, 109, 209, 161, 54, 4, 269, 304, 182, 261, 118, 171, 168, 5, 86, 252, 253, 254, 1, 16, 141, 261, 208, 8, 6, 88, 181, 228, 290, 53, 114, 319, 97, 222, 223, 266, 224, 185, 194, 290, 21, 325, 297, 44, 298, 317, 45, 46, 283, 232, 174, 287, 473, 209, 134, 54, 4, 189, 304, 473, 261, 178, 220, 203, 5, 86, 252, 253, 254, 1, 187, 143, 250, 208, 40, 6, 88, 489, 90, 321, 489, 114, 17, 265, 489, 223, 266, 224, 343, 230, 269, 21, 291, 190, 49, 249, 250, 45, 46, 283, 232, 268, 287, 8, 209, 322, 54, 4, 7, 304, 204, 453, 31, 53, 100, 5, 86, 252, 253, 254, 1, 93, 143, 453, 208, 162, 6, 88, 455, 95, 455, 454, 114, 225, 9, 261, 223, 266, 224, 231, 230, 99, 21, 454, 176, 44, 119, 328, 45, 46, 283, 232, 457, 287, 457, 209, 169, 54, 4, 170, 304, 190, 32, 32, 334, 335, 5, 86, 179, 295, 221, 222, 257, 248, 94, 111, 255, 197, 105, 85, 35, 256, 231, 188, 104, 115, 267, 278, 279, 284, 164, 124, 275, 280, 96, 286, 210, 288, 282, 296, 261, 302, 301, 303, 295, 221, 222, 257, 231, 94, 111, 300, 196, 105, 60, 285, 89, 239, 342, 104, 158, 160, 278, 279, 37, 330, 190, 345, 331, 38, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 259, 322, 116, 111, 322, 197, 105, 85, 322, 322, 264, 322, 104, 19, 322, 278, 279, 263, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 112, 116, 322, 322, 207, 121, 71, 322, 322, 322, 322, 104, 322, 234, 278, 279, 42, 43, 293, 12, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 305, 306, 307, 308, 309, 295, 322, 222, 212, 324, 116, 322, 322, 207, 121, 71, 14, 322, 489, 322, 104, 489, 15, 278, 279, 489, 473, 42, 43, 293, 12, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 322, 322, 305, 306, 307, 308, 309, 322, 211, 324, 473, 322, 322, 473, 295, 489, 222, 473, 322, 110, 322, 322, 207, 125, 51, 322, 123, 264, 322, 104, 19, 322, 278, 279, 263, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 67, 133, 322, 322, 236, 104, 322, 227, 278, 279, 322, 104, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 322, 302, 301, 303, 295, 217, 222, 322, 322, 116, 322, 322, 207, 121, 71, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 77, 323, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 214, 216, 301, 303, 322, 322, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 67, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 110, 322, 218, 207, 125, 58, 322, 243, 322, 322, 104, 322, 322, 278, 279, 322, 322, 264, 322, 322, 19, 286, 210, 288, 263, 296, 322, 302, 301, 303, 322, 322, 295, 14, 222, 154, 322, 116, 322, 15, 207, 122, 62, 322, 322, 489, 322, 104, 489, 322, 278, 279, 489, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 202, 120, 59, 322, 322, 322, 322, 104, 322, 489, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 295, 322, 222, 322, 322, 116, 322, 322, 207, 106, 84, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 207, 107, 83, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 55, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 66, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 295, 322, 222, 322, 322, 116, 322, 322, 207, 106, 56, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 65, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 57, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 58, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 68, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 69, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 70, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 72, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 295, 322, 222, 322, 322, 116, 322, 322, 201, 125, 61, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 73, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 74, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 75, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 76, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 78, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 215, 301, 303, 322, 322, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 79, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 63, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 64, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 80, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 81, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 82, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 50, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 295, 322, 222, 322, 322, 116, 322, 322, 207, 125, 52, 322, 322, 322, 322, 104, 322, 322, 278, 279, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 322, 295, 322, 222, 322, 322, 116, 322, 322, 207, 138, 322, 322, 322, 322, 295, 104, 222, 322, 322, 116, 322, 322, 207, 131, 339, 322, 286, 210, 288, 104, 296, 322, 302, 301, 303, 322, 322, 322, 294, 322, 286, 210, 288, 322, 296, 320, 302, 301, 303, 322, 322, 252, 253, 254, 2, 322, 318, 322, 322, 322, 6, 88, 322, 322, 322, 322, 114, 322, 322, 152, 223, 266, 224, 322, 322, 322, 39, 322, 14, 42, 43, 293, 12, 322, 15, 322, 322, 322, 322, 42, 43, 293, 12, 322, 322, 322, 305, 306, 307, 308, 309, 313, 26, 322, 322, 320, 305, 306, 307, 308, 309, 252, 253, 254, 2, 322, 318, 322, 322, 322, 6, 88, 264, 322, 322, 19, 114, 322, 322, 263, 223, 266, 224, 337, 42, 43, 293, 12, 14, 42, 43, 293, 12, 322, 15, 322, 322, 322, 322, 322, 322, 305, 306, 307, 308, 309, 305, 306, 307, 308, 309, 314, 26, 316, 322, 245, 246, 247, 137, 229, 322, 252, 253, 254, 1, 322, 489, 322, 322, 489, 6, 88, 3, 489, 473, 322, 114, 322, 281, 322, 223, 266, 224, 295, 322, 222, 322, 322, 116, 322, 322, 207, 136, 322, 322, 322, 322, 322, 104, 322, 473, 322, 322, 473, 322, 489, 322, 473, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 295, 322, 222, 172, 322, 116, 322, 322, 207, 126, 322, 322, 322, 261, 322, 104, 47, 22, 292, 41, 322, 48, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 295, 322, 222, 322, 149, 116, 322, 322, 207, 127, 322, 322, 322, 322, 261, 104, 322, 47, 22, 292, 41, 322, 48, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 295, 322, 222, 322, 173, 116, 322, 322, 207, 128, 322, 322, 322, 322, 261, 104, 322, 47, 22, 292, 41, 133, 48, 322, 271, 322, 286, 210, 288, 322, 296, 104, 302, 301, 303, 322, 295, 322, 222, 322, 322, 116, 322, 270, 207, 129, 322, 322, 302, 301, 303, 104, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 295, 322, 222, 322, 322, 116, 322, 322, 207, 130, 322, 322, 322, 322, 322, 104, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 322, 295, 322, 222, 322, 322, 116, 322, 206, 207, 132, 322, 322, 322, 322, 322, 104, 322, 322, 322, 371, 322, 322, 322, 237, 322, 322, 286, 210, 288, 322, 296, 14, 302, 301, 303, 322, 295, 15, 222, 415, 453, 116, 322, 322, 207, 135, 322, 322, 322, 322, 322, 104, 453, 322, 322, 322, 322, 322, 322, 322, 322, 322, 286, 210, 288, 322, 296, 322, 302, 301, 303, 453, 322, 415, 415, 415, 415, 322, 322, 322, 322, 322, 322, 453, 322, 322, 322, 322, 322, 322, 415, 415, 415, 415, 415, 229, 322, 322, 322, 322, 322, 322, 489, 322, 322, 489, 322, 322, 229, 489, 473, 322, 322, 322, 281, 489, 322, 322, 489, 322, 322, 36, 489, 473, 322, 322, 322, 281, 322, 322, 322, 322, 322, 322, 322, 338, 473, 322, 322, 473, 322, 489, 322, 473, 299, 322, 322, 322, 322, 473, 322, 322, 473, 322, 489, 322, 473, 28, 42, 43, 293, 12, 322, 312, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 305, 306, 307, 308, 309, 42, 43, 293, 12, 322, 322, 42, 43, 293, 12, 191, 42, 43, 293, 12, 326, 192, 305, 306, 307, 308, 309, 340, 305, 306, 307, 308, 309, 305, 306, 307, 308, 309, 42, 43, 293, 12, 322, 322, 42, 43, 293, 12, 322, 322, 42, 43, 293, 12, 322, 305, 306, 307, 308, 309, 322, 305, 306, 307, 308, 309, 229, 305, 306, 307, 308, 309, 27, 489, 322, 322, 489, 322, 322, 489, 489, 473, 489, 322, 322, 281, 489, 473, 322, 322, 322, 281, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 473, 322, 322, 473, 322, 489, 473, 473, 322, 473, 322, 489, 322, 473, 322, 42, 43, 293, 12, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 305, 306, 307, 308, 309, ); public static $yy_lookahead = array( 2, 86, 87, 88, 89, 25, 91, 9, 10, 11, 12, 31, 14, 71, 16, 1, 18, 19, 1, 21, 78, 79, 24, 81, 13, 1, 28, 29, 30, 17, 32, 20, 34, 22, 17, 37, 25, 39, 40, 41, 42, 43, 31, 45, 33, 47, 35, 49, 50, 25, 52, 104, 105, 106, 43, 31, 58, 59, 9, 10, 11, 12, 17, 14, 13, 16, 15, 18, 19, 1, 21, 62, 63, 24, 73, 70, 25, 28, 29, 30, 43, 32, 31, 34, 83, 34, 37, 50, 43, 40, 41, 42, 43, 1, 45, 50, 47, 46, 49, 50, 51, 52, 1, 2, 103, 13, 101, 58, 59, 9, 10, 11, 12, 14, 14, 16, 16, 25, 18, 19, 70, 21, 17, 31, 24, 66, 101, 68, 28, 29, 30, 102, 32, 104, 34, 106, 14, 37, 16, 34, 40, 41, 42, 43, 77, 45, 47, 47, 49, 49, 50, 52, 52, 66, 104, 68, 106, 77, 58, 59, 9, 10, 11, 12, 12, 14, 14, 16, 16, 18, 19, 49, 21, 114, 52, 24, 109, 110, 34, 28, 29, 30, 1, 32, 32, 34, 14, 43, 37, 109, 46, 40, 41, 42, 43, 51, 45, 15, 47, 17, 49, 50, 14, 52, 52, 95, 34, 13, 27, 58, 59, 9, 10, 11, 12, 21, 14, 107, 16, 25, 18, 19, 27, 21, 52, 31, 24, 81, 46, 34, 28, 29, 30, 12, 32, 14, 34, 16, 44, 37, 52, 46, 40, 41, 42, 43, 17, 45, 15, 47, 17, 49, 50, 107, 52, 101, 1, 103, 13, 81, 58, 59, 9, 10, 11, 12, 21, 14, 13, 16, 25, 18, 19, 52, 21, 46, 31, 24, 73, 46, 25, 28, 29, 30, 83, 32, 31, 34, 83, 44, 37, 1, 2, 40, 41, 42, 43, 1, 45, 101, 47, 103, 49, 50, 104, 52, 106, 73, 103, 13, 103, 58, 59, 9, 10, 11, 12, 83, 14, 73, 16, 25, 18, 19, 15, 21, 102, 31, 24, 83, 71, 80, 28, 29, 30, 81, 32, 78, 34, 14, 81, 37, 25, 109, 40, 41, 42, 43, 31, 45, 71, 47, 43, 49, 50, 109, 52, 78, 21, 50, 81, 77, 58, 59, 9, 10, 11, 12, 12, 14, 73, 16, 81, 18, 19, 9, 21, 52, 12, 24, 83, 44, 16, 28, 29, 30, 101, 32, 51, 34, 34, 71, 37, 109, 1, 40, 41, 42, 43, 73, 45, 81, 47, 101, 49, 50, 21, 52, 14, 83, 16, 73, 101, 58, 59, 9, 10, 11, 12, 20, 14, 83, 16, 33, 18, 19, 104, 21, 106, 44, 24, 66, 33, 68, 28, 29, 30, 104, 32, 106, 34, 51, 95, 37, 51, 60, 40, 41, 42, 43, 73, 45, 43, 47, 107, 49, 50, 109, 52, 50, 83, 77, 64, 65, 58, 59, 9, 10, 11, 12, 6, 14, 8, 16, 2, 18, 19, 9, 113, 114, 12, 24, 15, 110, 16, 28, 29, 30, 21, 32, 21, 34, 106, 109, 37, 7, 8, 40, 41, 42, 43, 16, 45, 33, 47, 35, 49, 50, 34, 52, 65, 34, 33, 44, 35, 58, 59, 9, 10, 11, 12, 101, 14, 46, 16, 73, 18, 19, 33, 77, 35, 34, 24, 48, 34, 83, 28, 29, 30, 43, 32, 82, 34, 46, 82, 37, 46, 51, 40, 41, 42, 43, 33, 45, 35, 47, 101, 49, 50, 101, 52, 109, 33, 33, 35, 35, 58, 59, 82, 66, 67, 68, 69, 7, 71, 72, 13, 74, 75, 76, 15, 13, 43, 16, 81, 16, 16, 84, 85, 32, 73, 16, 16, 14, 77, 92, 93, 94, 16, 96, 83, 98, 99, 100, 66, 67, 68, 69, 43, 71, 72, 16, 74, 75, 76, 32, 16, 16, 16, 81, 49, 49, 84, 85, 15, 51, 109, 35, 51, 22, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 69, 115, 71, 72, 115, 74, 75, 76, 115, 115, 9, 115, 81, 12, 115, 84, 85, 16, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 20, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 48, 84, 85, 36, 37, 38, 39, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 53, 54, 55, 56, 57, 66, 115, 68, 111, 112, 71, 115, 115, 74, 75, 76, 25, 115, 9, 115, 81, 12, 31, 84, 85, 16, 17, 36, 37, 38, 39, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 115, 115, 53, 54, 55, 56, 57, 115, 111, 112, 43, 115, 115, 46, 66, 48, 68, 50, 115, 71, 115, 115, 74, 75, 76, 115, 78, 9, 115, 81, 12, 115, 84, 85, 16, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 71, 115, 115, 74, 81, 115, 48, 84, 85, 115, 81, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 115, 98, 99, 100, 66, 108, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 112, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 97, 98, 99, 100, 115, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 108, 74, 75, 76, 115, 78, 115, 115, 81, 115, 115, 84, 85, 115, 115, 9, 115, 115, 12, 92, 93, 94, 16, 96, 115, 98, 99, 100, 115, 115, 66, 25, 68, 27, 115, 71, 115, 31, 74, 75, 76, 115, 115, 9, 115, 81, 12, 115, 84, 85, 16, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 48, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 76, 115, 115, 115, 115, 81, 115, 115, 84, 85, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 115, 115, 115, 115, 66, 81, 68, 115, 115, 71, 115, 115, 74, 75, 90, 115, 92, 93, 94, 81, 96, 115, 98, 99, 100, 115, 115, 115, 90, 115, 92, 93, 94, 115, 96, 3, 98, 99, 100, 115, 115, 9, 10, 11, 12, 115, 14, 115, 115, 115, 18, 19, 115, 115, 115, 115, 24, 115, 115, 26, 28, 29, 30, 115, 115, 115, 23, 115, 25, 36, 37, 38, 39, 115, 31, 115, 115, 115, 115, 36, 37, 38, 39, 115, 115, 115, 53, 54, 55, 56, 57, 59, 60, 115, 115, 3, 53, 54, 55, 56, 57, 9, 10, 11, 12, 115, 14, 115, 115, 115, 18, 19, 9, 115, 115, 12, 24, 115, 115, 16, 28, 29, 30, 35, 36, 37, 38, 39, 25, 36, 37, 38, 39, 115, 31, 115, 115, 115, 115, 115, 115, 53, 54, 55, 56, 57, 53, 54, 55, 56, 57, 59, 60, 60, 115, 3, 4, 5, 6, 2, 115, 9, 10, 11, 12, 115, 9, 115, 115, 12, 18, 19, 15, 16, 17, 115, 24, 115, 21, 115, 28, 29, 30, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 115, 115, 115, 115, 115, 81, 115, 43, 115, 115, 46, 115, 48, 115, 50, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 66, 115, 68, 73, 115, 71, 115, 115, 74, 75, 115, 115, 115, 83, 115, 81, 86, 87, 88, 89, 115, 91, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 66, 115, 68, 115, 73, 71, 115, 115, 74, 75, 115, 115, 115, 115, 83, 81, 115, 86, 87, 88, 89, 115, 91, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 66, 115, 68, 115, 73, 71, 115, 115, 74, 75, 115, 115, 115, 115, 83, 81, 115, 86, 87, 88, 89, 71, 91, 115, 74, 115, 92, 93, 94, 115, 96, 81, 98, 99, 100, 115, 66, 115, 68, 115, 115, 71, 115, 93, 74, 75, 115, 115, 98, 99, 100, 81, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 66, 115, 68, 115, 115, 71, 115, 115, 74, 75, 115, 115, 115, 115, 115, 81, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 115, 66, 115, 68, 115, 115, 71, 115, 1, 74, 75, 115, 115, 115, 115, 115, 81, 115, 115, 115, 13, 115, 115, 115, 17, 115, 115, 92, 93, 94, 115, 96, 25, 98, 99, 100, 115, 66, 31, 68, 2, 34, 71, 115, 115, 74, 75, 115, 115, 115, 115, 115, 81, 46, 115, 115, 115, 115, 115, 115, 115, 115, 115, 92, 93, 94, 115, 96, 115, 98, 99, 100, 34, 115, 36, 37, 38, 39, 115, 115, 115, 115, 115, 115, 46, 115, 115, 115, 115, 115, 115, 53, 54, 55, 56, 57, 2, 115, 115, 115, 115, 115, 115, 9, 115, 115, 12, 115, 115, 2, 16, 17, 115, 115, 115, 21, 9, 115, 115, 12, 115, 115, 15, 16, 17, 115, 115, 115, 21, 115, 115, 115, 115, 115, 115, 115, 13, 43, 115, 115, 46, 115, 48, 115, 50, 51, 115, 115, 115, 115, 43, 115, 115, 46, 115, 48, 115, 50, 2, 36, 37, 38, 39, 115, 13, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 53, 54, 55, 56, 57, 36, 37, 38, 39, 115, 115, 36, 37, 38, 39, 13, 36, 37, 38, 39, 51, 13, 53, 54, 55, 56, 57, 13, 53, 54, 55, 56, 57, 53, 54, 55, 56, 57, 36, 37, 38, 39, 115, 115, 36, 37, 38, 39, 115, 115, 36, 37, 38, 39, 115, 53, 54, 55, 56, 57, 115, 53, 54, 55, 56, 57, 2, 53, 54, 55, 56, 57, 2, 9, 115, 115, 12, 115, 115, 9, 16, 17, 12, 115, 115, 21, 16, 17, 115, 115, 115, 21, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 43, 115, 115, 46, 115, 48, 43, 50, 115, 46, 115, 48, 115, 50, 115, 36, 37, 38, 39, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 53, 54, 55, 56, 57, ); const YY_SHIFT_USE_DFLT = -21; const YY_SHIFT_MAX = 244; public static $yy_shift_ofst = array( -21, 100, 100, 151, 202, 202, 253, 151, 202, 151, 151, 253, -2, 49, 304, 151, 151, 151, 304, 151, 151, 151, 151, 151, 151, 151, 151, 355, 151, 151, 151, 151, 151, 151, 151, 151, 406, 151, 151, 151, 457, 508, 508, 508, 508, 508, 508, 508, 508, 508, 2048, 702, 702, 99, 122, 658, 2038, 2526, 2093, 2548, 2554, 2098, 2559, 2581, 2587, 2593, 2665, 2665, 2665, 2665, 2665, 2665, 2665, 2665, 2665, 2665, 2665, 2665, 2665, 2665, 2665, 2665, 2665, 2665, 2665, 2665, 2037, 2410, 172, 24, 2097, 963, 2108, 45, 182, 24, 24, 172, 172, 101, 12, 2157, 2162, 221, 643, 92, 255, 296, 366, 366, 233, -20, 188, -20, 317, 17, 229, 394, 105, 394, 393, 181, 290, -20, 14, 14, 14, 14, 14, 14, 14, 14, 14, 12, 12, 68, 14, -21, -21, 2497, 2510, 2643, 2649, 720, 152, 771, 468, 309, -20, -20, 467, -20, 325, -20, 325, -20, 37, 37, 409, 37, 409, 37, -20, -20, -20, -20, 37, 356, 37, 37, 37, -20, -20, -20, -20, 14, 472, 14, 14, 472, 14, 12, 474, 12, 12, 12, 12, -21, -21, -21, -21, -21, -21, 2441, 11, 51, 194, 245, 991, 144, 195, 385, 337, 464, 488, 399, 485, 469, 477, 497, 500, 470, 390, 496, 479, 495, 519, 529, 530, 565, 566, 563, 568, 567, 569, 570, 575, 576, 579, 582, 539, 557, 583, 474, 595, 571, 572, 600, 601, 574, 577, 602, 609, 592, 607, ); const YY_REDUCE_USE_DFLT = -86; const YY_REDUCE_MAX = 192; public static $yy_reduce_ofst = array( 9, 503, 538, 573, 608, 650, 701, 736, 777, 812, 849, 884, 921, 956, 993, 1028, 1065, 1100, 1137, 1172, 1209, 1244, 1281, 1316, 1353, 1388, 1425, 1460, 1497, 1532, 1569, 1604, 1641, 1676, 1713, 1748, 1785, 1820, 1857, 1892, 1929, 1943, 2122, 2158, 2194, 2230, 2266, 2302, 2338, 2374, 2154, 2191, 2227, 2246, 742, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, -85, 365, 452, -58, 517, 59, 1, 205, 29, 50, 234, 246, 259, 279, 67, -53, 87, 5, 146, 154, 80, 80, 80, 198, 154, 200, 297, 320, 326, 338, 284, 200, 110, 322, 347, 80, 80, 80, 377, 384, 80, 80, 80, 80, 80, 80, 80, 80, 200, 333, 80, 80, 398, 80, 25, 25, 25, 25, 25, 178, 207, 25, 25, 201, 201, 251, 201, 254, 201, 291, 201, 224, 224, 285, 224, 302, 224, 201, 201, 201, 201, 224, 311, 224, 224, 224, 201, 201, 201, 201, 348, 373, 348, 348, 373, 348, 386, 420, 386, 386, 386, 386, 445, 459, 462, 486, 455, 458, ); public static $yyExpectedTokens = array( array(), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(2, 9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 39, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 51, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 21, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(9, 10, 11, 12, 14, 16, 18, 19, 24, 28, 29, 30, 32, 34, 37, 40, 41, 42, 43, 45, 47, 49, 50, 52, 58, 59, ), array(23, 25, 31, 36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(25, 31, 36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(25, 31, 36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(14, 16, 47, 49, 52, ), array(14, 16, 49, 52, ), array(20, 36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(26, 36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(13, 36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(35, 36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 51, 53, 54, 55, 56, 57, ), array(13, 36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, 60, ), array(2, 36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(13, 36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(13, 36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(13, 36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(36, 37, 38, 39, 53, 54, 55, 56, 57, ), array(3, 9, 10, 11, 12, 14, 18, 19, 24, 28, 29, 30, 59, 60, ), array(1, 13, 17, 25, 31, 34, 46, ), array(14, 34, 52, ), array(1, 25, 31, ), array(3, 9, 10, 11, 12, 14, 18, 19, 24, 28, 29, 30, 59, 60, ), array(9, 12, 16, 25, 27, 31, ), array(9, 12, 16, 25, 31, ), array(17, 43, 50, ), array(15, 17, 46, ), array(1, 25, 31, ), array(1, 25, 31, ), array(14, 34, 52, ), array(14, 34, 52, ), array(1, 2, ), array(17, ), array(3, 4, 5, 6, 9, 10, 11, 12, 18, 19, 24, 28, 29, 30, ), array(2, 9, 12, 15, 16, 17, 21, 43, 46, 48, 50, ), array(12, 14, 16, 52, ), array(9, 12, 16, 48, ), array(1, 13, 25, 31, ), array(1, 13, 25, 31, ), array(1, 13, 25, 31, ), array(9, 12, 16, ), array(9, 12, 16, ), array(15, 17, 46, ), array(25, 31, ), array(14, 52, ), array(25, 31, ), array(25, 31, ), array(1, 17, ), array(17, 46, ), array(14, 16, ), array(17, 34, ), array(14, 16, ), array(1, 51, ), array(1, 27, ), array(1, 2, ), array(25, 31, ), array(1, ), array(1, ), array(1, ), array(1, ), array(1, ), array(1, ), array(1, ), array(1, ), array(1, ), array(17, ), array(17, ), array(1, ), array(1, ), array(), array(), array(2, 9, 12, 16, 17, 21, 43, 46, 48, 50, 51, ), array(2, 9, 12, 15, 16, 17, 21, 43, 46, 48, 50, ), array(2, 9, 12, 16, 17, 21, 43, 46, 48, 50, ), array(2, 9, 12, 16, 17, 21, 43, 46, 48, 50, ), array(9, 12, 16, 17, 43, 46, 48, 50, ), array(12, 14, 16, 32, 52, ), array(9, 12, 16, 48, ), array(9, 12, 16, ), array(15, 43, 50, ), array(25, 31, ), array(25, 31, ), array(15, 21, ), array(25, 31, ), array(14, 52, ), array(25, 31, ), array(14, 52, ), array(25, 31, ), array(43, 50, ), array(43, 50, ), array(43, 50, ), array(43, 50, ), array(43, 50, ), array(43, 50, ), array(25, 31, ), array(25, 31, ), array(25, 31, ), array(25, 31, ), array(43, 50, ), array(12, 34, ), array(43, 50, ), array(43, 50, ), array(43, 50, ), array(25, 31, ), array(25, 31, ), array(25, 31, ), array(25, 31, ), array(1, ), array(2, ), array(1, ), array(1, ), array(2, ), array(1, ), array(17, ), array(34, ), array(17, ), array(17, ), array(17, ), array(17, ), array(), array(), array(), array(), array(), array(), array(2, 34, 36, 37, 38, 39, 46, 53, 54, 55, 56, 57, ), array(13, 20, 22, 25, 31, 33, 35, 43, ), array(13, 15, 25, 31, 34, 46, ), array(13, 21, 25, 31, 44, ), array(13, 21, 25, 31, 44, ), array(9, 12, 16, 48, ), array(34, 43, 46, 51, ), array(27, 34, 46, ), array(21, 44, 60, ), array(21, 44, 51, ), array(6, 8, ), array(7, 8, ), array(20, 33, ), array(16, 48, ), array(21, 44, ), array(34, 46, ), array(34, 46, ), array(34, 46, ), array(33, 35, ), array(33, 51, ), array(43, 51, ), array(33, 35, ), array(33, 35, ), array(33, 35, ), array(33, 35, ), array(33, 35, ), array(15, 43, ), array(7, ), array(13, ), array(13, ), array(16, ), array(16, ), array(16, ), array(16, ), array(16, ), array(14, ), array(16, ), array(43, ), array(32, ), array(32, ), array(34, ), array(16, ), array(49, ), array(49, ), array(16, ), array(16, ), array(51, ), array(51, ), array(16, ), array(15, ), array(35, ), array(22, ), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), ); public static $yy_default = array( 356, 551, 551, 551, 536, 536, 551, 510, 535, 459, 510, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 396, 375, 396, 551, 551, 551, 401, 551, 551, 551, 369, 551, 551, 551, 551, 551, 380, 509, 419, 537, 427, 539, 538, 426, 428, 425, 429, 458, 456, 508, 403, 407, 408, 398, 401, 369, 551, 440, 551, 396, 551, 396, 396, 524, 461, 396, 396, 551, 551, 387, 496, 346, 460, 551, 473, 410, 410, 410, 473, 473, 461, 396, 551, 396, 396, 390, 461, 551, 522, 551, 410, 410, 410, 377, 392, 410, 417, 431, 432, 433, 418, 423, 424, 461, 520, 431, 416, 354, 517, 460, 460, 460, 460, 460, 551, 475, 473, 489, 366, 376, 551, 379, 551, 384, 551, 385, 470, 471, 464, 465, 466, 467, 370, 372, 373, 374, 501, 473, 500, 503, 502, 386, 382, 383, 378, 388, 511, 391, 393, 512, 449, 523, 473, 495, 525, 521, 497, 354, 516, 516, 516, 473, 473, 440, 436, 440, 430, 430, 474, 440, 440, 430, 430, 352, 551, 551, 551, 430, 440, 450, 551, 551, 551, 436, 551, 468, 468, 551, 551, 436, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 436, 438, 551, 489, 551, 551, 551, 551, 551, 551, 445, 551, 551, 551, 404, 347, 348, 349, 350, 351, 353, 355, 357, 358, 359, 360, 361, 362, 363, 365, 394, 395, 491, 492, 493, 515, 389, 513, 514, 434, 443, 444, 453, 454, 472, 476, 477, 478, 411, 412, 413, 414, 415, 435, 437, 439, 441, 445, 446, 447, 498, 499, 420, 421, 422, 448, 451, 452, 486, 484, 462, 463, 468, 469, 490, 526, 527, 528, 529, 530, 364, 547, 548, 540, 541, 542, 545, 544, 546, 549, 550, 543, 532, 534, 533, 531, 487, 485, 483, 480, 481, 482, 488, 505, 507, 506, 504, 442, 479, 519, 494, 489, 397, 381, 405, 409, ); const YYNOCODE = 116; const YYSTACKDEPTH = 500; const YYNSTATE = 346; const YYNRULE = 205; const YYERRORSYMBOL = 61; const YYERRSYMDT = 'yy0'; const YYFALLBACK = 0; public static $yyFallback = array( ); public function Trace($TraceFILE, $zTracePrompt) { if (!$TraceFILE) { $zTracePrompt = 0; } elseif (!$zTracePrompt) { $TraceFILE = 0; } $this->yyTraceFILE = $TraceFILE; $this->yyTracePrompt = $zTracePrompt; } public function PrintTrace() { $this->yyTraceFILE = fopen('php://output', 'w'); $this->yyTracePrompt = '
'; } public $yyTraceFILE; public $yyTracePrompt; public $yyidx; /* Index of top element in stack */ public $yyerrcnt; /* Shifts left before out of the error */ public $yystack = array(); /* The parser's stack */ public $yyTokenName = array( '$', 'VERT', 'COLON', 'TEXT', 'STRIPON', 'STRIPOFF', 'LITERALSTART', 'LITERALEND', 'LITERAL', 'SIMPELOUTPUT', 'SIMPLETAG', 'SMARTYBLOCKCHILDPARENT', 'LDEL', 'RDEL', 'DOLLARID', 'EQUAL', 'ID', 'PTR', 'LDELIF', 'LDELFOR', 'SEMICOLON', 'INCDEC', 'TO', 'STEP', 'LDELFOREACH', 'SPACE', 'AS', 'APTR', 'LDELSETFILTER', 'CLOSETAG', 'LDELSLASH', 'ATTR', 'INTEGER', 'COMMA', 'OPENP', 'CLOSEP', 'MATH', 'UNIMATH', 'ISIN', 'QMARK', 'NOT', 'TYPECAST', 'HEX', 'DOT', 'INSTANCEOF', 'SINGLEQUOTESTRING', 'DOUBLECOLON', 'NAMESPACE', 'AT', 'HATCH', 'OPENB', 'CLOSEB', 'DOLLAR', 'LOGOP', 'SLOGOP', 'TLOGOP', 'SINGLECOND', 'MATCHES', 'ARRAYOPEN', 'QUOTE', 'BACKTICK', 'error', 'start', 'template', 'literal_e2', 'literal_e1', 'smartytag', 'tagbody', 'tag', 'outattr', 'eqoutattr', 'varindexed', 'output', 'attributes', 'variablevalue', 'value', 'expr', 'modifierlist', 'statement', 'statements', 'foraction', 'varvar', 'modparameters', 'attribute', 'nullcoalescing', 'ternary', 'tlop', 'lop', 'scond', 'isin', 'array', 'matchop', 'function', 'ns1', 'doublequoted_with_quotes', 'static_class_access', 'arraydef', 'variablelist', 'variable', 'object', 'configvariable', 'arrayindex', 'indexdef', 'varvarele', 'objectchain', 'optobjectchain', 'objectelement', 'method', 'params', 'modifier', 'modparameter', 'arrayelements', 'arrayelement', 'doublequoted', 'doublequotedcontent', ); public static $yyRuleName = array( 'start ::= template', 'template ::= template TEXT', 'template ::= template STRIPON', 'template ::= template STRIPOFF', 'template ::= template LITERALSTART literal_e2 LITERALEND', 'literal_e2 ::= literal_e1 LITERALSTART literal_e1 LITERALEND', 'literal_e2 ::= literal_e1', 'literal_e1 ::= literal_e1 LITERAL', 'literal_e1 ::=', 'template ::= template smartytag', 'template ::=', 'smartytag ::= SIMPELOUTPUT', 'smartytag ::= SIMPLETAG', 'smartytag ::= SMARTYBLOCKCHILDPARENT', 'smartytag ::= LDEL tagbody RDEL', 'smartytag ::= tag RDEL', 'tagbody ::= outattr', 'tagbody ::= DOLLARID eqoutattr', 'tagbody ::= varindexed eqoutattr', 'eqoutattr ::= EQUAL outattr', 'outattr ::= output attributes', 'output ::= variablevalue', 'output ::= value', 'output ::= expr', 'tag ::= LDEL ID attributes', 'tag ::= LDEL ID', 'tag ::= LDEL ID modifierlist attributes', 'tag ::= LDEL ID PTR ID attributes', 'tag ::= LDEL ID PTR ID modifierlist attributes', 'tag ::= LDELIF expr', 'tag ::= LDELIF expr attributes', 'tag ::= LDELIF statement', 'tag ::= LDELIF statement attributes', 'tag ::= LDELFOR statements SEMICOLON expr SEMICOLON varindexed foraction attributes', 'foraction ::= EQUAL expr', 'foraction ::= INCDEC', 'tag ::= LDELFOR statement TO expr attributes', 'tag ::= LDELFOR statement TO expr STEP expr attributes', 'tag ::= LDELFOREACH SPACE expr AS varvar attributes', 'tag ::= LDELFOREACH SPACE expr AS varvar APTR varvar attributes', 'tag ::= LDELFOREACH attributes', 'tag ::= LDELSETFILTER ID modparameters', 'tag ::= LDELSETFILTER ID modparameters modifierlist', 'smartytag ::= CLOSETAG', 'tag ::= LDELSLASH ID', 'tag ::= LDELSLASH ID modifierlist', 'tag ::= LDELSLASH ID PTR ID', 'tag ::= LDELSLASH ID PTR ID modifierlist', 'attributes ::= attributes attribute', 'attributes ::= attribute', 'attributes ::=', 'attribute ::= SPACE ID EQUAL ID', 'attribute ::= ATTR expr', 'attribute ::= ATTR value', 'attribute ::= SPACE ID', 'attribute ::= SPACE expr', 'attribute ::= SPACE value', 'attribute ::= SPACE INTEGER EQUAL expr', 'statements ::= statement', 'statements ::= statements COMMA statement', 'statement ::= DOLLARID EQUAL INTEGER', 'statement ::= DOLLARID EQUAL expr', 'statement ::= varindexed EQUAL expr', 'statement ::= OPENP statement CLOSEP', 'expr ::= value', 'expr ::= nullcoalescing', 'expr ::= ternary', 'expr ::= INCDEC DOLLARID', 'expr ::= DOLLARID INCDEC', 'expr ::= DOLLARID COLON ID', 'expr ::= expr MATH value', 'expr ::= expr UNIMATH value', 'expr ::= expr tlop value', 'expr ::= expr lop expr', 'expr ::= expr scond', 'isin ::= ISIN', 'expr ::= expr isin array', 'expr ::= expr isin value', 'expr ::= expr matchop value', 'nullcoalescing ::= expr QMARK QMARK expr', 'ternary ::= expr QMARK DOLLARID COLON expr', 'ternary ::= expr QMARK value COLON expr', 'ternary ::= expr QMARK expr COLON expr', 'ternary ::= expr QMARK COLON expr', 'value ::= variablevalue', 'value ::= UNIMATH value', 'value ::= NOT value', 'value ::= TYPECAST value', 'value ::= variablevalue INCDEC', 'value ::= HEX', 'value ::= INTEGER', 'value ::= INTEGER DOT INTEGER', 'value ::= INTEGER DOT', 'value ::= DOT INTEGER', 'value ::= ID', 'value ::= function', 'value ::= OPENP expr CLOSEP', 'value ::= variablevalue INSTANCEOF ns1', 'value ::= variablevalue INSTANCEOF variablevalue', 'value ::= SINGLEQUOTESTRING', 'value ::= doublequoted_with_quotes', 'value ::= varindexed DOUBLECOLON static_class_access', 'value ::= smartytag', 'value ::= value modifierlist', 'value ::= NAMESPACE', 'value ::= arraydef', 'value ::= ns1 DOUBLECOLON static_class_access', 'ns1 ::= ID', 'ns1 ::= NAMESPACE', 'variablelist ::= variablelist COMMA variable', 'variablelist ::= variablelist COMMA expr', 'variablelist ::= variable', 'variablelist ::= expr', 'variablelist ::=', 'variable ::= DOLLARID', 'variable ::= varindexed', 'variable ::= varvar AT ID', 'variable ::= object', 'configvariable ::= HATCH ID HATCH', 'configvariable ::= HATCH ID HATCH arrayindex', 'configvariable ::= HATCH variablevalue HATCH', 'configvariable ::= HATCH variablevalue HATCH arrayindex', 'variablevalue ::= variable', 'variablevalue ::= configvariable', 'varindexed ::= DOLLARID arrayindex', 'varindexed ::= varvar arrayindex', 'arrayindex ::= arrayindex indexdef', 'arrayindex ::=', 'indexdef ::= DOT DOLLARID', 'indexdef ::= DOT varvar', 'indexdef ::= DOT varvar AT ID', 'indexdef ::= DOT ID', 'indexdef ::= DOT INTEGER', 'indexdef ::= DOT LDEL expr RDEL', 'indexdef ::= OPENB ID CLOSEB', 'indexdef ::= OPENB ID DOT ID CLOSEB', 'indexdef ::= OPENB SINGLEQUOTESTRING CLOSEB', 'indexdef ::= OPENB INTEGER CLOSEB', 'indexdef ::= OPENB DOLLARID CLOSEB', 'indexdef ::= OPENB variablevalue CLOSEB', 'indexdef ::= OPENB value CLOSEB', 'indexdef ::= OPENB expr CLOSEB', 'indexdef ::= OPENB CLOSEB', 'varvar ::= DOLLARID', 'varvar ::= DOLLAR', 'varvar ::= varvar varvarele', 'varvarele ::= ID', 'varvarele ::= SIMPELOUTPUT', 'varvarele ::= LDEL expr RDEL', 'object ::= varindexed objectchain', 'optobjectchain ::=', 'optobjectchain ::= objectchain', 'objectchain ::= objectelement', 'objectchain ::= objectchain objectelement', 'objectelement ::= PTR ID arrayindex', 'objectelement ::= PTR varvar arrayindex', 'objectelement ::= PTR LDEL expr RDEL arrayindex', 'objectelement ::= PTR ID LDEL expr RDEL arrayindex', 'objectelement ::= PTR method', 'function ::= ns1 OPENP variablelist CLOSEP optobjectchain', 'method ::= ID OPENP params CLOSEP', 'method ::= DOLLARID OPENP params CLOSEP', 'params ::= params COMMA expr', 'params ::= expr', 'params ::=', 'modifierlist ::= modifierlist modifier modparameters', 'modifierlist ::= modifier modparameters', 'modifier ::= VERT AT ID', 'modifier ::= VERT ID', 'modparameters ::= modparameters modparameter', 'modparameters ::=', 'modparameter ::= COLON value', 'modparameter ::= COLON UNIMATH value', 'modparameter ::= COLON array', 'static_class_access ::= method', 'static_class_access ::= method objectchain', 'static_class_access ::= ID', 'static_class_access ::= ID objectchain', 'static_class_access ::= DOLLARID arrayindex', 'static_class_access ::= DOLLARID arrayindex objectchain', 'lop ::= LOGOP', 'lop ::= SLOGOP', 'tlop ::= TLOGOP', 'scond ::= SINGLECOND', 'matchop ::= MATCHES', 'arraydef ::= OPENB arrayelements CLOSEB', 'arraydef ::= ARRAYOPEN arrayelements CLOSEP', 'arrayelements ::= arrayelement', 'arrayelements ::= arrayelements COMMA arrayelement', 'arrayelements ::= arrayelements COMMA', 'arrayelements ::=', 'arrayelement ::= value APTR expr', 'arrayelement ::= ID APTR expr', 'arrayelement ::= expr', 'doublequoted_with_quotes ::= QUOTE QUOTE', 'doublequoted_with_quotes ::= QUOTE doublequoted QUOTE', 'doublequoted ::= doublequoted doublequotedcontent', 'doublequoted ::= doublequotedcontent', 'doublequotedcontent ::= BACKTICK variablevalue BACKTICK', 'doublequotedcontent ::= BACKTICK expr BACKTICK', 'doublequotedcontent ::= DOLLARID', 'doublequotedcontent ::= LDEL variablevalue RDEL', 'doublequotedcontent ::= LDEL expr RDEL', 'doublequotedcontent ::= smartytag', 'doublequotedcontent ::= TEXT', ); public function tokenName($tokenType) { if ($tokenType === 0) { return 'End of Input'; } if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) { return $this->yyTokenName[$tokenType]; } else { return 'Unknown'; } } public static function yy_destructor($yymajor, $yypminor) { switch ($yymajor) { default: break; /* If no destructor action specified: do nothing */ } } public function yy_pop_parser_stack() { if (empty($this->yystack)) { return; } $yytos = array_pop($this->yystack); if ($this->yyTraceFILE && $this->yyidx >= 0) { fwrite($this->yyTraceFILE, $this->yyTracePrompt . 'Popping ' . $this->yyTokenName[$yytos->major] . "\n"); } $yymajor = $yytos->major; self::yy_destructor($yymajor, $yytos->minor); $this->yyidx--; return $yymajor; } public function __destruct() { while ($this->yystack !== Array()) { $this->yy_pop_parser_stack(); } if (is_resource($this->yyTraceFILE)) { fclose($this->yyTraceFILE); } } public function yy_get_expected_tokens($token) { static $res3 = array(); static $res4 = array(); $state = $this->yystack[$this->yyidx]->stateno; $expected = self::$yyExpectedTokens[$state]; if (isset($res3[$state][$token])) { if ($res3[$state][$token]) { return $expected; } } else { if ($res3[$state][$token] = 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][1]; $nextstate = $this->yy_find_reduce_action( $this->yystack[$this->yyidx]->stateno, self::$yyRuleInfo[$yyruleno][0]); if (isset(self::$yyExpectedTokens[$nextstate])) { $expected = array_merge($expected, self::$yyExpectedTokens[$nextstate]); if (isset($res4[$nextstate][$token])) { if ($res4[$nextstate][$token]) { $this->yyidx = $yyidx; $this->yystack = $stack; return array_unique($expected); } } else { if ($res4[$nextstate][$token] = 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 = (object) ['stateno' => null, 'major' => null, 'minor' => null]; $x->stateno = $nextstate; $x->major = self::$yyRuleInfo[$yyruleno][0]; $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); $this->yyidx = $yyidx; $this->yystack = $stack; return array_unique($expected); } public function yy_is_expected_token($token) { static $res = array(); static $res2 = array(); if ($token === 0) { return true; // 0 is not part of this } $state = $this->yystack[$this->yyidx]->stateno; if (isset($res[$state][$token])) { if ($res[$state][$token]) { return true; } } else { if ($res[$state][$token] = 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][1]; $nextstate = $this->yy_find_reduce_action( $this->yystack[$this->yyidx]->stateno, self::$yyRuleInfo[$yyruleno][0]); if (isset($res2[$nextstate][$token])) { if ($res2[$nextstate][$token]) { $this->yyidx = $yyidx; $this->yystack = $stack; return true; } } else { if ($res2[$nextstate][$token] = (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 = (object) ['stateno' => null, 'major' => null, 'minor' => null]; $x->stateno = $nextstate; $x->major = self::$yyRuleInfo[$yyruleno][0]; $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; } public 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 ($this->yyTraceFILE) { fwrite($this->yyTraceFILE, $this->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]; } } public 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]; } } public function yy_shift($yyNewState, $yyMajor, $yypMinor) { $this->yyidx++; if ($this->yyidx >= self::YYSTACKDEPTH) { $this->yyidx--; if ($this->yyTraceFILE) { fprintf($this->yyTraceFILE, "%sStack Overflow!\n", $this->yyTracePrompt); } while ($this->yyidx >= 0) { $this->yy_pop_parser_stack(); } // line 232 "src/Parser/TemplateParser.y" $this->internalError = true; $this->compiler->trigger_template_error('Stack overflow in template parser'); return; } $yytos = (object) ['stateno' => null, 'major' => null, 'minor' => null]; $yytos->stateno = $yyNewState; $yytos->major = $yyMajor; $yytos->minor = $yypMinor; $this->yystack[] = $yytos; if ($this->yyTraceFILE && $this->yyidx > 0) { fprintf($this->yyTraceFILE, "%sShift %d\n", $this->yyTracePrompt, $yyNewState); fprintf($this->yyTraceFILE, "%sStack:", $this->yyTracePrompt); for ($i = 1; $i <= $this->yyidx; $i++) { fprintf($this->yyTraceFILE, " %s", $this->yyTokenName[$this->yystack[$i]->major]); } fwrite($this->yyTraceFILE,"\n"); } } public static $yyRuleInfo = array( array( 0 => 62, 1 => 1 ), array( 0 => 63, 1 => 2 ), array( 0 => 63, 1 => 2 ), array( 0 => 63, 1 => 2 ), array( 0 => 63, 1 => 4 ), array( 0 => 64, 1 => 4 ), array( 0 => 64, 1 => 1 ), array( 0 => 65, 1 => 2 ), array( 0 => 65, 1 => 0 ), array( 0 => 63, 1 => 2 ), array( 0 => 63, 1 => 0 ), array( 0 => 66, 1 => 1 ), array( 0 => 66, 1 => 1 ), array( 0 => 66, 1 => 1 ), array( 0 => 66, 1 => 3 ), array( 0 => 66, 1 => 2 ), array( 0 => 67, 1 => 1 ), array( 0 => 67, 1 => 2 ), array( 0 => 67, 1 => 2 ), array( 0 => 70, 1 => 2 ), array( 0 => 69, 1 => 2 ), array( 0 => 72, 1 => 1 ), array( 0 => 72, 1 => 1 ), array( 0 => 72, 1 => 1 ), array( 0 => 68, 1 => 3 ), array( 0 => 68, 1 => 2 ), array( 0 => 68, 1 => 4 ), array( 0 => 68, 1 => 5 ), array( 0 => 68, 1 => 6 ), array( 0 => 68, 1 => 2 ), array( 0 => 68, 1 => 3 ), array( 0 => 68, 1 => 2 ), array( 0 => 68, 1 => 3 ), array( 0 => 68, 1 => 8 ), array( 0 => 80, 1 => 2 ), array( 0 => 80, 1 => 1 ), array( 0 => 68, 1 => 5 ), array( 0 => 68, 1 => 7 ), array( 0 => 68, 1 => 6 ), array( 0 => 68, 1 => 8 ), array( 0 => 68, 1 => 2 ), array( 0 => 68, 1 => 3 ), array( 0 => 68, 1 => 4 ), array( 0 => 66, 1 => 1 ), array( 0 => 68, 1 => 2 ), array( 0 => 68, 1 => 3 ), array( 0 => 68, 1 => 4 ), array( 0 => 68, 1 => 5 ), array( 0 => 73, 1 => 2 ), array( 0 => 73, 1 => 1 ), array( 0 => 73, 1 => 0 ), array( 0 => 83, 1 => 4 ), array( 0 => 83, 1 => 2 ), array( 0 => 83, 1 => 2 ), array( 0 => 83, 1 => 2 ), array( 0 => 83, 1 => 2 ), array( 0 => 83, 1 => 2 ), array( 0 => 83, 1 => 4 ), array( 0 => 79, 1 => 1 ), array( 0 => 79, 1 => 3 ), array( 0 => 78, 1 => 3 ), array( 0 => 78, 1 => 3 ), array( 0 => 78, 1 => 3 ), array( 0 => 78, 1 => 3 ), array( 0 => 76, 1 => 1 ), array( 0 => 76, 1 => 1 ), array( 0 => 76, 1 => 1 ), array( 0 => 76, 1 => 2 ), array( 0 => 76, 1 => 2 ), array( 0 => 76, 1 => 3 ), array( 0 => 76, 1 => 3 ), array( 0 => 76, 1 => 3 ), array( 0 => 76, 1 => 3 ), array( 0 => 76, 1 => 3 ), array( 0 => 76, 1 => 2 ), array( 0 => 89, 1 => 1 ), array( 0 => 76, 1 => 3 ), array( 0 => 76, 1 => 3 ), array( 0 => 76, 1 => 3 ), array( 0 => 84, 1 => 4 ), array( 0 => 85, 1 => 5 ), array( 0 => 85, 1 => 5 ), array( 0 => 85, 1 => 5 ), array( 0 => 85, 1 => 4 ), array( 0 => 75, 1 => 1 ), array( 0 => 75, 1 => 2 ), array( 0 => 75, 1 => 2 ), array( 0 => 75, 1 => 2 ), array( 0 => 75, 1 => 2 ), array( 0 => 75, 1 => 1 ), array( 0 => 75, 1 => 1 ), array( 0 => 75, 1 => 3 ), array( 0 => 75, 1 => 2 ), array( 0 => 75, 1 => 2 ), array( 0 => 75, 1 => 1 ), array( 0 => 75, 1 => 1 ), array( 0 => 75, 1 => 3 ), array( 0 => 75, 1 => 3 ), array( 0 => 75, 1 => 3 ), array( 0 => 75, 1 => 1 ), array( 0 => 75, 1 => 1 ), array( 0 => 75, 1 => 3 ), array( 0 => 75, 1 => 1 ), array( 0 => 75, 1 => 2 ), array( 0 => 75, 1 => 1 ), array( 0 => 75, 1 => 1 ), array( 0 => 75, 1 => 3 ), array( 0 => 93, 1 => 1 ), array( 0 => 93, 1 => 1 ), array( 0 => 97, 1 => 3 ), array( 0 => 97, 1 => 3 ), array( 0 => 97, 1 => 1 ), array( 0 => 97, 1 => 1 ), array( 0 => 97, 1 => 0 ), array( 0 => 98, 1 => 1 ), array( 0 => 98, 1 => 1 ), array( 0 => 98, 1 => 3 ), array( 0 => 98, 1 => 1 ), array( 0 => 100, 1 => 3 ), array( 0 => 100, 1 => 4 ), array( 0 => 100, 1 => 3 ), array( 0 => 100, 1 => 4 ), array( 0 => 74, 1 => 1 ), array( 0 => 74, 1 => 1 ), array( 0 => 71, 1 => 2 ), array( 0 => 71, 1 => 2 ), array( 0 => 101, 1 => 2 ), array( 0 => 101, 1 => 0 ), array( 0 => 102, 1 => 2 ), array( 0 => 102, 1 => 2 ), array( 0 => 102, 1 => 4 ), array( 0 => 102, 1 => 2 ), array( 0 => 102, 1 => 2 ), array( 0 => 102, 1 => 4 ), array( 0 => 102, 1 => 3 ), array( 0 => 102, 1 => 5 ), array( 0 => 102, 1 => 3 ), array( 0 => 102, 1 => 3 ), array( 0 => 102, 1 => 3 ), array( 0 => 102, 1 => 3 ), array( 0 => 102, 1 => 3 ), array( 0 => 102, 1 => 3 ), array( 0 => 102, 1 => 2 ), array( 0 => 81, 1 => 1 ), array( 0 => 81, 1 => 1 ), array( 0 => 81, 1 => 2 ), array( 0 => 103, 1 => 1 ), array( 0 => 103, 1 => 1 ), array( 0 => 103, 1 => 3 ), array( 0 => 99, 1 => 2 ), array( 0 => 105, 1 => 0 ), array( 0 => 105, 1 => 1 ), array( 0 => 104, 1 => 1 ), array( 0 => 104, 1 => 2 ), array( 0 => 106, 1 => 3 ), array( 0 => 106, 1 => 3 ), array( 0 => 106, 1 => 5 ), array( 0 => 106, 1 => 6 ), array( 0 => 106, 1 => 2 ), array( 0 => 92, 1 => 5 ), array( 0 => 107, 1 => 4 ), array( 0 => 107, 1 => 4 ), array( 0 => 108, 1 => 3 ), array( 0 => 108, 1 => 1 ), array( 0 => 108, 1 => 0 ), array( 0 => 77, 1 => 3 ), array( 0 => 77, 1 => 2 ), array( 0 => 109, 1 => 3 ), array( 0 => 109, 1 => 2 ), array( 0 => 82, 1 => 2 ), array( 0 => 82, 1 => 0 ), array( 0 => 110, 1 => 2 ), array( 0 => 110, 1 => 3 ), array( 0 => 110, 1 => 2 ), array( 0 => 95, 1 => 1 ), array( 0 => 95, 1 => 2 ), array( 0 => 95, 1 => 1 ), array( 0 => 95, 1 => 2 ), array( 0 => 95, 1 => 2 ), array( 0 => 95, 1 => 3 ), array( 0 => 87, 1 => 1 ), array( 0 => 87, 1 => 1 ), array( 0 => 86, 1 => 1 ), array( 0 => 88, 1 => 1 ), array( 0 => 91, 1 => 1 ), array( 0 => 96, 1 => 3 ), array( 0 => 96, 1 => 3 ), array( 0 => 111, 1 => 1 ), array( 0 => 111, 1 => 3 ), array( 0 => 111, 1 => 2 ), array( 0 => 111, 1 => 0 ), array( 0 => 112, 1 => 3 ), array( 0 => 112, 1 => 3 ), array( 0 => 112, 1 => 1 ), array( 0 => 94, 1 => 2 ), array( 0 => 94, 1 => 3 ), array( 0 => 113, 1 => 2 ), array( 0 => 113, 1 => 1 ), array( 0 => 114, 1 => 3 ), array( 0 => 114, 1 => 3 ), array( 0 => 114, 1 => 1 ), array( 0 => 114, 1 => 3 ), array( 0 => 114, 1 => 3 ), array( 0 => 114, 1 => 1 ), array( 0 => 114, 1 => 1 ), ); public static $yyReduceMap = array( 0 => 0, 1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 21 => 6, 22 => 6, 23 => 6, 35 => 6, 55 => 6, 56 => 6, 64 => 6, 65 => 6, 66 => 6, 84 => 6, 89 => 6, 90 => 6, 95 => 6, 99 => 6, 100 => 6, 104 => 6, 105 => 6, 107 => 6, 123 => 6, 151 => 6, 187 => 6, 193 => 6, 7 => 7, 8 => 8, 150 => 8, 9 => 9, 11 => 11, 12 => 12, 13 => 13, 14 => 14, 15 => 15, 16 => 16, 17 => 17, 18 => 18, 19 => 19, 20 => 20, 24 => 24, 25 => 25, 26 => 26, 27 => 27, 28 => 28, 29 => 29, 30 => 30, 32 => 30, 31 => 31, 33 => 33, 34 => 34, 36 => 36, 37 => 37, 38 => 38, 39 => 39, 40 => 40, 41 => 41, 42 => 42, 43 => 43, 44 => 44, 45 => 45, 46 => 46, 47 => 47, 48 => 48, 49 => 49, 58 => 49, 111 => 49, 112 => 49, 163 => 49, 167 => 49, 171 => 49, 173 => 49, 50 => 50, 113 => 50, 164 => 50, 170 => 50, 51 => 51, 52 => 52, 53 => 52, 54 => 54, 146 => 54, 57 => 57, 59 => 59, 60 => 60, 61 => 60, 62 => 62, 63 => 63, 67 => 67, 68 => 68, 69 => 69, 70 => 70, 71 => 70, 72 => 72, 73 => 73, 74 => 74, 75 => 75, 76 => 76, 77 => 77, 78 => 78, 79 => 79, 80 => 80, 81 => 81, 82 => 81, 83 => 83, 85 => 85, 87 => 85, 88 => 85, 126 => 85, 86 => 86, 91 => 91, 92 => 92, 93 => 93, 94 => 94, 96 => 96, 97 => 97, 98 => 97, 101 => 101, 102 => 102, 103 => 103, 106 => 106, 108 => 108, 109 => 109, 110 => 109, 162 => 109, 114 => 114, 115 => 115, 116 => 116, 117 => 117, 118 => 118, 119 => 119, 120 => 120, 121 => 121, 122 => 122, 124 => 124, 125 => 125, 127 => 127, 190 => 127, 128 => 128, 129 => 129, 130 => 130, 131 => 131, 132 => 132, 133 => 133, 141 => 133, 134 => 134, 135 => 135, 136 => 136, 137 => 136, 139 => 136, 140 => 136, 138 => 138, 142 => 142, 143 => 143, 144 => 144, 194 => 144, 145 => 145, 147 => 147, 148 => 148, 149 => 149, 152 => 152, 153 => 153, 154 => 154, 155 => 155, 156 => 156, 157 => 157, 158 => 158, 159 => 159, 160 => 160, 161 => 161, 165 => 165, 166 => 166, 168 => 168, 169 => 169, 172 => 172, 174 => 174, 175 => 175, 176 => 176, 177 => 177, 178 => 178, 179 => 179, 180 => 180, 181 => 181, 182 => 182, 183 => 183, 184 => 184, 185 => 185, 186 => 185, 188 => 188, 189 => 189, 191 => 191, 192 => 192, 195 => 195, 196 => 196, 197 => 197, 198 => 198, 201 => 198, 199 => 199, 202 => 199, 200 => 200, 203 => 203, 204 => 204, ); // line 245 "src/Parser/TemplateParser.y" public function yy_r0(){ $this->root_buffer->prepend_array($this, $this->template_prefix); $this->root_buffer->append_array($this, $this->template_postfix); $this->_retvalue = $this->root_buffer->to_smarty_php($this); } // line 252 "src/Parser/TemplateParser.y" public function yy_r1(){ $text = $this->yystack[ $this->yyidx + 0 ]->minor; if ((string)$text == '') { $this->current_buffer->append_subtree($this, null); } $this->current_buffer->append_subtree($this, new \Smarty\ParseTree\Text($text, $this->strip)); } // line 262 "src/Parser/TemplateParser.y" public function yy_r2(){ $this->strip = true; } // line 266 "src/Parser/TemplateParser.y" public function yy_r3(){ $this->strip = false; } // line 271 "src/Parser/TemplateParser.y" public function yy_r4(){ $this->current_buffer->append_subtree($this, new \Smarty\ParseTree\Text($this->yystack[$this->yyidx + -1]->minor)); } // line 276 "src/Parser/TemplateParser.y" public function yy_r5(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.$this->yystack[$this->yyidx + -1]->minor; } // line 279 "src/Parser/TemplateParser.y" public function yy_r6(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } // line 283 "src/Parser/TemplateParser.y" public function yy_r7(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } // line 288 "src/Parser/TemplateParser.y" public function yy_r8(){ $this->_retvalue = ''; } // line 292 "src/Parser/TemplateParser.y" public function yy_r9(){ $this->current_buffer->append_subtree($this, $this->mergePrefixCode($this->yystack[$this->yyidx + 0]->minor)); $this->compiler->has_variable_string = false; $this->block_nesting_level = $this->compiler->getTagStackCount(); } // line 302 "src/Parser/TemplateParser.y" public function yy_r11(){ $var = trim(substr($this->yystack[$this->yyidx + 0]->minor, $this->compiler->getLdelLength(), -$this->compiler->getRdelLength()), ' $'); $attributes = []; if (preg_match('/^(.*)(\s+nocache)$/', $var, $match)) { $attributes[] = 'nocache'; $var = $match[1]; } $this->compiler->triggerTagNoCache($var); $this->_retvalue = $this->compiler->compilePrintExpression('$_smarty_tpl->getValue(\''.$var.'\')', $attributes); } // line 314 "src/Parser/TemplateParser.y" public function yy_r12(){ $tag = trim(substr($this->yystack[$this->yyidx + 0]->minor, $this->compiler->getLdelLength(), -$this->compiler->getRdelLength())); if ($tag == 'strip') { $this->strip = true; $this->_retvalue = null; } else { if (defined($tag)) { if ($this->security) { $this->security->isTrustedConstant($tag, $this->compiler); } $this->_retvalue = $this->compiler->compilePrintExpression($tag); } else { if (preg_match('/^(.*)(\s+nocache)$/', $tag, $match)) { $this->_retvalue = $this->compiler->compileTag($match[1],array('\'nocache\'')); } else { $this->_retvalue = $this->compiler->compileTag($tag,array()); } } } } // line 335 "src/Parser/TemplateParser.y" public function yy_r13(){ $j = strrpos($this->yystack[$this->yyidx + 0]->minor,'.'); if ($this->yystack[$this->yyidx + 0]->minor[$j+1] == 'c') { // {$smarty.block.child} $this->_retvalue = $this->compiler->compileChildBlock(); } else { // {$smarty.block.parent} $this->_retvalue = $this->compiler->compileParentBlock(); } } // line 346 "src/Parser/TemplateParser.y" public function yy_r14(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; } // line 350 "src/Parser/TemplateParser.y" public function yy_r15(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; } // line 354 "src/Parser/TemplateParser.y" public function yy_r16(){ $this->_retvalue = $this->compiler->compilePrintExpression($this->yystack[$this->yyidx + 0]->minor[0], $this->yystack[$this->yyidx + 0]->minor[1]); } // line 363 "src/Parser/TemplateParser.y" public function yy_r17(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array(array('value'=>$this->yystack[$this->yyidx + 0]->minor[0]),array('var'=>'\''.substr($this->yystack[$this->yyidx + -1]->minor,1).'\'')),$this->yystack[$this->yyidx + 0]->minor[1])); } // line 367 "src/Parser/TemplateParser.y" public function yy_r18(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array(array('value'=>$this->yystack[$this->yyidx + 0]->minor[0]),array('var'=>$this->yystack[$this->yyidx + -1]->minor['var'])),$this->yystack[$this->yyidx + 0]->minor[1]),array('smarty_internal_index'=>$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index'])); } // line 371 "src/Parser/TemplateParser.y" public function yy_r19(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } // line 375 "src/Parser/TemplateParser.y" public function yy_r20(){ $this->_retvalue = array($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } // line 390 "src/Parser/TemplateParser.y" public function yy_r24(){ if (defined($this->yystack[$this->yyidx + -1]->minor)) { if ($this->security) { $this->security->isTrustedConstant($this->yystack[$this->yyidx + -1]->minor, $this->compiler); } $this->_retvalue = $this->compiler->compilePrintExpression($this->yystack[$this->yyidx + -1]->minor, $this->yystack[$this->yyidx + 0]->minor); } else { $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } } // line 400 "src/Parser/TemplateParser.y" public function yy_r25(){ if (defined($this->yystack[$this->yyidx + 0]->minor)) { if ($this->security) { $this->security->isTrustedConstant($this->yystack[$this->yyidx + 0]->minor, $this->compiler); } $this->_retvalue = $this->compiler->compilePrintExpression($this->yystack[$this->yyidx + 0]->minor); } else { $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor,array()); } } // line 413 "src/Parser/TemplateParser.y" public function yy_r26(){ if (defined($this->yystack[$this->yyidx + -2]->minor)) { if ($this->security) { $this->security->isTrustedConstant($this->yystack[$this->yyidx + -2]->minor, $this->compiler); } $this->_retvalue = $this->compiler->compilePrintExpression($this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -1]->minor); } else { $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,$this->yystack[$this->yyidx + 0]->minor, array('modifierlist'=>$this->yystack[$this->yyidx + -1]->minor)); } } // line 425 "src/Parser/TemplateParser.y" public function yy_r27(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor,array('object_method'=>$this->yystack[$this->yyidx + -1]->minor)); } // line 430 "src/Parser/TemplateParser.y" public function yy_r28(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + 0]->minor,array('modifierlist'=>$this->yystack[$this->yyidx + -1]->minor, 'object_method'=>$this->yystack[$this->yyidx + -2]->minor)); } // line 435 "src/Parser/TemplateParser.y" public function yy_r29(){ $tag = trim(substr($this->yystack[$this->yyidx + -1]->minor,$this->compiler->getLdelLength())); $this->_retvalue = $this->compiler->compileTag(($tag === 'else if')? 'elseif' : $tag,array(),array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); } // line 440 "src/Parser/TemplateParser.y" public function yy_r30(){ $tag = trim(substr($this->yystack[$this->yyidx + -2]->minor,$this->compiler->getLdelLength())); $this->_retvalue = $this->compiler->compileTag(($tag === 'else if')? 'elseif' : $tag,$this->yystack[$this->yyidx + 0]->minor,array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); } // line 445 "src/Parser/TemplateParser.y" public function yy_r31(){ $tag = trim(substr($this->yystack[$this->yyidx + -1]->minor,$this->compiler->getLdelLength())); $this->_retvalue = $this->compiler->compileTag(($tag === 'else if')? 'elseif' : $tag,array(),array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); } // line 456 "src/Parser/TemplateParser.y" public function yy_r33(){ $this->_retvalue = $this->compiler->compileTag('for',array_merge($this->yystack[$this->yyidx + 0]->minor,array(array('start'=>$this->yystack[$this->yyidx + -6]->minor),array('ifexp'=>$this->yystack[$this->yyidx + -4]->minor),array('var'=>$this->yystack[$this->yyidx + -2]->minor),array('step'=>$this->yystack[$this->yyidx + -1]->minor))),1); } // line 460 "src/Parser/TemplateParser.y" public function yy_r34(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; } // line 468 "src/Parser/TemplateParser.y" public function yy_r36(){ $this->_retvalue = $this->compiler->compileTag('for',array_merge($this->yystack[$this->yyidx + 0]->minor,array(array('start'=>$this->yystack[$this->yyidx + -3]->minor),array('to'=>$this->yystack[$this->yyidx + -1]->minor))),0); } // line 472 "src/Parser/TemplateParser.y" public function yy_r37(){ $this->_retvalue = $this->compiler->compileTag('for',array_merge($this->yystack[$this->yyidx + 0]->minor,array(array('start'=>$this->yystack[$this->yyidx + -5]->minor),array('to'=>$this->yystack[$this->yyidx + -3]->minor),array('step'=>$this->yystack[$this->yyidx + -1]->minor))),0); } // line 477 "src/Parser/TemplateParser.y" public function yy_r38(){ $this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + 0]->minor,array(array('from'=>$this->yystack[$this->yyidx + -3]->minor),array('item'=>$this->yystack[$this->yyidx + -1]->minor)))); } // line 481 "src/Parser/TemplateParser.y" public function yy_r39(){ $this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + 0]->minor,array(array('from'=>$this->yystack[$this->yyidx + -5]->minor),array('item'=>$this->yystack[$this->yyidx + -1]->minor),array('key'=>$this->yystack[$this->yyidx + -3]->minor)))); } // line 484 "src/Parser/TemplateParser.y" public function yy_r40(){ $this->_retvalue = $this->compiler->compileTag('foreach',$this->yystack[$this->yyidx + 0]->minor); } // line 489 "src/Parser/TemplateParser.y" public function yy_r41(){ $this->_retvalue = $this->compiler->compileTag('setfilter',array(),array('modifier_list'=>array(array_merge(array($this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)))); } // line 493 "src/Parser/TemplateParser.y" public function yy_r42(){ $this->_retvalue = $this->compiler->compileTag('setfilter',array(),array('modifier_list'=>array_merge(array(array_merge(array($this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)),$this->yystack[$this->yyidx + 0]->minor))); } // line 499 "src/Parser/TemplateParser.y" public function yy_r43(){ $tag = trim(substr($this->yystack[$this->yyidx + 0]->minor, $this->compiler->getLdelLength(), -$this->compiler->getRdelLength()), ' /'); if ($tag === 'strip') { $this->strip = false; $this->_retvalue = null; } else { $this->_retvalue = $this->compiler->compileTag($tag.'close',array()); } } // line 508 "src/Parser/TemplateParser.y" public function yy_r44(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor.'close',array()); } // line 512 "src/Parser/TemplateParser.y" public function yy_r45(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',array(),array('modifier_list'=>$this->yystack[$this->yyidx + 0]->minor)); } // line 517 "src/Parser/TemplateParser.y" public function yy_r46(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array(),array('object_method'=>$this->yystack[$this->yyidx + 0]->minor)); } // line 521 "src/Parser/TemplateParser.y" public function yy_r47(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',array(),array('object_method'=>$this->yystack[$this->yyidx + -1]->minor, 'modifier_list'=>$this->yystack[$this->yyidx + 0]->minor)); } // line 529 "src/Parser/TemplateParser.y" public function yy_r48(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } // line 535 "src/Parser/TemplateParser.y" public function yy_r49(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } // line 540 "src/Parser/TemplateParser.y" public function yy_r50(){ $this->_retvalue = array(); } // line 545 "src/Parser/TemplateParser.y" public function yy_r51(){ if (defined($this->yystack[$this->yyidx + 0]->minor)) { if ($this->security) { $this->security->isTrustedConstant($this->yystack[$this->yyidx + 0]->minor, $this->compiler); } $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); } else { $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>'\''.$this->yystack[$this->yyidx + 0]->minor.'\''); } } // line 556 "src/Parser/TemplateParser.y" public function yy_r52(){ $this->_retvalue = array(trim($this->yystack[$this->yyidx + -1]->minor," =\n\r\t")=>$this->yystack[$this->yyidx + 0]->minor); } // line 564 "src/Parser/TemplateParser.y" public function yy_r54(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } // line 576 "src/Parser/TemplateParser.y" public function yy_r57(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); } // line 589 "src/Parser/TemplateParser.y" public function yy_r59(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; } // line 594 "src/Parser/TemplateParser.y" public function yy_r60(){ $this->_retvalue = array('var' => '\''.substr($this->yystack[$this->yyidx + -2]->minor,1).'\'', 'value'=>$this->yystack[$this->yyidx + 0]->minor); } // line 601 "src/Parser/TemplateParser.y" public function yy_r62(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); } // line 605 "src/Parser/TemplateParser.y" public function yy_r63(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; } // line 630 "src/Parser/TemplateParser.y" public function yy_r67(){ $this->_retvalue = '$_smarty_tpl->getVariable(\''. substr($this->yystack[$this->yyidx + 0]->minor,1) .'\')->preIncDec(\'' . $this->yystack[$this->yyidx + -1]->minor . '\')'; } // line 635 "src/Parser/TemplateParser.y" public function yy_r68(){ $this->_retvalue = '$_smarty_tpl->getVariable(\''. substr($this->yystack[$this->yyidx + -1]->minor,1) .'\')->postIncDec(\'' . $this->yystack[$this->yyidx + 0]->minor . '\')'; } // line 640 "src/Parser/TemplateParser.y" public function yy_r69(){ $this->_retvalue = '$_smarty_tpl->getStreamVariable(\''.substr($this->yystack[$this->yyidx + -2]->minor,1).'://' . $this->yystack[$this->yyidx + 0]->minor . '\')'; } // line 645 "src/Parser/TemplateParser.y" public function yy_r70(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . trim($this->yystack[$this->yyidx + -1]->minor) . $this->yystack[$this->yyidx + 0]->minor; } // line 655 "src/Parser/TemplateParser.y" public function yy_r72(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor['pre']. $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor['op'].$this->yystack[$this->yyidx + 0]->minor .')'; } // line 659 "src/Parser/TemplateParser.y" public function yy_r73(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } // line 663 "src/Parser/TemplateParser.y" public function yy_r74(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor . $this->yystack[$this->yyidx + -1]->minor . ')'; } // line 667 "src/Parser/TemplateParser.y" public function yy_r75(){ static $isin = [ 'isin' => 'in_array(', 'isnotin' => '!in_array(', ]; $op = strtolower(str_replace(' ', '', $this->yystack[$this->yyidx + 0]->minor)); $this->_retvalue = $isin[$op]; } // line 676 "src/Parser/TemplateParser.y" public function yy_r76(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; } // line 680 "src/Parser/TemplateParser.y" public function yy_r77(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; } // line 685 "src/Parser/TemplateParser.y" public function yy_r78(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor . ',' . $this->yystack[$this->yyidx + -2]->minor . ') '; } // line 690 "src/Parser/TemplateParser.y" public function yy_r79(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.' ?? '.$this->yystack[$this->yyidx + 0]->minor; } // line 697 "src/Parser/TemplateParser.y" public function yy_r80(){ $this->compiler->triggerTagNoCache(substr($this->yystack[$this->yyidx + -2]->minor,1)); $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.' ? $_smarty_tpl->getValue(\''.substr($this->yystack[$this->yyidx + -2]->minor,1).'\') : '.$this->yystack[$this->yyidx + 0]->minor; } // line 702 "src/Parser/TemplateParser.y" public function yy_r81(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; } // line 711 "src/Parser/TemplateParser.y" public function yy_r83(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.' ?: '.$this->yystack[$this->yyidx + 0]->minor; } // line 721 "src/Parser/TemplateParser.y" public function yy_r85(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } // line 726 "src/Parser/TemplateParser.y" public function yy_r86(){ $this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; } // line 747 "src/Parser/TemplateParser.y" public function yy_r91(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } // line 751 "src/Parser/TemplateParser.y" public function yy_r92(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'; } // line 755 "src/Parser/TemplateParser.y" public function yy_r93(){ $this->_retvalue = '.'.$this->yystack[$this->yyidx + 0]->minor; } // line 760 "src/Parser/TemplateParser.y" public function yy_r94(){ if (defined($this->yystack[$this->yyidx + 0]->minor)) { if ($this->security) { $this->security->isTrustedConstant($this->yystack[$this->yyidx + 0]->minor, $this->compiler); } $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } else { $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } } // line 777 "src/Parser/TemplateParser.y" public function yy_r96(){ $this->_retvalue = '('. $this->yystack[$this->yyidx + -1]->minor .')'; } // line 781 "src/Parser/TemplateParser.y" public function yy_r97(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } // line 799 "src/Parser/TemplateParser.y" public function yy_r101(){ if ($this->security && $this->security->static_classes !== array()) { $this->compiler->trigger_template_error('dynamic static class not allowed by security setting'); } $prefixVar = $this->compiler->getNewPrefixVariable(); if ($this->yystack[$this->yyidx + -2]->minor['var'] === '\'smarty\'') { $this->compiler->appendPrefixCode("compile(array(),$this->compiler,$this->yystack[$this->yyidx + -2]->minor['smarty_internal_index']).';?>'); } else { $this->compiler->triggerTagNoCache($this->yystack[$this->yyidx + -2]->minor['var']); $this->compiler->appendPrefixCode("getValue(" . $this->yystack[$this->yyidx + -2]->minor['var'] . ')'.$this->yystack[$this->yyidx + -2]->minor['smarty_internal_index'].';?>'); } $this->_retvalue = $prefixVar .'::'.$this->yystack[$this->yyidx + 0]->minor[0].$this->yystack[$this->yyidx + 0]->minor[1]; } // line 814 "src/Parser/TemplateParser.y" public function yy_r102(){ $prefixVar = $this->compiler->getNewPrefixVariable(); $tmp = $this->compiler->appendCode('', (string) $this->yystack[$this->yyidx + 0]->minor); $this->compiler->appendPrefixCode($this->compiler->appendCode($tmp, "")); $this->_retvalue = $prefixVar; } // line 821 "src/Parser/TemplateParser.y" public function yy_r103(){ $this->_retvalue = $this->compiler->compileModifier($this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -1]->minor); } // line 834 "src/Parser/TemplateParser.y" public function yy_r106(){ if (!in_array(strtolower($this->yystack[$this->yyidx + -2]->minor), array('self', 'parent')) && (!$this->security || $this->security->isTrustedStaticClassAccess($this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + 0]->minor, $this->compiler))) { if (isset($this->smarty->registered_classes[$this->yystack[$this->yyidx + -2]->minor])) { $this->_retvalue = $this->smarty->registered_classes[$this->yystack[$this->yyidx + -2]->minor].'::'.$this->yystack[$this->yyidx + 0]->minor[0].$this->yystack[$this->yyidx + 0]->minor[1]; } else { $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor[0].$this->yystack[$this->yyidx + 0]->minor[1]; } } else { $this->compiler->trigger_template_error ('static class \''.$this->yystack[$this->yyidx + -2]->minor.'\' is undefined or not allowed by security setting'); } } // line 853 "src/Parser/TemplateParser.y" public function yy_r108(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } // line 861 "src/Parser/TemplateParser.y" public function yy_r109(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -2]->minor,array($this->yystack[$this->yyidx + 0]->minor)); } // line 888 "src/Parser/TemplateParser.y" public function yy_r114(){ $this->compiler->triggerTagNoCache(substr($this->yystack[$this->yyidx + 0]->minor,1)); $this->_retvalue = array('$_smarty_tpl->hasVariable(\''.substr($this->yystack[$this->yyidx + 0]->minor,1).'\')','$_smarty_tpl->getValue(\''.substr($this->yystack[$this->yyidx + 0]->minor,1).'\')'); } // line 892 "src/Parser/TemplateParser.y" public function yy_r115(){ if ($this->yystack[$this->yyidx + 0]->minor['var'] === '\'smarty\'') { $smarty_var = (new \Smarty\Compile\SpecialVariableCompiler())->compile(array(),$this->compiler,$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']); $this->_retvalue = array('true', $smarty_var); } else { // used for array reset,next,prev,end,current $this->last_variable = $this->yystack[$this->yyidx + 0]->minor['var']; $this->last_index = $this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']; $this->compiler->triggerTagNoCache($this->yystack[$this->yyidx + 0]->minor['var']); $this->_retvalue = array('true', '$_smarty_tpl->getValue(' . $this->yystack[$this->yyidx + 0]->minor['var'] . ')'.$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']); } } // line 906 "src/Parser/TemplateParser.y" public function yy_r116(){ $this->_retvalue = array('true', '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor); } // line 911 "src/Parser/TemplateParser.y" public function yy_r117(){ $this->_retvalue = array('true', $this->yystack[$this->yyidx + 0]->minor); } // line 916 "src/Parser/TemplateParser.y" public function yy_r118(){ $this->_retvalue = $this->compiler->compileConfigVariable('\'' . $this->yystack[$this->yyidx + -1]->minor . '\''); } // line 920 "src/Parser/TemplateParser.y" public function yy_r119(){ $this->_retvalue = '(is_array($tmp = ' . $this->compiler->compileConfigVariable('\'' . $this->yystack[$this->yyidx + -2]->minor . '\'') . ') ? $tmp'.$this->yystack[$this->yyidx + 0]->minor.' :null)'; } // line 924 "src/Parser/TemplateParser.y" public function yy_r120(){ $this->_retvalue = $this->compiler->compileConfigVariable($this->yystack[$this->yyidx + -1]->minor); } // line 928 "src/Parser/TemplateParser.y" public function yy_r121(){ $this->_retvalue = '(is_array($tmp = ' . $this->compiler->compileConfigVariable($this->yystack[$this->yyidx + -2]->minor) . ') ? $tmp'.$this->yystack[$this->yyidx + 0]->minor.' : null)'; } // line 932 "src/Parser/TemplateParser.y" public function yy_r122(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor[1]; } // line 940 "src/Parser/TemplateParser.y" public function yy_r124(){ $this->_retvalue = array('var'=>'\''.substr($this->yystack[$this->yyidx + -1]->minor,1).'\'', 'smarty_internal_index'=>$this->yystack[$this->yyidx + 0]->minor); } // line 943 "src/Parser/TemplateParser.y" public function yy_r125(){ $this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'smarty_internal_index'=>$this->yystack[$this->yyidx + 0]->minor); } // line 956 "src/Parser/TemplateParser.y" public function yy_r127(){ return; } // line 962 "src/Parser/TemplateParser.y" public function yy_r128(){ $this->compiler->triggerTagNoCache(substr($this->yystack[$this->yyidx + 0]->minor,1)); $this->_retvalue = '[$_smarty_tpl->getValue(\''.substr($this->yystack[$this->yyidx + 0]->minor,1).'\')]'; } // line 966 "src/Parser/TemplateParser.y" public function yy_r129(){ $this->compiler->triggerTagNoCache($this->yystack[$this->yyidx + 0]->minor); $this->_retvalue = '[$_smarty_tpl->getValue(' . $this->yystack[$this->yyidx + 0]->minor . ')]'; } // line 971 "src/Parser/TemplateParser.y" public function yy_r130(){ $this->compiler->triggerTagNoCache($this->yystack[$this->yyidx + -2]->minor); $this->_retvalue = '[$_smarty_tpl->getValue(' . $this->yystack[$this->yyidx + -2]->minor . ')->'.$this->yystack[$this->yyidx + 0]->minor.']'; } // line 976 "src/Parser/TemplateParser.y" public function yy_r131(){ $this->_retvalue = '[\''. $this->yystack[$this->yyidx + 0]->minor .'\']'; } // line 980 "src/Parser/TemplateParser.y" public function yy_r132(){ $this->_retvalue = '['. $this->yystack[$this->yyidx + 0]->minor .']'; } // line 985 "src/Parser/TemplateParser.y" public function yy_r133(){ $this->_retvalue = '['. $this->yystack[$this->yyidx + -1]->minor .']'; } // line 990 "src/Parser/TemplateParser.y" public function yy_r134(){ $this->_retvalue = '['.(new \Smarty\Compile\SpecialVariableCompiler())->compile(array(),$this->compiler,'[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; } // line 994 "src/Parser/TemplateParser.y" public function yy_r135(){ $this->_retvalue = '['.(new \Smarty\Compile\SpecialVariableCompiler())->compile(array(),$this->compiler,'[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; } // line 997 "src/Parser/TemplateParser.y" public function yy_r136(){ $this->_retvalue = '['.$this->yystack[$this->yyidx + -1]->minor.']'; } // line 1003 "src/Parser/TemplateParser.y" public function yy_r138(){ $this->compiler->triggerTagNoCache(substr($this->yystack[$this->yyidx + -1]->minor,1)); $this->_retvalue = '[$_smarty_tpl->getValue(\''.substr($this->yystack[$this->yyidx + -1]->minor,1).'\')]'; } // line 1020 "src/Parser/TemplateParser.y" public function yy_r142(){ $this->_retvalue = '[]'; } // line 1030 "src/Parser/TemplateParser.y" public function yy_r143(){ $this->_retvalue = '\''.substr($this->yystack[$this->yyidx + 0]->minor,1).'\''; } // line 1034 "src/Parser/TemplateParser.y" public function yy_r144(){ $this->_retvalue = '\'\''; } // line 1039 "src/Parser/TemplateParser.y" public function yy_r145(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } // line 1047 "src/Parser/TemplateParser.y" public function yy_r147(){ $var = trim(substr($this->yystack[$this->yyidx + 0]->minor, $this->compiler->getLdelLength(), -$this->compiler->getRdelLength()), ' $'); $this->compiler->triggerTagNoCache($var); $this->_retvalue = '$_smarty_tpl->getValue(\''.$var.'\')'; } // line 1054 "src/Parser/TemplateParser.y" public function yy_r148(){ $this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; } // line 1061 "src/Parser/TemplateParser.y" public function yy_r149(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] === '\'smarty\'') { $this->_retvalue = (new \Smarty\Compile\SpecialVariableCompiler())->compile(array(),$this->compiler,$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index']).$this->yystack[$this->yyidx + 0]->minor; } else { $this->compiler->triggerTagNoCache($this->yystack[$this->yyidx + -1]->minor['var']); $this->_retvalue = '$_smarty_tpl->getValue(' . $this->yystack[$this->yyidx + -1]->minor['var'] . ')'.$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index'].$this->yystack[$this->yyidx + 0]->minor; } } // line 1081 "src/Parser/TemplateParser.y" public function yy_r152(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } // line 1086 "src/Parser/TemplateParser.y" public function yy_r153(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } // line 1091 "src/Parser/TemplateParser.y" public function yy_r154(){ if ($this->security && substr($this->yystack[$this->yyidx + -1]->minor,0,1) === '_') { $this->compiler->trigger_template_error (self::ERR1); } $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } // line 1098 "src/Parser/TemplateParser.y" public function yy_r155(){ if ($this->security) { $this->compiler->trigger_template_error (self::ERR2); } $this->compiler->triggerTagNoCache($this->yystack[$this->yyidx + -1]->minor); $this->_retvalue = '->{$_smarty_tpl->getValue(' . $this->yystack[$this->yyidx + -1]->minor . ')'.$this->yystack[$this->yyidx + 0]->minor.'}'; } // line 1106 "src/Parser/TemplateParser.y" public function yy_r156(){ if ($this->security) { $this->compiler->trigger_template_error (self::ERR2); } $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } // line 1113 "src/Parser/TemplateParser.y" public function yy_r157(){ if ($this->security) { $this->compiler->trigger_template_error (self::ERR2); } $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } // line 1121 "src/Parser/TemplateParser.y" public function yy_r158(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; } // line 1129 "src/Parser/TemplateParser.y" public function yy_r159(){ if ($this->yystack[$this->yyidx + -4]->minor == 'isset') { $this->_retvalue = '(true'; if (count($this->yystack[$this->yyidx + -2]->minor) == 0) { throw new CompilerException("Invalid number of arguments for isset. isset expects at least one parameter."); } foreach ($this->yystack[$this->yyidx + -2]->minor as $value) { if (is_array($value)) { $this->_retvalue .= ' && (' . $value[0] . ' && null !== (' . $value[1] . ' ?? null))'; } else { $this->_retvalue .= ' && (' . $value . ' !== null)'; } } $this->_retvalue .= ')' . $this->yystack[$this->yyidx + 0]->minor; } elseif ($this->yystack[$this->yyidx + -4]->minor == 'empty') { if (count($this->yystack[$this->yyidx + -2]->minor) != 1) { throw new CompilerException("Invalid number of arguments for empty. empty expects at exactly one parameter."); } if (is_array($this->yystack[$this->yyidx + -2]->minor[0])) { $this->_retvalue = '( !' . $this->yystack[$this->yyidx + -2]->minor[0][0] . ' || empty(' . $this->yystack[$this->yyidx + -2]->minor[0][1] . '))' . $this->yystack[$this->yyidx + 0]->minor; } else { $this->_retvalue = 'false == ' . $this->yystack[$this->yyidx + -2]->minor[0] . $this->yystack[$this->yyidx + 0]->minor; } } else { $p = array(); foreach ($this->yystack[$this->yyidx + -2]->minor as $value) { if (is_array($value)) { $p[] = $value[1]; } else { $p[] = $value; } } $this->_retvalue = $this->compiler->compileModifierInExpression($this->yystack[$this->yyidx + -4]->minor, $p) . $this->yystack[$this->yyidx + 0]->minor; } } // line 1170 "src/Parser/TemplateParser.y" public function yy_r160(){ if ($this->security && substr($this->yystack[$this->yyidx + -3]->minor,0,1) === '_') { $this->compiler->trigger_template_error (self::ERR1); } $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . '('. implode(',',$this->yystack[$this->yyidx + -1]->minor) .')'; } // line 1177 "src/Parser/TemplateParser.y" public function yy_r161(){ if ($this->security) { $this->compiler->trigger_template_error (self::ERR2); } $prefixVar = $this->compiler->getNewPrefixVariable(); $this->compiler->triggerTagNoCache(substr($this->yystack[$this->yyidx + -3]->minor,1)); $this->compiler->appendPrefixCode("getValue('".substr($this->yystack[$this->yyidx + -3]->minor,1).'\')'.';?>'); $this->_retvalue = $prefixVar .'('. implode(',',$this->yystack[$this->yyidx + -1]->minor) .')'; } // line 1206 "src/Parser/TemplateParser.y" public function yy_r165(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -2]->minor,array(array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor))); } // line 1210 "src/Parser/TemplateParser.y" public function yy_r166(){ $this->_retvalue = array(array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor)); } // line 1218 "src/Parser/TemplateParser.y" public function yy_r168(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } // line 1226 "src/Parser/TemplateParser.y" public function yy_r169(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } // line 1239 "src/Parser/TemplateParser.y" public function yy_r172(){ $this->_retvalue = array(trim($this->yystack[$this->yyidx + -1]->minor).$this->yystack[$this->yyidx + 0]->minor); } // line 1248 "src/Parser/TemplateParser.y" public function yy_r174(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor, '', 'method'); } // line 1253 "src/Parser/TemplateParser.y" public function yy_r175(){ $this->_retvalue = array($this->yystack[$this->yyidx + -1]->minor, $this->yystack[$this->yyidx + 0]->minor, 'method'); } // line 1258 "src/Parser/TemplateParser.y" public function yy_r176(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor, ''); } // line 1263 "src/Parser/TemplateParser.y" public function yy_r177(){ $this->_retvalue = array($this->yystack[$this->yyidx + -1]->minor, $this->yystack[$this->yyidx + 0]->minor); } // line 1268 "src/Parser/TemplateParser.y" public function yy_r178(){ $this->_retvalue = array($this->yystack[$this->yyidx + -1]->minor, $this->yystack[$this->yyidx + 0]->minor, 'property'); } // line 1273 "src/Parser/TemplateParser.y" public function yy_r179(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor, 'property'); } // line 1279 "src/Parser/TemplateParser.y" public function yy_r180(){ $this->_retvalue = ' '. trim($this->yystack[$this->yyidx + 0]->minor) . ' '; } // line 1283 "src/Parser/TemplateParser.y" public function yy_r181(){ static $lops = array( 'eq' => ' == ', 'ne' => ' != ', 'neq' => ' != ', 'gt' => ' > ', 'ge' => ' >= ', 'gte' => ' >= ', 'lt' => ' < ', 'le' => ' <= ', 'lte' => ' <= ', 'mod' => ' % ', 'and' => ' && ', 'or' => ' || ', 'xor' => ' xor ', ); $op = strtolower(preg_replace('/\s*/', '', $this->yystack[$this->yyidx + 0]->minor)); $this->_retvalue = $lops[$op]; } // line 1302 "src/Parser/TemplateParser.y" public function yy_r182(){ static $tlops = array( 'isdivby' => array('op' => ' % ', 'pre' => '!('), 'isnotdivby' => array('op' => ' % ', 'pre' => '('), 'isevenby' => array('op' => ' / ', 'pre' => '!(1 & '), 'isnotevenby' => array('op' => ' / ', 'pre' => '(1 & '), 'isoddby' => array('op' => ' / ', 'pre' => '(1 & '), 'isnotoddby' => array('op' => ' / ', 'pre' => '!(1 & '), ); $op = strtolower(preg_replace('/\s*/', '', $this->yystack[$this->yyidx + 0]->minor)); $this->_retvalue = $tlops[$op]; } // line 1315 "src/Parser/TemplateParser.y" public function yy_r183(){ static $scond = array ( 'iseven' => '!(1 & ', 'isnoteven' => '(1 & ', 'isodd' => '(1 & ', 'isnotodd' => '!(1 & ', ); $op = strtolower(str_replace(' ', '', $this->yystack[$this->yyidx + 0]->minor)); $this->_retvalue = $scond[$op]; } // line 1326 "src/Parser/TemplateParser.y" public function yy_r184(){ $this->_retvalue = 'preg_match('; } // line 1333 "src/Parser/TemplateParser.y" public function yy_r185(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; } // line 1344 "src/Parser/TemplateParser.y" public function yy_r188(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; } // line 1348 "src/Parser/TemplateParser.y" public function yy_r189(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.','; } // line 1356 "src/Parser/TemplateParser.y" public function yy_r191(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; } // line 1360 "src/Parser/TemplateParser.y" public function yy_r192(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; } // line 1376 "src/Parser/TemplateParser.y" public function yy_r195(){ $this->compiler->leaveDoubleQuote(); $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor->to_smarty_php($this); } // line 1382 "src/Parser/TemplateParser.y" public function yy_r196(){ $this->yystack[$this->yyidx + -1]->minor->append_subtree($this, $this->yystack[$this->yyidx + 0]->minor); $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; } // line 1387 "src/Parser/TemplateParser.y" public function yy_r197(){ $this->_retvalue = new Dq($this, $this->yystack[$this->yyidx + 0]->minor); } // line 1391 "src/Parser/TemplateParser.y" public function yy_r198(){ $this->_retvalue = new Code('(string)'.$this->yystack[$this->yyidx + -1]->minor); } // line 1395 "src/Parser/TemplateParser.y" public function yy_r199(){ $this->_retvalue = new Code('(string)('.$this->yystack[$this->yyidx + -1]->minor.')'); } // line 1399 "src/Parser/TemplateParser.y" public function yy_r200(){ $this->_retvalue = new Code('(string)$_smarty_tpl->getValue(\''. substr($this->yystack[$this->yyidx + 0]->minor,1) .'\')'); } // line 1411 "src/Parser/TemplateParser.y" public function yy_r203(){ $this->_retvalue = new Tag($this, $this->yystack[$this->yyidx + 0]->minor); } // line 1415 "src/Parser/TemplateParser.y" public function yy_r204(){ $this->_retvalue = new DqContent($this->yystack[$this->yyidx + 0]->minor); } private $_retvalue; public function yy_reduce($yyruleno) { if ($this->yyTraceFILE && $yyruleno >= 0 && $yyruleno < count(self::$yyRuleName)) { fprintf($this->yyTraceFILE, "%sReduce (%d) [%s].\n", $this->yyTracePrompt, $yyruleno, self::$yyRuleName[$yyruleno]); } $this->_retvalue = $yy_lefthand_side = null; if (isset(self::$yyReduceMap[$yyruleno])) { // call the action $this->_retvalue = null; $this->{'yy_r' . self::$yyReduceMap[$yyruleno]}(); $yy_lefthand_side = $this->_retvalue; } $yygoto = self::$yyRuleInfo[$yyruleno][0]; $yysize = self::$yyRuleInfo[$yyruleno][1]; $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 (!$this->yyTraceFILE && $yysize) { $this->yyidx++; $x = (object) ['stateno' => null, 'major' => null, 'minor' => null]; $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(); } } public function yy_parse_failed() { if ($this->yyTraceFILE) { fprintf($this->yyTraceFILE, "%sFail!\n", $this->yyTracePrompt); } while ($this->yyidx >= 0) { $this->yy_pop_parser_stack(); } } public function yy_syntax_error($yymajor, $TOKEN) { // line 225 "src/Parser/TemplateParser.y" $this->internalError = true; $this->yymajor = $yymajor; $this->compiler->trigger_template_error(); } public function yy_accept() { if ($this->yyTraceFILE) { fprintf($this->yyTraceFILE, "%sAccept!\n", $this->yyTracePrompt); } while ($this->yyidx >= 0) { $this->yy_pop_parser_stack(); } // line 218 "src/Parser/TemplateParser.y" $this->successful = !$this->internalError; $this->internalError = false; $this->retvalue = $this->_retvalue; } public function doParse($yymajor, $yytokenvalue) { $yyerrorhit = 0; /* True if yymajor has invoked an error */ if ($this->yyidx === null || $this->yyidx < 0) { $this->yyidx = 0; $this->yyerrcnt = -1; $x = (object) ['stateno' => null, 'major' => null, 'minor' => null]; $x->stateno = 0; $x->major = 0; $this->yystack = array(); $this->yystack[] = $x; } $yyendofinput = ($yymajor==0); if ($this->yyTraceFILE) { fprintf($this->yyTraceFILE, "%sInput %s\n", $this->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 ($this->yyTraceFILE) { fprintf($this->yyTraceFILE, "%sSyntax Error!\n", $this->yyTracePrompt); } if (self::YYERRORSYMBOL) { if ($this->yyerrcnt < 0) { $this->yy_syntax_error($yymajor, $yytokenvalue); } $yymx = $this->yystack[$this->yyidx]->major; if ($yymx === self::YYERRORSYMBOL || $yyerrorhit) { if ($this->yyTraceFILE) { fprintf($this->yyTraceFILE, "%sDiscard input token %s\n", $this->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 { 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); } }