mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-29 11:21:36 +01:00
2434 lines
123 KiB
PHP
2434 lines
123 KiB
PHP
<?php
|
|
|
|
class TP_yyToken implements ArrayAccess
|
|
{
|
|
public $string = '';
|
|
|
|
public $metadata = array();
|
|
|
|
public function __construct($s, $m = array())
|
|
{
|
|
if ($s instanceof TP_yyToken) {
|
|
$this->string = $s->string;
|
|
$this->metadata = $s->metadata;
|
|
} else {
|
|
$this->string = (string) $s;
|
|
if ($m instanceof TP_yyToken) {
|
|
$this->metadata = $m->metadata;
|
|
} elseif (is_array($m)) {
|
|
$this->metadata = $m;
|
|
}
|
|
}
|
|
}
|
|
|
|
public function __toString()
|
|
{
|
|
return $this->string;
|
|
}
|
|
|
|
public function offsetExists($offset)
|
|
{
|
|
return isset($this->metadata[$offset]);
|
|
}
|
|
|
|
public function offsetGet($offset)
|
|
{
|
|
return $this->metadata[$offset];
|
|
}
|
|
|
|
public function offsetSet($offset, $value)
|
|
{
|
|
if ($offset === null) {
|
|
if (isset($value[0])) {
|
|
$x = ($value instanceof TP_yyToken) ? $value->metadata : $value;
|
|
$this->metadata = array_merge($this->metadata, $x);
|
|
|
|
return;
|
|
}
|
|
$offset = count($this->metadata);
|
|
}
|
|
if ($value === null) {
|
|
return;
|
|
}
|
|
if ($value instanceof TP_yyToken) {
|
|
if ($value->metadata) {
|
|
$this->metadata[$offset] = $value->metadata;
|
|
}
|
|
} elseif ($value) {
|
|
$this->metadata[$offset] = $value;
|
|
}
|
|
}
|
|
|
|
public function offsetUnset($offset)
|
|
{
|
|
unset($this->metadata[$offset]);
|
|
}
|
|
}
|
|
|
|
class TP_yyStackEntry
|
|
{
|
|
public $stateno; /* The state-number */
|
|
public $major; /* The major token value. This is the code
|
|
** number for the token at this stack level */
|
|
public $minor; /* The user-supplied minor token value. This
|
|
** is the value of the token */
|
|
}
|
|
|
|
;
|
|
|
|
#line 13 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
|
|
/**
|
|
* Smarty Internal Plugin Templateparser
|
|
*
|
|
* This is the template parser.
|
|
* It is generated from the smarty_internal_templateparser.y file
|
|
*
|
|
* @package Smarty
|
|
* @subpackage Compiler
|
|
* @author Uwe Tews
|
|
*/
|
|
class Smarty_Internal_Templateparser
|
|
{
|
|
#line 26 "../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";
|
|
|
|
/**
|
|
* result status
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $successful = true;
|
|
|
|
/**
|
|
* return value
|
|
*
|
|
* @var mixed
|
|
*/
|
|
public $retvalue = 0;
|
|
|
|
/**
|
|
* counter for prefix code
|
|
*
|
|
* @var int
|
|
*/
|
|
public static $prefix_number = 0;
|
|
|
|
/**
|
|
* @var
|
|
*/
|
|
public $yymajor;
|
|
|
|
/**
|
|
* last index of array variable
|
|
*
|
|
* @var mixed
|
|
*/
|
|
public $last_index;
|
|
|
|
/**
|
|
* last variable name
|
|
*
|
|
* @var string
|
|
*/
|
|
public $last_variable;
|
|
|
|
/**
|
|
* root parse tree buffer
|
|
*
|
|
* @var Smarty_Internal_ParseTree
|
|
*/
|
|
public $root_buffer;
|
|
|
|
/**
|
|
* current parse tree object
|
|
*
|
|
* @var Smarty_Internal_ParseTree
|
|
*/
|
|
public $current_buffer;
|
|
|
|
/**
|
|
* lexer object
|
|
*
|
|
* @var Smarty_Internal_Templatelexer
|
|
*/
|
|
private $lex;
|
|
|
|
/**
|
|
* internal error flag
|
|
*
|
|
* @var bool
|
|
*/
|
|
private $internalError = false;
|
|
|
|
/**
|
|
* {strip} status
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $strip = false;
|
|
|
|
/**
|
|
* compiler object
|
|
*
|
|
* @var Smarty_Internal_TemplateCompilerBase
|
|
*/
|
|
public $compiler = null;
|
|
|
|
/**
|
|
* smarty object
|
|
*
|
|
* @var Smarty
|
|
*/
|
|
public $smarty = null;
|
|
|
|
/**
|
|
* template object
|
|
*
|
|
* @var Smarty_Internal_Template
|
|
*/
|
|
public $template = null;
|
|
|
|
/**
|
|
* block nesting level
|
|
*
|
|
* @var int
|
|
*/
|
|
public $block_nesting_level = 0;
|
|
|
|
/**
|
|
* security object
|
|
*
|
|
* @var Smarty_Security
|
|
*/
|
|
private $security = null;
|
|
|
|
/**
|
|
* constructor
|
|
*
|
|
* @param Smarty_Internal_Templatelexer $lex
|
|
* @param Smarty_Internal_TemplateCompilerBase $compiler
|
|
*/
|
|
function __construct(Smarty_Internal_Templatelexer $lex, Smarty_Internal_TemplateCompilerBase $compiler)
|
|
{
|
|
$this->lex = $lex;
|
|
$this->compiler = $compiler;
|
|
$this->template = $this->compiler->template;
|
|
$this->smarty = $this->template->smarty;
|
|
$this->security = isset($this->smarty->security_policy) ? $this->smarty->security_policy : false;
|
|
$this->current_buffer = $this->root_buffer = new Smarty_Internal_ParseTree_Template($this);
|
|
}
|
|
|
|
/**
|
|
* insert PHP code in current buffer
|
|
*
|
|
* @param string $code
|
|
*/
|
|
public function insertPhpCode($code)
|
|
{
|
|
$this->current_buffer->append_subtree(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 = empty($tmp) ? $preCode : $this->compiler->appendCode($tmp, $preCode);
|
|
}
|
|
$this->compiler->prefix_code = array();
|
|
$tmp = empty($tmp) ? $code : $this->compiler->appendCode($tmp, $code);
|
|
return new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode($tmp, true));
|
|
}
|
|
|
|
const TP_VERT = 1;
|
|
|
|
const TP_COLON = 2;
|
|
|
|
const TP_PHP = 3;
|
|
|
|
const TP_NOCACHE = 4;
|
|
|
|
const TP_TEXT = 5;
|
|
|
|
const TP_STRIPON = 6;
|
|
|
|
const TP_STRIPOFF = 7;
|
|
|
|
const TP_BLOCKSOURCE = 8;
|
|
|
|
const TP_LITERALSTART = 9;
|
|
|
|
const TP_LITERALEND = 10;
|
|
|
|
const TP_LITERAL = 11;
|
|
|
|
const TP_RDEL = 12;
|
|
|
|
const TP_SIMPLEOUTPUT = 13;
|
|
|
|
const TP_LDEL = 14;
|
|
|
|
const TP_DOLLARID = 15;
|
|
|
|
const TP_EQUAL = 16;
|
|
|
|
const TP_SIMPLETAG = 17;
|
|
|
|
const TP_ID = 18;
|
|
|
|
const TP_PTR = 19;
|
|
|
|
const TP_LDELIF = 20;
|
|
|
|
const TP_LDELFOR = 21;
|
|
|
|
const TP_SEMICOLON = 22;
|
|
|
|
const TP_INCDEC = 23;
|
|
|
|
const TP_TO = 24;
|
|
|
|
const TP_STEP = 25;
|
|
|
|
const TP_LDELFOREACH = 26;
|
|
|
|
const TP_SPACE = 27;
|
|
|
|
const TP_AS = 28;
|
|
|
|
const TP_APTR = 29;
|
|
|
|
const TP_LDELSETFILTER = 30;
|
|
|
|
const TP_SMARTYBLOCKCHILDPARENT = 31;
|
|
|
|
const TP_CLOSETAG = 32;
|
|
|
|
const TP_LDELSLASH = 33;
|
|
|
|
const TP_ATTR = 34;
|
|
|
|
const TP_INTEGER = 35;
|
|
|
|
const TP_COMMA = 36;
|
|
|
|
const TP_OPENP = 37;
|
|
|
|
const TP_CLOSEP = 38;
|
|
|
|
const TP_MATH = 39;
|
|
|
|
const TP_UNIMATH = 40;
|
|
|
|
const TP_ISIN = 41;
|
|
|
|
const TP_INSTANCEOF = 42;
|
|
|
|
const TP_QMARK = 43;
|
|
|
|
const TP_NOT = 44;
|
|
|
|
const TP_TYPECAST = 45;
|
|
|
|
const TP_HEX = 46;
|
|
|
|
const TP_DOT = 47;
|
|
|
|
const TP_SINGLEQUOTESTRING = 48;
|
|
|
|
const TP_DOUBLECOLON = 49;
|
|
|
|
const TP_NAMESPACE = 50;
|
|
|
|
const TP_AT = 51;
|
|
|
|
const TP_HATCH = 52;
|
|
|
|
const TP_OPENB = 53;
|
|
|
|
const TP_CLOSEB = 54;
|
|
|
|
const TP_DOLLAR = 55;
|
|
|
|
const TP_LOGOP = 56;
|
|
|
|
const TP_TLOGOP = 57;
|
|
|
|
const TP_SINGLECOND = 58;
|
|
|
|
const TP_QUOTE = 59;
|
|
|
|
const TP_BACKTICK = 60;
|
|
|
|
const YY_NO_ACTION = 533;
|
|
|
|
const YY_ACCEPT_ACTION = 532;
|
|
|
|
const YY_ERROR_ACTION = 531;
|
|
|
|
const YY_SZ_ACTTAB = 1954;
|
|
|
|
static public $yy_action = array(293, 9, 132, 208, 279, 200, 449, 3, 83, 286, 287, 288, 224, 112, 359, 222, 239,
|
|
220, 449, 264, 240, 296, 207, 257, 35, 263, 263, 43, 101, 13, 16, 42, 40, 269, 217, 230, 27, 216, 449, 81, 1,
|
|
247, 317, 265, 169, 169, 52, 293, 9, 131, 449, 279, 70, 241, 3, 83, 137, 21, 90, 151, 112, 268, 10, 309, 220,
|
|
303, 264, 240, 266, 242, 13, 35, 171, 274, 43, 183, 304, 27, 42, 40, 269, 217, 298, 142, 216, 196, 81, 1, 98,
|
|
317, 88, 157, 266, 52, 293, 9, 134, 208, 279, 199, 266, 3, 83, 33, 325, 93, 159, 112, 407, 194, 15, 220, 254,
|
|
264, 240, 266, 213, 196, 35, 136, 263, 43, 227, 407, 154, 42, 40, 269, 217, 298, 407, 216, 196, 81, 1, 20, 317,
|
|
180, 147, 169, 52, 293, 9, 134, 208, 279, 210, 266, 3, 83, 33, 325, 316, 208, 112, 306, 81, 222, 220, 317, 264,
|
|
240, 218, 242, 196, 35, 263, 120, 43, 261, 13, 106, 42, 40, 269, 217, 298, 27, 216, 13, 81, 1, 260, 317, 139,
|
|
169, 27, 52, 293, 9, 134, 302, 279, 197, 164, 3, 83, 137, 21, 97, 158, 112, 268, 10, 450, 220, 94, 264, 240,
|
|
266, 242, 13, 35, 167, 332, 43, 450, 449, 27, 42, 40, 269, 217, 298, 317, 216, 196, 81, 1, 449, 317, 180, 174,
|
|
11, 52, 293, 9, 136, 262, 279, 210, 266, 3, 83, 33, 325, 329, 92, 112, 238, 221, 206, 220, 119, 264, 240, 13,
|
|
242, 196, 32, 21, 141, 43, 27, 268, 119, 42, 40, 269, 217, 298, 237, 216, 13, 81, 1, 114, 317, 180, 179, 27, 52,
|
|
293, 9, 134, 208, 279, 210, 266, 3, 83, 33, 325, 96, 152, 112, 362, 208, 6, 220, 28, 264, 240, 266, 198, 196,
|
|
35, 243, 21, 43, 118, 13, 268, 42, 40, 269, 217, 298, 27, 216, 196, 81, 1, 5, 317, 180, 160, 180, 52, 293, 9,
|
|
133, 208, 279, 210, 266, 3, 83, 33, 325, 33, 325, 112, 407, 104, 225, 220, 317, 264, 240, 26, 242, 196, 2, 196,
|
|
478, 43, 259, 407, 478, 42, 40, 269, 217, 298, 407, 216, 101, 81, 1, 478, 317, 180, 145, 478, 52, 293, 9, 134,
|
|
208, 279, 201, 266, 3, 83, 33, 325, 226, 18, 112, 401, 101, 478, 220, 252, 264, 240, 109, 242, 196, 35, 20, 21,
|
|
43, 101, 13, 268, 42, 40, 269, 217, 298, 27, 216, 316, 81, 1, 7, 317, 222, 150, 109, 52, 293, 9, 135, 462, 279,
|
|
210, 266, 3, 83, 462, 208, 109, 310, 112, 190, 297, 291, 220, 177, 264, 240, 404, 242, 194, 35, 263, 15, 43,
|
|
251, 85, 313, 42, 40, 269, 217, 298, 404, 216, 185, 81, 1, 236, 317, 404, 169, 228, 52, 293, 9, 136, 194, 279,
|
|
210, 107, 3, 83, 330, 478, 317, 19, 112, 478, 462, 15, 220, 305, 264, 240, 324, 242, 336, 32, 21, 101, 43, 121,
|
|
268, 208, 42, 40, 269, 217, 298, 163, 216, 267, 81, 186, 304, 317, 462, 405, 462, 52, 478, 219, 462, 285, 284,
|
|
282, 283, 289, 290, 190, 208, 22, 405, 293, 9, 229, 140, 279, 318, 405, 3, 83, 449, 187, 304, 266, 112, 31, 231,
|
|
95, 220, 162, 264, 240, 449, 172, 323, 267, 146, 23, 267, 222, 212, 208, 266, 115, 73, 108, 39, 41, 38, 106,
|
|
238, 248, 278, 335, 119, 322, 215, 277, 299, 194, 260, 321, 121, 327, 328, 334, 317, 323, 462, 4, 205, 312, 222,
|
|
212, 462, 5, 124, 71, 108, 238, 234, 249, 106, 119, 294, 278, 335, 295, 173, 215, 277, 299, 208, 260, 319, 149,
|
|
323, 266, 226, 156, 214, 222, 212, 153, 266, 124, 71, 108, 266, 267, 233, 106, 266, 128, 278, 335, 24, 208, 215,
|
|
277, 299, 176, 260, 37, 267, 194, 323, 188, 367, 211, 266, 222, 212, 208, 37, 124, 48, 105, 111, 25, 191, 106,
|
|
267, 281, 278, 335, 155, 226, 215, 277, 299, 323, 260, 292, 196, 266, 222, 212, 17, 36, 115, 73, 108, 271, 276,
|
|
27, 106, 196, 265, 278, 335, 144, 194, 215, 277, 299, 244, 260, 181, 192, 323, 182, 270, 263, 143, 222, 212,
|
|
250, 311, 124, 53, 105, 234, 266, 166, 106, 165, 84, 278, 335, 168, 184, 215, 277, 299, 196, 260, 323, 196, 266,
|
|
275, 189, 222, 212, 331, 170, 124, 71, 108, 253, 138, 280, 106, 87, 333, 278, 335, 274, 175, 215, 277, 299, 323,
|
|
260, 208, 116, 301, 222, 212, 91, 209, 124, 77, 108, 267, 373, 86, 106, 89, 148, 278, 335, 232, 314, 215, 277,
|
|
299, 301, 260, 301, 13, 293, 8, 315, 161, 279, 301, 27, 3, 83, 449, 14, 202, 301, 112, 272, 301, 301, 220, 323,
|
|
264, 240, 449, 301, 222, 212, 301, 301, 124, 74, 108, 301, 273, 301, 106, 301, 301, 278, 335, 301, 301, 215,
|
|
277, 299, 323, 260, 301, 301, 12, 222, 212, 301, 317, 124, 53, 108, 301, 301, 301, 106, 301, 301, 278, 335, 301,
|
|
301, 215, 277, 299, 323, 260, 301, 301, 301, 222, 212, 301, 301, 124, 78, 108, 301, 301, 301, 106, 301, 301,
|
|
278, 335, 301, 314, 215, 277, 299, 301, 260, 301, 301, 293, 8, 315, 301, 279, 301, 301, 3, 83, 301, 301, 301,
|
|
301, 112, 301, 301, 323, 220, 301, 264, 240, 222, 212, 301, 301, 124, 44, 108, 301, 301, 301, 106, 301, 301,
|
|
278, 335, 301, 301, 215, 277, 299, 301, 260, 323, 301, 301, 300, 12, 222, 212, 301, 301, 124, 63, 108, 301, 301,
|
|
301, 106, 301, 301, 278, 335, 301, 301, 215, 277, 299, 323, 260, 301, 301, 301, 222, 212, 301, 301, 124, 57,
|
|
108, 301, 301, 301, 106, 301, 301, 278, 335, 301, 301, 215, 277, 299, 323, 260, 301, 301, 301, 222, 212, 301,
|
|
301, 124, 62, 108, 301, 301, 301, 106, 301, 301, 278, 335, 301, 301, 215, 277, 299, 323, 260, 301, 301, 301,
|
|
222, 212, 301, 301, 124, 75, 108, 301, 301, 301, 106, 301, 301, 278, 335, 301, 301, 215, 277, 299, 323, 260,
|
|
301, 301, 301, 222, 212, 301, 301, 99, 60, 108, 301, 301, 301, 106, 301, 301, 278, 335, 301, 301, 215, 277, 299,
|
|
323, 260, 301, 301, 301, 222, 212, 301, 301, 124, 47, 108, 301, 301, 301, 106, 301, 301, 278, 335, 301, 301,
|
|
215, 277, 299, 323, 260, 301, 301, 301, 222, 212, 301, 301, 102, 69, 108, 301, 301, 301, 106, 301, 301, 278,
|
|
335, 301, 301, 215, 277, 299, 323, 260, 301, 301, 301, 222, 203, 301, 301, 124, 61, 108, 301, 301, 301, 106,
|
|
301, 301, 278, 335, 301, 301, 215, 277, 299, 323, 260, 301, 301, 301, 222, 212, 301, 301, 124, 46, 108, 301,
|
|
301, 301, 106, 301, 301, 278, 335, 301, 301, 215, 277, 299, 323, 260, 301, 301, 301, 222, 204, 301, 301, 117,
|
|
58, 108, 301, 301, 301, 106, 301, 301, 278, 335, 301, 301, 215, 277, 299, 323, 260, 301, 301, 301, 222, 79, 301,
|
|
301, 82, 50, 103, 301, 301, 301, 106, 301, 301, 278, 335, 301, 301, 215, 277, 299, 323, 260, 301, 301, 301, 222,
|
|
212, 301, 301, 124, 54, 108, 301, 301, 301, 106, 301, 301, 278, 335, 301, 301, 215, 277, 299, 323, 260, 301,
|
|
301, 301, 222, 212, 301, 301, 113, 49, 108, 301, 301, 301, 106, 301, 301, 278, 335, 301, 301, 215, 277, 299,
|
|
323, 260, 301, 301, 301, 222, 212, 301, 301, 124, 64, 108, 301, 301, 301, 106, 301, 301, 278, 335, 301, 301,
|
|
215, 277, 299, 323, 260, 301, 301, 301, 222, 212, 301, 301, 124, 72, 108, 301, 301, 301, 106, 301, 301, 278,
|
|
335, 301, 301, 215, 277, 299, 323, 260, 301, 301, 301, 222, 212, 301, 301, 124, 67, 108, 301, 301, 301, 106,
|
|
301, 301, 278, 335, 301, 301, 215, 277, 299, 323, 260, 301, 301, 301, 222, 212, 301, 301, 124, 68, 108, 301,
|
|
301, 301, 106, 301, 301, 278, 335, 301, 301, 215, 277, 299, 323, 260, 301, 301, 301, 222, 212, 301, 301, 100,
|
|
76, 108, 301, 301, 301, 106, 301, 301, 278, 335, 301, 301, 215, 277, 299, 323, 260, 301, 301, 301, 222, 212,
|
|
301, 301, 124, 59, 108, 301, 301, 301, 106, 301, 301, 278, 335, 301, 301, 215, 277, 299, 323, 260, 301, 301,
|
|
301, 222, 80, 301, 301, 82, 45, 103, 301, 301, 301, 106, 301, 301, 278, 335, 301, 301, 215, 277, 299, 323, 260,
|
|
301, 301, 301, 222, 212, 301, 301, 124, 65, 108, 301, 301, 301, 106, 301, 301, 278, 335, 301, 301, 215, 277,
|
|
299, 323, 260, 301, 301, 301, 222, 212, 301, 301, 124, 56, 108, 301, 301, 301, 106, 301, 301, 278, 335, 301,
|
|
301, 215, 277, 299, 323, 260, 301, 301, 301, 222, 212, 301, 301, 124, 66, 108, 301, 301, 301, 106, 301, 301,
|
|
278, 335, 301, 301, 215, 277, 299, 323, 260, 301, 301, 301, 222, 212, 301, 301, 124, 55, 108, 301, 301, 301,
|
|
106, 301, 301, 278, 335, 301, 301, 215, 277, 299, 323, 260, 301, 208, 301, 222, 235, 301, 301, 122, 301, 108,
|
|
301, 301, 193, 106, 301, 417, 417, 326, 301, 301, 215, 277, 299, 323, 260, 301, 208, 301, 222, 235, 301, 301,
|
|
130, 301, 108, 301, 301, 307, 106, 39, 41, 38, 255, 301, 301, 215, 277, 299, 301, 260, 301, 449, 13, 417, 417,
|
|
417, 327, 328, 334, 27, 301, 208, 301, 449, 39, 41, 38, 301, 301, 323, 417, 417, 417, 301, 222, 235, 301, 301,
|
|
127, 301, 108, 327, 328, 334, 106, 29, 301, 13, 301, 301, 301, 215, 277, 299, 27, 260, 301, 301, 323, 39, 41,
|
|
38, 301, 222, 235, 301, 301, 129, 301, 108, 301, 301, 301, 106, 301, 301, 327, 328, 334, 301, 215, 277, 299,
|
|
301, 260, 301, 301, 323, 301, 301, 301, 301, 222, 235, 301, 301, 125, 301, 108, 301, 301, 301, 106, 301, 301,
|
|
301, 301, 301, 301, 215, 277, 299, 301, 260, 301, 301, 301, 323, 39, 41, 38, 301, 222, 235, 301, 301, 126, 301,
|
|
108, 301, 301, 301, 106, 301, 208, 327, 328, 334, 301, 215, 277, 299, 323, 260, 301, 208, 301, 222, 235, 301,
|
|
301, 123, 301, 108, 301, 301, 195, 106, 301, 301, 13, 301, 301, 228, 215, 277, 299, 27, 260, 301, 228, 301, 39,
|
|
41, 38, 478, 301, 23, 301, 478, 462, 301, 478, 39, 41, 38, 478, 462, 208, 327, 328, 334, 208, 301, 301, 301,
|
|
301, 301, 301, 258, 327, 328, 334, 301, 301, 301, 301, 301, 462, 301, 462, 301, 478, 301, 462, 462, 208, 462,
|
|
301, 478, 301, 462, 320, 208, 301, 301, 39, 41, 38, 256, 39, 41, 38, 301, 246, 301, 301, 301, 301, 301, 301,
|
|
301, 301, 327, 328, 334, 301, 327, 328, 334, 208, 301, 301, 30, 39, 41, 38, 208, 34, 301, 301, 39, 41, 38, 301,
|
|
478, 301, 301, 301, 478, 462, 327, 328, 334, 301, 308, 301, 178, 327, 328, 334, 208, 301, 301, 301, 301, 301,
|
|
301, 39, 41, 38, 301, 301, 301, 301, 39, 41, 38, 462, 228, 462, 301, 478, 301, 462, 327, 328, 334, 301, 301,
|
|
301, 478, 327, 328, 334, 478, 462, 411, 223, 39, 41, 38, 208, 301, 301, 301, 301, 411, 301, 411, 301, 301, 411,
|
|
301, 208, 301, 327, 328, 334, 411, 301, 411, 301, 411, 462, 301, 462, 301, 478, 478, 462, 301, 226, 478, 462,
|
|
110, 301, 301, 301, 301, 39, 41, 38, 532, 51, 245, 287, 288, 224, 301, 301, 222, 39, 41, 38, 301, 301, 327, 328,
|
|
334, 301, 301, 462, 301, 462, 301, 478, 301, 462, 327, 328, 334,);
|
|
|
|
static public $yy_lookahead = array(13, 14, 15, 1, 17, 18, 37, 20, 21, 64, 65, 66, 67, 26, 12, 70, 47, 30, 49, 32,
|
|
33, 10, 35, 54, 37, 23, 23, 40, 19, 27, 29, 44, 45, 46, 47, 48, 34, 50, 37, 52, 53, 54, 55, 100, 42, 42, 59, 13,
|
|
14, 15, 49, 17, 18, 18, 20, 21, 47, 14, 72, 73, 26, 18, 53, 60, 30, 31, 32, 33, 82, 35, 27, 37, 29, 93, 40, 95,
|
|
96, 34, 44, 45, 46, 47, 48, 73, 50, 99, 52, 53, 81, 55, 72, 73, 82, 59, 13, 14, 15, 1, 17, 18, 82, 20, 21, 85,
|
|
86, 72, 73, 26, 12, 99, 36, 30, 38, 32, 33, 82, 35, 99, 37, 15, 23, 40, 18, 27, 28, 44, 45, 46, 47, 48, 34, 50,
|
|
99, 52, 53, 16, 55, 72, 73, 42, 59, 13, 14, 15, 1, 17, 18, 82, 20, 21, 85, 86, 65, 1, 26, 12, 52, 70, 30, 55,
|
|
32, 33, 71, 35, 99, 37, 23, 76, 40, 18, 27, 80, 44, 45, 46, 47, 48, 34, 50, 27, 52, 53, 91, 55, 15, 42, 34, 59,
|
|
13, 14, 15, 104, 17, 18, 92, 20, 21, 47, 14, 72, 73, 26, 18, 53, 37, 30, 37, 32, 33, 82, 35, 27, 37, 29, 18, 40,
|
|
49, 37, 34, 44, 45, 46, 47, 48, 55, 50, 99, 52, 53, 49, 55, 72, 73, 22, 59, 13, 14, 15, 18, 17, 18, 82, 20, 21,
|
|
85, 86, 50, 36, 26, 76, 77, 78, 30, 80, 32, 33, 27, 35, 99, 37, 14, 76, 40, 34, 18, 80, 44, 45, 46, 47, 48, 51,
|
|
50, 27, 52, 53, 18, 55, 72, 73, 34, 59, 13, 14, 15, 1, 17, 18, 82, 20, 21, 85, 86, 72, 73, 26, 12, 1, 37, 30,
|
|
14, 32, 33, 82, 35, 99, 37, 15, 14, 40, 49, 27, 18, 44, 45, 46, 47, 48, 34, 50, 99, 52, 53, 37, 55, 72, 73, 72,
|
|
59, 13, 14, 15, 1, 17, 18, 82, 20, 21, 85, 86, 85, 86, 26, 12, 68, 51, 30, 55, 32, 33, 16, 35, 99, 37, 99, 14,
|
|
40, 23, 27, 18, 44, 45, 46, 47, 48, 34, 50, 19, 52, 53, 14, 55, 72, 73, 18, 59, 13, 14, 15, 1, 17, 18, 82, 20,
|
|
21, 85, 86, 47, 16, 26, 12, 19, 51, 30, 54, 32, 33, 49, 35, 99, 37, 16, 14, 40, 19, 27, 18, 44, 45, 46, 47, 48,
|
|
34, 50, 65, 52, 53, 36, 55, 70, 73, 49, 59, 13, 14, 15, 47, 17, 18, 82, 20, 21, 53, 1, 49, 54, 26, 9, 10, 11,
|
|
30, 15, 32, 33, 12, 35, 99, 37, 23, 36, 40, 38, 103, 104, 44, 45, 46, 47, 48, 27, 50, 15, 52, 53, 18, 55, 34,
|
|
42, 2, 59, 13, 14, 15, 99, 17, 18, 80, 20, 21, 54, 14, 55, 16, 26, 18, 19, 36, 30, 38, 32, 33, 90, 35, 97, 37,
|
|
14, 19, 40, 97, 18, 1, 44, 45, 46, 47, 48, 92, 50, 94, 52, 95, 96, 55, 47, 12, 49, 59, 51, 16, 53, 3, 4, 5, 6,
|
|
7, 8, 9, 1, 29, 27, 13, 14, 51, 73, 17, 96, 34, 20, 21, 37, 95, 96, 82, 26, 14, 15, 92, 30, 18, 32, 33, 49, 73,
|
|
65, 94, 92, 16, 94, 70, 71, 1, 82, 74, 75, 76, 39, 40, 41, 80, 76, 77, 83, 84, 80, 90, 87, 88, 89, 99, 91, 54,
|
|
97, 56, 57, 58, 55, 65, 47, 37, 101, 102, 70, 71, 53, 37, 74, 75, 76, 76, 77, 54, 80, 80, 66, 83, 84, 69, 73,
|
|
87, 88, 89, 1, 91, 54, 73, 65, 82, 47, 73, 98, 70, 71, 73, 82, 74, 75, 76, 82, 94, 19, 80, 82, 18, 83, 84, 16,
|
|
1, 87, 88, 89, 73, 91, 2, 94, 99, 65, 72, 12, 98, 82, 70, 71, 1, 2, 74, 75, 76, 77, 43, 72, 80, 94, 5, 83, 84,
|
|
73, 47, 87, 88, 89, 65, 91, 12, 99, 82, 70, 71, 27, 24, 74, 75, 76, 18, 35, 34, 80, 99, 100, 83, 84, 52, 99, 87,
|
|
88, 89, 18, 91, 72, 18, 65, 72, 35, 23, 73, 70, 71, 38, 102, 74, 75, 76, 77, 82, 92, 80, 52, 18, 83, 84, 73, 81,
|
|
87, 88, 89, 99, 91, 65, 99, 82, 18, 81, 70, 71, 18, 92, 74, 75, 76, 54, 80, 82, 80, 80, 87, 83, 84, 93, 92, 87,
|
|
88, 89, 65, 91, 1, 79, 105, 70, 71, 80, 98, 74, 75, 76, 94, 12, 80, 80, 80, 92, 83, 84, 19, 5, 87, 88, 89, 105,
|
|
91, 105, 27, 13, 14, 15, 92, 17, 105, 34, 20, 21, 37, 14, 15, 105, 26, 18, 105, 105, 30, 65, 32, 33, 49, 105,
|
|
70, 71, 105, 105, 74, 75, 76, 105, 35, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 59, 60, 70,
|
|
71, 105, 55, 74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70,
|
|
71, 105, 105, 74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 5, 87, 88, 89, 105, 91, 105, 105, 13, 14,
|
|
15, 105, 17, 105, 105, 20, 21, 105, 105, 105, 105, 26, 105, 105, 65, 30, 105, 32, 33, 70, 71, 105, 105, 74, 75,
|
|
76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 105, 91, 65, 105, 105, 59, 60, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 105, 105, 70, 71, 105, 105,
|
|
74, 75, 76, 105, 105, 105, 80, 105, 105, 83, 84, 105, 105, 87, 88, 89, 65, 91, 105, 1, 105, 70, 71, 105, 105,
|
|
74, 105, 76, 105, 105, 12, 80, 105, 1, 2, 84, 105, 105, 87, 88, 89, 65, 91, 105, 1, 105, 70, 71, 105, 105, 74,
|
|
105, 76, 105, 105, 12, 80, 39, 40, 41, 84, 105, 105, 87, 88, 89, 105, 91, 105, 37, 27, 39, 40, 41, 56, 57, 58,
|
|
34, 105, 1, 105, 49, 39, 40, 41, 105, 105, 65, 56, 57, 58, 105, 70, 71, 105, 105, 74, 105, 76, 56, 57, 58, 80,
|
|
25, 105, 27, 105, 105, 105, 87, 88, 89, 34, 91, 105, 105, 65, 39, 40, 41, 105, 70, 71, 105, 105, 74, 105, 76,
|
|
105, 105, 105, 80, 105, 105, 56, 57, 58, 105, 87, 88, 89, 105, 91, 105, 105, 65, 105, 105, 105, 105, 70, 71,
|
|
105, 105, 74, 105, 76, 105, 105, 105, 80, 105, 105, 105, 105, 105, 105, 87, 88, 89, 105, 91, 105, 105, 105, 65,
|
|
39, 40, 41, 105, 70, 71, 105, 105, 74, 105, 76, 105, 105, 105, 80, 105, 1, 56, 57, 58, 105, 87, 88, 89, 65, 91,
|
|
105, 1, 105, 70, 71, 105, 105, 74, 105, 76, 105, 105, 12, 80, 105, 105, 27, 105, 105, 2, 87, 88, 89, 34, 91,
|
|
105, 2, 105, 39, 40, 41, 14, 105, 16, 105, 18, 19, 105, 14, 39, 40, 41, 18, 19, 1, 56, 57, 58, 1, 105, 105, 105,
|
|
105, 105, 105, 12, 56, 57, 58, 105, 105, 105, 105, 105, 47, 105, 49, 105, 51, 105, 53, 47, 1, 49, 105, 51, 105,
|
|
53, 54, 1, 105, 105, 39, 40, 41, 38, 39, 40, 41, 105, 12, 105, 105, 105, 105, 105, 105, 105, 105, 56, 57, 58,
|
|
105, 56, 57, 58, 1, 105, 105, 2, 39, 40, 41, 1, 2, 105, 105, 39, 40, 41, 105, 14, 105, 105, 105, 18, 19, 56, 57,
|
|
58, 105, 60, 105, 28, 56, 57, 58, 1, 105, 105, 105, 105, 105, 105, 39, 40, 41, 105, 105, 105, 105, 39, 40, 41,
|
|
47, 2, 49, 105, 51, 105, 53, 56, 57, 58, 105, 105, 105, 14, 56, 57, 58, 18, 19, 12, 38, 39, 40, 41, 1, 105, 105,
|
|
105, 105, 22, 105, 24, 105, 105, 27, 105, 1, 105, 56, 57, 58, 34, 105, 36, 105, 38, 47, 105, 49, 105, 51, 14,
|
|
53, 105, 47, 18, 19, 22, 105, 105, 105, 105, 39, 40, 41, 62, 63, 64, 65, 66, 67, 105, 105, 70, 39, 40, 41, 105,
|
|
105, 56, 57, 58, 105, 105, 47, 105, 49, 105, 51, 105, 53, 56, 57, 58,);
|
|
|
|
const YY_SHIFT_USE_DFLT = - 32;
|
|
|
|
const YY_SHIFT_MAX = 242;
|
|
|
|
static public $yy_shift_ofst = array(517, 363, 316, 316, 128, 128, 128, 363, 34, 34, - 13, 128, 128, 81, 128, 128,
|
|
128, 81, 128, 128, 128, 128, 128, 269, 128, 410, 128, 128, 128, 128, 175, 128, 128, 128, 128, 128, 128, 222,
|
|
222, 457, 457, 457, 457, 457, 1582, 1547, 1695, 1695, 1695, 1695, 1695, 517, 864, 1842, 1895, 1784, 1818, 1522,
|
|
526, 1706, 1811, 1777, 1749, 1753, 1883, 1883, 1883, 1883, 1883, 1883, 752, 1883, 1883, 1883, 1883, 1883, 1883,
|
|
1641, 1641, 2, 143, 104, 284, 169, 152, 767, 43, 184, 378, 246, 378, 246, 169, 152, 169, 9, 152, 152, 651, 96,
|
|
432, 530, 331, 372, 428, 385, 481, 388, 348, 446, 426, 229, 650, 635, 610, 499, 229, 559, 446, 388, 477, 477,
|
|
296, 296, 296, 296, 296, 296, 296, 296, - 32, 466, 1730, 1723, 1859, 1813, 1897, 776, 294, 540, 229, 334, 229,
|
|
229, 379, 229, 150, 229, 150, 229, 229, 229, 229, 229, 292, 229, 229, 229, 229, 229, 229, 150, 286, 150, 150,
|
|
379, 150, 292, 229, 196, 150, 292, 229, 229, 229, 150, 229, 356, 292, 229, 296, 296, 296, 477, 640, 551, 477,
|
|
477, 296, 640, 11, 296, - 32, - 32, - 32, - 32, - 32, 1536, 1867, 502, - 31, 1, 341, 3, 425, 381, 211, 340, 220,
|
|
450, 180, 413, 97, 619, 74, 261, 167, 648, 638, 677, 680, 654, 660, 615, 657, 664, 666, 663, 711, 715, 684, 551,
|
|
698, 614, 668, 679, 557, 151, 119, 35, 258, 546, 570,);
|
|
|
|
const YY_REDUCE_USE_DFLT = - 58;
|
|
|
|
const YY_REDUCE_MAX = 196;
|
|
|
|
static public $yy_reduce_ofst = array(1863, 488, 634, 580, 661, 550, 521, 605, 1330, 1105, 1080, 1130, 1030, 1005,
|
|
905, 1180, 930, 955, 980, 1155, 1205, 1430, 1405, 1355, 1230, 1380, 1255, 1280, 1305, 1055, 686, 880, 855, 733,
|
|
783, 758, 828, 1480, 1455, 1584, 1526, 1639, 1614, 1555, 159, 18, 206, 300, 253, 65, 18, - 55, 349, 255, 255,
|
|
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 221, 255, 255, 255, 255, 255, 255,
|
|
255, 255, 127, 127, 91, - 14, 173, 33, 87, 534, 549, 479, 460, 347, 567, 493, 10, 522, - 20, 592, 545, 587, 574,
|
|
574, 396, 574, 415, 537, 415, 463, 414, 415, 401, 185, 646, 541, 574, 625, 574, 630, 574, 484, 463, 415, 445,
|
|
574, 574, 574, 574, 574, 574, 628, 574, 574, 102, 102, 102, 102, 102, 102, 659, 669, 102, 658, 675, 658, 658,
|
|
655, 658, 653, 658, 653, 658, 658, 658, 658, 658, 662, 658, 658, 658, 658, 658, 658, 653, 691, 653, 653, 676,
|
|
653, 678, 658, 656, 653, 687, 658, 658, 658, 653, 658, 102, 685, 658, 374, 374, 374, 439, - 57, 454, 439, 439,
|
|
374, - 57, 276, 374, 7, 642, 639, 621, 649,);
|
|
|
|
static public $yyExpectedTokens = array(array(3, 4, 5, 6, 7, 8, 9, 13, 14, 17, 20, 21, 26, 30, 32, 33,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 31, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 31, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 54, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 53, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 55, 59,),
|
|
array(13, 14, 15, 17, 18, 20, 21, 26, 30, 32, 33, 35, 37, 40, 44, 45, 46, 47, 48, 50, 52, 55, 59,),
|
|
array(1, 25, 27, 34, 39, 40, 41, 56, 57, 58,), array(1, 12, 27, 34, 39, 40, 41, 56, 57, 58,),
|
|
array(1, 27, 34, 39, 40, 41, 56, 57, 58,), array(1, 27, 34, 39, 40, 41, 56, 57, 58,),
|
|
array(1, 27, 34, 39, 40, 41, 56, 57, 58,), array(1, 27, 34, 39, 40, 41, 56, 57, 58,),
|
|
array(1, 27, 34, 39, 40, 41, 56, 57, 58,), array(3, 4, 5, 6, 7, 8, 9, 13, 14, 17, 20, 21, 26, 30, 32, 33,),
|
|
array(5, 13, 14, 15, 17, 20, 21, 26, 30, 32, 33, 59, 60,), array(1, 38, 39, 40, 41, 56, 57, 58,),
|
|
array(1, 22, 39, 40, 41, 56, 57, 58,), array(1, 12, 39, 40, 41, 56, 57, 58,),
|
|
array(1, 2, 39, 40, 41, 56, 57, 58,), array(1, 12, 39, 40, 41, 56, 57, 58,),
|
|
array(1, 39, 40, 41, 54, 56, 57, 58,), array(1, 12, 39, 40, 41, 56, 57, 58,),
|
|
array(1, 28, 39, 40, 41, 56, 57, 58,), array(1, 39, 40, 41, 56, 57, 58, 60,),
|
|
array(1, 12, 39, 40, 41, 56, 57, 58,), array(1, 38, 39, 40, 41, 56, 57, 58,), array(1, 39, 40, 41, 56, 57, 58,),
|
|
array(1, 39, 40, 41, 56, 57, 58,), array(1, 39, 40, 41, 56, 57, 58,), array(1, 39, 40, 41, 56, 57, 58,),
|
|
array(1, 39, 40, 41, 56, 57, 58,), array(1, 39, 40, 41, 56, 57, 58,), array(1, 12, 19, 27, 34, 37, 49,),
|
|
array(1, 39, 40, 41, 56, 57, 58,), array(1, 39, 40, 41, 56, 57, 58,), array(1, 39, 40, 41, 56, 57, 58,),
|
|
array(1, 39, 40, 41, 56, 57, 58,), array(1, 39, 40, 41, 56, 57, 58,), array(1, 39, 40, 41, 56, 57, 58,),
|
|
array(39, 40, 41, 56, 57, 58,), array(39, 40, 41, 56, 57, 58,), array(1, 12, 23, 27, 34, 42,),
|
|
array(1, 12, 23, 27, 34, 42,), array(15, 18, 52, 55,), array(1, 12, 27, 34,), array(15, 37, 55,),
|
|
array(1, 27, 34,), array(5, 13, 14, 15, 17, 20, 21, 26, 30, 32, 33, 59, 60,), array(14, 18, 27, 29, 34,),
|
|
array(14, 18, 27, 29, 34,), array(1, 12, 27, 34,), array(14, 18, 27, 34,), array(1, 12, 27, 34,),
|
|
array(14, 18, 27, 34,), array(15, 37, 55,), array(1, 27, 34,), array(15, 37, 55,), array(19, 47, 53,),
|
|
array(1, 27, 34,), array(1, 27, 34,), array(1, 2,), array(1, 12, 27, 28, 34,), array(1, 12, 27, 34,),
|
|
array(14, 15, 18, 55,), array(1, 12, 27, 34,), array(16, 19, 49,), array(9, 10, 11,), array(16, 19, 49,),
|
|
array(14, 18, 51,), array(14, 18,), array(19, 49,), array(15, 18,), array(15, 55,), array(27, 34,),
|
|
array(27, 34,), array(1, 12,), array(1, 19,), array(1, 29,), array(27, 34,), array(1, 54,), array(15, 18,),
|
|
array(14, 18,), array(19,), array(19,), array(1,), array(1,), array(1,), array(1,), array(1,), array(1,),
|
|
array(1,), array(1,), array(), array(2, 14, 16, 18, 19, 47, 49, 51, 53,),
|
|
array(2, 14, 18, 19, 47, 49, 51, 53, 54,), array(2, 14, 16, 18, 19, 47, 49, 51, 53,),
|
|
array(2, 14, 18, 19, 47, 49, 51, 53,), array(2, 14, 18, 19, 47, 49, 51, 53,),
|
|
array(14, 18, 19, 47, 49, 51, 53,), array(14, 15, 18, 35, 55,), array(14, 18, 51,), array(16, 47, 53,),
|
|
array(27, 34,), array(16, 23,), array(27, 34,), array(27, 34,), array(47, 53,), array(27, 34,), array(47, 53,),
|
|
array(27, 34,), array(47, 53,), array(27, 34,), array(27, 34,), array(27, 34,), array(27, 34,), array(27, 34,),
|
|
array(15, 55,), array(27, 34,), array(27, 34,), array(27, 34,), array(27, 34,), array(27, 34,), array(27, 34,),
|
|
array(47, 53,), array(14, 37,), array(47, 53,), array(47, 53,), array(47, 53,), array(47, 53,), array(15, 55,),
|
|
array(27, 34,), array(18, 50,), array(47, 53,), array(15, 55,), array(27, 34,), array(27, 34,), array(27, 34,),
|
|
array(47, 53,), array(27, 34,), array(14, 18,), array(15, 55,), array(27, 34,), array(1,), array(1,), array(1,),
|
|
array(19,), array(2,), array(37,), array(19,), array(19,), array(1,), array(2,), array(10,), array(1,), array(),
|
|
array(), array(), array(), array(), array(1, 2, 37, 39, 40, 41, 49, 56, 57, 58,),
|
|
array(12, 22, 24, 27, 34, 36, 38, 47,), array(12, 16, 27, 34, 37, 49,), array(37, 47, 49, 54,),
|
|
array(29, 37, 49,), array(14, 18, 51,), array(23, 42, 60,), array(23, 42, 54,), array(36, 54,), array(22, 36,),
|
|
array(47, 54,), array(18, 51,), array(36, 38,), array(37, 49,), array(36, 38,), array(23, 42,), array(16, 47,),
|
|
array(36, 38,), array(37, 49,), array(37, 49,), array(35,), array(52,), array(18,), array(18,), array(24,),
|
|
array(12,), array(43,), array(5,), array(18,), array(35,), array(52,), array(18,), array(18,), array(54,),
|
|
array(37,), array(18,), array(18,), array(38,), array(23,), array(37,), array(18,), array(16,), array(18,),
|
|
array(18,), array(54,), array(47,), array(), array(), array(), array(), array(), array(), array(), array(),
|
|
array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(),
|
|
array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(),
|
|
array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(),
|
|
array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(),
|
|
array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(), array(),
|
|
array(), array(), 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(340, 516, 531, 531, 496, 496, 496, 531, 531, 531, 531, 531, 531, 531, 531, 531,
|
|
531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531,
|
|
531, 531, 531, 531, 531, 531, 401, 531, 401, 401, 377, 368, 401, 337, 531, 531, 531, 531, 531, 531, 531, 531,
|
|
406, 531, 531, 531, 494, 412, 517, 408, 382, 406, 439, 495, 413, 519, 422, 518, 403, 427, 428, 429, 429, 531,
|
|
415, 531, 401, 531, 401, 401, 421, 401, 446, 401, 531, 401, 531, 508, 401, 401, 391, 415, 415, 531, 415, 452,
|
|
531, 452, 462, 462, 452, 531, 531, 379, 401, 415, 395, 415, 401, 415, 531, 462, 452, 505, 425, 419, 415, 418,
|
|
431, 432, 397, 430, 503, 451, 451, 451, 451, 451, 451, 531, 464, 478, 390, 531, 376, 381, 457, 370, 460, 369,
|
|
456, 386, 363, 364, 372, 387, 531, 374, 360, 366, 361, 375, 378, 486, 462, 487, 459, 455, 489, 531, 380, 531,
|
|
488, 531, 365, 389, 384, 458, 388, 462, 531, 385, 421, 396, 398, 509, 497, 462, 483, 506, 446, 498, 354, 392,
|
|
502, 462, 502, 462, 502, 439, 435, 439, 439, 439, 463, 429, 429, 531, 531, 435, 531, 531, 439, 531, 429, 435,
|
|
531, 531, 447, 531, 531, 531, 531, 409, 531, 441, 345, 531, 437, 531, 531, 531, 442, 478, 531, 531, 531, 429,
|
|
507, 531, 531, 531, 531, 531, 435, 478, 402, 338, 482, 477, 410, 470, 414, 492, 472, 471, 491, 504, 441, 469,
|
|
468, 383, 454, 499, 500, 433, 394, 501, 400, 480, 481, 434, 436, 465, 466, 467, 461, 417, 438, 440, 416, 371,
|
|
399, 347, 346, 348, 344, 343, 339, 341, 342, 349, 350, 356, 357, 358, 355, 353, 351, 352, 442, 443, 520, 521,
|
|
522, 393, 484, 493, 527, 528, 525, 524, 513, 515, 514, 523, 530, 526, 529, 479, 485, 475, 473, 476, 448, 445,
|
|
444, 423, 424, 510, 511, 450, 474, 453, 449, 426, 512, 420, 490,);
|
|
|
|
const YYNOCODE = 106;
|
|
|
|
const YYSTACKDEPTH = 500;
|
|
|
|
const YYNSTATE = 337;
|
|
|
|
const YYNRULE = 194;
|
|
|
|
const YYERRORSYMBOL = 61;
|
|
|
|
const YYERRSYMDT = 'yy0';
|
|
|
|
const YYFALLBACK = 0;
|
|
|
|
public static $yyFallback = array();
|
|
|
|
public function Trace($TraceFILE, $zTracePrompt)
|
|
{
|
|
if (!$TraceFILE) {
|
|
$zTracePrompt = 0;
|
|
} elseif (!$zTracePrompt) {
|
|
$TraceFILE = 0;
|
|
}
|
|
$this->yyTraceFILE = $TraceFILE;
|
|
$this->yyTracePrompt = $zTracePrompt;
|
|
}
|
|
|
|
public function PrintTrace()
|
|
{
|
|
$this->yyTraceFILE = fopen('php://output', 'w');
|
|
$this->yyTracePrompt = '<br>';
|
|
}
|
|
|
|
public $yyTraceFILE;
|
|
|
|
public $yyTracePrompt;
|
|
|
|
public $yyidx; /* Index of top element in stack */
|
|
public $yyerrcnt; /* Shifts left before out of the error */
|
|
public $yystack = array(); /* The parser's stack */
|
|
|
|
public $yyTokenName = array('$', 'VERT', 'COLON', 'PHP', 'NOCACHE', 'TEXT', 'STRIPON', 'STRIPOFF', 'BLOCKSOURCE',
|
|
'LITERALSTART', 'LITERALEND', 'LITERAL', 'RDEL', 'SIMPLEOUTPUT', 'LDEL', 'DOLLARID', 'EQUAL', 'SIMPLETAG', 'ID',
|
|
'PTR', 'LDELIF', 'LDELFOR', 'SEMICOLON', 'INCDEC', 'TO', 'STEP', 'LDELFOREACH', 'SPACE', 'AS', 'APTR',
|
|
'LDELSETFILTER', 'SMARTYBLOCKCHILDPARENT', 'CLOSETAG', 'LDELSLASH', 'ATTR', 'INTEGER', 'COMMA', 'OPENP',
|
|
'CLOSEP', 'MATH', 'UNIMATH', 'ISIN', 'INSTANCEOF', 'QMARK', 'NOT', 'TYPECAST', 'HEX', 'DOT',
|
|
'SINGLEQUOTESTRING', 'DOUBLECOLON', 'NAMESPACE', 'AT', 'HATCH', 'OPENB', 'CLOSEB', 'DOLLAR', 'LOGOP', 'TLOGOP',
|
|
'SINGLECOND', 'QUOTE', 'BACKTICK', 'error', 'start', 'template', 'template_element', 'smartytag', 'literal',
|
|
'text_content', 'literal_elements', 'literal_element', 'tag', 'variable', 'modifierlist', 'attributes', 'value',
|
|
'expr', 'varindexed', 'statement', 'statements', 'foraction', 'varvar', 'modparameters', 'attribute', 'ternary',
|
|
'array', 'lop', 'scond', 'ns1', 'function', 'doublequoted_with_quotes', 'static_class_access', 'object',
|
|
'arrayindex', 'indexdef', 'varvarele', 'objectchain', 'objectelement', 'method', 'params', 'modifier',
|
|
'modparameter', 'arrayelements', 'arrayelement', 'doublequoted', 'doublequotedcontent',);
|
|
|
|
public static $yyRuleName = array('start ::= template', 'template ::= template_element',
|
|
'template ::= template template_element', 'template ::=', 'template_element ::= smartytag',
|
|
'template_element ::= literal', 'template_element ::= PHP', 'template_element ::= NOCACHE',
|
|
'template_element ::= text_content', 'text_content ::= TEXT', 'text_content ::= text_content TEXT',
|
|
'template_element ::= STRIPON', 'template_element ::= STRIPOFF', 'template_element ::= BLOCKSOURCE',
|
|
'literal ::= LITERALSTART LITERALEND', 'literal ::= LITERALSTART literal_elements LITERALEND',
|
|
'literal_elements ::= literal_elements literal_element', 'literal_elements ::=', 'literal_element ::= literal',
|
|
'literal_element ::= LITERAL', 'smartytag ::= tag RDEL', 'smartytag ::= SIMPLEOUTPUT', 'tag ::= LDEL variable',
|
|
'tag ::= LDEL variable modifierlist attributes', 'tag ::= LDEL variable attributes', 'tag ::= LDEL value',
|
|
'tag ::= LDEL value modifierlist attributes', 'tag ::= LDEL value attributes',
|
|
'tag ::= LDEL expr modifierlist attributes', 'tag ::= LDEL expr attributes',
|
|
'tag ::= LDEL DOLLARID EQUAL value', 'tag ::= LDEL DOLLARID EQUAL expr',
|
|
'tag ::= LDEL DOLLARID EQUAL expr attributes', 'tag ::= LDEL varindexed EQUAL expr attributes',
|
|
'smartytag ::= SIMPLETAG', 'tag ::= LDEL ID attributes', 'tag ::= LDEL ID',
|
|
'tag ::= LDEL ID modifierlist attributes', 'tag ::= LDEL ID PTR ID attributes',
|
|
'tag ::= LDEL ID PTR ID modifierlist attributes', 'tag ::= LDELIF expr', 'tag ::= LDELIF expr attributes',
|
|
'tag ::= LDELIF statement', 'tag ::= LDELIF statement attributes',
|
|
'tag ::= LDELFOR statements SEMICOLON expr SEMICOLON varindexed foraction attributes',
|
|
'foraction ::= EQUAL expr', 'foraction ::= INCDEC', 'tag ::= LDELFOR statement TO expr attributes',
|
|
'tag ::= LDELFOR statement TO expr STEP expr attributes', 'tag ::= LDELFOREACH attributes',
|
|
'tag ::= LDELFOREACH SPACE value AS varvar attributes',
|
|
'tag ::= LDELFOREACH SPACE value AS varvar APTR varvar attributes',
|
|
'tag ::= LDELFOREACH SPACE expr AS varvar attributes',
|
|
'tag ::= LDELFOREACH SPACE expr AS varvar APTR varvar attributes', 'tag ::= LDELSETFILTER ID modparameters',
|
|
'tag ::= LDELSETFILTER ID modparameters modifierlist', 'tag ::= LDEL SMARTYBLOCKCHILDPARENT',
|
|
'smartytag ::= CLOSETAG', 'tag ::= LDELSLASH ID', 'tag ::= LDELSLASH ID modifierlist',
|
|
'tag ::= LDELSLASH ID PTR ID', 'tag ::= LDELSLASH ID PTR ID modifierlist',
|
|
'attributes ::= attributes attribute', 'attributes ::= attribute', 'attributes ::=',
|
|
'attribute ::= SPACE ID EQUAL ID', 'attribute ::= ATTR expr', 'attribute ::= ATTR value',
|
|
'attribute ::= SPACE ID', 'attribute ::= SPACE expr', 'attribute ::= SPACE value',
|
|
'attribute ::= SPACE INTEGER EQUAL expr', 'statements ::= statement',
|
|
'statements ::= statements COMMA statement', 'statement ::= DOLLARID EQUAL INTEGER',
|
|
'statement ::= DOLLARID EQUAL expr', 'statement ::= varindexed EQUAL expr',
|
|
'statement ::= OPENP statement CLOSEP', 'expr ::= value', 'expr ::= ternary', 'expr ::= DOLLARID COLON ID',
|
|
'expr ::= expr MATH value', 'expr ::= expr UNIMATH value', 'expr ::= array', 'expr ::= expr modifierlist',
|
|
'expr ::= expr lop expr', 'expr ::= expr scond', 'expr ::= expr ISIN array', 'expr ::= expr ISIN value',
|
|
'expr ::= variable INSTANCEOF ns1', 'ternary ::= OPENP expr CLOSEP QMARK DOLLARID COLON expr',
|
|
'ternary ::= OPENP expr CLOSEP QMARK expr COLON expr', 'value ::= variable', 'value ::= UNIMATH value',
|
|
'value ::= NOT value', 'value ::= TYPECAST value', 'value ::= variable INCDEC', 'value ::= HEX',
|
|
'value ::= INTEGER', 'value ::= INTEGER DOT INTEGER', 'value ::= INTEGER DOT', 'value ::= DOT INTEGER',
|
|
'value ::= ID', 'value ::= function', 'value ::= OPENP expr CLOSEP', 'value ::= SINGLEQUOTESTRING',
|
|
'value ::= doublequoted_with_quotes', 'value ::= varindexed DOUBLECOLON static_class_access',
|
|
'value ::= smartytag', 'value ::= value modifierlist', 'value ::= NAMESPACE',
|
|
'value ::= ns1 DOUBLECOLON static_class_access', 'ns1 ::= ID', 'ns1 ::= NAMESPACE', 'variable ::= DOLLARID',
|
|
'variable ::= varindexed', 'variable ::= varvar AT ID', 'variable ::= object', 'variable ::= HATCH ID HATCH',
|
|
'variable ::= HATCH ID HATCH arrayindex', 'variable ::= HATCH variable HATCH',
|
|
'variable ::= HATCH variable HATCH arrayindex', 'varindexed ::= DOLLARID arrayindex',
|
|
'varindexed ::= varvar arrayindex', 'arrayindex ::= arrayindex indexdef', 'arrayindex ::=',
|
|
'indexdef ::= DOT DOLLARID', 'indexdef ::= DOT varvar', 'indexdef ::= DOT varvar AT ID', 'indexdef ::= DOT ID',
|
|
'indexdef ::= DOT INTEGER', 'indexdef ::= DOT LDEL expr RDEL', 'indexdef ::= OPENB ID CLOSEB',
|
|
'indexdef ::= OPENB ID DOT ID CLOSEB', 'indexdef ::= OPENB SINGLEQUOTESTRING CLOSEB',
|
|
'indexdef ::= OPENB INTEGER CLOSEB', 'indexdef ::= OPENB DOLLARID CLOSEB', 'indexdef ::= OPENB variable CLOSEB',
|
|
'indexdef ::= OPENB value CLOSEB', 'indexdef ::= OPENB expr CLOSEB', 'indexdef ::= OPENB CLOSEB',
|
|
'varvar ::= DOLLARID', 'varvar ::= DOLLAR', 'varvar ::= varvar varvarele', 'varvarele ::= ID',
|
|
'varvarele ::= LDEL expr RDEL', 'object ::= varindexed objectchain', 'objectchain ::= objectelement',
|
|
'objectchain ::= objectchain objectelement', 'objectelement ::= PTR ID arrayindex',
|
|
'objectelement ::= PTR varvar arrayindex', 'objectelement ::= PTR LDEL expr RDEL arrayindex',
|
|
'objectelement ::= PTR ID LDEL expr RDEL arrayindex', 'objectelement ::= PTR method',
|
|
'function ::= ns1 OPENP params CLOSEP', 'method ::= ID OPENP params CLOSEP',
|
|
'method ::= DOLLARID OPENP params CLOSEP', 'params ::= params COMMA expr', 'params ::= expr', 'params ::=',
|
|
'modifierlist ::= modifierlist modifier modparameters', 'modifierlist ::= modifier modparameters',
|
|
'modifier ::= VERT AT ID', 'modifier ::= VERT ID', 'modparameters ::= modparameters modparameter',
|
|
'modparameters ::=', 'modparameter ::= COLON value', 'modparameter ::= COLON array',
|
|
'static_class_access ::= method', 'static_class_access ::= method objectchain', 'static_class_access ::= ID',
|
|
'static_class_access ::= DOLLARID arrayindex', 'static_class_access ::= DOLLARID arrayindex objectchain',
|
|
'lop ::= LOGOP', 'lop ::= TLOGOP', 'scond ::= SINGLECOND', 'array ::= OPENB arrayelements CLOSEB',
|
|
'arrayelements ::= arrayelement', 'arrayelements ::= arrayelements COMMA arrayelement', 'arrayelements ::=',
|
|
'arrayelement ::= value APTR expr', 'arrayelement ::= ID APTR expr', 'arrayelement ::= expr',
|
|
'doublequoted_with_quotes ::= QUOTE QUOTE', 'doublequoted_with_quotes ::= QUOTE doublequoted QUOTE',
|
|
'doublequoted ::= doublequoted doublequotedcontent', 'doublequoted ::= doublequotedcontent',
|
|
'doublequotedcontent ::= BACKTICK variable BACKTICK', 'doublequotedcontent ::= BACKTICK expr BACKTICK',
|
|
'doublequotedcontent ::= DOLLARID', 'doublequotedcontent ::= LDEL variable RDEL',
|
|
'doublequotedcontent ::= LDEL expr RDEL', 'doublequotedcontent ::= smartytag', 'doublequotedcontent ::= TEXT',);
|
|
|
|
public function tokenName($tokenType)
|
|
{
|
|
if ($tokenType === 0) {
|
|
return 'End of Input';
|
|
}
|
|
if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) {
|
|
return $this->yyTokenName[$tokenType];
|
|
} else {
|
|
return "Unknown";
|
|
}
|
|
}
|
|
|
|
public static function yy_destructor($yymajor, $yypminor)
|
|
{
|
|
switch ($yymajor) {
|
|
default:
|
|
break; /* If no destructor action specified: do nothing */
|
|
}
|
|
}
|
|
|
|
public function yy_pop_parser_stack()
|
|
{
|
|
if (empty($this->yystack)) {
|
|
return;
|
|
}
|
|
$yytos = array_pop($this->yystack);
|
|
if ($this->yyTraceFILE && $this->yyidx >= 0) {
|
|
fwrite($this->yyTraceFILE, $this->yyTracePrompt . 'Popping ' . $this->yyTokenName[$yytos->major] . "\n");
|
|
}
|
|
$yymajor = $yytos->major;
|
|
self::yy_destructor($yymajor, $yytos->minor);
|
|
$this->yyidx --;
|
|
|
|
return $yymajor;
|
|
}
|
|
|
|
public function __destruct()
|
|
{
|
|
while ($this->yystack !== Array()) {
|
|
$this->yy_pop_parser_stack();
|
|
}
|
|
if (is_resource($this->yyTraceFILE)) {
|
|
fclose($this->yyTraceFILE);
|
|
}
|
|
}
|
|
|
|
public function yy_get_expected_tokens($token)
|
|
{
|
|
static $res3 = array();
|
|
static $res4 = array();
|
|
$state = $this->yystack[$this->yyidx]->stateno;
|
|
$expected = self::$yyExpectedTokens[$state];
|
|
if (isset($res3[$state][$token])) {
|
|
if ($res3[$state][$token]) {
|
|
return $expected;
|
|
}
|
|
} else {
|
|
if ($res3[$state][$token] = in_array($token, self::$yyExpectedTokens[$state], true)) {
|
|
return $expected;
|
|
}
|
|
}
|
|
$stack = $this->yystack;
|
|
$yyidx = $this->yyidx;
|
|
do {
|
|
$yyact = $this->yy_find_shift_action($token);
|
|
if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
|
|
// reduce action
|
|
$done = 0;
|
|
do {
|
|
if ($done ++ == 100) {
|
|
$this->yyidx = $yyidx;
|
|
$this->yystack = $stack;
|
|
// too much recursion prevents proper detection
|
|
// so give up
|
|
return array_unique($expected);
|
|
}
|
|
$yyruleno = $yyact - self::YYNSTATE;
|
|
$this->yyidx -= self::$yyRuleInfo[$yyruleno][1];
|
|
$nextstate = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, self::$yyRuleInfo[$yyruleno][0]);
|
|
if (isset(self::$yyExpectedTokens[$nextstate])) {
|
|
$expected = array_merge($expected, self::$yyExpectedTokens[$nextstate]);
|
|
if (isset($res4[$nextstate][$token])) {
|
|
if ($res4[$nextstate][$token]) {
|
|
$this->yyidx = $yyidx;
|
|
$this->yystack = $stack;
|
|
return array_unique($expected);
|
|
}
|
|
} else {
|
|
if ($res4[$nextstate][$token] = in_array($token, self::$yyExpectedTokens[$nextstate], true)) {
|
|
$this->yyidx = $yyidx;
|
|
$this->yystack = $stack;
|
|
return array_unique($expected);
|
|
}
|
|
}
|
|
}
|
|
if ($nextstate < self::YYNSTATE) {
|
|
// we need to shift a non-terminal
|
|
$this->yyidx ++;
|
|
$x = new TP_yyStackEntry;
|
|
$x->stateno = $nextstate;
|
|
$x->major = self::$yyRuleInfo[$yyruleno][0];
|
|
$this->yystack[$this->yyidx] = $x;
|
|
continue 2;
|
|
} elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) {
|
|
$this->yyidx = $yyidx;
|
|
$this->yystack = $stack;
|
|
// the last token was just ignored, we can't accept
|
|
// by ignoring input, this is in essence ignoring a
|
|
// syntax error!
|
|
return array_unique($expected);
|
|
} elseif ($nextstate === self::YY_NO_ACTION) {
|
|
$this->yyidx = $yyidx;
|
|
$this->yystack = $stack;
|
|
// input accepted, but not shifted (I guess)
|
|
return $expected;
|
|
} else {
|
|
$yyact = $nextstate;
|
|
}
|
|
} while (true);
|
|
}
|
|
break;
|
|
} while (true);
|
|
$this->yyidx = $yyidx;
|
|
$this->yystack = $stack;
|
|
|
|
return array_unique($expected);
|
|
}
|
|
|
|
public function yy_is_expected_token($token)
|
|
{
|
|
static $res = array();
|
|
static $res2 = array();
|
|
if ($token === 0) {
|
|
return true; // 0 is not part of this
|
|
}
|
|
$state = $this->yystack[$this->yyidx]->stateno;
|
|
if (isset($res[$state][$token])) {
|
|
if ($res[$state][$token]) {
|
|
return true;
|
|
}
|
|
} else {
|
|
if ($res[$state][$token] = in_array($token, self::$yyExpectedTokens[$state], true)) {
|
|
return true;
|
|
}
|
|
}
|
|
$stack = $this->yystack;
|
|
$yyidx = $this->yyidx;
|
|
do {
|
|
$yyact = $this->yy_find_shift_action($token);
|
|
if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
|
|
// reduce action
|
|
$done = 0;
|
|
do {
|
|
if ($done ++ == 100) {
|
|
$this->yyidx = $yyidx;
|
|
$this->yystack = $stack;
|
|
// too much recursion prevents proper detection
|
|
// so give up
|
|
return true;
|
|
}
|
|
$yyruleno = $yyact - self::YYNSTATE;
|
|
$this->yyidx -= self::$yyRuleInfo[$yyruleno][1];
|
|
$nextstate = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, self::$yyRuleInfo[$yyruleno][0]);
|
|
if (isset($res2[$nextstate][$token])) {
|
|
if ($res2[$nextstate][$token]) {
|
|
$this->yyidx = $yyidx;
|
|
$this->yystack = $stack;
|
|
return true;
|
|
}
|
|
} else {
|
|
if ($res2[$nextstate][$token] = (isset(self::$yyExpectedTokens[$nextstate]) && in_array($token, self::$yyExpectedTokens[$nextstate], true))) {
|
|
$this->yyidx = $yyidx;
|
|
$this->yystack = $stack;
|
|
return true;
|
|
}
|
|
}
|
|
if ($nextstate < self::YYNSTATE) {
|
|
// we need to shift a non-terminal
|
|
$this->yyidx ++;
|
|
$x = new TP_yyStackEntry;
|
|
$x->stateno = $nextstate;
|
|
$x->major = self::$yyRuleInfo[$yyruleno][0];
|
|
$this->yystack[$this->yyidx] = $x;
|
|
continue 2;
|
|
} elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) {
|
|
$this->yyidx = $yyidx;
|
|
$this->yystack = $stack;
|
|
if (!$token) {
|
|
// end of input: this is valid
|
|
return true;
|
|
}
|
|
// the last token was just ignored, we can't accept
|
|
// by ignoring input, this is in essence ignoring a
|
|
// syntax error!
|
|
return false;
|
|
} elseif ($nextstate === self::YY_NO_ACTION) {
|
|
$this->yyidx = $yyidx;
|
|
$this->yystack = $stack;
|
|
// input accepted, but not shifted (I guess)
|
|
return true;
|
|
} else {
|
|
$yyact = $nextstate;
|
|
}
|
|
} while (true);
|
|
}
|
|
break;
|
|
} while (true);
|
|
$this->yyidx = $yyidx;
|
|
$this->yystack = $stack;
|
|
|
|
return true;
|
|
}
|
|
|
|
public function yy_find_shift_action($iLookAhead)
|
|
{
|
|
$stateno = $this->yystack[$this->yyidx]->stateno;
|
|
|
|
/* if ($this->yyidx < 0) return self::YY_NO_ACTION; */
|
|
if (!isset(self::$yy_shift_ofst[$stateno])) {
|
|
// no shift actions
|
|
return self::$yy_default[$stateno];
|
|
}
|
|
$i = self::$yy_shift_ofst[$stateno];
|
|
if ($i === self::YY_SHIFT_USE_DFLT) {
|
|
return self::$yy_default[$stateno];
|
|
}
|
|
if ($iLookAhead == self::YYNOCODE) {
|
|
return self::YY_NO_ACTION;
|
|
}
|
|
$i += $iLookAhead;
|
|
if ($i < 0 || $i >= self::YY_SZ_ACTTAB || self::$yy_lookahead[$i] != $iLookAhead) {
|
|
if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) && ($iFallback = self::$yyFallback[$iLookAhead]) != 0) {
|
|
if ($this->yyTraceFILE) {
|
|
fwrite($this->yyTraceFILE, $this->yyTracePrompt . "FALLBACK " . $this->yyTokenName[$iLookAhead] . " => " . $this->yyTokenName[$iFallback] . "\n");
|
|
}
|
|
|
|
return $this->yy_find_shift_action($iFallback);
|
|
}
|
|
|
|
return self::$yy_default[$stateno];
|
|
} else {
|
|
return self::$yy_action[$i];
|
|
}
|
|
}
|
|
|
|
public function yy_find_reduce_action($stateno, $iLookAhead)
|
|
{
|
|
/* $stateno = $this->yystack[$this->yyidx]->stateno; */
|
|
|
|
if (!isset(self::$yy_reduce_ofst[$stateno])) {
|
|
return self::$yy_default[$stateno];
|
|
}
|
|
$i = self::$yy_reduce_ofst[$stateno];
|
|
if ($i == self::YY_REDUCE_USE_DFLT) {
|
|
return self::$yy_default[$stateno];
|
|
}
|
|
if ($iLookAhead == self::YYNOCODE) {
|
|
return self::YY_NO_ACTION;
|
|
}
|
|
$i += $iLookAhead;
|
|
if ($i < 0 || $i >= self::YY_SZ_ACTTAB || self::$yy_lookahead[$i] != $iLookAhead) {
|
|
return self::$yy_default[$stateno];
|
|
} else {
|
|
return self::$yy_action[$i];
|
|
}
|
|
}
|
|
|
|
public function yy_shift($yyNewState, $yyMajor, $yypMinor)
|
|
{
|
|
$this->yyidx ++;
|
|
if ($this->yyidx >= self::YYSTACKDEPTH) {
|
|
$this->yyidx --;
|
|
if ($this->yyTraceFILE) {
|
|
fprintf($this->yyTraceFILE, "%sStack Overflow!\n", $this->yyTracePrompt);
|
|
}
|
|
while ($this->yyidx >= 0) {
|
|
$this->yy_pop_parser_stack();
|
|
}
|
|
#line 190 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
|
|
$this->internalError = true;
|
|
$this->compiler->trigger_template_error("Stack overflow in template parser");
|
|
|
|
return;
|
|
}
|
|
$yytos = new TP_yyStackEntry;
|
|
$yytos->stateno = $yyNewState;
|
|
$yytos->major = $yyMajor;
|
|
$yytos->minor = $yypMinor;
|
|
$this->yystack[] = $yytos;
|
|
if ($this->yyTraceFILE && $this->yyidx > 0) {
|
|
fprintf($this->yyTraceFILE, "%sShift %d\n", $this->yyTracePrompt, $yyNewState);
|
|
fprintf($this->yyTraceFILE, "%sStack:", $this->yyTracePrompt);
|
|
for ($i = 1; $i <= $this->yyidx; $i ++) {
|
|
fprintf($this->yyTraceFILE, " %s", $this->yyTokenName[$this->yystack[$i]->major]);
|
|
}
|
|
fwrite($this->yyTraceFILE, "\n");
|
|
}
|
|
}
|
|
|
|
public static $yyRuleInfo = array(array(0 => 62, 1 => 1), array(0 => 63, 1 => 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 => 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 => 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 => 4), array(0 => 70, 1 => 3), array(0 => 70, 1 => 2), array(0 => 70, 1 => 4),
|
|
array(0 => 70, 1 => 3), array(0 => 70, 1 => 4), 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 => 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 => 73, 1 => 2),
|
|
array(0 => 73, 1 => 1), array(0 => 73, 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 => 75, 1 => 1),
|
|
array(0 => 75, 1 => 1), array(0 => 75, 1 => 3), array(0 => 75, 1 => 3), array(0 => 75, 1 => 3),
|
|
array(0 => 75, 1 => 1), array(0 => 75, 1 => 2), array(0 => 75, 1 => 3), array(0 => 75, 1 => 2),
|
|
array(0 => 75, 1 => 3), array(0 => 75, 1 => 3), array(0 => 75, 1 => 3), array(0 => 83, 1 => 7),
|
|
array(0 => 83, 1 => 7), array(0 => 74, 1 => 1), array(0 => 74, 1 => 2), array(0 => 74, 1 => 2),
|
|
array(0 => 74, 1 => 2), array(0 => 74, 1 => 2), array(0 => 74, 1 => 1), array(0 => 74, 1 => 1),
|
|
array(0 => 74, 1 => 3), array(0 => 74, 1 => 2), array(0 => 74, 1 => 2), array(0 => 74, 1 => 1),
|
|
array(0 => 74, 1 => 1), array(0 => 74, 1 => 3), array(0 => 74, 1 => 1), array(0 => 74, 1 => 1),
|
|
array(0 => 74, 1 => 3), array(0 => 74, 1 => 1), array(0 => 74, 1 => 2), array(0 => 74, 1 => 1),
|
|
array(0 => 74, 1 => 3), array(0 => 87, 1 => 1), array(0 => 87, 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 => 76, 1 => 2),
|
|
array(0 => 76, 1 => 2), array(0 => 92, 1 => 2), array(0 => 92, 1 => 0), array(0 => 93, 1 => 2),
|
|
array(0 => 93, 1 => 2), array(0 => 93, 1 => 4), array(0 => 93, 1 => 2), array(0 => 93, 1 => 2),
|
|
array(0 => 93, 1 => 4), array(0 => 93, 1 => 3), array(0 => 93, 1 => 5), array(0 => 93, 1 => 3),
|
|
array(0 => 93, 1 => 3), array(0 => 93, 1 => 3), array(0 => 93, 1 => 3), array(0 => 93, 1 => 3),
|
|
array(0 => 93, 1 => 3), array(0 => 93, 1 => 2), array(0 => 80, 1 => 1), array(0 => 80, 1 => 1),
|
|
array(0 => 80, 1 => 2), array(0 => 94, 1 => 1), array(0 => 94, 1 => 3), array(0 => 91, 1 => 2),
|
|
array(0 => 95, 1 => 1), array(0 => 95, 1 => 2), array(0 => 96, 1 => 3), array(0 => 96, 1 => 3),
|
|
array(0 => 96, 1 => 5), array(0 => 96, 1 => 6), array(0 => 96, 1 => 2), array(0 => 88, 1 => 4),
|
|
array(0 => 97, 1 => 4), array(0 => 97, 1 => 4), array(0 => 98, 1 => 3), array(0 => 98, 1 => 1),
|
|
array(0 => 98, 1 => 0), array(0 => 72, 1 => 3), array(0 => 72, 1 => 2), array(0 => 99, 1 => 3),
|
|
array(0 => 99, 1 => 2), array(0 => 81, 1 => 2), array(0 => 81, 1 => 0), array(0 => 100, 1 => 2),
|
|
array(0 => 100, 1 => 2), array(0 => 90, 1 => 1), array(0 => 90, 1 => 2), array(0 => 90, 1 => 1),
|
|
array(0 => 90, 1 => 2), array(0 => 90, 1 => 3), array(0 => 85, 1 => 1), array(0 => 85, 1 => 1),
|
|
array(0 => 86, 1 => 1), array(0 => 84, 1 => 3), array(0 => 101, 1 => 1), array(0 => 101, 1 => 3),
|
|
array(0 => 101, 1 => 0), array(0 => 102, 1 => 3), array(0 => 102, 1 => 3), array(0 => 102, 1 => 1),
|
|
array(0 => 89, 1 => 2), array(0 => 89, 1 => 3), array(0 => 103, 1 => 2), array(0 => 103, 1 => 1),
|
|
array(0 => 104, 1 => 3), array(0 => 104, 1 => 3), array(0 => 104, 1 => 1), array(0 => 104, 1 => 3),
|
|
array(0 => 104, 1 => 3), array(0 => 104, 1 => 1), array(0 => 104, 1 => 1),);
|
|
|
|
public static $yyReduceMap = array(0 => 0, 1 => 1, 2 => 2, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9,
|
|
18 => 9, 19 => 9, 46 => 9, 69 => 9, 70 => 9, 78 => 9, 79 => 9, 83 => 9, 92 => 9,
|
|
97 => 9, 98 => 9, 103 => 9, 105 => 9, 106 => 9, 110 => 9, 112 => 9, 113 => 9,
|
|
117 => 9, 177 => 9, 182 => 9, 10 => 10, 11 => 11, 12 => 12, 13 => 13, 14 => 14,
|
|
17 => 14, 15 => 15, 77 => 15, 16 => 16, 93 => 16, 95 => 16, 96 => 16, 124 => 16,
|
|
20 => 20, 21 => 21, 22 => 22, 25 => 22, 23 => 23, 26 => 23, 24 => 24, 27 => 24,
|
|
29 => 24, 28 => 28, 30 => 30, 31 => 30, 32 => 32, 33 => 33, 34 => 34, 35 => 35,
|
|
36 => 36, 37 => 37, 38 => 38, 39 => 39, 40 => 40, 41 => 41, 43 => 41, 42 => 42,
|
|
44 => 44, 45 => 45, 47 => 47, 48 => 48, 49 => 49, 50 => 50, 52 => 50, 51 => 51,
|
|
53 => 51, 54 => 54, 55 => 55, 56 => 56, 57 => 57, 58 => 58, 59 => 59, 60 => 60,
|
|
61 => 61, 62 => 62, 63 => 63, 72 => 63, 158 => 63, 162 => 63, 166 => 63,
|
|
167 => 63, 64 => 64, 159 => 64, 165 => 64, 65 => 65, 66 => 66, 67 => 66,
|
|
68 => 68, 144 => 68, 71 => 71, 73 => 73, 74 => 74, 75 => 74, 76 => 76, 80 => 80,
|
|
81 => 81, 82 => 81, 84 => 84, 109 => 84, 85 => 85, 86 => 86, 87 => 87, 88 => 88,
|
|
89 => 89, 90 => 90, 91 => 91, 94 => 94, 99 => 99, 100 => 100, 101 => 101,
|
|
102 => 102, 104 => 104, 107 => 107, 108 => 108, 111 => 111, 114 => 114,
|
|
115 => 115, 116 => 116, 118 => 118, 119 => 119, 120 => 120, 121 => 121,
|
|
122 => 122, 123 => 123, 125 => 125, 179 => 125, 126 => 126, 127 => 127,
|
|
128 => 128, 129 => 129, 130 => 130, 131 => 131, 139 => 131, 132 => 132,
|
|
133 => 133, 134 => 134, 135 => 134, 137 => 134, 138 => 134, 136 => 136,
|
|
140 => 140, 141 => 141, 142 => 142, 183 => 142, 143 => 143, 145 => 145,
|
|
146 => 146, 147 => 147, 148 => 148, 149 => 149, 150 => 150, 151 => 151,
|
|
152 => 152, 153 => 153, 154 => 154, 155 => 155, 156 => 156, 157 => 157,
|
|
160 => 160, 161 => 161, 163 => 163, 164 => 164, 168 => 168, 169 => 169,
|
|
170 => 170, 171 => 171, 172 => 172, 173 => 173, 174 => 174, 175 => 175,
|
|
176 => 176, 178 => 178, 180 => 180, 181 => 181, 184 => 184, 185 => 185,
|
|
186 => 186, 187 => 187, 188 => 187, 190 => 187, 189 => 189, 191 => 191,
|
|
192 => 192, 193 => 193,);
|
|
|
|
#line 201 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r0()
|
|
{
|
|
$this->_retvalue = $this->root_buffer->to_smarty_php();
|
|
}
|
|
|
|
#line 209 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r1()
|
|
{
|
|
if ($this->yystack[$this->yyidx + 0]->minor != null) {
|
|
$this->current_buffer->append_subtree($this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
}
|
|
|
|
#line 216 "../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->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
}
|
|
|
|
#line 230 "../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 241 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r5()
|
|
{
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_Text($this, $this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
|
|
#line 245 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r6()
|
|
{
|
|
$code = $this->compiler->compileTag('private_php', array(array('code' => $this->yystack[$this->yyidx + 0]->minor),
|
|
array('type' => $this->lex->phpType)), array());
|
|
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 256 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r7()
|
|
{
|
|
$this->compiler->tag_nocache = true;
|
|
$save = $this->template->has_nocache_code;
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_Tag($this, $this->compiler->processNocacheCode("<?php echo '{$this->yystack[$this->yyidx + 0]->minor}';?>\n", $this->compiler, true));
|
|
$this->template->has_nocache_code = $save;
|
|
}
|
|
|
|
#line 263 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r8()
|
|
{
|
|
$this->_retvalue = $this->compiler->processText($this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
|
|
#line 267 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r9()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 271 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r10()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 276 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r11()
|
|
{
|
|
$this->strip = true;
|
|
}
|
|
|
|
#line 280 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r12()
|
|
{
|
|
$this->strip = false;
|
|
}
|
|
|
|
#line 284 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r13()
|
|
{
|
|
if ($this->strip) {
|
|
SMARTY_INTERNAL_COMPILE_BLOCK::blockSource($this->compiler, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor));
|
|
} else {
|
|
SMARTY_INTERNAL_COMPILE_BLOCK::blockSource($this->compiler, $this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
}
|
|
|
|
#line 293 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r14()
|
|
{
|
|
$this->_retvalue = '';
|
|
}
|
|
|
|
#line 297 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r15()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor;
|
|
}
|
|
|
|
#line 301 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r16()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 317 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r20()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor;
|
|
}
|
|
|
|
#line 323 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r21()
|
|
{
|
|
$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 333 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r22()
|
|
{
|
|
$this->_retvalue = $this->compiler->compileTag('private_print_expression', array(), array('value' => $this->yystack[$this->yyidx + 0]->minor));
|
|
}
|
|
|
|
#line 337 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r23()
|
|
{
|
|
$this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 2]->minor,
|
|
'modifierlist' => $this->yystack[$this->yyidx + - 1]->minor));
|
|
}
|
|
|
|
#line 341 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r24()
|
|
{
|
|
$this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 1]->minor));
|
|
}
|
|
|
|
#line 355 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r28()
|
|
{
|
|
$this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 2]->minor,
|
|
'modifierlist' => $this->yystack[$this->yyidx + - 1]->minor));
|
|
}
|
|
|
|
#line 368 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r30()
|
|
{
|
|
$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 376 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r32()
|
|
{
|
|
$this->_retvalue = $this->compiler->compileTag('assign', array_merge(array(array('value' => $this->yystack[$this->yyidx + - 1]->minor),
|
|
array('var' => '\'' . substr($this->yystack[$this->yyidx + - 3]->minor, 1) . '\'')), $this->yystack[$this->yyidx + 0]->minor));
|
|
}
|
|
|
|
#line 380 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r33()
|
|
{
|
|
$this->_retvalue = $this->compiler->compileTag('assign', array_merge(array(array('value' => $this->yystack[$this->yyidx + - 1]->minor),
|
|
array('var' => $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 385 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r34()
|
|
{
|
|
$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 407 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r35()
|
|
{
|
|
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 417 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r36()
|
|
{
|
|
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 430 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r37()
|
|
{
|
|
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 = '<?php ob_start();?>' . $this->compiler->compileTag($this->yystack[$this->yyidx + - 2]->minor, $this->yystack[$this->yyidx + 0]->minor) . '<?php echo ';
|
|
$this->_retvalue .= $this->compiler->compileTag('private_modifier', array(), array('modifierlist' => $this->yystack[$this->yyidx + - 1]->minor,
|
|
'value' => 'ob_get_clean()')) . ';?>';
|
|
}
|
|
}
|
|
|
|
#line 443 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r38()
|
|
{
|
|
$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 448 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r39()
|
|
{
|
|
$this->_retvalue = '<?php ob_start();?>' . $this->compiler->compileTag($this->yystack[$this->yyidx + - 4]->minor, $this->yystack[$this->yyidx + 0]->minor, array('object_method' => $this->yystack[$this->yyidx + - 2]->minor)) . '<?php echo ';
|
|
$this->_retvalue .= $this->compiler->compileTag('private_modifier', array(), array('modifierlist' => $this->yystack[$this->yyidx + - 1]->minor,
|
|
'value' => 'ob_get_clean()')) . ';?>';
|
|
}
|
|
|
|
#line 454 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r40()
|
|
{
|
|
$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 459 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r41()
|
|
{
|
|
$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 464 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r42()
|
|
{
|
|
$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 475 "../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 + - 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 479 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r45()
|
|
{
|
|
$this->_retvalue = '=' . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 487 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r47()
|
|
{
|
|
$this->_retvalue = $this->compiler->compileTag('for', array_merge($this->yystack[$this->yyidx + 0]->minor, array(array('start' => $this->yystack[$this->yyidx + - 3]->minor),
|
|
array('to' => $this->yystack[$this->yyidx + - 1]->minor))), 0);
|
|
}
|
|
|
|
#line 491 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r48()
|
|
{
|
|
$this->_retvalue = $this->compiler->compileTag('for', array_merge($this->yystack[$this->yyidx + 0]->minor, array(array('start' => $this->yystack[$this->yyidx + - 5]->minor),
|
|
array('to' => $this->yystack[$this->yyidx + - 3]->minor),
|
|
array('step' => $this->yystack[$this->yyidx + - 1]->minor))), 0);
|
|
}
|
|
|
|
#line 496 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r49()
|
|
{
|
|
$this->_retvalue = $this->compiler->compileTag('foreach', $this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
|
|
#line 501 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r50()
|
|
{
|
|
$this->_retvalue = $this->compiler->compileTag('foreach', array_merge($this->yystack[$this->yyidx + 0]->minor, array(array('from' => $this->yystack[$this->yyidx + - 3]->minor),
|
|
array('item' => $this->yystack[$this->yyidx + - 1]->minor))));
|
|
}
|
|
|
|
#line 505 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r51()
|
|
{
|
|
$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 518 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r54()
|
|
{
|
|
$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 522 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r55()
|
|
{
|
|
$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 527 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r56()
|
|
{
|
|
$j = strrpos($this->yystack[$this->yyidx + 0]->minor, '.');
|
|
if ($this->yystack[$this->yyidx + 0]->minor[$j + 1] == 'c') {
|
|
// {$smarty.block.child}
|
|
$this->_retvalue = SMARTY_INTERNAL_COMPILE_BLOCK::compileChildBlock($this->compiler);
|
|
} else {
|
|
// {$smarty.block.parent}
|
|
$this->_retvalue = SMARTY_INTERNAL_COMPILE_BLOCK::compileParentBlock($this->compiler);
|
|
}
|
|
}
|
|
|
|
#line 540 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r57()
|
|
{
|
|
$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 549 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r58()
|
|
{
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor . 'close', array());
|
|
}
|
|
|
|
#line 553 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r59()
|
|
{
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + - 1]->minor . 'close', array(), array('modifier_list' => $this->yystack[$this->yyidx + 0]->minor));
|
|
}
|
|
|
|
#line 558 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r60()
|
|
{
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + - 2]->minor . 'close', array(), array('object_method' => $this->yystack[$this->yyidx + 0]->minor));
|
|
}
|
|
|
|
#line 562 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r61()
|
|
{
|
|
$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 570 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r62()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor;
|
|
$this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 576 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r63()
|
|
{
|
|
$this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
|
|
#line 581 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r64()
|
|
{
|
|
$this->_retvalue = array();
|
|
}
|
|
|
|
#line 586 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r65()
|
|
{
|
|
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 597 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r66()
|
|
{
|
|
$this->_retvalue = array(trim($this->yystack[$this->yyidx + - 1]->minor, " =\n\r\t") => $this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
|
|
#line 605 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r68()
|
|
{
|
|
$this->_retvalue = '\'' . $this->yystack[$this->yyidx + 0]->minor . '\'';
|
|
}
|
|
|
|
#line 617 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r71()
|
|
{
|
|
$this->_retvalue = array($this->yystack[$this->yyidx + - 2]->minor => $this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
|
|
#line 630 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r73()
|
|
{
|
|
$this->yystack[$this->yyidx + - 2]->minor[] = $this->yystack[$this->yyidx + 0]->minor;
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor;
|
|
}
|
|
|
|
#line 635 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r74()
|
|
{
|
|
$this->_retvalue = array('var' => '\'' . substr($this->yystack[$this->yyidx + - 2]->minor, 1) . '\'',
|
|
'value' => $this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
|
|
#line 642 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r76()
|
|
{
|
|
$this->_retvalue = array('var' => $this->yystack[$this->yyidx + - 2]->minor,
|
|
'value' => $this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
|
|
#line 666 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r80()
|
|
{
|
|
$this->_retvalue = '$_smarty_tpl->getStreamVariable(\'' . substr($this->yystack[$this->yyidx + - 2]->minor, 1) . '://' . $this->yystack[$this->yyidx + 0]->minor . '\')';
|
|
}
|
|
|
|
#line 671 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r81()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . trim($this->yystack[$this->yyidx + - 1]->minor) . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 685 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r84()
|
|
{
|
|
$this->_retvalue = $this->compiler->compileTag('private_modifier', array(), array('value' => $this->yystack[$this->yyidx + - 1]->minor,
|
|
'modifierlist' => $this->yystack[$this->yyidx + 0]->minor));
|
|
}
|
|
|
|
#line 691 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r85()
|
|
{
|
|
$this->_retvalue = (isset($this->yystack[$this->yyidx + - 1]->minor['pre']) ? $this->yystack[$this->yyidx + - 1]->minor['pre'] : '') . $this->yystack[$this->yyidx + - 2]->minor . $this->yystack[$this->yyidx + - 1]->minor['op'] . $this->yystack[$this->yyidx + 0]->minor . (isset($this->yystack[$this->yyidx + - 1]->minor['pre']) ? ')' : '');
|
|
}
|
|
|
|
#line 694 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r86()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor . $this->yystack[$this->yyidx + - 1]->minor . ')';
|
|
}
|
|
|
|
#line 698 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r87()
|
|
{
|
|
$this->_retvalue = 'in_array(' . $this->yystack[$this->yyidx + - 2]->minor . ',' . $this->yystack[$this->yyidx + 0]->minor . ')';
|
|
}
|
|
|
|
#line 702 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r88()
|
|
{
|
|
$this->_retvalue = 'in_array(' . $this->yystack[$this->yyidx + - 2]->minor . ',(array)' . $this->yystack[$this->yyidx + 0]->minor . ')';
|
|
}
|
|
|
|
#line 706 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r89()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 714 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r90()
|
|
{
|
|
$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 718 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r91()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 5]->minor . ' ? ' . $this->yystack[$this->yyidx + - 2]->minor . ' : ' . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 733 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r94()
|
|
{
|
|
$this->_retvalue = '!' . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 754 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r99()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . '.' . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 758 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r100()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . '.';
|
|
}
|
|
|
|
#line 762 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r101()
|
|
{
|
|
$this->_retvalue = '.' . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 767 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r102()
|
|
{
|
|
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 784 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r104()
|
|
{
|
|
$this->_retvalue = "(" . $this->yystack[$this->yyidx + - 1]->minor . ")";
|
|
}
|
|
|
|
#line 799 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r107()
|
|
{
|
|
self::$prefix_number ++;
|
|
if ($this->yystack[$this->yyidx + - 2]->minor['var'] == '\'smarty\'') {
|
|
$this->compiler->prefix_code[] = '<?php $_tmp' . self::$prefix_number . ' = ' . $this->compiler->compileTag('private_special_variable', array(), $this->yystack[$this->yyidx + - 2]->minor['smarty_internal_index']) . ';?>';
|
|
} else {
|
|
$this->compiler->prefix_code[] = '<?php $_tmp' . self::$prefix_number . ' = ' . $this->compiler->compileVariable($this->yystack[$this->yyidx + - 2]->minor['var']) . $this->yystack[$this->yyidx + - 2]->minor['smarty_internal_index'] . ';?>';
|
|
}
|
|
$this->_retvalue = '$_tmp' . self::$prefix_number . '::' . $this->yystack[$this->yyidx + 0]->minor[0] . $this->yystack[$this->yyidx + 0]->minor[1];
|
|
}
|
|
|
|
#line 810 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r108()
|
|
{
|
|
self::$prefix_number ++;
|
|
$tmp = $this->compiler->appendCode('<?php ob_start();?>', $this->yystack[$this->yyidx + 0]->minor);
|
|
$this->compiler->prefix_code[] = $this->compiler->appendCode($tmp, '<?php $_tmp' . self::$prefix_number . '=ob_get_clean();?>');
|
|
$this->_retvalue = '$_tmp' . self::$prefix_number;
|
|
}
|
|
|
|
#line 827 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r111()
|
|
{
|
|
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 861 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r114()
|
|
{
|
|
$this->_retvalue = $this->compiler->compileVariable('\'' . substr($this->yystack[$this->yyidx + 0]->minor, 1) . '\'');
|
|
}
|
|
|
|
#line 864 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r115()
|
|
{
|
|
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 877 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r116()
|
|
{
|
|
$this->_retvalue = '$_smarty_tpl->tpl_vars[' . $this->yystack[$this->yyidx + - 2]->minor . ']->' . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 887 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r118()
|
|
{
|
|
$this->_retvalue = '$_smarty_tpl->getConfigVariable( \'' . $this->yystack[$this->yyidx + - 1]->minor . '\')';
|
|
}
|
|
|
|
#line 891 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r119()
|
|
{
|
|
$this->_retvalue = '(is_array($tmp = $_smarty_tpl->getConfigVariable( \'' . $this->yystack[$this->yyidx + - 2]->minor . '\')) ? $tmp' . $this->yystack[$this->yyidx + 0]->minor . ' :null)';
|
|
}
|
|
|
|
#line 895 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r120()
|
|
{
|
|
$this->_retvalue = '$_smarty_tpl->getConfigVariable( ' . $this->yystack[$this->yyidx + - 1]->minor . ')';
|
|
}
|
|
|
|
#line 899 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r121()
|
|
{
|
|
$this->_retvalue = '(is_array($tmp = $_smarty_tpl->getConfigVariable( ' . $this->yystack[$this->yyidx + - 2]->minor . ')) ? $tmp' . $this->yystack[$this->yyidx + 0]->minor . ' : null)';
|
|
}
|
|
|
|
#line 903 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r122()
|
|
{
|
|
$this->_retvalue = array('var' => '\'' . substr($this->yystack[$this->yyidx + - 1]->minor, 1) . '\'',
|
|
'smarty_internal_index' => $this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
|
|
#line 906 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r123()
|
|
{
|
|
$this->_retvalue = array('var' => $this->yystack[$this->yyidx + - 1]->minor,
|
|
'smarty_internal_index' => $this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
|
|
#line 919 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r125()
|
|
{
|
|
return;
|
|
}
|
|
|
|
#line 925 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r126()
|
|
{
|
|
$this->_retvalue = '[' . $this->compiler->compileVariable('\'' . substr($this->yystack[$this->yyidx + 0]->minor, 1) . '\'') . ']';
|
|
}
|
|
|
|
#line 928 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r127()
|
|
{
|
|
$this->_retvalue = '[' . $this->compiler->compileVariable($this->yystack[$this->yyidx + 0]->minor) . ']';
|
|
}
|
|
|
|
#line 932 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r128()
|
|
{
|
|
$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_r129()
|
|
{
|
|
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 947 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r130()
|
|
{
|
|
$this->_retvalue = '[' . $this->yystack[$this->yyidx + 0]->minor . ']';
|
|
}
|
|
|
|
#line 951 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r131()
|
|
{
|
|
$this->_retvalue = '[' . $this->yystack[$this->yyidx + - 1]->minor . ']';
|
|
}
|
|
|
|
#line 956 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r132()
|
|
{
|
|
$this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable', array(), '[\'section\'][\'' . $this->yystack[$this->yyidx + - 1]->minor . '\'][\'index\']') . ']';
|
|
}
|
|
|
|
#line 960 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r133()
|
|
{
|
|
$this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable', array(), '[\'section\'][\'' . $this->yystack[$this->yyidx + - 3]->minor . '\'][\'' . $this->yystack[$this->yyidx + - 1]->minor . '\']') . ']';
|
|
}
|
|
|
|
#line 963 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r134()
|
|
{
|
|
$this->_retvalue = '[' . $this->yystack[$this->yyidx + - 1]->minor . ']';
|
|
}
|
|
|
|
#line 969 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r136()
|
|
{
|
|
$this->_retvalue = '[' . $this->compiler->compileVariable('\'' . substr($this->yystack[$this->yyidx + - 1]->minor, 1) . '\'') . ']';;
|
|
}
|
|
|
|
#line 985 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r140()
|
|
{
|
|
$this->_retvalue = '[]';
|
|
}
|
|
|
|
#line 995 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r141()
|
|
{
|
|
$this->_retvalue = '\'' . substr($this->yystack[$this->yyidx + 0]->minor, 1) . '\'';
|
|
}
|
|
|
|
#line 999 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r142()
|
|
{
|
|
$this->_retvalue = "''";
|
|
}
|
|
|
|
#line 1004 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r143()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . '.' . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 1014 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r145()
|
|
{
|
|
$this->_retvalue = '(' . $this->yystack[$this->yyidx + - 1]->minor . ')';
|
|
}
|
|
|
|
#line 1021 "../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 1030 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r147()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 1035 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r148()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 1040 "../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 1047 "../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 1054 "../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 1061 "../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 1069 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r153()
|
|
{
|
|
$this->_retvalue = '->' . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 1077 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r154()
|
|
{
|
|
if (!$this->security || $this->security->isTrustedPhpFunction($this->yystack[$this->yyidx + - 3]->minor, $this->compiler)) {
|
|
if (strcasecmp($this->yystack[$this->yyidx + - 3]->minor, 'isset') === 0 || strcasecmp($this->yystack[$this->yyidx + - 3]->minor, 'empty') === 0 || strcasecmp($this->yystack[$this->yyidx + - 3]->minor, 'array') === 0 || is_callable($this->yystack[$this->yyidx + - 3]->minor)) {
|
|
$func_name = strtolower($this->yystack[$this->yyidx + - 3]->minor);
|
|
if ($func_name == 'isset') {
|
|
if (count($this->yystack[$this->yyidx + - 1]->minor) == 0) {
|
|
$this->compiler->trigger_template_error('Illegal number of paramer in "isset()"');
|
|
}
|
|
$par = implode(',', $this->yystack[$this->yyidx + - 1]->minor);
|
|
if (strncasecmp($par, '$_smarty_tpl->getConfigVariable', strlen('$_smarty_tpl->getConfigVariable')) === 0) {
|
|
self::$prefix_number ++;
|
|
$this->compiler->prefix_code[] = '<?php $_tmp' . self::$prefix_number . '=' . str_replace(')', ', false)', $par) . ';?>';
|
|
$isset_par = '$_tmp' . self::$prefix_number;
|
|
} else {
|
|
$isset_par = str_replace("')->value", "',null,true,false)->value", $par);
|
|
}
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 3]->minor . "(" . $isset_par . ")";
|
|
} elseif (in_array($func_name, array('empty', 'reset', 'current', 'end', 'prev', 'next'))) {
|
|
if (count($this->yystack[$this->yyidx + - 1]->minor) != 1) {
|
|
$this->compiler->trigger_template_error('Illegal number of paramer in "empty()"');
|
|
}
|
|
if ($func_name == 'empty') {
|
|
$this->_retvalue = $func_name . '(' . str_replace("')->value", "',null,true,false)->value", $this->yystack[$this->yyidx + - 1]->minor[0]) . ')';
|
|
} else {
|
|
$this->_retvalue = $func_name . '(' . $this->yystack[$this->yyidx + - 1]->minor[0] . ')';
|
|
}
|
|
} else {
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 3]->minor . "(" . implode(',', $this->yystack[$this->yyidx + - 1]->minor) . ")";
|
|
}
|
|
} else {
|
|
$this->compiler->trigger_template_error("unknown function \"" . $this->yystack[$this->yyidx + - 3]->minor . "\"");
|
|
}
|
|
}
|
|
}
|
|
|
|
#line 1116 "../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 1123 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r156()
|
|
{
|
|
if ($this->security) {
|
|
$this->compiler->trigger_template_error(self::Err2);
|
|
}
|
|
self::$prefix_number ++;
|
|
$this->compiler->prefix_code[] = '<?php $_tmp' . self::$prefix_number . '=' . $this->compiler->compileVariable('\'' . substr($this->yystack[$this->yyidx + - 3]->minor, 1) . '\'') . ';?>';
|
|
$this->_retvalue = '$_tmp' . self::$prefix_number . '(' . implode(',', $this->yystack[$this->yyidx + - 1]->minor) . ')';
|
|
}
|
|
|
|
#line 1134 "../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 1151 "../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 1155 "../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 1163 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r163()
|
|
{
|
|
$this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
|
|
#line 1171 "../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 1190 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r168()
|
|
{
|
|
$this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor, '', 'method');
|
|
}
|
|
|
|
#line 1195 "../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 1200 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r170()
|
|
{
|
|
$this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor, '');
|
|
}
|
|
|
|
#line 1205 "../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 1210 "../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 1216 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r173()
|
|
{
|
|
$this->_retvalue['op'] = ' ' . trim($this->yystack[$this->yyidx + 0]->minor) . ' ';
|
|
}
|
|
|
|
#line 1220 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r174()
|
|
{
|
|
static $lops = array('eq' => array('op' => ' == ', 'pre' => null),
|
|
'ne' => array('op' => ' != ', 'pre' => null),
|
|
'neq' => array('op' => ' != ', 'pre' => null),
|
|
'gt' => array('op' => ' > ', 'pre' => null),
|
|
'ge' => array('op' => ' >= ', 'pre' => null),
|
|
'gte' => array('op' => ' >= ', 'pre' => null),
|
|
'lt' => array('op' => ' < ', 'pre' => null),
|
|
'le' => array('op' => ' <= ', 'pre' => null),
|
|
'lte' => array('op' => ' <= ', 'pre' => null),
|
|
'mod' => array('op' => ' % ', 'pre' => null),
|
|
'and' => array('op' => ' && ', 'pre' => null),
|
|
'or' => array('op' => ' || ', 'pre' => null),
|
|
'xor' => array('op' => ' xor ', 'pre' => null),
|
|
'isdivby' => array('op' => ' % ', 'pre' => '!('),
|
|
'isnotdivby' => array('op' => ' % ', 'pre' => '('),
|
|
'isevenby' => array('op' => ' / ', 'pre' => '!(1 & '),
|
|
'isnotevenby' => array('op' => ' / ', 'pre' => '(1 & '),
|
|
'isoddby' => array('op' => ' / ', 'pre' => '(1 & '),
|
|
'isnotoddby' => array('op' => ' / ', 'pre' => '!(1 & '),);
|
|
$op = strtolower(preg_replace('/\s*/', '', $this->yystack[$this->yyidx + 0]->minor));
|
|
$this->_retvalue = $lops[$op];
|
|
}
|
|
|
|
#line 1246 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r175()
|
|
{
|
|
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 1260 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r176()
|
|
{
|
|
$this->_retvalue = 'array(' . $this->yystack[$this->yyidx + - 1]->minor . ')';
|
|
}
|
|
|
|
#line 1268 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r178()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . ',' . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 1276 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r180()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . '=>' . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 1280 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r181()
|
|
{
|
|
$this->_retvalue = '\'' . $this->yystack[$this->yyidx + - 2]->minor . '\'=>' . $this->yystack[$this->yyidx + 0]->minor;
|
|
}
|
|
|
|
#line 1296 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r184()
|
|
{
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor->to_smarty_php();
|
|
}
|
|
|
|
#line 1301 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r185()
|
|
{
|
|
$this->yystack[$this->yyidx + - 1]->minor->append_subtree($this->yystack[$this->yyidx + 0]->minor);
|
|
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor;
|
|
}
|
|
|
|
#line 1306 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r186()
|
|
{
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_Dq($this, $this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
|
|
#line 1310 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r187()
|
|
{
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_Code($this, '(string)' . $this->yystack[$this->yyidx + - 1]->minor);
|
|
}
|
|
|
|
#line 1318 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r189()
|
|
{
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_Code($this, '(string)$_smarty_tpl->tpl_vars[\'' . substr($this->yystack[$this->yyidx + 0]->minor, 1) . '\']->value');
|
|
}
|
|
|
|
#line 1326 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r191()
|
|
{
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_Code($this, '(string)(' . $this->yystack[$this->yyidx + - 1]->minor . ')');
|
|
}
|
|
|
|
#line 1330 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r192()
|
|
{
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_Tag($this, $this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
|
|
#line 1334 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
function yy_r193()
|
|
{
|
|
$this->_retvalue = new Smarty_Internal_ParseTree_DqContent($this, $this->yystack[$this->yyidx + 0]->minor);
|
|
}
|
|
|
|
private $_retvalue;
|
|
|
|
public function yy_reduce($yyruleno)
|
|
{
|
|
if ($this->yyTraceFILE && $yyruleno >= 0 && $yyruleno < count(self::$yyRuleName)) {
|
|
fprintf($this->yyTraceFILE, "%sReduce (%d) [%s].\n", $this->yyTracePrompt, $yyruleno, self::$yyRuleName[$yyruleno]);
|
|
}
|
|
|
|
$this->_retvalue = $yy_lefthand_side = null;
|
|
if (isset(self::$yyReduceMap[$yyruleno])) {
|
|
// call the action
|
|
$this->_retvalue = null;
|
|
$this->{'yy_r' . self::$yyReduceMap[$yyruleno]}();
|
|
$yy_lefthand_side = $this->_retvalue;
|
|
}
|
|
$yygoto = self::$yyRuleInfo[$yyruleno][0];
|
|
$yysize = self::$yyRuleInfo[$yyruleno][1];
|
|
$this->yyidx -= $yysize;
|
|
for ($i = $yysize; $i; $i --) {
|
|
// pop all of the right-hand side parameters
|
|
array_pop($this->yystack);
|
|
}
|
|
$yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto);
|
|
if ($yyact < self::YYNSTATE) {
|
|
if (!$this->yyTraceFILE && $yysize) {
|
|
$this->yyidx ++;
|
|
$x = new TP_yyStackEntry;
|
|
$x->stateno = $yyact;
|
|
$x->major = $yygoto;
|
|
$x->minor = $yy_lefthand_side;
|
|
$this->yystack[$this->yyidx] = $x;
|
|
} else {
|
|
$this->yy_shift($yyact, $yygoto, $yy_lefthand_side);
|
|
}
|
|
} elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) {
|
|
$this->yy_accept();
|
|
}
|
|
}
|
|
|
|
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 183 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
|
|
$this->internalError = true;
|
|
$this->yymajor = $yymajor;
|
|
$this->compiler->trigger_template_error();
|
|
}
|
|
|
|
public function yy_accept()
|
|
{
|
|
if ($this->yyTraceFILE) {
|
|
fprintf($this->yyTraceFILE, "%sAccept!\n", $this->yyTracePrompt);
|
|
}
|
|
while ($this->yyidx >= 0) {
|
|
$this->yy_pop_parser_stack();
|
|
}
|
|
#line 176 "../smarty/lexer/smarty_internal_templateparser.y"
|
|
|
|
$this->successful = !$this->internalError;
|
|
$this->internalError = false;
|
|
$this->retvalue = $this->_retvalue;
|
|
}
|
|
|
|
public function doParse($yymajor, $yytokenvalue)
|
|
{
|
|
$yyerrorhit = 0; /* True if yymajor has invoked an error */
|
|
|
|
if ($this->yyidx === null || $this->yyidx < 0) {
|
|
$this->yyidx = 0;
|
|
$this->yyerrcnt = - 1;
|
|
$x = 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;
|
|
}
|
|
} elseif ($yyact < self::YYNSTATE + self::YYNRULE) {
|
|
$this->yy_reduce($yyact - self::YYNSTATE);
|
|
} elseif ($yyact == self::YY_ERROR_ACTION) {
|
|
if ($this->yyTraceFILE) {
|
|
fprintf($this->yyTraceFILE, "%sSyntax Error!\n", $this->yyTracePrompt);
|
|
}
|
|
if (self::YYERRORSYMBOL) {
|
|
if ($this->yyerrcnt < 0) {
|
|
$this->yy_syntax_error($yymajor, $yytokenvalue);
|
|
}
|
|
$yymx = $this->yystack[$this->yyidx]->major;
|
|
if ($yymx == self::YYERRORSYMBOL || $yyerrorhit) {
|
|
if ($this->yyTraceFILE) {
|
|
fprintf($this->yyTraceFILE, "%sDiscard input token %s\n", $this->yyTracePrompt, $this->yyTokenName[$yymajor]);
|
|
}
|
|
$this->yy_destructor($yymajor, $yytokenvalue);
|
|
$yymajor = self::YYNOCODE;
|
|
} else {
|
|
while ($this->yyidx >= 0 && $yymx != self::YYERRORSYMBOL && ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE) {
|
|
$this->yy_pop_parser_stack();
|
|
}
|
|
if ($this->yyidx < 0 || $yymajor == 0) {
|
|
$this->yy_destructor($yymajor, $yytokenvalue);
|
|
$this->yy_parse_failed();
|
|
$yymajor = self::YYNOCODE;
|
|
} elseif ($yymx != self::YYERRORSYMBOL) {
|
|
$u2 = 0;
|
|
$this->yy_shift($yyact, self::YYERRORSYMBOL, $u2);
|
|
}
|
|
}
|
|
$this->yyerrcnt = 3;
|
|
$yyerrorhit = 1;
|
|
} else {
|
|
if ($this->yyerrcnt <= 0) {
|
|
$this->yy_syntax_error($yymajor, $yytokenvalue);
|
|
}
|
|
$this->yyerrcnt = 3;
|
|
$this->yy_destructor($yymajor, $yytokenvalue);
|
|
if ($yyendofinput) {
|
|
$this->yy_parse_failed();
|
|
}
|
|
$yymajor = self::YYNOCODE;
|
|
}
|
|
} else {
|
|
$this->yy_accept();
|
|
$yymajor = self::YYNOCODE;
|
|
}
|
|
} while ($yymajor != self::YYNOCODE && $this->yyidx >= 0);
|
|
}
|
|
}
|
|
|