From 428efa634db188e3d929b18a137d5ba63cc45d11 Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Sat, 7 Oct 2017 08:40:28 +0200 Subject: [PATCH] - bugfix modification of 9.8.2017 did fail on some recursive tag nesting. https://github.com/smarty-php/smarty/issues/389 --- .../smarty_internal_method_literals.php | 96 + .../smarty_internal_templatebase.php | 3 + .../smarty_internal_templatelexer.php | 754 ++- .../smarty_internal_templateparser.php | 5397 ++++++++++------- .../smarty_internal_testinstall.php | 365 +- 5 files changed, 3770 insertions(+), 2845 deletions(-) create mode 100644 libs/sysplugins/smarty_internal_method_literals.php diff --git a/libs/sysplugins/smarty_internal_method_literals.php b/libs/sysplugins/smarty_internal_method_literals.php new file mode 100644 index 00000000..6dd4e26d --- /dev/null +++ b/libs/sysplugins/smarty_internal_method_literals.php @@ -0,0 +1,96 @@ +_getSmartyObj(); + return (array)$smarty->literals; + } + + /** + * Add literals + * + * @api Smarty::addLiterals() + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param array|string $literals literal or list of literals + * to add + * + * @return \Smarty|\Smarty_Internal_Template + */ + public function addLiterals(Smarty_Internal_TemplateBase $obj, $literals = null) + { + if (isset($literals)) { + $this->set($obj->_getSmartyObj(), (array)$literals); + } + return $obj; + } + + /** + * Set literals + * + * @api Smarty::setLiterals() + * + * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj + * @param array|string $literals literal or list of literals + * to set + * + * @return \Smarty|\Smarty_Internal_Template + */ + public function setLiterals(Smarty_Internal_TemplateBase $obj, $literals = null) + { + $smarty = $obj->_getSmartyObj(); + $smarty->literals = array(); + if (!empty($literals)) { + $this->set($smarty, (array)$literals); + } + return $obj; + } + + /** + * common setter for literals for easier handling of duplicates the + * Smarty::$literals array gets filled with identical key values + * + * @param \Smarty $smarty + * @param array $literals + * + * @throws \SmartyException + */ + private function set(Smarty $smarty, $literals) + { + $literals = array_combine($literals, $literals); + $error = isset($literals[ $smarty->left_delimiter ]) ? array($smarty->left_delimiter) : array(); + $error = isset($literals[ $smarty->right_delimiter ]) ? $error[] = $smarty->right_delimiter : $error; + if (!empty($error)) { + throw new SmartyException('User defined literal(s) "' . $error . + '" may not be identical with left or right delimiter'); + } + $smarty->literals = array_merge((array)$smarty->literals, (array)$literals); + } +} \ No newline at end of file diff --git a/libs/sysplugins/smarty_internal_templatebase.php b/libs/sysplugins/smarty_internal_templatebase.php index 1a5285ef..463c4b39 100644 --- a/libs/sysplugins/smarty_internal_templatebase.php +++ b/libs/sysplugins/smarty_internal_templatebase.php @@ -21,10 +21,12 @@ * * @method Smarty_Internal_TemplateBase addAutoloadFilters(mixed $filters, string $type = null) * @method Smarty_Internal_TemplateBase addDefaultModifier(mixed $modifiers) + * @method Smarty_Internal_TemplateBase addLiterals(mixed $literals) * @method Smarty_Internal_TemplateBase createData(Smarty_Internal_Data $parent = null, string $name = null) * @method array getAutoloadFilters(string $type = null) * @method string getDebugTemplate() * @method array getDefaultModifier() + * @method array getLiterals() * @method array getTags(mixed $template = null) * @method object getRegisteredObject(string $object_name) * @method Smarty_Internal_TemplateBase registerCacheResource(string $name, Smarty_CacheResource $resource_handler) @@ -36,6 +38,7 @@ * @method Smarty_Internal_TemplateBase setAutoloadFilters(mixed $filters, string $type = null) * @method Smarty_Internal_TemplateBase setDebugTemplate(string $tpl_name) * @method Smarty_Internal_TemplateBase setDefaultModifiers(mixed $modifiers) + * @method Smarty_Internal_TemplateBase setLiterals(mixed $literals) * @method Smarty_Internal_TemplateBase unloadFilter(string $type, string $name) * @method Smarty_Internal_TemplateBase unregisterCacheResource(string $name) * @method Smarty_Internal_TemplateBase unregisterObject(string $object_name) diff --git a/libs/sysplugins/smarty_internal_templatelexer.php b/libs/sysplugins/smarty_internal_templatelexer.php index a6d0ec21..46e0f835 100644 --- a/libs/sysplugins/smarty_internal_templatelexer.php +++ b/libs/sysplugins/smarty_internal_templatelexer.php @@ -18,71 +18,83 @@ */ class Smarty_Internal_Templatelexer { - const TEXT = 1; - const TAG = 2; - const TAGBODY = 3; - const LITERAL = 4; - const DOUBLEQUOTEDSTRING = 5; /** * Source * * @var string */ public $data; + /** * Source length * * @var int */ public $dataLength = null; + /** * byte counter * * @var int */ public $counter; + /** * token number * * @var int */ public $token; + /** * token value * * @var string */ public $value; + /** * current line * * @var int */ public $line; + /** * tag start line * * @var */ public $taglineno; + /** * php code type * * @var string */ public $phpType = ''; + /** * escaped left delimiter * * @var string */ public $ldel = ''; + + /** + * escaped left delimiter with space + * + * @var string + */ + public $ldel_q = ''; + /** * escaped left delimiter length * * @var int */ public $ldel_length = 0; + /** * escaped right delimiter * @@ -90,112 +102,165 @@ class Smarty_Internal_Templatelexer */ public $rdel = ''; - /** - * PHP start tag string - * - * @var string - */ /** * escaped right delimiter length * * @var int */ public $rdel_length = 0; + /** * state number * * @var int */ public $state = 1; + /** * Smarty object * * @var Smarty */ public $smarty = null; + /** * compiler object * * @var Smarty_Internal_TemplateCompilerBase */ public $compiler = null; + /** * trace file * * @var resource */ public $yyTraceFILE; + /** * trace prompt * * @var string */ public $yyTracePrompt; + /** * XML flag true while processing xml * * @var bool */ public $is_xml = false; + /** * state names * * @var array */ public $state_name = array(1 => 'TEXT', 2 => 'TAG', 3 => 'TAGBODY', 4 => 'LITERAL', 5 => 'DOUBLEQUOTEDSTRING',); + /** * token names * * @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', + ); + + /** + * preg string of user defined litereals + * + * @var string + */ + public $literals = ''; + /** * literal tag nesting level * * @var int */ private $literal_cnt = 0; + /** - * storage for assembled token patterns + * preg token pattern for state TEXT * * @var string */ private $yy_global_pattern1 = null; + + /** + * preg token pattern for state TAG + * + * @var string + */ private $yy_global_pattern2 = null; - /* - * Check if this tag is autoliteral - */ + /** + * preg token pattern for state TAGBODY + * + * @var string + */ private $yy_global_pattern3 = null; + + /** + * preg token pattern for state LITERAL + * + * @var string + */ private $yy_global_pattern4 = null; + + /** + * preg token pattern for state DOUBLEQUOTEDSTRING + * + * @var null + */ private $yy_global_pattern5 = null; - private $_yy_state = 1; - private $_yy_stack = array(); /** * constructor * - * @param string $data template source + * @param string $source template source * @param Smarty_Internal_TemplateCompilerBase $compiler */ - function __construct($data, Smarty_Internal_TemplateCompilerBase $compiler) + function __construct($source, Smarty_Internal_TemplateCompilerBase $compiler) { - $this->data = $data; - $this->dataLength = strlen($data); + $this->data = $source; + $this->dataLength = strlen($this->data); $this->counter = 0; if (preg_match('/^\xEF\xBB\xBF/i', $this->data, $match)) { $this->counter += strlen($match[0]); @@ -203,52 +268,129 @@ class Smarty_Internal_Templatelexer $this->line = 1; $this->smarty = $compiler->smarty; $this->compiler = $compiler; - $this->pldel = preg_quote($this->smarty->left_delimiter, '/'); - $this->ldel = $this->pldel . ($this->smarty->auto_literal ? '(?!\\s+)' : '\\s*'); + $this->ldel = preg_quote($this->smarty->left_delimiter, '/') . ($this->smarty->auto_literal ? '' : '\\s*'); $this->ldel_length = strlen($this->smarty->left_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; + $literals = $this->smarty->getLiterals(); + if (!empty($literals)) { + foreach ($literals as $key => $literal) { + $literals[$key] = preg_quote($literal, '/'); + } + } + if ($this->smarty->auto_literal) { + $literals[] = $this->ldel . '{1,}\\s+'; + } + if (!empty($literals)) { + $this->literals = implode('|', $literals); + } else { + $this->literals = preg_quote('^$', '/'); + } } + /** + * open lexer/parser trace file + * + */ public function PrintTrace() { $this->yyTraceFILE = fopen('php://output', 'w'); $this->yyTracePrompt = '
'; } + /** + * replace placeholders with runtime preg code + * + * @param string $input + * + * @return string + */ + public function replace($input) + { + return str_replace(array('SMARTYldel', 'SMARTYliteral', 'SMARTYrdel'), + array($this->ldel, $this->literals, $this->rdel), + $input); + } + + /** + * check if current value is an autoliteral left delimiter + * + * @return bool + */ 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; } -public function yylex1() + + private $_yy_state = 1; + private $_yy_stack = array(); + + public function yylex() + { + return $this->{'yylex' . $this->_yy_state}(); + } + + public function yypushstate($state) + { + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sState push %s\n", $this->yyTracePrompt, isset($this->state_name[$this->_yy_state]) ? $this->state_name[$this->_yy_state] : $this->_yy_state); + } + array_push($this->_yy_stack, $this->_yy_state); + $this->_yy_state = $state; + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%snew State %s\n", $this->yyTracePrompt, isset($this->state_name[$this->_yy_state]) ? $this->state_name[$this->_yy_state] : $this->_yy_state); + } + } + + public function yypopstate() + { + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sState pop %s\n", $this->yyTracePrompt, isset($this->state_name[$this->_yy_state]) ? $this->state_name[$this->_yy_state] : $this->_yy_state); + } + $this->_yy_state = array_pop($this->_yy_stack); + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%snew State %s\n", $this->yyTracePrompt, isset($this->state_name[$this->_yy_state]) ? $this->state_name[$this->_yy_state] : $this->_yy_state); + } + + } + + public function yybegin($state) + { + $this->_yy_state = $state; + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sState set %s\n", $this->yyTracePrompt, isset($this->state_name[$this->_yy_state]) ? $this->state_name[$this->_yy_state] : $this->_yy_state); + } + } + + + + public function yylex1() { if (!isset($this->yy_global_pattern1)) { - $this->yy_global_pattern1 = - $this->replace("/\G([{][}])|\G(SMARTYldel[*])|\G((SMARTYldelphp([ ].*?)?SMARTYrdel)|(SMARTYldel[\/]phpSMARTYrdel))|\G(SMARTYrawldel{2,})|\G(SMARTYldelliteral\\s*SMARTYrdel)|\G(SMARTYldel[\/]literal\\s*SMARTYrdel)|\G(SMARTYldel)|\G((<[?]((php\\s+|=)|\\s+))|(<[%])|(<[?]xml\\s+)|()|([?][>])|([%][>]))|\G([\S\s])/isS"); + $this->yy_global_pattern1 = $this->replace("/\G([{][}])|\G(SMARTYldel[*])|\G((SMARTYldelphp([ ].*?)?SMARTYrdel)|(SMARTYldel[\/]phpSMARTYrdel))|\G(SMARTYliteral)|\G(SMARTYldelliteral\\s*SMARTYrdel)|\G(SMARTYldel[\/]literal\\s*SMARTYrdel)|\G(SMARTYldel)|\G(([<][?]((php\\s+|=)|\\s+))|([<][%])|([<][?]xml\\s+)|([<]script\\s+language\\s*=\\s*[\"']?\\s*php\\s*[\"']?\\s*[>])|([?][>])|([%][>]))|\G(((.*?)(?=(SMARTYliteral|[{]|([<][?]((php\\s+|=)|\\s+))|([<][%])|([<][?]xml\\s+)|([<]script\\s+language\\s*=\\s*[\"']?\\s*php\\s*[\"']?\\s*[>])|([?][>])|([%][>]))))|(.*))/isS"); } if (!isset($this->dataLength)) { $this->dataLength = strlen($this->data); } - if ($this->counter >= $this->dataLength) { + if ($this->counter >= $this->dataLength) { return false; // end of input } - + do { - if (preg_match($this->yy_global_pattern1, $this->data, $yymatches, 0, $this->counter)) { - if (!isset($yymatches[0][1])) { - $yymatches = preg_grep("/(.|\s)+/", $yymatches); + if (preg_match($this->yy_global_pattern1,$this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][1])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); } else { $yymatches = array_filter($yymatches); } if (empty($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . ' an empty string. Input "' . - substr($this->data, - $this->counter, - 5) . '... state TEXT'); + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr($this->data, + $this->counter, 5) . '... state TEXT'); } next($yymatches); // skip global match $this->token = key($yymatches); // token number @@ -259,158 +401,109 @@ public function yylex1() $this->line += substr_count($this->value, "\n"); // accept this token return true; - } else if ($r === true) { + } elseif ($r === true) { // we have changed state // process this token in the new state return $this->yylex(); - } else if ($r === false) { + } elseif ($r === false) { $this->counter += strlen($this->value); $this->line += substr_count($this->value, "\n"); - if ($this->counter >= $this->dataLength) { + if ($this->counter >= $this->dataLength) { return false; // end of input } // skip this token continue; - } - } else { - throw new Exception('Unexpected input at line' . $this->line . ': ' . $this->data[ $this->counter ]); + } } else { + throw new Exception('Unexpected input at line' . $this->line . + ': ' . $this->data[$this->counter]); } break; } while (true); } // end function - public function replace($input) - { - return str_replace(array('SMARTYldel', 'SMARTYrawldel', 'SMARTYrdel'), - array($this->ldel, $this->pldel, $this->rdel), - $input); - } - - public function yylex() - { - return $this->{'yylex' . $this->_yy_state}(); - } + const TEXT = 1; function yy_r1_1() { $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - + } function yy_r1_2() { - preg_match("/[*]{$this->rdel}/", $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter); + 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->compiler->trigger_template_error ("missing or misspelled comment closing tag '*{$this->smarty->right_delimiter}'"); } - $this->value = substr($this->data, $this->counter, $to - $this->counter); + $this->value = substr($this->data,$this->counter,$to-$this->counter); return false; - } - + } function yy_r1_3() { $this->compiler->getTagCompiler('private_php')->parsePhp($this); - } - + } function yy_r1_7() { $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - + } function yy_r1_8() { $this->token = Smarty_Internal_Templateparser::TP_LITERALSTART; $this->yypushstate(self::LITERAL); - } - - public function yypushstate($state) - { - if ($this->yyTraceFILE) { - fprintf($this->yyTraceFILE, - "%sState push %s\n", - $this->yyTracePrompt, - isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : - $this->_yy_state); - } - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - if ($this->yyTraceFILE) { - fprintf($this->yyTraceFILE, - "%snew State %s\n", - $this->yyTracePrompt, - isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : - $this->_yy_state); - } - } - + } function yy_r1_9() { $this->token = Smarty_Internal_Templateparser::TP_LITERALEND; $this->yypushstate(self::LITERAL); - } - + } function yy_r1_10() { $this->yypushstate(self::TAG); return true; - } - + } function yy_r1_11() { $this->compiler->getTagCompiler('private_php')->parsePhp($this); - } // end function - + } function yy_r1_20() { - $to = $this->dataLength; - preg_match("/((?pldel){$this->ldel})|(<[?]((php\s+|=)|\s+))|(<[%])|(<[?]xml\s+)|()|([?][>])|([%][>])/i", - $this->data, - $match, - PREG_OFFSET_CAPTURE, - $this->counter); - if (isset($match[0][1])) { - $to = $match[0][1]; - } - $this->value = substr($this->data, $this->counter, $to - $this->counter); $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } + } -public function yylex2() + + public function yylex2() { if (!isset($this->yy_global_pattern2)) { - $this->yy_global_pattern2 = - $this->replace("/\G(SMARTYldel(if|elseif|else if|while)\\s+)|\G(SMARTYldelfor\\s+)|\G(SMARTYldelforeach(?![^\s]))|\G(SMARTYldelsetfilter\\s+)|\G(SMARTYldelmake_nocache\\s+)|\G(SMARTYldel[0-9]*[a-zA-Z_]\\w*(\\s+nocache)?\\s*SMARTYrdel)|\G(SMARTYldel[\/](?:(?!block)[0-9]*[a-zA-Z_]\\w*)\\s*SMARTYrdel)|\G(SMARTYldel[$][0-9]*[a-zA-Z_]\\w*(\\s+nocache)?\\s*SMARTYrdel)|\G(SMARTYldel[\/])|\G(SMARTYldel)/isS"); + $this->yy_global_pattern2 = $this->replace("/\G(SMARTYldel(if|elseif|else if|while)\\s+)|\G(SMARTYldelfor\\s+)|\G(SMARTYldelforeach(?![^\s]))|\G(SMARTYldelsetfilter\\s+)|\G(SMARTYldelmake_nocache\\s+)|\G(SMARTYldel[0-9]*[a-zA-Z_]\\w*(\\s+nocache)?\\s*SMARTYrdel)|\G(SMARTYldel[\/](?:(?!block)[0-9]*[a-zA-Z_]\\w*)\\s*SMARTYrdel)|\G(SMARTYldel[$][0-9]*[a-zA-Z_]\\w*(\\s+nocache)?\\s*SMARTYrdel)|\G(SMARTYldel[\/])|\G(SMARTYldel)/isS"); } if (!isset($this->dataLength)) { $this->dataLength = strlen($this->data); } - if ($this->counter >= $this->dataLength) { + if ($this->counter >= $this->dataLength) { return false; // end of input } - + do { - if (preg_match($this->yy_global_pattern2, $this->data, $yymatches, 0, $this->counter)) { - if (!isset($yymatches[0][1])) { - $yymatches = preg_grep("/(.|\s)+/", $yymatches); + if (preg_match($this->yy_global_pattern2,$this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][1])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); } else { $yymatches = array_filter($yymatches); } if (empty($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . ' an empty string. Input "' . - substr($this->data, - $this->counter, - 5) . '... state TAG'); + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr($this->data, + $this->counter, 5) . '... state TAG'); } next($yymatches); // skip global match $this->token = key($yymatches); // token number @@ -421,119 +514,82 @@ public function yylex2() $this->line += substr_count($this->value, "\n"); // accept this token return true; - } else if ($r === true) { + } elseif ($r === true) { // we have changed state // process this token in the new state return $this->yylex(); - } else if ($r === false) { + } elseif ($r === false) { $this->counter += strlen($this->value); $this->line += substr_count($this->value, "\n"); - if ($this->counter >= $this->dataLength) { + if ($this->counter >= $this->dataLength) { return false; // end of input } // skip this token continue; - } - } else { - throw new Exception('Unexpected input at line' . $this->line . ': ' . $this->data[ $this->counter ]); + } } else { + throw new Exception('Unexpected input at line' . $this->line . + ': ' . $this->data[$this->counter]); } break; } while (true); - } + } // end function + + const TAG = 2; function yy_r2_1() { $this->token = Smarty_Internal_Templateparser::TP_LDELIF; $this->yybegin(self::TAGBODY); $this->taglineno = $this->line; - } - - public function yybegin($state) - { - $this->_yy_state = $state; - if ($this->yyTraceFILE) { - fprintf($this->yyTraceFILE, - "%sState set %s\n", - $this->yyTracePrompt, - isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : - $this->_yy_state); - } - } - + } function yy_r2_3() { $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; $this->yybegin(self::TAGBODY); $this->taglineno = $this->line; - } - + } function yy_r2_4() { $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; $this->yybegin(self::TAGBODY); $this->taglineno = $this->line; - } - + } function yy_r2_5() { $this->token = Smarty_Internal_Templateparser::TP_LDELSETFILTER; $this->yybegin(self::TAGBODY); $this->taglineno = $this->line; - } - + } function yy_r2_6() { $this->token = Smarty_Internal_Templateparser::TP_LDELMAKENOCACHE; $this->yybegin(self::TAGBODY); $this->taglineno = $this->line; - } - + } function yy_r2_7() { $this->yypopstate(); $this->token = Smarty_Internal_Templateparser::TP_SIMPLETAG; $this->taglineno = $this->line; - } - - public function yypopstate() - { - if ($this->yyTraceFILE) { - fprintf($this->yyTraceFILE, - "%sState pop %s\n", - $this->yyTracePrompt, - isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : - $this->_yy_state); - } - $this->_yy_state = array_pop($this->_yy_stack); - if ($this->yyTraceFILE) { - fprintf($this->yyTraceFILE, - "%snew State %s\n", - $this->yyTracePrompt, - isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] : - $this->_yy_state); - } - - } - + } function yy_r2_9() { $this->yypopstate(); $this->token = Smarty_Internal_Templateparser::TP_CLOSETAG; $this->taglineno = $this->line; - } - + } function yy_r2_10() { - if ($this->_yy_stack[ count($this->_yy_stack) - 1 ] == self::TEXT) { + if ($this->_yy_stack[count($this->_yy_stack)-1] == self::TEXT) { $this->yypopstate(); $this->token = Smarty_Internal_Templateparser::TP_SIMPELOUTPUT; $this->taglineno = $this->line; @@ -543,49 +599,46 @@ public function yylex2() $this->yybegin(self::TAGBODY); $this->taglineno = $this->line; } - } // end function - + } function yy_r2_12() { $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; $this->yybegin(self::TAGBODY); $this->taglineno = $this->line; - } - + } function yy_r2_13() { $this->token = Smarty_Internal_Templateparser::TP_LDEL; $this->yybegin(self::TAGBODY); $this->taglineno = $this->line; - } + } -public function yylex3() + + public function yylex3() { if (!isset($this->yy_global_pattern3)) { - $this->yy_global_pattern3 = - $this->replace("/\G(\\s*SMARTYrdel)|\G(SMARTYldel)|\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|neq|gt|ge|gte|lt|le|lte|mod|and|or|xor)\\s+)|\G(\\s+(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([\S\s])/isS"); + $this->yy_global_pattern3 = $this->replace("/\G(\\s*SMARTYrdel)|\G(SMARTYldel)|\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|neq|gt|ge|gte|lt|le|lte|mod|and|or|xor)\\s+)|\G(\\s+(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([\S\s])/isS"); } if (!isset($this->dataLength)) { $this->dataLength = strlen($this->data); } - if ($this->counter >= $this->dataLength) { + if ($this->counter >= $this->dataLength) { return false; // end of input } - + do { - if (preg_match($this->yy_global_pattern3, $this->data, $yymatches, 0, $this->counter)) { - if (!isset($yymatches[0][1])) { - $yymatches = preg_grep("/(.|\s)+/", $yymatches); + if (preg_match($this->yy_global_pattern3,$this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][1])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); } else { $yymatches = array_filter($yymatches); } if (empty($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . ' an empty string. Input "' . - substr($this->data, - $this->counter, - 5) . '... state TAGBODY'); + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr($this->data, + $this->counter, 5) . '... state TAGBODY'); } next($yymatches); // skip global match $this->token = key($yymatches); // token number @@ -596,335 +649,292 @@ public function yylex3() $this->line += substr_count($this->value, "\n"); // accept this token return true; - } else if ($r === true) { + } elseif ($r === true) { // we have changed state // process this token in the new state return $this->yylex(); - } else if ($r === false) { + } elseif ($r === false) { $this->counter += strlen($this->value); $this->line += substr_count($this->value, "\n"); - if ($this->counter >= $this->dataLength) { + if ($this->counter >= $this->dataLength) { return false; // end of input } // skip this token continue; - } - } else { - throw new Exception('Unexpected input at line' . $this->line . ': ' . $this->data[ $this->counter ]); + } } else { + throw new Exception('Unexpected input at line' . $this->line . + ': ' . $this->data[$this->counter]); } break; } while (true); - } + } // end function + + const TAGBODY = 3; function yy_r3_1() { $this->token = Smarty_Internal_Templateparser::TP_RDEL; $this->yypopstate(); - } - + } function yy_r3_2() { $this->yypushstate(self::TAG); return true; - } - + } function yy_r3_3() { $this->token = Smarty_Internal_Templateparser::TP_QUOTE; $this->yypushstate(self::DOUBLEQUOTEDSTRING); - } - + } function yy_r3_4() { $this->token = Smarty_Internal_Templateparser::TP_SINGLEQUOTESTRING; - } - + } function yy_r3_5() { $this->token = Smarty_Internal_Templateparser::TP_SMARTYBLOCKCHILDPARENT; $this->taglineno = $this->line; - } - + } function yy_r3_7() { $this->token = Smarty_Internal_Templateparser::TP_DOLLARID; - } - + } function yy_r3_8() { $this->token = Smarty_Internal_Templateparser::TP_DOLLAR; - } - + } function yy_r3_9() { $this->token = Smarty_Internal_Templateparser::TP_ISIN; - } - + } function yy_r3_10() { $this->token = Smarty_Internal_Templateparser::TP_AS; - } - + } function yy_r3_11() { $this->token = Smarty_Internal_Templateparser::TP_TO; - } - + } function yy_r3_12() { $this->token = Smarty_Internal_Templateparser::TP_STEP; - } - + } function yy_r3_13() { $this->token = Smarty_Internal_Templateparser::TP_INSTANCEOF; - } - + } function yy_r3_14() { $this->token = Smarty_Internal_Templateparser::TP_LOGOP; - } - + } function yy_r3_19() { $this->token = Smarty_Internal_Templateparser::TP_SLOGOP; - } - + } function yy_r3_21() { $this->token = Smarty_Internal_Templateparser::TP_TLOGOP; - } - + } function yy_r3_25() { $this->token = Smarty_Internal_Templateparser::TP_SINGLECOND; - } - + } function yy_r3_28() { $this->token = Smarty_Internal_Templateparser::TP_NOT; - } - + } function yy_r3_31() { $this->token = Smarty_Internal_Templateparser::TP_TYPECAST; - } - + } function yy_r3_35() { $this->token = Smarty_Internal_Templateparser::TP_OPENP; - } - + } function yy_r3_36() { $this->token = Smarty_Internal_Templateparser::TP_CLOSEP; - } - + } function yy_r3_37() { $this->token = Smarty_Internal_Templateparser::TP_OPENB; - } - + } function yy_r3_38() { $this->token = Smarty_Internal_Templateparser::TP_CLOSEB; - } - + } function yy_r3_39() { $this->token = Smarty_Internal_Templateparser::TP_PTR; - } - + } function yy_r3_40() { $this->token = Smarty_Internal_Templateparser::TP_APTR; - } - + } function yy_r3_41() { $this->token = Smarty_Internal_Templateparser::TP_EQUAL; - } - + } function yy_r3_42() { $this->token = Smarty_Internal_Templateparser::TP_INCDEC; - } - + } function yy_r3_44() { $this->token = Smarty_Internal_Templateparser::TP_UNIMATH; - } - + } function yy_r3_46() { $this->token = Smarty_Internal_Templateparser::TP_MATH; - } - + } function yy_r3_48() { $this->token = Smarty_Internal_Templateparser::TP_AT; - } - + } function yy_r3_49() { $this->token = Smarty_Internal_Templateparser::TP_HATCH; - } - + } function yy_r3_50() { // 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); + if (substr($this->data, $this->counter + strlen($this->value) - 1, $this->rdel_length) == $this->smarty->right_delimiter) { + preg_match("/\s+/",$this->value,$match); $this->value = $match[0]; $this->token = Smarty_Internal_Templateparser::TP_SPACE; } else { $this->token = Smarty_Internal_Templateparser::TP_ATTR; } - } - + } function yy_r3_51() { $this->token = Smarty_Internal_Templateparser::TP_NAMESPACE; - } - + } function yy_r3_54() { $this->token = Smarty_Internal_Templateparser::TP_ID; - } - + } function yy_r3_55() { $this->token = Smarty_Internal_Templateparser::TP_INTEGER; - } - + } function yy_r3_56() { $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; $this->yypopstate(); - } - + } function yy_r3_57() { $this->token = Smarty_Internal_Templateparser::TP_VERT; - } - + } function yy_r3_58() { $this->token = Smarty_Internal_Templateparser::TP_DOT; - } - + } function yy_r3_59() { $this->token = Smarty_Internal_Templateparser::TP_COMMA; - } - + } function yy_r3_60() { $this->token = Smarty_Internal_Templateparser::TP_SEMICOLON; - } - + } function yy_r3_61() { $this->token = Smarty_Internal_Templateparser::TP_DOUBLECOLON; - } - + } function yy_r3_62() { $this->token = Smarty_Internal_Templateparser::TP_COLON; - } - + } function yy_r3_63() { $this->token = Smarty_Internal_Templateparser::TP_QMARK; - } - + } function yy_r3_64() { $this->token = Smarty_Internal_Templateparser::TP_HEX; - } - + } function yy_r3_65() { $this->token = Smarty_Internal_Templateparser::TP_SPACE; - } // end function - + } function yy_r3_66() { $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } + } -public function yylex4() + + + public function yylex4() { if (!isset($this->yy_global_pattern4)) { - $this->yy_global_pattern4 = - $this->replace("/\G(SMARTYldelliteral\\s*SMARTYrdel)|\G(SMARTYldel[\/]literal\\s*SMARTYrdel)|\G([\S\s])/isS"); + $this->yy_global_pattern4 = $this->replace("/\G(SMARTYldelliteral\\s*SMARTYrdel)|\G(SMARTYldel[\/]literal\\s*SMARTYrdel)|\G((.*?)(?=SMARTYldel[\/]?literalSMARTYrdel))|\G(.*)/isS"); } if (!isset($this->dataLength)) { $this->dataLength = strlen($this->data); } - if ($this->counter >= $this->dataLength) { + if ($this->counter >= $this->dataLength) { return false; // end of input } - + do { - if (preg_match($this->yy_global_pattern4, $this->data, $yymatches, 0, $this->counter)) { - if (!isset($yymatches[0][1])) { - $yymatches = preg_grep("/(.|\s)+/", $yymatches); + if (preg_match($this->yy_global_pattern4,$this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][1])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); } else { $yymatches = array_filter($yymatches); } if (empty($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . ' an empty string. Input "' . - substr($this->data, - $this->counter, - 5) . '... state LITERAL'); + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr($this->data, + $this->counter, 5) . '... state LITERAL'); } next($yymatches); // skip global match $this->token = key($yymatches); // token number @@ -935,89 +945,81 @@ public function yylex4() $this->line += substr_count($this->value, "\n"); // accept this token return true; - } else if ($r === true) { + } elseif ($r === true) { // we have changed state // process this token in the new state return $this->yylex(); - } else if ($r === false) { + } elseif ($r === false) { $this->counter += strlen($this->value); $this->line += substr_count($this->value, "\n"); - if ($this->counter >= $this->dataLength) { + if ($this->counter >= $this->dataLength) { return false; // end of input } // skip this token continue; - } - } else { - throw new Exception('Unexpected input at line' . $this->line . ': ' . $this->data[ $this->counter ]); + } } else { + throw new Exception('Unexpected input at line' . $this->line . + ': ' . $this->data[$this->counter]); } break; } while (true); - } + } // end function + + const LITERAL = 4; function yy_r4_1() { $this->literal_cnt++; $this->token = Smarty_Internal_Templateparser::TP_LITERAL; - } - + } function yy_r4_2() { if ($this->literal_cnt) { - $this->literal_cnt--; + $this->literal_cnt--; $this->token = Smarty_Internal_Templateparser::TP_LITERAL; } else { $this->token = Smarty_Internal_Templateparser::TP_LITERALEND; $this->yypopstate(); } - } - + } function yy_r4_3() { - $to = $this->dataLength; - 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 { - $this->compiler->trigger_template_error("missing or misspelled literal closing tag"); - } - $this->value = substr($this->data, $this->counter, $to - $this->counter); $this->token = Smarty_Internal_Templateparser::TP_LITERAL; - } // end function + } + function yy_r4_5() + { -public function yylex5() + $this->token = Smarty_Internal_Templateparser::TP_LITERAL; + } + + + public function yylex5() { if (!isset($this->yy_global_pattern5)) { - $this->yy_global_pattern5 = - $this->replace("/\G(SMARTYrawldel{2,})|\G(SMARTYldelliteral\\s*SMARTYrdel)|\G(SMARTYldel[\/]literal\\s*SMARTYrdel)|\G(SMARTYldel[\/])|\G(SMARTYldel[0-9]*[a-zA-Z_]\\w*)|\G(SMARTYldel)|\G([\"])|\G([`][$])|\G([$][0-9]*[a-zA-Z_]\\w*)|\G([$])|\G(([^\"\\\\]*?)((?:\\\\.[^\"\\\\]*?)*?)(?=(SMARTYldel|\\$|`\\$|\")))|\G([\S\s])/isS"); + $this->yy_global_pattern5 = $this->replace("/\G(SMARTYliteral)|\G(SMARTYldelliteral\\s*SMARTYrdel)|\G(SMARTYldel[\/]literal\\s*SMARTYrdel)|\G(SMARTYldel[\/])|\G(SMARTYldel[0-9]*[a-zA-Z_]\\w*)|\G(SMARTYldel)|\G([\"])|\G([`][$])|\G([$][0-9]*[a-zA-Z_]\\w*)|\G([$])|\G(([^\"\\\\]*?)((?:\\\\.[^\"\\\\]*?)*?)(?=(SMARTYliteral|SMARTYldel|\\$|`\\$|\")))/isS"); } if (!isset($this->dataLength)) { $this->dataLength = strlen($this->data); } - if ($this->counter >= $this->dataLength) { + if ($this->counter >= $this->dataLength) { return false; // end of input } - + do { - if (preg_match($this->yy_global_pattern5, $this->data, $yymatches, 0, $this->counter)) { - if (!isset($yymatches[0][1])) { - $yymatches = preg_grep("/(.|\s)+/", $yymatches); + if (preg_match($this->yy_global_pattern5,$this->data, $yymatches, 0, $this->counter)) { + if (!isset($yymatches[ 0 ][1])) { + $yymatches = preg_grep("/(.|\s)+/", $yymatches); } else { $yymatches = array_filter($yymatches); } if (empty($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . ' an empty string. Input "' . - substr($this->data, - $this->counter, - 5) . '... state DOUBLEQUOTEDSTRING'); + throw new Exception('Error: lexing failed because a rule matched' . + ' an empty string. Input "' . substr($this->data, + $this->counter, 5) . '... state DOUBLEQUOTEDSTRING'); } next($yymatches); // skip global match $this->token = key($yymatches); // token number @@ -1028,109 +1030,93 @@ public function yylex5() $this->line += substr_count($this->value, "\n"); // accept this token return true; - } else if ($r === true) { + } elseif ($r === true) { // we have changed state // process this token in the new state return $this->yylex(); - } else if ($r === false) { + } elseif ($r === false) { $this->counter += strlen($this->value); $this->line += substr_count($this->value, "\n"); - if ($this->counter >= $this->dataLength) { + if ($this->counter >= $this->dataLength) { return false; // end of input } // skip this token continue; - } - } else { - throw new Exception('Unexpected input at line' . $this->line . ': ' . $this->data[ $this->counter ]); + } } else { + throw new Exception('Unexpected input at line' . $this->line . + ': ' . $this->data[$this->counter]); } break; } while (true); - } + } // end function + + const DOUBLEQUOTEDSTRING = 5; function yy_r5_1() { $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - + } function yy_r5_2() { $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - + } function yy_r5_3() { $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - + } function yy_r5_4() { $this->yypushstate(self::TAG); return true; - } - + } function yy_r5_5() { $this->yypushstate(self::TAG); return true; - } - + } function yy_r5_6() { $this->token = Smarty_Internal_Templateparser::TP_LDEL; $this->taglineno = $this->line; $this->yypushstate(self::TAGBODY); - } - + } function yy_r5_7() { $this->token = Smarty_Internal_Templateparser::TP_QUOTE; $this->yypopstate(); - } - + } function yy_r5_8() { $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; - $this->value = substr($this->value, 0, -1); + $this->value = substr($this->value,0,-1); $this->yypushstate(self::TAGBODY); $this->taglineno = $this->line; - } - + } function yy_r5_9() { $this->token = Smarty_Internal_Templateparser::TP_DOLLARID; - } - + } function yy_r5_10() { $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - + } function yy_r5_11() { $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } + } - function yy_r5_15() - { - - $to = $this->dataLength; - $this->value = substr($this->data, $this->counter, $to - $this->counter); - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - -} + } \ No newline at end of file diff --git a/libs/sysplugins/smarty_internal_templateparser.php b/libs/sysplugins/smarty_internal_templateparser.php index 21ea8568..45aa3e97 100644 --- a/libs/sysplugins/smarty_internal_templateparser.php +++ b/libs/sysplugins/smarty_internal_templateparser.php @@ -39,7 +39,8 @@ class TP_yyToken implements ArrayAccess { if ($offset === null) { if (isset($value[0])) { - $x = ($value instanceof TP_yyToken) ? $value->metadata : $value; + $x = ($value instanceof TP_yyToken) ? + $value->metadata : $value; $this->metadata = array_merge($this->metadata, $x); return; @@ -75,7 +76,6 @@ class TP_yyStackEntry ; - #line 11 "../smarty/lexer/smarty_internal_templateparser.y" /** @@ -90,9 +90,9 @@ class Smarty_Internal_Templateparser { #line 23 "../smarty/lexer/smarty_internal_templateparser.y" - const Err1 = "Security error: Call to private object member not allowed"; - const Err2 = "Security error: Call to dynamic object member not allowed"; - const Err3 = "PHP in template not allowed. Use SmartyBC to enable it"; + const Err1 = 'Security error: Call to private object member not allowed'; + const Err2 = 'Security error: Call to dynamic object member not allowed'; + const Err3 = 'PHP in template not allowed. Use SmartyBC to enable it'; const TP_VERT = 1; const TP_COLON = 2; const TP_UNIMATH = 3; @@ -153,693 +153,1452 @@ class Smarty_Internal_Templateparser const TP_SINGLECOND = 58; const TP_QUOTE = 59; const TP_BACKTICK = 60; - const YY_NO_ACTION = 532; - const YY_ACCEPT_ACTION = 531; - const YY_ERROR_ACTION = 530; - const YY_SZ_ACTTAB = 2144; - const YY_SHIFT_USE_DFLT = -23; - const YY_SHIFT_MAX = 238; - const YY_REDUCE_USE_DFLT = -94; - const YY_REDUCE_MAX = 192; - const YYNOCODE = 107; - const YYSTACKDEPTH = 500; - const YYNSTATE = 335; - const YYNRULE = 195; - const YYERRORSYMBOL = 61; - const YYERRSYMDT = 'yy0'; - const YYFALLBACK = 0; - static public $yy_action = array(42, 246, 20, 355, 290, 101, 18, 256, 19, 272, 8, 131, 279, 275, 80, 246, 230, 6, - 84, 11, 256, 19, 446, 116, 78, 279, 14, 225, 299, 257, 232, 326, 235, 446, 26, - 114, 459, 204, 78, 40, 43, 314, 234, 459, 310, 224, 212, 329, 82, 1, 42, 291, - 233, 209, 228, 125, 79, 113, 222, 272, 8, 132, 99, 275, 196, 145, 230, 6, 84, - 94, 320, 210, 323, 116, 289, 277, 214, 225, 270, 257, 232, 106, 205, 149, 26, - 278, 177, 267, 269, 40, 43, 314, 234, 190, 220, 237, 212, 137, 82, 1, 316, 291, - 42, 324, 9, 214, 79, 216, 202, 27, 106, 272, 8, 134, 293, 275, 208, 446, 230, 6, - 84, 287, 259, 260, 238, 116, 246, 233, 446, 225, 11, 257, 232, 204, 235, 39, 26, - 14, 11, 23, 101, 40, 43, 314, 234, 14, 310, 239, 212, 78, 82, 1, 42, 291, 256, - 19, 21, 197, 79, 279, 252, 272, 8, 136, 189, 275, 208, 137, 230, 6, 84, 44, 37, - 204, 9, 116, 29, 231, 245, 225, 141, 257, 232, 402, 235, 333, 12, 322, 308, 307, - 285, 40, 43, 314, 234, 204, 310, 291, 212, 402, 82, 1, 42, 291, 204, 402, 402, - 31, 79, 101, 101, 272, 8, 134, 399, 275, 208, 291, 230, 6, 84, 402, 154, 204, - 254, 116, 185, 298, 402, 225, 399, 257, 232, 204, 194, 39, 26, 399, 204, 114, - 114, 40, 43, 314, 234, 36, 310, 313, 212, 11, 82, 1, 42, 291, 204, 213, 14, 140, - 79, 120, 174, 272, 8, 134, 99, 275, 195, 147, 230, 6, 84, 44, 37, 475, 475, 116, - 289, 277, 475, 225, 92, 257, 232, 204, 211, 39, 26, 322, 308, 307, 285, 40, 43, - 314, 234, 189, 310, 291, 212, 2, 82, 1, 42, 291, 118, 250, 331, 175, 79, 120, - 109, 272, 8, 134, 99, 275, 193, 277, 230, 6, 84, 44, 37, 249, 246, 116, 289, 17, - 7, 225, 278, 257, 232, 204, 235, 39, 26, 322, 308, 307, 285, 40, 43, 314, 234, - 447, 310, 78, 212, 105, 82, 1, 42, 291, 182, 101, 447, 237, 79, 475, 475, 272, - 8, 135, 475, 275, 208, 296, 230, 6, 84, 44, 37, 204, 36, 116, 292, 136, 190, - 225, 221, 257, 232, 357, 235, 39, 26, 322, 308, 307, 285, 40, 43, 314, 234, 144, - 310, 475, 212, 11, 82, 1, 42, 291, 93, 277, 14, 36, 79, 311, 246, 272, 8, 134, - 82, 275, 199, 291, 230, 6, 84, 44, 37, 189, 244, 116, 184, 298, 5, 225, 242, - 257, 232, 78, 235, 181, 26, 322, 308, 307, 285, 40, 43, 314, 234, 297, 310, 306, - 212, 304, 82, 1, 42, 291, 233, 204, 446, 223, 79, 190, 280, 272, 8, 133, 218, - 275, 208, 446, 230, 6, 84, 214, 321, 217, 183, 116, 106, 227, 459, 225, 161, - 257, 232, 24, 235, 459, 4, 163, 85, 302, 277, 40, 43, 314, 234, 142, 310, 277, - 212, 91, 82, 1, 42, 291, 204, 277, 258, 243, 79, 268, 278, 272, 8, 136, 367, - 275, 208, 158, 230, 6, 84, 236, 106, 190, 15, 116, 186, 298, 304, 225, 11, 257, - 232, 233, 235, 35, 12, 14, 90, 139, 446, 40, 43, 314, 234, 179, 310, 291, 212, - 178, 82, 446, 95, 291, 41, 16, 327, 329, 79, 3, 165, 143, 233, 209, 204, 117, - 70, 113, 312, 190, 277, 277, 99, 190, 361, 240, 286, 166, 33, 291, 320, 210, - 323, 278, 289, 14, 157, 277, 180, 261, 263, 264, 265, 177, 203, 294, 277, 272, - 8, 172, 278, 275, 325, 148, 230, 6, 84, 475, 475, 127, 187, 116, 475, 459, 329, - 225, 146, 257, 232, 233, 209, 330, 117, 70, 113, 152, 277, 278, 127, 99, 204, - 38, 240, 286, 190, 176, 119, 320, 210, 323, 459, 289, 247, 459, 171, 475, 274, - 459, 329, 188, 317, 319, 284, 233, 209, 282, 122, 63, 103, 3, 217, 219, 248, 99, - 25, 20, 240, 286, 167, 256, 19, 320, 210, 323, 279, 289, 30, 329, 276, 110, 271, - 318, 233, 209, 11, 122, 67, 113, 256, 19, 83, 14, 99, 279, 237, 240, 286, 262, - 315, 288, 320, 210, 323, 11, 289, 160, 162, 329, 280, 273, 14, 206, 233, 209, - 168, 122, 67, 113, 254, 159, 38, 86, 99, 278, 169, 240, 286, 138, 303, 104, 320, - 210, 323, 88, 289, 272, 10, 305, 111, 275, 87, 201, 230, 6, 84, 266, 89, 303, - 303, 116, 303, 303, 329, 225, 303, 257, 232, 233, 209, 303, 122, 67, 113, 303, - 303, 303, 303, 99, 303, 303, 240, 286, 303, 303, 303, 320, 210, 323, 303, 289, - 303, 303, 300, 13, 303, 303, 207, 303, 272, 10, 305, 303, 275, 303, 303, 230, 6, - 84, 303, 303, 303, 303, 116, 303, 303, 329, 225, 303, 257, 232, 233, 209, 303, - 122, 47, 103, 303, 112, 303, 303, 99, 303, 303, 240, 286, 303, 303, 303, 320, - 210, 323, 303, 289, 329, 303, 301, 13, 303, 233, 209, 303, 108, 50, 113, 303, - 303, 303, 303, 99, 150, 303, 240, 286, 179, 303, 303, 320, 210, 323, 277, 289, - 329, 41, 16, 327, 303, 233, 209, 303, 122, 54, 113, 303, 303, 303, 303, 99, 190, - 303, 240, 286, 303, 303, 155, 320, 210, 323, 182, 289, 329, 303, 303, 303, 277, - 233, 209, 303, 122, 77, 113, 303, 303, 303, 303, 99, 156, 303, 240, 286, 179, - 303, 190, 320, 210, 323, 277, 289, 329, 41, 16, 327, 303, 233, 209, 303, 122, - 74, 113, 303, 303, 303, 303, 99, 190, 303, 240, 286, 303, 303, 303, 320, 210, - 323, 303, 289, 329, 303, 303, 303, 303, 233, 209, 303, 122, 49, 113, 303, 303, - 303, 303, 99, 170, 303, 240, 286, 179, 303, 303, 320, 210, 323, 277, 289, 329, - 41, 16, 327, 303, 233, 209, 303, 96, 53, 113, 303, 303, 303, 303, 99, 190, 303, - 240, 286, 303, 303, 303, 320, 210, 323, 303, 289, 329, 303, 303, 303, 303, 233, - 209, 303, 122, 60, 113, 303, 303, 303, 303, 99, 151, 303, 240, 286, 179, 303, - 303, 320, 210, 323, 277, 289, 329, 41, 16, 327, 303, 233, 209, 303, 122, 71, - 113, 303, 303, 303, 303, 99, 190, 303, 240, 286, 303, 303, 303, 320, 210, 323, - 303, 289, 329, 303, 303, 303, 303, 233, 198, 303, 115, 61, 113, 303, 303, 303, - 303, 99, 153, 303, 240, 286, 179, 303, 303, 320, 210, 323, 277, 289, 329, 41, - 16, 327, 303, 233, 97, 303, 81, 45, 107, 303, 303, 303, 303, 99, 190, 303, 240, - 286, 303, 303, 303, 320, 210, 323, 303, 289, 329, 303, 303, 303, 303, 233, 209, - 303, 122, 62, 113, 303, 303, 303, 303, 99, 164, 303, 240, 286, 179, 303, 303, - 320, 210, 323, 277, 289, 329, 41, 16, 327, 303, 233, 209, 303, 100, 69, 113, - 303, 303, 303, 303, 99, 190, 303, 240, 286, 303, 303, 303, 320, 210, 323, 303, - 289, 329, 303, 303, 303, 303, 233, 200, 303, 122, 58, 113, 303, 303, 303, 303, - 99, 303, 303, 240, 286, 303, 303, 303, 320, 210, 323, 303, 289, 329, 303, 303, - 303, 303, 233, 209, 303, 102, 68, 113, 303, 303, 303, 303, 99, 303, 303, 240, - 286, 303, 303, 303, 320, 210, 323, 303, 289, 329, 303, 303, 303, 303, 233, 209, - 303, 122, 55, 113, 303, 303, 303, 303, 99, 303, 303, 240, 286, 303, 303, 303, - 320, 210, 323, 303, 289, 329, 303, 303, 303, 303, 233, 209, 303, 122, 65, 113, - 303, 303, 303, 303, 99, 303, 303, 240, 286, 303, 303, 303, 320, 210, 323, 303, - 289, 329, 303, 303, 303, 303, 233, 209, 303, 122, 66, 113, 303, 303, 303, 303, - 99, 303, 303, 240, 286, 303, 303, 303, 320, 210, 323, 303, 289, 329, 303, 303, - 303, 303, 233, 209, 303, 122, 59, 113, 303, 303, 303, 303, 99, 303, 303, 240, - 286, 303, 303, 303, 320, 210, 323, 303, 289, 329, 303, 303, 303, 303, 233, 209, - 303, 122, 56, 113, 303, 303, 303, 303, 99, 303, 303, 240, 286, 303, 303, 303, - 320, 210, 323, 303, 289, 329, 303, 303, 303, 303, 233, 209, 303, 122, 75, 113, - 303, 303, 303, 303, 99, 303, 303, 240, 286, 303, 303, 303, 320, 210, 323, 303, - 289, 329, 303, 303, 303, 303, 233, 209, 303, 122, 51, 113, 303, 303, 303, 303, - 99, 303, 303, 240, 286, 303, 303, 303, 320, 210, 323, 303, 289, 329, 303, 303, - 303, 303, 233, 209, 303, 122, 72, 113, 303, 303, 303, 303, 99, 303, 303, 240, - 286, 303, 303, 303, 320, 210, 323, 303, 289, 329, 303, 303, 303, 303, 233, 209, - 303, 122, 63, 113, 303, 303, 303, 303, 99, 303, 303, 240, 286, 303, 303, 303, - 320, 210, 323, 303, 289, 329, 303, 303, 303, 303, 233, 209, 303, 122, 64, 113, - 303, 303, 303, 303, 99, 303, 303, 240, 286, 303, 303, 303, 320, 210, 323, 303, - 289, 329, 303, 303, 303, 303, 233, 209, 303, 122, 46, 113, 303, 303, 303, 303, - 99, 303, 303, 240, 286, 303, 303, 303, 320, 210, 323, 303, 289, 329, 303, 303, - 303, 303, 233, 98, 303, 81, 48, 107, 303, 303, 303, 303, 99, 303, 303, 240, 286, - 303, 303, 303, 320, 210, 323, 303, 289, 329, 303, 303, 303, 303, 233, 209, 303, - 122, 73, 113, 303, 303, 303, 303, 99, 303, 303, 240, 286, 303, 303, 303, 320, - 210, 323, 303, 289, 329, 303, 303, 303, 303, 233, 209, 303, 122, 57, 113, 303, - 303, 303, 303, 99, 303, 303, 240, 286, 303, 303, 303, 320, 210, 323, 303, 289, - 329, 303, 204, 303, 39, 233, 209, 303, 122, 76, 113, 136, 303, 303, 251, 99, - 303, 303, 240, 286, 303, 303, 303, 320, 210, 323, 28, 289, 11, 412, 412, 412, - 303, 303, 303, 14, 303, 329, 303, 303, 44, 37, 233, 209, 303, 124, 253, 113, 82, - 303, 303, 291, 99, 303, 303, 303, 322, 308, 307, 285, 320, 210, 323, 303, 289, - 446, 303, 412, 412, 303, 303, 303, 329, 303, 303, 303, 446, 233, 209, 204, 123, - 39, 113, 412, 412, 412, 412, 99, 303, 295, 303, 328, 303, 256, 19, 320, 210, - 323, 279, 289, 303, 329, 303, 303, 303, 11, 233, 209, 11, 130, 173, 113, 14, - 303, 303, 14, 99, 44, 37, 303, 281, 303, 303, 303, 320, 210, 323, 226, 289, 204, - 303, 39, 303, 322, 308, 307, 285, 475, 475, 303, 18, 303, 475, 459, 531, 52, - 334, 259, 260, 238, 303, 303, 233, 303, 303, 11, 303, 303, 303, 303, 303, 303, - 14, 303, 303, 303, 303, 44, 37, 303, 459, 303, 303, 459, 303, 475, 303, 459, - 303, 303, 303, 303, 329, 322, 308, 307, 285, 233, 209, 303, 121, 303, 113, 303, - 303, 303, 303, 99, 303, 303, 303, 303, 303, 303, 303, 320, 210, 323, 329, 289, - 226, 303, 303, 233, 209, 303, 128, 303, 113, 303, 475, 475, 303, 99, 303, 475, - 459, 303, 303, 303, 303, 320, 210, 323, 303, 289, 303, 303, 303, 329, 303, 303, - 303, 303, 233, 209, 303, 129, 303, 113, 303, 303, 303, 459, 99, 303, 459, 226, - 475, 303, 459, 332, 320, 210, 323, 303, 289, 475, 475, 303, 34, 329, 475, 459, - 303, 303, 233, 209, 204, 126, 39, 113, 204, 22, 39, 303, 99, 303, 191, 303, 204, - 303, 39, 303, 320, 210, 323, 303, 289, 303, 459, 303, 303, 459, 303, 475, 303, - 459, 303, 303, 303, 303, 303, 303, 303, 303, 44, 37, 303, 303, 44, 37, 204, 303, - 39, 303, 303, 229, 44, 37, 303, 303, 322, 308, 307, 285, 322, 308, 307, 285, - 406, 303, 303, 303, 322, 308, 307, 285, 204, 303, 39, 406, 303, 406, 303, 303, - 406, 303, 303, 309, 44, 37, 204, 406, 39, 406, 303, 406, 303, 303, 303, 303, - 283, 303, 237, 303, 322, 308, 307, 285, 303, 303, 303, 303, 303, 303, 44, 37, - 204, 303, 39, 303, 303, 303, 303, 303, 303, 303, 241, 303, 44, 37, 322, 308, - 307, 285, 303, 255, 303, 303, 303, 303, 303, 303, 303, 303, 322, 308, 307, 285, - 226, 303, 204, 303, 39, 303, 44, 37, 303, 303, 475, 475, 192, 303, 303, 475, - 459, 303, 32, 303, 303, 303, 322, 308, 307, 285, 303, 303, 475, 475, 303, 303, - 303, 475, 459, 303, 303, 303, 303, 303, 44, 37, 303, 459, 303, 303, 459, 303, - 475, 303, 459, 303, 303, 303, 303, 303, 322, 308, 307, 285, 303, 459, 303, 303, - 459, 303, 475, 303, 459, 400, 303, 303, 303, 215, 303, 303, 303, 303, 303, 303, - 303, 303, 303, 303, 303, 400, 303, 303, 303, 303, 303, 303, 400, 303, 303, 446, - 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 446,); - static public $yy_lookahead = array(3, 23, 15, 11, 97, 18, 15, 12, 13, 12, 13, 14, 17, 16, 17, 23, 19, 20, 21, 27, - 12, 13, 37, 26, 46, 17, 34, 30, 31, 32, 33, 53, 35, 48, 37, 48, 45, 1, 46, 42, - 43, 44, 45, 52, 47, 50, 49, 65, 51, 52, 3, 54, 70, 71, 18, 73, 59, 75, 50, 12, - 13, 14, 80, 16, 17, 72, 19, 20, 21, 76, 88, 89, 90, 26, 92, 82, 75, 30, 77, 32, - 33, 80, 35, 93, 37, 95, 8, 9, 10, 42, 43, 44, 45, 100, 47, 45, 49, 45, 51, 52, - 53, 54, 3, 53, 52, 75, 59, 77, 78, 29, 80, 12, 13, 14, 11, 16, 17, 37, 19, 20, - 21, 64, 65, 66, 67, 26, 23, 70, 48, 30, 27, 32, 33, 1, 35, 3, 37, 34, 27, 15, - 18, 42, 43, 44, 45, 34, 47, 23, 49, 46, 51, 52, 3, 54, 12, 13, 13, 14, 59, 17, - 17, 12, 13, 14, 100, 16, 17, 45, 19, 20, 21, 39, 40, 1, 52, 26, 13, 14, 35, 30, - 17, 32, 33, 11, 35, 53, 37, 55, 56, 57, 58, 42, 43, 44, 45, 1, 47, 54, 49, 27, - 51, 52, 3, 54, 1, 11, 34, 15, 59, 18, 18, 12, 13, 14, 11, 16, 17, 54, 19, 20, - 21, 27, 28, 1, 94, 26, 96, 97, 34, 30, 27, 32, 33, 1, 35, 3, 37, 34, 1, 48, 48, - 42, 43, 44, 45, 36, 47, 38, 49, 27, 51, 52, 3, 54, 1, 71, 34, 14, 59, 75, 28, - 12, 13, 14, 80, 16, 17, 72, 19, 20, 21, 39, 40, 12, 13, 26, 92, 82, 17, 30, 37, - 32, 33, 1, 35, 3, 37, 55, 56, 57, 58, 42, 43, 44, 45, 100, 47, 54, 49, 37, 51, - 52, 3, 54, 22, 71, 53, 72, 59, 75, 48, 12, 13, 14, 80, 16, 17, 82, 19, 20, 21, - 39, 40, 89, 23, 26, 92, 15, 37, 30, 95, 32, 33, 1, 35, 3, 37, 55, 56, 57, 58, - 42, 43, 44, 45, 37, 47, 46, 49, 80, 51, 52, 3, 54, 76, 18, 48, 45, 59, 12, 13, - 12, 13, 14, 17, 16, 17, 98, 19, 20, 21, 39, 40, 1, 36, 26, 38, 14, 100, 30, 17, - 32, 33, 11, 35, 3, 37, 55, 56, 57, 58, 42, 43, 44, 45, 72, 47, 50, 49, 27, 51, - 52, 3, 54, 93, 82, 34, 36, 59, 38, 23, 12, 13, 14, 51, 16, 17, 54, 19, 20, 21, - 39, 40, 100, 17, 26, 96, 97, 36, 30, 17, 32, 33, 46, 35, 76, 37, 55, 56, 57, 58, - 42, 43, 44, 45, 53, 47, 60, 49, 65, 51, 52, 3, 54, 70, 1, 37, 50, 59, 100, 101, - 12, 13, 14, 45, 16, 17, 48, 19, 20, 21, 75, 53, 77, 14, 26, 80, 17, 45, 30, 72, - 32, 33, 29, 35, 52, 37, 72, 104, 105, 82, 42, 43, 44, 45, 72, 47, 82, 49, 76, - 51, 52, 3, 54, 1, 82, 66, 14, 59, 69, 95, 12, 13, 14, 11, 16, 17, 75, 19, 20, - 21, 18, 80, 100, 22, 26, 96, 97, 65, 30, 27, 32, 33, 70, 35, 13, 37, 34, 36, 14, - 37, 42, 43, 44, 45, 76, 47, 54, 49, 76, 51, 48, 81, 54, 85, 86, 87, 65, 59, 37, - 72, 72, 70, 71, 1, 73, 74, 75, 105, 100, 82, 82, 80, 100, 11, 83, 84, 72, 27, - 54, 88, 89, 90, 95, 92, 34, 72, 82, 81, 4, 5, 6, 7, 8, 102, 103, 82, 12, 13, 93, - 95, 16, 91, 93, 19, 20, 21, 12, 13, 98, 76, 26, 17, 18, 65, 30, 72, 32, 33, 70, - 71, 91, 73, 74, 75, 93, 82, 95, 98, 80, 1, 2, 83, 84, 100, 81, 17, 88, 89, 90, - 45, 92, 17, 48, 51, 50, 38, 52, 65, 17, 53, 53, 103, 70, 71, 17, 73, 74, 75, 37, - 77, 17, 17, 80, 24, 15, 83, 84, 51, 12, 13, 88, 89, 90, 17, 92, 41, 65, 14, 17, - 11, 35, 70, 71, 27, 73, 74, 75, 12, 13, 17, 34, 80, 17, 45, 83, 84, 5, 35, 17, - 88, 89, 90, 27, 92, 29, 93, 65, 101, 82, 34, 99, 70, 71, 93, 73, 74, 75, 94, 93, - 2, 80, 80, 95, 93, 83, 84, 80, 5, 68, 88, 89, 90, 80, 92, 12, 13, 14, 79, 16, - 80, 99, 19, 20, 21, 9, 80, 106, 106, 26, 106, 106, 65, 30, 106, 32, 33, 70, 71, - 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, - 89, 90, 106, 92, 106, 5, 59, 60, 106, 106, 99, 106, 12, 13, 14, 106, 16, 106, - 106, 19, 20, 21, 106, 106, 106, 106, 26, 106, 106, 65, 30, 106, 32, 33, 70, 71, - 106, 73, 74, 75, 106, 77, 106, 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, - 90, 106, 92, 65, 106, 59, 60, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, - 80, 72, 106, 83, 84, 76, 106, 106, 88, 89, 90, 82, 92, 65, 85, 86, 87, 106, 70, - 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 100, 106, 83, 84, 106, 106, 72, 88, - 89, 90, 76, 92, 65, 106, 106, 106, 82, 70, 71, 106, 73, 74, 75, 106, 106, 106, - 106, 80, 72, 106, 83, 84, 76, 106, 100, 88, 89, 90, 82, 92, 65, 85, 86, 87, 106, - 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 100, 106, 83, 84, 106, 106, - 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, - 106, 106, 106, 80, 72, 106, 83, 84, 76, 106, 106, 88, 89, 90, 82, 92, 65, 85, - 86, 87, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 100, 106, 83, 84, - 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, - 75, 106, 106, 106, 106, 80, 72, 106, 83, 84, 76, 106, 106, 88, 89, 90, 82, 92, - 65, 85, 86, 87, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 100, 106, - 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, - 73, 74, 75, 106, 106, 106, 106, 80, 72, 106, 83, 84, 76, 106, 106, 88, 89, 90, - 82, 92, 65, 85, 86, 87, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, - 100, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, - 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 72, 106, 83, 84, 76, 106, 106, - 88, 89, 90, 82, 92, 65, 85, 86, 87, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, - 106, 80, 100, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, - 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, - 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, - 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, - 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, - 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, - 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, - 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, - 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, - 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, - 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, - 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, - 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, - 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, - 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, 106, - 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, - 106, 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, - 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, - 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, - 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, - 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, - 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, - 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, - 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, - 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, - 92, 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, - 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, 1, 106, 3, 70, - 71, 106, 73, 74, 75, 14, 106, 106, 17, 80, 106, 106, 83, 84, 106, 106, 106, 88, - 89, 90, 25, 92, 27, 1, 2, 3, 106, 106, 106, 34, 106, 65, 106, 106, 39, 40, 70, - 71, 106, 73, 49, 75, 51, 106, 106, 54, 80, 106, 106, 106, 55, 56, 57, 58, 88, - 89, 90, 106, 92, 37, 106, 39, 40, 106, 106, 106, 65, 106, 106, 106, 48, 70, 71, - 1, 73, 3, 75, 55, 56, 57, 58, 80, 106, 11, 106, 84, 106, 12, 13, 88, 89, 90, 17, - 92, 106, 65, 106, 106, 106, 27, 70, 71, 27, 73, 29, 75, 34, 106, 106, 34, 80, - 39, 40, 106, 84, 106, 106, 106, 88, 89, 90, 2, 92, 1, 106, 3, 106, 55, 56, 57, - 58, 12, 13, 106, 15, 106, 17, 18, 62, 63, 64, 65, 66, 67, 106, 106, 70, 106, - 106, 27, 106, 106, 106, 106, 106, 106, 34, 106, 106, 106, 106, 39, 40, 106, 45, - 106, 106, 48, 106, 50, 106, 52, 106, 106, 106, 106, 65, 55, 56, 57, 58, 70, 71, - 106, 73, 106, 75, 106, 106, 106, 106, 80, 106, 106, 106, 106, 106, 106, 106, 88, - 89, 90, 65, 92, 2, 106, 106, 70, 71, 106, 73, 106, 75, 106, 12, 13, 106, 80, - 106, 17, 18, 106, 106, 106, 106, 88, 89, 90, 106, 92, 106, 106, 106, 65, 106, - 106, 106, 106, 70, 71, 106, 73, 106, 75, 106, 106, 106, 45, 80, 106, 48, 2, 50, - 106, 52, 53, 88, 89, 90, 106, 92, 12, 13, 106, 15, 65, 17, 18, 106, 106, 70, 71, - 1, 73, 3, 75, 1, 2, 3, 106, 80, 106, 11, 106, 1, 106, 3, 106, 88, 89, 90, 106, - 92, 106, 45, 106, 106, 48, 106, 50, 106, 52, 106, 106, 106, 106, 106, 106, 106, - 106, 39, 40, 106, 106, 39, 40, 1, 106, 3, 106, 106, 38, 39, 40, 106, 106, 55, - 56, 57, 58, 55, 56, 57, 58, 11, 106, 106, 106, 55, 56, 57, 58, 1, 106, 3, 22, - 106, 24, 106, 106, 27, 106, 106, 38, 39, 40, 1, 34, 3, 36, 106, 38, 106, 106, - 106, 106, 11, 106, 45, 106, 55, 56, 57, 58, 106, 106, 106, 106, 106, 106, 39, - 40, 1, 106, 3, 106, 106, 106, 106, 106, 106, 106, 11, 106, 39, 40, 55, 56, 57, - 58, 106, 60, 106, 106, 106, 106, 106, 106, 106, 106, 55, 56, 57, 58, 2, 106, 1, - 106, 3, 106, 39, 40, 106, 106, 12, 13, 11, 106, 106, 17, 18, 106, 2, 106, 106, - 106, 55, 56, 57, 58, 106, 106, 12, 13, 106, 106, 106, 17, 18, 106, 106, 106, - 106, 106, 39, 40, 106, 45, 106, 106, 48, 106, 50, 106, 52, 106, 106, 106, 106, - 106, 55, 56, 57, 58, 106, 45, 106, 106, 48, 106, 50, 106, 52, 11, 106, 106, 106, - 15, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 27, 106, 106, 106, - 106, 106, 106, 34, 106, 106, 37, 106, 106, 106, 106, 106, 106, 106, 106, 106, - 106, 48,); - static public $yy_shift_ofst = array(585, 399, 99, 99, 449, 399, 449, 99, -3, 47, -3, 249, 99, 99, 99, 99, 99, 99, - 199, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 349, 99, 299, 249, 99, 99, 99, - 149, 149, 499, 499, 499, 499, 499, 499, 1695, 1618, 1745, 1745, 1745, 1745, - 1745, 585, 232, 2038, 282, 2004, 1978, 1964, 1938, 1898, 132, 1894, 1906, 332, - 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 382, 382, 1614, 723, - 503, 372, 363, 222, 243, 776, 1698, 676, 657, 657, 243, 222, 243, 122, 222, - 629, 194, 103, -8, 8, 172, 163, 203, -13, 78, 142, 142, 192, 563, 460, 36, 111, - 111, 191, 460, 253, 551, 454, 525, 237, 337, 237, 237, 237, 237, 237, 237, 337, - -23, -23, -23, 1872, 1825, 1742, 2035, 2053, 595, 143, -5, 261, -9, 522, 111, - 111, 111, 111, 111, 111, 52, 52, 111, 111, 52, 111, 493, 111, 111, 111, 124, - 52, 493, 111, 52, 111, 111, 111, 111, 433, 52, 52, 111, 433, 52, 493, 493, 111, - 718, 736, 237, 237, 718, 237, 237, 291, 337, 337, 337, 237, -23, -23, -23, -23, - -23, 1645, 1946, 2095, 419, 347, -22, 80, 387, 371, 502, 392, 407, 50, 338, - 209, -15, 301, 262, 312, 308, 617, 650, 645, 640, 608, 644, 598, 597, 593, 682, - 413, 625, 632, 638, 622, 619, 635, 664, 291, 662, 669, 646, 649, 673, 663, - 692,); - static public $yy_reduce_ofst = array(1699, 492, 687, 642, 583, 549, 740, 612, 1468, 992, 1020, 1076, 1244, 1104, - 1132, 1160, 1188, 1216, 964, 1272, 1412, 1524, 1552, 1496, 1300, 1440, 1384, - 1356, 1328, 1048, 936, 880, 824, 908, 768, 796, 852, 1624, 1653, 1791, -18, - 1734, 1760, 1589, 1823, 1001, 889, 1057, 1001, 945, 777, 833, 57, 469, 469, - 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, - 469, 469, 469, 469, 469, 469, 469, 469, 234, 384, 423, 811, 184, -7, 30, - 463, 505, 488, 415, 235, 1, 195, 396, 130, 323, 359, 278, 408, 408, -10, - 278, 269, 278, 330, 440, 532, -10, 330, 278, 530, 534, 544, 514, 330, 511, - 278, 489, 278, 442, 473, 330, 278, 278, 278, 278, 278, 278, 430, 278, 278, - 278, 621, 621, 621, 621, 621, 621, 647, 628, 621, 621, 626, 627, 627, 627, - 627, 627, 627, 624, 624, 627, 627, 624, 627, 641, 627, 627, 627, 659, 624, - 666, 627, 624, 627, 627, 627, 627, 613, 624, 624, 627, 631, 624, 653, 660, - 627, 607, 661, 64, 64, 607, 64, 64, 311, -93, -93, -93, 64, 471, 554, 507, - 506, 510,); - static public $yyExpectedTokens = array(array(4, 5, 6, 7, 8, 12, 13, 16, 19, 20, 21, 26, 30, 32, 33,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 31, 32, 33, 35, 37, 42, 43, - 44, 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 53, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 31, 32, 33, 35, 37, 42, 43, - 44, 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 52, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 54, 59,), - array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, - 45, 47, 49, 51, 54, 59,), - array(1, 3, 11, 27, 34, 39, 40, 55, 56, 57, 58,), - array(1, 3, 25, 27, 34, 39, 40, 55, 56, 57, 58,), - array(1, 3, 27, 34, 39, 40, 55, 56, 57, 58,), - array(1, 3, 27, 34, 39, 40, 55, 56, 57, 58,), - array(1, 3, 27, 34, 39, 40, 55, 56, 57, 58,), - array(1, 3, 27, 34, 39, 40, 55, 56, 57, 58,), - array(1, 3, 27, 34, 39, 40, 55, 56, 57, 58,), - array(4, 5, 6, 7, 8, 12, 13, 16, 19, 20, 21, 26, 30, 32, 33,), - array(1, 3, 28, 39, 40, 55, 56, 57, 58,), - array(1, 3, 11, 39, 40, 55, 56, 57, 58,), - array(1, 3, 22, 39, 40, 55, 56, 57, 58,), - array(1, 3, 11, 39, 40, 55, 56, 57, 58,), - array(1, 3, 11, 39, 40, 55, 56, 57, 58,), - array(1, 3, 39, 40, 55, 56, 57, 58, 60,), - array(1, 3, 38, 39, 40, 55, 56, 57, 58,), - array(1, 2, 3, 39, 40, 55, 56, 57, 58,), - array(1, 3, 39, 40, 53, 55, 56, 57, 58,), - array(1, 3, 11, 39, 40, 55, 56, 57, 58,), - array(1, 3, 38, 39, 40, 55, 56, 57, 58,), - array(1, 3, 39, 40, 55, 56, 57, 58,), array(1, 3, 39, 40, 55, 56, 57, 58,), - array(1, 3, 39, 40, 55, 56, 57, 58,), array(1, 3, 39, 40, 55, 56, 57, 58,), - array(1, 3, 39, 40, 55, 56, 57, 58,), array(1, 3, 39, 40, 55, 56, 57, 58,), - array(1, 3, 39, 40, 55, 56, 57, 58,), array(1, 3, 39, 40, 55, 56, 57, 58,), - array(1, 3, 39, 40, 55, 56, 57, 58,), array(1, 3, 39, 40, 55, 56, 57, 58,), - array(1, 3, 39, 40, 55, 56, 57, 58,), array(1, 3, 39, 40, 55, 56, 57, 58,), - array(3, 39, 40, 55, 56, 57, 58,), array(3, 39, 40, 55, 56, 57, 58,), - array(14, 17, 49, 51, 54,), - array(5, 12, 13, 14, 16, 19, 20, 21, 26, 30, 32, 33, 59, 60,), - array(1, 11, 18, 27, 34, 37, 48,), array(1, 11, 27, 34,), - array(14, 17, 51, 54,), array(1, 27, 34,), array(14, 37, 54,), - array(5, 12, 13, 14, 16, 19, 20, 21, 26, 30, 32, 33, 59, 60,), - array(12, 13, 17, 27, 29, 34,), array(12, 13, 17, 27, 29, 34,), - array(12, 13, 17, 27, 34,), array(12, 13, 17, 27, 34,), array(14, 37, 54,), - array(1, 27, 34,), array(14, 37, 54,), array(18, 45, 52,), - array(1, 27, 34,), array(1, 2,), array(1, 11, 27, 28, 34,), - array(11, 23, 27, 34, 46,), array(11, 23, 27, 34, 46,), - array(12, 13, 17, 50,), array(1, 11, 27, 34,), array(13, 14, 17, 54,), - array(1, 11, 27, 34,), array(15, 18, 48,), array(8, 9, 10,), - array(12, 13, 17,), array(12, 13, 17,), array(15, 18, 48,), array(1, 11,), - array(14, 17,), array(1, 18,), array(27, 34,), array(27, 34,), - array(18, 48,), array(14, 17,), array(1, 53,), array(27, 34,), - array(1, 29,), array(14, 54,), array(1,), array(18,), array(1,), array(1,), - array(1,), array(1,), array(1,), array(1,), array(18,), array(), array(), - array(), array(2, 12, 13, 15, 17, 18, 45, 48, 50, 52,), - array(2, 12, 13, 17, 18, 45, 48, 50, 52, 53,), - array(2, 12, 13, 15, 17, 18, 45, 48, 50, 52,), - array(2, 12, 13, 17, 18, 45, 48, 50, 52,), - array(2, 12, 13, 17, 18, 45, 48, 50, 52,), - array(12, 13, 17, 18, 45, 48, 50, 52,), array(13, 14, 17, 35, 54,), - array(12, 13, 17, 50,), array(12, 13, 17,), array(15, 45, 52,), - array(13, 37,), array(27, 34,), array(27, 34,), array(27, 34,), - array(27, 34,), array(27, 34,), array(27, 34,), array(45, 52,), - array(45, 52,), array(27, 34,), array(27, 34,), array(45, 52,), - array(27, 34,), array(14, 54,), array(27, 34,), array(27, 34,), - array(27, 34,), array(15, 23,), array(45, 52,), array(14, 54,), - array(27, 34,), array(45, 52,), array(27, 34,), array(27, 34,), - array(27, 34,), array(27, 34,), array(45, 52,), array(45, 52,), - array(45, 52,), array(27, 34,), array(45, 52,), array(45, 52,), - array(14, 54,), array(14, 54,), array(27, 34,), array(2,), array(9,), - array(1,), array(1,), array(2,), array(1,), array(1,), array(37,), - array(18,), array(18,), array(18,), array(1,), array(), array(), array(), - array(), array(), array(1, 2, 3, 37, 39, 40, 48, 55, 56, 57, 58,), - array(11, 22, 24, 27, 34, 36, 38, 45,), array(11, 15, 27, 34, 37, 48,), - array(37, 45, 48, 53,), array(12, 13, 17, 50,), array(23, 46, 53,), - array(29, 37, 48,), array(23, 46, 60,), array(36, 38,), array(22, 36,), - array(36, 53,), array(17, 50,), array(45, 53,), array(36, 38,), - array(36, 38,), array(37, 48,), array(23, 46,), array(37, 48,), - array(15, 45,), array(37, 48,), array(51,), array(15,), array(17,), - array(24,), array(38,), array(17,), array(53,), array(53,), array(51,), - array(17,), array(17,), array(17,), array(17,), array(17,), array(37,), - array(17,), array(41,), array(14,), array(37,), array(17,), array(11,), - array(35,), array(45,), array(17,), array(35,), array(5,), 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 $yy_default = array(338, 515, 494, 494, 530, 530, 530, 494, 530, 530, 530, 530, 530, 530, 530, - 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, - 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, - 530, 396, 372, 359, 396, 362, 396, 335, 401, 530, 530, 530, 530, 530, 530, - 530, 530, 530, 530, 408, 418, 403, 493, 398, 401, 518, 407, 517, 377, 492, - 516, 423, 422, 530, 530, 434, 410, 530, 396, 530, 530, 396, 396, 396, 396, - 530, 396, 530, 506, 396, 386, 410, 424, 424, 459, 410, 530, 410, 449, 530, - 459, 459, 449, 410, 530, 390, 396, 374, 449, 530, 410, 396, 410, 530, 392, - 449, 417, 410, 421, 427, 426, 413, 503, 425, 414, 501, 448, 448, 448, 448, - 448, 448, 530, 461, 459, 475, 459, 366, 381, 370, 369, 376, 368, 487, 457, - 363, 364, 485, 360, 530, 358, 380, 375, 530, 484, 530, 356, 455, 383, 373, - 384, 382, 454, 456, 453, 379, 452, 486, 530, 530, 385, 495, 350, 393, 416, - 496, 387, 443, 459, 481, 507, 504, 391, 500, 500, 500, 459, 459, 434, 430, - 434, 434, 460, 424, 434, 424, 530, 530, 530, 530, 430, 530, 530, 434, 424, - 530, 430, 444, 530, 530, 530, 404, 530, 530, 530, 439, 530, 530, 530, 530, - 530, 530, 505, 530, 436, 530, 475, 530, 530, 530, 430, 530, 432, 342, 378, - 411, 480, 497, 475, 498, 464, 428, 462, 397, 437, 438, 446, 463, 447, 458, - 524, 479, 389, 351, 339, 340, 341, 344, 343, 345, 346, 347, 348, 349, 352, - 405, 353, 354, 394, 409, 365, 371, 395, 477, 478, 499, 502, 412, 465, 514, - 511, 415, 337, 450, 451, 483, 476, 491, 526, 513, 527, 488, 512, 482, 388, - 519, 520, 522, 529, 528, 525, 523, 510, 509, 436, 439, 490, 521, 489, 429, - 431, 474, 468, 433, 467, 435, 466, 508, 440, 469, 441, 471, 419, 420, 442, - 445, 472, 470, 473, 336,); - public static $yyFallback = array(); - 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', - '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 attributes', 'tag ::= LDEL value', - 'tag ::= LDEL value attributes', 'tag ::= LDEL expr', - '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 ::= LDELMAKENOCACHE DOLLARID', '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 tlop value', - 'expr ::= expr lop expr', 'expr ::= expr scond', 'expr ::= expr ISIN array', - 'expr ::= expr ISIN value', - '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 ::= variable INSTANCEOF ns1', 'value ::= variable INSTANCEOF variable', - '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 ::= SLOGOP', 'tlop ::= 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 $yyRuleInfo = array(array(0 => 62, 1 => 1), array(0 => 63, 1 => 1), array(0 => 63, 1 => 2), - array(0 => 63, 1 => 0), array(0 => 64, 1 => 1), array(0 => 64, 1 => 1), - array(0 => 64, 1 => 1), array(0 => 64, 1 => 1), array(0 => 67, 1 => 1), - array(0 => 67, 1 => 2), array(0 => 64, 1 => 1), array(0 => 64, 1 => 1), - array(0 => 66, 1 => 2), array(0 => 66, 1 => 3), array(0 => 68, 1 => 2), - array(0 => 68, 1 => 0), array(0 => 69, 1 => 1), array(0 => 69, 1 => 1), - array(0 => 65, 1 => 2), array(0 => 65, 1 => 1), array(0 => 70, 1 => 2), - array(0 => 70, 1 => 3), array(0 => 70, 1 => 2), array(0 => 70, 1 => 3), - array(0 => 70, 1 => 2), array(0 => 70, 1 => 3), array(0 => 70, 1 => 4), - array(0 => 70, 1 => 4), array(0 => 70, 1 => 5), array(0 => 70, 1 => 5), - array(0 => 65, 1 => 1), array(0 => 70, 1 => 3), array(0 => 70, 1 => 2), - array(0 => 70, 1 => 4), array(0 => 70, 1 => 5), array(0 => 70, 1 => 6), - array(0 => 70, 1 => 2), array(0 => 70, 1 => 2), array(0 => 70, 1 => 3), - array(0 => 70, 1 => 2), array(0 => 70, 1 => 3), array(0 => 70, 1 => 8), - array(0 => 79, 1 => 2), array(0 => 79, 1 => 1), array(0 => 70, 1 => 5), - array(0 => 70, 1 => 7), array(0 => 70, 1 => 2), array(0 => 70, 1 => 6), - array(0 => 70, 1 => 8), array(0 => 70, 1 => 6), array(0 => 70, 1 => 8), - array(0 => 70, 1 => 3), array(0 => 70, 1 => 4), array(0 => 70, 1 => 2), - array(0 => 65, 1 => 1), array(0 => 70, 1 => 2), array(0 => 70, 1 => 3), - array(0 => 70, 1 => 4), array(0 => 70, 1 => 5), array(0 => 72, 1 => 2), - array(0 => 72, 1 => 1), array(0 => 72, 1 => 0), array(0 => 82, 1 => 4), - array(0 => 82, 1 => 2), array(0 => 82, 1 => 2), array(0 => 82, 1 => 2), - array(0 => 82, 1 => 2), array(0 => 82, 1 => 2), array(0 => 82, 1 => 4), - array(0 => 78, 1 => 1), array(0 => 78, 1 => 3), array(0 => 77, 1 => 3), - array(0 => 77, 1 => 3), array(0 => 77, 1 => 3), array(0 => 77, 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 => 3), - array(0 => 74, 1 => 2), array(0 => 74, 1 => 3), array(0 => 74, 1 => 3), - array(0 => 83, 1 => 7), array(0 => 83, 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 => 3), 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 => 89, 1 => 1), array(0 => 89, 1 => 1), array(0 => 71, 1 => 1), - array(0 => 71, 1 => 1), array(0 => 71, 1 => 3), array(0 => 71, 1 => 1), - array(0 => 71, 1 => 3), array(0 => 71, 1 => 4), array(0 => 71, 1 => 3), - array(0 => 71, 1 => 4), array(0 => 75, 1 => 2), array(0 => 75, 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 => 80, 1 => 1), - array(0 => 80, 1 => 1), array(0 => 80, 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 => 88, 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 => 76, 1 => 3), array(0 => 76, 1 => 2), - array(0 => 100, 1 => 3), array(0 => 100, 1 => 2), array(0 => 81, 1 => 2), - array(0 => 81, 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 => 85, 1 => 1), array(0 => 87, 1 => 1), - array(0 => 84, 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 $yyReduceMap = array(0 => 0, 1 => 1, 2 => 2, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 16 => 8, 17 => 8, - 43 => 8, 66 => 8, 67 => 8, 75 => 8, 76 => 8, 80 => 8, 89 => 8, 94 => 8, 95 => 8, - 100 => 8, 104 => 8, 105 => 8, 109 => 8, 111 => 8, 116 => 8, 178 => 8, 183 => 8, - 9 => 9, 10 => 10, 11 => 11, 12 => 12, 15 => 12, 13 => 13, 74 => 13, 14 => 14, - 90 => 14, 92 => 14, 93 => 14, 123 => 14, 18 => 18, 19 => 19, 20 => 20, 22 => 20, - 24 => 20, 21 => 21, 23 => 21, 25 => 21, 26 => 26, 27 => 26, 28 => 28, 29 => 29, - 30 => 30, 31 => 31, 32 => 32, 33 => 33, 34 => 34, 35 => 35, 36 => 36, 37 => 37, - 38 => 38, 40 => 38, 39 => 39, 41 => 41, 42 => 42, 44 => 44, 45 => 45, 46 => 46, - 47 => 47, 49 => 47, 48 => 48, 50 => 48, 51 => 51, 52 => 52, 53 => 53, 54 => 54, - 55 => 55, 56 => 56, 57 => 57, 58 => 58, 59 => 59, 60 => 60, 69 => 60, 158 => 60, - 162 => 60, 166 => 60, 167 => 60, 61 => 61, 159 => 61, 165 => 61, 62 => 62, - 63 => 63, 64 => 63, 65 => 65, 143 => 65, 68 => 68, 70 => 70, 71 => 71, 72 => 71, - 73 => 73, 77 => 77, 78 => 78, 79 => 78, 81 => 81, 108 => 81, 82 => 82, 83 => 83, - 84 => 84, 85 => 85, 86 => 86, 87 => 87, 88 => 88, 91 => 91, 96 => 96, 97 => 97, - 98 => 98, 99 => 99, 101 => 101, 102 => 102, 103 => 102, 106 => 106, 107 => 107, - 110 => 110, 112 => 112, 113 => 113, 114 => 114, 115 => 115, 117 => 117, - 118 => 118, 119 => 119, 120 => 120, 121 => 121, 122 => 122, 124 => 124, - 180 => 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, - 184 => 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, 177 => 177, - 179 => 179, 181 => 181, 182 => 182, 185 => 185, 186 => 186, 187 => 187, - 188 => 188, 189 => 188, 191 => 188, 190 => 190, 192 => 192, 193 => 193, - 194 => 194,); + const YY_NO_ACTION = 523; + const YY_ACCEPT_ACTION = 522; + const YY_ERROR_ACTION = 521; + const YY_SZ_ACTTAB = 2143; + const YY_SHIFT_USE_DFLT = -23; + const YY_SHIFT_MAX = 231; + const YY_REDUCE_USE_DFLT = -94; + const YY_REDUCE_MAX = 185; + const YYNOCODE = 107; + const YYSTACKDEPTH = 500; + const YYNSTATE = 328; + const YYNRULE = 193; + const YYERRORSYMBOL = 61; + const YYERRSYMDT = 'yy0'; + const YYFALLBACK = 0; + static public $yy_action = array( + 41, 312, 214, 290, 228, 197, 13, 102, 262, 265, + 9, 129, 151, 268, 80, 312, 209, 4, 84, 12, + 260, 25, 263, 114, 78, 259, 15, 213, 273, 261, + 211, 311, 207, 200, 34, 258, 450, 17, 78, 42, + 39, 324, 210, 450, 280, 241, 198, 275, 82, 1, + 41, 291, 225, 195, 92, 119, 79, 107, 212, 265, + 9, 130, 99, 268, 190, 142, 209, 4, 84, 178, + 315, 196, 282, 114, 287, 263, 214, 213, 216, 261, + 211, 102, 201, 181, 34, 103, 179, 245, 255, 42, + 39, 324, 210, 182, 223, 30, 198, 234, 82, 1, + 257, 291, 41, 304, 35, 224, 79, 33, 168, 19, + 96, 265, 9, 132, 348, 268, 204, 437, 209, 4, + 84, 250, 252, 253, 217, 114, 312, 225, 437, 213, + 12, 261, 211, 200, 207, 43, 34, 15, 5, 208, + 111, 42, 39, 324, 210, 291, 280, 310, 198, 78, + 82, 1, 41, 291, 260, 25, 24, 189, 79, 259, + 313, 265, 9, 132, 239, 268, 188, 200, 209, 4, + 84, 40, 38, 200, 22, 114, 37, 96, 314, 213, + 244, 261, 211, 350, 203, 295, 34, 294, 296, 297, + 298, 42, 39, 324, 210, 29, 280, 291, 198, 12, + 82, 1, 41, 291, 291, 306, 15, 111, 79, 121, + 21, 265, 9, 133, 99, 268, 204, 162, 209, 4, + 84, 89, 100, 271, 88, 114, 287, 263, 161, 213, + 149, 261, 211, 200, 207, 43, 20, 312, 263, 163, + 12, 42, 39, 324, 210, 182, 280, 15, 198, 263, + 82, 1, 41, 291, 112, 231, 181, 93, 79, 121, + 78, 265, 9, 132, 99, 268, 186, 181, 209, 4, + 84, 40, 38, 200, 299, 114, 287, 133, 6, 213, + 206, 261, 211, 200, 207, 43, 34, 294, 296, 297, + 298, 42, 39, 324, 210, 320, 280, 165, 198, 12, + 82, 1, 41, 291, 466, 466, 15, 263, 79, 466, + 158, 265, 9, 131, 82, 268, 204, 291, 209, 4, + 84, 40, 38, 178, 303, 114, 169, 285, 96, 213, + 174, 261, 211, 200, 207, 43, 34, 294, 296, 297, + 298, 42, 39, 324, 210, 233, 280, 182, 198, 450, + 82, 1, 41, 291, 182, 262, 450, 159, 79, 466, + 466, 265, 9, 128, 466, 268, 204, 263, 209, 4, + 84, 40, 38, 200, 30, 114, 240, 11, 226, 213, + 258, 261, 211, 393, 207, 43, 7, 294, 296, 297, + 298, 42, 39, 324, 210, 176, 280, 466, 198, 393, + 82, 1, 41, 291, 173, 137, 393, 208, 79, 260, + 25, 265, 9, 132, 259, 268, 193, 289, 209, 4, + 84, 40, 38, 200, 438, 114, 180, 285, 91, 213, + 96, 261, 211, 390, 207, 438, 34, 294, 296, 297, + 298, 42, 39, 324, 210, 291, 280, 218, 198, 390, + 82, 1, 41, 291, 14, 266, 390, 134, 79, 200, + 37, 265, 9, 132, 10, 268, 204, 164, 209, 4, + 84, 90, 437, 148, 30, 114, 307, 263, 3, 213, + 220, 261, 211, 437, 187, 214, 34, 264, 308, 124, + 102, 42, 39, 324, 210, 182, 280, 18, 198, 134, + 82, 1, 41, 291, 15, 319, 10, 277, 79, 172, + 225, 265, 9, 133, 117, 268, 204, 327, 209, 4, + 84, 466, 466, 200, 2, 114, 466, 450, 175, 213, + 309, 261, 211, 182, 207, 109, 20, 44, 23, 272, + 222, 42, 39, 324, 210, 283, 280, 156, 198, 221, + 82, 437, 182, 291, 450, 260, 25, 450, 79, 466, + 259, 450, 437, 254, 248, 243, 242, 179, 319, 136, + 12, 265, 9, 225, 279, 268, 96, 15, 209, 4, + 84, 117, 147, 177, 141, 114, 230, 102, 175, 213, + 133, 261, 211, 302, 263, 275, 36, 44, 23, 272, + 225, 195, 238, 110, 66, 107, 111, 85, 317, 291, + 99, 144, 182, 323, 293, 270, 200, 170, 315, 196, + 282, 263, 287, 312, 3, 301, 354, 82, 246, 275, + 291, 247, 202, 326, 225, 195, 83, 118, 74, 107, + 138, 182, 258, 27, 99, 146, 78, 323, 293, 175, + 171, 285, 315, 196, 282, 263, 287, 288, 44, 23, + 272, 275, 316, 194, 108, 140, 225, 195, 269, 118, + 74, 107, 167, 182, 258, 263, 99, 154, 325, 323, + 293, 200, 318, 208, 315, 196, 282, 263, 287, 265, + 8, 300, 305, 268, 249, 199, 209, 4, 84, 183, + 256, 322, 22, 114, 152, 267, 153, 213, 303, 261, + 211, 522, 52, 251, 252, 253, 217, 157, 106, 225, + 275, 87, 135, 258, 160, 225, 195, 155, 110, 66, + 107, 86, 301, 276, 301, 99, 278, 16, 323, 293, + 301, 301, 301, 315, 196, 282, 275, 287, 301, 301, + 301, 225, 195, 301, 118, 74, 107, 301, 321, 301, + 301, 99, 301, 301, 323, 293, 301, 301, 301, 315, + 196, 282, 301, 287, 301, 301, 275, 301, 301, 301, + 205, 225, 195, 301, 118, 56, 101, 301, 216, 301, + 301, 99, 301, 301, 323, 293, 301, 318, 301, 315, + 196, 282, 301, 287, 265, 8, 300, 301, 268, 301, + 301, 209, 4, 84, 301, 301, 301, 301, 114, 301, + 301, 275, 213, 301, 261, 211, 225, 195, 301, 118, + 47, 101, 301, 113, 301, 301, 99, 301, 301, 323, + 293, 301, 301, 301, 315, 196, 282, 301, 287, 301, + 275, 284, 16, 301, 301, 225, 195, 301, 118, 45, + 107, 301, 301, 301, 301, 99, 301, 301, 323, 293, + 301, 301, 301, 315, 196, 282, 301, 287, 275, 301, + 301, 301, 301, 225, 195, 301, 118, 76, 107, 301, + 301, 301, 301, 99, 145, 301, 323, 293, 175, 301, + 301, 315, 196, 282, 263, 287, 275, 44, 23, 272, + 301, 225, 195, 301, 105, 51, 107, 301, 301, 301, + 301, 99, 182, 301, 323, 293, 301, 301, 301, 315, + 196, 282, 301, 287, 275, 301, 301, 301, 301, 225, + 195, 301, 118, 56, 107, 301, 301, 301, 301, 99, + 139, 301, 323, 293, 175, 301, 301, 315, 196, 282, + 263, 287, 275, 44, 23, 272, 301, 225, 195, 301, + 118, 50, 107, 301, 301, 301, 301, 99, 182, 301, + 323, 293, 301, 301, 301, 315, 196, 282, 301, 287, + 275, 301, 301, 301, 301, 225, 195, 301, 118, 61, + 107, 301, 301, 301, 301, 99, 143, 301, 323, 293, + 175, 301, 301, 315, 196, 282, 263, 287, 275, 44, + 23, 272, 301, 225, 195, 301, 118, 63, 107, 301, + 301, 301, 301, 99, 182, 301, 323, 293, 301, 301, + 301, 315, 196, 282, 301, 287, 275, 301, 301, 301, + 301, 225, 195, 301, 118, 60, 107, 301, 301, 301, + 301, 99, 166, 301, 323, 293, 175, 301, 301, 315, + 196, 282, 263, 287, 275, 44, 23, 272, 301, 225, + 195, 301, 97, 69, 107, 301, 301, 301, 301, 99, + 182, 301, 323, 293, 301, 301, 301, 315, 196, 282, + 301, 287, 275, 301, 301, 301, 301, 225, 191, 301, + 118, 54, 107, 301, 301, 301, 301, 99, 301, 301, + 323, 293, 301, 301, 301, 315, 196, 282, 301, 287, + 275, 301, 301, 301, 301, 225, 195, 301, 118, 73, + 107, 301, 301, 301, 301, 99, 301, 301, 323, 293, + 301, 301, 301, 315, 196, 282, 301, 287, 275, 301, + 301, 301, 301, 225, 195, 301, 118, 71, 107, 301, + 301, 301, 301, 99, 301, 301, 323, 293, 301, 301, + 301, 315, 196, 282, 301, 287, 275, 301, 301, 301, + 301, 225, 195, 301, 98, 65, 107, 301, 301, 301, + 301, 99, 301, 301, 323, 293, 301, 301, 301, 315, + 196, 282, 301, 287, 275, 301, 301, 301, 301, 225, + 94, 301, 81, 46, 104, 301, 301, 301, 301, 99, + 301, 301, 323, 293, 301, 301, 301, 315, 196, 282, + 301, 287, 275, 301, 301, 301, 301, 225, 95, 301, + 81, 49, 104, 301, 301, 301, 301, 99, 301, 301, + 323, 293, 301, 301, 301, 315, 196, 282, 301, 287, + 275, 301, 301, 301, 301, 225, 192, 301, 115, 57, + 107, 301, 301, 301, 301, 99, 301, 301, 323, 293, + 301, 301, 301, 315, 196, 282, 301, 287, 275, 301, + 301, 301, 301, 225, 195, 301, 118, 70, 107, 301, + 301, 301, 301, 99, 301, 301, 323, 293, 301, 301, + 301, 315, 196, 282, 301, 287, 275, 301, 301, 301, + 301, 225, 195, 301, 98, 62, 107, 301, 301, 301, + 301, 99, 301, 301, 323, 293, 301, 301, 301, 315, + 196, 282, 301, 287, 275, 301, 301, 301, 301, 225, + 195, 301, 118, 68, 107, 301, 301, 301, 301, 99, + 301, 301, 323, 293, 301, 301, 301, 315, 196, 282, + 301, 287, 275, 301, 301, 301, 301, 225, 195, 301, + 118, 48, 107, 301, 301, 301, 301, 99, 301, 301, + 323, 293, 301, 301, 301, 315, 196, 282, 301, 287, + 275, 301, 301, 301, 301, 225, 195, 301, 118, 59, + 107, 301, 301, 301, 301, 99, 301, 301, 323, 293, + 301, 301, 301, 315, 196, 282, 301, 287, 275, 301, + 301, 301, 301, 225, 195, 301, 118, 77, 107, 301, + 301, 301, 301, 99, 301, 301, 323, 293, 301, 301, + 301, 315, 196, 282, 301, 287, 275, 301, 301, 301, + 301, 225, 195, 301, 118, 72, 107, 301, 301, 301, + 301, 99, 301, 301, 323, 293, 301, 301, 301, 315, + 196, 282, 301, 287, 275, 301, 301, 301, 301, 225, + 195, 301, 118, 67, 107, 301, 301, 301, 301, 99, + 301, 301, 323, 293, 301, 301, 301, 315, 196, 282, + 301, 287, 275, 301, 301, 301, 301, 225, 195, 301, + 118, 53, 107, 301, 301, 301, 301, 99, 301, 301, + 323, 293, 301, 301, 301, 315, 196, 282, 301, 287, + 275, 301, 301, 301, 301, 225, 195, 301, 118, 64, + 107, 301, 301, 301, 301, 99, 301, 301, 323, 293, + 301, 301, 301, 315, 196, 282, 301, 287, 275, 301, + 301, 301, 301, 225, 195, 301, 118, 55, 107, 301, + 301, 301, 301, 99, 301, 301, 323, 293, 301, 301, + 301, 315, 196, 282, 301, 287, 275, 301, 301, 301, + 301, 225, 195, 301, 118, 58, 107, 301, 301, 301, + 301, 99, 301, 301, 323, 293, 301, 301, 301, 315, + 196, 282, 301, 287, 275, 301, 200, 301, 43, 225, + 195, 301, 118, 75, 107, 200, 301, 43, 301, 99, + 301, 301, 323, 293, 301, 292, 301, 315, 196, 282, + 26, 287, 12, 301, 301, 301, 301, 301, 301, 15, + 301, 12, 260, 25, 40, 38, 301, 259, 15, 301, + 403, 403, 403, 40, 38, 301, 301, 12, 301, 150, + 294, 296, 297, 298, 15, 301, 301, 301, 301, 294, + 296, 297, 298, 301, 301, 275, 301, 301, 301, 301, + 225, 195, 301, 127, 301, 107, 437, 301, 403, 403, + 99, 301, 301, 301, 235, 301, 301, 437, 315, 196, + 282, 301, 287, 301, 403, 403, 403, 403, 301, 301, + 275, 301, 200, 301, 43, 225, 195, 301, 120, 301, + 107, 301, 301, 301, 301, 99, 301, 301, 301, 274, + 301, 301, 215, 315, 196, 282, 301, 287, 12, 301, + 301, 301, 466, 466, 301, 15, 301, 466, 450, 275, + 40, 38, 301, 301, 225, 195, 301, 125, 301, 107, + 301, 301, 301, 301, 99, 301, 294, 296, 297, 298, + 301, 301, 315, 196, 282, 450, 287, 301, 450, 301, + 466, 275, 450, 286, 215, 301, 225, 195, 301, 123, + 301, 107, 301, 301, 466, 466, 99, 32, 301, 466, + 450, 301, 301, 301, 315, 196, 282, 301, 287, 301, + 301, 301, 301, 275, 301, 301, 301, 301, 225, 195, + 301, 126, 301, 107, 301, 301, 301, 450, 99, 301, + 450, 301, 466, 301, 450, 301, 315, 196, 282, 275, + 287, 301, 301, 301, 225, 195, 301, 122, 301, 107, + 275, 200, 301, 43, 99, 225, 195, 301, 116, 301, + 107, 301, 315, 196, 282, 99, 287, 301, 215, 301, + 301, 301, 301, 315, 196, 282, 215, 287, 466, 466, + 301, 13, 301, 466, 450, 301, 466, 466, 232, 40, + 38, 466, 450, 200, 31, 43, 301, 301, 301, 301, + 301, 301, 301, 301, 301, 294, 296, 297, 298, 301, + 301, 450, 301, 200, 450, 43, 466, 301, 450, 450, + 301, 301, 450, 185, 466, 200, 450, 43, 301, 301, + 301, 40, 38, 200, 301, 43, 301, 301, 301, 301, + 301, 301, 301, 184, 301, 301, 301, 294, 296, 297, + 298, 40, 38, 301, 301, 301, 301, 301, 301, 301, + 301, 301, 219, 40, 38, 301, 301, 294, 296, 297, + 298, 40, 38, 301, 301, 301, 301, 301, 301, 294, + 296, 297, 298, 28, 301, 301, 301, 294, 296, 297, + 298, 301, 301, 466, 466, 301, 301, 301, 466, 450, + 200, 200, 43, 301, 200, 301, 43, 301, 301, 301, + 237, 360, 301, 301, 236, 301, 301, 301, 229, 301, + 301, 301, 301, 301, 301, 301, 450, 12, 200, 450, + 43, 466, 301, 450, 15, 301, 301, 437, 40, 38, + 301, 301, 40, 38, 301, 301, 301, 301, 437, 391, + 301, 301, 301, 227, 294, 296, 297, 298, 294, 296, + 297, 298, 301, 301, 301, 391, 40, 38, 301, 301, + 301, 301, 391, 301, 301, 437, 301, 301, 397, 301, + 301, 301, 294, 296, 297, 298, 437, 281, 301, 397, + 301, 397, 301, 301, 397, 301, 301, 301, 301, 301, + 301, 397, 301, 397, 301, 397, 301, 301, 301, 301, + 301, 301, 208, + ); + static public $yy_lookahead = array( + 3, 23, 75, 11, 77, 78, 15, 80, 101, 12, + 13, 14, 72, 16, 17, 23, 19, 20, 21, 27, + 12, 13, 82, 26, 46, 17, 34, 30, 31, 32, + 33, 53, 35, 1, 37, 95, 45, 15, 46, 42, + 43, 44, 45, 52, 47, 23, 49, 65, 51, 52, + 3, 54, 70, 71, 93, 73, 59, 75, 50, 12, + 13, 14, 80, 16, 17, 72, 19, 20, 21, 76, + 88, 89, 90, 26, 92, 82, 75, 30, 77, 32, + 33, 80, 35, 100, 37, 80, 8, 9, 10, 42, + 43, 44, 45, 100, 47, 36, 49, 38, 51, 52, + 53, 54, 3, 98, 13, 14, 59, 15, 17, 29, + 18, 12, 13, 14, 11, 16, 17, 37, 19, 20, + 21, 64, 65, 66, 67, 26, 23, 70, 48, 30, + 27, 32, 33, 1, 35, 3, 37, 34, 37, 45, + 48, 42, 43, 44, 45, 54, 47, 53, 49, 46, + 51, 52, 3, 54, 12, 13, 13, 14, 59, 17, + 17, 12, 13, 14, 14, 16, 17, 1, 19, 20, + 21, 39, 40, 1, 15, 26, 2, 18, 35, 30, + 9, 32, 33, 11, 35, 53, 37, 55, 56, 57, + 58, 42, 43, 44, 45, 29, 47, 54, 49, 27, + 51, 52, 3, 54, 54, 71, 34, 48, 59, 75, + 22, 12, 13, 14, 80, 16, 17, 72, 19, 20, + 21, 76, 68, 89, 36, 26, 92, 82, 72, 30, + 93, 32, 33, 1, 35, 3, 37, 23, 82, 72, + 27, 42, 43, 44, 45, 100, 47, 34, 49, 82, + 51, 52, 3, 54, 22, 71, 100, 81, 59, 75, + 46, 12, 13, 14, 80, 16, 17, 100, 19, 20, + 21, 39, 40, 1, 60, 26, 92, 14, 36, 30, + 17, 32, 33, 1, 35, 3, 37, 55, 56, 57, + 58, 42, 43, 44, 45, 53, 47, 72, 49, 27, + 51, 52, 3, 54, 12, 13, 34, 82, 59, 17, + 28, 12, 13, 14, 51, 16, 17, 54, 19, 20, + 21, 39, 40, 76, 94, 26, 96, 97, 18, 30, + 76, 32, 33, 1, 35, 3, 37, 55, 56, 57, + 58, 42, 43, 44, 45, 17, 47, 100, 49, 45, + 51, 52, 3, 54, 100, 101, 52, 72, 59, 12, + 13, 12, 13, 14, 17, 16, 17, 82, 19, 20, + 21, 39, 40, 1, 36, 26, 38, 15, 50, 30, + 95, 32, 33, 11, 35, 3, 37, 55, 56, 57, + 58, 42, 43, 44, 45, 81, 47, 50, 49, 27, + 51, 52, 3, 54, 81, 14, 34, 45, 59, 12, + 13, 12, 13, 14, 17, 16, 17, 97, 19, 20, + 21, 39, 40, 1, 37, 26, 96, 97, 37, 30, + 18, 32, 33, 11, 35, 48, 37, 55, 56, 57, + 58, 42, 43, 44, 45, 54, 47, 50, 49, 27, + 51, 52, 3, 54, 13, 11, 34, 45, 59, 1, + 2, 12, 13, 14, 52, 16, 17, 72, 19, 20, + 21, 76, 37, 93, 36, 26, 38, 82, 37, 30, + 45, 32, 33, 48, 35, 75, 37, 77, 53, 17, + 80, 42, 43, 44, 45, 100, 47, 27, 49, 45, + 51, 52, 3, 54, 34, 65, 52, 91, 59, 76, + 70, 12, 13, 14, 98, 16, 17, 53, 19, 20, + 21, 12, 13, 1, 37, 26, 17, 18, 76, 30, + 53, 32, 33, 100, 35, 48, 37, 85, 86, 87, + 18, 42, 43, 44, 45, 105, 47, 51, 49, 17, + 51, 37, 100, 54, 45, 12, 13, 48, 59, 50, + 17, 52, 48, 4, 5, 6, 7, 8, 65, 14, + 27, 12, 13, 70, 91, 16, 18, 34, 19, 20, + 21, 98, 75, 14, 72, 26, 17, 80, 76, 30, + 14, 32, 33, 17, 82, 65, 24, 85, 86, 87, + 70, 71, 17, 73, 74, 75, 48, 104, 105, 54, + 80, 72, 100, 83, 84, 17, 1, 76, 88, 89, + 90, 82, 92, 23, 37, 49, 11, 51, 66, 65, + 54, 69, 102, 103, 70, 71, 17, 73, 74, 75, + 93, 100, 95, 41, 80, 72, 46, 83, 84, 76, + 96, 97, 88, 89, 90, 82, 92, 17, 85, 86, + 87, 65, 35, 99, 17, 72, 70, 71, 14, 73, + 74, 75, 93, 100, 95, 82, 80, 72, 35, 83, + 84, 1, 5, 45, 88, 89, 90, 82, 92, 12, + 13, 14, 17, 16, 5, 99, 19, 20, 21, 17, + 38, 17, 15, 26, 51, 82, 93, 30, 94, 32, + 33, 62, 63, 64, 65, 66, 67, 93, 79, 70, + 65, 80, 80, 95, 93, 70, 71, 93, 73, 74, + 75, 80, 106, 53, 106, 80, 59, 60, 83, 84, + 106, 106, 106, 88, 89, 90, 65, 92, 106, 106, + 106, 70, 71, 106, 73, 74, 75, 106, 103, 106, + 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, + 89, 90, 106, 92, 106, 106, 65, 106, 106, 106, + 99, 70, 71, 106, 73, 74, 75, 106, 77, 106, + 106, 80, 106, 106, 83, 84, 106, 5, 106, 88, + 89, 90, 106, 92, 12, 13, 14, 106, 16, 106, + 106, 19, 20, 21, 106, 106, 106, 106, 26, 106, + 106, 65, 30, 106, 32, 33, 70, 71, 106, 73, + 74, 75, 106, 77, 106, 106, 80, 106, 106, 83, + 84, 106, 106, 106, 88, 89, 90, 106, 92, 106, + 65, 59, 60, 106, 106, 70, 71, 106, 73, 74, + 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, + 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, + 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, + 106, 106, 106, 80, 72, 106, 83, 84, 76, 106, + 106, 88, 89, 90, 82, 92, 65, 85, 86, 87, + 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, + 106, 80, 100, 106, 83, 84, 106, 106, 106, 88, + 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, + 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, + 72, 106, 83, 84, 76, 106, 106, 88, 89, 90, + 82, 92, 65, 85, 86, 87, 106, 70, 71, 106, + 73, 74, 75, 106, 106, 106, 106, 80, 100, 106, + 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, + 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, + 75, 106, 106, 106, 106, 80, 72, 106, 83, 84, + 76, 106, 106, 88, 89, 90, 82, 92, 65, 85, + 86, 87, 106, 70, 71, 106, 73, 74, 75, 106, + 106, 106, 106, 80, 100, 106, 83, 84, 106, 106, + 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, + 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, + 106, 80, 72, 106, 83, 84, 76, 106, 106, 88, + 89, 90, 82, 92, 65, 85, 86, 87, 106, 70, + 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, + 100, 106, 83, 84, 106, 106, 106, 88, 89, 90, + 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, + 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, + 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, + 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, + 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, + 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, + 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, + 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, + 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, + 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, + 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, + 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, + 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, + 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, + 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, + 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, + 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, + 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, + 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, + 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, + 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, + 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, + 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, + 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, + 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, + 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, + 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, + 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, + 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, + 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, + 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, + 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, + 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, + 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, + 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, + 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, + 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, + 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, + 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, + 89, 90, 106, 92, 65, 106, 106, 106, 106, 70, + 71, 106, 73, 74, 75, 106, 106, 106, 106, 80, + 106, 106, 83, 84, 106, 106, 106, 88, 89, 90, + 106, 92, 65, 106, 106, 106, 106, 70, 71, 106, + 73, 74, 75, 106, 106, 106, 106, 80, 106, 106, + 83, 84, 106, 106, 106, 88, 89, 90, 106, 92, + 65, 106, 106, 106, 106, 70, 71, 106, 73, 74, + 75, 106, 106, 106, 106, 80, 106, 106, 83, 84, + 106, 106, 106, 88, 89, 90, 106, 92, 65, 106, + 106, 106, 106, 70, 71, 106, 73, 74, 75, 106, + 106, 106, 106, 80, 106, 106, 83, 84, 106, 106, + 106, 88, 89, 90, 106, 92, 65, 106, 106, 106, + 106, 70, 71, 106, 73, 74, 75, 106, 106, 106, + 106, 80, 106, 106, 83, 84, 106, 106, 106, 88, + 89, 90, 106, 92, 65, 106, 1, 106, 3, 70, + 71, 106, 73, 74, 75, 1, 106, 3, 106, 80, + 106, 106, 83, 84, 106, 11, 106, 88, 89, 90, + 25, 92, 27, 106, 106, 106, 106, 106, 106, 34, + 106, 27, 12, 13, 39, 40, 106, 17, 34, 106, + 1, 2, 3, 39, 40, 106, 106, 27, 106, 29, + 55, 56, 57, 58, 34, 106, 106, 106, 106, 55, + 56, 57, 58, 106, 106, 65, 106, 106, 106, 106, + 70, 71, 106, 73, 106, 75, 37, 106, 39, 40, + 80, 106, 106, 106, 84, 106, 106, 48, 88, 89, + 90, 106, 92, 106, 55, 56, 57, 58, 106, 106, + 65, 106, 1, 106, 3, 70, 71, 106, 73, 106, + 75, 106, 106, 106, 106, 80, 106, 106, 106, 84, + 106, 106, 2, 88, 89, 90, 106, 92, 27, 106, + 106, 106, 12, 13, 106, 34, 106, 17, 18, 65, + 39, 40, 106, 106, 70, 71, 106, 73, 106, 75, + 106, 106, 106, 106, 80, 106, 55, 56, 57, 58, + 106, 106, 88, 89, 90, 45, 92, 106, 48, 106, + 50, 65, 52, 53, 2, 106, 70, 71, 106, 73, + 106, 75, 106, 106, 12, 13, 80, 15, 106, 17, + 18, 106, 106, 106, 88, 89, 90, 106, 92, 106, + 106, 106, 106, 65, 106, 106, 106, 106, 70, 71, + 106, 73, 106, 75, 106, 106, 106, 45, 80, 106, + 48, 106, 50, 106, 52, 106, 88, 89, 90, 65, + 92, 106, 106, 106, 70, 71, 106, 73, 106, 75, + 65, 1, 106, 3, 80, 70, 71, 106, 73, 106, + 75, 106, 88, 89, 90, 80, 92, 106, 2, 106, + 106, 106, 106, 88, 89, 90, 2, 92, 12, 13, + 106, 15, 106, 17, 18, 106, 12, 13, 38, 39, + 40, 17, 18, 1, 2, 3, 106, 106, 106, 106, + 106, 106, 106, 106, 106, 55, 56, 57, 58, 106, + 106, 45, 106, 1, 48, 3, 50, 106, 52, 45, + 106, 106, 48, 11, 50, 1, 52, 3, 106, 106, + 106, 39, 40, 1, 106, 3, 106, 106, 106, 106, + 106, 106, 106, 11, 106, 106, 106, 55, 56, 57, + 58, 39, 40, 106, 106, 106, 106, 106, 106, 106, + 106, 106, 38, 39, 40, 106, 106, 55, 56, 57, + 58, 39, 40, 106, 106, 106, 106, 106, 106, 55, + 56, 57, 58, 2, 106, 106, 106, 55, 56, 57, + 58, 106, 106, 12, 13, 106, 106, 106, 17, 18, + 1, 1, 3, 106, 1, 106, 3, 106, 106, 106, + 11, 11, 106, 106, 11, 106, 106, 106, 18, 106, + 106, 106, 106, 106, 106, 106, 45, 27, 1, 48, + 3, 50, 106, 52, 34, 106, 106, 37, 39, 40, + 106, 106, 39, 40, 106, 106, 106, 106, 48, 11, + 106, 106, 106, 15, 55, 56, 57, 58, 55, 56, + 57, 58, 106, 106, 106, 27, 39, 40, 106, 106, + 106, 106, 34, 106, 106, 37, 106, 106, 11, 106, + 106, 106, 55, 56, 57, 58, 48, 60, 106, 22, + 106, 24, 106, 106, 27, 106, 106, 106, 106, 106, + 106, 34, 106, 36, 106, 38, 106, 106, 106, 106, + 106, 106, 45, + ); + static public $yy_shift_ofst = array( + 559, 399, 99, 99, 349, 99, 399, 349, -3, -3, + 47, 99, 149, 449, 99, 99, 99, 99, 149, 99, + 99, 99, 99, 99, 99, 99, 99, 299, 249, 99, + 99, 99, 99, 99, 99, 99, 99, 199, 199, 499, + 499, 499, 499, 499, 499, 1635, 1644, 1741, 1741, 1741, + 1741, 1741, 559, 2029, 2057, 2033, 1954, 132, 1880, 1922, + 1962, 1942, 282, 232, 332, 332, 332, 332, 332, 332, + 332, 332, 332, 332, 332, 332, 382, 382, 576, 677, + 2030, 172, 263, 272, 391, 792, 1660, 543, 391, 272, + 272, 391, 412, 458, -8, 103, 91, 422, 372, 397, + 78, 159, 142, 142, 92, 615, 213, 558, 522, 569, + 166, 569, 555, 213, 470, 680, 32, 310, 32, 32, + 32, 310, 32, 32, 32, -23, -23, -23, 1896, 1812, + 1760, 2011, 1904, 509, 143, 8, 292, -9, 454, 213, + 213, 213, 213, 213, 213, 213, 213, 22, 454, 454, + 150, 213, 304, 454, 213, 454, 304, 454, 150, 213, + 454, 213, 213, 213, 213, 213, 213, 454, 441, 310, + 32, 310, 32, 174, 32, 32, 174, 101, 32, 171, + 310, -23, -23, -23, -23, -23, 1679, 2097, 2068, 347, + 435, 214, -22, 80, 59, 600, 487, 188, 387, 338, + 328, 94, 242, 362, 514, 438, 653, 638, 643, 654, + 627, 647, 675, 682, 687, 684, 662, 689, 640, 602, + 532, 477, 472, 464, 101, 444, 585, 598, 572, 619, + 587, 496, + ); + static public $yy_reduce_ofst = array( + 649, 530, 596, 564, 756, 681, 655, 711, 1149, 1177, + 1205, 1233, 1121, 1093, 981, 1009, 1037, 1289, 1261, 1429, + 1541, 953, 1485, 1569, 1513, 1457, 1317, 1345, 1373, 1401, + 1065, 813, 841, 897, 869, 925, 785, 1640, 1675, 1746, + -18, 1778, 1804, 1714, 1815, 512, 878, 990, 934, 878, + 573, 822, 57, 452, 452, 452, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 452, 452, + 452, 452, 452, 452, 452, 452, 452, 452, 134, 503, + 395, -7, 184, 145, -73, 440, -60, 285, 410, 156, + 167, 1, 230, 254, 539, 539, 5, 247, 247, 547, + 562, 330, 547, 579, 330, 247, 225, 330, 433, 416, + 247, 483, 507, 593, 605, 247, 247, 554, 247, 247, + 247, 330, 247, 247, 541, 247, 247, 247, 613, 613, + 613, 613, 613, 613, 642, 628, 613, 613, 614, 623, + 623, 623, 623, 623, 623, 623, 623, 639, 614, 614, + 641, 623, 624, 614, 623, 614, 634, 614, 651, 623, + 614, 623, 623, 623, 623, 623, 623, 614, 631, 320, + -17, 320, -17, -93, -17, -17, -93, -39, -17, 154, + 320, 323, 314, 176, 137, 380, + ); + static public $yyExpectedTokens = array( + array(4, 5, 6, 7, 8, 12, 13, 16, 19, 20, 21, 26, 30, 32, 33,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 31, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 53, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 52, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 54, 59,), + array(3, 12, 13, 14, 16, 17, 19, 20, 21, 26, 30, 32, 33, 35, 37, 42, 43, 44, 45, 47, 49, 51, 54, 59,), + array(1, 3, 25, 27, 34, 39, 40, 55, 56, 57, 58,), + array(1, 3, 11, 27, 34, 39, 40, 55, 56, 57, 58,), + array(1, 3, 27, 34, 39, 40, 55, 56, 57, 58,), + array(1, 3, 27, 34, 39, 40, 55, 56, 57, 58,), + array(1, 3, 27, 34, 39, 40, 55, 56, 57, 58,), + array(1, 3, 27, 34, 39, 40, 55, 56, 57, 58,), + array(1, 3, 27, 34, 39, 40, 55, 56, 57, 58,), + array(4, 5, 6, 7, 8, 12, 13, 16, 19, 20, 21, 26, 30, 32, 33,), + array(1, 3, 11, 39, 40, 55, 56, 57, 58,), + array(1, 3, 39, 40, 55, 56, 57, 58, 60,), + array(1, 3, 11, 39, 40, 55, 56, 57, 58,), + array(1, 3, 38, 39, 40, 55, 56, 57, 58,), + array(1, 3, 39, 40, 53, 55, 56, 57, 58,), + array(1, 3, 38, 39, 40, 55, 56, 57, 58,), + array(1, 2, 3, 39, 40, 55, 56, 57, 58,), + array(1, 3, 11, 39, 40, 55, 56, 57, 58,), + array(1, 3, 11, 39, 40, 55, 56, 57, 58,), + array(1, 3, 28, 39, 40, 55, 56, 57, 58,), + array(1, 3, 22, 39, 40, 55, 56, 57, 58,), + array(1, 3, 39, 40, 55, 56, 57, 58,), + array(1, 3, 39, 40, 55, 56, 57, 58,), + array(1, 3, 39, 40, 55, 56, 57, 58,), + array(1, 3, 39, 40, 55, 56, 57, 58,), + array(1, 3, 39, 40, 55, 56, 57, 58,), + array(1, 3, 39, 40, 55, 56, 57, 58,), + array(1, 3, 39, 40, 55, 56, 57, 58,), + array(1, 3, 39, 40, 55, 56, 57, 58,), + array(1, 3, 39, 40, 55, 56, 57, 58,), + array(1, 3, 39, 40, 55, 56, 57, 58,), + array(1, 3, 39, 40, 55, 56, 57, 58,), + array(1, 3, 39, 40, 55, 56, 57, 58,), + array(3, 39, 40, 55, 56, 57, 58,), + array(3, 39, 40, 55, 56, 57, 58,), + array(14, 17, 49, 51, 54,), + array(5, 12, 13, 14, 16, 19, 20, 21, 26, 30, 32, 33, 59, 60,), + array(1, 11, 18, 27, 34, 37, 48,), + array(1, 11, 27, 34,), + array(14, 17, 51, 54,), + array(1, 27, 34,), + array(14, 37, 54,), + array(5, 12, 13, 14, 16, 19, 20, 21, 26, 30, 32, 33, 59, 60,), + array(12, 13, 17, 27, 29, 34,), + array(12, 13, 17, 27, 34,), + array(14, 37, 54,), + array(1, 27, 34,), + array(1, 27, 34,), + array(14, 37, 54,), + array(18, 45, 52,), + array(1, 2,), + array(11, 23, 27, 34, 46,), + array(11, 23, 27, 34, 46,), + array(13, 14, 17, 54,), + array(1, 11, 27, 34,), + array(1, 11, 27, 34,), + array(12, 13, 17, 50,), + array(8, 9, 10,), + array(15, 18, 48,), + array(12, 13, 17,), + array(12, 13, 17,), + array(15, 18, 48,), + array(1, 11,), + array(27, 34,), + array(18, 48,), + array(1, 18,), + array(14, 17,), + array(1, 29,), + array(14, 17,), + array(14, 54,), + array(27, 34,), + array(27, 34,), + array(1, 53,), + array(1,), + array(18,), + array(1,), + array(1,), + array(1,), + array(18,), + array(1,), + array(1,), + array(1,), + array(), + array(), + array(), + array(2, 12, 13, 15, 17, 18, 45, 48, 50, 52,), + array(2, 12, 13, 15, 17, 18, 45, 48, 50, 52,), + array(2, 12, 13, 17, 18, 45, 48, 50, 52, 53,), + array(2, 12, 13, 17, 18, 45, 48, 50, 52,), + array(2, 12, 13, 17, 18, 45, 48, 50, 52,), + array(12, 13, 17, 18, 45, 48, 50, 52,), + array(13, 14, 17, 35, 54,), + array(12, 13, 17, 50,), + array(12, 13, 17,), + array(15, 45, 52,), + array(45, 52,), + array(27, 34,), + array(27, 34,), + array(27, 34,), + array(27, 34,), + array(27, 34,), + array(27, 34,), + array(27, 34,), + array(27, 34,), + array(15, 23,), + array(45, 52,), + array(45, 52,), + array(14, 54,), + array(27, 34,), + array(45, 52,), + array(45, 52,), + array(27, 34,), + array(45, 52,), + array(45, 52,), + array(45, 52,), + array(14, 54,), + array(27, 34,), + array(45, 52,), + array(27, 34,), + array(27, 34,), + array(27, 34,), + array(27, 34,), + array(27, 34,), + array(27, 34,), + array(45, 52,), + array(13, 37,), + array(18,), + array(1,), + array(18,), + array(1,), + array(2,), + array(1,), + array(1,), + array(2,), + array(37,), + array(1,), + array(9,), + array(18,), + array(), + array(), + array(), + array(), + array(), + array(1, 2, 3, 37, 39, 40, 48, 55, 56, 57, 58,), + array(11, 22, 24, 27, 34, 36, 38, 45,), + array(11, 15, 27, 34, 37, 48,), + array(12, 13, 17, 50,), + array(37, 45, 48, 53,), + array(23, 46, 60,), + array(23, 46, 53,), + array(29, 37, 48,), + array(36, 38,), + array(23, 46,), + array(37, 48,), + array(22, 36,), + array(37, 48,), + array(36, 38,), + array(17, 50,), + array(45, 53,), + array(36, 53,), + array(15, 45,), + array(37, 48,), + array(36, 38,), + array(51,), + array(45,), + array(35,), + array(14,), + array(35,), + array(17,), + array(17,), + array(17,), + array(15,), + array(17,), + array(38,), + array(5,), + array(17,), + array(41,), + array(17,), + array(53,), + array(17,), + array(53,), + array(37,), + array(11,), + array(17,), + array(17,), + array(24,), + array(17,), + array(37,), + array(51,), + 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 $yy_default = array( + 331, 506, 485, 485, 521, 485, 521, 521, 521, 521, + 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + 521, 521, 521, 521, 521, 387, 521, 365, 387, 352, + 387, 355, 328, 521, 521, 521, 521, 521, 521, 521, + 521, 521, 392, 521, 399, 392, 509, 508, 370, 389, + 394, 398, 507, 483, 484, 409, 414, 413, 521, 521, + 425, 401, 521, 387, 521, 521, 387, 387, 521, 387, + 387, 521, 497, 377, 415, 415, 521, 401, 401, 450, + 521, 440, 450, 450, 440, 401, 387, 440, 381, 521, + 401, 521, 521, 367, 387, 401, 408, 494, 401, 404, + 412, 440, 417, 418, 383, 405, 416, 492, 439, 439, + 439, 439, 439, 439, 521, 452, 450, 466, 448, 353, + 368, 372, 351, 373, 349, 356, 357, 521, 477, 478, + 521, 374, 443, 447, 376, 446, 445, 444, 521, 375, + 475, 363, 362, 361, 359, 369, 366, 476, 450, 498, + 384, 495, 382, 486, 378, 407, 487, 450, 434, 343, + 472, 491, 491, 491, 450, 450, 425, 421, 425, 451, + 425, 415, 415, 425, 521, 415, 521, 521, 435, 521, + 521, 421, 521, 421, 425, 521, 521, 421, 423, 521, + 521, 521, 521, 521, 521, 521, 521, 335, 521, 427, + 521, 521, 521, 430, 466, 521, 521, 521, 395, 521, + 496, 521, 427, 489, 481, 493, 456, 471, 488, 466, + 480, 371, 339, 338, 340, 341, 344, 342, 336, 337, + 330, 329, 332, 333, 334, 345, 400, 465, 468, 469, + 470, 380, 490, 386, 396, 347, 346, 385, 358, 364, + 388, 428, 410, 379, 411, 433, 463, 436, 510, 432, + 430, 515, 431, 512, 511, 473, 461, 442, 441, 474, + 517, 467, 518, 406, 499, 464, 500, 501, 502, 514, + 516, 438, 437, 449, 479, 453, 429, 482, 457, 458, + 460, 462, 419, 454, 455, 426, 424, 513, 520, 519, + 503, 505, 403, 402, 420, 422, 504, 459, + ); + public static $yyFallback = array(); + 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', + '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 attributes', + 'tag ::= LDEL value', + 'tag ::= LDEL value attributes', + 'tag ::= LDEL expr', + '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 ::= LDELMAKENOCACHE DOLLARID', + 'tag ::= LDELIF expr', + 'tag ::= LDELIF expr attributes', + 'tag ::= LDELIF statement', + 'tag ::= LDELIF statement attributes', + 'tag ::= LDELFOR statements SEMICOLON expr SEMICOLON varindexed foraction attributes', + 'foraction ::= EQUAL expr', + 'foraction ::= INCDEC', + 'tag ::= LDELFOR statement TO expr attributes', + 'tag ::= LDELFOR statement TO expr STEP expr attributes', + 'tag ::= LDELFOREACH SPACE expr AS varvar attributes', + 'tag ::= LDELFOREACH SPACE expr AS varvar APTR varvar attributes', + 'tag ::= LDELFOREACH attributes', + 'tag ::= LDELSETFILTER ID modparameters', + 'tag ::= LDELSETFILTER ID modparameters modifierlist', + '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 tlop value', + 'expr ::= expr lop expr', + 'expr ::= expr scond', + 'expr ::= expr ISIN array', + 'expr ::= expr ISIN value', + '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 ::= variable INSTANCEOF ns1', + 'value ::= variable INSTANCEOF variable', + '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 ::= SLOGOP', + 'tlop ::= 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 $yyRuleInfo = array( + array(0 => 62, 1 => 1), + array(0 => 63, 1 => 1), + array(0 => 63, 1 => 2), + array(0 => 63, 1 => 0), + array(0 => 64, 1 => 1), + array(0 => 64, 1 => 1), + array(0 => 64, 1 => 1), + array(0 => 64, 1 => 1), + array(0 => 67, 1 => 1), + array(0 => 67, 1 => 2), + array(0 => 64, 1 => 1), + array(0 => 64, 1 => 1), + array(0 => 66, 1 => 2), + array(0 => 66, 1 => 3), + array(0 => 68, 1 => 2), + array(0 => 68, 1 => 0), + array(0 => 69, 1 => 1), + array(0 => 69, 1 => 1), + array(0 => 65, 1 => 2), + array(0 => 65, 1 => 1), + array(0 => 70, 1 => 2), + array(0 => 70, 1 => 3), + array(0 => 70, 1 => 2), + array(0 => 70, 1 => 3), + array(0 => 70, 1 => 2), + array(0 => 70, 1 => 3), + array(0 => 70, 1 => 4), + array(0 => 70, 1 => 4), + array(0 => 70, 1 => 5), + array(0 => 70, 1 => 5), + array(0 => 65, 1 => 1), + array(0 => 70, 1 => 3), + array(0 => 70, 1 => 2), + array(0 => 70, 1 => 4), + array(0 => 70, 1 => 5), + array(0 => 70, 1 => 6), + array(0 => 70, 1 => 2), + array(0 => 70, 1 => 2), + array(0 => 70, 1 => 3), + array(0 => 70, 1 => 2), + array(0 => 70, 1 => 3), + array(0 => 70, 1 => 8), + array(0 => 79, 1 => 2), + array(0 => 79, 1 => 1), + array(0 => 70, 1 => 5), + array(0 => 70, 1 => 7), + array(0 => 70, 1 => 6), + array(0 => 70, 1 => 8), + array(0 => 70, 1 => 2), + array(0 => 70, 1 => 3), + array(0 => 70, 1 => 4), + array(0 => 70, 1 => 2), + array(0 => 65, 1 => 1), + array(0 => 70, 1 => 2), + array(0 => 70, 1 => 3), + array(0 => 70, 1 => 4), + array(0 => 70, 1 => 5), + array(0 => 72, 1 => 2), + array(0 => 72, 1 => 1), + array(0 => 72, 1 => 0), + array(0 => 82, 1 => 4), + array(0 => 82, 1 => 2), + array(0 => 82, 1 => 2), + array(0 => 82, 1 => 2), + array(0 => 82, 1 => 2), + array(0 => 82, 1 => 2), + array(0 => 82, 1 => 4), + array(0 => 78, 1 => 1), + array(0 => 78, 1 => 3), + array(0 => 77, 1 => 3), + array(0 => 77, 1 => 3), + array(0 => 77, 1 => 3), + array(0 => 77, 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 => 3), + array(0 => 74, 1 => 2), + array(0 => 74, 1 => 3), + array(0 => 74, 1 => 3), + array(0 => 83, 1 => 7), + array(0 => 83, 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 => 3), + 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 => 89, 1 => 1), + array(0 => 89, 1 => 1), + array(0 => 71, 1 => 1), + array(0 => 71, 1 => 1), + array(0 => 71, 1 => 3), + array(0 => 71, 1 => 1), + array(0 => 71, 1 => 3), + array(0 => 71, 1 => 4), + array(0 => 71, 1 => 3), + array(0 => 71, 1 => 4), + array(0 => 75, 1 => 2), + array(0 => 75, 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 => 80, 1 => 1), + array(0 => 80, 1 => 1), + array(0 => 80, 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 => 88, 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 => 76, 1 => 3), + array(0 => 76, 1 => 2), + array(0 => 100, 1 => 3), + array(0 => 100, 1 => 2), + array(0 => 81, 1 => 2), + array(0 => 81, 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 => 85, 1 => 1), + array(0 => 87, 1 => 1), + array(0 => 84, 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 $yyReduceMap = array( + 0 => 0, + 1 => 1, + 2 => 2, + 4 => 4, + 5 => 5, + 6 => 6, + 7 => 7, + 8 => 8, + 16 => 8, + 17 => 8, + 43 => 8, + 64 => 8, + 65 => 8, + 73 => 8, + 74 => 8, + 78 => 8, + 87 => 8, + 92 => 8, + 93 => 8, + 98 => 8, + 102 => 8, + 103 => 8, + 107 => 8, + 109 => 8, + 114 => 8, + 176 => 8, + 181 => 8, + 9 => 9, + 10 => 10, + 11 => 11, + 12 => 12, + 15 => 12, + 13 => 13, + 72 => 13, + 14 => 14, + 88 => 14, + 90 => 14, + 91 => 14, + 121 => 14, + 18 => 18, + 19 => 19, + 20 => 20, + 22 => 20, + 24 => 20, + 21 => 21, + 23 => 21, + 25 => 21, + 26 => 26, + 27 => 26, + 28 => 28, + 29 => 29, + 30 => 30, + 31 => 31, + 32 => 32, + 33 => 33, + 34 => 34, + 35 => 35, + 36 => 36, + 37 => 37, + 38 => 38, + 40 => 38, + 39 => 39, + 41 => 41, + 42 => 42, + 44 => 44, + 45 => 45, + 46 => 46, + 47 => 47, + 48 => 48, + 49 => 49, + 50 => 50, + 51 => 51, + 52 => 52, + 53 => 53, + 54 => 54, + 55 => 55, + 56 => 56, + 57 => 57, + 58 => 58, + 67 => 58, + 156 => 58, + 160 => 58, + 164 => 58, + 165 => 58, + 59 => 59, + 157 => 59, + 163 => 59, + 60 => 60, + 61 => 61, + 62 => 61, + 63 => 63, + 141 => 63, + 66 => 66, + 68 => 68, + 69 => 69, + 70 => 69, + 71 => 71, + 75 => 75, + 76 => 76, + 77 => 76, + 79 => 79, + 106 => 79, + 80 => 80, + 81 => 81, + 82 => 82, + 83 => 83, + 84 => 84, + 85 => 85, + 86 => 86, + 89 => 89, + 94 => 94, + 95 => 95, + 96 => 96, + 97 => 97, + 99 => 99, + 100 => 100, + 101 => 100, + 104 => 104, + 105 => 105, + 108 => 108, + 110 => 110, + 111 => 111, + 112 => 112, + 113 => 113, + 115 => 115, + 116 => 116, + 117 => 117, + 118 => 118, + 119 => 119, + 120 => 120, + 122 => 122, + 178 => 122, + 123 => 123, + 124 => 124, + 125 => 125, + 126 => 126, + 127 => 127, + 128 => 128, + 136 => 128, + 129 => 129, + 130 => 130, + 131 => 131, + 132 => 131, + 134 => 131, + 135 => 131, + 133 => 133, + 137 => 137, + 138 => 138, + 139 => 139, + 182 => 139, + 140 => 140, + 142 => 142, + 143 => 143, + 144 => 144, + 145 => 145, + 146 => 146, + 147 => 147, + 148 => 148, + 149 => 149, + 150 => 150, + 151 => 151, + 152 => 152, + 153 => 153, + 154 => 154, + 155 => 155, + 158 => 158, + 159 => 159, + 161 => 161, + 162 => 162, + 166 => 166, + 167 => 167, + 168 => 168, + 169 => 169, + 170 => 170, + 171 => 171, + 172 => 172, + 173 => 173, + 174 => 174, + 175 => 175, + 177 => 177, + 179 => 179, + 180 => 180, + 183 => 183, + 184 => 184, + 185 => 185, + 186 => 186, + 187 => 186, + 189 => 186, + 188 => 188, + 190 => 190, + 191 => 191, + 192 => 192, + ); /** * result status * @@ -936,32 +1695,45 @@ class Smarty_Internal_Templateparser public $template_postfix = array(); public $yyTraceFILE; public $yyTracePrompt; -public $yyidx; -public $yyerrcnt; -public $yystack = array(); - public $yyTokenName = array('$', 'VERT', 'COLON', 'UNIMATH', 'PHP', 'TEXT', 'STRIPON', 'STRIPOFF', 'LITERALSTART', - 'LITERALEND', 'LITERAL', 'RDEL', 'SIMPELOUTPUT', 'LDEL', 'DOLLARID', 'EQUAL', - 'SIMPLETAG', 'ID', 'PTR', 'LDELMAKENOCACHE', 'LDELIF', 'LDELFOR', 'SEMICOLON', 'INCDEC', - 'TO', 'STEP', 'LDELFOREACH', 'SPACE', 'AS', 'APTR', 'LDELSETFILTER', - 'SMARTYBLOCKCHILDPARENT', 'CLOSETAG', 'LDELSLASH', 'ATTR', 'INTEGER', 'COMMA', 'OPENP', - 'CLOSEP', 'MATH', 'ISIN', 'QMARK', 'NOT', 'TYPECAST', 'HEX', 'DOT', 'INSTANCEOF', - 'SINGLEQUOTESTRING', 'DOUBLECOLON', 'NAMESPACE', 'AT', 'HATCH', 'OPENB', 'CLOSEB', - 'DOLLAR', 'LOGOP', 'SLOGOP', 'TLOGOP', 'SINGLECOND', 'QUOTE', 'BACKTICK', 'error', - 'start', 'template', 'template_element', 'smartytag', 'literal', 'text_content', - 'literal_elements', 'literal_element', 'tag', 'variable', 'attributes', 'value', 'expr', - 'varindexed', 'modifierlist', 'statement', 'statements', 'foraction', 'varvar', - 'modparameters', 'attribute', 'ternary', 'array', 'tlop', 'lop', 'scond', 'function', - 'ns1', 'doublequoted_with_quotes', 'static_class_access', 'object', 'arrayindex', - 'indexdef', 'varvarele', 'objectchain', 'objectelement', 'method', 'params', 'modifier', - 'modparameter', 'arrayelements', 'arrayelement', 'doublequoted', - 'doublequotedcontent',); /* Index of top element in stack */ - /** + public $yyidx; + public $yyerrcnt; + public $yystack = array(); + public $yyTokenName = array( + '$', 'VERT', 'COLON', 'UNIMATH', + 'PHP', 'TEXT', 'STRIPON', 'STRIPOFF', + 'LITERALSTART', 'LITERALEND', 'LITERAL', 'RDEL', + 'SIMPELOUTPUT', 'LDEL', 'DOLLARID', 'EQUAL', + 'SIMPLETAG', 'ID', 'PTR', 'LDELMAKENOCACHE', + 'LDELIF', 'LDELFOR', 'SEMICOLON', 'INCDEC', + 'TO', 'STEP', 'LDELFOREACH', 'SPACE', + 'AS', 'APTR', 'LDELSETFILTER', 'SMARTYBLOCKCHILDPARENT', + 'CLOSETAG', 'LDELSLASH', 'ATTR', 'INTEGER', + 'COMMA', 'OPENP', 'CLOSEP', 'MATH', + 'ISIN', 'QMARK', 'NOT', 'TYPECAST', + 'HEX', 'DOT', 'INSTANCEOF', 'SINGLEQUOTESTRING', + 'DOUBLECOLON', 'NAMESPACE', 'AT', 'HATCH', + 'OPENB', 'CLOSEB', 'DOLLAR', 'LOGOP', + 'SLOGOP', 'TLOGOP', 'SINGLECOND', 'QUOTE', + 'BACKTICK', 'error', 'start', 'template', + 'template_element', 'smartytag', 'literal', 'text_content', + 'literal_elements', 'literal_element', 'tag', 'variable', + 'attributes', 'value', 'expr', 'varindexed', + 'modifierlist', 'statement', 'statements', 'foraction', + 'varvar', 'modparameters', 'attribute', 'ternary', + 'array', 'tlop', 'lop', 'scond', + 'function', 'ns1', 'doublequoted_with_quotes', 'static_class_access', + 'object', 'arrayindex', 'indexdef', 'varvarele', + 'objectchain', 'objectelement', 'method', 'params', + 'modifier', 'modparameter', 'arrayelements', 'arrayelement', + 'doublequoted', 'doublequotedcontent', + ); /* Index of top element in stack */ + /** * internal error flag * * @var bool */ private $internalError = false; /* Shifts left before out of the error */ - private $_retvalue; /* The parser's stack */ + private $_retvalue; /* The parser's stack */ /** * constructor @@ -979,6 +1751,14 @@ public $yystack = array(); $this->current_buffer = $this->root_buffer = new Smarty_Internal_ParseTree_Template(); } + public static function yy_destructor($yymajor, $yypminor) + { + switch ($yymajor) { + default: + break; /* If no destructor action specified: do nothing */ + } + } + /** * insert PHP code in current buffer * @@ -989,6 +1769,24 @@ public $yystack = array(); $this->current_buffer->append_subtree($this, new Smarty_Internal_ParseTree_Tag($this, $code)); } + /** + * merge PHP code with prefix code and return parse tree tag object + * + * @param string $code + * + * @return Smarty_Internal_ParseTree_Tag + */ + public function mergePrefixCode($code) + { + $tmp = ''; + foreach ($this->compiler->prefix_code as $preCode) { + $tmp .= $preCode; + } + $this->compiler->prefix_code = array(); + $tmp .= $code; + return new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode($tmp, true)); + } + public function Trace($TraceFILE, $zTracePrompt) { if (!$TraceFILE) { @@ -1018,16 +1816,6 @@ public $yystack = array(); } } - public function __destruct() - { - while ($this->yystack !== Array()) { - $this->yy_pop_parser_stack(); - } - if (is_resource($this->yyTraceFILE)) { - fclose($this->yyTraceFILE); - } - } - public function yy_pop_parser_stack() { if (empty($this->yystack)) { @@ -1036,7 +1824,8 @@ public $yystack = array(); $yytos = array_pop($this->yystack); if ($this->yyTraceFILE && $this->yyidx >= 0) { fwrite($this->yyTraceFILE, - $this->yyTracePrompt . 'Popping ' . $this->yyTokenName[ $yytos->major ] . "\n"); + $this->yyTracePrompt . 'Popping ' . $this->yyTokenName[ $yytos->major ] . + "\n"); } $yymajor = $yytos->major; self::yy_destructor($yymajor, $yytos->minor); @@ -1045,11 +1834,13 @@ public $yystack = array(); return $yymajor; } - public static function yy_destructor($yymajor, $yypminor) + public function __destruct() { - switch ($yymajor) { - default: - break; /* If no destructor action specified: do nothing */ + while ($this->yystack !== Array()) { + $this->yy_pop_parser_stack(); + } + if (is_resource($this->yyTraceFILE)) { + fclose($this->yyTraceFILE); } } @@ -1085,8 +1876,9 @@ public $yystack = array(); } $yyruleno = $yyact - self::YYNSTATE; $this->yyidx -= self::$yyRuleInfo[ $yyruleno ][1]; - $nextstate = $this->yy_find_reduce_action($this->yystack[ $this->yyidx ]->stateno, - self::$yyRuleInfo[ $yyruleno ][0]); + $nextstate = $this->yy_find_reduce_action( + $this->yystack[ $this->yyidx ]->stateno, + self::$yyRuleInfo[ $yyruleno ][0]); if (isset(self::$yyExpectedTokens[ $nextstate ])) { $expected = array_merge($expected, self::$yyExpectedTokens[ $nextstate ]); if (isset($res4[ $nextstate ][ $token ])) { @@ -1137,1558 +1929,6 @@ public $yystack = array(); return array_unique($expected); } - public function yy_find_shift_action($iLookAhead) - { - $stateno = $this->yystack[ $this->yyidx ]->stateno; - - /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */ - if (!isset(self::$yy_shift_ofst[ $stateno ])) { - // no shift actions - return self::$yy_default[ $stateno ]; - } - $i = self::$yy_shift_ofst[ $stateno ]; - if ($i === self::YY_SHIFT_USE_DFLT) { - return self::$yy_default[ $stateno ]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || self::$yy_lookahead[ $i ] != $iLookAhead) { - if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) && - ($iFallback = self::$yyFallback[ $iLookAhead ]) != 0) { - if ($this->yyTraceFILE) { - fwrite($this->yyTraceFILE, - $this->yyTracePrompt . "FALLBACK " . $this->yyTokenName[ $iLookAhead ] . " => " . - $this->yyTokenName[ $iFallback ] . "\n"); - } - - return $this->yy_find_shift_action($iFallback); - } - - return self::$yy_default[ $stateno ]; - } else { - return self::$yy_action[ $i ]; - } - } - - public function yy_find_reduce_action($stateno, $iLookAhead) - { - /* $stateno = $this->yystack[$this->yyidx]->stateno; */ - - if (!isset(self::$yy_reduce_ofst[ $stateno ])) { - return self::$yy_default[ $stateno ]; - } - $i = self::$yy_reduce_ofst[ $stateno ]; - if ($i == self::YY_REDUCE_USE_DFLT) { - return self::$yy_default[ $stateno ]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || self::$yy_lookahead[ $i ] != $iLookAhead) { - return self::$yy_default[ $stateno ]; - } else { - return self::$yy_action[ $i ]; - } - } - - function yy_r0() - { - $this->root_buffer->prepend_array($this, $this->template_prefix); - $this->root_buffer->append_array($this, $this->template_postfix); - $this->_retvalue = $this->root_buffer->to_smarty_php($this); - } - - function yy_r1() - { - if ($this->yystack[ $this->yyidx + 0 ]->minor != null) { - $this->current_buffer->append_subtree($this, $this->yystack[ $this->yyidx + 0 ]->minor); - } - } - - #line 219 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r2() - { - if ($this->yystack[ $this->yyidx + 0 ]->minor != null) { - // because of possible code injection - $this->current_buffer->append_subtree($this, $this->yystack[ $this->yyidx + 0 ]->minor); - } - } - - #line 229 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r4() - { - if ($this->compiler->has_code) { - $this->_retvalue = $this->mergePrefixCode($this->yystack[ $this->yyidx + 0 ]->minor); - } else { - $this->_retvalue = null; - } - $this->compiler->has_variable_string = false; - $this->block_nesting_level = count($this->compiler->_tag_stack); - } - - #line 236 "../smarty/lexer/smarty_internal_templateparser.y" - - /** - * merge PHP code with prefix code and return parse tree tag object - * - * @param string $code - * - * @return Smarty_Internal_ParseTree_Tag - */ - public function mergePrefixCode($code) - { - $tmp = ''; - foreach ($this->compiler->prefix_code as $preCode) { - $tmp .= $preCode; - } - $this->compiler->prefix_code = array(); - $tmp .= $code; - return new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode($tmp, true)); - } - - #line 250 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r5() - { - $this->_retvalue = new Smarty_Internal_ParseTree_Text($this->yystack[ $this->yyidx + 0 ]->minor); - } - - #line 261 "../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()); - if ($this->compiler->has_code && !empty($code)) { - $tmp = ''; - foreach ($this->compiler->prefix_code as $code) { - $tmp .= $code; - } - $this->compiler->prefix_code = array(); - $this->_retvalue = - new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode($tmp . $code, true)); - } else { - $this->_retvalue = null; - } - } - - #line 265 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r7() - { - $this->_retvalue = $this->compiler->processText($this->yystack[ $this->yyidx + 0 ]->minor); - } - - #line 276 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r8() - { - $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 280 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r9() - { - $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 284 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r10() - { - $this->strip = true; - } - - #line 289 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r11() - { - $this->strip = false; - } - - #line 293 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r12() - { - $this->_retvalue = ''; - } - - #line 298 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r13() - { - $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor; - } - - #line 302 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r14() - { - $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 306 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r18() - { - $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor; - } - - #line 322 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r19() - { - $var = - trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->lex->ldel_length, -$this->lex->rdel_length), - ' $'); - if (preg_match('/^(.*)(\s+nocache)$/', $var, $match)) { - $this->_retvalue = $this->compiler->compileTag('private_print_expression', - array('nocache'), - array('value' => $this->compiler->compileVariable('\'' . - $match[1] . - '\''))); - } else { - $this->_retvalue = $this->compiler->compileTag('private_print_expression', - array(), - array('value' => $this->compiler->compileVariable('\'' . - $var . - '\''))); - } - } - - #line 328 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r20() - { - $this->_retvalue = $this->compiler->compileTag('private_print_expression', - array(), - array('value' => $this->yystack[ $this->yyidx + 0 ]->minor)); - } - - #line 338 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r21() - { - $this->_retvalue = $this->compiler->compileTag('private_print_expression', - $this->yystack[ $this->yyidx + 0 ]->minor, - array('value' => $this->yystack[ $this->yyidx + -1 ]->minor)); - } - - #line 342 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r26() - { - $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 365 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r28() - { - $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 373 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r29() - { - $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 377 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r30() - { - $tag = - trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->lex->ldel_length, -$this->lex->rdel_length)); - if ($tag == 'strip') { - $this->strip = true; - $this->_retvalue = null;; - } else { - if (defined($tag)) { - if ($this->security) { - $this->security->isTrustedConstant($tag, $this->compiler); - } - $this->_retvalue = - $this->compiler->compileTag('private_print_expression', array(), array('value' => $tag)); - } else { - if (preg_match('/^(.*)(\s+nocache)$/', $tag, $match)) { - $this->_retvalue = $this->compiler->compileTag($match[1], array("'nocache'")); - } else { - $this->_retvalue = $this->compiler->compileTag($tag, array()); - } - } - } - } - - #line 382 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r31() - { - if (defined($this->yystack[ $this->yyidx + -1 ]->minor)) { - if ($this->security) { - $this->security->isTrustedConstant($this->yystack[ $this->yyidx + -1 ]->minor, $this->compiler); - } - $this->_retvalue = $this->compiler->compileTag('private_print_expression', - $this->yystack[ $this->yyidx + 0 ]->minor, - array('value' => $this->yystack[ $this->yyidx + - -1 ]->minor)); - } else { - $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -1 ]->minor, - $this->yystack[ $this->yyidx + 0 ]->minor); - } - } - - #line 404 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r32() - { - if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) { - if ($this->security) { - $this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler); - } - $this->_retvalue = $this->compiler->compileTag('private_print_expression', - array(), - array('value' => $this->yystack[ $this->yyidx + 0 ]->minor)); - } else { - $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + 0 ]->minor, array()); - } - } - - #line 414 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r33() - { - if (defined($this->yystack[ $this->yyidx + -2 ]->minor)) { - if ($this->security) { - $this->security->isTrustedConstant($this->yystack[ $this->yyidx + -2 ]->minor, $this->compiler); - } - $this->_retvalue = $this->compiler->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, - array('modifierlist' => $this->yystack[ $this->yyidx + - -1 ]->minor)); - } - } - - #line 427 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r34() - { - $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 439 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r35() - { - $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -4 ]->minor, - $this->yystack[ $this->yyidx + 0 ]->minor, - array('modifierlist' => $this->yystack[ $this->yyidx + - -1 ]->minor, - 'object_method' => $this->yystack[ $this->yyidx + - -2 ]->minor)); - } - - #line 444 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r36() - { - $this->_retvalue = $this->compiler->compileTag('make_nocache', - array(array('var' => '\'' . substr($this->yystack[ $this->yyidx + - 0 ]->minor, - 1) . '\''))); - } - - #line 449 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r37() - { - $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 454 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r38() - { - $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 459 "../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 464 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r41() - { - $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 475 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r42() - { - $this->_retvalue = '=' . $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 479 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r44() - { - $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 487 "../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 + - -5 ]->minor), - array('to' => $this->yystack[ $this->yyidx + - -3 ]->minor), - array('step' => $this->yystack[ $this->yyidx + - -1 ]->minor))), - 0); - } - - #line 491 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r46() - { - $this->_retvalue = $this->compiler->compileTag('foreach', $this->yystack[ $this->yyidx + 0 ]->minor); - } - - #line 496 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r47() - { - $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 501 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r48() - { - $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 505 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r51() - { - $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 518 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r52() - { - $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 522 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r53() - { - $j = strrpos($this->yystack[ $this->yyidx + 0 ]->minor, '.'); - if ($this->yystack[ $this->yyidx + 0 ]->minor[ $j + 1 ] == 'c') { - // {$smarty.block.child} - $this->_retvalue = $this->compiler->compileTag('block_child', array());; - } else { - // {$smarty.block.parent} - $this->_retvalue = $this->compiler->compileTag('block_parent', array());; - } - } - - #line 527 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r54() - { - $tag = - trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->lex->ldel_length, -$this->lex->rdel_length), - ' /'); - if ($tag == 'strip') { - $this->strip = false; - $this->_retvalue = null; - } else { - $this->_retvalue = $this->compiler->compileTag($tag . 'close', array()); - } - } - - #line 540 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r55() - { - $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + 0 ]->minor . 'close', array()); - } - - #line 549 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r56() - { - $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -1 ]->minor . 'close', - array(), - array('modifier_list' => $this->yystack[ $this->yyidx + - 0 ]->minor)); - } - - #line 553 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r57() - { - $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -2 ]->minor . 'close', - array(), - array('object_method' => $this->yystack[ $this->yyidx + - 0 ]->minor)); - } - - #line 558 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r58() - { - $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 562 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r59() - { - $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor; - $this->_retvalue[] = $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 570 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r60() - { - $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor); - } - - #line 576 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r61() - { - $this->_retvalue = array(); - } - - #line 581 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r62() - { - if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) { - if ($this->security) { - $this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler); - } - $this->_retvalue = - array($this->yystack[ $this->yyidx + -2 ]->minor => $this->yystack[ $this->yyidx + 0 ]->minor); - } else { - $this->_retvalue = - array($this->yystack[ $this->yyidx + -2 ]->minor => '\'' . $this->yystack[ $this->yyidx + 0 ]->minor . - '\''); - } - } - - #line 586 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r63() - { - $this->_retvalue = - array(trim($this->yystack[ $this->yyidx + -1 ]->minor, " =\n\r\t") => $this->yystack[ $this->yyidx + - 0 ]->minor); - } - - #line 597 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r65() - { - $this->_retvalue = '\'' . $this->yystack[ $this->yyidx + 0 ]->minor . '\''; - } - - #line 605 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r68() - { - $this->_retvalue = - array($this->yystack[ $this->yyidx + -2 ]->minor => $this->yystack[ $this->yyidx + 0 ]->minor); - } - - #line 617 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r70() - { - $this->yystack[ $this->yyidx + -2 ]->minor[] = $this->yystack[ $this->yyidx + 0 ]->minor; - $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor; - } - - #line 630 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r71() - { - $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_r73() - { - $this->_retvalue = array('var' => $this->yystack[ $this->yyidx + -2 ]->minor, - 'value' => $this->yystack[ $this->yyidx + 0 ]->minor); - } - - #line 642 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r77() - { - $this->_retvalue = - '$_smarty_tpl->getStreamVariable(\'' . substr($this->yystack[ $this->yyidx + -2 ]->minor, 1) . '://' . - $this->yystack[ $this->yyidx + 0 ]->minor . '\')'; - } - - #line 666 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r78() - { - $this->_retvalue = - $this->yystack[ $this->yyidx + -2 ]->minor . trim($this->yystack[ $this->yyidx + -1 ]->minor) . - $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 671 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r81() - { - $this->_retvalue = $this->compiler->compileTag('private_modifier', - array(), - array('value' => $this->yystack[ $this->yyidx + -1 ]->minor, - 'modifierlist' => $this->yystack[ $this->yyidx + - 0 ]->minor)); - } - - #line 685 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r82() - { - $this->_retvalue = - $this->yystack[ $this->yyidx + -1 ]->minor['pre'] . $this->yystack[ $this->yyidx + -2 ]->minor . - $this->yystack[ $this->yyidx + -1 ]->minor['op'] . $this->yystack[ $this->yyidx + 0 ]->minor . ')'; - } - - #line 691 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r83() - { - $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor . - $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 695 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r84() - { - $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor . ')'; - } - - #line 699 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r85() - { - $this->_retvalue = - 'in_array(' . $this->yystack[ $this->yyidx + -2 ]->minor . ',' . $this->yystack[ $this->yyidx + 0 ]->minor . - ')'; - } - - #line 703 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r86() - { - $this->_retvalue = 'in_array(' . $this->yystack[ $this->yyidx + -2 ]->minor . ',(array)' . - $this->yystack[ $this->yyidx + 0 ]->minor . ')'; - } - - #line 707 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r87() - { - $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 715 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r88() - { - $this->_retvalue = - $this->yystack[ $this->yyidx + -5 ]->minor . ' ? ' . $this->yystack[ $this->yyidx + -2 ]->minor . ' : ' . - $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 719 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r91() - { - $this->_retvalue = '!' . $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 734 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r96() - { - $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . '.' . $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 755 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r97() - { - $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . '.'; - } - - #line 759 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r98() - { - $this->_retvalue = '.' . $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 763 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r99() - { - if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) { - if ($this->security) { - $this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler); - } - $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor; - } else { - $this->_retvalue = '\'' . $this->yystack[ $this->yyidx + 0 ]->minor . '\''; - } - } - - #line 768 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r101() - { - $this->_retvalue = "(" . $this->yystack[ $this->yyidx + -1 ]->minor . ")"; - } - - #line 785 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r102() - { - $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor . - $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 789 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r106() - { - $prefixVar = $this->compiler->getNewPrefixVariable(); - if ($this->yystack[ $this->yyidx + -2 ]->minor['var'] == '\'smarty\'') { - $this->compiler->appendPrefixCode("compiler->compileTag('private_special_variable', - array(), - $this->yystack[ $this->yyidx + - -2 ]->minor['smarty_internal_index']) . - ';?>'); - } else { - $this->compiler->appendPrefixCode("compiler->compileVariable($this->yystack[ $this->yyidx + - -2 ]->minor['var']) . - $this->yystack[ $this->yyidx + -2 ]->minor['smarty_internal_index'] . - ';?>'); - } - $this->_retvalue = $prefixVar . '::' . $this->yystack[ $this->yyidx + 0 ]->minor[0] . - $this->yystack[ $this->yyidx + 0 ]->minor[1]; - } - - #line 807 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r107() - { - $prefixVar = $this->compiler->getNewPrefixVariable(); - $tmp = $this->compiler->appendCode('', $this->yystack[ $this->yyidx + 0 ]->minor); - $this->compiler->appendPrefixCode($this->compiler->appendCode($tmp, "')); - $this->_retvalue = $prefixVar; - } - - #line 818 "../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->security->isTrustedStaticClassAccess($this->yystack[ $this->yyidx + -2 ]->minor, - $this->yystack[ $this->yyidx + 0 ]->minor, - $this->compiler))) { - if (isset($this->smarty->registered_classes[ $this->yystack[ $this->yyidx + -2 ]->minor ])) { - $this->_retvalue = - $this->smarty->registered_classes[ $this->yystack[ $this->yyidx + -2 ]->minor ] . '::' . - $this->yystack[ $this->yyidx + 0 ]->minor[0] . $this->yystack[ $this->yyidx + 0 ]->minor[1]; - } else { - $this->_retvalue = - $this->yystack[ $this->yyidx + -2 ]->minor . '::' . $this->yystack[ $this->yyidx + 0 ]->minor[0] . - $this->yystack[ $this->yyidx + 0 ]->minor[1]; - } - } else { - $this->compiler->trigger_template_error("static class '" . $this->yystack[ $this->yyidx + -2 ]->minor . - "' is undefined or not allowed by security setting"); - } - } - - #line 835 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r112() - { - $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #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 865 "../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']); - $this->_retvalue = $smarty_var; - } else { - // used for array reset,next,prev,end,current - $this->last_variable = $this->yystack[ $this->yyidx + 0 ]->minor['var']; - $this->last_index = $this->yystack[ $this->yyidx + 0 ]->minor['smarty_internal_index']; - $this->_retvalue = $this->compiler->compileVariable($this->yystack[ $this->yyidx + 0 ]->minor['var']) . - $this->yystack[ $this->yyidx + 0 ]->minor['smarty_internal_index']; - } - } - - #line 868 "../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 881 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r117() - { - $this->_retvalue = - $this->compiler->compileConfigVariable("'" . $this->yystack[ $this->yyidx + -1 ]->minor . "'"); - } - - #line 891 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r118() - { - $this->_retvalue = '(is_array($tmp = ' . - $this->compiler->compileConfigVariable("'" . $this->yystack[ $this->yyidx + -2 ]->minor . - "'") . ') ? $tmp' . - $this->yystack[ $this->yyidx + 0 ]->minor . ' :null)'; - } - - #line 895 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r119() - { - $this->_retvalue = $this->compiler->compileConfigVariable($this->yystack[ $this->yyidx + -1 ]->minor); - } - - #line 899 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r120() - { - $this->_retvalue = - '(is_array($tmp = ' . $this->compiler->compileConfigVariable($this->yystack[ $this->yyidx + -2 ]->minor) . - ') ? $tmp' . $this->yystack[ $this->yyidx + 0 ]->minor . ' : null)'; - } - - #line 903 "../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); - } - - #line 907 "../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 910 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r124() - { - return; - } - - #line 923 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r125() - { - $this->_retvalue = - '[' . $this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\'') . - ']'; - } - - #line 929 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r126() - { - $this->_retvalue = '[' . $this->compiler->compileVariable($this->yystack[ $this->yyidx + 0 ]->minor) . ']'; - } - - #line 932 "../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 936 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r128() - { - $this->_retvalue = "['" . $this->yystack[ $this->yyidx + 0 ]->minor . "']"; - } - - #line 940 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r129() - { - $this->_retvalue = '[' . $this->yystack[ $this->yyidx + 0 ]->minor . ']'; - } - - #line 944 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r130() - { - $this->_retvalue = '[' . $this->yystack[ $this->yyidx + -1 ]->minor . ']'; - } - - #line 949 "../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 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 958 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r133() - { - $this->_retvalue = '[' . $this->yystack[ $this->yyidx + -1 ]->minor . ']'; - } - - #line 961 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r135() - { - $this->_retvalue = '[' . $this->compiler->compileVariable('\'' . - substr($this->yystack[ $this->yyidx + -1 ]->minor, - 1) . '\'') . ']';; - } - - #line 967 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r139() - { - $this->_retvalue = '[]'; - } - - #line 983 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r140() - { - $this->_retvalue = '\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\''; - } - - #line 993 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r141() - { - $this->_retvalue = "''"; - } - - #line 997 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r142() - { - $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . '.' . $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 1002 "../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 1010 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r145() - { - $this->_retvalue = '(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')'; - } - - #line 1016 "../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; - } else { - $this->_retvalue = $this->compiler->compileVariable($this->yystack[ $this->yyidx + -1 ]->minor['var']) . - $this->yystack[ $this->yyidx + -1 ]->minor['smarty_internal_index'] . - $this->yystack[ $this->yyidx + 0 ]->minor; - } - } - - #line 1023 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r147() - { - $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 1032 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r148() - { - $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 1037 "../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); - } - $this->_retvalue = - '->' . $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 1042 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r150() - { - if ($this->security) { - $this->compiler->trigger_template_error(self::Err2); - } - $this->_retvalue = '->{' . $this->compiler->compileVariable($this->yystack[ $this->yyidx + -1 ]->minor) . - $this->yystack[ $this->yyidx + 0 ]->minor . '}'; - } - - #line 1049 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r151() - { - if ($this->security) { - $this->compiler->trigger_template_error(self::Err2); - } - $this->_retvalue = - '->{' . $this->yystack[ $this->yyidx + -2 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor . '}'; - } - - #line 1056 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r152() - { - if ($this->security) { - $this->compiler->trigger_template_error(self::Err2); - } - $this->_retvalue = - '->{\'' . $this->yystack[ $this->yyidx + -4 ]->minor . '\'.' . $this->yystack[ $this->yyidx + -2 ]->minor . - $this->yystack[ $this->yyidx + 0 ]->minor . '}'; - } - - #line 1063 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r153() - { - $this->_retvalue = '->' . $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 1071 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r154() - { - $this->_retvalue = $this->compiler->compilePHPFunctionCall($this->yystack[ $this->yyidx + -3 ]->minor, - $this->yystack[ $this->yyidx + -1 ]->minor); - } - - #line 1079 "../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); - } - $this->_retvalue = $this->yystack[ $this->yyidx + -3 ]->minor . "(" . - implode(',', $this->yystack[ $this->yyidx + -1 ]->minor) . ")"; - } - - #line 1087 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r156() - { - if ($this->security) { - $this->compiler->trigger_template_error(self::Err2); - } - $prefixVar = $this->compiler->getNewPrefixVariable(); - $this->compiler->appendPrefixCode("compiler->compileVariable('\'' . - substr($this->yystack[ $this->yyidx + - -3 ]->minor, - 1) . - '\'') . ';?>'); - $this->_retvalue = $prefixVar . '(' . implode(',', $this->yystack[ $this->yyidx + -1 ]->minor) . ')'; - } - - #line 1094 "../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 1105 "../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 1122 "../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 1126 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r163() - { - $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor); - } - - #line 1134 "../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 1142 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r168() - { - $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor, '', 'method'); - } - - #line 1161 "../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'); - } - - #line 1166 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r170() - { - $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor, ''); - } - - #line 1171 "../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 1176 "../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 1181 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r173() - { - $this->_retvalue = ' ' . trim($this->yystack[ $this->yyidx + 0 ]->minor) . ' '; - } - - #line 1187 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r174() - { - static $lops = - array('eq' => ' == ', 'ne' => ' != ', 'neq' => ' != ', 'gt' => ' > ', 'ge' => ' >= ', 'gte' => ' >= ', - 'lt' => ' < ', 'le' => ' <= ', 'lte' => ' <= ', 'mod' => ' % ', 'and' => ' && ', 'or' => ' || ', - 'xor' => ' xor ',); - $op = strtolower(preg_replace('/\s*/', '', $this->yystack[ $this->yyidx + 0 ]->minor)); - $this->_retvalue = $lops[ $op ]; - } - - #line 1191 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r175() - { - static $tlops = - array('isdivby' => array('op' => ' % ', 'pre' => '!('), 'isnotdivby' => array('op' => ' % ', 'pre' => '('), - 'isevenby' => array('op' => ' / ', 'pre' => '!(1 & '), - 'isnotevenby' => array('op' => ' / ', 'pre' => '(1 & '), - 'isoddby' => array('op' => ' / ', 'pre' => '(1 & '), - 'isnotoddby' => array('op' => ' / ', 'pre' => '!(1 & '),); - $op = strtolower(preg_replace('/\s*/', '', $this->yystack[ $this->yyidx + 0 ]->minor)); - $this->_retvalue = $tlops[ $op ]; - } - - #line 1210 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r176() - { - 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 1223 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r177() - { - $this->_retvalue = 'array(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')'; - } - - #line 1237 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r179() - { - $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . ',' . $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 1245 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r181() - { - $this->_retvalue = - $this->yystack[ $this->yyidx + -2 ]->minor . '=>' . $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 1253 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r182() - { - $this->_retvalue = - '\'' . $this->yystack[ $this->yyidx + -2 ]->minor . '\'=>' . $this->yystack[ $this->yyidx + 0 ]->minor; - } - - #line 1257 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r185() - { - $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor->to_smarty_php($this); - } - - #line 1273 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r186() - { - $this->yystack[ $this->yyidx + -1 ]->minor->append_subtree($this, $this->yystack[ $this->yyidx + 0 ]->minor); - $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor; - } - - #line 1278 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r187() - { - $this->_retvalue = new Smarty_Internal_ParseTree_Dq($this, $this->yystack[ $this->yyidx + 0 ]->minor); - } - - #line 1283 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r188() - { - $this->_retvalue = new Smarty_Internal_ParseTree_Code('(string)' . $this->yystack[ $this->yyidx + -1 ]->minor); - } - - #line 1287 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r190() - { - $this->_retvalue = new Smarty_Internal_ParseTree_Code('(string)$_smarty_tpl->tpl_vars[\'' . - substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . - '\']->value'); - } - - #line 1295 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r192() - { - $this->_retvalue = - new Smarty_Internal_ParseTree_Code('(string)(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')'); - } - - #line 1303 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r193() - { - $this->_retvalue = new Smarty_Internal_ParseTree_Tag($this, $this->yystack[ $this->yyidx + 0 ]->minor); - } - - #line 1307 "../smarty/lexer/smarty_internal_templateparser.y" - - function yy_r194() - { - $this->_retvalue = new Smarty_Internal_ParseTree_DqContent($this->yystack[ $this->yyidx + 0 ]->minor); - } - - #line 1311 "../smarty/lexer/smarty_internal_templateparser.y" - - public function doParse($yymajor, $yytokenvalue) - { - $yyerrorhit = 0; /* True if yymajor has invoked an error */ - - if ($this->yyidx === null || $this->yyidx < 0) { - $this->yyidx = 0; - $this->yyerrcnt = -1; - $x = new TP_yyStackEntry; - $x->stateno = 0; - $x->major = 0; - $this->yystack = array(); - $this->yystack[] = $x; - } - $yyendofinput = ($yymajor == 0); - - if ($this->yyTraceFILE) { - fprintf($this->yyTraceFILE, - "%sInput %s\n", - $this->yyTracePrompt, - $this->yyTokenName[ $yymajor ]); - } - - do { - $yyact = $this->yy_find_shift_action($yymajor); - if ($yymajor < self::YYERRORSYMBOL && !$this->yy_is_expected_token($yymajor)) { - // force a syntax error - $yyact = self::YY_ERROR_ACTION; - } - if ($yyact < self::YYNSTATE) { - $this->yy_shift($yyact, $yymajor, $yytokenvalue); - $this->yyerrcnt--; - if ($yyendofinput && $this->yyidx >= 0) { - $yymajor = 0; - } else { - $yymajor = self::YYNOCODE; - } - } else if ($yyact < self::YYNSTATE + self::YYNRULE) { - $this->yy_reduce($yyact - self::YYNSTATE); - } else if ($yyact == self::YY_ERROR_ACTION) { - if ($this->yyTraceFILE) { - fprintf($this->yyTraceFILE, - "%sSyntax Error!\n", - $this->yyTracePrompt); - } - if (self::YYERRORSYMBOL) { - if ($this->yyerrcnt < 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $yymx = $this->yystack[ $this->yyidx ]->major; - if ($yymx == self::YYERRORSYMBOL || $yyerrorhit) { - if ($this->yyTraceFILE) { - fprintf($this->yyTraceFILE, - "%sDiscard input token %s\n", - $this->yyTracePrompt, - $this->yyTokenName[ $yymajor ]); - } - $this->yy_destructor($yymajor, $yytokenvalue); - $yymajor = self::YYNOCODE; - } else { - while ($this->yyidx >= 0 && $yymx != self::YYERRORSYMBOL && - ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE) { - $this->yy_pop_parser_stack(); - } - if ($this->yyidx < 0 || $yymajor == 0) { - $this->yy_destructor($yymajor, $yytokenvalue); - $this->yy_parse_failed(); - $yymajor = self::YYNOCODE; - } else if ($yymx != self::YYERRORSYMBOL) { - $u2 = 0; - $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2); - } - } - $this->yyerrcnt = 3; - $yyerrorhit = 1; - } else { - if ($this->yyerrcnt <= 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $this->yyerrcnt = 3; - $this->yy_destructor($yymajor, $yytokenvalue); - if ($yyendofinput) { - $this->yy_parse_failed(); - } - $yymajor = self::YYNOCODE; - } - } else { - $this->yy_accept(); - $yymajor = self::YYNOCODE; - } - } while ($yymajor != self::YYNOCODE && $this->yyidx >= 0); - } - public function yy_is_expected_token($token) { static $res = array(); @@ -2723,8 +1963,9 @@ public $yystack = array(); } $yyruleno = $yyact - self::YYNSTATE; $this->yyidx -= self::$yyRuleInfo[ $yyruleno ][1]; - $nextstate = $this->yy_find_reduce_action($this->yystack[ $this->yyidx ]->stateno, - self::$yyRuleInfo[ $yyruleno ][0]); + $nextstate = $this->yy_find_reduce_action( + $this->yystack[ $this->yyidx ]->stateno, + self::$yyRuleInfo[ $yyruleno ][0]); if (isset($res2[ $nextstate ][ $token ])) { if ($res2[ $nextstate ][ $token ]) { $this->yyidx = $yyidx; @@ -2778,6 +2019,68 @@ public $yystack = array(); return true; } + public function yy_find_shift_action($iLookAhead) + { + $stateno = $this->yystack[ $this->yyidx ]->stateno; + + /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */ + if (!isset(self::$yy_shift_ofst[ $stateno ])) { + // no shift actions + return self::$yy_default[ $stateno ]; + } + $i = self::$yy_shift_ofst[ $stateno ]; + if ($i === self::YY_SHIFT_USE_DFLT) { + return self::$yy_default[ $stateno ]; + } + if ($iLookAhead == self::YYNOCODE) { + return self::YY_NO_ACTION; + } + $i += $iLookAhead; + if ($i < 0 || $i >= self::YY_SZ_ACTTAB || + self::$yy_lookahead[ $i ] != $iLookAhead) { + if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) + && ($iFallback = self::$yyFallback[ $iLookAhead ]) != 0) { + if ($this->yyTraceFILE) { + fwrite($this->yyTraceFILE, + $this->yyTracePrompt . "FALLBACK " . + $this->yyTokenName[ $iLookAhead ] . " => " . + $this->yyTokenName[ $iFallback ] . "\n"); + } + + return $this->yy_find_shift_action($iFallback); + } + + return self::$yy_default[ $stateno ]; + } else { + return self::$yy_action[ $i ]; + } + } + + public function yy_find_reduce_action($stateno, $iLookAhead) + { + /* $stateno = $this->yystack[$this->yyidx]->stateno; */ + + if (!isset(self::$yy_reduce_ofst[ $stateno ])) { + return self::$yy_default[ $stateno ]; + } + $i = self::$yy_reduce_ofst[ $stateno ]; + if ($i == self::YY_REDUCE_USE_DFLT) { + return self::$yy_default[ $stateno ]; + } + if ($iLookAhead == self::YYNOCODE) { + return self::YY_NO_ACTION; + } + $i += $iLookAhead; + if ($i < 0 || $i >= self::YY_SZ_ACTTAB || + self::$yy_lookahead[ $i ] != $iLookAhead) { + return self::$yy_default[ $stateno ]; + } else { + return self::$yy_action[ $i ]; + } + } + + #line 220 "../smarty/lexer/smarty_internal_templateparser.y" + public function yy_shift($yyNewState, $yyMajor, $yypMinor) { $this->yyidx++; @@ -2816,9 +2119,1414 @@ public $yystack = array(); } } + #line 230 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r0() + { + $this->root_buffer->prepend_array($this, $this->template_prefix); + $this->root_buffer->append_array($this, $this->template_postfix); + $this->_retvalue = $this->root_buffer->to_smarty_php($this); + } + + #line 237 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r1() + { + if ($this->yystack[ $this->yyidx + 0 ]->minor != null) { + $this->current_buffer->append_subtree($this, $this->yystack[ $this->yyidx + 0 ]->minor); + } + } + + #line 251 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r2() + { + if ($this->yystack[ $this->yyidx + 0 ]->minor != null) { + // because of possible code injection + $this->current_buffer->append_subtree($this, $this->yystack[ $this->yyidx + 0 ]->minor); + } + } + + #line 262 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r4() + { + if ($this->compiler->has_code) { + $this->_retvalue = $this->mergePrefixCode($this->yystack[ $this->yyidx + 0 ]->minor); + } else { + $this->_retvalue = null; + } + $this->compiler->has_variable_string = false; + $this->block_nesting_level = count($this->compiler->_tag_stack); + } + + #line 266 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r5() + { + $this->_retvalue = new Smarty_Internal_ParseTree_Text($this->yystack[ $this->yyidx + 0 ]->minor); + } + + #line 277 "../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()); + if ($this->compiler->has_code && !empty($code)) { + $tmp = ''; + foreach ($this->compiler->prefix_code as $code) { + $tmp .= $code; + } + $this->compiler->prefix_code = array(); + $this->_retvalue = + new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode($tmp . $code, true)); + } else { + $this->_retvalue = null; + } + } + + #line 281 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r7() + { + $this->_retvalue = $this->compiler->processText($this->yystack[ $this->yyidx + 0 ]->minor); + } + + #line 285 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r8() + { + $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 290 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r9() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 294 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r10() + { + $this->strip = true; + } + + #line 299 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r11() + { + $this->strip = false; + } + + #line 303 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r12() + { + $this->_retvalue = ''; + } + + #line 307 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r13() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor; + } + + #line 323 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r14() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 329 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r18() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor; + } + + #line 339 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r19() + { + $var = + trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->lex->ldel_length, -$this->lex->rdel_length), + ' $'); + if (preg_match('/^(.*)(\s+nocache)$/', $var, $match)) { + $this->_retvalue = $this->compiler->compileTag('private_print_expression', + array('nocache'), + array('value' => $this->compiler->compileVariable('\'' . + $match[1] . + '\''))); + } else { + $this->_retvalue = $this->compiler->compileTag('private_print_expression', + array(), + array('value' => $this->compiler->compileVariable('\'' . + $var . + '\''))); + } + } + + #line 343 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r20() + { + $this->_retvalue = $this->compiler->compileTag('private_print_expression', + array(), + array('value' => $this->yystack[ $this->yyidx + 0 ]->minor)); + } + + #line 366 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r21() + { + $this->_retvalue = $this->compiler->compileTag('private_print_expression', + $this->yystack[ $this->yyidx + 0 ]->minor, + array('value' => $this->yystack[ $this->yyidx + -1 ]->minor)); + } + + #line 374 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r26() + { + $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 378 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r28() + { + $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 383 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r29() + { + $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 405 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r30() + { + $tag = + trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->lex->ldel_length, -$this->lex->rdel_length)); + if ($tag == 'strip') { + $this->strip = true; + $this->_retvalue = null;; + } else { + if (defined($tag)) { + if ($this->security) { + $this->security->isTrustedConstant($tag, $this->compiler); + } + $this->_retvalue = + $this->compiler->compileTag('private_print_expression', array(), array('value' => $tag)); + } else { + if (preg_match('/^(.*)(\s+nocache)$/', $tag, $match)) { + $this->_retvalue = $this->compiler->compileTag($match[1], array("'nocache'")); + } else { + $this->_retvalue = $this->compiler->compileTag($tag, array()); + } + } + } + } + + #line 415 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r31() + { + if (defined($this->yystack[ $this->yyidx + -1 ]->minor)) { + if ($this->security) { + $this->security->isTrustedConstant($this->yystack[ $this->yyidx + -1 ]->minor, $this->compiler); + } + $this->_retvalue = $this->compiler->compileTag('private_print_expression', + $this->yystack[ $this->yyidx + 0 ]->minor, + array('value' => $this->yystack[ $this->yyidx + + -1 ]->minor)); + } else { + $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -1 ]->minor, + $this->yystack[ $this->yyidx + 0 ]->minor); + } + } + + #line 428 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r32() + { + if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) { + if ($this->security) { + $this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler); + } + $this->_retvalue = $this->compiler->compileTag('private_print_expression', + array(), + array('value' => $this->yystack[ $this->yyidx + 0 ]->minor)); + } else { + $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + 0 ]->minor, array()); + } + } + + #line 440 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r33() + { + if (defined($this->yystack[ $this->yyidx + -2 ]->minor)) { + if ($this->security) { + $this->security->isTrustedConstant($this->yystack[ $this->yyidx + -2 ]->minor, $this->compiler); + } + $this->_retvalue = $this->compiler->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, + array('modifierlist' => $this->yystack[ $this->yyidx + + -1 ]->minor)); + } + } + + #line 445 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r34() + { + $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 450 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r35() + { + $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -4 ]->minor, + $this->yystack[ $this->yyidx + 0 ]->minor, + array('modifierlist' => $this->yystack[ $this->yyidx + + -1 ]->minor, + 'object_method' => $this->yystack[ $this->yyidx + + -2 ]->minor)); + } + + #line 455 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r36() + { + $this->_retvalue = $this->compiler->compileTag('make_nocache', + array(array('var' => '\'' . substr($this->yystack[ $this->yyidx + + 0 ]->minor, + 1) . '\''))); + } + + #line 460 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r37() + { + $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 465 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r38() + { + $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 476 "../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 480 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r41() + { + $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 488 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r42() + { + $this->_retvalue = '=' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 492 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r44() + { + $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 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 + + -5 ]->minor), + array('to' => $this->yystack[ $this->yyidx + + -3 ]->minor), + array('step' => $this->yystack[ $this->yyidx + + -1 ]->minor))), + 0); + } + + #line 501 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r46() + { + $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 504 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r47() + { + $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 509 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r48() + { + $this->_retvalue = $this->compiler->compileTag('foreach', $this->yystack[ $this->yyidx + 0 ]->minor); + } + + #line 513 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r49() + { + $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 518 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r50() + { + $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 531 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r51() + { + $j = strrpos($this->yystack[ $this->yyidx + 0 ]->minor, '.'); + if ($this->yystack[ $this->yyidx + 0 ]->minor[ $j + 1 ] == 'c') { + // {$smarty.block.child} + $this->_retvalue = $this->compiler->compileTag('block_child', array());; + } else { + // {$smarty.block.parent} + $this->_retvalue = $this->compiler->compileTag('block_parent', array());; + } + } + + #line 540 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r52() + { + $tag = + trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->lex->ldel_length, -$this->lex->rdel_length), + ' /'); + if ($tag == 'strip') { + $this->strip = false; + $this->_retvalue = null; + } else { + $this->_retvalue = $this->compiler->compileTag($tag . 'close', array()); + } + } + + #line 544 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r53() + { + $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + 0 ]->minor . 'close', array()); + } + + #line 549 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r54() + { + $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -1 ]->minor . 'close', + array(), + array('modifier_list' => $this->yystack[ $this->yyidx + + 0 ]->minor)); + } + + #line 553 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r55() + { + $this->_retvalue = $this->compiler->compileTag($this->yystack[ $this->yyidx + -2 ]->minor . 'close', + array(), + array('object_method' => $this->yystack[ $this->yyidx + + 0 ]->minor)); + } + + #line 561 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r56() + { + $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 567 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r57() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor; + $this->_retvalue[] = $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 572 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r58() + { + $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor); + } + + #line 577 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r59() + { + $this->_retvalue = array(); + } + + #line 588 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r60() + { + if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) { + if ($this->security) { + $this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler); + } + $this->_retvalue = + array($this->yystack[ $this->yyidx + -2 ]->minor => $this->yystack[ $this->yyidx + 0 ]->minor); + } else { + $this->_retvalue = + array($this->yystack[ $this->yyidx + -2 ]->minor => '\'' . $this->yystack[ $this->yyidx + 0 ]->minor . + '\''); + } + } + + #line 596 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r61() + { + $this->_retvalue = + array(trim($this->yystack[ $this->yyidx + -1 ]->minor, " =\n\r\t") => $this->yystack[ $this->yyidx + + 0 ]->minor); + } + + #line 608 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r63() + { + $this->_retvalue = '\'' . $this->yystack[ $this->yyidx + 0 ]->minor . '\''; + } + + #line 621 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r66() + { + $this->_retvalue = + array($this->yystack[ $this->yyidx + -2 ]->minor => $this->yystack[ $this->yyidx + 0 ]->minor); + } + + #line 626 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r68() + { + $this->yystack[ $this->yyidx + -2 ]->minor[] = $this->yystack[ $this->yyidx + 0 ]->minor; + $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor; + } + + #line 633 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r69() + { + $this->_retvalue = array('var' => '\'' . substr($this->yystack[ $this->yyidx + -2 ]->minor, 1) . '\'', + 'value' => $this->yystack[ $this->yyidx + 0 ]->minor); + } + + #line 657 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r71() + { + $this->_retvalue = array('var' => $this->yystack[ $this->yyidx + -2 ]->minor, + 'value' => $this->yystack[ $this->yyidx + 0 ]->minor); + } + + #line 662 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r75() + { + $this->_retvalue = + '$_smarty_tpl->getStreamVariable(\'' . substr($this->yystack[ $this->yyidx + -2 ]->minor, 1) . '://' . + $this->yystack[ $this->yyidx + 0 ]->minor . '\')'; + } + + #line 676 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r76() + { + $this->_retvalue = + $this->yystack[ $this->yyidx + -2 ]->minor . trim($this->yystack[ $this->yyidx + -1 ]->minor) . + $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 682 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r79() + { + $this->_retvalue = $this->compiler->compileTag('private_modifier', + array(), + array('value' => $this->yystack[ $this->yyidx + + -1 ]->minor, + 'modifierlist' => $this->yystack[ $this->yyidx + + 0 ]->minor)); + } + + #line 686 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r80() + { + $this->_retvalue = + $this->yystack[ $this->yyidx + -1 ]->minor['pre'] . $this->yystack[ $this->yyidx + -2 ]->minor . + $this->yystack[ $this->yyidx + -1 ]->minor['op'] . $this->yystack[ $this->yyidx + 0 ]->minor . ')'; + } + + #line 690 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r81() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor . + $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 694 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r82() + { + $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor . ')'; + } + + #line 698 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r83() + { + $this->_retvalue = + 'in_array(' . $this->yystack[ $this->yyidx + -2 ]->minor . ',' . $this->yystack[ $this->yyidx + 0 ]->minor . + ')'; + } + + #line 706 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r84() + { + $this->_retvalue = 'in_array(' . $this->yystack[ $this->yyidx + -2 ]->minor . ',(array)' . + $this->yystack[ $this->yyidx + 0 ]->minor . ')'; + } + + #line 710 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r85() + { + $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 725 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r86() + { + $this->_retvalue = + $this->yystack[ $this->yyidx + -5 ]->minor . ' ? ' . $this->yystack[ $this->yyidx + -2 ]->minor . ' : ' . + $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 746 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r89() + { + $this->_retvalue = '!' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 750 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r94() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . '.' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 754 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r95() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . '.'; + } + + #line 759 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r96() + { + $this->_retvalue = '.' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 776 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r97() + { + if (defined($this->yystack[ $this->yyidx + 0 ]->minor)) { + if ($this->security) { + $this->security->isTrustedConstant($this->yystack[ $this->yyidx + 0 ]->minor, $this->compiler); + } + $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor; + } else { + $this->_retvalue = '\'' . $this->yystack[ $this->yyidx + 0 ]->minor . '\''; + } + } + + #line 780 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r99() + { + $this->_retvalue = "(" . $this->yystack[ $this->yyidx + -1 ]->minor . ")"; + } + + #line 798 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r100() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . $this->yystack[ $this->yyidx + -1 ]->minor . + $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 809 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r104() + { + $prefixVar = $this->compiler->getNewPrefixVariable(); + if ($this->yystack[ $this->yyidx + -2 ]->minor['var'] == '\'smarty\'') { + $this->compiler->appendPrefixCode("compiler->compileTag('private_special_variable', + array(), + $this->yystack[ $this->yyidx + + -2 ]->minor['smarty_internal_index']) . + ';?>'); + } else { + $this->compiler->appendPrefixCode("compiler->compileVariable($this->yystack[ $this->yyidx + + -2 ]->minor['var']) . + $this->yystack[ $this->yyidx + -2 ]->minor['smarty_internal_index'] . + ';?>'); + } + $this->_retvalue = $prefixVar . '::' . $this->yystack[ $this->yyidx + 0 ]->minor[0] . + $this->yystack[ $this->yyidx + 0 ]->minor[1]; + } + + #line 826 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r105() + { + $prefixVar = $this->compiler->getNewPrefixVariable(); + $tmp = $this->compiler->appendCode('', $this->yystack[ $this->yyidx + 0 ]->minor); + $this->compiler->appendPrefixCode($this->compiler->appendCode($tmp, "')); + $this->_retvalue = $prefixVar; + } + + #line 845 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r108() + { + if (!in_array(strtolower($this->yystack[ $this->yyidx + -2 ]->minor), array('self', 'parent')) && + (!$this->security || $this->security->isTrustedStaticClassAccess($this->yystack[ $this->yyidx + -2 ]->minor, + $this->yystack[ $this->yyidx + 0 ]->minor, + $this->compiler))) { + if (isset($this->smarty->registered_classes[ $this->yystack[ $this->yyidx + -2 ]->minor ])) { + $this->_retvalue = + $this->smarty->registered_classes[ $this->yystack[ $this->yyidx + -2 ]->minor ] . '::' . + $this->yystack[ $this->yyidx + 0 ]->minor[0] . $this->yystack[ $this->yyidx + 0 ]->minor[1]; + } else { + $this->_retvalue = + $this->yystack[ $this->yyidx + -2 ]->minor . '::' . $this->yystack[ $this->yyidx + 0 ]->minor[0] . + $this->yystack[ $this->yyidx + 0 ]->minor[1]; + } + } else { + $this->compiler->trigger_template_error("static class '" . $this->yystack[ $this->yyidx + -2 ]->minor . + "' is undefined or not allowed by security setting"); + } + } + + #line 856 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r110() + { + $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 859 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r111() + { + $this->_retvalue = + $this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\''); + } + + #line 872 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r112() + { + 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']); + $this->_retvalue = $smarty_var; + } else { + // used for array reset,next,prev,end,current + $this->last_variable = $this->yystack[ $this->yyidx + 0 ]->minor['var']; + $this->last_index = $this->yystack[ $this->yyidx + 0 ]->minor['smarty_internal_index']; + $this->_retvalue = $this->compiler->compileVariable($this->yystack[ $this->yyidx + 0 ]->minor['var']) . + $this->yystack[ $this->yyidx + 0 ]->minor['smarty_internal_index']; + } + } + + #line 882 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r113() + { + $this->_retvalue = '$_smarty_tpl->tpl_vars[' . $this->yystack[ $this->yyidx + -2 ]->minor . ']->' . + $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 886 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r115() + { + $this->_retvalue = + $this->compiler->compileConfigVariable("'" . $this->yystack[ $this->yyidx + -1 ]->minor . "'"); + } + + #line 890 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r116() + { + $this->_retvalue = '(is_array($tmp = ' . + $this->compiler->compileConfigVariable("'" . $this->yystack[ $this->yyidx + -2 ]->minor . + "'") . ') ? $tmp' . + $this->yystack[ $this->yyidx + 0 ]->minor . ' :null)'; + } + + #line 894 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r117() + { + $this->_retvalue = $this->compiler->compileConfigVariable($this->yystack[ $this->yyidx + -1 ]->minor); + } + + #line 898 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r118() + { + $this->_retvalue = + '(is_array($tmp = ' . $this->compiler->compileConfigVariable($this->yystack[ $this->yyidx + -2 ]->minor) . + ') ? $tmp' . $this->yystack[ $this->yyidx + 0 ]->minor . ' : null)'; + } + + #line 901 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r119() + { + $this->_retvalue = array('var' => '\'' . + substr($this->yystack[ $this->yyidx + -1 ]->minor, 1) . + '\'', + 'smarty_internal_index' => $this->yystack[ $this->yyidx + 0 ]->minor); + } + + #line 914 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r120() + { + $this->_retvalue = array('var' => $this->yystack[ $this->yyidx + -1 ]->minor, + 'smarty_internal_index' => $this->yystack[ $this->yyidx + 0 ]->minor); + } + + #line 920 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r122() + { + return; + } + + #line 923 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r123() + { + $this->_retvalue = + '[' . $this->compiler->compileVariable('\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\'') . + ']'; + } + + #line 927 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r124() + { + $this->_retvalue = '[' . $this->compiler->compileVariable($this->yystack[ $this->yyidx + 0 ]->minor) . ']'; + } + + #line 931 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r125() + { + $this->_retvalue = '[' . $this->compiler->compileVariable($this->yystack[ $this->yyidx + -2 ]->minor) . '->' . + $this->yystack[ $this->yyidx + 0 ]->minor . ']'; + } + + #line 935 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r126() + { + $this->_retvalue = "['" . $this->yystack[ $this->yyidx + 0 ]->minor . "']"; + } + + #line 940 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r127() + { + $this->_retvalue = '[' . $this->yystack[ $this->yyidx + 0 ]->minor . ']'; + } + + #line 945 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r128() + { + $this->_retvalue = '[' . $this->yystack[ $this->yyidx + -1 ]->minor . ']'; + } + + #line 949 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r129() + { + $this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable', + array(), + '[\'section\'][\'' . + $this->yystack[ $this->yyidx + -1 ]->minor . + '\'][\'index\']') . ']'; + } + + #line 952 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r130() + { + $this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable', + array(), + '[\'section\'][\'' . + $this->yystack[ $this->yyidx + -3 ]->minor . '\'][\'' . + $this->yystack[ $this->yyidx + -1 ]->minor . '\']') . ']'; + } + + #line 958 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r131() + { + $this->_retvalue = '[' . $this->yystack[ $this->yyidx + -1 ]->minor . ']'; + } + + #line 974 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r133() + { + $this->_retvalue = '[' . $this->compiler->compileVariable('\'' . + substr($this->yystack[ $this->yyidx + -1 ]->minor, + 1) . '\'') . ']';; + } + + #line 984 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r137() + { + $this->_retvalue = '[]'; + } + + #line 988 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r138() + { + $this->_retvalue = '\'' . substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . '\''; + } + + #line 993 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r139() + { + $this->_retvalue = "''"; + } + + #line 1001 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r140() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . '.' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 1007 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r142() + { + $var = + trim(substr($this->yystack[ $this->yyidx + 0 ]->minor, $this->lex->ldel_length, -$this->lex->rdel_length), + ' $'); + $this->_retvalue = $this->compiler->compileVariable('\'' . $var . '\''); + } + + #line 1014 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r143() + { + $this->_retvalue = '(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')'; + } + + #line 1023 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r144() + { + 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; + } else { + $this->_retvalue = $this->compiler->compileVariable($this->yystack[ $this->yyidx + -1 ]->minor['var']) . + $this->yystack[ $this->yyidx + -1 ]->minor['smarty_internal_index'] . + $this->yystack[ $this->yyidx + 0 ]->minor; + } + } + + #line 1028 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r145() + { + $this->_retvalue = $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 1033 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r146() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 1040 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r147() + { + if ($this->security && substr($this->yystack[ $this->yyidx + -1 ]->minor, 0, 1) == '_') { + $this->compiler->trigger_template_error(self::Err1); + } + $this->_retvalue = + '->' . $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 1047 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r148() + { + if ($this->security) { + $this->compiler->trigger_template_error(self::Err2); + } + $this->_retvalue = '->{' . $this->compiler->compileVariable($this->yystack[ $this->yyidx + -1 ]->minor) . + $this->yystack[ $this->yyidx + 0 ]->minor . '}'; + } + + #line 1054 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r149() + { + if ($this->security) { + $this->compiler->trigger_template_error(self::Err2); + } + $this->_retvalue = + '->{' . $this->yystack[ $this->yyidx + -2 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor . '}'; + } + + #line 1062 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r150() + { + if ($this->security) { + $this->compiler->trigger_template_error(self::Err2); + } + $this->_retvalue = + '->{\'' . $this->yystack[ $this->yyidx + -4 ]->minor . '\'.' . $this->yystack[ $this->yyidx + -2 ]->minor . + $this->yystack[ $this->yyidx + 0 ]->minor . '}'; + } + + #line 1070 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r151() + { + $this->_retvalue = '->' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 1078 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r152() + { + $this->_retvalue = $this->compiler->compilePHPFunctionCall($this->yystack[ $this->yyidx + -3 ]->minor, + $this->yystack[ $this->yyidx + -1 ]->minor); + } + + #line 1085 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r153() + { + if ($this->security && substr($this->yystack[ $this->yyidx + -3 ]->minor, 0, 1) == '_') { + $this->compiler->trigger_template_error(self::Err1); + } + $this->_retvalue = $this->yystack[ $this->yyidx + -3 ]->minor . "(" . + implode(',', $this->yystack[ $this->yyidx + -1 ]->minor) . ")"; + } + + #line 1096 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r154() + { + if ($this->security) { + $this->compiler->trigger_template_error(self::Err2); + } + $prefixVar = $this->compiler->getNewPrefixVariable(); + $this->compiler->appendPrefixCode("compiler->compileVariable('\'' . + substr($this->yystack[ $this->yyidx + + -3 ]->minor, + 1) . + '\'') . ';?>'); + $this->_retvalue = $prefixVar . '(' . implode(',', $this->yystack[ $this->yyidx + -1 ]->minor) . ')'; + } + + #line 1113 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r155() + { + $this->_retvalue = + array_merge($this->yystack[ $this->yyidx + -2 ]->minor, array($this->yystack[ $this->yyidx + 0 ]->minor)); + } + + #line 1117 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r158() + { + $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 1125 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r159() + { + $this->_retvalue = + array(array_merge($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor)); + } + + #line 1133 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r161() + { + $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor); + } + + #line 1152 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r162() + { + $this->_retvalue = + array_merge($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor); + } + + #line 1157 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r166() + { + $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor, '', 'method'); + } + + #line 1162 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r167() + { + $this->_retvalue = + array($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor, 'method'); + } + + #line 1167 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r168() + { + $this->_retvalue = array($this->yystack[ $this->yyidx + 0 ]->minor, ''); + } + + #line 1172 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r169() + { + $this->_retvalue = + array($this->yystack[ $this->yyidx + -1 ]->minor, $this->yystack[ $this->yyidx + 0 ]->minor, 'property'); + } + + #line 1178 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r170() + { + $this->_retvalue = array($this->yystack[ $this->yyidx + -2 ]->minor, + $this->yystack[ $this->yyidx + -1 ]->minor . $this->yystack[ $this->yyidx + 0 ]->minor, + 'property'); + } + + #line 1182 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r171() + { + $this->_retvalue = ' ' . trim($this->yystack[ $this->yyidx + 0 ]->minor) . ' '; + } + + #line 1201 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r172() + { + static $lops = array( + 'eq' => ' == ', + 'ne' => ' != ', + 'neq' => ' != ', + 'gt' => ' > ', + 'ge' => ' >= ', + 'gte' => ' >= ', + 'lt' => ' < ', + 'le' => ' <= ', + 'lte' => ' <= ', + 'mod' => ' % ', + 'and' => ' && ', + 'or' => ' || ', + 'xor' => ' xor ', + ); + $op = strtolower(preg_replace('/\s*/', '', $this->yystack[ $this->yyidx + 0 ]->minor)); + $this->_retvalue = $lops[ $op ]; + } + + #line 1214 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r173() + { + static $tlops = array( + 'isdivby' => array('op' => ' % ', 'pre' => '!('), + 'isnotdivby' => array('op' => ' % ', 'pre' => '('), + 'isevenby' => array('op' => ' / ', 'pre' => '!(1 & '), + 'isnotevenby' => array('op' => ' / ', 'pre' => '(1 & '), + 'isoddby' => array('op' => ' / ', 'pre' => '(1 & '), + 'isnotoddby' => array('op' => ' / ', 'pre' => '!(1 & '), + ); + $op = strtolower(preg_replace('/\s*/', '', $this->yystack[ $this->yyidx + 0 ]->minor)); + $this->_retvalue = $tlops[ $op ]; + } + + #line 1228 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r174() + { + 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 1236 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r175() + { + $this->_retvalue = 'array(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')'; + } + + #line 1244 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r177() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -2 ]->minor . ',' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 1248 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r179() + { + $this->_retvalue = + $this->yystack[ $this->yyidx + -2 ]->minor . '=>' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 1264 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r180() + { + $this->_retvalue = + '\'' . $this->yystack[ $this->yyidx + -2 ]->minor . '\'=>' . $this->yystack[ $this->yyidx + 0 ]->minor; + } + + #line 1269 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r183() + { + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor->to_smarty_php($this); + } + + #line 1274 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r184() + { + $this->yystack[ $this->yyidx + -1 ]->minor->append_subtree($this, $this->yystack[ $this->yyidx + 0 ]->minor); + $this->_retvalue = $this->yystack[ $this->yyidx + -1 ]->minor; + } + + #line 1278 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r185() + { + $this->_retvalue = new Smarty_Internal_ParseTree_Dq($this, $this->yystack[ $this->yyidx + 0 ]->minor); + } + + #line 1286 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r186() + { + $this->_retvalue = new Smarty_Internal_ParseTree_Code('(string)' . $this->yystack[ $this->yyidx + -1 ]->minor); + } + + #line 1294 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r188() + { + $this->_retvalue = new Smarty_Internal_ParseTree_Code('(string)$_smarty_tpl->tpl_vars[\'' . + substr($this->yystack[ $this->yyidx + 0 ]->minor, 1) . + '\']->value'); + } + + #line 1298 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r190() + { + $this->_retvalue = + new Smarty_Internal_ParseTree_Code('(string)(' . $this->yystack[ $this->yyidx + -1 ]->minor . ')'); + } + + #line 1302 "../smarty/lexer/smarty_internal_templateparser.y" + + function yy_r191() + { + $this->_retvalue = new Smarty_Internal_ParseTree_Tag($this, $this->yystack[ $this->yyidx + 0 ]->minor); + } + + function yy_r192() + { + $this->_retvalue = new Smarty_Internal_ParseTree_DqContent($this->yystack[ $this->yyidx + 0 ]->minor); + } + public function yy_reduce($yyruleno) { - if ($this->yyTraceFILE && $yyruleno >= 0 && $yyruleno < count(self::$yyRuleName)) { + if ($this->yyTraceFILE && $yyruleno >= 0 + && $yyruleno < count(self::$yyRuleName)) { fprintf($this->yyTraceFILE, "%sReduce (%d) [%s].\n", $this->yyTracePrompt, @@ -2857,6 +3565,25 @@ public $yystack = array(); } } + public function yy_parse_failed() + { + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, "%sFail!\n", $this->yyTracePrompt); + } + while ($this->yyidx >= 0) { + $this->yy_pop_parser_stack(); + } + } + + public function yy_syntax_error($yymajor, $TOKEN) + { + #line 200 "../smarty/lexer/smarty_internal_templateparser.y" + + $this->internalError = true; + $this->yymajor = $yymajor; + $this->compiler->trigger_template_error(); + } + public function yy_accept() { if ($this->yyTraceFILE) { @@ -2872,23 +3599,99 @@ public $yystack = array(); $this->retvalue = $this->_retvalue; } - public function yy_syntax_error($yymajor, $TOKEN) + public function doParse($yymajor, $yytokenvalue) { - #line 200 "../smarty/lexer/smarty_internal_templateparser.y" + $yyerrorhit = 0; /* True if yymajor has invoked an error */ - $this->internalError = true; - $this->yymajor = $yymajor; - $this->compiler->trigger_template_error(); - } + if ($this->yyidx === null || $this->yyidx < 0) { + $this->yyidx = 0; + $this->yyerrcnt = -1; + $x = new TP_yyStackEntry; + $x->stateno = 0; + $x->major = 0; + $this->yystack = array(); + $this->yystack[] = $x; + } + $yyendofinput = ($yymajor == 0); - public function yy_parse_failed() - { if ($this->yyTraceFILE) { - fprintf($this->yyTraceFILE, "%sFail!\n", $this->yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); + fprintf($this->yyTraceFILE, + "%sInput %s\n", + $this->yyTracePrompt, + $this->yyTokenName[ $yymajor ]); } + + do { + $yyact = $this->yy_find_shift_action($yymajor); + if ($yymajor < self::YYERRORSYMBOL && + !$this->yy_is_expected_token($yymajor)) { + // force a syntax error + $yyact = self::YY_ERROR_ACTION; + } + if ($yyact < self::YYNSTATE) { + $this->yy_shift($yyact, $yymajor, $yytokenvalue); + $this->yyerrcnt--; + if ($yyendofinput && $this->yyidx >= 0) { + $yymajor = 0; + } else { + $yymajor = self::YYNOCODE; + } + } else if ($yyact < self::YYNSTATE + self::YYNRULE) { + $this->yy_reduce($yyact - self::YYNSTATE); + } else if ($yyact == self::YY_ERROR_ACTION) { + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, + "%sSyntax Error!\n", + $this->yyTracePrompt); + } + if (self::YYERRORSYMBOL) { + if ($this->yyerrcnt < 0) { + $this->yy_syntax_error($yymajor, $yytokenvalue); + } + $yymx = $this->yystack[ $this->yyidx ]->major; + if ($yymx == self::YYERRORSYMBOL || $yyerrorhit) { + if ($this->yyTraceFILE) { + fprintf($this->yyTraceFILE, + "%sDiscard input token %s\n", + $this->yyTracePrompt, + $this->yyTokenName[ $yymajor ]); + } + $this->yy_destructor($yymajor, $yytokenvalue); + $yymajor = self::YYNOCODE; + } else { + while ($this->yyidx >= 0 && + $yymx != self::YYERRORSYMBOL && + ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE + ) { + $this->yy_pop_parser_stack(); + } + if ($this->yyidx < 0 || $yymajor == 0) { + $this->yy_destructor($yymajor, $yytokenvalue); + $this->yy_parse_failed(); + $yymajor = self::YYNOCODE; + } else if ($yymx != self::YYERRORSYMBOL) { + $u2 = 0; + $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2); + } + } + $this->yyerrcnt = 3; + $yyerrorhit = 1; + } else { + if ($this->yyerrcnt <= 0) { + $this->yy_syntax_error($yymajor, $yytokenvalue); + } + $this->yyerrcnt = 3; + $this->yy_destructor($yymajor, $yytokenvalue); + if ($yyendofinput) { + $this->yy_parse_failed(); + } + $yymajor = self::YYNOCODE; + } + } else { + $this->yy_accept(); + $yymajor = self::YYNOCODE; + } + } while ($yymajor != self::YYNOCODE && $this->yyidx >= 0); } } diff --git a/libs/sysplugins/smarty_internal_testinstall.php b/libs/sysplugins/smarty_internal_testinstall.php index e3b7dab3..7c736cad 100644 --- a/libs/sysplugins/smarty_internal_testinstall.php +++ b/libs/sysplugins/smarty_internal_testinstall.php @@ -359,146 +359,158 @@ class Smarty_Internal_TestInstall // test if sysplugins are available $source = SMARTY_SYSPLUGINS_DIR; if (is_dir($source)) { - $expectedSysplugins = array('smartycompilerexception.php' => true, 'smartyexception.php' => true, - 'smarty_cacheresource.php' => true, 'smarty_cacheresource_custom.php' => true, - 'smarty_cacheresource_keyvaluestore.php' => true, 'smarty_data.php' => true, - 'smarty_internal_block.php' => true, - 'smarty_internal_cacheresource_file.php' => true, - 'smarty_internal_compilebase.php' => true, - 'smarty_internal_compile_append.php' => true, - 'smarty_internal_compile_assign.php' => true, - 'smarty_internal_compile_block.php' => true, - 'smarty_internal_compile_block_child.php' => true, - 'smarty_internal_compile_block_parent.php' => true, - 'smarty_internal_compile_break.php' => true, - 'smarty_internal_compile_call.php' => true, - 'smarty_internal_compile_capture.php' => true, - 'smarty_internal_compile_config_load.php' => true, - 'smarty_internal_compile_continue.php' => true, - 'smarty_internal_compile_debug.php' => true, - 'smarty_internal_compile_eval.php' => true, - 'smarty_internal_compile_extends.php' => true, - 'smarty_internal_compile_for.php' => true, - 'smarty_internal_compile_foreach.php' => true, - 'smarty_internal_compile_function.php' => true, - 'smarty_internal_compile_if.php' => true, - 'smarty_internal_compile_include.php' => true, - 'smarty_internal_compile_include_php.php' => true, - 'smarty_internal_compile_insert.php' => true, - 'smarty_internal_compile_ldelim.php' => true, - 'smarty_internal_compile_make_nocache.php' => true, - 'smarty_internal_compile_nocache.php' => true, - 'smarty_internal_compile_private_block_plugin.php' => true, - 'smarty_internal_compile_private_foreachsection.php' => true, - 'smarty_internal_compile_private_function_plugin.php' => true, - 'smarty_internal_compile_private_modifier.php' => true, - 'smarty_internal_compile_private_object_block_function.php' => true, - 'smarty_internal_compile_private_object_function.php' => true, - 'smarty_internal_compile_private_php.php' => true, - 'smarty_internal_compile_private_print_expression.php' => true, - 'smarty_internal_compile_private_registered_block.php' => true, - 'smarty_internal_compile_private_registered_function.php' => true, - 'smarty_internal_compile_private_special_variable.php' => true, - 'smarty_internal_compile_rdelim.php' => true, - 'smarty_internal_compile_section.php' => true, - 'smarty_internal_compile_setfilter.php' => true, - 'smarty_internal_compile_shared_inheritance.php' => true, - 'smarty_internal_compile_while.php' => true, - 'smarty_internal_configfilelexer.php' => true, - 'smarty_internal_configfileparser.php' => true, - 'smarty_internal_config_file_compiler.php' => true, - 'smarty_internal_data.php' => true, 'smarty_internal_debug.php' => true, - 'smarty_internal_extension_handler.php' => true, - 'smarty_internal_method_addautoloadfilters.php' => true, - 'smarty_internal_method_adddefaultmodifiers.php' => true, - 'smarty_internal_method_append.php' => true, - 'smarty_internal_method_appendbyref.php' => true, - 'smarty_internal_method_assignbyref.php' => true, - 'smarty_internal_method_assignglobal.php' => true, - 'smarty_internal_method_clearallassign.php' => true, - 'smarty_internal_method_clearallcache.php' => true, - 'smarty_internal_method_clearassign.php' => true, - 'smarty_internal_method_clearcache.php' => true, - 'smarty_internal_method_clearcompiledtemplate.php' => true, - 'smarty_internal_method_clearconfig.php' => true, - 'smarty_internal_method_compileallconfig.php' => true, - 'smarty_internal_method_compilealltemplates.php' => true, - 'smarty_internal_method_configload.php' => true, - 'smarty_internal_method_createdata.php' => true, - 'smarty_internal_method_getautoloadfilters.php' => true, - 'smarty_internal_method_getconfigvariable.php' => true, - 'smarty_internal_method_getconfigvars.php' => true, - 'smarty_internal_method_getdebugtemplate.php' => true, - 'smarty_internal_method_getdefaultmodifiers.php' => true, - 'smarty_internal_method_getglobal.php' => true, - 'smarty_internal_method_getregisteredobject.php' => true, - 'smarty_internal_method_getstreamvariable.php' => true, - 'smarty_internal_method_gettags.php' => true, - 'smarty_internal_method_gettemplatevars.php' => true, - 'smarty_internal_method_loadfilter.php' => true, - 'smarty_internal_method_loadplugin.php' => true, - 'smarty_internal_method_mustcompile.php' => true, - 'smarty_internal_method_registercacheresource.php' => true, - 'smarty_internal_method_registerclass.php' => true, - 'smarty_internal_method_registerdefaultconfighandler.php' => true, - 'smarty_internal_method_registerdefaultpluginhandler.php' => true, - 'smarty_internal_method_registerdefaulttemplatehandler.php' => true, - 'smarty_internal_method_registerfilter.php' => true, - 'smarty_internal_method_registerobject.php' => true, - 'smarty_internal_method_registerplugin.php' => true, - 'smarty_internal_method_registerresource.php' => true, - 'smarty_internal_method_setautoloadfilters.php' => true, - 'smarty_internal_method_setdebugtemplate.php' => true, - 'smarty_internal_method_setdefaultmodifiers.php' => true, - 'smarty_internal_method_unloadfilter.php' => true, - 'smarty_internal_method_unregistercacheresource.php' => true, - 'smarty_internal_method_unregisterfilter.php' => true, - 'smarty_internal_method_unregisterobject.php' => true, - 'smarty_internal_method_unregisterplugin.php' => true, - 'smarty_internal_method_unregisterresource.php' => true, - 'smarty_internal_nocache_insert.php' => true, - 'smarty_internal_parsetree.php' => true, - 'smarty_internal_parsetree_code.php' => true, - 'smarty_internal_parsetree_dq.php' => true, - 'smarty_internal_parsetree_dqcontent.php' => true, - 'smarty_internal_parsetree_tag.php' => true, - 'smarty_internal_parsetree_template.php' => true, - 'smarty_internal_parsetree_text.php' => true, - 'smarty_internal_resource_eval.php' => true, - 'smarty_internal_resource_extends.php' => true, - 'smarty_internal_resource_file.php' => true, - 'smarty_internal_resource_php.php' => true, - 'smarty_internal_resource_registered.php' => true, - 'smarty_internal_resource_stream.php' => true, - 'smarty_internal_resource_string.php' => true, - 'smarty_internal_runtime_cachemodify.php' => true, - 'smarty_internal_runtime_cacheresourcefile.php' => true, - 'smarty_internal_runtime_capture.php' => true, - 'smarty_internal_runtime_codeframe.php' => true, - 'smarty_internal_runtime_filterhandler.php' => true, - 'smarty_internal_runtime_foreach.php' => true, - 'smarty_internal_runtime_getincludepath.php' => true, - 'smarty_internal_runtime_inheritance.php' => true, - 'smarty_internal_runtime_make_nocache.php' => true, - 'smarty_internal_runtime_tplfunction.php' => true, - 'smarty_internal_runtime_updatecache.php' => true, - 'smarty_internal_runtime_updatescope.php' => true, - 'smarty_internal_runtime_writefile.php' => true, - 'smarty_internal_smartytemplatecompiler.php' => true, - 'smarty_internal_template.php' => true, - 'smarty_internal_templatebase.php' => true, - 'smarty_internal_templatecompilerbase.php' => true, - 'smarty_internal_templatelexer.php' => true, - 'smarty_internal_templateparser.php' => true, - 'smarty_internal_testinstall.php' => true, - 'smarty_internal_undefined.php' => true, 'smarty_resource.php' => true, - 'smarty_resource_custom.php' => true, 'smarty_resource_recompiled.php' => true, - 'smarty_resource_uncompiled.php' => true, 'smarty_security.php' => true, - 'smarty_template_cached.php' => true, 'smarty_template_compiled.php' => true, - 'smarty_template_config.php' => true, - 'smarty_template_resource_base.php' => true, - 'smarty_template_source.php' => true, 'smarty_undefined_variable.php' => true, - 'smarty_variable.php' => true,); + $expectedSysplugins = array( + 'smartycompilerexception.php' => true, + 'smartyexception.php' => true, + 'smarty_cacheresource.php' => true, + 'smarty_cacheresource_custom.php' => true, + 'smarty_cacheresource_keyvaluestore.php' => true, + 'smarty_data.php' => true, + 'smarty_internal_block.php' => true, + 'smarty_internal_cacheresource_file.php' => true, + 'smarty_internal_compilebase.php' => true, + 'smarty_internal_compile_append.php' => true, + 'smarty_internal_compile_assign.php' => true, + 'smarty_internal_compile_block.php' => true, + 'smarty_internal_compile_block_child.php' => true, + 'smarty_internal_compile_block_parent.php' => true, + 'smarty_internal_compile_break.php' => true, + 'smarty_internal_compile_call.php' => true, + 'smarty_internal_compile_capture.php' => true, + 'smarty_internal_compile_config_load.php' => true, + 'smarty_internal_compile_continue.php' => true, + 'smarty_internal_compile_debug.php' => true, + 'smarty_internal_compile_eval.php' => true, + 'smarty_internal_compile_extends.php' => true, + 'smarty_internal_compile_for.php' => true, + 'smarty_internal_compile_foreach.php' => true, + 'smarty_internal_compile_function.php' => true, + 'smarty_internal_compile_if.php' => true, + 'smarty_internal_compile_include.php' => true, + 'smarty_internal_compile_include_php.php' => true, + 'smarty_internal_compile_insert.php' => true, + 'smarty_internal_compile_ldelim.php' => true, + 'smarty_internal_compile_make_nocache.php' => true, + 'smarty_internal_compile_nocache.php' => true, + 'smarty_internal_compile_private_block_plugin.php' => true, + 'smarty_internal_compile_private_foreachsection.php' => true, + 'smarty_internal_compile_private_function_plugin.php' => true, + 'smarty_internal_compile_private_modifier.php' => true, + 'smarty_internal_compile_private_object_block_function.php' => true, + 'smarty_internal_compile_private_object_function.php' => true, + 'smarty_internal_compile_private_php.php' => true, + 'smarty_internal_compile_private_print_expression.php' => true, + 'smarty_internal_compile_private_registered_block.php' => true, + 'smarty_internal_compile_private_registered_function.php' => true, + 'smarty_internal_compile_private_special_variable.php' => true, + 'smarty_internal_compile_rdelim.php' => true, + 'smarty_internal_compile_section.php' => true, + 'smarty_internal_compile_setfilter.php' => true, + 'smarty_internal_compile_shared_inheritance.php' => true, + 'smarty_internal_compile_while.php' => true, + 'smarty_internal_configfilelexer.php' => true, + 'smarty_internal_configfileparser.php' => true, + 'smarty_internal_config_file_compiler.php' => true, + 'smarty_internal_data.php' => true, + 'smarty_internal_debug.php' => true, + 'smarty_internal_extension_handler.php' => true, + 'smarty_internal_method_addautoloadfilters.php' => true, + 'smarty_internal_method_adddefaultmodifiers.php' => true, + 'smarty_internal_method_append.php' => true, + 'smarty_internal_method_appendbyref.php' => true, + 'smarty_internal_method_assignbyref.php' => true, + 'smarty_internal_method_assignglobal.php' => true, + 'smarty_internal_method_clearallassign.php' => true, + 'smarty_internal_method_clearallcache.php' => true, + 'smarty_internal_method_clearassign.php' => true, + 'smarty_internal_method_clearcache.php' => true, + 'smarty_internal_method_clearcompiledtemplate.php' => true, + 'smarty_internal_method_clearconfig.php' => true, + 'smarty_internal_method_compileallconfig.php' => true, + 'smarty_internal_method_compilealltemplates.php' => true, + 'smarty_internal_method_configload.php' => true, + 'smarty_internal_method_createdata.php' => true, + 'smarty_internal_method_getautoloadfilters.php' => true, + 'smarty_internal_method_getconfigvariable.php' => true, + 'smarty_internal_method_getconfigvars.php' => true, + 'smarty_internal_method_getdebugtemplate.php' => true, + 'smarty_internal_method_getdefaultmodifiers.php' => true, + 'smarty_internal_method_getglobal.php' => true, + 'smarty_internal_method_getregisteredobject.php' => true, + 'smarty_internal_method_getstreamvariable.php' => true, + 'smarty_internal_method_gettags.php' => true, + 'smarty_internal_method_gettemplatevars.php' => true, + 'smarty_internal_method_literals.php' => true, + 'smarty_internal_method_loadfilter.php' => true, + 'smarty_internal_method_loadplugin.php' => true, + 'smarty_internal_method_mustcompile.php' => true, + 'smarty_internal_method_registercacheresource.php' => true, + 'smarty_internal_method_registerclass.php' => true, + 'smarty_internal_method_registerdefaultconfighandler.php' => true, + 'smarty_internal_method_registerdefaultpluginhandler.php' => true, + 'smarty_internal_method_registerdefaulttemplatehandler.php' => true, + 'smarty_internal_method_registerfilter.php' => true, + 'smarty_internal_method_registerobject.php' => true, + 'smarty_internal_method_registerplugin.php' => true, + 'smarty_internal_method_registerresource.php' => true, + 'smarty_internal_method_setautoloadfilters.php' => true, + 'smarty_internal_method_setdebugtemplate.php' => true, + 'smarty_internal_method_setdefaultmodifiers.php' => true, + 'smarty_internal_method_unloadfilter.php' => true, + 'smarty_internal_method_unregistercacheresource.php' => true, + 'smarty_internal_method_unregisterfilter.php' => true, + 'smarty_internal_method_unregisterobject.php' => true, + 'smarty_internal_method_unregisterplugin.php' => true, + 'smarty_internal_method_unregisterresource.php' => true, + 'smarty_internal_nocache_insert.php' => true, + 'smarty_internal_parsetree.php' => true, + 'smarty_internal_parsetree_code.php' => true, + 'smarty_internal_parsetree_dq.php' => true, + 'smarty_internal_parsetree_dqcontent.php' => true, + 'smarty_internal_parsetree_tag.php' => true, + 'smarty_internal_parsetree_template.php' => true, + 'smarty_internal_parsetree_text.php' => true, + 'smarty_internal_resource_eval.php' => true, + 'smarty_internal_resource_extends.php' => true, + 'smarty_internal_resource_file.php' => true, + 'smarty_internal_resource_php.php' => true, + 'smarty_internal_resource_registered.php' => true, + 'smarty_internal_resource_stream.php' => true, + 'smarty_internal_resource_string.php' => true, + 'smarty_internal_runtime_cachemodify.php' => true, + 'smarty_internal_runtime_cacheresourcefile.php' => true, + 'smarty_internal_runtime_capture.php' => true, + 'smarty_internal_runtime_codeframe.php' => true, + 'smarty_internal_runtime_filterhandler.php' => true, + 'smarty_internal_runtime_foreach.php' => true, + 'smarty_internal_runtime_getincludepath.php' => true, + 'smarty_internal_runtime_inheritance.php' => true, + 'smarty_internal_runtime_make_nocache.php' => true, + 'smarty_internal_runtime_tplfunction.php' => true, + 'smarty_internal_runtime_updatecache.php' => true, + 'smarty_internal_runtime_updatescope.php' => true, + 'smarty_internal_runtime_writefile.php' => true, + 'smarty_internal_smartytemplatecompiler.php' => true, + 'smarty_internal_template.php' => true, + 'smarty_internal_templatebase.php' => true, + 'smarty_internal_templatecompilerbase.php' => true, + 'smarty_internal_templatelexer.php' => true, + 'smarty_internal_templateparser.php' => true, + 'smarty_internal_testinstall.php' => true, + 'smarty_internal_undefined.php' => true, + 'smarty_resource.php' => true, + 'smarty_resource_custom.php' => true, + 'smarty_resource_recompiled.php' => true, + 'smarty_resource_uncompiled.php' => true, + 'smarty_security.php' => true, + 'smarty_template_cached.php' => true, + 'smarty_template_compiled.php' => true, + 'smarty_template_config.php' => true, + 'smarty_template_resource_base.php' => true, + 'smarty_template_source.php' => true, + 'smarty_undefined_variable.php' => true, + 'smarty_variable.php' => true, + ); $iterator = new DirectoryIterator($source); foreach ($iterator as $file) { if (!$file->isDot()) { @@ -535,30 +547,55 @@ class Smarty_Internal_TestInstall // test if core plugins are available $source = SMARTY_PLUGINS_DIR; if (is_dir($source)) { - $expectedPlugins = - array('block.textformat.php' => true, 'function.counter.php' => true, 'function.cycle.php' => true, - 'function.fetch.php' => true, 'function.html_checkboxes.php' => true, - 'function.html_image.php' => true, 'function.html_options.php' => true, - 'function.html_radios.php' => true, 'function.html_select_date.php' => true, - 'function.html_select_time.php' => true, 'function.html_table.php' => true, - 'function.mailto.php' => true, 'function.math.php' => true, 'modifier.capitalize.php' => true, - 'modifier.date_format.php' => true, 'modifier.debug_print_var.php' => true, - 'modifier.escape.php' => true, 'modifier.mb_wordwrap.php' => true, - 'modifier.regex_replace.php' => true, 'modifier.replace.php' => true, - 'modifier.spacify.php' => true, 'modifier.truncate.php' => true, - 'modifiercompiler.cat.php' => true, 'modifiercompiler.count_characters.php' => true, - 'modifiercompiler.count_paragraphs.php' => true, 'modifiercompiler.count_sentences.php' => true, - 'modifiercompiler.count_words.php' => true, 'modifiercompiler.default.php' => true, - 'modifiercompiler.escape.php' => true, 'modifiercompiler.from_charset.php' => true, - 'modifiercompiler.indent.php' => true, 'modifiercompiler.lower.php' => true, - 'modifiercompiler.noprint.php' => true, 'modifiercompiler.string_format.php' => true, - 'modifiercompiler.strip.php' => true, 'modifiercompiler.strip_tags.php' => true, - 'modifiercompiler.to_charset.php' => true, 'modifiercompiler.unescape.php' => true, - 'modifiercompiler.upper.php' => true, 'modifiercompiler.wordwrap.php' => true, - 'outputfilter.trimwhitespace.php' => true, 'shared.escape_special_chars.php' => true, - 'shared.literal_compiler_param.php' => true, 'shared.make_timestamp.php' => true, - 'shared.mb_str_replace.php' => true, 'shared.mb_unicode.php' => true, - 'variablefilter.htmlspecialchars.php' => true,); + $expectedPlugins = array( + 'block.textformat.php' => true, + 'function.counter.php' => true, + 'function.cycle.php' => true, + 'function.fetch.php' => true, + 'function.html_checkboxes.php' => true, + 'function.html_image.php' => true, + 'function.html_options.php' => true, + 'function.html_radios.php' => true, + 'function.html_select_date.php' => true, + 'function.html_select_time.php' => true, + 'function.html_table.php' => true, + 'function.mailto.php' => true, + 'function.math.php' => true, + 'modifier.capitalize.php' => true, + 'modifier.date_format.php' => true, + 'modifier.debug_print_var.php' => true, + 'modifier.escape.php' => true, + 'modifier.mb_wordwrap.php' => true, + 'modifier.regex_replace.php' => true, + 'modifier.replace.php' => true, + 'modifier.spacify.php' => true, + 'modifier.truncate.php' => true, + 'modifiercompiler.cat.php' => true, + 'modifiercompiler.count_characters.php' => true, + 'modifiercompiler.count_paragraphs.php' => true, + 'modifiercompiler.count_sentences.php' => true, + 'modifiercompiler.count_words.php' => true, + 'modifiercompiler.default.php' => true, + 'modifiercompiler.escape.php' => true, + 'modifiercompiler.from_charset.php' => true, + 'modifiercompiler.indent.php' => true, + 'modifiercompiler.lower.php' => true, + 'modifiercompiler.noprint.php' => true, + 'modifiercompiler.string_format.php' => true, + 'modifiercompiler.strip.php' => true, + 'modifiercompiler.strip_tags.php' => true, + 'modifiercompiler.to_charset.php' => true, + 'modifiercompiler.unescape.php' => true, + 'modifiercompiler.upper.php' => true, + 'modifiercompiler.wordwrap.php' => true, + 'outputfilter.trimwhitespace.php' => true, + 'shared.escape_special_chars.php' => true, + 'shared.literal_compiler_param.php' => true, + 'shared.make_timestamp.php' => true, + 'shared.mb_str_replace.php' => true, + 'shared.mb_unicode.php' => true, + 'variablefilter.htmlspecialchars.php' => true, + ); $iterator = new DirectoryIterator($source); foreach ($iterator as $file) { if (!$file->isDot()) {