Files
smarty/libs/sysplugins/smarty_internal_templateparser.php

3548 lines
140 KiB
PHP
Raw Normal View History

<?php
2014-06-08 16:00:56 +00:00
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 */
2014-06-08 16:00:56 +00:00
}
2014-06-08 16:00:56 +00:00
;
#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"
2011-09-16 14:19:56 +00:00
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
*/
2014-10-07 22:20:21 +00:00
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_template_buffer
*/
public $root_buffer;
/**
* current parse tree object
*
* @var _smarty_template_buffer
*/
public $current_buffer;
/**
* lexer object
*
* @var Smarty_Internal_Templatelexer
*/
private $lex;
/**
* internal error flag
*
* @var bool
*/
private $internalError = false;
/**
* {strip} status
*
* @var bool
*/
private $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;
/**
* xml tag flag
*
* @var bool
*/
private $is_xml = false;
/**
* security object
*
* @var Smarty_Security
*/
private $security = null;
/**
* asp enabled
*
* @var bool
*/
private $asp_tags = false;
/**
* PHP tag handling mode
*
* @var int
*/
private $php_handling = 0;
/**
* constructor
*
* @param Smarty_Internal_Templatelexer $lex
* @param Smarty_Internal_TemplateCompilerBase $compiler
*/
function __construct(Smarty_Internal_Templatelexer $lex, Smarty_Internal_TemplateCompilerBase $compiler)
2014-06-08 16:00:56 +00:00
{
$this->lex = $lex;
$this->compiler = $compiler;
$this->template = $this->compiler->template;
$this->smarty = $this->template->smarty;
$this->compiler->has_variable_string = false;
2011-09-16 14:19:56 +00:00
$this->compiler->prefix_code = array();
if ($this->security = isset($this->smarty->security_policy)) {
$this->php_handling = $this->smarty->security_policy->php_handling;
} else {
2011-09-16 14:19:56 +00:00
$this->php_handling = $this->smarty->php_handling;
}
2011-09-16 14:19:56 +00:00
$this->asp_tags = (ini_get('asp_tags') != '0');
$this->current_buffer = $this->root_buffer = new _smarty_template_buffer($this);
}
/**
* insert PHP code in current buffer
*
* @param string $code
*/
public function insertPhpCode($code)
{
$this->current_buffer->append_subtree(new _smarty_tag($this, $code));
}
/**
* compile variable
*
* @param string $variable
*
* @return string
*/
2014-06-08 16:00:56 +00:00
public function compileVariable($variable)
{
if (strpos($variable, '(') == 0) {
2011-09-16 14:19:56 +00:00
// not a variable variable
2014-06-08 16:00:56 +00:00
$var = trim($variable, '\'');
$this->compiler->tag_nocache = $this->compiler->tag_nocache | $this->template->getVariable($var, null, true, false)->nocache;
$this->template->properties['variables'][$var] = $this->compiler->tag_nocache | $this->compiler->nocache;
2011-09-16 14:19:56 +00:00
}
2014-06-08 16:00:56 +00:00
return '$_smarty_tpl->tpl_vars[' . $variable . ']->value';
2011-09-16 14:19:56 +00:00
}
2014-06-08 16:00:56 +00:00
const TP_VERT = 1;
const TP_COLON = 2;
const TP_RDEL = 3;
const TP_COMMENT = 4;
const TP_PHPSTARTTAG = 5;
const TP_PHPENDTAG = 6;
const TP_PHPENDSCRIPT = 7;
const TP_ASPSTARTTAG = 8;
const TP_ASPENDTAG = 9;
const TP_XMLTAG = 10;
const TP_TEXT = 11;
const TP_STRIPON = 12;
const TP_STRIPOFF = 13;
const TP_BLOCKSOURCE = 14;
const TP_LITERALSTART = 15;
const TP_LITERALEND = 16;
const TP_LITERAL = 17;
const TP_LDEL = 18;
const TP_DOLLAR = 19;
const TP_ID = 20;
const TP_EQUAL = 21;
const TP_PTR = 22;
const TP_LDELIF = 23;
const TP_LDELFOR = 24;
const TP_SEMICOLON = 25;
const TP_INCDEC = 26;
const TP_TO = 27;
const TP_STEP = 28;
const TP_LDELFOREACH = 29;
const TP_SPACE = 30;
const TP_AS = 31;
const TP_APTR = 32;
const TP_LDELSETFILTER = 33;
const TP_SMARTYBLOCKCHILDPARENT = 34;
const TP_LDELSLASH = 35;
const TP_ATTR = 36;
const TP_INTEGER = 37;
const TP_COMMA = 38;
const TP_OPENP = 39;
const TP_CLOSEP = 40;
const TP_MATH = 41;
const TP_UNIMATH = 42;
const TP_ANDSYM = 43;
const TP_ISIN = 44;
const TP_ISDIVBY = 45;
const TP_ISNOTDIVBY = 46;
const TP_ISEVEN = 47;
const TP_ISNOTEVEN = 48;
const TP_ISEVENBY = 49;
const TP_ISNOTEVENBY = 50;
const TP_ISODD = 51;
const TP_ISNOTODD = 52;
const TP_ISODDBY = 53;
const TP_ISNOTODDBY = 54;
const TP_INSTANCEOF = 55;
const TP_QMARK = 56;
const TP_NOT = 57;
const TP_TYPECAST = 58;
const TP_HEX = 59;
const TP_DOT = 60;
const TP_SINGLEQUOTESTRING = 61;
const TP_DOUBLECOLON = 62;
const TP_NAMESPACE = 63;
const TP_AT = 64;
const TP_HATCH = 65;
const TP_OPENB = 66;
const TP_CLOSEB = 67;
const TP_EQUALS = 68;
const TP_NOTEQUALS = 69;
const TP_GREATERTHAN = 70;
const TP_LESSTHAN = 71;
const TP_GREATEREQUAL = 72;
const TP_LESSEQUAL = 73;
const TP_IDENTITY = 74;
const TP_NONEIDENTITY = 75;
const TP_MOD = 76;
const TP_LAND = 77;
const TP_LOR = 78;
const TP_LXOR = 79;
const TP_QUOTE = 80;
const TP_BACKTICK = 81;
const TP_DOLLARID = 82;
const YY_NO_ACTION = 568;
const YY_ACCEPT_ACTION = 567;
const YY_ERROR_ACTION = 566;
const YY_SZ_ACTTAB = 2456;
2014-06-08 16:00:56 +00:00
static public $yy_action = array(
221, 31, 327, 263, 196, 309, 305, 301, 302, 303,
304, 310, 311, 317, 318, 319, 202, 25, 23, 10,
321, 32, 158, 131, 5, 107, 202, 315, 314, 28,
143, 221, 206, 429, 255, 17, 252, 195, 122, 328,
49, 51, 50, 45, 26, 19, 347, 343, 38, 13,
344, 345, 39, 34, 221, 567, 95, 265, 238, 306,
429, 256, 139, 119, 481, 206, 429, 278, 346, 352,
353, 359, 360, 361, 358, 357, 354, 355, 356, 294,
279, 37, 329, 28, 105, 248, 32, 481, 11, 17,
286, 14, 276, 483, 49, 51, 50, 45, 26, 19,
347, 343, 38, 13, 344, 345, 39, 34, 221, 93,
221, 323, 386, 29, 128, 178, 483, 298, 481, 192,
326, 278, 346, 352, 353, 359, 360, 361, 358, 357,
354, 355, 356, 349, 279, 338, 221, 28, 423, 28,
147, 481, 11, 17, 286, 17, 308, 483, 49, 51,
50, 45, 26, 19, 347, 343, 38, 13, 344, 345,
39, 34, 221, 93, 207, 28, 221, 31, 426, 261,
483, 17, 36, 133, 290, 278, 346, 352, 353, 359,
360, 361, 358, 357, 354, 355, 356, 231, 241, 104,
160, 291, 221, 320, 429, 426, 307, 238, 306, 299,
147, 426, 49, 51, 50, 45, 26, 19, 347, 343,
38, 13, 344, 345, 39, 34, 221, 206, 267, 190,
11, 429, 286, 20, 109, 336, 137, 429, 274, 278,
346, 352, 353, 359, 360, 361, 358, 357, 354, 355,
356, 285, 279, 16, 102, 165, 221, 206, 287, 11,
481, 286, 14, 21, 299, 483, 49, 51, 50, 45,
26, 19, 347, 343, 38, 13, 344, 345, 39, 34,
221, 93, 206, 481, 6, 28, 201, 326, 483, 193,
11, 17, 286, 278, 346, 352, 353, 359, 360, 361,
358, 357, 354, 355, 356, 235, 106, 166, 199, 326,
175, 258, 232, 218, 122, 233, 299, 206, 203, 299,
49, 51, 50, 45, 26, 19, 347, 343, 38, 13,
344, 345, 39, 34, 206, 221, 235, 205, 28, 31,
11, 362, 237, 221, 17, 391, 262, 278, 346, 352,
353, 359, 360, 361, 358, 357, 354, 355, 356, 197,
105, 279, 212, 172, 493, 2, 221, 44, 8, 94,
493, 283, 299, 184, 483, 49, 51, 50, 45, 26,
19, 347, 343, 38, 13, 344, 345, 39, 34, 221,
205, 264, 180, 482, 333, 4, 11, 483, 219, 141,
242, 299, 278, 346, 352, 353, 359, 360, 361, 358,
357, 354, 355, 356, 285, 250, 482, 183, 129, 24,
240, 247, 149, 258, 277, 295, 299, 40, 158, 49,
51, 50, 45, 26, 19, 347, 343, 38, 13, 344,
345, 39, 34, 221, 205, 204, 167, 11, 221, 286,
134, 11, 179, 245, 285, 299, 278, 346, 352, 353,
359, 360, 361, 358, 357, 354, 355, 356, 139, 198,
142, 191, 164, 205, 285, 313, 11, 312, 251, 27,
221, 348, 132, 49, 51, 50, 45, 26, 19, 347,
343, 38, 13, 344, 345, 39, 34, 221, 231, 206,
187, 260, 158, 103, 7, 258, 254, 121, 157, 299,
278, 346, 352, 353, 359, 360, 361, 358, 357, 354,
355, 356, 285, 294, 294, 163, 316, 228, 115, 22,
173, 194, 296, 169, 299, 17, 331, 49, 51, 50,
45, 26, 19, 347, 343, 38, 13, 344, 345, 39,
34, 221, 189, 108, 171, 182, 140, 6, 123, 340,
230, 101, 97, 299, 278, 346, 352, 353, 359, 360,
361, 358, 357, 354, 355, 356, 285, 294, 294, 159,
161, 41, 281, 242, 253, 282, 144, 268, 299, 299,
113, 49, 51, 50, 45, 26, 19, 347, 343, 38,
13, 344, 345, 39, 34, 221, 294, 272, 181, 120,
42, 297, 200, 30, 284, 221, 100, 299, 278, 346,
352, 353, 359, 360, 361, 358, 357, 354, 355, 356,
285, 332, 294, 275, 300, 298, 168, 170, 177, 12,
269, 285, 44, 273, 270, 49, 51, 50, 45, 26,
19, 347, 343, 38, 13, 344, 345, 39, 34, 221,
259, 331, 205, 331, 287, 331, 331, 331, 98, 112,
118, 331, 278, 346, 352, 353, 359, 360, 361, 358,
357, 354, 355, 356, 294, 294, 294, 331, 331, 331,
331, 331, 331, 331, 331, 331, 331, 331, 249, 49,
51, 50, 45, 26, 19, 347, 343, 38, 13, 344,
345, 39, 34, 221, 35, 331, 331, 331, 331, 331,
331, 331, 331, 331, 331, 331, 278, 346, 352, 353,
359, 360, 361, 358, 357, 354, 355, 356, 331, 331,
331, 331, 331, 331, 331, 331, 331, 331, 331, 331,
331, 331, 158, 49, 51, 50, 45, 26, 19, 347,
343, 38, 13, 344, 345, 39, 34, 221, 331, 331,
331, 331, 331, 331, 331, 331, 331, 331, 331, 331,
278, 346, 352, 353, 359, 360, 361, 358, 357, 354,
355, 356, 139, 331, 331, 331, 331, 331, 331, 331,
331, 331, 331, 331, 331, 331, 331, 49, 51, 50,
45, 26, 19, 347, 343, 38, 13, 344, 345, 39,
34, 331, 331, 331, 331, 331, 331, 331, 331, 331,
331, 158, 43, 331, 278, 346, 352, 353, 359, 360,
361, 358, 357, 354, 355, 356, 331, 331, 331, 49,
51, 50, 45, 26, 19, 347, 343, 38, 13, 344,
345, 39, 34, 331, 331, 331, 331, 331, 331, 212,
331, 230, 331, 331, 331, 8, 278, 346, 352, 353,
359, 360, 361, 358, 357, 354, 355, 356, 331, 331,
331, 337, 331, 331, 331, 10, 126, 91, 9, 331,
5, 107, 331, 5, 107, 11, 143, 286, 146, 143,
255, 322, 252, 255, 229, 252, 33, 28, 331, 48,
330, 341, 331, 17, 239, 351, 331, 331, 154, 331,
331, 331, 138, 331, 47, 46, 280, 234, 292, 146,
227, 350, 105, 1, 216, 225, 288, 293, 331, 351,
331, 246, 331, 10, 130, 213, 351, 96, 5, 107,
324, 18, 339, 331, 143, 239, 331, 331, 255, 156,
252, 331, 229, 138, 33, 331, 331, 48, 331, 331,
331, 331, 266, 331, 331, 216, 225, 288, 293, 331,
351, 331, 47, 46, 280, 234, 292, 331, 227, 331,
105, 1, 271, 331, 331, 331, 427, 337, 331, 331,
331, 10, 130, 224, 9, 96, 5, 107, 331, 5,
107, 331, 143, 331, 236, 143, 255, 331, 252, 255,
229, 252, 33, 427, 331, 48, 331, 331, 331, 427,
331, 239, 481, 331, 331, 151, 331, 331, 331, 138,
47, 46, 280, 234, 292, 331, 227, 331, 105, 1,
331, 216, 225, 288, 293, 481, 351, 331, 331, 10,
130, 215, 331, 96, 5, 107, 325, 18, 339, 331,
143, 239, 331, 331, 255, 152, 252, 331, 229, 138,
33, 331, 331, 48, 331, 331, 331, 331, 331, 331,
331, 216, 225, 288, 293, 331, 351, 331, 47, 46,
280, 234, 292, 331, 227, 331, 105, 1, 221, 331,
396, 331, 11, 331, 286, 331, 331, 10, 122, 224,
331, 96, 5, 107, 28, 331, 243, 239, 143, 257,
17, 150, 255, 331, 252, 138, 229, 28, 15, 331,
331, 48, 331, 17, 331, 331, 481, 216, 225, 288,
293, 331, 351, 331, 331, 331, 47, 46, 280, 234,
292, 331, 227, 331, 105, 1, 331, 331, 331, 481,
331, 11, 331, 286, 331, 10, 130, 208, 331, 96,
5, 107, 331, 28, 331, 244, 143, 239, 331, 17,
255, 148, 252, 331, 229, 138, 33, 331, 331, 48,
331, 331, 331, 331, 331, 331, 331, 216, 225, 288,
293, 331, 351, 331, 47, 46, 280, 234, 292, 331,
227, 331, 105, 1, 331, 331, 331, 331, 331, 331,
331, 331, 331, 10, 136, 224, 331, 96, 5, 107,
331, 331, 331, 331, 143, 239, 331, 331, 255, 155,
252, 331, 229, 138, 3, 331, 331, 48, 331, 331,
331, 331, 331, 331, 331, 216, 225, 288, 293, 331,
351, 331, 47, 46, 280, 234, 292, 331, 227, 331,
105, 1, 331, 331, 331, 331, 331, 331, 331, 331,
331, 10, 130, 209, 331, 96, 5, 107, 331, 331,
331, 331, 143, 239, 331, 331, 255, 153, 252, 331,
222, 138, 33, 331, 331, 48, 331, 331, 331, 331,
331, 331, 331, 216, 225, 288, 293, 331, 351, 331,
47, 46, 280, 234, 292, 331, 227, 331, 105, 1,
331, 331, 331, 331, 331, 331, 331, 331, 331, 10,
124, 224, 331, 96, 5, 107, 331, 331, 331, 331,
143, 331, 331, 331, 255, 331, 252, 331, 229, 331,
33, 196, 174, 48, 331, 331, 331, 331, 331, 331,
331, 299, 331, 331, 25, 23, 331, 331, 47, 46,
280, 234, 292, 331, 227, 331, 105, 1, 331, 206,
331, 331, 331, 331, 331, 331, 331, 10, 122, 224,
331, 96, 5, 107, 331, 331, 331, 331, 143, 331,
331, 331, 255, 331, 252, 331, 229, 331, 15, 331,
331, 48, 331, 331, 331, 471, 331, 331, 331, 331,
331, 331, 331, 331, 331, 331, 47, 46, 280, 234,
292, 331, 227, 331, 105, 331, 331, 471, 331, 471,
471, 331, 471, 471, 196, 186, 331, 331, 471, 96,
471, 481, 471, 331, 299, 331, 331, 25, 23, 331,
239, 331, 331, 331, 125, 331, 331, 87, 138, 331,
331, 331, 206, 331, 481, 331, 289, 342, 331, 471,
214, 225, 288, 293, 331, 351, 331, 331, 331, 331,
239, 196, 162, 471, 145, 220, 335, 54, 116, 135,
331, 299, 331, 331, 25, 23, 289, 342, 331, 331,
214, 225, 288, 293, 239, 351, 331, 331, 145, 206,
331, 72, 138, 331, 331, 331, 331, 331, 331, 331,
289, 342, 331, 331, 214, 225, 288, 293, 331, 351,
239, 99, 176, 331, 145, 331, 217, 72, 138, 331,
331, 299, 331, 331, 25, 23, 289, 342, 331, 331,
214, 225, 288, 293, 331, 351, 331, 239, 331, 206,
331, 145, 223, 331, 72, 138, 331, 331, 331, 331,
331, 331, 331, 289, 342, 331, 331, 214, 225, 288,
293, 331, 351, 331, 239, 331, 331, 331, 125, 226,
331, 87, 138, 331, 331, 331, 331, 331, 331, 331,
289, 342, 331, 331, 214, 225, 288, 293, 239, 351,
331, 331, 145, 331, 331, 62, 116, 254, 331, 331,
334, 331, 331, 331, 289, 342, 331, 331, 214, 225,
288, 293, 331, 351, 239, 331, 331, 331, 145, 331,
331, 69, 138, 331, 331, 239, 331, 331, 331, 145,
289, 342, 77, 138, 210, 225, 288, 293, 331, 351,
331, 289, 342, 331, 331, 214, 225, 288, 293, 331,
351, 331, 239, 196, 185, 331, 145, 331, 331, 75,
138, 331, 331, 299, 331, 331, 25, 23, 289, 342,
331, 331, 214, 225, 288, 293, 239, 351, 331, 331,
145, 206, 331, 64, 138, 331, 331, 331, 331, 331,
331, 331, 289, 342, 331, 331, 214, 225, 288, 293,
331, 351, 239, 331, 331, 331, 145, 331, 331, 67,
138, 331, 331, 239, 331, 331, 331, 145, 289, 342,
61, 138, 214, 225, 288, 293, 331, 351, 331, 289,
342, 331, 331, 214, 225, 288, 293, 331, 351, 331,
239, 196, 188, 331, 92, 331, 331, 56, 117, 331,
331, 299, 331, 331, 25, 23, 289, 342, 331, 331,
214, 225, 288, 293, 239, 351, 331, 331, 145, 206,
331, 71, 138, 331, 331, 331, 331, 331, 331, 331,
289, 342, 331, 331, 214, 225, 288, 293, 331, 351,
239, 331, 331, 331, 145, 331, 331, 85, 138, 331,
331, 239, 331, 331, 331, 145, 289, 342, 86, 138,
214, 225, 288, 293, 331, 351, 331, 289, 342, 331,
331, 214, 225, 288, 293, 331, 351, 331, 239, 331,
331, 331, 145, 331, 331, 82, 138, 331, 331, 331,
331, 331, 331, 331, 289, 342, 331, 331, 214, 225,
288, 293, 239, 351, 331, 331, 114, 331, 331, 84,
138, 331, 331, 331, 331, 331, 331, 331, 289, 342,
331, 331, 214, 225, 288, 293, 331, 351, 239, 331,
331, 331, 145, 331, 331, 60, 138, 331, 331, 239,
331, 331, 331, 145, 289, 342, 78, 138, 214, 225,
288, 293, 331, 351, 331, 289, 342, 331, 331, 214,
225, 288, 293, 331, 351, 331, 239, 331, 331, 331,
145, 331, 331, 63, 138, 331, 331, 331, 331, 331,
331, 331, 289, 342, 331, 331, 214, 225, 288, 293,
239, 351, 331, 331, 145, 331, 331, 81, 138, 331,
331, 331, 331, 331, 331, 331, 289, 342, 331, 331,
214, 225, 288, 293, 331, 351, 239, 331, 331, 331,
127, 331, 331, 57, 138, 331, 331, 239, 331, 331,
331, 145, 289, 342, 79, 138, 214, 225, 288, 293,
331, 351, 331, 289, 342, 331, 331, 214, 225, 288,
293, 331, 351, 331, 239, 331, 331, 331, 145, 331,
331, 83, 138, 331, 331, 331, 331, 331, 331, 331,
289, 342, 331, 331, 214, 225, 288, 293, 239, 351,
331, 331, 145, 331, 331, 65, 138, 331, 331, 331,
331, 331, 331, 331, 289, 342, 331, 331, 214, 225,
288, 293, 331, 351, 239, 331, 331, 331, 110, 331,
331, 59, 138, 331, 331, 239, 331, 331, 331, 145,
289, 342, 76, 138, 214, 225, 288, 293, 331, 351,
331, 289, 342, 331, 331, 214, 225, 288, 293, 331,
351, 331, 239, 331, 331, 331, 111, 331, 331, 74,
138, 331, 331, 331, 331, 331, 331, 331, 289, 342,
331, 331, 214, 225, 288, 293, 239, 351, 331, 331,
145, 331, 331, 88, 138, 331, 331, 331, 331, 331,
331, 331, 289, 342, 331, 331, 214, 225, 288, 293,
331, 351, 239, 331, 331, 331, 145, 331, 331, 53,
138, 331, 331, 239, 331, 331, 331, 145, 289, 342,
58, 138, 214, 225, 288, 293, 331, 351, 331, 289,
342, 331, 331, 214, 225, 288, 293, 331, 351, 331,
239, 331, 331, 331, 145, 331, 331, 89, 138, 331,
331, 331, 331, 331, 331, 331, 289, 342, 331, 331,
214, 225, 288, 293, 239, 351, 331, 331, 92, 331,
331, 52, 117, 331, 331, 331, 331, 331, 331, 331,
289, 342, 331, 331, 211, 225, 288, 293, 331, 351,
239, 331, 331, 331, 145, 331, 331, 68, 138, 331,
331, 239, 331, 331, 331, 145, 289, 342, 62, 138,
214, 225, 288, 293, 331, 351, 331, 289, 342, 331,
331, 214, 225, 288, 293, 331, 351, 331, 239, 331,
331, 331, 145, 331, 331, 70, 138, 331, 331, 331,
331, 331, 331, 331, 289, 342, 331, 331, 214, 225,
288, 293, 239, 351, 331, 331, 145, 331, 331, 73,
138, 331, 331, 331, 331, 331, 331, 331, 289, 342,
331, 331, 214, 225, 288, 293, 331, 351, 239, 331,
331, 331, 145, 331, 331, 80, 138, 331, 331, 239,
331, 331, 331, 145, 289, 342, 90, 138, 214, 225,
288, 293, 331, 351, 331, 289, 342, 331, 331, 214,
225, 288, 293, 331, 351, 331, 239, 331, 331, 331,
145, 331, 331, 55, 138, 331, 331, 331, 331, 331,
331, 331, 289, 342, 331, 331, 214, 225, 288, 293,
239, 351, 331, 331, 145, 331, 331, 66, 138, 331,
331, 331, 331, 331, 331, 331, 289, 342, 331, 331,
214, 225, 288, 293, 331, 351,
);
static public $yy_lookahead = array(
1, 38, 3, 40, 92, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, 14, 15, 105, 106, 18,
3, 21, 22, 19, 23, 24, 15, 16, 17, 30,
29, 1, 120, 3, 33, 36, 35, 92, 19, 20,
41, 42, 43, 44, 45, 46, 47, 48, 49, 50,
51, 52, 53, 54, 1, 84, 85, 86, 87, 88,
30, 31, 62, 99, 39, 120, 36, 68, 69, 70,
71, 72, 73, 74, 75, 76, 77, 78, 79, 115,
26, 28, 63, 30, 65, 60, 21, 62, 18, 36,
20, 21, 67, 39, 41, 42, 43, 44, 45, 46,
47, 48, 49, 50, 51, 52, 53, 54, 1, 55,
1, 3, 3, 18, 19, 20, 62, 114, 39, 116,
117, 68, 69, 70, 71, 72, 73, 74, 75, 76,
77, 78, 79, 111, 26, 81, 1, 30, 3, 30,
118, 62, 18, 36, 20, 36, 3, 39, 41, 42,
43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
53, 54, 1, 55, 3, 30, 1, 38, 3, 40,
62, 36, 18, 19, 20, 68, 69, 70, 71, 72,
73, 74, 75, 76, 77, 78, 79, 87, 64, 92,
93, 37, 1, 111, 3, 30, 86, 87, 88, 102,
118, 36, 41, 42, 43, 44, 45, 46, 47, 48,
49, 50, 51, 52, 53, 54, 1, 120, 3, 92,
18, 30, 20, 21, 124, 125, 100, 36, 26, 68,
69, 70, 71, 72, 73, 74, 75, 76, 77, 78,
79, 115, 26, 32, 92, 93, 1, 120, 121, 18,
39, 20, 21, 18, 102, 39, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
1, 55, 120, 62, 39, 30, 116, 117, 62, 92,
18, 36, 20, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 64, 92, 93, 116, 117,
93, 95, 96, 97, 19, 20, 102, 120, 20, 102,
41, 42, 43, 44, 45, 46, 47, 48, 49, 50,
51, 52, 53, 54, 120, 1, 64, 120, 30, 38,
18, 40, 20, 1, 36, 3, 67, 68, 69, 70,
71, 72, 73, 74, 75, 76, 77, 78, 79, 25,
65, 26, 60, 93, 60, 38, 1, 2, 66, 20,
66, 20, 102, 113, 39, 41, 42, 43, 44, 45,
46, 47, 48, 49, 50, 51, 52, 53, 54, 1,
120, 3, 93, 39, 67, 39, 18, 62, 20, 19,
2, 102, 68, 69, 70, 71, 72, 73, 74, 75,
76, 77, 78, 79, 115, 64, 62, 93, 62, 21,
19, 20, 20, 95, 96, 20, 102, 21, 22, 41,
42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
52, 53, 54, 1, 120, 3, 93, 18, 1, 20,
19, 18, 113, 20, 115, 102, 68, 69, 70, 71,
72, 73, 74, 75, 76, 77, 78, 79, 62, 25,
39, 92, 113, 120, 115, 88, 18, 90, 20, 32,
1, 117, 38, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 1, 87, 120,
93, 22, 22, 113, 39, 95, 96, 99, 99, 102,
68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
78, 79, 115, 115, 115, 93, 16, 31, 89, 30,
113, 101, 20, 65, 102, 36, 125, 41, 42, 43,
44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
54, 1, 101, 101, 93, 65, 19, 39, 19, 3,
60, 99, 99, 102, 68, 69, 70, 71, 72, 73,
74, 75, 76, 77, 78, 79, 115, 115, 115, 93,
93, 27, 37, 2, 20, 37, 20, 20, 102, 102,
99, 41, 42, 43, 44, 45, 46, 47, 48, 49,
50, 51, 52, 53, 54, 1, 115, 67, 93, 19,
2, 20, 20, 56, 20, 1, 99, 102, 68, 69,
70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
115, 81, 115, 40, 102, 114, 113, 113, 113, 98,
118, 115, 2, 30, 40, 41, 42, 43, 44, 45,
46, 47, 48, 49, 50, 51, 52, 53, 54, 1,
98, 126, 120, 126, 121, 126, 126, 126, 99, 99,
99, 126, 68, 69, 70, 71, 72, 73, 74, 75,
76, 77, 78, 79, 115, 115, 115, 126, 126, 126,
126, 126, 126, 126, 126, 126, 126, 126, 40, 41,
42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
52, 53, 54, 1, 2, 126, 126, 126, 126, 126,
126, 126, 126, 126, 126, 126, 68, 69, 70, 71,
72, 73, 74, 75, 76, 77, 78, 79, 126, 126,
126, 126, 126, 126, 126, 126, 126, 126, 126, 126,
126, 126, 22, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 1, 126, 126,
126, 126, 126, 126, 126, 126, 126, 126, 126, 126,
68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
78, 79, 62, 126, 126, 126, 126, 126, 126, 126,
126, 126, 126, 126, 126, 126, 126, 41, 42, 43,
44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
54, 126, 126, 126, 126, 126, 126, 126, 126, 126,
126, 22, 21, 126, 68, 69, 70, 71, 72, 73,
74, 75, 76, 77, 78, 79, 126, 126, 126, 41,
42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
52, 53, 54, 126, 126, 126, 126, 126, 126, 60,
126, 60, 126, 126, 126, 66, 68, 69, 70, 71,
72, 73, 74, 75, 76, 77, 78, 79, 126, 126,
126, 11, 126, 126, 126, 18, 19, 20, 18, 126,
23, 24, 126, 23, 24, 18, 29, 20, 95, 29,
33, 34, 35, 33, 37, 35, 39, 30, 126, 42,
107, 108, 126, 36, 87, 112, 126, 126, 91, 126,
126, 126, 95, 126, 57, 58, 59, 60, 61, 95,
63, 104, 65, 66, 107, 108, 109, 110, 126, 112,
126, 107, 126, 18, 19, 20, 112, 80, 23, 24,
80, 81, 82, 126, 29, 87, 126, 126, 33, 91,
35, 126, 37, 95, 39, 126, 126, 42, 126, 126,
126, 126, 104, 126, 126, 107, 108, 109, 110, 126,
112, 126, 57, 58, 59, 60, 61, 126, 63, 126,
65, 66, 67, 126, 126, 126, 3, 11, 126, 126,
126, 18, 19, 20, 18, 80, 23, 24, 126, 23,
24, 126, 29, 126, 21, 29, 33, 126, 35, 33,
37, 35, 39, 30, 126, 42, 126, 126, 126, 36,
126, 87, 39, 126, 126, 91, 126, 126, 126, 95,
57, 58, 59, 60, 61, 126, 63, 126, 65, 66,
126, 107, 108, 109, 110, 62, 112, 126, 126, 18,
19, 20, 126, 80, 23, 24, 80, 81, 82, 126,
29, 87, 126, 126, 33, 91, 35, 126, 37, 95,
39, 126, 126, 42, 126, 126, 126, 126, 126, 126,
126, 107, 108, 109, 110, 126, 112, 126, 57, 58,
59, 60, 61, 126, 63, 126, 65, 66, 1, 126,
3, 126, 18, 126, 20, 126, 126, 18, 19, 20,
126, 80, 23, 24, 30, 126, 32, 87, 29, 22,
36, 91, 33, 126, 35, 95, 37, 30, 39, 126,
126, 42, 126, 36, 126, 126, 39, 107, 108, 109,
110, 126, 112, 126, 126, 126, 57, 58, 59, 60,
61, 126, 63, 126, 65, 66, 126, 126, 126, 62,
126, 18, 126, 20, 126, 18, 19, 20, 126, 80,
23, 24, 126, 30, 126, 32, 29, 87, 126, 36,
33, 91, 35, 126, 37, 95, 39, 126, 126, 42,
126, 126, 126, 126, 126, 126, 126, 107, 108, 109,
110, 126, 112, 126, 57, 58, 59, 60, 61, 126,
63, 126, 65, 66, 126, 126, 126, 126, 126, 126,
126, 126, 126, 18, 19, 20, 126, 80, 23, 24,
126, 126, 126, 126, 29, 87, 126, 126, 33, 91,
35, 126, 37, 95, 39, 126, 126, 42, 126, 126,
126, 126, 126, 126, 126, 107, 108, 109, 110, 126,
112, 126, 57, 58, 59, 60, 61, 126, 63, 126,
65, 66, 126, 126, 126, 126, 126, 126, 126, 126,
126, 18, 19, 20, 126, 80, 23, 24, 126, 126,
126, 126, 29, 87, 126, 126, 33, 91, 35, 126,
37, 95, 39, 126, 126, 42, 126, 126, 126, 126,
126, 126, 126, 107, 108, 109, 110, 126, 112, 126,
57, 58, 59, 60, 61, 126, 63, 126, 65, 66,
126, 126, 126, 126, 126, 126, 126, 126, 126, 18,
19, 20, 126, 80, 23, 24, 126, 126, 126, 126,
29, 126, 126, 126, 33, 126, 35, 126, 37, 126,
39, 92, 93, 42, 126, 126, 126, 126, 126, 126,
126, 102, 126, 126, 105, 106, 126, 126, 57, 58,
59, 60, 61, 126, 63, 126, 65, 66, 126, 120,
126, 126, 126, 126, 126, 126, 126, 18, 19, 20,
126, 80, 23, 24, 126, 126, 126, 126, 29, 126,
126, 126, 33, 126, 35, 126, 37, 126, 39, 126,
126, 42, 126, 126, 126, 3, 126, 126, 126, 126,
126, 126, 126, 126, 126, 126, 57, 58, 59, 60,
61, 126, 63, 126, 65, 126, 126, 25, 126, 27,
28, 126, 30, 31, 92, 93, 126, 126, 36, 80,
38, 39, 40, 126, 102, 126, 126, 105, 106, 126,
87, 126, 126, 126, 91, 126, 126, 94, 95, 126,
126, 126, 120, 126, 62, 126, 103, 104, 126, 67,
107, 108, 109, 110, 126, 112, 126, 126, 126, 126,
87, 92, 93, 81, 91, 122, 123, 94, 95, 96,
126, 102, 126, 126, 105, 106, 103, 104, 126, 126,
107, 108, 109, 110, 87, 112, 126, 126, 91, 120,
126, 94, 95, 126, 126, 126, 126, 126, 126, 126,
103, 104, 126, 126, 107, 108, 109, 110, 126, 112,
87, 92, 93, 126, 91, 126, 119, 94, 95, 126,
126, 102, 126, 126, 105, 106, 103, 104, 126, 126,
107, 108, 109, 110, 126, 112, 126, 87, 126, 120,
126, 91, 119, 126, 94, 95, 126, 126, 126, 126,
126, 126, 126, 103, 104, 126, 126, 107, 108, 109,
110, 126, 112, 126, 87, 126, 126, 126, 91, 119,
126, 94, 95, 126, 126, 126, 126, 126, 126, 126,
103, 104, 126, 126, 107, 108, 109, 110, 87, 112,
126, 126, 91, 126, 126, 94, 95, 96, 126, 126,
123, 126, 126, 126, 103, 104, 126, 126, 107, 108,
109, 110, 126, 112, 87, 126, 126, 126, 91, 126,
126, 94, 95, 126, 126, 87, 126, 126, 126, 91,
103, 104, 94, 95, 107, 108, 109, 110, 126, 112,
126, 103, 104, 126, 126, 107, 108, 109, 110, 126,
112, 126, 87, 92, 93, 126, 91, 126, 126, 94,
95, 126, 126, 102, 126, 126, 105, 106, 103, 104,
126, 126, 107, 108, 109, 110, 87, 112, 126, 126,
91, 120, 126, 94, 95, 126, 126, 126, 126, 126,
126, 126, 103, 104, 126, 126, 107, 108, 109, 110,
126, 112, 87, 126, 126, 126, 91, 126, 126, 94,
95, 126, 126, 87, 126, 126, 126, 91, 103, 104,
94, 95, 107, 108, 109, 110, 126, 112, 126, 103,
104, 126, 126, 107, 108, 109, 110, 126, 112, 126,
87, 92, 93, 126, 91, 126, 126, 94, 95, 126,
126, 102, 126, 126, 105, 106, 103, 104, 126, 126,
107, 108, 109, 110, 87, 112, 126, 126, 91, 120,
126, 94, 95, 126, 126, 126, 126, 126, 126, 126,
103, 104, 126, 126, 107, 108, 109, 110, 126, 112,
87, 126, 126, 126, 91, 126, 126, 94, 95, 126,
126, 87, 126, 126, 126, 91, 103, 104, 94, 95,
107, 108, 109, 110, 126, 112, 126, 103, 104, 126,
126, 107, 108, 109, 110, 126, 112, 126, 87, 126,
126, 126, 91, 126, 126, 94, 95, 126, 126, 126,
126, 126, 126, 126, 103, 104, 126, 126, 107, 108,
109, 110, 87, 112, 126, 126, 91, 126, 126, 94,
95, 126, 126, 126, 126, 126, 126, 126, 103, 104,
126, 126, 107, 108, 109, 110, 126, 112, 87, 126,
126, 126, 91, 126, 126, 94, 95, 126, 126, 87,
126, 126, 126, 91, 103, 104, 94, 95, 107, 108,
109, 110, 126, 112, 126, 103, 104, 126, 126, 107,
108, 109, 110, 126, 112, 126, 87, 126, 126, 126,
91, 126, 126, 94, 95, 126, 126, 126, 126, 126,
126, 126, 103, 104, 126, 126, 107, 108, 109, 110,
87, 112, 126, 126, 91, 126, 126, 94, 95, 126,
126, 126, 126, 126, 126, 126, 103, 104, 126, 126,
107, 108, 109, 110, 126, 112, 87, 126, 126, 126,
91, 126, 126, 94, 95, 126, 126, 87, 126, 126,
126, 91, 103, 104, 94, 95, 107, 108, 109, 110,
126, 112, 126, 103, 104, 126, 126, 107, 108, 109,
110, 126, 112, 126, 87, 126, 126, 126, 91, 126,
126, 94, 95, 126, 126, 126, 126, 126, 126, 126,
103, 104, 126, 126, 107, 108, 109, 110, 87, 112,
126, 126, 91, 126, 126, 94, 95, 126, 126, 126,
126, 126, 126, 126, 103, 104, 126, 126, 107, 108,
109, 110, 126, 112, 87, 126, 126, 126, 91, 126,
126, 94, 95, 126, 126, 87, 126, 126, 126, 91,
103, 104, 94, 95, 107, 108, 109, 110, 126, 112,
126, 103, 104, 126, 126, 107, 108, 109, 110, 126,
112, 126, 87, 126, 126, 126, 91, 126, 126, 94,
95, 126, 126, 126, 126, 126, 126, 126, 103, 104,
126, 126, 107, 108, 109, 110, 87, 112, 126, 126,
91, 126, 126, 94, 95, 126, 126, 126, 126, 126,
126, 126, 103, 104, 126, 126, 107, 108, 109, 110,
126, 112, 87, 126, 126, 126, 91, 126, 126, 94,
95, 126, 126, 87, 126, 126, 126, 91, 103, 104,
94, 95, 107, 108, 109, 110, 126, 112, 126, 103,
104, 126, 126, 107, 108, 109, 110, 126, 112, 126,
87, 126, 126, 126, 91, 126, 126, 94, 95, 126,
126, 126, 126, 126, 126, 126, 103, 104, 126, 126,
107, 108, 109, 110, 87, 112, 126, 126, 91, 126,
126, 94, 95, 126, 126, 126, 126, 126, 126, 126,
103, 104, 126, 126, 107, 108, 109, 110, 126, 112,
87, 126, 126, 126, 91, 126, 126, 94, 95, 126,
126, 87, 126, 126, 126, 91, 103, 104, 94, 95,
107, 108, 109, 110, 126, 112, 126, 103, 104, 126,
126, 107, 108, 109, 110, 126, 112, 126, 87, 126,
126, 126, 91, 126, 126, 94, 95, 126, 126, 126,
126, 126, 126, 126, 103, 104, 126, 126, 107, 108,
109, 110, 87, 112, 126, 126, 91, 126, 126, 94,
95, 126, 126, 126, 126, 126, 126, 126, 103, 104,
126, 126, 107, 108, 109, 110, 126, 112, 87, 126,
126, 126, 91, 126, 126, 94, 95, 126, 126, 87,
126, 126, 126, 91, 103, 104, 94, 95, 107, 108,
109, 110, 126, 112, 126, 103, 104, 126, 126, 107,
108, 109, 110, 126, 112, 126, 87, 126, 126, 126,
91, 126, 126, 94, 95, 126, 126, 126, 126, 126,
126, 126, 103, 104, 126, 126, 107, 108, 109, 110,
87, 112, 126, 126, 91, 126, 126, 94, 95, 126,
126, 126, 126, 126, 126, 126, 103, 104, 126, 126,
107, 108, 109, 110, 126, 112,
2014-06-08 16:00:56 +00:00
);
const YY_SHIFT_USE_DFLT = - 38;
const YY_SHIFT_MAX = 260;
static public $yy_shift_ofst = array(
1, 1041, 1041, 1215, 983, 1215, 983, 983, 925, 867,
867, 983, 983, 983, 983, 983, 983, 983, 983, 983,
983, 983, 1273, 983, 983, 983, 983, 983, 1273, 983,
1331, 983, 983, 983, 983, 983, 983, 983, 983, 983,
983, 983, 1157, 983, 1099, 1099, 1389, 1389, 1389, 1389,
1389, 1389, - 1, 53, 107, 107, 107, 107, 107, 486,
432, 594, 648, 702, 324, 161, 215, 378, 269, 540,
756, 756, 756, 756, 756, 756, 756, 756, 756, 756,
756, 756, 756, 756, 756, 756, 756, 756, 756, 798,
798, 1107, 109, 19, 245, 1, 870, 1153, 1094, 135,
877, 877, 135, 799, 245, 285, 245, 421, 355, 986,
30, 165, 231, 202, 191, 11, 0, 396, 70, 262,
419, 419, 419, 419, 448, 437, 368, 332, 312, 391,
423, 419, 421, 419, 419, 298, 423, 298, 720, 391,
419, 419, 421, 489, 469, 604, 470, 470, 604, 604,
604, 604, 604, 604, 604, 604, - 38, 124, 95, 298,
298, 298, 298, 298, 292, 298, 298, 298, 292, 294,
292, 298, 298, 292, 298, 298, 298, 292, 235, 292,
298, 298, 294, 298, 292, 298, 298, 298, 298, 630,
604, 604, 470, 604, 630, 604, 604, 603, 603, 470,
455, 470, 500, - 38, - 38, - 38, - 38, - 38, 1432, 993,
54, 108, 154, 25, 216, 211, 325, 291, 434, 388,
317, 341, 801, - 37, 79, 346, 129, 344, 529, 490,
535, 546, 544, 480, 538, 581, 557, 455, 143, 17,
582, 395, 502, 527, 580, 571, 458, 508, 554, 547,
584, 598, 556, 530, 583, 288, 370, 339, 65, 4,
392,
2014-06-08 16:00:56 +00:00
);
const YY_REDUCE_USE_DFLT = - 89;
const YY_REDUCE_MAX = 207;
static public $yy_reduce_ofst = array(
- 29, 1393, 1527, 1551, 1473, 1423, 1500, 1447, 2193, 2167,
1703, 1665, 1639, 1588, 1727, 1676, 1615, 2055, 1577, 1967,
1940, 1991, 2017, 2028, 1929, 1903, 1791, 1764, 1815, 1841,
1879, 1852, 2079, 2204, 2255, 2292, 2343, 2319, 2281, 2231,
2116, 2105, 2143, 1753, 868, 827, 984, 944, 1040, 1100,
1216, 1158, 1469, 1279, 1699, 1611, 1469, 1372, 1419, - 88,
- 88, - 88, - 88, - 88, - 88, - 88, - 88, - 88, - 88, - 88,
- 88, - 88, - 88, - 88, - 88, - 88, - 88, - 88, - 88, - 88,
- 88, - 88, - 88, - 88, - 88, - 88, - 88, - 88, - 88, - 88,
- 88, 97, 152, 803, 204, 110, 100, 451, 505, 314,
397, 289, 207, 3, 260, 834, 343, 206, 127, 401,
- 55, - 55, 329, 126, - 55, 377, 182, 182, 329, 329,
452, 349, - 36, 453, - 36, - 55, - 36, - 55, 398, 22,
- 36, 481, 318, 399, 561, 477, 560, 422, 182, 82,
507, 559, 400, 476, 369, - 55, 182, 160, - 55, 187,
- 55, - 55, - 55, - 55, - 55, - 55, - 55, 516, 512, 522,
522, 522, 522, 522, 511, 522, 522, 522, 511, 513,
511, 522, 522, 511, 522, 522, 522, 511, 515, 511,
522, 522, 514, 522, 511, 522, 522, 522, 522, 533,
532, 532, 354, 532, 533, 532, 532, 552, 531, 354,
380, 354, 429, 442, 407, 441, 420, 250,
2014-06-08 16:00:56 +00:00
);
static public $yyExpectedTokens = array(
array(4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18, 23, 24, 29, 33, 35,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 67, 80,),
array(18, 19, 20, 23, 24, 29, 33, 34, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 34, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 66, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 80,),
array(18, 19, 20, 23, 24, 29, 33, 35, 37, 39, 42, 57, 58, 59, 60, 61, 63, 65, 80,),
array(1, 3, 30, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 28, 30, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 30, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 30, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 30, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 30, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 30, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 31, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 3, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 2, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 25, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 3, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 3, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 3, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 81,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,),
array(1, 3, 22, 30, 36, 39, 62,),
array(1, 3, 30, 36,),
array(19, 20, 63, 65,),
array(1, 30, 36,),
array(4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18, 23, 24, 29, 33, 35,),
array(11, 18, 23, 24, 29, 33, 35, 80, 81, 82,),
array(18, 20, 30, 32, 36,),
array(18, 20, 30, 32, 36,),
array(1, 3, 30, 36,),
array(18, 20, 30, 36,),
array(18, 20, 30, 36,),
array(1, 3, 30, 36,),
array(22, 60, 66,),
array(1, 30, 36,),
array(19, 20, 65,),
array(1, 30, 36,),
array(19, 39,),
array(1, 2,),
array(11, 18, 23, 24, 29, 33, 35, 80, 81, 82,),
array(1, 3, 30, 31, 36,),
array(1, 3, 30, 36,),
array(18, 20, 21, 64,),
array(18, 20, 21, 26,),
array(1, 3, 30, 36,),
array(15, 16, 17,),
array(21, 22, 62,),
array(21, 22, 62,),
array(18, 20, 21,),
array(18, 20, 64,),
array(18, 20,),
array(18, 20,),
array(18, 20,),
array(18, 20,),
array(18, 20,),
array(1, 32,),
array(18, 20,),
array(1, 3,),
array(18, 20,),
array(19, 20,),
array(18, 20,),
array(18, 20,),
array(19, 39,),
array(18, 20,),
array(18, 20,),
array(30, 36,),
array(18, 20,),
array(30, 36,),
array(22, 62,),
array(19, 20,),
array(18, 20,),
array(18, 20,),
array(19, 39,),
array(30, 36,),
array(1, 22,),
array(1,),
array(22,),
array(22,),
array(1,),
2014-06-08 16:00:56 +00:00
array(1,),
array(1,),
array(1,),
2014-06-08 16:00:56 +00:00
array(1,),
array(1,),
2014-06-08 16:00:56 +00:00
array(1,),
array(1,),
2014-06-08 16:00:56 +00:00
array(),
array(18, 20, 64,),
array(18, 19, 20,),
array(30, 36,),
array(30, 36,),
array(30, 36,),
array(30, 36,),
array(30, 36,),
array(60, 66,),
array(30, 36,),
array(30, 36,),
array(30, 36,),
array(60, 66,),
array(60, 66,),
array(60, 66,),
array(30, 36,),
array(30, 36,),
array(60, 66,),
array(30, 36,),
array(30, 36,),
array(30, 36,),
array(60, 66,),
array(18, 39,),
array(60, 66,),
array(30, 36,),
array(30, 36,),
array(60, 66,),
array(30, 36,),
array(60, 66,),
array(30, 36,),
array(30, 36,),
array(30, 36,),
array(30, 36,),
array(2,),
array(1,),
array(1,),
array(22,),
array(1,),
array(2,),
array(1,),
array(1,),
array(30,),
array(30,),
array(22,),
array(39,),
array(22,),
array(16,),
array(),
2014-06-08 16:00:56 +00:00
array(),
array(),
array(),
array(),
array(3, 25, 27, 28, 30, 31, 36, 38, 39, 40, 62, 67, 81,),
array(3, 21, 30, 36, 39, 62,),
array(26, 39, 55, 62, 81,),
array(3, 26, 39, 55, 62,),
array(18, 19, 20, 37,),
array(39, 60, 62, 67,),
array(26, 39, 55, 62,),
array(32, 39, 62,),
array(26, 39, 62,),
array(38, 40,),
array(25, 38,),
array(2, 21,),
array(38, 67,),
array(20, 64,),
array(21, 60,),
array(38, 40,),
array(39, 62,),
array(39, 62,),
array(38, 40,),
array(39, 62,),
array(19,),
array(60,),
array(37,),
array(3,),
array(27,),
array(65,),
array(37,),
array(20,),
array(20,),
array(39,),
array(3,),
array(3,),
array(20,),
array(20,),
array(20,),
array(19,),
array(19,),
array(2,),
array(65,),
array(39,),
array(20,),
array(56,),
array(20,),
array(2,),
array(20,),
array(67,),
array(40,),
array(20,),
array(19,),
array(20,),
array(21,),
array(19,),
array(20,),
2014-06-08 16:00:56 +00:00
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
2014-06-08 16:00:56 +00:00
);
static public $yy_default = array(
366, 549, 566, 566, 520, 566, 520, 520, 566, 566,
566, 566, 566, 566, 566, 566, 566, 566, 566, 566,
566, 566, 566, 566, 566, 566, 566, 566, 566, 566,
566, 566, 566, 566, 566, 566, 566, 566, 566, 566,
566, 566, 566, 566, 566, 566, 566, 566, 566, 566,
566, 566, 566, 423, 400, 423, 423, 392, 423, 428,
566, 566, 566, 566, 566, 566, 566, 566, 566, 566,
456, 433, 519, 457, 425, 551, 447, 453, 518, 405,
452, 444, 448, 449, 428, 430, 550, 552, 434, 459,
460, 471, 436, 566, 423, 363, 566, 423, 423, 443,
423, 423, 478, 532, 423, 566, 423, 566, 414, 566,
436, 436, 493, 566, 436, 566, 484, 484, 493, 493,
566, 493, 566, 566, 566, 436, 566, 436, 566, 566,
566, 566, 566, 566, 566, 402, 566, 423, 484, 566,
566, 566, 566, 423, 417, 436, 484, 529, 439, 419,
462, 463, 464, 441, 446, 440, 527, 494, 566, 409,
395, 403, 394, 404, 511, 388, 398, 399, 490, 489,
488, 412, 397, 512, 407, 387, 390, 510, 493, 491,
413, 410, 487, 389, 513, 408, 393, 411, 401, 521,
415, 418, 533, 420, 522, 478, 443, 565, 565, 507,
493, 530, 383, 526, 493, 526, 526, 493, 438, 471,
461, 461, 566, 471, 461, 471, 461, 566, 566, 505,
566, 566, 467, 566, 471, 566, 566, 479, 566, 467,
469, 566, 431, 566, 566, 566, 566, 505, 566, 566,
566, 566, 566, 566, 566, 505, 566, 531, 566, 473,
566, 505, 566, 566, 566, 566, 566, 566, 566, 566,
566, 516, 501, 515, 506, 364, 528, 498, 424, 514,
473, 502, 500, 564, 406, 435, 499, 432, 534, 465,
466, 468, 470, 524, 523, 504, 505, 525, 472, 437,
496, 497, 474, 475, 503, 495, 438, 485, 492, 422,
421, 371, 372, 373, 374, 370, 369, 365, 367, 368,
375, 376, 382, 384, 385, 381, 380, 377, 378, 379,
476, 477, 416, 560, 553, 554, 508, 561, 481, 482,
483, 555, 558, 546, 548, 547, 556, 563, 557, 559,
562, 458, 442, 451, 454, 455, 535, 450, 509, 480,
445, 486, 536, 537, 543, 544, 545, 542, 541, 538,
539, 540, 517,
2014-06-08 16:00:56 +00:00
);
const YYNOCODE = 127;
const YYSTACKDEPTH = 500;
const YYNSTATE = 363;
const YYNRULE = 203;
const YYERRORSYMBOL = 83;
const YYERRSYMDT = 'yy0';
const YYFALLBACK = 0;
2014-06-08 16:00:56 +00:00
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(
2014-06-08 16:00:56 +00:00
'$', 'VERT', 'COLON', 'RDEL',
'COMMENT', 'PHPSTARTTAG', 'PHPENDTAG', 'PHPENDSCRIPT',
'ASPSTARTTAG', 'ASPENDTAG', 'XMLTAG', 'TEXT',
'STRIPON', 'STRIPOFF', 'BLOCKSOURCE', 'LITERALSTART',
'LITERALEND', 'LITERAL', 'LDEL', 'DOLLAR',
'ID', 'EQUAL', 'PTR', 'LDELIF',
'LDELFOR', 'SEMICOLON', 'INCDEC', 'TO',
'STEP', 'LDELFOREACH', 'SPACE', 'AS',
'APTR', 'LDELSETFILTER', 'SMARTYBLOCKCHILDPARENT', 'LDELSLASH',
'ATTR', 'INTEGER', 'COMMA', 'OPENP',
'CLOSEP', 'MATH', 'UNIMATH', 'ANDSYM',
'ISIN', 'ISDIVBY', 'ISNOTDIVBY', 'ISEVEN',
'ISNOTEVEN', 'ISEVENBY', 'ISNOTEVENBY', 'ISODD',
'ISNOTODD', 'ISODDBY', 'ISNOTODDBY', 'INSTANCEOF',
'QMARK', 'NOT', 'TYPECAST', 'HEX',
'DOT', 'SINGLEQUOTESTRING', 'DOUBLECOLON', 'NAMESPACE',
'AT', 'HATCH', 'OPENB', 'CLOSEB',
'EQUALS', 'NOTEQUALS', 'GREATERTHAN', 'LESSTHAN',
'GREATEREQUAL', 'LESSEQUAL', 'IDENTITY', 'NONEIDENTITY',
'MOD', 'LAND', 'LOR', 'LXOR',
'QUOTE', 'BACKTICK', 'DOLLARID', 'error',
'start', 'template', 'template_element', 'smartytag',
'literal', 'literal_elements', 'literal_element', 'value',
'modifierlist', 'attributes', 'expr', 'varindexed',
'statement', 'statements', 'optspace', 'varvar',
'foraction', 'modparameters', 'attribute', 'ternary',
'array', 'ifcond', 'lop', 'variable',
'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(
2014-06-08 16:00:56 +00:00
"start ::= template",
"template ::= template_element",
"template ::= template template_element",
"template ::=",
"template_element ::= smartytag RDEL",
"template_element ::= COMMENT",
"template_element ::= literal",
"template_element ::= PHPSTARTTAG",
"template_element ::= PHPENDTAG",
"template_element ::= PHPENDSCRIPT",
"template_element ::= ASPSTARTTAG",
"template_element ::= ASPENDTAG",
"template_element ::= XMLTAG",
"template_element ::= 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 ::= LDEL value",
"smartytag ::= LDEL value modifierlist attributes",
"smartytag ::= LDEL value attributes",
"smartytag ::= LDEL expr modifierlist attributes",
"smartytag ::= LDEL expr attributes",
"smartytag ::= LDEL DOLLAR ID EQUAL value",
"smartytag ::= LDEL DOLLAR ID EQUAL expr",
"smartytag ::= LDEL DOLLAR ID EQUAL expr attributes",
"smartytag ::= LDEL varindexed EQUAL expr attributes",
"smartytag ::= LDEL ID attributes",
"smartytag ::= LDEL ID",
"smartytag ::= LDEL ID modifierlist attributes",
"smartytag ::= LDEL ID PTR ID attributes",
"smartytag ::= LDEL ID PTR ID modifierlist attributes",
"smartytag ::= LDELIF expr",
"smartytag ::= LDELIF expr attributes",
"smartytag ::= LDELIF statement",
"smartytag ::= LDELIF statement attributes",
"smartytag ::= LDELFOR statements SEMICOLON optspace expr SEMICOLON optspace DOLLAR varvar foraction attributes",
"foraction ::= EQUAL expr",
"foraction ::= INCDEC",
"smartytag ::= LDELFOR statement TO expr attributes",
"smartytag ::= LDELFOR statement TO expr STEP expr attributes",
"smartytag ::= LDELFOREACH attributes",
"smartytag ::= LDELFOREACH SPACE value AS DOLLAR varvar attributes",
"smartytag ::= LDELFOREACH SPACE value AS DOLLAR varvar APTR DOLLAR varvar attributes",
"smartytag ::= LDELFOREACH SPACE expr AS DOLLAR varvar attributes",
"smartytag ::= LDELFOREACH SPACE expr AS DOLLAR varvar APTR DOLLAR varvar attributes",
"smartytag ::= LDELSETFILTER ID modparameters",
"smartytag ::= LDELSETFILTER ID modparameters modifierlist",
"smartytag ::= LDEL SMARTYBLOCKCHILDPARENT",
"smartytag ::= LDELSLASH ID",
"smartytag ::= LDELSLASH ID modifierlist",
"smartytag ::= LDELSLASH ID PTR ID",
"smartytag ::= 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 ::= DOLLAR varvar EQUAL expr",
"statement ::= varindexed EQUAL expr",
"statement ::= OPENP statement CLOSEP",
"expr ::= value",
"expr ::= ternary",
"expr ::= DOLLAR ID COLON ID",
"expr ::= expr MATH value",
"expr ::= expr UNIMATH value",
"expr ::= expr ANDSYM value",
"expr ::= array",
"expr ::= expr modifierlist",
"expr ::= expr ifcond expr",
"expr ::= expr ISIN array",
"expr ::= expr ISIN value",
"expr ::= expr lop expr",
"expr ::= expr ISDIVBY expr",
"expr ::= expr ISNOTDIVBY expr",
"expr ::= expr ISEVEN",
"expr ::= expr ISNOTEVEN",
"expr ::= expr ISEVENBY expr",
"expr ::= expr ISNOTEVENBY expr",
"expr ::= expr ISODD",
"expr ::= expr ISNOTODD",
"expr ::= expr ISODDBY expr",
"expr ::= expr ISNOTODDBY expr",
"expr ::= variable INSTANCEOF ns1",
"ternary ::= OPENP expr CLOSEP QMARK DOLLAR ID 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 RDEL",
"value ::= value modifierlist",
"value ::= NAMESPACE",
"value ::= ns1 DOUBLECOLON static_class_access",
"ns1 ::= ID",
"ns1 ::= NAMESPACE",
"ns1 ::= variable",
"variable ::= varindexed",
"variable ::= DOLLAR varvar AT ID",
"variable ::= object",
"variable ::= HATCH ID HATCH",
"variable ::= HATCH ID HATCH arrayindex",
"variable ::= HATCH variable HATCH",
"variable ::= HATCH variable HATCH arrayindex",
"varindexed ::= DOLLAR varvar arrayindex",
"arrayindex ::= arrayindex indexdef",
"arrayindex ::=",
"indexdef ::= DOT DOLLAR varvar",
"indexdef ::= DOT DOLLAR 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 expr CLOSEB",
"indexdef ::= OPENB CLOSEB",
"varvar ::= varvarele",
"varvar ::= varvar varvarele",
"varvarele ::= ID",
"varvarele ::= LDEL expr RDEL",
"object ::= varindexed objectchain",
"objectchain ::= objectelement",
"objectchain ::= objectchain objectelement",
"objectelement ::= PTR ID arrayindex",
"objectelement ::= PTR DOLLAR 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 ::= DOLLAR ID 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 ::= DOLLAR ID arrayindex",
"static_class_access ::= DOLLAR ID arrayindex objectchain",
"ifcond ::= EQUALS",
"ifcond ::= NOTEQUALS",
"ifcond ::= GREATERTHAN",
"ifcond ::= LESSTHAN",
"ifcond ::= GREATEREQUAL",
"ifcond ::= LESSEQUAL",
"ifcond ::= IDENTITY",
"ifcond ::= NONEIDENTITY",
"ifcond ::= MOD",
"lop ::= LAND",
"lop ::= LOR",
"lop ::= LXOR",
"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 RDEL",
"doublequotedcontent ::= TEXT",
"optspace ::= SPACE",
2014-06-08 16:00:56 +00:00
"optspace ::=",
);
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) {
2014-06-08 16:00:56 +00:00
default:
break; /* If no destructor action specified: do nothing */
}
}
public function yy_pop_parser_stack()
{
if (!count($this->yystack)) {
return;
}
$yytos = array_pop($this->yystack);
if ($this->yyTraceFILE && $this->yyidx >= 0) {
fwrite($this->yyTraceFILE,
2014-06-08 16:00:56 +00:00
$this->yyTracePrompt . 'Popping ' . $this->yyTokenName[$yytos->major] .
"\n");
}
$yymajor = $yytos->major;
self::yy_destructor($yymajor, $yytos->minor);
2014-06-08 16:00:56 +00:00
$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)
{
$state = $this->yystack[$this->yyidx]->stateno;
$expected = self::$yyExpectedTokens[$state];
if (in_array($token, self::$yyExpectedTokens[$state], true)) {
return $expected;
}
$stack = $this->yystack;
$yyidx = $this->yyidx;
do {
$yyact = $this->yy_find_shift_action($token);
if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
// reduce action
$done = 0;
do {
2014-06-08 16:00:56 +00:00
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])) {
2014-06-08 16:00:56 +00:00
$expected = array_merge($expected, self::$yyExpectedTokens[$nextstate]);
if (in_array($token,
self::$yyExpectedTokens[$nextstate], true)) {
$this->yyidx = $yyidx;
$this->yystack = $stack;
return array_unique($expected);
}
}
if ($nextstate < self::YYNSTATE) {
// we need to shift a non-terminal
2014-06-08 16:00:56 +00:00
$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);
2014-06-08 16:00:56 +00:00
$this->yyidx = $yyidx;
$this->yystack = $stack;
return array_unique($expected);
}
public function yy_is_expected_token($token)
{
if ($token === 0) {
return true; // 0 is not part of this
}
$state = $this->yystack[$this->yyidx]->stateno;
if (in_array($token, self::$yyExpectedTokens[$state], true)) {
return true;
}
$stack = $this->yystack;
$yyidx = $this->yyidx;
do {
$yyact = $this->yy_find_shift_action($token);
if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
// reduce action
$done = 0;
do {
2014-06-08 16:00:56 +00:00
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(self::$yyExpectedTokens[$nextstate]) &&
2014-06-08 16:00:56 +00:00
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
2014-06-08 16:00:56 +00:00
$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;
}
2014-06-08 16:00:56 +00:00
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 ||
2014-06-08 16:00:56 +00:00
self::$yy_lookahead[$i] != $iLookAhead
) {
if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback)
2014-06-08 16:00:56 +00:00
&& ($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 ||
2014-06-08 16:00:56 +00:00
self::$yy_lookahead[$i] != $iLookAhead
) {
return self::$yy_default[$stateno];
} else {
return self::$yy_action[$i];
}
}
public function yy_shift($yyNewState, $yyMajor, $yypMinor)
{
2014-06-08 16:00:56 +00:00
$this->yyidx ++;
if ($this->yyidx >= self::YYSTACKDEPTH) {
2014-06-08 16:00:56 +00:00
$this->yyidx --;
if ($this->yyTraceFILE) {
fprintf($this->yyTraceFILE, "%sStack Overflow!\n", $this->yyTracePrompt);
}
while ($this->yyidx >= 0) {
$this->yy_pop_parser_stack();
}
#line 215 "../smarty/lexer/smarty_internal_templateparser.y"
2014-10-18 00:18:11 +02:00
$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;
array_push($this->yystack, $yytos);
if ($this->yyTraceFILE && $this->yyidx > 0) {
fprintf($this->yyTraceFILE, "%sShift %d\n", $this->yyTracePrompt,
2014-06-08 16:00:56 +00:00
$yyNewState);
fprintf($this->yyTraceFILE, "%sStack:", $this->yyTracePrompt);
2014-06-08 16:00:56 +00:00
for ($i = 1; $i <= $this->yyidx; $i ++) {
fprintf($this->yyTraceFILE, " %s",
2014-06-08 16:00:56 +00:00
$this->yyTokenName[$this->yystack[$i]->major]);
}
2014-06-08 16:00:56 +00:00
fwrite($this->yyTraceFILE, "\n");
}
}
public static $yyRuleInfo = array(
array(0 => 84, 1 => 1),
array(0 => 85, 1 => 1),
array(0 => 85, 1 => 2),
array(0 => 85, 1 => 0),
array(0 => 86, 1 => 2),
array(0 => 86, 1 => 1),
array(0 => 86, 1 => 1),
array(0 => 86, 1 => 1),
array(0 => 86, 1 => 1),
array(0 => 86, 1 => 1),
array(0 => 86, 1 => 1),
array(0 => 86, 1 => 1),
array(0 => 86, 1 => 1),
array(0 => 86, 1 => 1),
array(0 => 86, 1 => 1),
array(0 => 86, 1 => 1),
array(0 => 86, 1 => 1),
array(0 => 88, 1 => 2),
array(0 => 88, 1 => 3),
array(0 => 89, 1 => 2),
array(0 => 89, 1 => 0),
array(0 => 90, 1 => 1),
array(0 => 90, 1 => 1),
array(0 => 87, 1 => 2),
array(0 => 87, 1 => 4),
array(0 => 87, 1 => 3),
array(0 => 87, 1 => 4),
array(0 => 87, 1 => 3),
array(0 => 87, 1 => 5),
array(0 => 87, 1 => 5),
array(0 => 87, 1 => 6),
array(0 => 87, 1 => 5),
array(0 => 87, 1 => 3),
array(0 => 87, 1 => 2),
array(0 => 87, 1 => 4),
array(0 => 87, 1 => 5),
array(0 => 87, 1 => 6),
array(0 => 87, 1 => 2),
array(0 => 87, 1 => 3),
array(0 => 87, 1 => 2),
array(0 => 87, 1 => 3),
array(0 => 87, 1 => 11),
array(0 => 100, 1 => 2),
array(0 => 100, 1 => 1),
array(0 => 87, 1 => 5),
array(0 => 87, 1 => 7),
array(0 => 87, 1 => 2),
array(0 => 87, 1 => 7),
array(0 => 87, 1 => 10),
array(0 => 87, 1 => 7),
array(0 => 87, 1 => 10),
array(0 => 87, 1 => 3),
array(0 => 87, 1 => 4),
array(0 => 87, 1 => 2),
array(0 => 87, 1 => 2),
array(0 => 87, 1 => 3),
array(0 => 87, 1 => 4),
array(0 => 87, 1 => 5),
array(0 => 93, 1 => 2),
array(0 => 93, 1 => 1),
array(0 => 93, 1 => 0),
array(0 => 102, 1 => 4),
array(0 => 102, 1 => 2),
array(0 => 102, 1 => 2),
array(0 => 102, 1 => 2),
array(0 => 102, 1 => 2),
array(0 => 102, 1 => 2),
array(0 => 102, 1 => 4),
array(0 => 97, 1 => 1),
array(0 => 97, 1 => 3),
array(0 => 96, 1 => 4),
array(0 => 96, 1 => 3),
array(0 => 96, 1 => 3),
array(0 => 94, 1 => 1),
array(0 => 94, 1 => 1),
array(0 => 94, 1 => 4),
array(0 => 94, 1 => 3),
array(0 => 94, 1 => 3),
array(0 => 94, 1 => 3),
array(0 => 94, 1 => 1),
array(0 => 94, 1 => 2),
array(0 => 94, 1 => 3),
array(0 => 94, 1 => 3),
array(0 => 94, 1 => 3),
array(0 => 94, 1 => 3),
array(0 => 94, 1 => 3),
array(0 => 94, 1 => 3),
array(0 => 94, 1 => 2),
array(0 => 94, 1 => 2),
array(0 => 94, 1 => 3),
array(0 => 94, 1 => 3),
array(0 => 94, 1 => 2),
array(0 => 94, 1 => 2),
array(0 => 94, 1 => 3),
array(0 => 94, 1 => 3),
array(0 => 94, 1 => 3),
array(0 => 103, 1 => 8),
array(0 => 103, 1 => 7),
array(0 => 91, 1 => 1),
array(0 => 91, 1 => 2),
array(0 => 91, 1 => 2),
array(0 => 91, 1 => 2),
array(0 => 91, 1 => 2),
array(0 => 91, 1 => 1),
array(0 => 91, 1 => 1),
array(0 => 91, 1 => 3),
array(0 => 91, 1 => 2),
array(0 => 91, 1 => 2),
array(0 => 91, 1 => 1),
array(0 => 91, 1 => 1),
array(0 => 91, 1 => 3),
array(0 => 91, 1 => 1),
array(0 => 91, 1 => 1),
array(0 => 91, 1 => 3),
array(0 => 91, 1 => 2),
array(0 => 91, 1 => 2),
array(0 => 91, 1 => 1),
array(0 => 91, 1 => 3),
array(0 => 108, 1 => 1),
array(0 => 108, 1 => 1),
array(0 => 108, 1 => 1),
array(0 => 107, 1 => 1),
array(0 => 107, 1 => 4),
array(0 => 107, 1 => 1),
array(0 => 107, 1 => 3),
array(0 => 107, 1 => 4),
array(0 => 107, 1 => 3),
array(0 => 107, 1 => 4),
array(0 => 95, 1 => 3),
array(0 => 113, 1 => 2),
array(0 => 113, 1 => 0),
array(0 => 114, 1 => 3),
array(0 => 114, 1 => 5),
array(0 => 114, 1 => 2),
array(0 => 114, 1 => 2),
array(0 => 114, 1 => 4),
array(0 => 114, 1 => 3),
array(0 => 114, 1 => 5),
array(0 => 114, 1 => 3),
array(0 => 114, 1 => 2),
array(0 => 99, 1 => 1),
array(0 => 99, 1 => 2),
array(0 => 115, 1 => 1),
array(0 => 115, 1 => 3),
array(0 => 112, 1 => 2),
array(0 => 116, 1 => 1),
array(0 => 116, 1 => 2),
array(0 => 117, 1 => 3),
array(0 => 117, 1 => 4),
array(0 => 117, 1 => 5),
array(0 => 117, 1 => 6),
array(0 => 117, 1 => 2),
array(0 => 109, 1 => 4),
array(0 => 118, 1 => 4),
array(0 => 118, 1 => 5),
array(0 => 119, 1 => 3),
array(0 => 119, 1 => 1),
array(0 => 119, 1 => 0),
array(0 => 92, 1 => 3),
array(0 => 92, 1 => 2),
array(0 => 120, 1 => 3),
array(0 => 120, 1 => 2),
array(0 => 101, 1 => 2),
array(0 => 101, 1 => 0),
array(0 => 121, 1 => 2),
array(0 => 121, 1 => 2),
array(0 => 111, 1 => 1),
array(0 => 111, 1 => 2),
array(0 => 111, 1 => 1),
array(0 => 111, 1 => 3),
array(0 => 111, 1 => 4),
array(0 => 105, 1 => 1),
array(0 => 105, 1 => 1),
array(0 => 105, 1 => 1),
array(0 => 105, 1 => 1),
array(0 => 105, 1 => 1),
array(0 => 105, 1 => 1),
array(0 => 105, 1 => 1),
array(0 => 105, 1 => 1),
array(0 => 105, 1 => 1),
array(0 => 106, 1 => 1),
array(0 => 106, 1 => 1),
array(0 => 106, 1 => 1),
array(0 => 104, 1 => 3),
array(0 => 122, 1 => 1),
array(0 => 122, 1 => 3),
array(0 => 122, 1 => 0),
array(0 => 123, 1 => 3),
array(0 => 123, 1 => 3),
array(0 => 123, 1 => 1),
array(0 => 110, 1 => 2),
array(0 => 110, 1 => 3),
array(0 => 124, 1 => 2),
array(0 => 124, 1 => 1),
array(0 => 125, 1 => 3),
array(0 => 125, 1 => 3),
array(0 => 125, 1 => 1),
array(0 => 125, 1 => 3),
array(0 => 125, 1 => 3),
array(0 => 125, 1 => 2),
array(0 => 125, 1 => 1),
array(0 => 98, 1 => 1),
array(0 => 98, 1 => 0),
);
public static $yyReduceMap = array(
2014-06-08 16:00:56 +00:00
0 => 0,
1 => 1,
2 => 2,
2014-06-08 16:00:56 +00:00
4 => 4,
5 => 5,
6 => 6,
7 => 7,
8 => 8,
9 => 9,
10 => 10,
11 => 11,
12 => 12,
13 => 13,
14 => 14,
15 => 15,
16 => 16,
17 => 17,
20 => 17,
202 => 17,
2014-06-08 16:00:56 +00:00
18 => 18,
72 => 18,
2014-06-08 16:00:56 +00:00
19 => 19,
99 => 19,
101 => 19,
102 => 19,
129 => 19,
167 => 19,
21 => 21,
22 => 21,
43 => 21,
65 => 21,
66 => 21,
73 => 21,
74 => 21,
79 => 21,
98 => 21,
103 => 21,
104 => 21,
109 => 21,
111 => 21,
112 => 21,
116 => 21,
118 => 21,
119 => 21,
120 => 21,
123 => 21,
140 => 21,
166 => 21,
168 => 21,
184 => 21,
189 => 21,
201 => 21,
23 => 23,
24 => 24,
25 => 25,
27 => 25,
2014-06-08 16:00:56 +00:00
26 => 26,
28 => 28,
29 => 28,
2014-06-08 16:00:56 +00:00
30 => 30,
31 => 31,
32 => 32,
33 => 33,
34 => 34,
35 => 35,
2014-06-08 16:00:56 +00:00
36 => 36,
37 => 37,
38 => 38,
40 => 38,
2014-06-08 16:00:56 +00:00
39 => 39,
41 => 41,
42 => 42,
44 => 44,
45 => 45,
46 => 46,
2014-06-08 16:00:56 +00:00
47 => 47,
49 => 47,
48 => 48,
50 => 48,
2014-06-08 16:00:56 +00:00
51 => 51,
52 => 52,
53 => 53,
54 => 54,
55 => 55,
56 => 56,
2014-06-08 16:00:56 +00:00
57 => 57,
58 => 58,
59 => 59,
68 => 59,
156 => 59,
160 => 59,
164 => 59,
165 => 59,
2014-06-08 16:00:56 +00:00
60 => 60,
157 => 60,
163 => 60,
2014-06-08 16:00:56 +00:00
61 => 61,
62 => 62,
63 => 62,
2014-06-08 16:00:56 +00:00
64 => 64,
67 => 67,
69 => 69,
70 => 70,
71 => 70,
2014-06-08 16:00:56 +00:00
75 => 75,
76 => 76,
77 => 76,
78 => 76,
80 => 80,
115 => 80,
2014-06-08 16:00:56 +00:00
81 => 81,
84 => 81,
82 => 82,
83 => 83,
85 => 85,
2014-06-08 16:00:56 +00:00
86 => 86,
87 => 87,
92 => 87,
2014-06-08 16:00:56 +00:00
88 => 88,
91 => 88,
89 => 89,
94 => 89,
90 => 90,
93 => 90,
95 => 95,
96 => 96,
97 => 97,
100 => 100,
105 => 105,
106 => 106,
107 => 107,
108 => 108,
110 => 110,
113 => 113,
114 => 114,
117 => 117,
121 => 121,
122 => 122,
124 => 124,
125 => 125,
126 => 126,
127 => 127,
128 => 128,
130 => 130,
186 => 130,
131 => 131,
132 => 132,
133 => 133,
134 => 134,
135 => 135,
138 => 135,
136 => 136,
137 => 137,
139 => 139,
141 => 141,
142 => 142,
143 => 143,
144 => 144,
145 => 145,
146 => 146,
147 => 147,
148 => 148,
149 => 149,
150 => 150,
151 => 151,
152 => 152,
153 => 153,
154 => 154,
155 => 155,
158 => 158,
159 => 159,
161 => 161,
162 => 162,
169 => 169,
170 => 170,
171 => 171,
172 => 172,
173 => 173,
174 => 174,
175 => 175,
176 => 176,
177 => 177,
178 => 178,
179 => 179,
180 => 180,
181 => 181,
182 => 182,
183 => 183,
185 => 185,
187 => 187,
188 => 188,
190 => 190,
191 => 191,
192 => 192,
193 => 193,
194 => 194,
195 => 194,
197 => 194,
196 => 196,
198 => 198,
199 => 199,
200 => 200,
);
2014-06-08 16:00:56 +00:00
#line 226 "../smarty/lexer/smarty_internal_templateparser.y"
2014-06-08 16:00:56 +00:00
function yy_r0()
{
$this->_retvalue = $this->root_buffer->to_smarty_php();
}
#line 234 "../smarty/lexer/smarty_internal_templateparser.y"
2014-06-08 16:00:56 +00:00
function yy_r1()
{
if ($this->yystack[$this->yyidx + 0]->minor != null) {
$this->current_buffer->append_subtree($this->yystack[$this->yyidx + 0]->minor);
2011-09-16 14:19:56 +00:00
}
}
#line 241 "../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 255 "../smarty/lexer/smarty_internal_templateparser.y"
2014-06-08 16:00:56 +00:00
function yy_r4()
{
if ($this->compiler->has_code) {
$tmp = '';
foreach ($this->compiler->prefix_code as $code) {
$tmp .= $code;
}
$this->compiler->prefix_code = array();
$this->_retvalue = new _smarty_tag($this, $this->compiler->processNocacheCode($tmp . $this->yystack[$this->yyidx + - 1]->minor, true));
} else {
$this->_retvalue = null;
}
$this->compiler->has_variable_string = false;
$this->block_nesting_level = count($this->compiler->_tag_stack);
2011-09-16 14:19:56 +00:00
}
#line 267 "../smarty/lexer/smarty_internal_templateparser.y"
2014-06-08 16:00:56 +00:00
function yy_r5()
{
$this->_retvalue = null;
2011-09-16 14:19:56 +00:00
}
#line 272 "../smarty/lexer/smarty_internal_templateparser.y"
2014-06-08 16:00:56 +00:00
function yy_r6()
{
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
2011-09-16 14:19:56 +00:00
}
#line 277 "../smarty/lexer/smarty_internal_templateparser.y"
2014-06-08 16:00:56 +00:00
function yy_r7()
{
if (strpos($this->yystack[$this->yyidx + 0]->minor, '<s') === 0) {
$this->lex->is_phpScript = true;
}
2014-06-08 16:00:56 +00:00
if ($this->php_handling == Smarty::PHP_PASSTHRU) {
if ($this->lex->is_phpScript) {
$s = addcslashes($this->yystack[$this->yyidx + 0]->minor, "'");
$this->_retvalue = new _smarty_text($this, $s);
} else {
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
}
2014-06-08 16:00:56 +00:00
} elseif ($this->php_handling == Smarty::PHP_QUOTE) {
$this->_retvalue = new _smarty_text($this, htmlspecialchars($this->yystack[$this->yyidx + 0]->minor, ENT_QUOTES));
2014-06-08 16:00:56 +00:00
} elseif ($this->php_handling == Smarty::PHP_ALLOW) {
2011-09-16 14:19:56 +00:00
if (!($this->smarty instanceof SmartyBC)) {
2014-06-08 16:00:56 +00:00
$this->compiler->trigger_template_error(self::Err3);
2011-09-16 14:19:56 +00:00
}
$this->_retvalue = new _smarty_tag($this, $this->compiler->processNocacheCode('<?php ', true));
2014-06-08 16:00:56 +00:00
} elseif ($this->php_handling == Smarty::PHP_REMOVE) {
$this->_retvalue = null;
2011-09-16 14:19:56 +00:00
}
2014-06-08 16:00:56 +00:00
}
#line 301 "../smarty/lexer/smarty_internal_templateparser.y"
2014-06-08 16:00:56 +00:00
function yy_r8()
{
if ($this->is_xml) {
$this->compiler->tag_nocache = true;
$this->is_xml = false;
$save = $this->template->has_nocache_code;
$this->_retvalue = new _smarty_tag($this, $this->compiler->processNocacheCode("<?php echo '?>';?>\n", $this->compiler, true));
2014-06-08 16:00:56 +00:00
$this->template->has_nocache_code = $save;
} elseif ($this->php_handling == Smarty::PHP_PASSTHRU) {
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
2014-06-08 16:00:56 +00:00
} elseif ($this->php_handling == Smarty::PHP_QUOTE) {
$this->_retvalue = new _smarty_text($this, htmlspecialchars('?>', ENT_QUOTES));
} elseif ($this->php_handling == Smarty::PHP_ALLOW) {
$this->_retvalue = new _smarty_tag($this, $this->compiler->processNocacheCode('?>', true));
2014-06-08 16:00:56 +00:00
} elseif ($this->php_handling == Smarty::PHP_REMOVE) {
$this->_retvalue = null;
}
2011-09-16 14:19:56 +00:00
}
#line 319 "../smarty/lexer/smarty_internal_templateparser.y"
2014-06-08 16:00:56 +00:00
function yy_r9()
{
if (!$this->lex->is_phpScript) {
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
} else {
$this->lex->is_phpScript = false;
if ($this->php_handling == Smarty::PHP_PASSTHRU) {
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
} elseif ($this->php_handling == Smarty::PHP_QUOTE) {
$this->_retvalue = new _smarty_text($this, htmlspecialchars($this->yystack[$this->yyidx + 0]->minor, ENT_QUOTES));
} elseif ($this->php_handling == Smarty::PHP_ALLOW) {
$this->_retvalue = new _smarty_tag($this, $this->compiler->processNocacheCode('?>', true));
} elseif ($this->php_handling == Smarty::PHP_REMOVE) {
$this->_retvalue = null;
}
}
}
#line 337 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r10()
2014-06-08 16:00:56 +00:00
{
if ($this->php_handling == Smarty::PHP_PASSTHRU) {
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
2014-06-08 16:00:56 +00:00
} elseif ($this->php_handling == Smarty::PHP_QUOTE) {
$this->_retvalue = new _smarty_text($this, htmlspecialchars($this->yystack[$this->yyidx + 0]->minor, ENT_QUOTES));
} elseif ($this->php_handling == Smarty::PHP_ALLOW) {
if ($this->asp_tags) {
if (!($this->smarty instanceof SmartyBC)) {
$this->compiler->trigger_template_error(self::Err3);
}
$this->_retvalue = new _smarty_tag($this, $this->compiler->processNocacheCode('<%', true));
2014-06-08 16:00:56 +00:00
} else {
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
2014-06-08 16:00:56 +00:00
}
} elseif ($this->php_handling == Smarty::PHP_REMOVE) {
if ($this->asp_tags) {
$this->_retvalue = null;
} else {
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
2014-06-08 16:00:56 +00:00
}
}
}
#line 361 "../smarty/lexer/smarty_internal_templateparser.y"
2014-10-18 00:18:11 +02:00
function yy_r11()
{
if ($this->php_handling == Smarty::PHP_PASSTHRU) {
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
2014-06-08 16:00:56 +00:00
} elseif ($this->php_handling == Smarty::PHP_QUOTE) {
$this->_retvalue = new _smarty_text($this, htmlspecialchars('%>', ENT_QUOTES));
} elseif ($this->php_handling == Smarty::PHP_ALLOW) {
if ($this->asp_tags) {
$this->_retvalue = new _smarty_tag($this, $this->compiler->processNocacheCode('%>', true));
2014-06-08 16:00:56 +00:00
} else {
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
2014-06-08 16:00:56 +00:00
}
} elseif ($this->php_handling == Smarty::PHP_REMOVE) {
if ($this->asp_tags) {
$this->_retvalue = null;
} else {
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
2014-10-18 00:18:11 +02:00
}
}
}
#line 383 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r12()
2014-06-08 16:00:56 +00:00
{
$this->compiler->tag_nocache = true;
$this->is_xml = true;
$save = $this->template->has_nocache_code;
$this->_retvalue = new _smarty_tag($this, $this->compiler->processNocacheCode("<?php echo '<?xml';?>", $this->compiler, true));
2014-06-08 16:00:56 +00:00
$this->template->has_nocache_code = $save;
}
#line 392 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r13()
2014-06-08 16:00:56 +00:00
{
if ($this->strip) {
$this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor));
} else {
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
}
2011-09-16 14:19:56 +00:00
}
#line 401 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r14()
2014-06-08 16:00:56 +00:00
{
$this->strip = true;
2011-09-16 14:19:56 +00:00
}
#line 405 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r15()
2014-06-08 16:00:56 +00:00
{
$this->strip = false;
2011-09-16 14:19:56 +00:00
}
#line 409 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r16()
2014-06-08 16:00:56 +00:00
{
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);
}
2011-09-16 14:19:56 +00:00
}
#line 418 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r17()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '';
}
#line 422 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r18()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor;
}
#line 426 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r19()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
}
#line 434 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r21()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;
}
#line 447 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r23()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->compiler->compileTag('private_print_expression', array(), array('value' => $this->yystack[$this->yyidx + 0]->minor));
}
#line 451 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r24()
2014-06-08 16:00:56 +00:00
{
$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 455 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r25()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 1]->minor));
}
#line 459 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r26()
2014-06-08 16:00:56 +00:00
{
$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 472 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r28()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->compiler->compileTag('assign', array(array('value' => $this->yystack[$this->yyidx + 0]->minor), array('var' => "'" . $this->yystack[$this->yyidx + - 2]->minor . "'")));
}
#line 480 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r30()
2014-06-08 16:00:56 +00:00
{
$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 . "'")), $this->yystack[$this->yyidx + 0]->minor));
}
#line 484 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r31()
2014-06-08 16:00:56 +00:00
{
$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 489 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r32()
2014-06-08 16:00:56 +00:00
{
if (defined($this->yystack[$this->yyidx + - 1]->minor)) {
$this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 1]->minor));
} else {
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + - 1]->minor, $this->yystack[$this->yyidx + 0]->minor);
}
2014-06-08 16:00:56 +00:00
}
#line 496 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r33()
2014-06-08 16:00:56 +00:00
{
if (defined($this->yystack[$this->yyidx + 0]->minor)) {
$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());
}
2014-06-08 16:00:56 +00:00
}
#line 506 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r34()
2014-06-08 16:00:56 +00:00
{
if (defined($this->yystack[$this->yyidx + - 2]->minor)) {
$this->_retvalue = $this->compiler->compileTag('private_print_expression', $this->yystack[$this->yyidx + 0]->minor, array('value' => $this->yystack[$this->yyidx + - 2]->minor, 'modifierlist' => $this->yystack[$this->yyidx + - 1]->minor));
} else {
$this->_retvalue = '<?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()')) . ';?>';
}
2014-06-08 16:00:56 +00:00
}
#line 516 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r35()
2014-06-08 16:00:56 +00:00
{
$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));
2014-06-08 16:00:56 +00:00
}
#line 521 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r36()
2014-06-08 16:00:56 +00:00
{
$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()')) . ';?>';
2014-06-08 16:00:56 +00:00
}
#line 527 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r37()
2014-06-08 16:00:56 +00:00
{
$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 532 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r38()
2014-06-08 16:00:56 +00:00
{
$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 537 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r39()
2014-06-08 16:00:56 +00:00
{
$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 548 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r41()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->compiler->compileTag('for', array_merge($this->yystack[$this->yyidx + 0]->minor, array(array('start' => $this->yystack[$this->yyidx + - 9]->minor), array('ifexp' => $this->yystack[$this->yyidx + - 6]->minor), array('var' => $this->yystack[$this->yyidx + - 2]->minor), array('step' => $this->yystack[$this->yyidx + - 1]->minor))), 1);
}
#line 552 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r42()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '=' . $this->yystack[$this->yyidx + 0]->minor;
}
#line 560 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r44()
2014-06-08 16:00:56 +00:00
{
$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 564 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r45()
2014-06-08 16:00:56 +00:00
{
$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 569 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r46()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->compiler->compileTag('foreach', $this->yystack[$this->yyidx + 0]->minor);
}
#line 574 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r47()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->compiler->compileTag('foreach', array_merge($this->yystack[$this->yyidx + 0]->minor, array(array('from' => $this->yystack[$this->yyidx + - 4]->minor), array('item' => $this->yystack[$this->yyidx + - 1]->minor))));
}
#line 578 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r48()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->compiler->compileTag('foreach', array_merge($this->yystack[$this->yyidx + 0]->minor, array(array('from' => $this->yystack[$this->yyidx + - 7]->minor), array('item' => $this->yystack[$this->yyidx + - 1]->minor), array('key' => $this->yystack[$this->yyidx + - 4]->minor))));
}
#line 591 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r51()
2014-06-08 16:00:56 +00:00
{
$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 595 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r52()
2014-06-08 16:00:56 +00:00
{
$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 600 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r53()
2014-06-08 16:00:56 +00:00
{
$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 613 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r54()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor . 'close', array());
}
#line 617 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r55()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + - 1]->minor . 'close', array(), array('modifier_list' => $this->yystack[$this->yyidx + 0]->minor));
}
#line 622 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r56()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + - 2]->minor . 'close', array(), array('object_method' => $this->yystack[$this->yyidx + 0]->minor));
}
#line 626 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r57()
2014-06-08 16:00:56 +00:00
{
$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 634 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r58()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor;
$this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor;
}
#line 640 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r59()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor);
}
#line 645 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r60()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = array();
}
#line 650 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r61()
2014-06-08 16:00:56 +00:00
{
if (preg_match('~^true$~i', $this->yystack[$this->yyidx + 0]->minor)) {
$this->_retvalue = array($this->yystack[$this->yyidx + - 2]->minor => 'true');
} elseif (preg_match('~^false$~i', $this->yystack[$this->yyidx + 0]->minor)) {
$this->_retvalue = array($this->yystack[$this->yyidx + - 2]->minor => 'false');
} elseif (preg_match('~^null$~i', $this->yystack[$this->yyidx + 0]->minor)) {
$this->_retvalue = array($this->yystack[$this->yyidx + - 2]->minor => 'null');
} else {
2014-06-08 16:00:56 +00:00
$this->_retvalue = array($this->yystack[$this->yyidx + - 2]->minor => "'" . $this->yystack[$this->yyidx + 0]->minor . "'");
}
}
#line 662 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r62()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = array(trim($this->yystack[$this->yyidx + - 1]->minor, " =\n\r\t") => $this->yystack[$this->yyidx + 0]->minor);
}
#line 670 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r64()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = "'" . $this->yystack[$this->yyidx + 0]->minor . "'";
}
#line 682 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r67()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = array($this->yystack[$this->yyidx + - 2]->minor => $this->yystack[$this->yyidx + 0]->minor);
}
#line 695 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r69()
2014-06-08 16:00:56 +00:00
{
$this->yystack[$this->yyidx + - 2]->minor[] = $this->yystack[$this->yyidx + 0]->minor;
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor;
}
#line 700 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r70()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = array('var' => $this->yystack[$this->yyidx + - 2]->minor, 'value' => $this->yystack[$this->yyidx + 0]->minor);
}
#line 728 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r75()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '$_smarty_tpl->getStreamVariable(\'' . $this->yystack[$this->yyidx + - 2]->minor . '://' . $this->yystack[$this->yyidx + 0]->minor . '\')';
}
#line 733 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r76()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . trim($this->yystack[$this->yyidx + - 1]->minor) . $this->yystack[$this->yyidx + 0]->minor;
}
#line 752 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r80()
{
2014-06-08 16:00:56 +00:00
$this->_retvalue = $this->compiler->compileTag('private_modifier', array(), array('value' => $this->yystack[$this->yyidx + - 1]->minor, 'modifierlist' => $this->yystack[$this->yyidx + 0]->minor));
}
#line 758 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r81()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
}
#line 762 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r82()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = 'in_array(' . $this->yystack[$this->yyidx + - 2]->minor . ',' . $this->yystack[$this->yyidx + 0]->minor . ')';
}
#line 766 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r83()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = 'in_array(' . $this->yystack[$this->yyidx + - 2]->minor . ',(array)' . $this->yystack[$this->yyidx + 0]->minor . ')';
}
#line 774 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r85()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '!(' . $this->yystack[$this->yyidx + - 2]->minor . ' % ' . $this->yystack[$this->yyidx + 0]->minor . ')';
}
#line 778 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r86()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '(' . $this->yystack[$this->yyidx + - 2]->minor . ' % ' . $this->yystack[$this->yyidx + 0]->minor . ')';
}
#line 782 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r87()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '!(1 & ' . $this->yystack[$this->yyidx + - 1]->minor . ')';
}
#line 786 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r88()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '(1 & ' . $this->yystack[$this->yyidx + - 1]->minor . ')';
}
#line 790 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r89()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '!(1 & ' . $this->yystack[$this->yyidx + - 2]->minor . ' / ' . $this->yystack[$this->yyidx + 0]->minor . ')';
}
#line 794 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r90()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '(1 & ' . $this->yystack[$this->yyidx + - 2]->minor . ' / ' . $this->yystack[$this->yyidx + 0]->minor . ')';
}
#line 814 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r95()
2014-06-08 16:00:56 +00:00
{
// self::$prefix_number++;
// $this->compiler->prefix_code[] = '<?php $_tmp'.self::$prefix_number.'='.$this->yystack[$this->yyidx + -2]->minor.';? >';
// $this->_retvalue = '$_tmp'.self::$prefix_number.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor;
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
2014-06-08 16:00:56 +00:00
}
#line 825 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r96()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + - 6]->minor . ' ? ' . $this->compileVariable("'" . $this->yystack[$this->yyidx + - 2]->minor . "'") . ' : ' . $this->yystack[$this->yyidx + 0]->minor;
}
#line 829 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r97()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + - 5]->minor . ' ? ' . $this->yystack[$this->yyidx + - 2]->minor . ' : ' . $this->yystack[$this->yyidx + 0]->minor;
}
#line 844 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r100()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '!' . $this->yystack[$this->yyidx + 0]->minor;
}
#line 865 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r105()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . '.' . $this->yystack[$this->yyidx + 0]->minor;
}
#line 869 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r106()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . '.';
}
#line 873 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r107()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '.' . $this->yystack[$this->yyidx + 0]->minor;
}
#line 878 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r108()
2014-06-08 16:00:56 +00:00
{
if (defined($this->yystack[$this->yyidx + 0]->minor)) {
$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;
2014-06-08 16:00:56 +00:00
} else {
$this->_retvalue = "'" . $this->yystack[$this->yyidx + 0]->minor . "'";
}
}
#line 892 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r110()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = "(" . $this->yystack[$this->yyidx + - 1]->minor . ")";
}
#line 907 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r113()
2014-10-18 00:18:11 +02:00
{
self::$prefix_number ++;
2014-10-18 00:18:11 +02:00
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']) . ';?>';
2014-10-18 00:18:11 +02:00
} else {
$this->compiler->prefix_code[] = '<?php $_tmp' . self::$prefix_number . ' = ' . $this->compileVariable($this->yystack[$this->yyidx + - 2]->minor['var']) . $this->yystack[$this->yyidx + - 2]->minor['smarty_internal_index'] . ';?>';
2014-10-18 00:18:11 +02:00
}
$this->_retvalue = '$_tmp' . self::$prefix_number . '::' . $this->yystack[$this->yyidx + 0]->minor;
2014-10-18 00:18:11 +02:00
}
#line 919 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r114()
2014-06-08 16:00:56 +00:00
{
self::$prefix_number ++;
$this->compiler->prefix_code[] = '<?php ob_start();?>' . $this->yystack[$this->yyidx + - 1]->minor . '<?php $_tmp' . self::$prefix_number . '=ob_get_clean();?>';
$this->_retvalue = '$_tmp' . self::$prefix_number;
}
#line 935 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r117()
{
if (!$this->security || isset($this->smarty->registered_classes[$this->yystack[$this->yyidx + - 2]->minor]) || $this->smarty->security_policy->isTrustedStaticClass($this->yystack[$this->yyidx + - 2]->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;
} else {
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . '::' . $this->yystack[$this->yyidx + 0]->minor;
}
} else {
$this->compiler->error("static class '" . $this->yystack[$this->yyidx + - 2]->minor . "' is undefined or not allowed by security setting");
}
}
#line 969 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r121()
2014-06-08 16:00:56 +00:00
{
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->compileVariable($this->yystack[$this->yyidx + 0]->minor['var']) . $this->yystack[$this->yyidx + 0]->minor['smarty_internal_index'];
}
}
#line 982 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r122()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '$_smarty_tpl->tpl_vars[' . $this->yystack[$this->yyidx + - 2]->minor . ']->' . $this->yystack[$this->yyidx + 0]->minor;
}
#line 992 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r124()
{
$this->_retvalue = '$_smarty_tpl->getConfigVariable( \'' . $this->yystack[$this->yyidx + - 1]->minor . '\')';
}
#line 996 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r125()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '(is_array($tmp = $_smarty_tpl->getConfigVariable( \'' . $this->yystack[$this->yyidx + - 2]->minor . '\')) ? $tmp' . $this->yystack[$this->yyidx + 0]->minor . ' :null)';
2014-06-08 16:00:56 +00:00
}
#line 1000 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r126()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '$_smarty_tpl->getConfigVariable( ' . $this->yystack[$this->yyidx + - 1]->minor . ')';
2014-06-08 16:00:56 +00:00
}
#line 1004 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r127()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '(is_array($tmp = $_smarty_tpl->getConfigVariable( ' . $this->yystack[$this->yyidx + - 2]->minor . ')) ? $tmp' . $this->yystack[$this->yyidx + 0]->minor . ' : null)';
2014-06-08 16:00:56 +00:00
}
#line 1008 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r128()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = array('var' => $this->yystack[$this->yyidx + - 1]->minor, 'smarty_internal_index' => $this->yystack[$this->yyidx + 0]->minor);
2014-06-08 16:00:56 +00:00
}
#line 1021 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r130()
2014-06-08 16:00:56 +00:00
{
return;
2014-06-08 16:00:56 +00:00
}
#line 1027 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r131()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '[' . $this->compileVariable($this->yystack[$this->yyidx + 0]->minor) . ']';
2014-06-08 16:00:56 +00:00
}
#line 1031 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r132()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '[' . $this->compileVariable($this->yystack[$this->yyidx + - 2]->minor) . '->' . $this->yystack[$this->yyidx + 0]->minor . ']';
2014-06-08 16:00:56 +00:00
}
#line 1035 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r133()
2014-06-08 16:00:56 +00:00
{
if (defined($this->yystack[$this->yyidx + 0]->minor)) {
$this->_retvalue = "[" . $this->yystack[$this->yyidx + 0]->minor . "]";
} else {
$this->_retvalue = "['" . $this->yystack[$this->yyidx + 0]->minor . "']";
}
2014-06-08 16:00:56 +00:00
}
#line 1043 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r134()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = "[" . $this->yystack[$this->yyidx + 0]->minor . "]";
}
#line 1048 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r135()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = "[" . $this->yystack[$this->yyidx + - 1]->minor . "]";
}
#line 1053 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r136()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable', array(), '[\'section\'][\'' . $this->yystack[$this->yyidx + - 1]->minor . '\'][\'index\']') . ']';
}
#line 1057 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r137()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '[' . $this->compiler->compileTag('private_special_variable', array(), '[\'section\'][\'' . $this->yystack[$this->yyidx + - 3]->minor . '\'][\'' . $this->yystack[$this->yyidx + - 1]->minor . '\']') . ']';
}
#line 1067 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r139()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '[]';
}
#line 1081 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r141()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . '.' . $this->yystack[$this->yyidx + 0]->minor;
}
#line 1086 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r142()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '\'' . $this->yystack[$this->yyidx + 0]->minor . '\'';
}
#line 1091 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r143()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '(' . $this->yystack[$this->yyidx + - 1]->minor . ')';
}
#line 1098 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r144()
2014-06-08 16:00:56 +00:00
{
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->compileVariable($this->yystack[$this->yyidx + - 1]->minor['var']) . $this->yystack[$this->yyidx + - 1]->minor['smarty_internal_index'] . $this->yystack[$this->yyidx + 0]->minor;
}
}
#line 1107 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r145()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;
}
#line 1112 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r146()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
}
#line 1117 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r147()
2014-06-08 16:00:56 +00:00
{
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 1124 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r148()
2014-06-08 16:00:56 +00:00
{
if ($this->security) {
$this->compiler->trigger_template_error(self::Err2);
}
$this->_retvalue = '->{' . $this->compileVariable($this->yystack[$this->yyidx + - 1]->minor) . $this->yystack[$this->yyidx + 0]->minor . '}';
}
#line 1131 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r149()
2014-06-08 16:00:56 +00:00
{
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 1138 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r150()
2014-06-08 16:00:56 +00:00
{
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 1146 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r151()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '->' . $this->yystack[$this->yyidx + 0]->minor;
}
#line 1154 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r152()
2014-06-08 16:00:56 +00:00
{
if (!$this->security || $this->smarty->security_policy->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] . ')';
}
2011-09-16 14:19:56 +00:00
} else {
2014-06-08 16:00:56 +00:00
$this->_retvalue = $this->yystack[$this->yyidx + - 3]->minor . "(" . implode(',', $this->yystack[$this->yyidx + - 1]->minor) . ")";
2011-09-16 14:19:56 +00:00
}
} else {
2014-06-08 16:00:56 +00:00
$this->compiler->trigger_template_error("unknown function \"" . $this->yystack[$this->yyidx + - 3]->minor . "\"");
2011-09-16 14:19:56 +00:00
}
}
}
#line 1193 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r153()
2014-06-08 16:00:56 +00:00
{
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 1200 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r154()
2014-06-08 16:00:56 +00:00
{
if ($this->security) {
$this->compiler->trigger_template_error(self::Err2);
}
self::$prefix_number ++;
$this->compiler->prefix_code[] = '<?php $_tmp' . self::$prefix_number . '=' . $this->compileVariable("'" . $this->yystack[$this->yyidx + - 3]->minor . "'") . ';?>';
$this->_retvalue = '$_tmp' . self::$prefix_number . '(' . implode(',', $this->yystack[$this->yyidx + - 1]->minor) . ')';
}
#line 1211 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r155()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = array_merge($this->yystack[$this->yyidx + - 2]->minor, array($this->yystack[$this->yyidx + 0]->minor));
}
#line 1228 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r158()
2014-06-08 16:00:56 +00:00
{
$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 1232 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r159()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = array(array_merge($this->yystack[$this->yyidx + - 1]->minor, $this->yystack[$this->yyidx + 0]->minor));
}
#line 1240 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r161()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor);
}
#line 1248 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r162()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = array_merge($this->yystack[$this->yyidx + - 1]->minor, $this->yystack[$this->yyidx + 0]->minor);
}
#line 1282 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r169()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '$' . $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
}
#line 1287 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r170()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '$' . $this->yystack[$this->yyidx + - 2]->minor . $this->yystack[$this->yyidx + - 1]->minor . $this->yystack[$this->yyidx + 0]->minor;
}
#line 1293 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r171()
{
$this->_retvalue = '==';
}
#line 1297 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r172()
{
$this->_retvalue = '!=';
}
#line 1301 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r173()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '>';
2014-06-08 16:00:56 +00:00
}
#line 1305 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r174()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '<';
2014-06-08 16:00:56 +00:00
}
#line 1309 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r175()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '>=';
2014-06-08 16:00:56 +00:00
}
#line 1313 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r176()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '<=';
2011-09-16 14:19:56 +00:00
}
#line 1317 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r177()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '===';
2014-06-08 16:00:56 +00:00
}
#line 1321 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r178()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '!==';
2014-06-08 16:00:56 +00:00
}
#line 1325 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r179()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '%';
2014-06-08 16:00:56 +00:00
}
#line 1329 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r180()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '&&';
2014-06-08 16:00:56 +00:00
}
#line 1333 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r181()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '||';
2014-06-08 16:00:56 +00:00
}
#line 1337 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r182()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = ' XOR ';
2014-06-08 16:00:56 +00:00
}
#line 1344 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r183()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = 'array(' . $this->yystack[$this->yyidx + - 1]->minor . ')';
2014-06-08 16:00:56 +00:00
}
#line 1352 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r185()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . ',' . $this->yystack[$this->yyidx + 0]->minor;
2014-06-08 16:00:56 +00:00
}
#line 1360 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r187()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + - 2]->minor . '=>' . $this->yystack[$this->yyidx + 0]->minor;
}
#line 1364 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r188()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = '\'' . $this->yystack[$this->yyidx + - 2]->minor . '\'=>' . $this->yystack[$this->yyidx + 0]->minor;
}
#line 1376 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r190()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = "''";
}
#line 1380 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r191()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor->to_smarty_php();
}
#line 1385 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r192()
2014-06-08 16:00:56 +00:00
{
$this->yystack[$this->yyidx + - 1]->minor->append_subtree($this->yystack[$this->yyidx + 0]->minor);
$this->_retvalue = $this->yystack[$this->yyidx + - 1]->minor;
}
#line 1390 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r193()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = new _smarty_doublequoted($this, $this->yystack[$this->yyidx + 0]->minor);
}
#line 1394 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r194()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = new _smarty_code($this, '(string)' . $this->yystack[$this->yyidx + - 1]->minor);
}
#line 1402 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r196()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = new _smarty_code($this, '(string)$_smarty_tpl->tpl_vars[\'' . substr($this->yystack[$this->yyidx + 0]->minor, 1) . '\']->value');
}
#line 1410 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r198()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = new _smarty_code($this, '(string)(' . $this->yystack[$this->yyidx + - 1]->minor . ')');
}
#line 1414 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r199()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = new _smarty_tag($this, $this->yystack[$this->yyidx + - 1]->minor);
}
#line 1418 "../smarty/lexer/smarty_internal_templateparser.y"
function yy_r200()
2014-06-08 16:00:56 +00:00
{
$this->_retvalue = new _smarty_dq_content($this, $this->yystack[$this->yyidx + 0]->minor);
}
private $_retvalue;
public function yy_reduce($yyruleno)
{
$yymsp = $this->yystack[$this->yyidx];
if ($this->yyTraceFILE && $yyruleno >= 0
2014-06-08 16:00:56 +00:00
&& $yyruleno < count(self::$yyRuleName)
) {
fprintf($this->yyTraceFILE, "%sReduce (%d) [%s].\n",
2014-06-08 16:00:56 +00:00
$this->yyTracePrompt, $yyruleno,
self::$yyRuleName[$yyruleno]);
}
$this->_retvalue = $yy_lefthand_side = null;
if (array_key_exists($yyruleno, self::$yyReduceMap)) {
// call the action
$this->_retvalue = null;
$this->{'yy_r' . self::$yyReduceMap[$yyruleno]}();
$yy_lefthand_side = $this->_retvalue;
}
$yygoto = self::$yyRuleInfo[$yyruleno][0];
$yysize = self::$yyRuleInfo[$yyruleno][1];
$this->yyidx -= $yysize;
2014-06-08 16:00:56 +00:00
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) {
2014-06-08 16:00:56 +00:00
$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);
2014-06-08 16:00:56 +00:00
}
while ($this->yyidx >= 0) {
$this->yy_pop_parser_stack();
}
}
public function yy_syntax_error($yymajor, $TOKEN)
{
#line 208 "../smarty/lexer/smarty_internal_templateparser.y"
2014-06-08 16:00:56 +00:00
$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);
2014-06-08 16:00:56 +00:00
}
while ($this->yyidx >= 0) {
$this->yy_pop_parser_stack();
}
#line 199 "../smarty/lexer/smarty_internal_templateparser.y"
2014-06-08 16:00:56 +00:00
$this->successful = !$this->internalError;
$this->internalError = false;
$this->retvalue = $this->_retvalue;
//echo $this->retvalue."\n\n";
}
public function doParse($yymajor, $yytokenvalue)
{
$yyerrorhit = 0; /* True if yymajor has invoked an error */
if ($this->yyidx === null || $this->yyidx < 0) {
$this->yyidx = 0;
2014-06-08 16:00:56 +00:00
$this->yyerrcnt = - 1;
$x = new TP_yyStackEntry;
$x->stateno = 0;
$x->major = 0;
$this->yystack = array();
array_push($this->yystack, $x);
}
2014-06-08 16:00:56 +00:00
$yyendofinput = ($yymajor == 0);
if ($this->yyTraceFILE) {
fprintf($this->yyTraceFILE, "%sInput %s\n",
2014-06-08 16:00:56 +00:00
$this->yyTracePrompt, $this->yyTokenName[$yymajor]);
}
do {
$yyact = $this->yy_find_shift_action($yymajor);
if ($yymajor < self::YYERRORSYMBOL &&
2014-06-08 16:00:56 +00:00
!$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);
2014-06-08 16:00:56 +00:00
$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",
2014-06-08 16:00:56 +00:00
$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",
2014-06-08 16:00:56 +00:00
$this->yyTracePrompt, $this->yyTokenName[$yymajor]);
}
$this->yy_destructor($yymajor, $yytokenvalue);
$yymajor = self::YYNOCODE;
} else {
while ($this->yyidx >= 0 &&
2014-06-08 16:00:56 +00:00
$yymx != self::YYERRORSYMBOL &&
($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE
) {
$this->yy_pop_parser_stack();
}
2014-06-08 16:00:56 +00:00
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);
}
}