From ec449734c327b9c6d940f366da143c6f172a0b27 Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Sat, 23 May 2015 18:56:00 +0200 Subject: [PATCH] - improvement on php_handling to allow very large PHP sections, better error handling - improvement allow extreme large comment sections (forum 25538) --- change_log.txt | 4 + lexer/smarty_internal_templatelexer.plex | 230 ++- lexer/smarty_internal_templateparser.y | 63 +- libs/Smarty.class.php | 2 +- .../smarty_internal_compile_private_php.php | 141 +- .../smarty_internal_parsetree_template.php | 2 +- .../smarty_internal_templatelexer.php | 212 ++- .../smarty_internal_templateparser.php | 1386 +++++++++++------ 8 files changed, 1277 insertions(+), 763 deletions(-) diff --git a/change_log.txt b/change_log.txt index 9166559d..4000a53b 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,8 @@  ===== 3.1.24.dev ===== (xx.xx.2015) + 23.05.2015 + - improvement on php_handling to allow very large PHP sections, better error handling + - improvement allow extreme large comment sections (forum 25538) + 21.05.2015 - bugfix broken PHP 5.2 compatibility when compiling 1 did compile into wrong code https://github.com/smarty-php/smarty/issues/41 diff --git a/lexer/smarty_internal_templatelexer.plex b/lexer/smarty_internal_templatelexer.plex index c6e3d0a9..bd9b7a94 100644 --- a/lexer/smarty_internal_templatelexer.plex +++ b/lexer/smarty_internal_templatelexer.plex @@ -56,12 +56,6 @@ class Smarty_Internal_Templatelexer */ public $taglineno; /** - * flag if parsing php script - * - * @var bool - */ - public $is_phpScript = false; - /** * php code type * * @var string @@ -108,25 +102,35 @@ class Smarty_Internal_Templatelexer * * @var Smarty_Internal_TemplateCompilerBase */ - private $compiler = null; + public $compiler = null; /** * literal tag nesting level * * @var int */ private $literal_cnt = 0; + + /** + * PHP start tag string + * + * @var string + */ + /** * trace file * * @var resource */ public $yyTraceFILE; + /** * trace prompt * * @var string */ + public $yyTracePrompt; + /** * state names * @@ -138,15 +142,22 @@ class Smarty_Internal_Templatelexer /** * storage for assembled token patterns * - * @var sring + * @var string */ private $yy_global_pattern1 = null; + private $yy_global_pattern2 = null; + private $yy_global_pattern3 = null; + private $yy_global_pattern4 = null; + private $yy_global_pattern5 = null; + private $yy_global_pattern6 = null; + private $yy_global_pattern7 = null; + private $yy_global_pattern8 = null; /** @@ -203,25 +214,33 @@ class Smarty_Internal_Templatelexer { $this->data = $data; $this->counter = 0; - if (preg_match('/^\xEF\xBB\xBF/', $this->data, $match)) { + if (preg_match('~^\xEF\xBB\xBF~i', $this->data, $match)) { $this->counter += strlen($match[0]); } $this->line = 1; $this->smarty = $compiler->smarty; $this->compiler = $compiler; - $this->ldel = preg_quote($this->smarty->left_delimiter, '/'); + $this->ldel = preg_quote($this->smarty->left_delimiter, '~'); $this->ldel_length = strlen($this->smarty->left_delimiter); - $this->rdel = preg_quote($this->smarty->right_delimiter, '/'); + $this->rdel = preg_quote($this->smarty->right_delimiter, '~'); $this->rdel_length = strlen($this->smarty->right_delimiter); $this->smarty_token_names['LDEL'] = $this->smarty->left_delimiter; $this->smarty_token_names['RDEL'] = $this->smarty->right_delimiter; } - public function PrintTrace() - { + public function PrintTrace() + { $this->yyTraceFILE = fopen('php://output', 'w'); $this->yyTracePrompt = '
'; - } + } + + /* + * Check if this tag is autoliteral + */ + public function isAutoLiteral () + { + return $this->smarty->auto_literal && isset($this->value[$this->ldel_length]) ? strpos(" \n\t\r", $this->value[$this->ldel_length]) !== false : false; + } /*!lex2php %input $this->data @@ -229,72 +248,67 @@ class Smarty_Internal_Templatelexer %token $this->token %value $this->value %line $this->line - linebreak = /[\t ]*[\r\n]+[\t ]*/ - text = /[\S\s]/ - textdoublequoted = /([^"\\]*?)((?:\\.[^"\\]*?)*?)(?=(SMARTYldel|\$|`\$|"))/ - namespace = /([0-9]*[a-zA-Z_]\w*)?(\\[0-9]*[a-zA-Z_]\w*)+/ - all = /[\S\s]+/ - emptyjava = /\{\}/ - xmltag = /<[?]xml\s+([\S\s]*?)[?]>/ - php = #<[?](?:php(?=[\s=]))?((?:(?![?]>)[^/][^?'"/]*)(([/][*](?:(?![*][/])[\S\s][^*]*)*[*][/])|([/][/][^\n]*)|('[^'\\]*(?:\\.[^'\\]*)*')|("[^"\\]*(?:\\.[^"\\]*)*"))*)*[?]># - asp = #<[%]((?:(?![%]>)[^/][^%'"/]*)(([/][*](?:(?![*][/])[\S\s][^*]*)*[*][/])|([/][/][^\n]*)|('[^'\\]*(?:\\.[^'\\]*)*')|("[^"\\]*(?:\\.[^"\\]*)*"))*)*[%]># - phpscript = #((?:(?!)[^/][^<'"/]*)(([/][*](?:(?![*][/])[\S\s][^*]*)*[*][/])|([/][/][^\n]*)|('[^'\\]*(?:\\.[^'\\]*)*')|("[^"\\]*(?:\\.[^"\\]*)*"))*)*# - phptag = #((SMARTYldel\s*php\s*(.)*?SMARTYrdel)((?:(?!(SMARTYldel\s*[/]php\s*SMARTYrdel))[^/\{][^SMARTYldelFIRST'"/]*)(([/][*](?:(?![*][/])[\S\s][^*]*)*[*][/])|([/][/][^\n]*)|('[^'\\]*(?:\\.[^'\\]*)*')|("[^"\\]*(?:\\.[^"\\]*)*"))*)*(SMARTYldel\s*[/]php\s*SMARTYrdel)?)|(SMARTYldel\s*[/]?php\s*SMARTYrdel)# - unmatched = /((<[?](?:php\s+|=)?)|(])|<[%]|[?][>]|[%][>])/ - slash = /\// - ldel = /SMARTYldel\s*/ - rdel = /\s*SMARTYrdel/ - nocacherdel = /(\s+nocache)?\s*SMARTYrdel/ - notblockid = /(?:(?!block)[0-9]*[a-zA-Z_]\w*)/ - smartyblockchildparent = /[\$]smarty\.block\.(child|parent)/ - integer = /\d+/ - hex = /0[xX][0-9a-fA-F]+/ - math = /\s*([*]{1,2}|[%\/^&]|[<>]{2})\s*/ - comment = /SMARTYldel[*]((?:(?![*]SMARTYrdel)[\S\s][^*]*))*[*]SMARTYrdel/ - incdec = /\+\+|\-\-/ - unimath = /\s*(\+|\-)\s*/ - openP = /\s*\(\s*/ - closeP = /\s*\)/ - openB = /\[\s*/ - closeB = /\s*\]/ - dollar = /\$/ - dot = /\./ - comma = /\s*\,\s*/ - doublecolon = /\:\:/ - colon = /\s*\:\s*/ - at = /@/ - hatch = /#/ - semicolon = /\s*\;\s*/ - equal = /\s*=\s*/ - space = /\s+/ - ptr = /\s*\->\s*/ - aptr = /\s*=>\s*/ - singlequotestring = /'[^'\\]*(?:\\.[^'\\]*)*'/ - backtick = /`/ - vert = /\|/ - qmark = /\s*[?]\s*/ - constant = /([_]+[A-Z0-9][0-9A-Z_]*|[A-Z][0-9A-Z_]*)(?![0-9A-Z_]*[a-z])/ - attr = /\s+[0-9]*[a-zA-Z_][a-zA-Z0-9_\-:]*\s*=\s*/ - id = /[0-9]*[a-zA-Z_]\w*/ - literal = /literal/ - strip = /strip/ - lop = /\s*(([!=][=]{1,2})|([<][=>]?)|([>][=]?)|[&|]{2})\s*/ - tlop = /\s+(eq|ne|neg|gt|ge|gte|lt|le|lte|mod|and|or|xor|(is\s+(not\s+)?(odd|even|div)\s+by))\s+/ - scond = /\s+is\s+(not\s+)?(odd|even)/ - isin = /\s+is\s+in\s+/ - as = /\s+as\s+/ - to = /\s+to\s+/ - step = /\s+step\s+/ - block = /block/ - if = /(if|elseif|else if|while)\s+/ - for = /for\s+/ - foreach = /foreach(?![^\s])/ - setfilter = /setfilter\s+/ - instanceof = /\s+instanceof\s+/ - not = /!\s*|not\s+/ - typecast = /\((int(eger)?|bool(ean)?|float|double|real|string|binary|array|object)\)\s*/ - double_quote = /"/ - single_quote = /'/ + linebreak = ~[\t ]*[\r\n]+[\t ]*~ + text = ~[\S\s]~ + textdoublequoted = ~([^"\\]*?)((?:\\.[^"\\]*?)*?)(?=(SMARTYldel|\$|`\$|"))~ + namespace = ~([0-9]*[a-zA-Z_]\w*)?(\\[0-9]*[a-zA-Z_]\w*)+~ + all = ~[\S\s]+~ + emptyjava = ~[{][}]~ + phpstart = ~(<[?]((php\s+|=)|\s+))|(<[%])|(<[?]xml\s+)|()|([?][>])|([%][>])|(SMARTYldel\s*php(.*?)SMARTYrdel)|(SMARTYldel\s*[/]phpSMARTYrdel)~ + slash = ~[/]~ + ldel = ~SMARTYldel\s*~ + rdel = ~\s*SMARTYrdel~ + nocacherdel = ~(\s+nocache)?\s*SMARTYrdel~ + notblockid = ~(?:(?!block)[0-9]*[a-zA-Z_]\w*)~ + smartyblockchildparent = ~[\$]smarty\.block\.(child|parent)~ + integer = ~\d+~ + hex = ~0[xX][0-9a-fA-F]+~ + math = ~\s*([*]{1,2}|[%/^&]|[<>]{2})\s*~ + comment = ~SMARTYldel[*]~ + incdec = ~([+]|[-]){2}~ + unimath = ~\s*([+]|[-])\s*~ + openP = ~\s*[(]\s*~ + closeP = ~\s*[)]~ + openB = ~\[\s*~ + closeB = ~\s*\]~ + dollar = ~[$]~ + dot = ~[.]~ + comma = ~\s*[,]\s*~ + doublecolon = ~[:]{2}~ + colon = ~\s*[:]\s*~ + at = ~[@]~ + hatch = ~[#]~ + semicolon = ~\s*[;]\s*~ + equal = ~\s*[=]\s*~ + space = ~\s+~ + ptr = ~\s*[-][>]\s*~ + aptr = ~\s*[=][>]\s*~ + singlequotestring = ~'[^'\\]*(?:\\.[^'\\]*)*'~ + backtick = ~[`]~ + vert = ~[|]~ + qmark = ~\s*[?]\s*~ + constant = ~([_]+[A-Z0-9][0-9A-Z_]*|[A-Z][0-9A-Z_]*)(?![0-9A-Z_]*[a-z])~ + attr = ~\s+[0-9]*[a-zA-Z_][a-zA-Z0-9_\-:]*\s*[=]\s*~ + id = ~[0-9]*[a-zA-Z_]\w*~ + literal = ~literal~ + strip = ~strip~ + lop = ~\s*(([!=][=]{1,2})|([<][=>]?)|([>][=]?)|[&|]{2})\s*~ + tlop = ~\s+(eq|ne|neg|gt|ge|gte|lt|le|lte|mod|and|or|xor|(is\s+(not\s+)?(odd|even|div)\s+by))\s+~ + scond = ~\s+is\s+(not\s+)?(odd|even)~ + isin = ~\s+is\s+in\s+~ + as = ~\s+as\s+~ + to = ~\s+to\s+~ + step = ~\s+step\s+~ + block = ~block~ + if = ~(if|elseif|else if|while)\s+~ + for = ~for\s+~ + foreach = ~foreach(?![^\s])~ + setfilter = ~setfilter\s+~ + instanceof = ~\s+instanceof\s+~ + not = ~([!]\s*)|(not\s+)~ + typecast = ~[(](int(eger)?|bool(ean)?|float|double|real|string|binary|array|object)[)]\s*~ + double_quote = ~["]~ + single_quote = ~[']~ */ /*!lex2php %statename TEXT @@ -302,7 +316,19 @@ class Smarty_Internal_Templatelexer $this->token = Smarty_Internal_Templateparser::TP_TEXT; } comment { - $this->token = Smarty_Internal_Templateparser::TP_COMMENT; + preg_match("~[*]{$this->rdel}~",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); + if (isset($match[0][1])) { + $to = $match[0][1] + strlen($match[0][0]); + } else { + $this->compiler->trigger_template_error ("missing or misspelled comment closing tag '*{$this->smarty->right_delimiter}'"); + } + $this->value = substr($this->data,$this->counter,$to-$this->counter); + return false; + } + phpstart { + $obj = new Smarty_Internal_Compile_Private_Php(); + $obj->parsePhp($this); + $this->token = Smarty_Internal_Templateparser::TP_PHP; } ldel literal rdel { if ($this->smarty->auto_literal && isset($this->value[$this->ldel_length]) ? strpos(" \n\t\r", $this->value[$this->ldel_length]) !== false : false) { @@ -323,33 +349,9 @@ class Smarty_Internal_Templatelexer rdel { $this->token = Smarty_Internal_Templateparser::TP_TEXT; } - xmltag { - $this->token = Smarty_Internal_Templateparser::TP_XMLTAG; - $this->taglineno = $this->line; - } - asp { - $this->phpType = 'asp'; - $this->taglineno = $this->line; - $this->token = Smarty_Internal_Templateparser::TP_PHP; - } - php { - $this->phpType = 'php'; - $this->taglineno = $this->line; - $this->token = Smarty_Internal_Templateparser::TP_PHP; - } - phpscript { - $this->phpType = 'script'; - $this->taglineno = $this->line; - $this->token = Smarty_Internal_Templateparser::TP_PHP; - } - unmatched { - $this->phpType = 'unmatched'; - $this->taglineno = $this->line; - $this->token = Smarty_Internal_Templateparser::TP_PHP; - } text { $to = strlen($this->data); - preg_match("/{$this->ldel}|<[?]|<%|[?]>|%>|/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); + preg_match("~($this->ldel)|([<]script\s+language\s*=\s*[\"\']?\s*php\s*[\"\']?\s*[>])|([<][?])|([<][%])|([?][>])|([%][>])~i",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); if (isset($match[0][1])) { $to = $match[0][1]; } @@ -379,12 +381,6 @@ class Smarty_Internal_Templatelexer $this->yybegin(self::TAGBODY); $this->taglineno = $this->line; } - phptag { - $this->yypopstate(); - $this->token = Smarty_Internal_Templateparser::TP_PHP; - $this->phpType = 'tag'; - $this->taglineno = $this->line; - } ldel id nocacherdel { $this->yypopstate(); $this->token = Smarty_Internal_Templateparser::TP_SIMPLETAG; @@ -503,7 +499,7 @@ class Smarty_Internal_Templatelexer attr { // resolve conflicts with shorttag and right_delimiter starting with '=' if (substr($this->data, $this->counter + strlen($this->value) - 1, $this->rdel_length) == $this->smarty->right_delimiter) { - preg_match("/\s+/",$this->value,$match); + preg_match("~\s+~",$this->value,$match); $this->value = $match[0]; $this->token = Smarty_Internal_Templateparser::TP_SPACE; } else { @@ -580,7 +576,7 @@ class Smarty_Internal_Templatelexer } text { $to = strlen($this->data); - preg_match("/{$this->ldel}\/?literal{$this->rdel}/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); + preg_match("~{$this->ldel}[/]?literal{$this->rdel}~i",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); if (isset($match[0][1])) { $to = $match[0][1]; } else { @@ -674,7 +670,7 @@ class Smarty_Internal_Templatelexer } text { $to = strlen($this->data); - preg_match("/SMARTYldel\s*((\/)?strip\s*SMARTYrdel|block\s+)/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); + preg_match("~SMARTYldel\s*(([/])?strip\s*SMARTYrdel|block\s+)~i",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); if (isset($match[0][1])) { $to = $match[0][1]; } @@ -719,7 +715,7 @@ class Smarty_Internal_Templatelexer } text { $to = strlen($this->data); - preg_match("/SMARTYldel\s*(literal\s*SMARTYrdel|(\/)?block(\s|SMARTYrdel)|[\$]smarty\.block\.(child|parent))/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); + preg_match("~SMARTYldel\s*(literal\s*SMARTYrdel|([/])?block(\s|SMARTYrdel)|[\$]smarty\.block\.(child|parent))~i",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); if (isset($match[0][1])) { $to = $match[0][1]; } @@ -747,7 +743,7 @@ class Smarty_Internal_Templatelexer } text { $to = strlen($this->data); - preg_match("/{$this->ldel}\/?literal\s*{$this->rdel}/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); + preg_match("~{$this->ldel}[/]?literal\s*{$this->rdel}~i",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); if (isset($match[0][1])) { $to = $match[0][1]; } else { diff --git a/lexer/smarty_internal_templateparser.y b/lexer/smarty_internal_templateparser.y index 9063ee65..78bf90ae 100644 --- a/lexer/smarty_internal_templateparser.y +++ b/lexer/smarty_internal_templateparser.y @@ -124,13 +124,6 @@ class Smarty_Internal_Templateparser */ private $security = null; - /** - * PHP tag handling mode - * - * @var int - */ - private $php_handling = 0; - /** * constructor * @@ -143,13 +136,7 @@ class Smarty_Internal_Templateparser $this->compiler = $compiler; $this->template = $this->compiler->template; $this->smarty = $this->template->smarty; - $this->compiler->has_variable_string = false; - $this->compiler->prefix_code = array(); - if ($this->security = isset($this->smarty->security_policy)) { - $this->php_handling = $this->smarty->security_policy->php_handling; - } else { - $this->php_handling = $this->smarty->php_handling; - } + $this->security = isset($this->smarty->security_policy) ? $this->smarty->security_policy : false; $this->current_buffer = $this->root_buffer = new Smarty_Internal_ParseTree_Template($this); } @@ -250,11 +237,6 @@ template_element(res)::= smartytag(st). { $this->block_nesting_level = count($this->compiler->_tag_stack); } - // comments -template_element(res)::= COMMENT(c). { - res = null; -} - // Literal template_element(res) ::= literal(l). { res = new Smarty_Internal_ParseTree_Text($this, l); @@ -270,17 +252,6 @@ template_element(res)::= PHP(o). { } } - - - // XML tag -template_element(res)::= XMLTAG(x). { - $this->compiler->tag_nocache = true; - $xml = x; - $save = $this->template->has_nocache_code; - res = new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode("", $this->compiler, true)); - $this->template->has_nocache_code = $save; -} - // template text template_element(res)::= text_content(t). { res = $this->compiler->processText(t); @@ -411,8 +382,8 @@ smartytag(res)::= SIMPLETAG(t). { res = null;; } else { if (defined($tag)) { - if (isset($this->smarty->security_policy)) { - $this->smarty->security_policy->isTrustedConstant($tag, $this->compiler); + if ($this->security) { + $this->security->isTrustedConstant($tag, $this->compiler); } res = $this->compiler->compileTag('private_print_expression',array(),array('value'=>$tag)); } else { @@ -428,8 +399,8 @@ smartytag(res)::= SIMPLETAG(t). { // tag with optional Smarty2 style attributes tag(res) ::= LDEL ID(i) attributes(a). { if (defined(i)) { - if (isset($this->smarty->security_policy)) { - $this->smarty->security_policy->isTrustedConstant(i, $this->compiler); + if ($this->security) { + $this->security->isTrustedConstant(i, $this->compiler); } res = $this->compiler->compileTag('private_print_expression',a,array('value'=>i)); } else { @@ -438,8 +409,8 @@ tag(res) ::= LDEL ID(i) attributes(a). { } tag(res) ::= LDEL ID(i). { if (defined(i)) { - if (isset($this->smarty->security_policy)) { - $this->smarty->security_policy->isTrustedConstant(i, $this->compiler); + if ($this->security) { + $this->security->isTrustedConstant(i, $this->compiler); } res = $this->compiler->compileTag('private_print_expression',array(),array('value'=>i)); } else { @@ -451,8 +422,8 @@ tag(res) ::= LDEL ID(i). { // tag with modifier and optional Smarty2 style attributes tag(res) ::= LDEL ID(i) modifierlist(l)attributes(a). { if (defined(i)) { - if (isset($this->smarty->security_policy)) { - $this->smarty->security_policy->isTrustedConstant(i, $this->compiler); + if ($this->security) { + $this->security->isTrustedConstant(i, $this->compiler); } res = $this->compiler->compileTag('private_print_expression',a,array('value'=>i, 'modifierlist'=>l)); } else { @@ -607,8 +578,8 @@ attributes(res) ::= . { // attribute attribute(res) ::= SPACE ID(v) EQUAL ID(id). { if (defined(id)) { - if (isset($this->smarty->security_policy)) { - $this->smarty->security_policy->isTrustedConstant(id, $this->compiler); + if ($this->security) { + $this->security->isTrustedConstant(id, $this->compiler); } res = array(v=>id); } else { @@ -788,8 +759,8 @@ value(res) ::= DOT INTEGER(n1). { // ID, true, false, null value(res) ::= ID(id). { if (defined(id)) { - if (isset($this->smarty->security_policy)) { - $this->smarty->security_policy->isTrustedConstant(id, $this->compiler); + if ($this->security) { + $this->security->isTrustedConstant(id, $this->compiler); } res = id; } else { @@ -847,7 +818,7 @@ value(res) ::= NAMESPACE(c). { // static class access value(res) ::= ns1(c)DOUBLECOLON static_class_access(s). { - if (!in_array(strtolower(c), array('self', 'parent')) && (!$this->security || $this->smarty->security_policy->isTrustedStaticClassAccess(c, s, $this->compiler))) { + if (!in_array(strtolower(c), array('self', 'parent')) && (!$this->security || $this->security->isTrustedStaticClassAccess(c, s, $this->compiler))) { if (isset($this->smarty->registered_classes[c])) { res = $this->smarty->registered_classes[c].'::'.s[0].s[1]; } else { @@ -957,8 +928,8 @@ indexdef(res) ::= DOT varvar(v) AT ID(p). { indexdef(res) ::= DOT ID(i). { if (defined(i)) { - if (isset($this->smarty->security_policy)) { - $this->smarty->security_policy->isTrustedConstant(i, $this->compiler); + if ($this->security) { + $this->security->isTrustedConstant(i, $this->compiler); } res = '['. i .']'; } else { @@ -1102,7 +1073,7 @@ objectelement(res)::= PTR method(f). { // function // function(res) ::= ns1(f) OPENP params(p) CLOSEP. { - if (!$this->security || $this->smarty->security_policy->isTrustedPhpFunction(f, $this->compiler)) { + if (!$this->security || $this->security->isTrustedPhpFunction(f, $this->compiler)) { if (strcasecmp(f,'isset') === 0 || strcasecmp(f,'empty') === 0 || strcasecmp(f,'array') === 0 || is_callable(f)) { $func_name = strtolower(f); if ($func_name == 'isset') { diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index d248b45b..1ae30374 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -111,7 +111,7 @@ class Smarty extends Smarty_Internal_TemplateBase /** * smarty version */ - const SMARTY_VERSION = '3.1.24-dev/9'; + const SMARTY_VERSION = '3.1.24-dev/10'; /** * define variable scopes diff --git a/libs/sysplugins/smarty_internal_compile_private_php.php b/libs/sysplugins/smarty_internal_compile_private_php.php index 153e8d5b..4211bca9 100644 --- a/libs/sysplugins/smarty_internal_compile_private_php.php +++ b/libs/sysplugins/smarty_internal_compile_private_php.php @@ -40,31 +40,30 @@ class Smarty_Internal_Compile_Private_Php extends Smarty_Internal_CompileBase // check and get attributes $_attr = $this->getAttributes($compiler, $args); $compiler->has_code = false; - $this->asp_tags = (ini_get('asp_tags') != '0'); - if ($_attr['type'] == 'tag' && !($compiler->smarty instanceof SmartyBC)) { - $compiler->trigger_template_error('{php}[/php} tags not allowed. Use SmartyBC to enable them', $compiler->lex->taglineno); + if ($_attr['type'] == 'xml') { + $compiler->tag_nocache = true; + $save = $compiler->template->has_nocache_code; + $compiler->template->has_nocache_code = $save; + $output = addcslashes($_attr['code'], "'\\"); + $compiler->parser->current_buffer->append_subtree(new Smarty_Internal_ParseTree_Tag($compiler->parser, $compiler->processNocacheCode("", $compiler, true))); + return ''; } if ($_attr['type'] != 'tag') { - if (isset($compiler->smarty->security_policy)) { - $this->php_handling = $compiler->smarty->security_policy->php_handling; - } else { - $this->php_handling = $compiler->smarty->php_handling; - } - if ($this->php_handling == Smarty::PHP_REMOVE) { - $output = preg_replace(array('#^(<\?(?:php|=)?)|(<%)|()#', - '#(\?>)|(%>)|(<\/script>)$#'), '', $_attr['code']); + if ($compiler->php_handling == Smarty::PHP_REMOVE) { + return ''; + } elseif ($compiler->php_handling == Smarty::PHP_QUOTE) { + $output = preg_replace_callback('#(<\?(?:php|=)?)|(<%)|()|(\?>)|(%>)|(<\/script>)#i', array($this, + 'quote'), $_attr['code']); $compiler->parser->current_buffer->append_subtree(new Smarty_Internal_ParseTree_Text($compiler->parser, $output)); return ''; - } elseif ($this->php_handling == Smarty::PHP_QUOTE) { - $output = preg_replace_callback(array('#^(<\?(?:php|=)?)|(<%)|()#', - '#(\?>)|(%>)|(<\/script>)$#'), array($this, - 'quote'), $_attr['code']); - $compiler->parser->current_buffer->append_subtree(new Smarty_Internal_ParseTree_Text($compiler->parser, $output)); + } elseif ($compiler->php_handling == Smarty::PHP_PASSTHRU || $_attr['type'] == 'unmatched') { + $compiler->tag_nocache = true; + $save = $compiler->template->has_nocache_code; + $compiler->template->has_nocache_code = $save; + $output = addcslashes($_attr['code'], "'\\"); + $compiler->parser->current_buffer->append_subtree(new Smarty_Internal_ParseTree_Tag($compiler->parser, $compiler->processNocacheCode("", $compiler, true))); return ''; - } elseif ($this->php_handling == Smarty::PHP_PASSTHRU || ($_attr['type'] == 'asp' && !$this->asp_tags) || $_attr['type'] == 'unmatched') { - $compiler->parser->current_buffer->append_subtree(new Smarty_Internal_ParseTree_Text($compiler->parser, $_attr['code'])); - return ''; - } elseif ($this->php_handling == Smarty::PHP_ALLOW) { + } elseif ($compiler->php_handling == Smarty::PHP_ALLOW) { if (!($compiler->smarty instanceof SmartyBC)) { $compiler->trigger_template_error('$smarty->php_handling PHP_ALLOW not allowed. Use SmartyBC to enable it', $compiler->lex->taglineno); } @@ -75,14 +74,12 @@ class Smarty_Internal_Compile_Private_Php extends Smarty_Internal_CompileBase } } else { $compiler->has_code = true; + if (!($compiler->smarty instanceof SmartyBC)) { + $compiler->trigger_template_error('{php}[/php} tags not allowed. Use SmartyBC to enable them', $compiler->lex->taglineno); + } $ldel = preg_quote($compiler->smarty->left_delimiter, '#'); $rdel = preg_quote($compiler->smarty->right_delimiter, '#'); - if (!preg_match("#{$ldel}\\s*/\\s*php\\s*{$rdel}$#", $_attr['code'], $match)) { - $compiler->trigger_template_error('Missing {/php} closing tag', $compiler->lex->taglineno); - } - if (!preg_match("#^({$ldel}\\s*php\\s*)((.)*?)({$rdel})#", $_attr['code'], $match)) { - $compiler->trigger_template_error('Missing {php} open tag', $compiler->lex->taglineno); - } + preg_match("#^({$ldel}php\\s*)((.)*?)({$rdel})#", $_attr['code'], $match); if (!empty($match[2])) { if ('nocache' == trim($match[2])) { $compiler->tag_nocache = true; @@ -95,10 +92,96 @@ class Smarty_Internal_Compile_Private_Php extends Smarty_Internal_CompileBase } } + /** + * Lexer code for PHP tags + * + * This code has been moved from lexer here fo easier debugging and maintenance + * + * @param $lex + */ + public function parsePhp($lex) + { + $close = 0; + $lex->taglineno = $lex->line; + $closeTag = '?>'; + if (strpos($lex->value, 'phpType = 'xml'; + } elseif (strpos($lex->value, 'phpType = 'php'; + } elseif (strpos($lex->value, '<%') === 0) { + $lex->phpType = 'asp'; + $closeTag = '%>'; + } elseif (strpos($lex->value, '%>') === 0) { + $lex->phpType = 'unmatched'; + } elseif (strpos($lex->value, '?>') === 0) { + $lex->phpType = 'unmatched'; + } elseif (strpos($lex->value, 'phpType = 'script'; + $closeTag = ''; + } elseif (strpos($lex->value, $lex->smarty->left_delimiter) === 0) { + if ($lex->isAutoLiteral()) { + $lex->token = Smarty_Internal_Templateparser::TP_TEXT; + return; + } + $closeTag = "{$lex->smarty->left_delimiter}/php{$lex->smarty->right_delimiter}"; + if ($lex->value == $closeTag) { + $lex->compiler->trigger_template_error("unexpected closing tag '{$closeTag}'"); + } + $lex->phpType = 'tag'; + } + if ($lex->phpType == 'unmatched') { + return; + } + if (($lex->phpType == 'php' || $lex->phpType == 'asp') && ($lex->compiler->php_handling == Smarty::PHP_PASSTHRU || $lex->compiler->php_handling == Smarty::PHP_QUOTE)) { + return; + } + $start = $lex->counter + strlen($lex->value); + $body = true; + if (preg_match('~' . preg_quote($closeTag, '~') . '~i', $lex->data, $match, PREG_OFFSET_CAPTURE, $start)) { + $close = $match[0][1]; + } else { + $lex->compiler->trigger_template_error("missing closing tag '{$closeTag}'"); + } + while ($body) { + if (preg_match('~([/][*])|([/][/][^\n]*)|(\'[^\'\\\\]*(?:\\.[^\'\\\\]*)*\')|("[^"\\\\]*(?:\\.[^"\\\\]*)*")~', $lex->data, $match, PREG_OFFSET_CAPTURE, $start)) { + $value = $match[0][0]; + $from = $pos = $match[0][1]; + if ($pos > $close) { + $body = false; + } else { + $start = $pos + strlen($value); + $phpCommentStart = $value == '/*'; + if ($phpCommentStart) { + $phpCommentEnd = preg_match('~([*][/])~', $lex->data, $match, PREG_OFFSET_CAPTURE, $start); + if ($phpCommentEnd) { + $pos2 = $match[0][1]; + $start = $pos2 + strlen($match[0][0]); + } + } + while ($close > $pos && $close < $start) { + if (preg_match('~' . preg_quote($closeTag, '~') . '~i', $lex->data, $match, PREG_OFFSET_CAPTURE, $from)) { + $close = $match[0][1]; + $from = $close + strlen($match[0][0]); + } else { + $lex->compiler->trigger_template_error("missing closing tag '{$closeTag}'"); + } + } + if ($phpCommentStart && (!$phpCommentEnd || $pos2 > $close)) { + $lex->taglineno = $lex->line + substr_count(substr($lex->data, $lex->counter, $start), "\n"); + $lex->compiler->trigger_template_error("missing PHP comment closing tag '*/'"); + } + } + } else { + $body = false; + } + } + $lex->value = substr($lex->data, $lex->counter, $close + strlen($closeTag) - $lex->counter); + } + /* - * Call back function for $php_handling = PHP_QUOTE - * - */ + * Call back function for $php_handling = PHP_QUOTE + * + */ private function quote($match) { return htmlspecialchars($match[0], ENT_QUOTES); diff --git a/libs/sysplugins/smarty_internal_parsetree_template.php b/libs/sysplugins/smarty_internal_parsetree_template.php index a0717e50..7d814eda 100644 --- a/libs/sysplugins/smarty_internal_parsetree_template.php +++ b/libs/sysplugins/smarty_internal_parsetree_template.php @@ -73,7 +73,7 @@ class Smarty_Internal_ParseTree_Template extends Smarty_Internal_ParseTree if ($subtree == '') { continue; } - $code .= preg_replace('/(<%|%>|<\?php|<\?|\?>|<\/?script)/', "\n", $subtree); + $code .= preg_replace('/((<%)|(%>)|(<\?php)|(<\?)|(\?>)|(<\/?script))/', "\n", $subtree); continue; } if ($this->subtrees[$key] instanceof Smarty_Internal_ParseTree_Tag) { diff --git a/libs/sysplugins/smarty_internal_templatelexer.php b/libs/sysplugins/smarty_internal_templatelexer.php index 904461ed..9b0ade35 100644 --- a/libs/sysplugins/smarty_internal_templatelexer.php +++ b/libs/sysplugins/smarty_internal_templatelexer.php @@ -62,13 +62,6 @@ class Smarty_Internal_Templatelexer */ public $taglineno; - /** - * flag if parsing php script - * - * @var bool - */ - public $is_phpScript = false; - /** * php code type * @@ -123,7 +116,7 @@ class Smarty_Internal_Templatelexer * * @var Smarty_Internal_TemplateCompilerBase */ - private $compiler = null; + public $compiler = null; /** * literal tag nesting level @@ -132,6 +125,12 @@ class Smarty_Internal_Templatelexer */ private $literal_cnt = 0; + /** + * PHP start tag string + * + * @var string + */ + /** * trace file * @@ -144,6 +143,7 @@ class Smarty_Internal_Templatelexer * * @var string */ + public $yyTracePrompt; /** @@ -151,12 +151,13 @@ class Smarty_Internal_Templatelexer * * @var array */ - public $state_name = array(1 => 'TEXT', 2 => 'TAG', 3 => 'TAGBODY', 4 => 'LITERAL', 5 => 'DOUBLEQUOTEDSTRING', 6 => 'CHILDBODY', 7 => 'CHILDBLOCK', 8 => 'CHILDLITERAL'); + public $state_name = array(1 => 'TEXT', 2 => 'TAG', 3 => 'TAGBODY', 4 => 'LITERAL', 5 => 'DOUBLEQUOTEDSTRING', + 6 => 'CHILDBODY', 7 => 'CHILDBLOCK', 8 => 'CHILDLITERAL'); /** * storage for assembled token patterns * - * @var sring + * @var string */ private $yy_global_pattern1 = null; @@ -180,7 +181,15 @@ class Smarty_Internal_Templatelexer * @var array */ public $smarty_token_names = array( // Text for parser error messages - 'NOT' => '(!,not)', 'OPENP' => '(', 'CLOSEP' => ')', 'OPENB' => '[', 'CLOSEB' => ']', 'PTR' => '->', 'APTR' => '=>', 'EQUAL' => '=', 'NUMBER' => 'number', 'UNIMATH' => '+" , "-', 'MATH' => '*" , "/" , "%', 'INCDEC' => '++" , "--', 'SPACE' => ' ', 'DOLLAR' => '$', 'SEMICOLON' => ';', 'COLON' => ':', 'DOUBLECOLON' => '::', 'AT' => '@', 'HATCH' => '#', 'QUOTE' => '"', 'BACKTICK' => '`', 'VERT' => '"|" modifier', 'DOT' => '.', 'COMMA' => '","', 'QMARK' => '"?"', 'ID' => 'id, name', 'TEXT' => 'text', 'LDELSLASH' => '{/..} closing tag', 'LDEL' => '{...} Smarty tag', 'COMMENT' => 'comment', 'AS' => 'as', 'TO' => 'to', 'PHP' => '" '"<", "==" ... logical operator', 'TLOGOP' => '"lt", "eq" ... logical operator; "is div by" ... if condition', 'SCOND' => '"is even" ... if condition',); + 'NOT' => '(!,not)', 'OPENP' => '(', 'CLOSEP' => ')', 'OPENB' => '[', 'CLOSEB' => ']', 'PTR' => '->', + 'APTR' => '=>', 'EQUAL' => '=', 'NUMBER' => 'number', 'UNIMATH' => '+" , "-', 'MATH' => '*" , "/" , "%', + 'INCDEC' => '++" , "--', 'SPACE' => ' ', 'DOLLAR' => '$', 'SEMICOLON' => ';', 'COLON' => ':', + 'DOUBLECOLON' => '::', 'AT' => '@', 'HATCH' => '#', 'QUOTE' => '"', 'BACKTICK' => '`', 'VERT' => '"|" modifier', + 'DOT' => '.', 'COMMA' => '","', 'QMARK' => '"?"', 'ID' => 'id, name', 'TEXT' => 'text', + 'LDELSLASH' => '{/..} closing tag', 'LDEL' => '{...} Smarty tag', 'COMMENT' => 'comment', 'AS' => 'as', + 'TO' => 'to', 'PHP' => '" '"<", "==" ... logical operator', + 'TLOGOP' => '"lt", "eq" ... logical operator; "is div by" ... if condition', + 'SCOND' => '"is even" ... if condition',); /** * constructor @@ -192,15 +201,15 @@ class Smarty_Internal_Templatelexer { $this->data = $data; $this->counter = 0; - if (preg_match('/^\xEF\xBB\xBF/', $this->data, $match)) { + if (preg_match('~^\xEF\xBB\xBF~i', $this->data, $match)) { $this->counter += strlen($match[0]); } $this->line = 1; $this->smarty = $compiler->smarty; $this->compiler = $compiler; - $this->ldel = preg_quote($this->smarty->left_delimiter, '/'); + $this->ldel = preg_quote($this->smarty->left_delimiter, '~'); $this->ldel_length = strlen($this->smarty->left_delimiter); - $this->rdel = preg_quote($this->smarty->right_delimiter, '/'); + $this->rdel = preg_quote($this->smarty->right_delimiter, '~'); $this->rdel_length = strlen($this->smarty->right_delimiter); $this->smarty_token_names['LDEL'] = $this->smarty->left_delimiter; $this->smarty_token_names['RDEL'] = $this->smarty->right_delimiter; @@ -212,6 +221,14 @@ class Smarty_Internal_Templatelexer $this->yyTracePrompt = '
'; } + /* + * Check if this tag is autoliteral + */ + public function isAutoLiteral() + { + return $this->smarty->auto_literal && isset($this->value[$this->ldel_length]) ? strpos(" \n\t\r", $this->value[$this->ldel_length]) !== false : false; + } + private $_yy_state = 1; private $_yy_stack = array(); @@ -255,7 +272,7 @@ class Smarty_Internal_Templatelexer public function yylex1() { if (!isset($this->yy_global_pattern1)) { - $this->yy_global_pattern1 = "/\G(\\{\\})|\G(" . $this->ldel . "[*]((?:(?![*]" . $this->rdel . ")[\S\s][^*]*))*[*]" . $this->rdel . ")|\G(" . $this->ldel . "\\s*literal\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*)|\G(\\s*" . $this->rdel . ")|\G(<[?]xml\\s+([\S\s]*?)[?]>)|\G(<[%]((?:(?![%]>)[^\/][^%'\"\/]*)(([\/][*](?:(?![*][\/])[\S\s][^*]*)*[*][\/])|([\/][\/][^\n]*)|('[^'\\\\]*(?:\\\\.[^'\\\\]*)*')|(\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"))*)*[%]>)|\G(<[?](?:php(?=[\s=]))?((?:(?![?]>)[^\/][^?'\"\/]*)(([\/][*](?:(?![*][\/])[\S\s][^*]*)*[*][\/])|([\/][\/][^\n]*)|('[^'\\\\]*(?:\\\\.[^'\\\\]*)*')|(\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"))*)*[?]>)|\G(((?:(?!<\/script>)[^\/][^<'\"\/]*)(([\/][*](?:(?![*][\/])[\S\s][^*]*)*[*][\/])|([\/][\/][^\n]*)|('[^'\\\\]*(?:\\\\.[^'\\\\]*)*')|(\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"))*)*<\/script>)|\G(((<[?](?:php\\s+|=)?)|(])|<[%]|[?][>]|[%][>]))|\G([\S\s])/iS"; + $this->yy_global_pattern1 = "/\G([{][}])|\G(" . $this->ldel . "[*])|\G((<[?]((php\\s+|=)|\\s+))|(<[%])|(<[?]xml\\s+)|()|([?][>])|([%][>])|(" . $this->ldel . "\\s*php(.*?)" . $this->rdel . ")|(" . $this->ldel . "\\s*[\/]php" . $this->rdel . "))|\G(" . $this->ldel . "\\s*literal\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*)|\G(\\s*" . $this->rdel . ")|\G([\S\s])/isS"; } if ($this->counter >= strlen($this->data)) { return false; // end of input @@ -308,10 +325,25 @@ class Smarty_Internal_Templatelexer function yy_r1_2() { - $this->token = Smarty_Internal_Templateparser::TP_COMMENT; + preg_match("~[*]{$this->rdel}~", $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter); + if (isset($match[0][1])) { + $to = $match[0][1] + strlen($match[0][0]); + } else { + $this->compiler->trigger_template_error("missing or misspelled comment closing tag '*{$this->smarty->right_delimiter}'"); + } + $this->value = substr($this->data, $this->counter, $to - $this->counter); + return false; } - function yy_r1_4() + function yy_r1_3() + { + + $obj = new Smarty_Internal_Compile_Private_Php(); + $obj->parsePhp($this); + $this->token = Smarty_Internal_Templateparser::TP_PHP; + } + + function yy_r1_15() { if ($this->smarty->auto_literal && isset($this->value[$this->ldel_length]) ? strpos(" \n\t\r", $this->value[$this->ldel_length]) !== false : false) { @@ -322,7 +354,7 @@ class Smarty_Internal_Templatelexer } } - function yy_r1_5() + function yy_r1_16() { if ($this->smarty->auto_literal && isset($this->value[$this->ldel_length]) ? strpos(" \n\t\r", $this->value[$this->ldel_length]) !== false : false) { @@ -333,56 +365,17 @@ class Smarty_Internal_Templatelexer } } - function yy_r1_6() + function yy_r1_17() { $this->token = Smarty_Internal_Templateparser::TP_TEXT; } - function yy_r1_7() - { - - $this->token = Smarty_Internal_Templateparser::TP_XMLTAG; - $this->taglineno = $this->line; - } - - function yy_r1_9() - { - - $this->phpType = 'asp'; - $this->taglineno = $this->line; - $this->token = Smarty_Internal_Templateparser::TP_PHP; - } - - function yy_r1_16() - { - - $this->phpType = 'php'; - $this->taglineno = $this->line; - $this->token = Smarty_Internal_Templateparser::TP_PHP; - } - - function yy_r1_23() - { - - $this->phpType = 'script'; - $this->taglineno = $this->line; - $this->token = Smarty_Internal_Templateparser::TP_PHP; - } - - function yy_r1_30() - { - - $this->phpType = 'unmatched'; - $this->taglineno = $this->line; - $this->token = Smarty_Internal_Templateparser::TP_PHP; - } - - function yy_r1_34() + function yy_r1_18() { $to = strlen($this->data); - preg_match("/{$this->ldel}|<[?]|<%|[?]>|%>|/", $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter); + preg_match("~($this->ldel)|([<]script\s+language\s*=\s*[\"\']?\s*php\s*[\"\']?\s*[>])|([<][?])|([<][%])|([?][>])|([%][>])~i", $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter); if (isset($match[0][1])) { $to = $match[0][1]; } @@ -393,7 +386,7 @@ class Smarty_Internal_Templatelexer public function yylex2() { if (!isset($this->yy_global_pattern2)) { - $this->yy_global_pattern2 = "/\G(" . $this->ldel . "\\s*(if|elseif|else if|while)\\s+)|\G(" . $this->ldel . "\\s*for\\s+)|\G(" . $this->ldel . "\\s*foreach(?![^\s]))|\G(" . $this->ldel . "\\s*setfilter\\s+)|\G(((" . $this->ldel . "\\s*php\\s*(.)*?" . $this->rdel . ")((?:(?!(" . $this->ldel . "\\s*[\/]php\\s*" . $this->rdel . "))[^\/{][^" . preg_quote($this->smarty->left_delimiter[0]) . "'\"\/]*)(([\/][*](?:(?![*][\/])[\S\s][^*]*)*[*][\/])|([\/][\/][^\n]*)|('[^'\\\\]*(?:\\\\.[^'\\\\]*)*')|(\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"))*)*(" . $this->ldel . "\\s*[\/]php\\s*" . $this->rdel . ")?)|(" . $this->ldel . "\\s*[\/]?php\\s*" . $this->rdel . "))|\G(" . $this->ldel . "\\s*[0-9]*[a-zA-Z_]\\w*(\\s+nocache)?\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*\/(?:(?!block)[0-9]*[a-zA-Z_]\\w*)\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*\\$[0-9]*[a-zA-Z_]\\w*(\\s+nocache)?\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*\/)|\G(" . $this->ldel . "\\s*)/iS"; + $this->yy_global_pattern2 = "/\G(" . $this->ldel . "\\s*(if|elseif|else if|while)\\s+)|\G(" . $this->ldel . "\\s*for\\s+)|\G(" . $this->ldel . "\\s*foreach(?![^\s]))|\G(" . $this->ldel . "\\s*setfilter\\s+)|\G(" . $this->ldel . "\\s*[0-9]*[a-zA-Z_]\\w*(\\s+nocache)?\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*[\/](?:(?!block)[0-9]*[a-zA-Z_]\\w*)\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*[$][0-9]*[a-zA-Z_]\\w*(\\s+nocache)?\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*[\/])|\G(" . $this->ldel . "\\s*)/isS"; } if ($this->counter >= strlen($this->data)) { return false; // end of input @@ -470,15 +463,6 @@ class Smarty_Internal_Templatelexer } function yy_r2_6() - { - - $this->yypopstate(); - $this->token = Smarty_Internal_Templateparser::TP_PHP; - $this->phpType = 'tag'; - $this->taglineno = $this->line; - } - - function yy_r2_19() { $this->yypopstate(); @@ -486,7 +470,7 @@ class Smarty_Internal_Templatelexer $this->taglineno = $this->line; } - function yy_r2_21() + function yy_r2_8() { $this->yypopstate(); @@ -494,7 +478,7 @@ class Smarty_Internal_Templatelexer $this->taglineno = $this->line; } - function yy_r2_22() + function yy_r2_9() { $this->yypopstate(); @@ -502,7 +486,7 @@ class Smarty_Internal_Templatelexer $this->taglineno = $this->line; } - function yy_r2_24() + function yy_r2_11() { $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; @@ -510,7 +494,7 @@ class Smarty_Internal_Templatelexer $this->taglineno = $this->line; } - function yy_r2_25() + function yy_r2_12() { $this->token = Smarty_Internal_Templateparser::TP_LDEL; @@ -521,7 +505,7 @@ class Smarty_Internal_Templatelexer public function yylex3() { if (!isset($this->yy_global_pattern3)) { - $this->yy_global_pattern3 = "/\G(\\s*" . $this->rdel . ")|\G(\")|\G('[^'\\\\]*(?:\\\\.[^'\\\\]*)*')|\G([$]smarty\\.block\\.(child|parent))|\G(\\$[0-9]*[a-zA-Z_]\\w*)|\G(\\$)|\G(\\s+is\\s+in\\s+)|\G(\\s+as\\s+)|\G(\\s+to\\s+)|\G(\\s+step\\s+)|\G(\\s+instanceof\\s+)|\G(\\s*(([!=][=]{1,2})|([<][=>]?)|([>][=]?)|[&|]{2})\\s*)|\G(\\s+(eq|ne|neg|gt|ge|gte|lt|le|lte|mod|and|or|xor|(is\\s+(not\\s+)?(odd|even|div)\\s+by))\\s+)|\G(\\s+is\\s+(not\\s+)?(odd|even))|\G(!\\s*|not\\s+)|\G(\\((int(eger)?|bool(ean)?|float|double|real|string|binary|array|object)\\)\\s*)|\G(\\s*\\(\\s*)|\G(\\s*\\))|\G(\\[\\s*)|\G(\\s*\\])|\G(\\s*->\\s*)|\G(\\s*=>\\s*)|\G(\\s*=\\s*)|\G(\\+\\+|--)|\G(\\s*(\\+|-)\\s*)|\G(\\s*([*]{1,2}|[%\/^&]|[<>]{2})\\s*)|\G(@)|\G(#)|\G(\\s+[0-9]*[a-zA-Z_][a-zA-Z0-9_\-:]*\\s*=\\s*)|\G(([0-9]*[a-zA-Z_]\\w*)?(\\\\[0-9]*[a-zA-Z_]\\w*)+)|\G([0-9]*[a-zA-Z_]\\w*)|\G(\\d+)|\G(`)|\G(\\|)|\G(\\.)|\G(\\s*,\\s*)|\G(\\s*;\\s*)|\G(::)|\G(\\s*:\\s*)|\G(\\s*[?]\\s*)|\G(0[xX][0-9a-fA-F]+)|\G(\\s+)|\G(" . $this->ldel . "\\s*)|\G([\S\s])/iS"; + $this->yy_global_pattern3 = "/\G(\\s*" . $this->rdel . ")|\G([\"])|\G('[^'\\\\]*(?:\\\\.[^'\\\\]*)*')|\G([$]smarty\\.block\\.(child|parent))|\G([$][0-9]*[a-zA-Z_]\\w*)|\G([$])|\G(\\s+is\\s+in\\s+)|\G(\\s+as\\s+)|\G(\\s+to\\s+)|\G(\\s+step\\s+)|\G(\\s+instanceof\\s+)|\G(\\s*(([!=][=]{1,2})|([<][=>]?)|([>][=]?)|[&|]{2})\\s*)|\G(\\s+(eq|ne|neg|gt|ge|gte|lt|le|lte|mod|and|or|xor|(is\\s+(not\\s+)?(odd|even|div)\\s+by))\\s+)|\G(\\s+is\\s+(not\\s+)?(odd|even))|\G(([!]\\s*)|(not\\s+))|\G([(](int(eger)?|bool(ean)?|float|double|real|string|binary|array|object)[)]\\s*)|\G(\\s*[(]\\s*)|\G(\\s*[)])|\G(\\[\\s*)|\G(\\s*\\])|\G(\\s*[-][>]\\s*)|\G(\\s*[=][>]\\s*)|\G(\\s*[=]\\s*)|\G(([+]|[-]){2})|\G(\\s*([+]|[-])\\s*)|\G(\\s*([*]{1,2}|[%\/^&]|[<>]{2})\\s*)|\G([@])|\G([#])|\G(\\s+[0-9]*[a-zA-Z_][a-zA-Z0-9_\-:]*\\s*[=]\\s*)|\G(([0-9]*[a-zA-Z_]\\w*)?(\\\\[0-9]*[a-zA-Z_]\\w*)+)|\G([0-9]*[a-zA-Z_]\\w*)|\G(\\d+)|\G([`])|\G([|])|\G([.])|\G(\\s*[,]\\s*)|\G(\\s*[;]\\s*)|\G([:]{2})|\G(\\s*[:]\\s*)|\G(\\s*[?]\\s*)|\G(0[xX][0-9a-fA-F]+)|\G(\\s+)|\G(" . $this->ldel . "\\s*)|\G([\S\s])/isS"; } if ($this->counter >= strlen($this->data)) { return false; // end of input @@ -658,90 +642,90 @@ class Smarty_Internal_Templatelexer $this->token = Smarty_Internal_Templateparser::TP_NOT; } - function yy_r3_27() + function yy_r3_29() { $this->token = Smarty_Internal_Templateparser::TP_TYPECAST; } - function yy_r3_31() + function yy_r3_33() { $this->token = Smarty_Internal_Templateparser::TP_OPENP; } - function yy_r3_32() + function yy_r3_34() { $this->token = Smarty_Internal_Templateparser::TP_CLOSEP; } - function yy_r3_33() + function yy_r3_35() { $this->token = Smarty_Internal_Templateparser::TP_OPENB; } - function yy_r3_34() + function yy_r3_36() { $this->token = Smarty_Internal_Templateparser::TP_CLOSEB; } - function yy_r3_35() + function yy_r3_37() { $this->token = Smarty_Internal_Templateparser::TP_PTR; } - function yy_r3_36() + function yy_r3_38() { $this->token = Smarty_Internal_Templateparser::TP_APTR; } - function yy_r3_37() + function yy_r3_39() { $this->token = Smarty_Internal_Templateparser::TP_EQUAL; } - function yy_r3_38() + function yy_r3_40() { $this->token = Smarty_Internal_Templateparser::TP_INCDEC; } - function yy_r3_39() + function yy_r3_42() { $this->token = Smarty_Internal_Templateparser::TP_UNIMATH; } - function yy_r3_41() + function yy_r3_44() { $this->token = Smarty_Internal_Templateparser::TP_MATH; } - function yy_r3_43() + function yy_r3_46() { $this->token = Smarty_Internal_Templateparser::TP_AT; } - function yy_r3_44() + function yy_r3_47() { $this->token = Smarty_Internal_Templateparser::TP_HATCH; } - function yy_r3_45() + function yy_r3_48() { // resolve conflicts with shorttag and right_delimiter starting with '=' if (substr($this->data, $this->counter + strlen($this->value) - 1, $this->rdel_length) == $this->smarty->right_delimiter) { - preg_match("/\s+/", $this->value, $match); + preg_match("~\s+~", $this->value, $match); $this->value = $match[0]; $this->token = Smarty_Internal_Templateparser::TP_SPACE; } else { @@ -749,86 +733,86 @@ class Smarty_Internal_Templatelexer } } - function yy_r3_46() + function yy_r3_49() { $this->token = Smarty_Internal_Templateparser::TP_NAMESPACE; } - function yy_r3_49() + function yy_r3_52() { $this->token = Smarty_Internal_Templateparser::TP_ID; } - function yy_r3_50() + function yy_r3_53() { $this->token = Smarty_Internal_Templateparser::TP_INTEGER; } - function yy_r3_51() + function yy_r3_54() { $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; $this->yypopstate(); } - function yy_r3_52() + function yy_r3_55() { $this->token = Smarty_Internal_Templateparser::TP_VERT; } - function yy_r3_53() + function yy_r3_56() { $this->token = Smarty_Internal_Templateparser::TP_DOT; } - function yy_r3_54() + function yy_r3_57() { $this->token = Smarty_Internal_Templateparser::TP_COMMA; } - function yy_r3_55() + function yy_r3_58() { $this->token = Smarty_Internal_Templateparser::TP_SEMICOLON; } - function yy_r3_56() + function yy_r3_59() { $this->token = Smarty_Internal_Templateparser::TP_DOUBLECOLON; } - function yy_r3_57() + function yy_r3_60() { $this->token = Smarty_Internal_Templateparser::TP_COLON; } - function yy_r3_58() + function yy_r3_61() { $this->token = Smarty_Internal_Templateparser::TP_QMARK; } - function yy_r3_59() + function yy_r3_62() { $this->token = Smarty_Internal_Templateparser::TP_HEX; } - function yy_r3_60() + function yy_r3_63() { $this->token = Smarty_Internal_Templateparser::TP_SPACE; } - function yy_r3_61() + function yy_r3_64() { if ($this->smarty->auto_literal && isset($this->value[$this->ldel_length]) ? strpos(" \n\t\r", $this->value[$this->ldel_length]) !== false : false) { @@ -839,7 +823,7 @@ class Smarty_Internal_Templatelexer } } - function yy_r3_62() + function yy_r3_65() { $this->token = Smarty_Internal_Templateparser::TP_TEXT; @@ -848,7 +832,7 @@ class Smarty_Internal_Templatelexer public function yylex4() { if (!isset($this->yy_global_pattern4)) { - $this->yy_global_pattern4 = "/\G(" . $this->ldel . "\\s*literal\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*\/literal\\s*" . $this->rdel . ")|\G([\S\s])/iS"; + $this->yy_global_pattern4 = "/\G(" . $this->ldel . "\\s*literal\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*[\/]literal\\s*" . $this->rdel . ")|\G([\S\s])/isS"; } if ($this->counter >= strlen($this->data)) { return false; // end of input @@ -915,7 +899,7 @@ class Smarty_Internal_Templatelexer { $to = strlen($this->data); - preg_match("/{$this->ldel}\/?literal{$this->rdel}/", $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter); + preg_match("~{$this->ldel}[/]?literal{$this->rdel}~i", $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter); if (isset($match[0][1])) { $to = $match[0][1]; } else { @@ -928,7 +912,7 @@ class Smarty_Internal_Templatelexer public function yylex5() { if (!isset($this->yy_global_pattern5)) { - $this->yy_global_pattern5 = "/\G(" . $this->ldel . "\\s*literal\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*\/literal\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*\/)|\G(" . $this->ldel . "\\s*[0-9]*[a-zA-Z_]\\w*)|\G(" . $this->ldel . "\\s*)|\G(\")|\G(`\\$)|\G(\\$[0-9]*[a-zA-Z_]\\w*)|\G(\\$)|\G(([^\"\\\\]*?)((?:\\\\.[^\"\\\\]*?)*?)(?=(" . $this->ldel . "|\\$|`\\$|\")))|\G([\S\s])/iS"; + $this->yy_global_pattern5 = "/\G(" . $this->ldel . "\\s*literal\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*[\/]literal\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*[\/])|\G(" . $this->ldel . "\\s*[0-9]*[a-zA-Z_]\\w*)|\G(" . $this->ldel . "\\s*)|\G([\"])|\G([`][$])|\G([$][0-9]*[a-zA-Z_]\\w*)|\G([$])|\G(([^\"\\\\]*?)((?:\\\\.[^\"\\\\]*?)*?)(?=(" . $this->ldel . "|\\$|`\\$|\")))|\G([\S\s])/isS"; } if ($this->counter >= strlen($this->data)) { return false; // end of input @@ -1063,7 +1047,7 @@ class Smarty_Internal_Templatelexer public function yylex6() { if (!isset($this->yy_global_pattern6)) { - $this->yy_global_pattern6 = "/\G(" . $this->ldel . "\\s*strip\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*\/strip\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*block)|\G([\S\s])/iS"; + $this->yy_global_pattern6 = "/\G(" . $this->ldel . "\\s*strip\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*[\/]strip\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*block)|\G([\S\s])/isS"; } if ($this->counter >= strlen($this->data)) { return false; // end of input @@ -1142,7 +1126,7 @@ class Smarty_Internal_Templatelexer { $to = strlen($this->data); - preg_match("/" . $this->ldel . "\s*((\/)?strip\s*" . $this->rdel . "|block\s+)/", $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter); + preg_match("~" . $this->ldel . "\s*(([/])?strip\s*" . $this->rdel . "|block\s+)~i", $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter); if (isset($match[0][1])) { $to = $match[0][1]; } @@ -1153,7 +1137,7 @@ class Smarty_Internal_Templatelexer public function yylex7() { if (!isset($this->yy_global_pattern7)) { - $this->yy_global_pattern7 = "/\G(" . $this->ldel . "\\s*literal\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*block)|\G(" . $this->ldel . "\\s*\/block)|\G(" . $this->ldel . "\\s*[$]smarty\\.block\\.(child|parent))|\G([\S\s])/iS"; + $this->yy_global_pattern7 = "/\G(" . $this->ldel . "\\s*literal\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*block)|\G(" . $this->ldel . "\\s*[\/]block)|\G(" . $this->ldel . "\\s*[$]smarty\\.block\\.(child|parent))|\G([\S\s])/isS"; } if ($this->counter >= strlen($this->data)) { return false; // end of input @@ -1245,7 +1229,7 @@ class Smarty_Internal_Templatelexer { $to = strlen($this->data); - preg_match("/" . $this->ldel . "\s*(literal\s*" . $this->rdel . "|(\/)?block(\s|" . $this->rdel . ")|[\$]smarty\.block\.(child|parent))/", $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter); + preg_match("~" . $this->ldel . "\s*(literal\s*" . $this->rdel . "|([/])?block(\s|" . $this->rdel . ")|[\$]smarty\.block\.(child|parent))~i", $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter); if (isset($match[0][1])) { $to = $match[0][1]; } @@ -1256,7 +1240,7 @@ class Smarty_Internal_Templatelexer public function yylex8() { if (!isset($this->yy_global_pattern8)) { - $this->yy_global_pattern8 = "/\G(" . $this->ldel . "\\s*literal\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*\/literal\\s*" . $this->rdel . ")|\G([\S\s])/iS"; + $this->yy_global_pattern8 = "/\G(" . $this->ldel . "\\s*literal\\s*" . $this->rdel . ")|\G(" . $this->ldel . "\\s*[\/]literal\\s*" . $this->rdel . ")|\G([\S\s])/isS"; } if ($this->counter >= strlen($this->data)) { return false; // end of input @@ -1326,7 +1310,7 @@ class Smarty_Internal_Templatelexer { $to = strlen($this->data); - preg_match("/{$this->ldel}\/?literal\s*{$this->rdel}/", $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter); + preg_match("~{$this->ldel}[/]?literal\s*{$this->rdel}~i", $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter); if (isset($match[0][1])) { $to = $match[0][1]; } else { diff --git a/libs/sysplugins/smarty_internal_templateparser.php b/libs/sysplugins/smarty_internal_templateparser.php index 42873642..b09c53c4 100644 --- a/libs/sysplugins/smarty_internal_templateparser.php +++ b/libs/sysplugins/smarty_internal_templateparser.php @@ -211,13 +211,6 @@ class Smarty_Internal_Templateparser */ private $security = null; - /** - * PHP tag handling mode - * - * @var int - */ - private $php_handling = 0; - /** * constructor * @@ -230,13 +223,7 @@ class Smarty_Internal_Templateparser $this->compiler = $compiler; $this->template = $this->compiler->template; $this->smarty = $this->template->smarty; - $this->compiler->has_variable_string = false; - $this->compiler->prefix_code = array(); - if ($this->security = isset($this->smarty->security_policy)) { - $this->php_handling = $this->smarty->security_policy->php_handling; - } else { - $this->php_handling = $this->smarty->php_handling; - } + $this->security = isset($this->smarty->security_policy) ? $this->smarty->security_policy : false; $this->current_buffer = $this->root_buffer = new Smarty_Internal_ParseTree_Template($this); } @@ -272,161 +259,461 @@ class Smarty_Internal_Templateparser const TP_COLON = 2; - const TP_COMMENT = 3; + const TP_PHP = 3; - const TP_PHP = 4; + const TP_TEXT = 4; - const TP_XMLTAG = 5; + const TP_STRIPON = 5; - const TP_TEXT = 6; + const TP_STRIPOFF = 6; - const TP_STRIPON = 7; + const TP_BLOCKSOURCE = 7; - const TP_STRIPOFF = 8; + const TP_LITERALSTART = 8; - const TP_BLOCKSOURCE = 9; + const TP_LITERALEND = 9; - const TP_LITERALSTART = 10; + const TP_LITERAL = 10; - const TP_LITERALEND = 11; + const TP_RDEL = 11; - const TP_LITERAL = 12; + const TP_SIMPELOUTPUT = 12; - const TP_RDEL = 13; + const TP_LDEL = 13; - const TP_SIMPELOUTPUT = 14; + const TP_DOLLARID = 14; - const TP_LDEL = 15; + const TP_EQUAL = 15; - const TP_DOLLARID = 16; + const TP_SIMPLETAG = 16; - const TP_EQUAL = 17; + const TP_ID = 17; - const TP_SIMPLETAG = 18; + const TP_PTR = 18; - const TP_ID = 19; + const TP_LDELIF = 19; - const TP_PTR = 20; + const TP_LDELFOR = 20; - const TP_LDELIF = 21; + const TP_SEMICOLON = 21; - const TP_LDELFOR = 22; + const TP_INCDEC = 22; - const TP_SEMICOLON = 23; + const TP_TO = 23; - const TP_INCDEC = 24; + const TP_STEP = 24; - const TP_TO = 25; + const TP_LDELFOREACH = 25; - const TP_STEP = 26; + const TP_SPACE = 26; - const TP_LDELFOREACH = 27; + const TP_AS = 27; - const TP_SPACE = 28; + const TP_APTR = 28; - const TP_AS = 29; + const TP_LDELSETFILTER = 29; - const TP_APTR = 30; + const TP_SMARTYBLOCKCHILDPARENT = 30; - const TP_LDELSETFILTER = 31; + const TP_CLOSETAG = 31; - const TP_SMARTYBLOCKCHILDPARENT = 32; + const TP_LDELSLASH = 32; - const TP_CLOSETAG = 33; + const TP_ATTR = 33; - const TP_LDELSLASH = 34; + const TP_INTEGER = 34; - const TP_ATTR = 35; + const TP_COMMA = 35; - const TP_INTEGER = 36; + const TP_OPENP = 36; - const TP_COMMA = 37; + const TP_CLOSEP = 37; - const TP_OPENP = 38; + const TP_MATH = 38; - const TP_CLOSEP = 39; + const TP_UNIMATH = 39; - const TP_MATH = 40; + const TP_ISIN = 40; - const TP_UNIMATH = 41; + const TP_INSTANCEOF = 41; - const TP_ISIN = 42; + const TP_QMARK = 42; - const TP_INSTANCEOF = 43; + const TP_NOT = 43; - const TP_QMARK = 44; + const TP_TYPECAST = 44; - const TP_NOT = 45; + const TP_HEX = 45; - const TP_TYPECAST = 46; + const TP_DOT = 46; - const TP_HEX = 47; + const TP_SINGLEQUOTESTRING = 47; - const TP_DOT = 48; + const TP_DOUBLECOLON = 48; - const TP_SINGLEQUOTESTRING = 49; + const TP_NAMESPACE = 49; - const TP_DOUBLECOLON = 50; + const TP_AT = 50; - const TP_NAMESPACE = 51; + const TP_HATCH = 51; - const TP_AT = 52; + const TP_OPENB = 52; - const TP_HATCH = 53; + const TP_CLOSEB = 53; - const TP_OPENB = 54; + const TP_DOLLAR = 54; - const TP_CLOSEB = 55; + const TP_LOGOP = 55; - const TP_DOLLAR = 56; + const TP_TLOGOP = 56; - const TP_LOGOP = 57; + const TP_SINGLECOND = 57; - const TP_TLOGOP = 58; + const TP_QUOTE = 58; - const TP_SINGLECOND = 59; + const TP_BACKTICK = 59; - const TP_QUOTE = 60; + const YY_NO_ACTION = 533; - const TP_BACKTICK = 61; + const YY_ACCEPT_ACTION = 532; - const YY_NO_ACTION = 537; + const YY_ERROR_ACTION = 531; - const YY_ACCEPT_ACTION = 536; + const YY_SZ_ACTTAB = 2133; - const YY_ERROR_ACTION = 535; - - const YY_SZ_ACTTAB = 2069; - - static public $yy_action = array(263, 8, 133, 21, 265, 74, 178, 7, 84, 244, 16, 93, 163, 116, 270, 259, 300, 221, 328, 317, 222, 259, 218, 12, 28, 151, 3, 43, 140, 12, 19, 39, 41, 314, 240, 292, 19, 215, 192, 81, 1, 3, 297, 90, 158, 183, 52, 263, 8, 132, 94, 265, 200, 259, 7, 84, 25, 281, 25, 281, 116, 237, 230, 211, 221, 108, 317, 222, 297, 207, 192, 28, 192, 452, 43, 184, 267, 256, 39, 41, 314, 240, 231, 241, 215, 452, 81, 1, 338, 297, 320, 137, 13, 52, 263, 8, 134, 10, 265, 212, 452, 7, 84, 244, 16, 91, 160, 116, 270, 17, 205, 221, 452, 317, 222, 259, 218, 12, 28, 171, 312, 43, 410, 97, 19, 39, 41, 314, 240, 292, 277, 215, 192, 81, 1, 205, 297, 410, 169, 173, 52, 263, 8, 134, 410, 265, 197, 365, 7, 84, 253, 249, 243, 225, 116, 205, 232, 337, 221, 335, 317, 222, 12, 218, 232, 28, 244, 16, 43, 19, 297, 270, 39, 41, 314, 240, 292, 226, 215, 205, 81, 1, 124, 297, 195, 15, 101, 52, 263, 8, 134, 410, 265, 199, 205, 7, 84, 299, 326, 205, 308, 116, 187, 289, 235, 221, 410, 317, 222, 284, 208, 404, 28, 410, 107, 43, 219, 205, 465, 39, 41, 314, 240, 292, 465, 215, 12, 81, 1, 407, 297, 316, 310, 19, 52, 263, 8, 135, 167, 265, 212, 335, 7, 84, 407, 100, 232, 259, 116, 237, 262, 407, 221, 108, 317, 222, 30, 218, 33, 28, 136, 100, 43, 224, 195, 220, 39, 41, 314, 240, 292, 205, 215, 138, 81, 1, 27, 297, 247, 85, 334, 52, 263, 8, 134, 219, 265, 212, 23, 7, 84, 111, 321, 96, 142, 116, 185, 81, 12, 221, 297, 317, 222, 259, 198, 19, 28, 22, 312, 43, 27, 34, 251, 39, 41, 314, 240, 292, 260, 215, 192, 81, 1, 192, 297, 92, 165, 173, 52, 263, 8, 131, 6, 265, 212, 259, 7, 84, 465, 298, 244, 16, 116, 453, 465, 270, 221, 2, 317, 222, 323, 218, 192, 5, 23, 453, 43, 100, 189, 113, 39, 41, 314, 240, 292, 159, 215, 452, 81, 1, 27, 297, 295, 143, 259, 52, 263, 8, 136, 452, 265, 212, 259, 7, 84, 192, 322, 111, 331, 116, 155, 195, 276, 221, 255, 317, 222, 266, 218, 195, 26, 182, 100, 43, 239, 164, 37, 39, 41, 314, 240, 292, 322, 215, 259, 81, 1, 179, 297, 301, 170, 108, 52, 263, 8, 134, 276, 265, 203, 259, 7, 84, 111, 481, 481, 168, 116, 276, 481, 286, 221, 276, 317, 222, 174, 218, 120, 28, 312, 205, 43, 296, 152, 259, 39, 41, 314, 240, 292, 11, 215, 259, 81, 1, 205, 297, 19, 173, 223, 52, 263, 8, 136, 276, 265, 212, 370, 7, 84, 285, 481, 481, 156, 116, 176, 481, 120, 221, 139, 317, 222, 259, 218, 259, 26, 244, 16, 43, 188, 289, 270, 39, 41, 314, 240, 292, 105, 215, 195, 81, 195, 238, 297, 191, 289, 408, 52, 311, 481, 229, 248, 246, 278, 268, 272, 273, 275, 184, 297, 258, 408, 263, 8, 227, 205, 265, 98, 408, 7, 84, 452, 35, 201, 112, 116, 290, 376, 141, 221, 172, 317, 222, 452, 234, 283, 129, 259, 190, 259, 232, 216, 12, 291, 118, 68, 110, 100, 145, 19, 101, 276, 452, 329, 307, 244, 16, 213, 330, 287, 270, 299, 269, 297, 452, 192, 237, 242, 283, 12, 108, 206, 313, 232, 216, 137, 19, 125, 64, 110, 194, 10, 274, 101, 4, 181, 329, 307, 205, 37, 213, 330, 287, 219, 299, 279, 324, 150, 283, 288, 309, 210, 261, 232, 216, 83, 146, 125, 56, 104, 242, 186, 192, 101, 312, 257, 329, 307, 319, 36, 213, 330, 287, 205, 299, 283, 144, 318, 183, 161, 232, 216, 180, 87, 118, 68, 110, 264, 259, 89, 101, 25, 281, 329, 307, 308, 154, 213, 330, 287, 147, 299, 24, 302, 283, 192, 86, 183, 157, 232, 216, 175, 315, 125, 47, 104, 119, 259, 276, 101, 25, 281, 329, 307, 88, 149, 213, 330, 287, 109, 299, 20, 217, 283, 192, 148, 304, 304, 232, 216, 95, 304, 125, 64, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 304, 299, 304, 304, 304, 304, 283, 304, 209, 304, 304, 232, 216, 304, 297, 125, 64, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 205, 304, 304, 232, 79, 304, 214, 82, 48, 106, 304, 304, 250, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 304, 299, 304, 304, 283, 304, 304, 304, 304, 232, 216, 304, 304, 125, 70, 110, 40, 42, 38, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 304, 299, 304, 283, 303, 305, 306, 304, 232, 216, 304, 304, 125, 49, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 304, 304, 232, 80, 304, 304, 82, 44, 106, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 304, 304, 232, 216, 304, 304, 125, 46, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 304, 299, 283, 304, 304, 304, 304, 232, 216, 304, 304, 125, 60, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 304, 304, 232, 216, 304, 304, 125, 72, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 183, 177, 232, 216, 304, 304, 125, 61, 110, 304, 259, 304, 101, 25, 281, 329, 307, 304, 304, 213, 330, 287, 304, 299, 283, 304, 304, 192, 304, 232, 204, 304, 304, 114, 62, 110, 40, 42, 38, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 333, 299, 304, 304, 303, 305, 306, 304, 263, 9, 336, 304, 265, 304, 304, 7, 84, 304, 304, 304, 304, 116, 304, 304, 283, 221, 304, 317, 222, 232, 216, 304, 304, 125, 45, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 333, 299, 304, 304, 304, 327, 14, 304, 263, 9, 336, 304, 265, 304, 304, 7, 84, 304, 304, 304, 304, 116, 304, 304, 304, 221, 283, 317, 222, 304, 304, 232, 216, 304, 304, 125, 58, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 325, 14, 232, 216, 304, 304, 125, 66, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 183, 166, 232, 216, 304, 304, 125, 54, 110, 304, 259, 304, 101, 25, 281, 329, 307, 304, 304, 213, 330, 287, 304, 299, 283, 304, 304, 192, 304, 232, 216, 304, 304, 125, 65, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 304, 304, 232, 216, 304, 304, 125, 63, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 183, 162, 232, 216, 304, 304, 117, 50, 110, 304, 259, 304, 101, 25, 281, 329, 307, 304, 304, 213, 330, 287, 304, 299, 283, 304, 304, 192, 304, 232, 216, 304, 304, 125, 53, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 304, 304, 232, 216, 304, 304, 125, 78, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 304, 304, 232, 216, 304, 304, 125, 76, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 304, 299, 283, 304, 304, 304, 304, 232, 216, 304, 304, 125, 75, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 304, 304, 232, 216, 304, 304, 125, 67, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 304, 304, 232, 216, 304, 304, 103, 73, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 304, 299, 283, 304, 304, 304, 304, 232, 216, 304, 304, 125, 57, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 304, 304, 232, 216, 304, 304, 99, 59, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 304, 304, 232, 216, 304, 304, 125, 71, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 304, 299, 283, 304, 304, 304, 304, 232, 216, 304, 304, 125, 77, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 304, 304, 232, 216, 304, 304, 102, 69, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 304, 304, 304, 232, 216, 304, 304, 125, 56, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 304, 299, 283, 304, 304, 304, 304, 232, 202, 304, 304, 125, 55, 110, 304, 304, 304, 101, 304, 304, 329, 307, 304, 304, 213, 330, 287, 283, 299, 205, 18, 304, 232, 228, 304, 304, 123, 304, 110, 304, 304, 304, 101, 304, 304, 304, 282, 304, 304, 213, 330, 287, 283, 299, 205, 304, 304, 232, 228, 304, 304, 130, 304, 110, 304, 304, 304, 101, 40, 42, 38, 271, 304, 304, 213, 330, 287, 304, 299, 32, 304, 12, 304, 304, 233, 303, 305, 306, 19, 304, 304, 233, 304, 40, 42, 38, 481, 481, 304, 22, 304, 481, 465, 481, 481, 233, 31, 304, 481, 465, 303, 305, 306, 304, 481, 481, 304, 481, 481, 481, 465, 304, 481, 465, 304, 304, 304, 304, 304, 304, 465, 304, 465, 304, 481, 304, 465, 465, 304, 465, 304, 481, 304, 465, 304, 304, 304, 304, 465, 304, 465, 465, 481, 465, 465, 481, 304, 465, 293, 304, 283, 304, 205, 304, 205, 232, 228, 304, 304, 121, 304, 110, 304, 304, 280, 101, 362, 304, 304, 304, 304, 304, 213, 330, 287, 304, 299, 312, 304, 12, 304, 12, 304, 304, 304, 304, 19, 304, 19, 283, 304, 40, 42, 38, 232, 228, 173, 304, 126, 304, 110, 304, 205, 304, 101, 304, 304, 304, 303, 305, 306, 213, 330, 287, 283, 299, 304, 304, 304, 232, 228, 304, 304, 128, 304, 110, 304, 420, 420, 101, 153, 304, 304, 304, 304, 304, 213, 330, 287, 283, 299, 40, 42, 38, 232, 228, 304, 304, 122, 304, 110, 304, 304, 304, 101, 304, 304, 304, 303, 305, 306, 213, 330, 287, 452, 299, 420, 420, 420, 304, 304, 304, 304, 304, 304, 304, 452, 304, 304, 304, 304, 283, 304, 420, 420, 420, 232, 228, 205, 304, 127, 304, 110, 304, 304, 304, 101, 304, 304, 304, 304, 304, 304, 213, 330, 287, 233, 299, 536, 51, 245, 249, 243, 225, 304, 12, 232, 304, 481, 481, 304, 29, 19, 481, 465, 304, 304, 40, 42, 38, 304, 304, 304, 481, 481, 304, 304, 304, 481, 465, 304, 304, 304, 304, 303, 305, 306, 304, 304, 304, 304, 304, 465, 414, 465, 205, 481, 304, 465, 304, 205, 304, 304, 414, 304, 414, 304, 465, 414, 465, 304, 481, 254, 465, 304, 414, 304, 414, 304, 414, 304, 205, 304, 304, 304, 304, 304, 304, 219, 304, 205, 304, 304, 304, 40, 42, 38, 304, 304, 40, 42, 38, 193, 205, 304, 304, 304, 304, 304, 304, 304, 303, 305, 306, 205, 196, 303, 305, 306, 236, 40, 42, 38, 304, 205, 304, 304, 304, 304, 40, 42, 38, 304, 304, 304, 304, 115, 303, 305, 306, 304, 304, 40, 42, 38, 205, 303, 305, 306, 304, 205, 304, 304, 40, 42, 38, 304, 304, 304, 303, 305, 306, 252, 40, 42, 38, 304, 304, 304, 304, 303, 305, 306, 304, 304, 304, 304, 304, 304, 304, 303, 305, 306, 304, 40, 42, 38, 205, 304, 40, 42, 38, 304, 304, 304, 304, 304, 304, 304, 294, 304, 303, 305, 306, 304, 332, 303, 305, 306, 304, 312, 304, 304, 304, 12, 304, 304, 304, 304, 304, 304, 19, 304, 304, 304, 304, 304, 304, 304, 173,); - - static public $yy_lookahead = array(14, 15, 16, 15, 18, 19, 74, 21, 22, 14, 15, 73, 74, 27, 19, 83, 97, 31, 32, 33, 34, 83, 36, 28, 38, 30, 38, 41, 16, 28, 35, 45, 46, 47, 48, 49, 35, 51, 100, 53, 54, 38, 56, 73, 74, 73, 60, 14, 15, 16, 38, 18, 19, 83, 21, 22, 86, 87, 86, 87, 27, 77, 78, 79, 31, 81, 33, 34, 56, 36, 100, 38, 100, 38, 41, 10, 11, 12, 45, 46, 47, 48, 49, 48, 51, 50, 53, 54, 55, 56, 55, 48, 30, 60, 14, 15, 16, 54, 18, 19, 38, 21, 22, 14, 15, 73, 74, 27, 19, 23, 1, 31, 50, 33, 34, 83, 36, 28, 38, 30, 24, 41, 13, 37, 35, 45, 46, 47, 48, 49, 16, 51, 100, 53, 54, 1, 56, 28, 29, 43, 60, 14, 15, 16, 35, 18, 19, 13, 21, 22, 65, 66, 67, 68, 27, 1, 71, 61, 31, 66, 33, 34, 28, 36, 71, 38, 14, 15, 41, 35, 56, 19, 45, 46, 47, 48, 49, 72, 51, 1, 53, 54, 77, 56, 100, 17, 81, 60, 14, 15, 16, 13, 18, 19, 1, 21, 22, 92, 105, 1, 94, 27, 96, 97, 52, 31, 28, 33, 34, 55, 36, 13, 38, 35, 81, 41, 48, 1, 48, 45, 46, 47, 48, 49, 54, 51, 28, 53, 54, 13, 56, 98, 19, 35, 60, 14, 15, 16, 74, 18, 19, 66, 21, 22, 28, 20, 71, 83, 27, 77, 78, 35, 31, 81, 33, 34, 44, 36, 17, 38, 16, 20, 41, 19, 100, 52, 45, 46, 47, 48, 49, 1, 51, 81, 53, 54, 37, 56, 39, 104, 105, 60, 14, 15, 16, 48, 18, 19, 17, 21, 22, 50, 55, 73, 74, 27, 73, 53, 28, 31, 56, 33, 34, 83, 36, 35, 38, 17, 24, 41, 37, 17, 39, 45, 46, 47, 48, 49, 24, 51, 100, 53, 54, 100, 56, 73, 74, 43, 60, 14, 15, 16, 37, 18, 19, 83, 21, 22, 48, 55, 14, 15, 27, 38, 54, 19, 31, 38, 33, 34, 55, 36, 100, 38, 17, 50, 41, 20, 73, 50, 45, 46, 47, 48, 49, 74, 51, 38, 53, 54, 37, 56, 39, 74, 83, 60, 14, 15, 16, 50, 18, 19, 83, 21, 22, 100, 101, 50, 36, 27, 93, 100, 95, 31, 67, 33, 34, 70, 36, 100, 38, 16, 20, 41, 19, 74, 2, 45, 46, 47, 48, 49, 101, 51, 83, 53, 54, 77, 56, 19, 74, 81, 60, 14, 15, 16, 95, 18, 19, 83, 21, 22, 50, 14, 15, 93, 27, 95, 19, 91, 31, 95, 33, 34, 74, 36, 98, 38, 24, 1, 41, 51, 74, 83, 45, 46, 47, 48, 49, 28, 51, 83, 53, 54, 1, 56, 35, 43, 20, 60, 14, 15, 16, 95, 18, 19, 13, 21, 22, 91, 14, 15, 74, 27, 74, 19, 98, 31, 16, 33, 34, 83, 36, 83, 38, 14, 15, 41, 96, 97, 19, 45, 46, 47, 48, 49, 69, 51, 100, 53, 100, 19, 56, 96, 97, 13, 60, 19, 52, 17, 3, 4, 5, 6, 7, 8, 9, 10, 56, 39, 28, 14, 15, 52, 1, 18, 82, 35, 21, 22, 38, 15, 16, 19, 27, 19, 13, 74, 31, 74, 33, 34, 50, 20, 66, 19, 83, 73, 83, 71, 72, 28, 36, 75, 76, 77, 20, 53, 35, 81, 95, 38, 84, 85, 14, 15, 88, 89, 90, 19, 92, 6, 56, 50, 100, 77, 78, 66, 28, 81, 102, 103, 71, 72, 48, 35, 75, 76, 77, 19, 54, 11, 81, 38, 73, 84, 85, 1, 2, 88, 89, 90, 48, 92, 19, 36, 53, 66, 19, 19, 99, 13, 71, 72, 19, 93, 75, 76, 77, 78, 82, 100, 81, 24, 19, 84, 85, 55, 25, 88, 89, 90, 1, 92, 66, 93, 55, 73, 74, 71, 72, 82, 81, 75, 76, 77, 83, 83, 81, 81, 86, 87, 84, 85, 94, 93, 88, 89, 90, 93, 92, 30, 88, 66, 100, 81, 73, 74, 71, 72, 93, 103, 75, 76, 77, 78, 83, 95, 81, 86, 87, 84, 85, 81, 93, 88, 89, 90, 80, 92, 15, 16, 66, 100, 19, 106, 106, 71, 72, 93, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 106, 92, 106, 106, 106, 106, 66, 106, 99, 106, 106, 71, 72, 106, 56, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 1, 106, 106, 71, 72, 106, 99, 75, 76, 77, 106, 106, 13, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 106, 92, 106, 106, 66, 106, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 40, 41, 42, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 106, 92, 106, 66, 57, 58, 59, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 106, 92, 66, 106, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 73, 74, 71, 72, 106, 106, 75, 76, 77, 106, 83, 106, 81, 86, 87, 84, 85, 106, 106, 88, 89, 90, 106, 92, 66, 106, 106, 100, 106, 71, 72, 106, 106, 75, 76, 77, 40, 41, 42, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 6, 92, 106, 106, 57, 58, 59, 106, 14, 15, 16, 106, 18, 106, 106, 21, 22, 106, 106, 106, 106, 27, 106, 106, 66, 31, 106, 33, 34, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 6, 92, 106, 106, 106, 60, 61, 106, 14, 15, 16, 106, 18, 106, 106, 21, 22, 106, 106, 106, 106, 27, 106, 106, 106, 31, 66, 33, 34, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 60, 61, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 73, 74, 71, 72, 106, 106, 75, 76, 77, 106, 83, 106, 81, 86, 87, 84, 85, 106, 106, 88, 89, 90, 106, 92, 66, 106, 106, 100, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 73, 74, 71, 72, 106, 106, 75, 76, 77, 106, 83, 106, 81, 86, 87, 84, 85, 106, 106, 88, 89, 90, 106, 92, 66, 106, 106, 100, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 106, 92, 66, 106, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 106, 92, 66, 106, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 106, 92, 66, 106, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 106, 92, 66, 106, 106, 106, 106, 71, 72, 106, 106, 75, 76, 77, 106, 106, 106, 81, 106, 106, 84, 85, 106, 106, 88, 89, 90, 66, 92, 1, 2, 106, 71, 72, 106, 106, 75, 106, 77, 106, 106, 106, 81, 106, 106, 106, 85, 106, 106, 88, 89, 90, 66, 92, 1, 106, 106, 71, 72, 106, 106, 75, 106, 77, 106, 106, 106, 81, 40, 41, 42, 85, 106, 106, 88, 89, 90, 106, 92, 26, 106, 28, 106, 106, 2, 57, 58, 59, 35, 106, 106, 2, 106, 40, 41, 42, 14, 15, 106, 17, 106, 19, 20, 14, 15, 2, 17, 106, 19, 20, 57, 58, 59, 106, 14, 15, 106, 14, 15, 19, 20, 106, 19, 20, 106, 106, 106, 106, 106, 106, 48, 106, 50, 106, 52, 106, 54, 48, 106, 50, 106, 52, 106, 54, 106, 106, 106, 106, 48, 106, 50, 48, 52, 50, 54, 52, 106, 54, 55, 106, 66, 106, 1, 106, 1, 71, 72, 106, 106, 75, 106, 77, 106, 106, 13, 81, 13, 106, 106, 106, 106, 106, 88, 89, 90, 106, 92, 24, 106, 28, 106, 28, 106, 106, 106, 106, 35, 106, 35, 66, 106, 40, 41, 42, 71, 72, 43, 106, 75, 106, 77, 106, 1, 106, 81, 106, 106, 106, 57, 58, 59, 88, 89, 90, 66, 92, 106, 106, 106, 71, 72, 106, 106, 75, 106, 77, 106, 1, 2, 81, 29, 106, 106, 106, 106, 106, 88, 89, 90, 66, 92, 40, 41, 42, 71, 72, 106, 106, 75, 106, 77, 106, 106, 106, 81, 106, 106, 106, 57, 58, 59, 88, 89, 90, 38, 92, 40, 41, 42, 106, 106, 106, 106, 106, 106, 106, 50, 106, 106, 106, 106, 66, 106, 57, 58, 59, 71, 72, 1, 106, 75, 106, 77, 106, 106, 106, 81, 106, 106, 106, 106, 106, 106, 88, 89, 90, 2, 92, 63, 64, 65, 66, 67, 68, 106, 28, 71, 106, 14, 15, 106, 2, 35, 19, 20, 106, 106, 40, 41, 42, 106, 106, 106, 14, 15, 106, 106, 106, 19, 20, 106, 106, 106, 106, 57, 58, 59, 106, 106, 106, 106, 106, 48, 13, 50, 1, 52, 106, 54, 106, 1, 106, 106, 23, 106, 25, 106, 48, 28, 50, 106, 52, 13, 54, 106, 35, 106, 37, 106, 39, 106, 1, 106, 106, 106, 106, 106, 106, 48, 106, 1, 106, 106, 106, 40, 41, 42, 106, 106, 40, 41, 42, 13, 1, 106, 106, 106, 106, 106, 55, 106, 57, 58, 59, 1, 13, 57, 58, 59, 39, 40, 41, 42, 106, 1, 106, 106, 106, 106, 40, 41, 42, 106, 106, 106, 106, 23, 57, 58, 59, 106, 106, 40, 41, 42, 1, 57, 58, 59, 106, 1, 106, 106, 40, 41, 42, 106, 106, 106, 57, 58, 59, 39, 40, 41, 42, 106, 106, 106, 106, 57, 58, 59, 106, 106, 106, 106, 106, 106, 106, 57, 58, 59, 106, 40, 41, 42, 1, 106, 40, 41, 42, 106, 106, 106, 106, 106, 106, 106, 13, 106, 57, 58, 59, 106, 61, 57, 58, 59, 106, 24, 106, 106, 106, 28, 106, 106, 106, 106, 106, 106, 35, 106, 106, 106, 106, 106, 106, 106, 43,); - - const YY_SHIFT_USE_DFLT = - 15; + static public $yy_action = array(292, 9, 133, 449, 280, 70, 208, 2, 84, 268, 11, 97, 155, 113, 267, 449, 366, 224, + 303, 264, 217, 279, 231, 26, 21, 172, 274, 42, 190, 304, 17, 43, 39, 269, 223, 298, 13, 209, 194, 81, 1, 143, + 317, 90, 148, 105, 52, 292, 9, 132, 93, 280, 200, 279, 2, 84, 35, 325, 91, 156, 113, 218, 219, 207, 224, 105, + 264, 217, 279, 205, 194, 21, 268, 11, 42, 262, 26, 267, 43, 39, 269, 223, 233, 17, 209, 194, 81, 1, 252, 317, + 186, 141, 101, 52, 292, 9, 134, 192, 280, 213, 279, 2, 84, 35, 325, 208, 12, 113, 235, 101, 220, 224, 3, 264, + 217, 361, 231, 194, 21, 218, 258, 42, 110, 105, 16, 43, 39, 269, 223, 298, 26, 209, 448, 81, 1, 7, 317, 17, 332, + 110, 52, 292, 9, 134, 448, 280, 197, 118, 2, 84, 286, 287, 288, 227, 113, 27, 229, 305, 224, 316, 264, 217, 232, + 231, 229, 21, 136, 120, 42, 241, 329, 102, 43, 39, 269, 223, 298, 243, 209, 137, 81, 1, 260, 317, 208, 10, 186, + 52, 292, 9, 134, 101, 280, 199, 406, 2, 84, 85, 313, 35, 325, 113, 27, 81, 248, 224, 317, 264, 217, 406, 212, + 25, 21, 194, 101, 42, 406, 317, 461, 43, 39, 269, 223, 298, 461, 209, 263, 81, 1, 318, 317, 92, 150, 22, 52, + 292, 9, 135, 140, 280, 213, 279, 2, 84, 110, 163, 94, 159, 113, 183, 296, 294, 224, 448, 264, 217, 279, 231, + 194, 21, 263, 191, 42, 309, 221, 448, 43, 39, 269, 223, 298, 316, 209, 194, 81, 1, 229, 317, 317, 163, 185, 52, + 292, 9, 131, 153, 280, 213, 194, 2, 84, 330, 268, 11, 279, 113, 24, 267, 221, 224, 30, 264, 217, 259, 231, 254, + 5, 194, 265, 42, 302, 192, 83, 43, 39, 269, 223, 298, 158, 209, 208, 81, 1, 6, 317, 4, 157, 279, 52, 292, 9, + 136, 154, 280, 213, 279, 2, 84, 27, 101, 247, 279, 113, 310, 192, 26, 224, 324, 264, 217, 170, 231, 17, 31, 121, + 180, 42, 139, 192, 279, 43, 39, 269, 223, 298, 162, 209, 137, 81, 1, 179, 317, 266, 10, 279, 52, 292, 9, 134, + 95, 280, 202, 194, 2, 84, 263, 266, 218, 222, 113, 146, 105, 266, 224, 208, 264, 217, 317, 231, 19, 21, 208, 32, + 42, 163, 178, 17, 43, 39, 269, 223, 298, 160, 209, 279, 81, 1, 107, 317, 184, 304, 279, 52, 292, 9, 134, 266, + 280, 213, 182, 2, 84, 230, 461, 336, 242, 113, 181, 192, 461, 224, 208, 264, 217, 145, 198, 319, 21, 189, 304, + 42, 124, 149, 279, 43, 39, 269, 223, 298, 322, 209, 279, 81, 1, 194, 317, 121, 208, 34, 52, 292, 9, 136, 266, + 280, 213, 138, 2, 84, 208, 37, 265, 152, 113, 236, 295, 37, 224, 297, 264, 217, 279, 231, 175, 31, 276, 261, 42, + 249, 187, 251, 43, 39, 269, 223, 298, 193, 209, 192, 81, 477, 477, 317, 404, 275, 477, 52, 234, 114, 270, 285, + 281, 282, 283, 289, 183, 12, 208, 404, 292, 9, 33, 331, 280, 284, 404, 2, 84, 448, 271, 250, 173, 113, 166, 98, + 246, 224, 111, 264, 217, 448, 20, 323, 221, 6, 477, 477, 229, 214, 291, 477, 115, 69, 109, 40, 41, 38, 102, 268, + 11, 278, 335, 168, 267, 211, 277, 299, 144, 260, 188, 263, 327, 328, 334, 293, 323, 279, 169, 206, 312, 229, + 214, 87, 477, 115, 69, 109, 266, 266, 108, 102, 165, 208, 278, 335, 119, 226, 211, 277, 299, 88, 260, 406, 89, + 323, 274, 86, 290, 300, 229, 214, 333, 311, 128, 59, 106, 222, 406, 151, 102, 171, 164, 278, 335, 406, 96, 211, + 277, 299, 323, 260, 300, 186, 174, 229, 214, 268, 11, 128, 65, 109, 267, 279, 300, 102, 35, 325, 278, 335, 300, + 26, 211, 277, 299, 300, 260, 300, 17, 323, 194, 300, 300, 216, 229, 214, 300, 300, 128, 65, 109, 300, 300, 300, + 102, 300, 208, 278, 335, 448, 300, 211, 277, 299, 300, 260, 400, 300, 323, 240, 300, 448, 215, 229, 214, 208, + 253, 128, 49, 106, 112, 26, 300, 102, 300, 403, 278, 335, 17, 300, 211, 277, 299, 323, 260, 300, 300, 300, 229, + 214, 403, 300, 128, 65, 109, 300, 300, 403, 102, 300, 300, 278, 335, 300, 300, 211, 277, 299, 300, 260, 300, + 300, 323, 300, 300, 300, 210, 229, 214, 300, 300, 128, 59, 109, 300, 300, 300, 102, 300, 300, 278, 335, 300, + 300, 211, 277, 299, 300, 260, 300, 300, 323, 300, 300, 300, 300, 229, 214, 300, 300, 128, 64, 109, 300, 300, + 300, 102, 300, 300, 278, 335, 300, 300, 211, 277, 299, 323, 260, 300, 300, 300, 229, 214, 300, 300, 128, 74, + 109, 300, 36, 239, 102, 300, 176, 278, 335, 300, 300, 211, 277, 299, 300, 260, 300, 300, 323, 300, 300, 300, + 300, 229, 78, 300, 300, 82, 44, 104, 300, 300, 300, 102, 300, 300, 278, 335, 300, 300, 211, 277, 299, 317, 260, + 300, 300, 323, 300, 300, 300, 300, 229, 80, 300, 300, 82, 47, 104, 300, 300, 300, 102, 300, 300, 278, 335, 300, + 300, 211, 277, 299, 323, 260, 300, 300, 300, 229, 214, 300, 300, 99, 54, 109, 300, 300, 300, 102, 300, 300, 278, + 335, 300, 300, 211, 277, 299, 300, 260, 300, 300, 323, 300, 300, 300, 300, 229, 214, 300, 300, 128, 61, 109, + 300, 300, 300, 102, 300, 300, 278, 335, 314, 300, 211, 277, 299, 300, 260, 300, 292, 8, 315, 300, 280, 300, 300, + 2, 84, 300, 18, 201, 300, 113, 272, 300, 300, 224, 323, 264, 217, 300, 300, 229, 214, 300, 300, 128, 66, 109, + 300, 273, 300, 102, 300, 300, 278, 335, 300, 300, 211, 277, 299, 323, 260, 300, 301, 23, 229, 214, 300, 317, + 128, 72, 109, 300, 300, 300, 102, 300, 300, 278, 335, 314, 300, 211, 277, 299, 300, 260, 300, 292, 8, 315, 300, + 280, 300, 300, 2, 84, 300, 300, 300, 300, 113, 300, 300, 300, 224, 323, 264, 217, 300, 300, 229, 214, 300, 300, + 128, 63, 109, 300, 300, 300, 102, 300, 300, 278, 335, 300, 300, 211, 277, 299, 323, 260, 300, 300, 23, 229, 214, + 300, 300, 128, 45, 109, 300, 300, 300, 102, 268, 11, 278, 335, 300, 267, 211, 277, 299, 300, 260, 300, 300, 323, + 26, 300, 147, 300, 229, 204, 300, 17, 117, 53, 109, 300, 300, 300, 102, 300, 300, 278, 335, 300, 300, 211, 277, + 299, 300, 260, 300, 300, 323, 300, 300, 300, 300, 229, 214, 300, 300, 128, 75, 109, 300, 300, 300, 102, 300, + 300, 278, 335, 300, 300, 211, 277, 299, 323, 260, 300, 300, 300, 229, 214, 300, 300, 128, 56, 109, 300, 300, + 300, 102, 300, 300, 278, 335, 300, 300, 211, 277, 299, 300, 260, 300, 300, 323, 300, 300, 300, 300, 229, 214, + 300, 300, 116, 50, 109, 300, 300, 300, 102, 300, 300, 278, 335, 300, 300, 211, 277, 299, 300, 260, 300, 300, + 323, 300, 300, 300, 300, 229, 214, 300, 300, 103, 67, 109, 300, 300, 300, 102, 300, 300, 278, 335, 300, 300, + 211, 277, 299, 323, 260, 300, 300, 300, 229, 214, 300, 300, 128, 46, 109, 300, 300, 300, 102, 300, 300, 278, + 335, 300, 300, 211, 277, 299, 300, 260, 300, 300, 323, 300, 300, 300, 300, 229, 214, 300, 300, 128, 76, 109, + 300, 300, 300, 102, 300, 300, 278, 335, 300, 300, 211, 277, 299, 300, 260, 300, 300, 323, 300, 300, 300, 300, + 229, 214, 300, 300, 128, 73, 109, 300, 300, 300, 102, 300, 300, 278, 335, 300, 300, 211, 277, 299, 323, 260, + 300, 300, 300, 229, 214, 300, 300, 128, 77, 109, 300, 300, 300, 102, 300, 300, 278, 335, 300, 300, 211, 277, + 299, 300, 260, 300, 300, 323, 300, 300, 300, 300, 229, 214, 300, 300, 128, 79, 109, 300, 300, 300, 102, 300, + 300, 278, 335, 300, 300, 211, 277, 299, 300, 260, 300, 300, 323, 300, 300, 300, 300, 229, 214, 300, 300, 128, + 58, 109, 300, 300, 300, 102, 300, 300, 278, 335, 300, 300, 211, 277, 299, 323, 260, 300, 300, 300, 229, 203, + 300, 300, 128, 55, 109, 300, 300, 300, 102, 300, 300, 278, 335, 300, 300, 211, 277, 299, 300, 260, 300, 300, + 323, 300, 300, 300, 300, 229, 214, 300, 300, 128, 62, 109, 300, 300, 300, 102, 300, 300, 278, 335, 300, 300, + 211, 277, 299, 300, 260, 300, 300, 323, 300, 300, 300, 300, 229, 214, 300, 300, 128, 60, 109, 300, 300, 300, + 102, 300, 300, 278, 335, 300, 300, 211, 277, 299, 323, 260, 300, 300, 300, 229, 214, 300, 300, 128, 71, 109, + 300, 300, 300, 102, 300, 300, 278, 335, 300, 300, 211, 277, 299, 300, 260, 300, 300, 323, 300, 300, 300, 300, + 229, 214, 300, 300, 128, 57, 109, 300, 300, 300, 102, 300, 300, 278, 335, 300, 300, 211, 277, 299, 300, 260, + 300, 300, 323, 300, 300, 300, 300, 229, 214, 300, 300, 128, 48, 109, 300, 300, 300, 102, 300, 300, 278, 335, + 300, 300, 211, 277, 299, 323, 260, 300, 300, 300, 229, 214, 300, 300, 100, 68, 109, 300, 300, 300, 102, 300, + 300, 278, 335, 300, 410, 211, 277, 299, 300, 260, 300, 300, 323, 300, 410, 300, 410, 229, 237, 410, 300, 122, + 300, 109, 300, 300, 410, 102, 410, 300, 410, 326, 300, 300, 211, 277, 299, 300, 260, 221, 300, 323, 300, 208, + 300, 300, 229, 237, 416, 416, 130, 300, 109, 300, 300, 300, 102, 300, 300, 300, 255, 300, 300, 211, 277, 299, + 29, 260, 26, 532, 51, 244, 287, 288, 227, 17, 300, 229, 225, 300, 40, 41, 38, 448, 300, 416, 416, 416, 477, 477, + 225, 15, 300, 477, 461, 448, 300, 327, 328, 334, 477, 477, 416, 416, 416, 477, 461, 208, 300, 300, 300, 300, 40, + 41, 38, 300, 300, 307, 300, 300, 300, 300, 461, 300, 461, 300, 477, 300, 461, 327, 328, 334, 26, 300, 461, 300, + 461, 225, 477, 17, 461, 320, 300, 300, 40, 41, 38, 477, 477, 300, 32, 300, 477, 461, 300, 300, 300, 300, 300, + 300, 300, 327, 328, 334, 300, 300, 300, 323, 300, 300, 300, 300, 229, 237, 300, 300, 127, 300, 109, 300, 300, + 461, 102, 461, 300, 477, 300, 461, 300, 211, 277, 299, 300, 260, 14, 300, 300, 323, 300, 300, 300, 300, 229, + 237, 477, 477, 126, 300, 109, 477, 461, 300, 102, 300, 300, 300, 300, 300, 300, 211, 277, 299, 300, 260, 300, + 300, 323, 300, 300, 300, 300, 229, 237, 300, 300, 123, 300, 109, 461, 300, 461, 102, 477, 300, 461, 300, 300, + 300, 211, 277, 299, 300, 260, 300, 323, 300, 300, 300, 300, 229, 237, 300, 300, 129, 300, 109, 300, 300, 300, + 102, 300, 300, 300, 300, 300, 300, 211, 277, 299, 208, 260, 225, 300, 208, 323, 300, 300, 300, 300, 229, 237, + 477, 477, 125, 300, 109, 477, 461, 300, 102, 300, 300, 300, 300, 26, 300, 211, 277, 299, 300, 260, 17, 300, 208, + 300, 300, 40, 41, 38, 256, 40, 41, 38, 245, 208, 461, 300, 461, 300, 477, 300, 461, 300, 327, 328, 334, 208, + 327, 328, 334, 300, 300, 300, 300, 300, 300, 257, 300, 208, 300, 40, 41, 38, 300, 300, 300, 300, 300, 195, 300, + 228, 40, 41, 38, 300, 300, 300, 327, 328, 334, 300, 208, 300, 40, 41, 38, 208, 28, 327, 328, 334, 196, 208, 300, + 300, 40, 41, 38, 300, 300, 327, 328, 334, 300, 300, 300, 300, 300, 300, 300, 300, 300, 327, 328, 334, 300, 300, + 300, 40, 41, 38, 208, 300, 40, 41, 38, 208, 300, 300, 40, 41, 38, 300, 477, 477, 327, 328, 334, 477, 461, 327, + 328, 334, 300, 321, 300, 327, 328, 334, 208, 300, 300, 167, 300, 300, 300, 300, 300, 40, 41, 38, 300, 300, 40, + 41, 38, 300, 461, 300, 461, 300, 477, 300, 461, 300, 327, 328, 334, 300, 308, 327, 328, 334, 208, 300, 208, 40, + 41, 38, 300, 300, 300, 300, 372, 300, 358, 300, 300, 300, 300, 238, 300, 300, 327, 328, 334, 263, 300, 26, 300, + 26, 300, 300, 186, 177, 17, 300, 17, 448, 300, 300, 186, 161, 279, 300, 163, 35, 325, 208, 300, 448, 279, 186, + 142, 35, 325, 300, 300, 306, 300, 194, 300, 279, 300, 300, 35, 325, 300, 194, 263, 300, 300, 300, 26, 300, 300, + 300, 300, 300, 194, 17, 300, 300, 300, 300, 300, 300, 300, 163,); + + static public $yy_lookahead = array(12, 13, 14, 36, 16, 17, 1, 19, 20, 12, 13, 71, 72, 25, 17, 48, 11, 29, 30, 31, + 32, 81, 34, 26, 36, 28, 92, 39, 94, 95, 33, 43, 44, 45, 46, 47, 21, 49, 98, 51, 52, 75, 54, 71, 72, 79, 58, 12, + 13, 14, 35, 16, 17, 81, 19, 20, 84, 85, 71, 72, 25, 75, 76, 77, 29, 79, 31, 32, 81, 34, 98, 36, 12, 13, 39, 17, + 26, 17, 43, 44, 45, 46, 47, 33, 49, 98, 51, 52, 53, 54, 71, 72, 18, 58, 12, 13, 14, 98, 16, 17, 81, 19, 20, 84, + 85, 1, 15, 25, 50, 18, 50, 29, 36, 31, 32, 11, 34, 98, 36, 75, 76, 39, 48, 79, 28, 43, 44, 45, 46, 47, 26, 49, + 36, 51, 52, 36, 54, 33, 17, 48, 58, 12, 13, 14, 48, 16, 17, 48, 19, 20, 63, 64, 65, 66, 25, 35, 69, 37, 29, 64, + 31, 32, 70, 34, 69, 36, 14, 75, 39, 17, 49, 79, 43, 44, 45, 46, 47, 14, 49, 46, 51, 52, 90, 54, 1, 52, 71, 58, + 12, 13, 14, 18, 16, 17, 11, 19, 20, 102, 103, 84, 85, 25, 35, 51, 37, 29, 54, 31, 32, 26, 34, 15, 36, 98, 18, + 39, 33, 54, 46, 43, 44, 45, 46, 47, 52, 49, 22, 51, 52, 95, 54, 71, 72, 15, 58, 12, 13, 14, 14, 16, 17, 81, 19, + 20, 48, 41, 71, 72, 25, 8, 9, 10, 29, 36, 31, 32, 81, 34, 98, 36, 22, 71, 39, 59, 46, 48, 43, 44, 45, 46, 47, + 64, 49, 98, 51, 52, 69, 54, 54, 41, 71, 58, 12, 13, 14, 72, 16, 17, 98, 19, 20, 53, 12, 13, 81, 25, 15, 17, 46, + 29, 13, 31, 32, 22, 34, 53, 36, 98, 99, 39, 103, 98, 17, 43, 44, 45, 46, 47, 72, 49, 1, 51, 52, 36, 54, 35, 72, + 81, 58, 12, 13, 14, 72, 16, 17, 81, 19, 20, 35, 18, 37, 81, 25, 53, 98, 26, 29, 89, 31, 32, 72, 34, 33, 36, 96, + 71, 39, 14, 98, 81, 43, 44, 45, 46, 47, 72, 49, 46, 51, 52, 91, 54, 93, 52, 81, 58, 12, 13, 14, 36, 16, 17, 98, + 19, 20, 22, 93, 75, 76, 25, 91, 79, 93, 29, 1, 31, 32, 54, 34, 26, 36, 1, 15, 39, 41, 72, 33, 43, 44, 45, 46, + 47, 72, 49, 81, 51, 52, 79, 54, 94, 95, 81, 58, 12, 13, 14, 93, 16, 17, 14, 19, 20, 17, 46, 96, 17, 25, 71, 98, + 52, 29, 1, 31, 32, 72, 34, 53, 36, 94, 95, 39, 17, 72, 81, 43, 44, 45, 46, 47, 89, 49, 81, 51, 52, 98, 54, 96, + 1, 28, 58, 12, 13, 14, 93, 16, 17, 79, 19, 20, 1, 2, 99, 72, 25, 18, 65, 2, 29, 68, 31, 32, 81, 34, 51, 36, 34, + 17, 39, 53, 80, 37, 43, 44, 45, 46, 47, 17, 49, 98, 51, 12, 13, 54, 11, 17, 17, 58, 15, 17, 34, 3, 4, 5, 6, 7, + 8, 15, 1, 26, 12, 13, 23, 17, 16, 4, 33, 19, 20, 36, 17, 53, 51, 25, 91, 80, 17, 29, 21, 31, 32, 48, 42, 64, 46, + 36, 12, 13, 69, 70, 11, 17, 73, 74, 75, 38, 39, 40, 79, 12, 13, 82, 83, 91, 17, 86, 87, 88, 72, 90, 80, 22, 55, + 56, 57, 81, 64, 81, 91, 100, 101, 69, 70, 79, 50, 73, 74, 75, 93, 93, 67, 79, 91, 1, 82, 83, 78, 50, 86, 87, 88, + 79, 90, 11, 79, 64, 92, 79, 9, 104, 69, 70, 86, 101, 73, 74, 75, 76, 26, 27, 79, 91, 91, 82, 83, 33, 91, 86, 87, + 88, 64, 90, 104, 71, 72, 69, 70, 12, 13, 73, 74, 75, 17, 81, 104, 79, 84, 85, 82, 83, 104, 26, 86, 87, 88, 104, + 90, 104, 33, 64, 98, 104, 104, 97, 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, 1, 82, 83, 36, 104, 86, + 87, 88, 104, 90, 11, 104, 64, 46, 104, 48, 97, 69, 70, 1, 53, 73, 74, 75, 76, 26, 104, 79, 104, 11, 82, 83, 33, + 104, 86, 87, 88, 64, 90, 104, 104, 104, 69, 70, 26, 104, 73, 74, 75, 104, 104, 33, 79, 104, 104, 82, 83, 104, + 104, 86, 87, 88, 104, 90, 104, 104, 64, 104, 104, 104, 97, 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, + 104, 82, 83, 104, 104, 86, 87, 88, 104, 90, 104, 104, 64, 104, 104, 104, 104, 69, 70, 104, 104, 73, 74, 75, 104, + 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 64, 90, 104, 104, 104, 69, 70, 104, 104, 73, 74, 75, 104, + 13, 14, 79, 104, 17, 82, 83, 104, 104, 86, 87, 88, 104, 90, 104, 104, 64, 104, 104, 104, 104, 69, 70, 104, 104, + 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 54, 90, 104, 104, 64, 104, 104, 104, 104, + 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 64, 90, 104, 104, 104, + 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 104, 90, 104, 104, 64, + 104, 104, 104, 104, 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 4, 104, 86, 87, 88, 104, + 90, 104, 12, 13, 14, 104, 16, 104, 104, 19, 20, 104, 13, 14, 104, 25, 17, 104, 104, 29, 64, 31, 32, 104, 104, + 69, 70, 104, 104, 73, 74, 75, 104, 34, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 64, 90, 104, 58, 59, 69, + 70, 104, 54, 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 4, 104, 86, 87, 88, 104, 90, 104, 12, 13, 14, 104, + 16, 104, 104, 19, 20, 104, 104, 104, 104, 25, 104, 104, 104, 29, 64, 31, 32, 104, 104, 69, 70, 104, 104, 73, 74, + 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 64, 90, 104, 58, 59, 69, 70, 104, 104, 73, 74, + 75, 104, 104, 104, 79, 12, 13, 82, 83, 104, 17, 86, 87, 88, 104, 90, 104, 104, 64, 26, 104, 28, 104, 69, 70, + 104, 33, 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 104, 90, 104, 104, 64, 104, 104, + 104, 104, 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 64, 90, 104, + 104, 104, 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 104, 90, 104, + 104, 64, 104, 104, 104, 104, 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, + 87, 88, 104, 90, 104, 104, 64, 104, 104, 104, 104, 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, 104, + 82, 83, 104, 104, 86, 87, 88, 64, 90, 104, 104, 104, 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, 104, + 82, 83, 104, 104, 86, 87, 88, 104, 90, 104, 104, 64, 104, 104, 104, 104, 69, 70, 104, 104, 73, 74, 75, 104, 104, + 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 104, 90, 104, 104, 64, 104, 104, 104, 104, 69, 70, 104, 104, + 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 64, 90, 104, 104, 104, 69, 70, 104, 104, + 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 104, 90, 104, 104, 64, 104, 104, 104, + 104, 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 104, 90, 104, 104, + 64, 104, 104, 104, 104, 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, + 64, 90, 104, 104, 104, 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, + 104, 90, 104, 104, 64, 104, 104, 104, 104, 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, + 104, 104, 86, 87, 88, 104, 90, 104, 104, 64, 104, 104, 104, 104, 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, + 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 64, 90, 104, 104, 104, 69, 70, 104, 104, 73, 74, 75, 104, 104, 104, + 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 104, 90, 104, 104, 64, 104, 104, 104, 104, 69, 70, 104, 104, 73, 74, + 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 104, 90, 104, 104, 64, 104, 104, 104, 104, 69, + 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 104, 86, 87, 88, 64, 90, 104, 104, 104, 69, + 70, 104, 104, 73, 74, 75, 104, 104, 104, 79, 104, 104, 82, 83, 104, 11, 86, 87, 88, 104, 90, 104, 104, 64, 104, + 21, 104, 23, 69, 70, 26, 104, 73, 104, 75, 104, 104, 33, 79, 35, 104, 37, 83, 104, 104, 86, 87, 88, 104, 90, 46, + 104, 64, 104, 1, 104, 104, 69, 70, 1, 2, 73, 104, 75, 104, 104, 104, 79, 104, 104, 104, 83, 104, 104, 86, 87, + 88, 24, 90, 26, 61, 62, 63, 64, 65, 66, 33, 104, 69, 2, 104, 38, 39, 40, 36, 104, 38, 39, 40, 12, 13, 2, 15, + 104, 17, 18, 48, 104, 55, 56, 57, 12, 13, 55, 56, 57, 17, 18, 1, 104, 104, 104, 104, 38, 39, 40, 104, 104, 11, + 104, 104, 104, 104, 46, 104, 48, 104, 50, 104, 52, 55, 56, 57, 26, 104, 46, 104, 48, 2, 50, 33, 52, 53, 104, + 104, 38, 39, 40, 12, 13, 104, 15, 104, 17, 18, 104, 104, 104, 104, 104, 104, 104, 55, 56, 57, 104, 104, 104, 64, + 104, 104, 104, 104, 69, 70, 104, 104, 73, 104, 75, 104, 104, 46, 79, 48, 104, 50, 104, 52, 104, 86, 87, 88, 104, + 90, 2, 104, 104, 64, 104, 104, 104, 104, 69, 70, 12, 13, 73, 104, 75, 17, 18, 104, 79, 104, 104, 104, 104, 104, + 104, 86, 87, 88, 104, 90, 104, 104, 64, 104, 104, 104, 104, 69, 70, 104, 104, 73, 104, 75, 46, 104, 48, 79, 50, + 104, 52, 104, 104, 104, 86, 87, 88, 104, 90, 104, 64, 104, 104, 104, 104, 69, 70, 104, 104, 73, 104, 75, 104, + 104, 104, 79, 104, 104, 104, 104, 104, 104, 86, 87, 88, 1, 90, 2, 104, 1, 64, 104, 104, 104, 104, 69, 70, 12, + 13, 73, 104, 75, 17, 18, 104, 79, 104, 104, 104, 104, 26, 104, 86, 87, 88, 104, 90, 33, 104, 1, 104, 104, 38, + 39, 40, 37, 38, 39, 40, 11, 1, 46, 104, 48, 104, 50, 104, 52, 104, 55, 56, 57, 1, 55, 56, 57, 104, 104, 104, + 104, 104, 104, 11, 104, 1, 104, 38, 39, 40, 104, 104, 104, 104, 104, 11, 104, 37, 38, 39, 40, 104, 104, 104, 55, + 56, 57, 104, 1, 104, 38, 39, 40, 1, 2, 55, 56, 57, 11, 1, 104, 104, 38, 39, 40, 104, 104, 55, 56, 57, 104, 104, + 104, 104, 104, 104, 104, 104, 104, 55, 56, 57, 104, 104, 104, 38, 39, 40, 1, 104, 38, 39, 40, 1, 104, 104, 38, + 39, 40, 104, 12, 13, 55, 56, 57, 17, 18, 55, 56, 57, 104, 53, 104, 55, 56, 57, 1, 104, 104, 27, 104, 104, 104, + 104, 104, 38, 39, 40, 104, 104, 38, 39, 40, 104, 46, 104, 48, 104, 50, 104, 52, 104, 55, 56, 57, 104, 59, 55, + 56, 57, 1, 104, 1, 38, 39, 40, 104, 104, 104, 104, 11, 104, 11, 104, 104, 104, 104, 18, 104, 104, 55, 56, 57, + 22, 104, 26, 104, 26, 104, 104, 71, 72, 33, 104, 33, 36, 104, 104, 71, 72, 81, 104, 41, 84, 85, 1, 104, 48, 81, + 71, 72, 84, 85, 104, 104, 11, 104, 98, 104, 81, 104, 104, 84, 85, 104, 98, 22, 104, 104, 104, 26, 104, 104, 104, + 104, 104, 98, 33, 104, 104, 104, 104, 104, 104, 104, 41,); + + const YY_SHIFT_USE_DFLT = - 34; const YY_SHIFT_MAX = 242; - static public $yy_shift_ofst = array(517, 409, 80, 80, 80, 315, 409, 315, - 14, - 14, 33, 174, 174, 80, 80, 80, 80, 80, 80, 80, 80, 80, 268, 80, 80, 80, 80, 80, 80, 127, 221, 80, 80, 80, 80, 80, 80, 362, 362, 456, 456, 456, 456, 456, 1690, 1582, 1826, 1826, 1826, 1826, 1826, 517, 988, 1952, 1962, 1983, 1919, 1557, 759, 1740, 1928, 1941, 1893, 1898, 1988, 1988, 1988, 1988, 1988, 1988, 1988, 1988, 1988, 1988, 533, 1988, 1988, 941, 941, 1692, 2025, 244, 134, 270, 12, 1037, 89, - 5, 560, 560, 198, 198, 270, 270, 12, 546, 270, 12, 606, 109, 685, 152, 216, 178, 337, 65, 241, 326, 326, 1, 382, 385, 448, 385, 154, 472, 431, 463, 641, 1, 225, 193, 193, 193, 225, 193, 193, 193, 193, 193, - 15, 1611, 1632, 1618, 1843, 1858, 1629, 526, 481, 419, 290, 1, 1, 1, 43, 170, 43, 43, - 12, 43, 170, 114, 1, 114, 43, 43, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 43, 114, 1, 114, 1, 400, 1, 43, 1, 1, 1, 294, 404, 193, 565, 193, 590, 193, 404, 225, 225, 193, 193, 225, - 15, - 15, - 15, - 15, - 15, 1765, 1879, 502, 35, 466, 96, 62, 284, 213, 295, 237, 168, 239, 273, 86, 329, 309, 333, 305, 424, 565, 564, 579, 595, 580, 524, 536, 514, 575, 563, 599, 609, 615, 613, 582, 608, 600, 605, 498, 212, 271, 591, 3, 352, 492, 490,); + static public $yy_shift_ofst = array(517, 364, 270, 82, 364, 270, 82, 82, - 12, - 12, 35, 82, 82, 82, 129, 82, 82, + 82, 82, 176, 223, 82, 82, 82, 82, 82, 176, 82, 82, 82, 82, 82, 411, 82, 82, 82, 82, 317, 317, 458, 458, 458, + 458, 458, 1680, 1616, 1852, 1852, 1852, 1852, 1852, 517, 1004, 1955, 1989, 1984, 1909, 526, 1886, 1897, 1944, + 1921, 1856, 1949, 2012, 2012, 2012, 2012, 2012, 2012, 2046, 2012, 2012, 2012, 2012, 2012, 2012, 1648, 2091, + 1648, 2048, 152, 104, 319, 343, 933, - 3, 1063, 634, 634, 684, 684, 319, 343, 319, 343, 321, 319, 478, 601, 703, + 805, 60, 183, 196, 280, 91, 280, 241, 74, 415, 224, 50, 373, 466, 440, 5, 393, 415, 50, 173, 173, 400, 400, 400, + 400, 400, 400, 400, 400, - 34, 1709, 1662, 1650, 1853, 1766, 1985, 942, 556, 387, 498, 50, 50, 281, 50, 50, 133, + 163, 50, 50, 50, 163, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 121, 133, 133, 133, 163, 133, 133, 50, 133, + 163, 172, 50, 172, 287, 50, 50, 133, 400, 400, 76, 608, 173, 400, 400, 484, 484, 173, 173, 400, - 34, - 34, + - 34, - 34, - 34, 1621, 1567, 502, 652, 543, 96, 204, 238, 252, 290, 15, 58, - 33, 120, 99, 218, 217, 363, 167, + 303, 501, 511, 508, 515, 485, 463, 461, 489, 497, 522, 530, 509, 548, 518, 507, 490, 487, 528, 479, 434, 558, + 295, 76, 418, 442, 445,); - const YY_REDUCE_USE_DFLT = - 82; + const YY_REDUCE_USE_DFLT = - 67; const YY_REDUCE_MAX = 196; - static public $yy_reduce_ofst = array(1784, 488, 636, 521, 667, 551, 578, 607, 692, 774, 903, 1336, 1284, 1361, 1465, 1259, 1105, 1157, 1182, 1413, 876, 826, 851, 1028, 1080, 1207, 1053, 1234, 1438, 1388, 1311, 1130, 799, 749, 721, 1003, 952, 1515, 1490, 1687, 1623, 1662, 1712, 1754, - 30, 574, 603, 872, - 30, 1049, 1126, 85, 175, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, - 28, 252, - 28, - 28, - 28, - 28, 220, 220, 105, 32, - 62, - 16, 93, 346, 378, 475, 331, 291, 164, 299, 408, 508, 106, 410, 172, 285, 223, 133, 342, 223, 223, 402, 327, 402, 297, 342, - 68, 402, 348, 484, 388, 223, 340, 370, 223, 223, 473, 417, 223, 223, 223, 402, 223, 223, 223, 223, 531, 223, 587, 587, 587, 587, 587, 587, 192, 592, 587, 587, 573, 573, 573, 570, 601, 570, 570, 576, 570, 572, 577, 573, 571, 570, 570, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 570, 594, 573, 612, 573, 584, 573, 570, 573, 573, 573, 618, 311, 84, 616, 84, 437, 84, 311, - 81, - 81, 84, 84, - 81, 569, 532, 454, 548, 552,); + static public $yy_reduce_ofst = array(1582, 488, 633, 658, 521, 550, 575, 604, 770, 799, 1024, 1302, 1410, 1439, + 1244, 1107, 1190, 1493, 1078, 824, 970, 687, 924, 1327, 1219, 1161, 1136, 1053, 1273, 1468, 1385, 1356, 899, + 995, 741, 716, 853, 1551, 1522, 1764, 1794, 1736, 1707, 1677, - 28, 571, 19, - 28, 2006, 2014, 2025, 87, 95, + 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 175, 115, 115, 115, 115, + 115, 115, 115, 160, 115, 160, 92, - 13, - 60, - 14, 207, 333, 380, 505, 293, 246, 213, 260, 44, 410, 312, - 66, + 340, 209, 190, 190, 338, 299, 190, 325, 299, 325, 279, 420, 325, 258, - 34, 278, 254, 366, 190, 190, 190, 370, + 372, 325, 354, 190, 190, 284, 190, 190, 190, 190, 190, 190, 496, 496, 496, 496, 496, 496, 397, 504, 496, 496, + 503, 503, 527, 503, 503, 523, 531, 503, 503, 503, 513, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, + 535, 523, 523, 523, 537, 523, 523, 503, 523, 534, 510, 503, 539, 540, 503, 503, 523, - 1, - 1, 544, 532, 134, + - 1, - 1, 382, 382, 134, 134, - 1, 499, 464, 419, 452, 481,); - static public $yyExpectedTokens = array(array(3, 4, 5, 6, 7, 8, 9, 10, 14, 15, 18, 21, 22, 27, 31, 33, 34,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 32, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 32, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 55, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 54, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 56, 60,), array(14, 15, 16, 18, 19, 21, 22, 27, 31, 33, 34, 36, 38, 41, 45, 46, 47, 48, 49, 51, 53, 56, 60,), array(1, 13, 28, 35, 40, 41, 42, 57, 58, 59,), array(1, 26, 28, 35, 40, 41, 42, 57, 58, 59,), array(1, 28, 35, 40, 41, 42, 57, 58, 59,), array(1, 28, 35, 40, 41, 42, 57, 58, 59,), array(1, 28, 35, 40, 41, 42, 57, 58, 59,), array(1, 28, 35, 40, 41, 42, 57, 58, 59,), array(1, 28, 35, 40, 41, 42, 57, 58, 59,), array(3, 4, 5, 6, 7, 8, 9, 10, 14, 15, 18, 21, 22, 27, 31, 33, 34,), array(6, 14, 15, 16, 18, 21, 22, 27, 31, 33, 34, 60, 61,), array(1, 23, 40, 41, 42, 57, 58, 59,), array(1, 39, 40, 41, 42, 57, 58, 59,), array(1, 40, 41, 42, 57, 58, 59, 61,), array(1, 39, 40, 41, 42, 57, 58, 59,), array(1, 2, 40, 41, 42, 57, 58, 59,), array(1, 13, 40, 41, 42, 57, 58, 59,), array(1, 29, 40, 41, 42, 57, 58, 59,), array(1, 13, 40, 41, 42, 57, 58, 59,), array(1, 13, 40, 41, 42, 57, 58, 59,), array(1, 40, 41, 42, 55, 57, 58, 59,), array(1, 13, 40, 41, 42, 57, 58, 59,), array(1, 40, 41, 42, 57, 58, 59,), array(1, 40, 41, 42, 57, 58, 59,), array(1, 40, 41, 42, 57, 58, 59,), array(1, 40, 41, 42, 57, 58, 59,), array(1, 40, 41, 42, 57, 58, 59,), array(1, 40, 41, 42, 57, 58, 59,), array(1, 40, 41, 42, 57, 58, 59,), array(1, 40, 41, 42, 57, 58, 59,), array(1, 40, 41, 42, 57, 58, 59,), array(1, 40, 41, 42, 57, 58, 59,), array(1, 13, 20, 28, 35, 38, 50,), array(1, 40, 41, 42, 57, 58, 59,), array(1, 40, 41, 42, 57, 58, 59,), array(40, 41, 42, 57, 58, 59,), array(40, 41, 42, 57, 58, 59,), array(1, 13, 24, 28, 35, 43,), array(1, 13, 24, 28, 35, 43,), array(16, 19, 53, 56,), array(1, 13, 28, 35,), array(1, 28, 35,), array(16, 38, 56,), array(6, 14, 15, 16, 18, 21, 22, 27, 31, 33, 34, 60, 61,), array(14, 15, 19, 28, 30, 35,), array(14, 15, 19, 28, 30, 35,), array(14, 15, 19, 28, 35,), array(14, 15, 19, 28, 35,), array(1, 13, 28, 35,), array(1, 13, 28, 35,), array(1, 28, 35,), array(1, 28, 35,), array(16, 38, 56,), array(20, 48, 54,), array(1, 28, 35,), array(16, 38, 56,), array(1, 2,), array(1, 13, 28, 29, 35,), array(15, 16, 19, 56,), array(14, 15, 19, 52,), array(1, 13, 28, 35,), array(1, 13, 28, 35,), array(17, 20, 50,), array(10, 11, 12,), array(17, 20, 50,), array(14, 15, 19,), array(14, 15, 19,), array(28, 35,), array(20, 50,), array(16, 19,), array(1, 20,), array(16, 19,), array(1, 55,), array(16, 56,), array(28, 35,), array(1, 13,), array(1, 30,), array(28, 35,), array(20,), array(1,), array(1,), array(1,), array(20,), array(1,), array(1,), array(1,), array(1,), array(1,), array(), array(2, 14, 15, 17, 19, 20, 48, 50, 52, 54,), array(2, 14, 15, 19, 20, 48, 50, 52, 54, 55,), array(2, 14, 15, 17, 19, 20, 48, 50, 52, 54,), array(2, 14, 15, 19, 20, 48, 50, 52, 54,), array(2, 14, 15, 19, 20, 48, 50, 52, 54,), array(14, 15, 19, 20, 48, 50, 52, 54,), array(15, 16, 19, 36, 56,), array(14, 15, 19, 52,), array(14, 15, 19,), array(17, 48, 54,), array(28, 35,), array(28, 35,), array(28, 35,), array(48, 54,), array(48, 54,), array(48, 54,), array(48, 54,), array(15, 38,), array(48, 54,), array(48, 54,), array(16, 56,), array(28, 35,), array(16, 56,), array(48, 54,), array(48, 54,), array(28, 35,), array(28, 35,), array(28, 35,), array(28, 35,), array(28, 35,), array(28, 35,), array(28, 35,), array(28, 35,), array(28, 35,), array(28, 35,), array(28, 35,), array(28, 35,), array(48, 54,), array(16, 56,), array(28, 35,), array(16, 56,), array(28, 35,), array(19, 51,), array(28, 35,), array(48, 54,), array(28, 35,), array(28, 35,), array(28, 35,), array(17, 24,), array(2,), array(1,), array(38,), array(1,), array(11,), array(1,), array(2,), array(20,), array(20,), array(1,), array(1,), array(20,), array(), array(), array(), array(), array(), array(1, 2, 38, 40, 41, 42, 50, 57, 58, 59,), array(13, 23, 25, 28, 35, 37, 39, 48,), array(13, 17, 28, 35, 38, 50,), array(38, 48, 50, 55,), array(14, 15, 19, 52,), array(24, 43, 61,), array(30, 38, 50,), array(24, 43, 55,), array(19, 52,), array(37, 55,), array(48, 55,), array(17, 48,), array(37, 39,), array(37, 39,), array(23, 37,), array(38, 50,), array(38, 50,), array(37, 39,), array(38, 50,), array(24, 43,), array(38,), array(48,), array(36,), array(19,), array(19,), array(19,), array(19,), array(53,), array(6,), array(53,), array(19,), array(24,), array(19,), array(25,), array(55,), array(13,), array(19,), array(19,), array(19,), array(44,), array(17,), array(55,), array(38,), array(36,), array(19,), array(39,), 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(),); + static public $yyExpectedTokens = array(array(3, 4, 5, 6, 7, 8, 12, 13, 16, 19, 20, 25, 29, 31, 32,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 30, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 30, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 53, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 52, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 54, 58,), + array(12, 13, 14, 16, 17, 19, 20, 25, 29, 31, 32, 34, 36, 39, 43, 44, 45, 46, 47, 49, 51, 54, 58,), + array(1, 11, 26, 33, 38, 39, 40, 55, 56, 57,), array(1, 24, 26, 33, 38, 39, 40, 55, 56, 57,), + array(1, 26, 33, 38, 39, 40, 55, 56, 57,), array(1, 26, 33, 38, 39, 40, 55, 56, 57,), + array(1, 26, 33, 38, 39, 40, 55, 56, 57,), array(1, 26, 33, 38, 39, 40, 55, 56, 57,), + array(1, 26, 33, 38, 39, 40, 55, 56, 57,), array(3, 4, 5, 6, 7, 8, 12, 13, 16, 19, 20, 25, 29, 31, 32,), + array(4, 12, 13, 14, 16, 19, 20, 25, 29, 31, 32, 58, 59,), array(1, 38, 39, 40, 53, 55, 56, 57,), + array(1, 27, 38, 39, 40, 55, 56, 57,), array(1, 38, 39, 40, 55, 56, 57, 59,), + array(1, 11, 38, 39, 40, 55, 56, 57,), array(1, 21, 38, 39, 40, 55, 56, 57,), + array(1, 11, 38, 39, 40, 55, 56, 57,), array(1, 37, 38, 39, 40, 55, 56, 57,), + array(1, 11, 38, 39, 40, 55, 56, 57,), array(1, 11, 38, 39, 40, 55, 56, 57,), + array(1, 37, 38, 39, 40, 55, 56, 57,), array(1, 2, 38, 39, 40, 55, 56, 57,), array(1, 38, 39, 40, 55, 56, 57,), + array(1, 38, 39, 40, 55, 56, 57,), array(1, 38, 39, 40, 55, 56, 57,), array(1, 38, 39, 40, 55, 56, 57,), + array(1, 38, 39, 40, 55, 56, 57,), array(1, 38, 39, 40, 55, 56, 57,), array(1, 11, 18, 26, 33, 36, 48,), + array(1, 38, 39, 40, 55, 56, 57,), array(1, 38, 39, 40, 55, 56, 57,), array(1, 38, 39, 40, 55, 56, 57,), + array(1, 38, 39, 40, 55, 56, 57,), array(1, 38, 39, 40, 55, 56, 57,), array(1, 38, 39, 40, 55, 56, 57,), + array(38, 39, 40, 55, 56, 57,), array(1, 11, 22, 26, 33, 41,), array(38, 39, 40, 55, 56, 57,), + array(1, 11, 22, 26, 33, 41,), array(14, 17, 51, 54,), array(1, 11, 26, 33,), array(1, 26, 33,), + array(14, 36, 54,), array(4, 12, 13, 14, 16, 19, 20, 25, 29, 31, 32, 58, 59,), array(12, 13, 17, 26, 28, 33,), + array(12, 13, 17, 26, 28, 33,), array(12, 13, 17, 26, 33,), array(12, 13, 17, 26, 33,), array(1, 11, 26, 33,), + array(1, 11, 26, 33,), array(1, 26, 33,), array(14, 36, 54,), array(1, 26, 33,), array(14, 36, 54,), + array(18, 46, 52,), array(1, 26, 33,), array(1, 2,), array(1, 11, 26, 27, 33,), array(1, 11, 26, 33,), + array(13, 14, 17, 54,), array(12, 13, 17, 50,), array(1, 11, 26, 33,), array(15, 18, 48,), array(12, 13, 17,), + array(15, 18, 48,), array(12, 13, 17,), array(8, 9, 10,), array(18, 48,), array(14, 17,), array(14, 54,), + array(26, 33,), array(26, 33,), array(1, 18,), array(1, 28,), array(1, 11,), array(1, 53,), array(14, 17,), + array(26, 33,), array(18,), array(18,), array(1,), array(1,), array(1,), array(1,), array(1,), array(1,), + array(1,), array(1,), array(), array(2, 12, 13, 15, 17, 18, 46, 48, 50, 52,), + array(2, 12, 13, 17, 18, 46, 48, 50, 52, 53,), array(2, 12, 13, 15, 17, 18, 46, 48, 50, 52,), + array(2, 12, 13, 17, 18, 46, 48, 50, 52,), array(2, 12, 13, 17, 18, 46, 48, 50, 52,), + array(12, 13, 17, 18, 46, 48, 50, 52,), array(13, 14, 17, 34, 54,), array(12, 13, 17, 50,), array(15, 46, 52,), + array(12, 13, 17,), array(26, 33,), array(26, 33,), array(15, 22,), array(26, 33,), array(26, 33,), + array(46, 52,), array(14, 54,), array(26, 33,), array(26, 33,), array(26, 33,), array(14, 54,), array(26, 33,), + array(26, 33,), array(26, 33,), array(26, 33,), array(26, 33,), array(26, 33,), array(26, 33,), array(26, 33,), + array(26, 33,), array(26, 33,), array(26, 33,), array(17, 49,), array(46, 52,), array(46, 52,), array(46, 52,), + array(14, 54,), array(46, 52,), array(46, 52,), array(26, 33,), array(46, 52,), array(14, 54,), array(46, 52,), + array(26, 33,), array(46, 52,), array(13, 36,), array(26, 33,), array(26, 33,), array(46, 52,), array(1,), + array(1,), array(36,), array(9,), array(18,), array(1,), array(1,), array(2,), array(2,), array(18,), + array(18,), array(1,), array(), array(), array(), array(), array(), + array(1, 2, 36, 38, 39, 40, 48, 55, 56, 57,), array(11, 21, 23, 26, 33, 35, 37, 46,), + array(11, 15, 26, 33, 36, 48,), array(36, 46, 48, 53,), array(12, 13, 17, 50,), array(28, 36, 48,), + array(22, 41, 59,), array(22, 41, 53,), array(46, 53,), array(35, 53,), array(21, 35,), array(17, 50,), + array(36, 48,), array(35, 37,), array(36, 48,), array(15, 46,), array(36, 48,), array(22, 41,), array(35, 37,), + array(35, 37,), array(17,), array(15,), array(23,), array(17,), array(34,), array(37,), array(34,), array(17,), + array(17,), array(17,), array(4,), array(42,), array(11,), array(36,), array(46,), array(51,), array(53,), + array(17,), array(17,), array(17,), array(22,), array(17,), array(36,), array(17,), array(51,), array(53,), + 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(),); - static public $yy_default = array(342, 520, 500, 500, 500, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 404, 404, 380, 404, 404, 371, 339, 535, 535, 535, 535, 535, 535, 535, 409, 535, 535, 535, 535, 499, 521, 416, 411, 523, 406, 385, 522, 415, 409, 442, 498, 425, 430, 431, 432, 432, 535, 418, 404, 535, 535, 404, 404, 404, 404, 424, 449, 404, 404, 535, 512, 404, 535, 394, 418, 535, 465, 418, 418, 455, 535, 455, 465, 465, 404, 455, 535, 398, 535, 418, 535, 404, 418, 418, 382, 509, 421, 422, 428, 455, 418, 435, 433, 434, 400, 507, 454, 454, 454, 454, 454, 454, 535, 467, 465, 481, 383, 364, 377, 492, 458, 493, 490, 465, 459, 460, 535, 392, 535, 461, 491, 379, 388, 369, 368, 367, 387, 372, 378, 393, 375, 373, 366, 463, 535, 390, 535, 391, 535, 389, 462, 363, 381, 384, 535, 502, 401, 465, 424, 357, 449, 501, 513, 487, 395, 399, 510, 506, 465, 506, 506, 465, 442, 438, 442, 442, 466, 432, 442, 432, 535, 535, 438, 438, 535, 535, 535, 442, 535, 535, 450, 432, 481, 438, 440, 535, 535, 535, 535, 535, 348, 535, 535, 432, 535, 412, 445, 535, 535, 535, 535, 444, 535, 535, 511, 535, 535, 535, 345, 485, 340, 346, 495, 344, 343, 471, 496, 444, 341, 486, 358, 359, 405, 417, 403, 386, 360, 413, 361, 402, 374, 356, 355, 349, 350, 484, 508, 351, 352, 354, 353, 483, 481, 347, 503, 532, 426, 427, 448, 478, 451, 447, 446, 468, 488, 469, 470, 445, 476, 531, 497, 453, 482, 477, 457, 489, 452, 429, 514, 479, 515, 516, 423, 464, 420, 504, 456, 436, 518, 437, 519, 494, 397, 473, 474, 472, 475, 505, 517, 439, 525, 526, 524, 396, 419, 443, 441, 529, 534, 527, 533, 530, 528, 480,); + static public $yy_default = array(340, 516, 531, 496, 531, 531, 496, 496, 531, 531, 531, 531, 531, 531, 531, 531, + 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, + 531, 531, 531, 531, 531, 531, 531, 400, 400, 400, 400, 376, 367, 337, 531, 531, 405, 531, 531, 531, 531, 531, + 531, 531, 531, 531, 421, 495, 411, 405, 402, 519, 438, 412, 407, 381, 517, 494, 518, 426, 428, 427, 428, 531, + 414, 400, 531, 531, 400, 400, 400, 400, 420, 445, 400, 531, 400, 531, 508, 400, 390, 414, 414, 531, 461, 414, + 451, 461, 451, 461, 531, 451, 531, 531, 378, 400, 394, 414, 414, 414, 531, 400, 451, 505, 424, 418, 396, 417, + 429, 430, 414, 431, 503, 450, 450, 450, 450, 450, 450, 531, 463, 477, 461, 369, 368, 531, 387, 380, 459, 531, + 365, 386, 360, 531, 373, 362, 359, 374, 363, 385, 364, 371, 375, 377, 389, 531, 486, 457, 488, 531, 489, 458, + 379, 455, 531, 456, 383, 454, 461, 384, 388, 487, 397, 395, 461, 353, 483, 391, 420, 498, 497, 506, 509, 445, + 502, 502, 502, 461, 461, 438, 434, 438, 438, 462, 438, 428, 428, 434, 531, 531, 531, 446, 531, 531, 434, 438, + 428, 531, 531, 531, 531, 408, 531, 436, 531, 531, 531, 531, 531, 344, 440, 531, 507, 434, 531, 441, 531, 531, + 531, 428, 531, 477, 531, 531, 531, 477, 338, 482, 401, 492, 491, 469, 470, 413, 476, 468, 471, 504, 440, 467, + 409, 382, 453, 499, 500, 432, 393, 501, 479, 480, 481, 433, 435, 464, 465, 466, 460, 416, 437, 439, 415, 399, + 370, 345, 347, 348, 346, 343, 339, 341, 342, 349, 350, 356, 357, 398, 355, 354, 351, 352, 441, 442, 520, 521, + 522, 392, 484, 493, 527, 528, 525, 524, 513, 515, 514, 523, 530, 526, 529, 478, 485, 474, 472, 475, 447, 444, + 443, 422, 423, 510, 511, 449, 473, 452, 448, 425, 512, 419, 490,); - const YYNOCODE = 107; + const YYNOCODE = 105; const YYSTACKDEPTH = 500; - const YYNSTATE = 339; + const YYNSTATE = 337; - const YYNRULE = 196; + const YYNRULE = 194; - const YYERRORSYMBOL = 62; + const YYERRORSYMBOL = 60; const YYERRSYMDT = 'yy0'; @@ -459,9 +746,91 @@ class Smarty_Internal_Templateparser public $yyerrcnt; /* Shifts left before out of the error */ public $yystack = array(); /* The parser's stack */ - public $yyTokenName = array('$', 'VERT', 'COLON', 'COMMENT', 'PHP', 'XMLTAG', 'TEXT', 'STRIPON', 'STRIPOFF', 'BLOCKSOURCE', 'LITERALSTART', 'LITERALEND', 'LITERAL', 'RDEL', 'SIMPELOUTPUT', 'LDEL', 'DOLLARID', 'EQUAL', 'SIMPLETAG', 'ID', 'PTR', 'LDELIF', 'LDELFOR', 'SEMICOLON', 'INCDEC', 'TO', 'STEP', 'LDELFOREACH', 'SPACE', 'AS', 'APTR', 'LDELSETFILTER', 'SMARTYBLOCKCHILDPARENT', 'CLOSETAG', 'LDELSLASH', 'ATTR', 'INTEGER', 'COMMA', 'OPENP', 'CLOSEP', 'MATH', 'UNIMATH', 'ISIN', 'INSTANCEOF', 'QMARK', 'NOT', 'TYPECAST', 'HEX', 'DOT', 'SINGLEQUOTESTRING', 'DOUBLECOLON', 'NAMESPACE', 'AT', 'HATCH', 'OPENB', 'CLOSEB', 'DOLLAR', 'LOGOP', 'TLOGOP', 'SINGLECOND', 'QUOTE', 'BACKTICK', 'error', 'start', 'template', 'template_element', 'smartytag', 'literal', 'text_content', 'literal_elements', 'literal_element', 'tag', 'variable', 'modifierlist', 'attributes', 'value', 'expr', 'varindexed', 'statement', 'statements', 'foraction', 'varvar', 'modparameters', 'attribute', 'ternary', 'array', 'lop', 'scond', 'ns1', 'function', 'doublequoted_with_quotes', 'static_class_access', 'object', 'arrayindex', 'indexdef', 'varvarele', 'objectchain', 'objectelement', 'method', 'params', 'modifier', 'modparameter', 'arrayelements', 'arrayelement', 'doublequoted', 'doublequotedcontent',); + public $yyTokenName = array('$', 'VERT', 'COLON', 'PHP', 'TEXT', 'STRIPON', 'STRIPOFF', 'BLOCKSOURCE', + 'LITERALSTART', 'LITERALEND', 'LITERAL', 'RDEL', 'SIMPELOUTPUT', 'LDEL', 'DOLLARID', 'EQUAL', 'SIMPLETAG', 'ID', + 'PTR', 'LDELIF', 'LDELFOR', 'SEMICOLON', 'INCDEC', 'TO', 'STEP', 'LDELFOREACH', 'SPACE', 'AS', 'APTR', + 'LDELSETFILTER', 'SMARTYBLOCKCHILDPARENT', 'CLOSETAG', 'LDELSLASH', 'ATTR', 'INTEGER', 'COMMA', 'OPENP', + 'CLOSEP', 'MATH', 'UNIMATH', 'ISIN', 'INSTANCEOF', 'QMARK', 'NOT', 'TYPECAST', 'HEX', 'DOT', + 'SINGLEQUOTESTRING', 'DOUBLECOLON', 'NAMESPACE', 'AT', 'HATCH', 'OPENB', 'CLOSEB', 'DOLLAR', 'LOGOP', 'TLOGOP', + 'SINGLECOND', 'QUOTE', 'BACKTICK', 'error', 'start', 'template', 'template_element', 'smartytag', 'literal', + 'text_content', 'literal_elements', 'literal_element', 'tag', 'variable', 'modifierlist', 'attributes', 'value', + 'expr', 'varindexed', 'statement', 'statements', 'foraction', 'varvar', 'modparameters', 'attribute', 'ternary', + 'array', 'lop', 'scond', 'ns1', 'function', 'doublequoted_with_quotes', 'static_class_access', 'object', + 'arrayindex', 'indexdef', 'varvarele', 'objectchain', 'objectelement', 'method', 'params', 'modifier', + 'modparameter', 'arrayelements', 'arrayelement', 'doublequoted', 'doublequotedcontent',); - public static $yyRuleName = array('start ::= template', 'template ::= template_element', 'template ::= template template_element', 'template ::=', 'template_element ::= smartytag', 'template_element ::= COMMENT', 'template_element ::= literal', 'template_element ::= PHP', 'template_element ::= XMLTAG', 'template_element ::= text_content', 'text_content ::= TEXT', 'text_content ::= text_content TEXT', 'template_element ::= STRIPON', 'template_element ::= STRIPOFF', 'template_element ::= BLOCKSOURCE', 'literal ::= LITERALSTART LITERALEND', 'literal ::= LITERALSTART literal_elements LITERALEND', 'literal_elements ::= literal_elements literal_element', 'literal_elements ::=', 'literal_element ::= literal', 'literal_element ::= LITERAL', 'smartytag ::= tag RDEL', 'smartytag ::= SIMPELOUTPUT', 'tag ::= LDEL variable', 'tag ::= LDEL variable modifierlist attributes', 'tag ::= LDEL variable attributes', 'tag ::= LDEL value', 'tag ::= LDEL value modifierlist attributes', 'tag ::= LDEL value attributes', 'tag ::= LDEL expr modifierlist attributes', 'tag ::= LDEL expr attributes', 'tag ::= LDEL DOLLARID EQUAL value', 'tag ::= LDEL DOLLARID EQUAL expr', 'tag ::= LDEL DOLLARID EQUAL expr attributes', 'tag ::= LDEL varindexed EQUAL expr attributes', 'smartytag ::= SIMPLETAG', '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 attributes', 'tag ::= LDELFOREACH SPACE value AS varvar attributes', 'tag ::= LDELFOREACH SPACE value AS varvar APTR varvar attributes', 'tag ::= LDELFOREACH SPACE expr AS varvar attributes', 'tag ::= LDELFOREACH SPACE expr AS varvar APTR varvar attributes', 'tag ::= LDELSETFILTER ID modparameters', 'tag ::= LDELSETFILTER ID modparameters modifierlist', 'tag ::= LDEL SMARTYBLOCKCHILDPARENT', '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 ::= ternary', 'expr ::= DOLLARID COLON ID', 'expr ::= expr MATH value', 'expr ::= expr UNIMATH value', 'expr ::= array', 'expr ::= expr modifierlist', 'expr ::= expr lop expr', 'expr ::= expr scond', 'expr ::= expr ISIN array', 'expr ::= expr ISIN value', 'expr ::= variable INSTANCEOF ns1', 'ternary ::= OPENP expr CLOSEP QMARK DOLLARID COLON expr', 'ternary ::= OPENP expr CLOSEP QMARK expr COLON expr', 'value ::= variable', 'value ::= UNIMATH value', 'value ::= NOT value', 'value ::= TYPECAST value', 'value ::= variable INCDEC', 'value ::= HEX', 'value ::= INTEGER', 'value ::= INTEGER DOT INTEGER', 'value ::= INTEGER DOT', 'value ::= DOT INTEGER', 'value ::= ID', 'value ::= function', 'value ::= OPENP expr CLOSEP', 'value ::= SINGLEQUOTESTRING', 'value ::= doublequoted_with_quotes', 'value ::= varindexed DOUBLECOLON static_class_access', 'value ::= smartytag', 'value ::= value modifierlist', 'value ::= NAMESPACE', 'value ::= ns1 DOUBLECOLON static_class_access', 'ns1 ::= ID', 'ns1 ::= NAMESPACE', 'variable ::= DOLLARID', 'variable ::= varindexed', 'variable ::= varvar AT ID', 'variable ::= object', 'variable ::= HATCH ID HATCH', 'variable ::= HATCH ID HATCH arrayindex', 'variable ::= HATCH variable HATCH', 'variable ::= HATCH variable HATCH arrayindex', '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 variable 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', '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 params CLOSEP', '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 array', 'static_class_access ::= method', 'static_class_access ::= method objectchain', 'static_class_access ::= ID', 'static_class_access ::= DOLLARID arrayindex', 'static_class_access ::= DOLLARID arrayindex objectchain', 'lop ::= LOGOP', 'lop ::= TLOGOP', 'scond ::= SINGLECOND', 'array ::= OPENB arrayelements CLOSEB', 'arrayelements ::= arrayelement', 'arrayelements ::= arrayelements COMMA arrayelement', '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 variable BACKTICK', 'doublequotedcontent ::= BACKTICK expr BACKTICK', 'doublequotedcontent ::= DOLLARID', 'doublequotedcontent ::= LDEL variable RDEL', 'doublequotedcontent ::= LDEL expr RDEL', 'doublequotedcontent ::= smartytag', 'doublequotedcontent ::= TEXT',); + public static $yyRuleName = array('start ::= template', 'template ::= template_element', + 'template ::= template template_element', 'template ::=', 'template_element ::= smartytag', + 'template_element ::= literal', 'template_element ::= PHP', 'template_element ::= text_content', + 'text_content ::= TEXT', 'text_content ::= text_content TEXT', 'template_element ::= STRIPON', + 'template_element ::= STRIPOFF', 'template_element ::= BLOCKSOURCE', 'literal ::= LITERALSTART LITERALEND', + 'literal ::= LITERALSTART literal_elements LITERALEND', 'literal_elements ::= literal_elements literal_element', + 'literal_elements ::=', 'literal_element ::= literal', 'literal_element ::= LITERAL', 'smartytag ::= tag RDEL', + 'smartytag ::= SIMPELOUTPUT', 'tag ::= LDEL variable', 'tag ::= LDEL variable modifierlist attributes', + 'tag ::= LDEL variable attributes', 'tag ::= LDEL value', 'tag ::= LDEL value modifierlist attributes', + 'tag ::= LDEL value attributes', 'tag ::= LDEL expr modifierlist attributes', 'tag ::= LDEL expr attributes', + 'tag ::= LDEL DOLLARID EQUAL value', 'tag ::= LDEL DOLLARID EQUAL expr', + 'tag ::= LDEL DOLLARID EQUAL expr attributes', 'tag ::= LDEL varindexed EQUAL expr attributes', + 'smartytag ::= SIMPLETAG', '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 attributes', + 'tag ::= LDELFOREACH SPACE value AS varvar attributes', + 'tag ::= LDELFOREACH SPACE value AS varvar APTR varvar attributes', + 'tag ::= LDELFOREACH SPACE expr AS varvar attributes', + 'tag ::= LDELFOREACH SPACE expr AS varvar APTR varvar attributes', 'tag ::= LDELSETFILTER ID modparameters', + 'tag ::= LDELSETFILTER ID modparameters modifierlist', 'tag ::= LDEL SMARTYBLOCKCHILDPARENT', + '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 ::= ternary', 'expr ::= DOLLARID COLON ID', + 'expr ::= expr MATH value', 'expr ::= expr UNIMATH value', 'expr ::= array', 'expr ::= expr modifierlist', + 'expr ::= expr lop expr', 'expr ::= expr scond', 'expr ::= expr ISIN array', 'expr ::= expr ISIN value', + 'expr ::= variable INSTANCEOF ns1', 'ternary ::= OPENP expr CLOSEP QMARK DOLLARID COLON expr', + 'ternary ::= OPENP expr CLOSEP QMARK expr COLON expr', 'value ::= variable', 'value ::= UNIMATH value', + 'value ::= NOT value', 'value ::= TYPECAST value', 'value ::= variable INCDEC', 'value ::= HEX', + 'value ::= INTEGER', 'value ::= INTEGER DOT INTEGER', 'value ::= INTEGER DOT', 'value ::= DOT INTEGER', + 'value ::= ID', 'value ::= function', 'value ::= OPENP expr CLOSEP', 'value ::= SINGLEQUOTESTRING', + 'value ::= doublequoted_with_quotes', 'value ::= varindexed DOUBLECOLON static_class_access', + 'value ::= smartytag', 'value ::= value modifierlist', 'value ::= NAMESPACE', + 'value ::= ns1 DOUBLECOLON static_class_access', 'ns1 ::= ID', 'ns1 ::= NAMESPACE', 'variable ::= DOLLARID', + 'variable ::= varindexed', 'variable ::= varvar AT ID', 'variable ::= object', 'variable ::= HATCH ID HATCH', + 'variable ::= HATCH ID HATCH arrayindex', 'variable ::= HATCH variable HATCH', + 'variable ::= HATCH variable HATCH arrayindex', '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 variable 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', + '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 params CLOSEP', '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 array', + 'static_class_access ::= method', 'static_class_access ::= method objectchain', 'static_class_access ::= ID', + 'static_class_access ::= DOLLARID arrayindex', 'static_class_access ::= DOLLARID arrayindex objectchain', + 'lop ::= LOGOP', 'lop ::= TLOGOP', 'scond ::= SINGLECOND', 'array ::= OPENB arrayelements CLOSEB', + 'arrayelements ::= arrayelement', 'arrayelements ::= arrayelements COMMA arrayelement', '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 variable BACKTICK', 'doublequotedcontent ::= BACKTICK expr BACKTICK', + 'doublequotedcontent ::= DOLLARID', 'doublequotedcontent ::= LDEL variable RDEL', + 'doublequotedcontent ::= LDEL expr RDEL', 'doublequotedcontent ::= smartytag', 'doublequotedcontent ::= TEXT',); public function tokenName($tokenType) { @@ -741,7 +1110,7 @@ class Smarty_Internal_Templateparser while ($this->yyidx >= 0) { $this->yy_pop_parser_stack(); } - #line 203 "../smarty/lexer/smarty_internal_templateparser.y" + #line 190 "../smarty/lexer/smarty_internal_templateparser.y" $this->internalError = true; $this->compiler->trigger_template_error("Stack overflow in template parser"); @@ -763,17 +1132,92 @@ class Smarty_Internal_Templateparser } } - public static $yyRuleInfo = array(array(0 => 63, 1 => 1), array(0 => 64, 1 => 1), array(0 => 64, 1 => 2), array(0 => 64, 1 => 0), array(0 => 65, 1 => 1), array(0 => 65, 1 => 1), array(0 => 65, 1 => 1), array(0 => 65, 1 => 1), array(0 => 65, 1 => 1), array(0 => 65, 1 => 1), array(0 => 68, 1 => 1), array(0 => 68, 1 => 2), array(0 => 65, 1 => 1), array(0 => 65, 1 => 1), array(0 => 65, 1 => 1), array(0 => 67, 1 => 2), array(0 => 67, 1 => 3), array(0 => 69, 1 => 2), array(0 => 69, 1 => 0), array(0 => 70, 1 => 1), array(0 => 70, 1 => 1), array(0 => 66, 1 => 2), array(0 => 66, 1 => 1), array(0 => 71, 1 => 2), array(0 => 71, 1 => 4), array(0 => 71, 1 => 3), array(0 => 71, 1 => 2), array(0 => 71, 1 => 4), array(0 => 71, 1 => 3), array(0 => 71, 1 => 4), array(0 => 71, 1 => 3), array(0 => 71, 1 => 4), array(0 => 71, 1 => 4), array(0 => 71, 1 => 5), array(0 => 71, 1 => 5), array(0 => 66, 1 => 1), array(0 => 71, 1 => 3), array(0 => 71, 1 => 2), array(0 => 71, 1 => 4), array(0 => 71, 1 => 5), array(0 => 71, 1 => 6), array(0 => 71, 1 => 2), array(0 => 71, 1 => 3), array(0 => 71, 1 => 2), array(0 => 71, 1 => 3), array(0 => 71, 1 => 8), array(0 => 80, 1 => 2), array(0 => 80, 1 => 1), array(0 => 71, 1 => 5), array(0 => 71, 1 => 7), array(0 => 71, 1 => 2), array(0 => 71, 1 => 6), array(0 => 71, 1 => 8), array(0 => 71, 1 => 6), array(0 => 71, 1 => 8), array(0 => 71, 1 => 3), array(0 => 71, 1 => 4), array(0 => 71, 1 => 2), array(0 => 66, 1 => 1), array(0 => 71, 1 => 2), array(0 => 71, 1 => 3), array(0 => 71, 1 => 4), array(0 => 71, 1 => 5), array(0 => 74, 1 => 2), array(0 => 74, 1 => 1), array(0 => 74, 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 => 3), array(0 => 76, 1 => 3), array(0 => 76, 1 => 3), array(0 => 76, 1 => 1), array(0 => 76, 1 => 2), array(0 => 76, 1 => 3), array(0 => 76, 1 => 2), array(0 => 76, 1 => 3), array(0 => 76, 1 => 3), array(0 => 76, 1 => 3), array(0 => 84, 1 => 7), array(0 => 84, 1 => 7), 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 => 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 => 3), array(0 => 88, 1 => 1), array(0 => 88, 1 => 1), array(0 => 72, 1 => 1), array(0 => 72, 1 => 1), array(0 => 72, 1 => 3), array(0 => 72, 1 => 1), array(0 => 72, 1 => 3), array(0 => 72, 1 => 4), array(0 => 72, 1 => 3), array(0 => 72, 1 => 4), array(0 => 77, 1 => 2), array(0 => 77, 1 => 2), array(0 => 93, 1 => 2), array(0 => 93, 1 => 0), array(0 => 94, 1 => 2), array(0 => 94, 1 => 2), array(0 => 94, 1 => 4), array(0 => 94, 1 => 2), array(0 => 94, 1 => 2), array(0 => 94, 1 => 4), array(0 => 94, 1 => 3), array(0 => 94, 1 => 5), array(0 => 94, 1 => 3), array(0 => 94, 1 => 3), array(0 => 94, 1 => 3), array(0 => 94, 1 => 3), array(0 => 94, 1 => 3), array(0 => 94, 1 => 3), array(0 => 94, 1 => 2), array(0 => 81, 1 => 1), array(0 => 81, 1 => 1), array(0 => 81, 1 => 2), array(0 => 95, 1 => 1), array(0 => 95, 1 => 1), array(0 => 95, 1 => 3), array(0 => 92, 1 => 2), array(0 => 96, 1 => 1), array(0 => 96, 1 => 2), array(0 => 97, 1 => 3), array(0 => 97, 1 => 3), array(0 => 97, 1 => 5), array(0 => 97, 1 => 6), array(0 => 97, 1 => 2), array(0 => 89, 1 => 4), array(0 => 98, 1 => 4), array(0 => 98, 1 => 4), array(0 => 99, 1 => 3), array(0 => 99, 1 => 1), array(0 => 99, 1 => 0), array(0 => 73, 1 => 3), array(0 => 73, 1 => 2), array(0 => 100, 1 => 3), array(0 => 100, 1 => 2), array(0 => 82, 1 => 2), array(0 => 82, 1 => 0), array(0 => 101, 1 => 2), array(0 => 101, 1 => 2), array(0 => 91, 1 => 1), array(0 => 91, 1 => 2), array(0 => 91, 1 => 1), array(0 => 91, 1 => 2), array(0 => 91, 1 => 3), array(0 => 86, 1 => 1), array(0 => 86, 1 => 1), array(0 => 87, 1 => 1), array(0 => 85, 1 => 3), array(0 => 102, 1 => 1), array(0 => 102, 1 => 3), array(0 => 102, 1 => 0), array(0 => 103, 1 => 3), array(0 => 103, 1 => 3), array(0 => 103, 1 => 1), array(0 => 90, 1 => 2), array(0 => 90, 1 => 3), array(0 => 104, 1 => 2), array(0 => 104, 1 => 1), array(0 => 105, 1 => 3), array(0 => 105, 1 => 3), array(0 => 105, 1 => 1), array(0 => 105, 1 => 3), array(0 => 105, 1 => 3), array(0 => 105, 1 => 1), array(0 => 105, 1 => 1),); + public static $yyRuleInfo = array(array(0 => 61, 1 => 1), array(0 => 62, 1 => 1), array(0 => 62, 1 => 2), + array(0 => 62, 1 => 0), array(0 => 63, 1 => 1), array(0 => 63, 1 => 1), array(0 => 63, 1 => 1), + array(0 => 63, 1 => 1), array(0 => 66, 1 => 1), array(0 => 66, 1 => 2), array(0 => 63, 1 => 1), + array(0 => 63, 1 => 1), array(0 => 63, 1 => 1), array(0 => 65, 1 => 2), array(0 => 65, 1 => 3), + array(0 => 67, 1 => 2), array(0 => 67, 1 => 0), array(0 => 68, 1 => 1), array(0 => 68, 1 => 1), + array(0 => 64, 1 => 2), array(0 => 64, 1 => 1), array(0 => 69, 1 => 2), array(0 => 69, 1 => 4), + array(0 => 69, 1 => 3), array(0 => 69, 1 => 2), array(0 => 69, 1 => 4), array(0 => 69, 1 => 3), + array(0 => 69, 1 => 4), array(0 => 69, 1 => 3), array(0 => 69, 1 => 4), array(0 => 69, 1 => 4), + array(0 => 69, 1 => 5), array(0 => 69, 1 => 5), array(0 => 64, 1 => 1), array(0 => 69, 1 => 3), + array(0 => 69, 1 => 2), array(0 => 69, 1 => 4), array(0 => 69, 1 => 5), array(0 => 69, 1 => 6), + array(0 => 69, 1 => 2), array(0 => 69, 1 => 3), array(0 => 69, 1 => 2), array(0 => 69, 1 => 3), + array(0 => 69, 1 => 8), array(0 => 78, 1 => 2), array(0 => 78, 1 => 1), array(0 => 69, 1 => 5), + array(0 => 69, 1 => 7), array(0 => 69, 1 => 2), array(0 => 69, 1 => 6), array(0 => 69, 1 => 8), + array(0 => 69, 1 => 6), array(0 => 69, 1 => 8), array(0 => 69, 1 => 3), array(0 => 69, 1 => 4), + array(0 => 69, 1 => 2), array(0 => 64, 1 => 1), array(0 => 69, 1 => 2), array(0 => 69, 1 => 3), + array(0 => 69, 1 => 4), array(0 => 69, 1 => 5), array(0 => 72, 1 => 2), array(0 => 72, 1 => 1), + array(0 => 72, 1 => 0), array(0 => 81, 1 => 4), array(0 => 81, 1 => 2), array(0 => 81, 1 => 2), + array(0 => 81, 1 => 2), array(0 => 81, 1 => 2), array(0 => 81, 1 => 2), array(0 => 81, 1 => 4), + array(0 => 77, 1 => 1), array(0 => 77, 1 => 3), array(0 => 76, 1 => 3), array(0 => 76, 1 => 3), + array(0 => 76, 1 => 3), array(0 => 76, 1 => 3), array(0 => 74, 1 => 1), array(0 => 74, 1 => 1), + array(0 => 74, 1 => 3), array(0 => 74, 1 => 3), array(0 => 74, 1 => 3), array(0 => 74, 1 => 1), + array(0 => 74, 1 => 2), array(0 => 74, 1 => 3), array(0 => 74, 1 => 2), array(0 => 74, 1 => 3), + array(0 => 74, 1 => 3), array(0 => 74, 1 => 3), array(0 => 82, 1 => 7), array(0 => 82, 1 => 7), + array(0 => 73, 1 => 1), array(0 => 73, 1 => 2), array(0 => 73, 1 => 2), array(0 => 73, 1 => 2), + array(0 => 73, 1 => 2), array(0 => 73, 1 => 1), array(0 => 73, 1 => 1), array(0 => 73, 1 => 3), + array(0 => 73, 1 => 2), array(0 => 73, 1 => 2), array(0 => 73, 1 => 1), array(0 => 73, 1 => 1), + array(0 => 73, 1 => 3), array(0 => 73, 1 => 1), array(0 => 73, 1 => 1), array(0 => 73, 1 => 3), + array(0 => 73, 1 => 1), array(0 => 73, 1 => 2), array(0 => 73, 1 => 1), array(0 => 73, 1 => 3), + array(0 => 86, 1 => 1), array(0 => 86, 1 => 1), array(0 => 70, 1 => 1), array(0 => 70, 1 => 1), + array(0 => 70, 1 => 3), array(0 => 70, 1 => 1), array(0 => 70, 1 => 3), array(0 => 70, 1 => 4), + array(0 => 70, 1 => 3), array(0 => 70, 1 => 4), array(0 => 75, 1 => 2), array(0 => 75, 1 => 2), + array(0 => 91, 1 => 2), array(0 => 91, 1 => 0), array(0 => 92, 1 => 2), array(0 => 92, 1 => 2), + array(0 => 92, 1 => 4), array(0 => 92, 1 => 2), array(0 => 92, 1 => 2), array(0 => 92, 1 => 4), + array(0 => 92, 1 => 3), array(0 => 92, 1 => 5), array(0 => 92, 1 => 3), array(0 => 92, 1 => 3), + array(0 => 92, 1 => 3), array(0 => 92, 1 => 3), array(0 => 92, 1 => 3), array(0 => 92, 1 => 3), + array(0 => 92, 1 => 2), array(0 => 79, 1 => 1), array(0 => 79, 1 => 1), array(0 => 79, 1 => 2), + array(0 => 93, 1 => 1), array(0 => 93, 1 => 1), array(0 => 93, 1 => 3), array(0 => 90, 1 => 2), + array(0 => 94, 1 => 1), array(0 => 94, 1 => 2), array(0 => 95, 1 => 3), array(0 => 95, 1 => 3), + array(0 => 95, 1 => 5), array(0 => 95, 1 => 6), array(0 => 95, 1 => 2), array(0 => 87, 1 => 4), + array(0 => 96, 1 => 4), array(0 => 96, 1 => 4), array(0 => 97, 1 => 3), array(0 => 97, 1 => 1), + array(0 => 97, 1 => 0), array(0 => 71, 1 => 3), array(0 => 71, 1 => 2), array(0 => 98, 1 => 3), + array(0 => 98, 1 => 2), array(0 => 80, 1 => 2), array(0 => 80, 1 => 0), array(0 => 99, 1 => 2), + array(0 => 99, 1 => 2), array(0 => 89, 1 => 1), array(0 => 89, 1 => 2), array(0 => 89, 1 => 1), + array(0 => 89, 1 => 2), array(0 => 89, 1 => 3), array(0 => 84, 1 => 1), array(0 => 84, 1 => 1), + array(0 => 85, 1 => 1), array(0 => 83, 1 => 3), array(0 => 100, 1 => 1), array(0 => 100, 1 => 3), + array(0 => 100, 1 => 0), array(0 => 101, 1 => 3), array(0 => 101, 1 => 3), array(0 => 101, 1 => 1), + array(0 => 88, 1 => 2), array(0 => 88, 1 => 3), array(0 => 102, 1 => 2), array(0 => 102, 1 => 1), + array(0 => 103, 1 => 3), array(0 => 103, 1 => 3), array(0 => 103, 1 => 1), array(0 => 103, 1 => 3), + array(0 => 103, 1 => 3), array(0 => 103, 1 => 1), array(0 => 103, 1 => 1),); - public static $yyReduceMap = array(0 => 0, 1 => 1, 2 => 2, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 19 => 10, 20 => 10, 47 => 10, 70 => 10, 71 => 10, 79 => 10, 80 => 10, 84 => 10, 93 => 10, 98 => 10, 99 => 10, 104 => 10, 106 => 10, 107 => 10, 111 => 10, 113 => 10, 114 => 10, 118 => 10, 179 => 10, 184 => 10, 11 => 11, 12 => 12, 13 => 13, 14 => 14, 15 => 15, 18 => 15, 16 => 16, 78 => 16, 17 => 17, 94 => 17, 96 => 17, 97 => 17, 125 => 17, 21 => 21, 22 => 22, 23 => 23, 26 => 23, 24 => 24, 27 => 24, 25 => 25, 28 => 25, 30 => 25, 29 => 29, 31 => 31, 32 => 31, 33 => 33, 34 => 34, 35 => 35, 36 => 36, 37 => 37, 38 => 38, 39 => 39, 40 => 40, 41 => 41, 42 => 42, 44 => 42, 43 => 43, 45 => 45, 46 => 46, 48 => 48, 49 => 49, 50 => 50, 51 => 51, 53 => 51, 52 => 52, 54 => 52, 55 => 55, 56 => 56, 57 => 57, 58 => 58, 59 => 59, 60 => 60, 61 => 61, 62 => 62, 63 => 63, 64 => 64, 73 => 64, 160 => 64, 164 => 64, 168 => 64, 169 => 64, 65 => 65, 161 => 65, 167 => 65, 66 => 66, 67 => 67, 68 => 67, 69 => 69, 145 => 69, 72 => 72, 74 => 74, 75 => 75, 76 => 75, 77 => 77, 81 => 81, 82 => 82, 83 => 82, 85 => 85, 110 => 85, 86 => 86, 87 => 87, 88 => 88, 89 => 89, 90 => 90, 91 => 91, 92 => 92, 95 => 95, 100 => 100, 101 => 101, 102 => 102, 103 => 103, 105 => 105, 108 => 108, 109 => 109, 112 => 112, 115 => 115, 116 => 116, 117 => 117, 119 => 119, 120 => 120, 121 => 121, 122 => 122, 123 => 123, 124 => 124, 126 => 126, 181 => 126, 127 => 127, 128 => 128, 129 => 129, 130 => 130, 131 => 131, 132 => 132, 140 => 132, 133 => 133, 134 => 134, 135 => 135, 136 => 135, 138 => 135, 139 => 135, 137 => 137, 141 => 141, 142 => 142, 143 => 143, 185 => 143, 144 => 144, 146 => 146, 147 => 147, 148 => 148, 149 => 149, 150 => 150, 151 => 151, 152 => 152, 153 => 153, 154 => 154, 155 => 155, 156 => 156, 157 => 157, 158 => 158, 159 => 159, 162 => 162, 163 => 163, 165 => 165, 166 => 166, 170 => 170, 171 => 171, 172 => 172, 173 => 173, 174 => 174, 175 => 175, 176 => 176, 177 => 177, 178 => 178, 180 => 180, 182 => 182, 183 => 183, 186 => 186, 187 => 187, 188 => 188, 189 => 189, 190 => 189, 192 => 189, 191 => 191, 193 => 193, 194 => 194, 195 => 195,); + public static $yyReduceMap = array(0 => 0, 1 => 1, 2 => 2, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 17 => 8, + 18 => 8, 45 => 8, 68 => 8, 69 => 8, 77 => 8, 78 => 8, 82 => 8, 91 => 8, 96 => 8, + 97 => 8, 102 => 8, 104 => 8, 105 => 8, 109 => 8, 111 => 8, 112 => 8, 116 => 8, + 177 => 8, 182 => 8, 9 => 9, 10 => 10, 11 => 11, 12 => 12, 13 => 13, 16 => 13, + 14 => 14, 76 => 14, 15 => 15, 92 => 15, 94 => 15, 95 => 15, 123 => 15, 19 => 19, + 20 => 20, 21 => 21, 24 => 21, 22 => 22, 25 => 22, 23 => 23, 26 => 23, 28 => 23, + 27 => 27, 29 => 29, 30 => 29, 31 => 31, 32 => 32, 33 => 33, 34 => 34, 35 => 35, + 36 => 36, 37 => 37, 38 => 38, 39 => 39, 40 => 40, 42 => 40, 41 => 41, 43 => 43, + 44 => 44, 46 => 46, 47 => 47, 48 => 48, 49 => 49, 51 => 49, 50 => 50, 52 => 50, + 53 => 53, 54 => 54, 55 => 55, 56 => 56, 57 => 57, 58 => 58, 59 => 59, 60 => 60, + 61 => 61, 62 => 62, 71 => 62, 158 => 62, 162 => 62, 166 => 62, 167 => 62, + 63 => 63, 159 => 63, 165 => 63, 64 => 64, 65 => 65, 66 => 65, 67 => 67, + 143 => 67, 70 => 70, 72 => 72, 73 => 73, 74 => 73, 75 => 75, 79 => 79, 80 => 80, + 81 => 80, 83 => 83, 108 => 83, 84 => 84, 85 => 85, 86 => 86, 87 => 87, 88 => 88, + 89 => 89, 90 => 90, 93 => 93, 98 => 98, 99 => 99, 100 => 100, 101 => 101, + 103 => 103, 106 => 106, 107 => 107, 110 => 110, 113 => 113, 114 => 114, + 115 => 115, 117 => 117, 118 => 118, 119 => 119, 120 => 120, 121 => 121, + 122 => 122, 124 => 124, 179 => 124, 125 => 125, 126 => 126, 127 => 127, + 128 => 128, 129 => 129, 130 => 130, 138 => 130, 131 => 131, 132 => 132, + 133 => 133, 134 => 133, 136 => 133, 137 => 133, 135 => 135, 139 => 139, + 140 => 140, 141 => 141, 183 => 141, 142 => 142, 144 => 144, 145 => 145, + 146 => 146, 147 => 147, 148 => 148, 149 => 149, 150 => 150, 151 => 151, + 152 => 152, 153 => 153, 154 => 154, 155 => 155, 156 => 156, 157 => 157, + 160 => 160, 161 => 161, 163 => 163, 164 => 164, 168 => 168, 169 => 169, + 170 => 170, 171 => 171, 172 => 172, 173 => 173, 174 => 174, 175 => 175, + 176 => 176, 178 => 178, 180 => 180, 181 => 181, 184 => 184, 185 => 185, + 186 => 186, 187 => 187, 188 => 187, 190 => 187, 189 => 189, 191 => 191, + 192 => 192, 193 => 193,); - #line 214 "../smarty/lexer/smarty_internal_templateparser.y" + #line 201 "../smarty/lexer/smarty_internal_templateparser.y" function yy_r0() { $this->_retvalue = $this->root_buffer->to_smarty_php(); } - #line 222 "../smarty/lexer/smarty_internal_templateparser.y" + #line 209 "../smarty/lexer/smarty_internal_templateparser.y" function yy_r1() { if ($this->yystack[$this->yyidx + 0]->minor != null) { @@ -781,7 +1225,7 @@ class Smarty_Internal_Templateparser } } - #line 229 "../smarty/lexer/smarty_internal_templateparser.y" + #line 216 "../smarty/lexer/smarty_internal_templateparser.y" function yy_r2() { if ($this->yystack[$this->yyidx + 0]->minor != null) { @@ -790,7 +1234,7 @@ class Smarty_Internal_Templateparser } } - #line 243 "../smarty/lexer/smarty_internal_templateparser.y" + #line 230 "../smarty/lexer/smarty_internal_templateparser.y" function yy_r4() { if ($this->compiler->has_code) { @@ -802,22 +1246,17 @@ class Smarty_Internal_Templateparser $this->block_nesting_level = count($this->compiler->_tag_stack); } - #line 254 "../smarty/lexer/smarty_internal_templateparser.y" + #line 241 "../smarty/lexer/smarty_internal_templateparser.y" function yy_r5() - { - $this->_retvalue = null; - } - - #line 259 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r6() { $this->_retvalue = new Smarty_Internal_ParseTree_Text($this, $this->yystack[$this->yyidx + 0]->minor); } - #line 263 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r7() + #line 245 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r6() { - $code = $this->compiler->compileTag('private_php', array(array('code' => $this->yystack[$this->yyidx + 0]->minor), array('type' => $this->lex->phpType)), array()); + $code = $this->compiler->compileTag('private_php', array(array('code' => $this->yystack[$this->yyidx + 0]->minor), + array('type' => $this->lex->phpType)), array()); if ($this->compiler->has_code && !empty($code)) { $tmp = ''; foreach ($this->compiler->prefix_code as $code) { @@ -830,48 +1269,38 @@ class Smarty_Internal_Templateparser } } - #line 276 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r8() - { - $this->compiler->tag_nocache = true; - $xml = $this->yystack[$this->yyidx + 0]->minor; - $save = $this->template->has_nocache_code; - $this->_retvalue = new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode("", $this->compiler, true)); - $this->template->has_nocache_code = $save; - } - - #line 285 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r9() + #line 256 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r7() { $this->_retvalue = $this->compiler->processText($this->yystack[$this->yyidx + 0]->minor); } - #line 289 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r10() + #line 260 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r8() { $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } - #line 293 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r11() + #line 264 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r9() { $this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor; } - #line 298 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r12() + #line 269 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r10() { $this->strip = true; } - #line 302 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r13() + #line 273 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r11() { $this->strip = false; } - #line 306 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r14() + #line 277 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r12() { if ($this->strip) { SMARTY_INTERNAL_COMPILE_BLOCK::blockSource($this->compiler, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor)); @@ -880,32 +1309,32 @@ class Smarty_Internal_Templateparser } } - #line 315 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r15() + #line 286 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r13() { $this->_retvalue = ''; } - #line 319 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r16() + #line 290 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r14() { $this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor; } - #line 323 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r17() + #line 294 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r15() { $this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor; } - #line 339 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r21() + #line 310 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r19() { $this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor; } - #line 345 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r22() + #line 316 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r20() { $var = trim(substr($this->yystack[$this->yyidx + 0]->minor, $this->lex->ldel_length, - $this->lex->rdel_length), ' $'); if (preg_match('/^(.*)(\s+nocache)$/', $var, $match)) { @@ -915,50 +1344,55 @@ class Smarty_Internal_Templateparser } } - #line 355 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r23() + #line 326 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r21() { $this->_retvalue = $this->compiler->compileTag('private_print_expression', array(), array('value' => $this->yystack[$this->yyidx + 0]->minor)); } - #line 359 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r24() + #line 330 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r22() { - $this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 2]->minor, 'modifierlist' => $this->yystack[$this->yyidx + - 1]->minor)); + $this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 2]->minor, + 'modifierlist' => $this->yystack[$this->yyidx + - 1]->minor)); } - #line 363 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r25() + #line 334 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r23() { $this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 1]->minor)); } - #line 377 "../smarty/lexer/smarty_internal_templateparser.y" + #line 348 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r27() + { + $this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 2]->minor, + 'modifierlist' => $this->yystack[$this->yyidx + - 1]->minor)); + } + + #line 361 "../smarty/lexer/smarty_internal_templateparser.y" function yy_r29() { - $this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 2]->minor, 'modifierlist' => $this->yystack[$this->yyidx + - 1]->minor)); + $this->_retvalue = $this->compiler->compileTag('assign', array(array('value' => $this->yystack[$this->yyidx + 0]->minor), + array('var' => '\'' . substr($this->yystack[$this->yyidx + - 2]->minor, 1) . '\''))); } - #line 390 "../smarty/lexer/smarty_internal_templateparser.y" + #line 369 "../smarty/lexer/smarty_internal_templateparser.y" function yy_r31() { - $this->_retvalue = $this->compiler->compileTag('assign', array(array('value' => $this->yystack[$this->yyidx + 0]->minor), array('var' => '\'' . substr($this->yystack[$this->yyidx + - 2]->minor, 1) . '\''))); + $this->_retvalue = $this->compiler->compileTag('assign', array_merge(array(array('value' => $this->yystack[$this->yyidx + - 1]->minor), + array('var' => '\'' . substr($this->yystack[$this->yyidx + - 3]->minor, 1) . '\'')), $this->yystack[$this->yyidx + 0]->minor)); } - #line 398 "../smarty/lexer/smarty_internal_templateparser.y" + #line 373 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r32() + { + $this->_retvalue = $this->compiler->compileTag('assign', array_merge(array(array('value' => $this->yystack[$this->yyidx + - 1]->minor), + array('var' => $this->yystack[$this->yyidx + - 3]->minor['var'])), $this->yystack[$this->yyidx + 0]->minor), array('smarty_internal_index' => $this->yystack[$this->yyidx + - 3]->minor['smarty_internal_index'])); + } + + #line 378 "../smarty/lexer/smarty_internal_templateparser.y" function yy_r33() - { - $this->_retvalue = $this->compiler->compileTag('assign', array_merge(array(array('value' => $this->yystack[$this->yyidx + - 1]->minor), array('var' => '\'' . substr($this->yystack[$this->yyidx + - 3]->minor, 1) . '\'')), $this->yystack[$this->yyidx + 0]->minor)); - } - - #line 402 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r34() - { - $this->_retvalue = $this->compiler->compileTag('assign', array_merge(array(array('value' => $this->yystack[$this->yyidx + - 1]->minor), array('var' => $this->yystack[$this->yyidx + - 3]->minor['var'])), $this->yystack[$this->yyidx + 0]->minor), array('smarty_internal_index' => $this->yystack[$this->yyidx + - 3]->minor['smarty_internal_index'])); - } - - #line 407 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r35() { $tag = trim(substr($this->yystack[$this->yyidx + 0]->minor, $this->lex->ldel_length, - $this->lex->rdel_length)); if ($tag == 'strip') { @@ -966,8 +1400,8 @@ class Smarty_Internal_Templateparser $this->_retvalue = null;; } else { if (defined($tag)) { - if (isset($this->smarty->security_policy)) { - $this->smarty->security_policy->isTrustedConstant($tag, $this->compiler); + if ($this->security) { + $this->security->isTrustedConstant($tag, $this->compiler); } $this->_retvalue = $this->compiler->compileTag('private_print_expression', array(), array('value' => $tag)); } else { @@ -980,12 +1414,12 @@ class Smarty_Internal_Templateparser } } - #line 429 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r36() + #line 400 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r34() { if (defined($this->yystack[$this->yyidx + - 1]->minor)) { - if (isset($this->smarty->security_policy)) { - $this->smarty->security_policy->isTrustedConstant($this->yystack[$this->yyidx + - 1]->minor, $this->compiler); + if ($this->security) { + $this->security->isTrustedConstant($this->yystack[$this->yyidx + - 1]->minor, $this->compiler); } $this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 1]->minor)); } else { @@ -993,12 +1427,12 @@ class Smarty_Internal_Templateparser } } - #line 439 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r37() + #line 410 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r35() { if (defined($this->yystack[$this->yyidx + 0]->minor)) { - if (isset($this->smarty->security_policy)) { - $this->smarty->security_policy->isTrustedConstant($this->yystack[$this->yyidx + 0]->minor, $this->compiler); + if ($this->security) { + $this->security->isTrustedConstant($this->yystack[$this->yyidx + 0]->minor, $this->compiler); } $this->_retvalue = $this->compiler->compileTag('private_print_expression', array(), array('value' => $this->yystack[$this->yyidx + 0]->minor)); } else { @@ -1006,110 +1440,122 @@ class Smarty_Internal_Templateparser } } - #line 452 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r38() + #line 423 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r36() { if (defined($this->yystack[$this->yyidx + - 2]->minor)) { - if (isset($this->smarty->security_policy)) { - $this->smarty->security_policy->isTrustedConstant($this->yystack[$this->yyidx + - 2]->minor, $this->compiler); + if ($this->security) { + $this->security->isTrustedConstant($this->yystack[$this->yyidx + - 2]->minor, $this->compiler); } - $this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 2]->minor, 'modifierlist' => $this->yystack[$this->yyidx + - 1]->minor)); + $this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 2]->minor, + 'modifierlist' => $this->yystack[$this->yyidx + - 1]->minor)); } else { $this->_retvalue = '' . $this->compiler->compileTag($this->yystack[$this->yyidx + - 2]->minor, $this->yystack[$this->yyidx + 0]->minor) . '_retvalue .= $this->compiler->compileTag('private_modifier', array(), array('modifierlist' => $this->yystack[$this->yyidx + - 1]->minor, 'value' => 'ob_get_clean()')) . ';?>'; + $this->_retvalue .= $this->compiler->compileTag('private_modifier', array(), array('modifierlist' => $this->yystack[$this->yyidx + - 1]->minor, + 'value' => 'ob_get_clean()')) . ';?>'; } } - #line 465 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r39() + #line 436 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r37() { $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 470 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r40() + #line 441 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r38() { $this->_retvalue = '' . $this->compiler->compileTag($this->yystack[$this->yyidx + - 4]->minor, $this->yystack[$this->yyidx + 0]->minor, array('object_method' => $this->yystack[$this->yyidx + - 2]->minor)) . '_retvalue .= $this->compiler->compileTag('private_modifier', array(), array('modifierlist' => $this->yystack[$this->yyidx + - 1]->minor, 'value' => 'ob_get_clean()')) . ';?>'; + $this->_retvalue .= $this->compiler->compileTag('private_modifier', array(), array('modifierlist' => $this->yystack[$this->yyidx + - 1]->minor, + 'value' => 'ob_get_clean()')) . ';?>'; } - #line 476 "../smarty/lexer/smarty_internal_templateparser.y" + #line 447 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r39() + { + $tag = trim(substr($this->yystack[$this->yyidx + - 1]->minor, $this->lex->ldel_length)); + $this->_retvalue = $this->compiler->compileTag(($tag == 'else if') ? 'elseif' : $tag, array(), array('if condition' => $this->yystack[$this->yyidx + 0]->minor)); + } + + #line 452 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r40() + { + $tag = trim(substr($this->yystack[$this->yyidx + - 2]->minor, $this->lex->ldel_length)); + $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 457 "../smarty/lexer/smarty_internal_templateparser.y" function yy_r41() { $tag = trim(substr($this->yystack[$this->yyidx + - 1]->minor, $this->lex->ldel_length)); $this->_retvalue = $this->compiler->compileTag(($tag == 'else if') ? 'elseif' : $tag, array(), array('if condition' => $this->yystack[$this->yyidx + 0]->minor)); } - #line 481 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r42() - { - $tag = trim(substr($this->yystack[$this->yyidx + - 2]->minor, $this->lex->ldel_length)); - $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 486 "../smarty/lexer/smarty_internal_templateparser.y" + #line 468 "../smarty/lexer/smarty_internal_templateparser.y" function yy_r43() { - $tag = trim(substr($this->yystack[$this->yyidx + - 1]->minor, $this->lex->ldel_length)); - $this->_retvalue = $this->compiler->compileTag(($tag == 'else if') ? 'elseif' : $tag, array(), array('if condition' => $this->yystack[$this->yyidx + 0]->minor)); + $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 497 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r45() - { - $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 501 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r46() + #line 472 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r44() { $this->_retvalue = '=' . $this->yystack[$this->yyidx + 0]->minor; } - #line 509 "../smarty/lexer/smarty_internal_templateparser.y" + #line 480 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r46() + { + $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 484 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r47() + { + $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 489 "../smarty/lexer/smarty_internal_templateparser.y" function yy_r48() - { - $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 513 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r49() - { - $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 518 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r50() { $this->_retvalue = $this->compiler->compileTag('foreach', $this->yystack[$this->yyidx + 0]->minor); } - #line 523 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r51() + #line 494 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r49() { - $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)))); + $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 527 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r52() + #line 498 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r50() { - $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)))); + $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 540 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r55() + #line 511 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r53() { $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 544 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r56() + #line 515 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r54() { $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 549 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r57() + #line 520 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r55() { $j = strrpos($this->yystack[$this->yyidx + 0]->minor, '.'); if ($this->yystack[$this->yyidx + 0]->minor[$j + 1] == 'c') { @@ -1121,8 +1567,8 @@ class Smarty_Internal_Templateparser } } - #line 562 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r58() + #line 533 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r56() { $tag = trim(substr($this->yystack[$this->yyidx + 0]->minor, $this->lex->ldel_length, - $this->lex->rdel_length), ' /'); if ($tag == 'strip') { @@ -1133,55 +1579,56 @@ class Smarty_Internal_Templateparser } } - #line 571 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r59() + #line 542 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r57() { $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor . 'close', array()); } - #line 575 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r60() + #line 546 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r58() { $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + - 1]->minor . 'close', array(), array('modifier_list' => $this->yystack[$this->yyidx + 0]->minor)); } - #line 580 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r61() + #line 551 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r59() { $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + - 2]->minor . 'close', array(), array('object_method' => $this->yystack[$this->yyidx + 0]->minor)); } - #line 584 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r62() + #line 555 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r60() { - $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)); + $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 592 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r63() + #line 563 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r61() { $this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; } - #line 598 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r64() + #line 569 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r62() { $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } - #line 603 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r65() + #line 574 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r63() { $this->_retvalue = array(); } - #line 608 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r66() + #line 579 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r64() { if (defined($this->yystack[$this->yyidx + 0]->minor)) { - if (isset($this->smarty->security_policy)) { - $this->smarty->security_policy->isTrustedConstant($this->yystack[$this->yyidx + 0]->minor, $this->compiler); + 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 { @@ -1189,133 +1636,136 @@ class Smarty_Internal_Templateparser } } - #line 619 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r67() + #line 590 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r65() { $this->_retvalue = array(trim($this->yystack[$this->yyidx + - 1]->minor, " =\n\r\t") => $this->yystack[$this->yyidx + 0]->minor); } - #line 627 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r69() + #line 598 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r67() { $this->_retvalue = '\'' . $this->yystack[$this->yyidx + 0]->minor . '\''; } - #line 639 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r72() + #line 610 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r70() { $this->_retvalue = array($this->yystack[$this->yyidx + - 2]->minor => $this->yystack[$this->yyidx + 0]->minor); } - #line 652 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r74() + #line 623 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r72() { $this->yystack[$this->yyidx + - 2]->minor[] = $this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor; } - #line 657 "../smarty/lexer/smarty_internal_templateparser.y" + #line 628 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r73() + { + $this->_retvalue = array('var' => '\'' . substr($this->yystack[$this->yyidx + - 2]->minor, 1) . '\'', + 'value' => $this->yystack[$this->yyidx + 0]->minor); + } + + #line 635 "../smarty/lexer/smarty_internal_templateparser.y" function yy_r75() { - $this->_retvalue = array('var' => '\'' . substr($this->yystack[$this->yyidx + - 2]->minor, 1) . '\'', 'value' => $this->yystack[$this->yyidx + 0]->minor); + $this->_retvalue = array('var' => $this->yystack[$this->yyidx + - 2]->minor, + 'value' => $this->yystack[$this->yyidx + 0]->minor); } - #line 664 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r77() - { - $this->_retvalue = array('var' => $this->yystack[$this->yyidx + - 2]->minor, 'value' => $this->yystack[$this->yyidx + 0]->minor); - } - - #line 688 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r81() + #line 659 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r79() { $this->_retvalue = '$_smarty_tpl->getStreamVariable(\'' . substr($this->yystack[$this->yyidx + - 2]->minor, 1) . '://' . $this->yystack[$this->yyidx + 0]->minor . '\')'; } - #line 693 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r82() + #line 664 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r80() { $this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . trim($this->yystack[$this->yyidx + - 1]->minor) . $this->yystack[$this->yyidx + 0]->minor; } - #line 707 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r85() + #line 678 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r83() { - $this->_retvalue = $this->compiler->compileTag('private_modifier', array(), array('value' => $this->yystack[$this->yyidx + - 1]->minor, 'modifierlist' => $this->yystack[$this->yyidx + 0]->minor)); + $this->_retvalue = $this->compiler->compileTag('private_modifier', array(), array('value' => $this->yystack[$this->yyidx + - 1]->minor, + 'modifierlist' => $this->yystack[$this->yyidx + 0]->minor)); } - #line 713 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r86() + #line 684 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r84() { $this->_retvalue = (isset($this->yystack[$this->yyidx + - 1]->minor['pre']) ? $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 . (isset($this->yystack[$this->yyidx + - 1]->minor['pre']) ? ')' : ''); } - #line 716 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r87() + #line 687 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r85() { $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor . $this->yystack[$this->yyidx + - 1]->minor . ')'; } - #line 720 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r88() + #line 691 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r86() { $this->_retvalue = 'in_array(' . $this->yystack[$this->yyidx + - 2]->minor . ',' . $this->yystack[$this->yyidx + 0]->minor . ')'; } - #line 724 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r89() + #line 695 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r87() { $this->_retvalue = 'in_array(' . $this->yystack[$this->yyidx + - 2]->minor . ',(array)' . $this->yystack[$this->yyidx + 0]->minor . ')'; } - #line 728 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r90() + #line 699 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r88() { $this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor; } - #line 736 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r91() + #line 707 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r89() { $this->_retvalue = $this->yystack[$this->yyidx + - 5]->minor . ' ? ' . $this->compiler->compileVariable('\'' . substr($this->yystack[$this->yyidx + - 2]->minor, 1) . '\'') . ' : ' . $this->yystack[$this->yyidx + 0]->minor; } - #line 740 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r92() + #line 711 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r90() { $this->_retvalue = $this->yystack[$this->yyidx + - 5]->minor . ' ? ' . $this->yystack[$this->yyidx + - 2]->minor . ' : ' . $this->yystack[$this->yyidx + 0]->minor; } - #line 755 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r95() + #line 726 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r93() { $this->_retvalue = '!' . $this->yystack[$this->yyidx + 0]->minor; } - #line 776 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r100() + #line 747 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r98() { $this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . '.' . $this->yystack[$this->yyidx + 0]->minor; } - #line 780 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r101() + #line 751 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r99() { $this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . '.'; } - #line 784 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r102() + #line 755 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r100() { $this->_retvalue = '.' . $this->yystack[$this->yyidx + 0]->minor; } - #line 789 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r103() + #line 760 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r101() { if (defined($this->yystack[$this->yyidx + 0]->minor)) { - if (isset($this->smarty->security_policy)) { - $this->smarty->security_policy->isTrustedConstant($this->yystack[$this->yyidx + 0]->minor, $this->compiler); + if ($this->security) { + $this->security->isTrustedConstant($this->yystack[$this->yyidx + 0]->minor, $this->compiler); } $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } else { @@ -1323,14 +1773,14 @@ class Smarty_Internal_Templateparser } } - #line 806 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r105() + #line 777 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r103() { $this->_retvalue = "(" . $this->yystack[$this->yyidx + - 1]->minor . ")"; } - #line 821 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r108() + #line 792 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r106() { self::$prefix_number ++; if ($this->yystack[$this->yyidx + - 2]->minor['var'] == '\'smarty\'') { @@ -1341,8 +1791,8 @@ class Smarty_Internal_Templateparser $this->_retvalue = '$_tmp' . self::$prefix_number . '::' . $this->yystack[$this->yyidx + 0]->minor[0] . $this->yystack[$this->yyidx + 0]->minor[1]; } - #line 832 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r109() + #line 803 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r107() { self::$prefix_number ++; $tmp = $this->compiler->appendCode('', $this->yystack[$this->yyidx + 0]->minor); @@ -1350,10 +1800,12 @@ class Smarty_Internal_Templateparser $this->_retvalue = '$_tmp' . self::$prefix_number; } - #line 849 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r112() + #line 820 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r110() { - if (!in_array(strtolower($this->yystack[$this->yyidx + - 2]->minor), array('self', 'parent')) && (!$this->security || $this->smarty->security_policy->isTrustedStaticClassAccess($this->yystack[$this->yyidx + - 2]->minor, $this->yystack[$this->yyidx + 0]->minor, $this->compiler))) { + 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 { @@ -1364,14 +1816,14 @@ class Smarty_Internal_Templateparser } } - #line 883 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r115() + #line 854 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r113() { $this->_retvalue = $this->compiler->compileVariable('\'' . substr($this->yystack[$this->yyidx + 0]->minor, 1) . '\''); } - #line 886 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r116() + #line 857 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r114() { if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { $smarty_var = $this->compiler->compileTag('private_special_variable', array(), $this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']); @@ -1384,78 +1836,80 @@ class Smarty_Internal_Templateparser } } - #line 899 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r117() + #line 870 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r115() { $this->_retvalue = '$_smarty_tpl->tpl_vars[' . $this->yystack[$this->yyidx + - 2]->minor . ']->' . $this->yystack[$this->yyidx + 0]->minor; } - #line 909 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r119() + #line 880 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r117() { $this->_retvalue = '$_smarty_tpl->getConfigVariable( \'' . $this->yystack[$this->yyidx + - 1]->minor . '\')'; } - #line 913 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r120() + #line 884 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r118() { $this->_retvalue = '(is_array($tmp = $_smarty_tpl->getConfigVariable( \'' . $this->yystack[$this->yyidx + - 2]->minor . '\')) ? $tmp' . $this->yystack[$this->yyidx + 0]->minor . ' :null)'; } - #line 917 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r121() + #line 888 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r119() { $this->_retvalue = '$_smarty_tpl->getConfigVariable( ' . $this->yystack[$this->yyidx + - 1]->minor . ')'; } - #line 921 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r122() + #line 892 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r120() { $this->_retvalue = '(is_array($tmp = $_smarty_tpl->getConfigVariable( ' . $this->yystack[$this->yyidx + - 2]->minor . ')) ? $tmp' . $this->yystack[$this->yyidx + 0]->minor . ' : null)'; } - #line 925 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r123() + #line 896 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r121() { - $this->_retvalue = array('var' => '\'' . substr($this->yystack[$this->yyidx + - 1]->minor, 1) . '\'', 'smarty_internal_index' => $this->yystack[$this->yyidx + 0]->minor); + $this->_retvalue = array('var' => '\'' . substr($this->yystack[$this->yyidx + - 1]->minor, 1) . '\'', + 'smarty_internal_index' => $this->yystack[$this->yyidx + 0]->minor); } - #line 928 "../smarty/lexer/smarty_internal_templateparser.y" + #line 899 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r122() + { + $this->_retvalue = array('var' => $this->yystack[$this->yyidx + - 1]->minor, + 'smarty_internal_index' => $this->yystack[$this->yyidx + 0]->minor); + } + + #line 912 "../smarty/lexer/smarty_internal_templateparser.y" function yy_r124() - { - $this->_retvalue = array('var' => $this->yystack[$this->yyidx + - 1]->minor, 'smarty_internal_index' => $this->yystack[$this->yyidx + 0]->minor); - } - - #line 941 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r126() { return; } - #line 947 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r127() + #line 918 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r125() { $this->_retvalue = '[' . $this->compiler->compileVariable('\'' . substr($this->yystack[$this->yyidx + 0]->minor, 1) . '\'') . ']'; } - #line 950 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r128() + #line 921 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r126() { $this->_retvalue = '[' . $this->compiler->compileVariable($this->yystack[$this->yyidx + 0]->minor) . ']'; } - #line 954 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r129() + #line 925 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r127() { $this->_retvalue = '[' . $this->compiler->compileVariable($this->yystack[$this->yyidx + - 2]->minor) . '->' . $this->yystack[$this->yyidx + 0]->minor . ']'; } - #line 958 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r130() + #line 929 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r128() { if (defined($this->yystack[$this->yyidx + 0]->minor)) { - if (isset($this->smarty->security_policy)) { - $this->smarty->security_policy->isTrustedConstant($this->yystack[$this->yyidx + 0]->minor, $this->compiler); + if ($this->security) { + $this->security->isTrustedConstant($this->yystack[$this->yyidx + 0]->minor, $this->compiler); } $this->_retvalue = '[' . $this->yystack[$this->yyidx + 0]->minor . ']'; } else { @@ -1463,81 +1917,81 @@ class Smarty_Internal_Templateparser } } - #line 969 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r131() + #line 940 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r129() { $this->_retvalue = '[' . $this->yystack[$this->yyidx + 0]->minor . ']'; } - #line 974 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r132() + #line 945 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r130() { $this->_retvalue = '[' . $this->yystack[$this->yyidx + - 1]->minor . ']'; } - #line 979 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r133() + #line 950 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r131() { $this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable', array(), '[\'section\'][\'' . $this->yystack[$this->yyidx + - 1]->minor . '\'][\'index\']') . ']'; } - #line 983 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r134() + #line 954 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r132() { $this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable', array(), '[\'section\'][\'' . $this->yystack[$this->yyidx + - 3]->minor . '\'][\'' . $this->yystack[$this->yyidx + - 1]->minor . '\']') . ']'; } - #line 986 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r135() + #line 957 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r133() { $this->_retvalue = '[' . $this->yystack[$this->yyidx + - 1]->minor . ']'; } - #line 992 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r137() + #line 963 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r135() { $this->_retvalue = '[' . $this->compiler->compileVariable('\'' . substr($this->yystack[$this->yyidx + - 1]->minor, 1) . '\'') . ']';; } - #line 1008 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r141() + #line 979 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r139() { $this->_retvalue = '[]'; } - #line 1018 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r142() + #line 989 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r140() { $this->_retvalue = '\'' . substr($this->yystack[$this->yyidx + 0]->minor, 1) . '\''; } - #line 1022 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r143() + #line 993 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r141() { $this->_retvalue = "''"; } - #line 1027 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r144() + #line 998 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r142() { $this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . '.' . $this->yystack[$this->yyidx + 0]->minor; } - #line 1035 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r146() + #line 1006 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r144() { $var = trim(substr($this->yystack[$this->yyidx + 0]->minor, $this->lex->ldel_length, - $this->lex->rdel_length), ' $'); $this->_retvalue = $this->compiler->compileVariable('\'' . $var . '\''); } - #line 1041 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r147() + #line 1012 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r145() { $this->_retvalue = '(' . $this->yystack[$this->yyidx + - 1]->minor . ')'; } - #line 1048 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r148() + #line 1019 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r146() { if ($this->yystack[$this->yyidx + - 1]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('private_special_variable', array(), $this->yystack[$this->yyidx + - 1]->minor['smarty_internal_index']) . $this->yystack[$this->yyidx + 0]->minor; @@ -1546,20 +2000,20 @@ class Smarty_Internal_Templateparser } } - #line 1057 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r149() + #line 1028 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r147() { $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } - #line 1062 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r150() + #line 1033 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r148() { $this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor; } - #line 1067 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r151() + #line 1038 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r149() { if ($this->security && substr($this->yystack[$this->yyidx + - 1]->minor, 0, 1) == '_') { $this->compiler->trigger_template_error(self::Err1); @@ -1567,8 +2021,8 @@ class Smarty_Internal_Templateparser $this->_retvalue = '->' . $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor; } - #line 1074 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r152() + #line 1045 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r150() { if ($this->security) { $this->compiler->trigger_template_error(self::Err2); @@ -1576,8 +2030,8 @@ class Smarty_Internal_Templateparser $this->_retvalue = '->{' . $this->compiler->compileVariable($this->yystack[$this->yyidx + - 1]->minor) . $this->yystack[$this->yyidx + 0]->minor . '}'; } - #line 1081 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r153() + #line 1052 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r151() { if ($this->security) { $this->compiler->trigger_template_error(self::Err2); @@ -1585,8 +2039,8 @@ class Smarty_Internal_Templateparser $this->_retvalue = '->{' . $this->yystack[$this->yyidx + - 2]->minor . $this->yystack[$this->yyidx + 0]->minor . '}'; } - #line 1088 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r154() + #line 1059 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r152() { if ($this->security) { $this->compiler->trigger_template_error(self::Err2); @@ -1594,16 +2048,16 @@ class Smarty_Internal_Templateparser $this->_retvalue = '->{\'' . $this->yystack[$this->yyidx + - 4]->minor . '\'.' . $this->yystack[$this->yyidx + - 2]->minor . $this->yystack[$this->yyidx + 0]->minor . '}'; } - #line 1096 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r155() + #line 1067 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r153() { $this->_retvalue = '->' . $this->yystack[$this->yyidx + 0]->minor; } - #line 1104 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r156() + #line 1075 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r154() { - if (!$this->security || $this->smarty->security_policy->isTrustedPhpFunction($this->yystack[$this->yyidx + - 3]->minor, $this->compiler)) { + if (!$this->security || $this->security->isTrustedPhpFunction($this->yystack[$this->yyidx + - 3]->minor, $this->compiler)) { if (strcasecmp($this->yystack[$this->yyidx + - 3]->minor, 'isset') === 0 || strcasecmp($this->yystack[$this->yyidx + - 3]->minor, 'empty') === 0 || strcasecmp($this->yystack[$this->yyidx + - 3]->minor, 'array') === 0 || is_callable($this->yystack[$this->yyidx + - 3]->minor)) { $func_name = strtolower($this->yystack[$this->yyidx + - 3]->minor); if ($func_name == 'isset') { @@ -1637,8 +2091,8 @@ class Smarty_Internal_Templateparser } } - #line 1143 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r157() + #line 1114 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r155() { if ($this->security && substr($this->yystack[$this->yyidx + - 3]->minor, 0, 1) == '_') { $this->compiler->trigger_template_error(self::Err1); @@ -1646,8 +2100,8 @@ class Smarty_Internal_Templateparser $this->_retvalue = $this->yystack[$this->yyidx + - 3]->minor . "(" . implode(',', $this->yystack[$this->yyidx + - 1]->minor) . ")"; } - #line 1150 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r158() + #line 1121 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r156() { if ($this->security) { $this->compiler->trigger_template_error(self::Err2); @@ -1657,157 +2111,179 @@ class Smarty_Internal_Templateparser $this->_retvalue = '$_tmp' . self::$prefix_number . '(' . implode(',', $this->yystack[$this->yyidx + - 1]->minor) . ')'; } - #line 1161 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r159() + #line 1132 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r157() { $this->_retvalue = array_merge($this->yystack[$this->yyidx + - 2]->minor, array($this->yystack[$this->yyidx + 0]->minor)); } - #line 1178 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r162() + #line 1149 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r160() { $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 1182 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r163() + #line 1153 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r161() { $this->_retvalue = array(array_merge($this->yystack[$this->yyidx + - 1]->minor, $this->yystack[$this->yyidx + 0]->minor)); } - #line 1190 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r165() + #line 1161 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r163() { $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } - #line 1198 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r166() + #line 1169 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r164() { $this->_retvalue = array_merge($this->yystack[$this->yyidx + - 1]->minor, $this->yystack[$this->yyidx + 0]->minor); } - #line 1217 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r170() + #line 1188 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r168() { $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor, '', 'method'); } - #line 1222 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r171() + #line 1193 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r169() { - $this->_retvalue = array($this->yystack[$this->yyidx + - 1]->minor, $this->yystack[$this->yyidx + 0]->minor, 'method'); + $this->_retvalue = array($this->yystack[$this->yyidx + - 1]->minor, $this->yystack[$this->yyidx + 0]->minor, + 'method'); } - #line 1227 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r172() + #line 1198 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r170() { $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor, ''); } - #line 1232 "../smarty/lexer/smarty_internal_templateparser.y" + #line 1203 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r171() + { + $this->_retvalue = array($this->yystack[$this->yyidx + - 1]->minor, $this->yystack[$this->yyidx + 0]->minor, + 'property'); + } + + #line 1208 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r172() + { + $this->_retvalue = array($this->yystack[$this->yyidx + - 2]->minor, + $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor, 'property'); + } + + #line 1214 "../smarty/lexer/smarty_internal_templateparser.y" function yy_r173() - { - $this->_retvalue = array($this->yystack[$this->yyidx + - 1]->minor, $this->yystack[$this->yyidx + 0]->minor, 'property'); - } - - #line 1237 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r174() - { - $this->_retvalue = array($this->yystack[$this->yyidx + - 2]->minor, $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor, 'property'); - } - - #line 1243 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r175() { $this->_retvalue['op'] = ' ' . trim($this->yystack[$this->yyidx + 0]->minor) . ' '; } - #line 1247 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r176() + #line 1218 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r174() { - static $lops = array('eq' => array('op' => ' == ', 'pre' => null), 'ne' => array('op' => ' != ', 'pre' => null), 'neq' => array('op' => ' != ', 'pre' => null), 'gt' => array('op' => ' > ', 'pre' => null), 'ge' => array('op' => ' >= ', 'pre' => null), 'gte' => array('op' => ' >= ', 'pre' => null), 'lt' => array('op' => ' < ', 'pre' => null), 'le' => array('op' => ' <= ', 'pre' => null), 'lte' => array('op' => ' <= ', 'pre' => null), 'mod' => array('op' => ' % ', 'pre' => null), 'and' => array('op' => ' && ', 'pre' => null), 'or' => array('op' => ' || ', 'pre' => null), 'xor' => array('op' => ' xor ', 'pre' => null), '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 & '),); + static $lops = array('eq' => array('op' => ' == ', 'pre' => null), + 'ne' => array('op' => ' != ', 'pre' => null), + 'neq' => array('op' => ' != ', 'pre' => null), + 'gt' => array('op' => ' > ', 'pre' => null), + 'ge' => array('op' => ' >= ', 'pre' => null), + 'gte' => array('op' => ' >= ', 'pre' => null), + 'lt' => array('op' => ' < ', 'pre' => null), + 'le' => array('op' => ' <= ', 'pre' => null), + 'lte' => array('op' => ' <= ', 'pre' => null), + 'mod' => array('op' => ' % ', 'pre' => null), + 'and' => array('op' => ' && ', 'pre' => null), + 'or' => array('op' => ' || ', 'pre' => null), + 'xor' => array('op' => ' xor ', 'pre' => null), + '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(str_replace(' ', '', $this->yystack[$this->yyidx + 0]->minor)); $this->_retvalue = $lops[$op]; } - #line 1273 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r177() + #line 1244 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r175() { - static $scond = array('iseven' => '!(1 & ', 'isnoteven' => '(1 & ', 'isodd' => '(1 & ', 'isnotodd' => '!(1 & ',); + 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 1287 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r178() + #line 1258 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r176() { $this->_retvalue = 'array(' . $this->yystack[$this->yyidx + - 1]->minor . ')'; } - #line 1295 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r180() + #line 1266 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r178() { $this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . ',' . $this->yystack[$this->yyidx + 0]->minor; } - #line 1303 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r182() + #line 1274 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r180() { $this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . '=>' . $this->yystack[$this->yyidx + 0]->minor; } - #line 1307 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r183() + #line 1278 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r181() { $this->_retvalue = '\'' . $this->yystack[$this->yyidx + - 2]->minor . '\'=>' . $this->yystack[$this->yyidx + 0]->minor; } - #line 1323 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r186() + #line 1294 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r184() { $this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor->to_smarty_php(); } - #line 1328 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r187() + #line 1299 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r185() { $this->yystack[$this->yyidx + - 1]->minor->append_subtree($this->yystack[$this->yyidx + 0]->minor); $this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor; } - #line 1333 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r188() + #line 1304 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r186() { $this->_retvalue = new Smarty_Internal_ParseTree_Dq($this, $this->yystack[$this->yyidx + 0]->minor); } - #line 1337 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r189() + #line 1308 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r187() { $this->_retvalue = new Smarty_Internal_ParseTree_Code($this, '(string)' . $this->yystack[$this->yyidx + - 1]->minor); } - #line 1345 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r191() + #line 1316 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r189() { $this->_retvalue = new Smarty_Internal_ParseTree_Code($this, '(string)$_smarty_tpl->tpl_vars[\'' . substr($this->yystack[$this->yyidx + 0]->minor, 1) . '\']->value'); } - #line 1353 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r193() + #line 1324 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r191() { $this->_retvalue = new Smarty_Internal_ParseTree_Code($this, '(string)(' . $this->yystack[$this->yyidx + - 1]->minor . ')'); } - #line 1357 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r194() + #line 1328 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r192() { $this->_retvalue = new Smarty_Internal_ParseTree_Tag($this, $this->yystack[$this->yyidx + 0]->minor); } - #line 1361 "../smarty/lexer/smarty_internal_templateparser.y" - function yy_r195() + #line 1332 "../smarty/lexer/smarty_internal_templateparser.y" + function yy_r193() { $this->_retvalue = new Smarty_Internal_ParseTree_DqContent($this, $this->yystack[$this->yyidx + 0]->minor); } @@ -1863,7 +2339,7 @@ class Smarty_Internal_Templateparser public function yy_syntax_error($yymajor, $TOKEN) { - #line 196 "../smarty/lexer/smarty_internal_templateparser.y" + #line 183 "../smarty/lexer/smarty_internal_templateparser.y" $this->internalError = true; $this->yymajor = $yymajor; @@ -1878,7 +2354,7 @@ class Smarty_Internal_Templateparser while ($this->yyidx >= 0) { $this->yy_pop_parser_stack(); } - #line 189 "../smarty/lexer/smarty_internal_templateparser.y" + #line 176 "../smarty/lexer/smarty_internal_templateparser.y" $this->successful = !$this->internalError; $this->internalError = false;