Files
smarty/libs/sysplugins/smarty_internal_templateparser.php

2474 lines
129 KiB
PHP
Raw Normal View History

<?php
/**
* Smarty Internal Plugin Templateparser
*
* This is the template parser.
* It is generated from the internal.templateparser.y file
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
class TP_yyToken implements ArrayAccess
{
public $string = '';
public $metadata = array();
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;
}
}
}
function __toString()
{
return $this->_string;
}
function offsetExists($offset)
{
return isset($this->metadata[$offset]);
}
function offsetGet($offset)
{
return $this->metadata[$offset];
}
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;
}
}
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 */
};
2009-12-05 15:10:47 +00:00
#line 12 "smarty_internal_templateparser.y"
class Smarty_Internal_Templateparser#line 79 "smarty_internal_templateparser.php"
{
2009-12-05 15:10:47 +00:00
#line 14 "smarty_internal_templateparser.y"
2009-10-22 23:05:14 +00:00
// states whether the parse was successful or not
public $successful = true;
public $retvalue = 0;
private $lex;
private $internalError = false;
function __construct($lex, $compiler) {
// set instance object
self::instance($this);
$this->lex = $lex;
$this->compiler = $compiler;
$this->smarty = $this->compiler->smarty;
$this->template = $this->compiler->template;
if ($this->template->security && isset($this->smarty->security_handler)) {
$this->sec_obj = $this->smarty->security_policy;
} else {
$this->sec_obj = $this->smarty;
}
$this->cacher = $this->template->cacher_object;
$this->compiler->has_variable_string = false;
$this->compiler->prefix_code = array();
$this->prefix_number = 0;
}
public static function &instance($new_instance = null)
{
static $instance = null;
if (isset($new_instance) && is_object($new_instance))
$instance = $new_instance;
return $instance;
}
2009-12-05 15:10:47 +00:00
#line 115 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
const TP_COMMENT = 1;
const TP_PHP = 2;
const TP_OTHER = 3;
const TP_SHORTTAGEND = 4;
const TP_SHORTTAGSTART = 5;
const TP_XML = 6;
const TP_LDEL = 7;
const TP_RDEL = 8;
const TP_DOLLAR = 9;
const TP_ID = 10;
const TP_EQUAL = 11;
const TP_FOREACH = 12;
const TP_PTR = 13;
const TP_IF = 14;
const TP_SPACE = 15;
const TP_FOR = 16;
const TP_SEMICOLON = 17;
const TP_INCDEC = 18;
const TP_TO = 19;
const TP_AS = 20;
const TP_APTR = 21;
const TP_LDELSLASH = 22;
const TP_INTEGER = 23;
const TP_COMMA = 24;
const TP_COLON = 25;
const TP_UNIMATH = 26;
const TP_OPENP = 27;
const TP_CLOSEP = 28;
const TP_QMARK = 29;
const TP_MATH = 30;
const TP_ANDSYM = 31;
2009-12-13 20:21:54 +00:00
const TP_NOT = 32;
const TP_TYPECAST = 33;
const TP_DOT = 34;
const TP_BOOLEAN = 35;
const TP_NULL = 36;
const TP_SINGLEQUOTESTRING = 37;
const TP_QUOTE = 38;
const TP_DOUBLECOLON = 39;
const TP_AT = 40;
const TP_HATCH = 41;
const TP_OPENB = 42;
const TP_CLOSEB = 43;
const TP_VERT = 44;
2009-12-05 15:10:47 +00:00
const TP_ISIN = 45;
const TP_ISDIVBY = 46;
const TP_ISNOTDIVBY = 47;
const TP_ISEVEN = 48;
const TP_ISNOTEVEN = 49;
const TP_ISEVENBY = 50;
const TP_ISNOTEVENBY = 51;
const TP_ISODD = 52;
const TP_ISNOTODD = 53;
const TP_ISODDBY = 54;
const TP_ISNOTODDBY = 55;
const TP_INSTANCEOF = 56;
const TP_EQUALS = 57;
const TP_NOTEQUALS = 58;
const TP_GREATERTHAN = 59;
const TP_LESSTHAN = 60;
const TP_GREATEREQUAL = 61;
const TP_LESSEQUAL = 62;
const TP_IDENTITY = 63;
const TP_NONEIDENTITY = 64;
const TP_MOD = 65;
const TP_LAND = 66;
const TP_LOR = 67;
const TP_LXOR = 68;
const TP_BACKTICK = 69;
const TP_DOLLARID = 70;
2009-12-13 20:21:54 +00:00
const YY_NO_ACTION = 549;
const YY_ACCEPT_ACTION = 548;
const YY_ERROR_ACTION = 547;
2009-12-13 20:21:54 +00:00
const YY_SZ_ACTTAB = 1406;
2009-12-05 15:10:47 +00:00
static public $yy_action = array(
2009-12-13 20:21:54 +00:00
/* 0 */ 14, 332, 77, 49, 50, 88, 264, 209, 270, 211,
/* 10 */ 265, 31, 297, 252, 290, 109, 231, 15, 122, 45,
/* 20 */ 11, 363, 293, 174, 221, 57, 58, 94, 240, 247,
/* 30 */ 345, 48, 109, 276, 51, 6, 14, 161, 75, 176,
/* 40 */ 271, 250, 289, 363, 330, 175, 221, 285, 342, 94,
/* 50 */ 283, 109, 231, 39, 18, 45, 30, 24, 354, 75,
/* 60 */ 135, 57, 58, 250, 240, 247, 345, 48, 226, 285,
/* 70 */ 51, 6, 243, 14, 230, 78, 187, 94, 248, 61,
/* 80 */ 254, 31, 299, 198, 290, 188, 190, 169, 109, 231,
/* 90 */ 94, 51, 45, 30, 210, 206, 252, 285, 57, 58,
/* 100 */ 15, 240, 247, 345, 48, 170, 277, 51, 6, 14,
/* 110 */ 285, 78, 178, 28, 190, 109, 31, 311, 173, 290,
/* 120 */ 548, 68, 253, 353, 109, 231, 333, 190, 45, 30,
/* 130 */ 208, 257, 190, 188, 57, 58, 273, 240, 247, 345,
/* 140 */ 48, 190, 22, 51, 6, 14, 31, 78, 187, 290,
/* 150 */ 29, 268, 363, 213, 133, 221, 295, 331, 94, 422,
/* 160 */ 109, 231, 61, 254, 45, 11, 40, 205, 81, 281,
/* 170 */ 57, 58, 250, 240, 247, 345, 48, 22, 285, 51,
/* 180 */ 6, 14, 288, 75, 180, 284, 227, 263, 94, 133,
/* 190 */ 31, 262, 261, 290, 282, 287, 109, 231, 263, 172,
/* 200 */ 45, 30, 262, 261, 237, 251, 57, 58, 285, 240,
/* 210 */ 247, 345, 48, 142, 328, 51, 6, 14, 173, 75,
/* 220 */ 182, 188, 22, 218, 363, 296, 69, 221, 276, 195,
/* 230 */ 94, 47, 109, 231, 133, 190, 45, 30, 249, 75,
/* 240 */ 217, 258, 57, 58, 250, 240, 247, 345, 48, 55,
/* 250 */ 285, 51, 6, 14, 31, 78, 179, 290, 25, 73,
/* 260 */ 363, 274, 38, 221, 31, 306, 94, 290, 109, 231,
/* 270 */ 321, 51, 45, 11, 292, 291, 173, 188, 57, 58,
/* 280 */ 250, 240, 247, 345, 48, 229, 285, 51, 6, 14,
/* 290 */ 236, 78, 187, 263, 23, 348, 31, 262, 261, 290,
/* 300 */ 25, 37, 188, 199, 109, 231, 144, 188, 45, 13,
/* 310 */ 22, 173, 192, 31, 3, 58, 290, 240, 247, 345,
/* 320 */ 48, 276, 133, 51, 6, 14, 280, 85, 187, 218,
/* 330 */ 272, 190, 412, 123, 233, 193, 190, 188, 171, 188,
/* 340 */ 109, 231, 273, 312, 45, 13, 215, 188, 276, 31,
/* 350 */ 3, 58, 225, 240, 247, 345, 48, 41, 47, 51,
/* 360 */ 6, 2, 5, 324, 325, 12, 7, 327, 322, 10,
/* 370 */ 9, 146, 222, 124, 75, 31, 173, 335, 290, 175,
/* 380 */ 56, 315, 314, 320, 188, 17, 276, 39, 276, 33,
/* 390 */ 2, 5, 324, 325, 12, 7, 327, 322, 10, 9,
/* 400 */ 14, 294, 75, 177, 267, 190, 51, 94, 164, 19,
/* 410 */ 315, 314, 320, 190, 246, 109, 184, 317, 129, 145,
/* 420 */ 30, 188, 191, 173, 188, 57, 58, 285, 240, 247,
/* 430 */ 345, 48, 158, 276, 51, 6, 22, 2, 5, 324,
/* 440 */ 325, 12, 7, 327, 322, 10, 9, 14, 133, 75,
/* 450 */ 182, 349, 341, 190, 113, 21, 139, 315, 314, 320,
/* 460 */ 34, 202, 109, 231, 94, 26, 92, 30, 190, 292,
/* 470 */ 224, 22, 57, 58, 350, 240, 247, 345, 48, 190,
/* 480 */ 121, 51, 6, 133, 285, 31, 190, 42, 189, 2,
/* 490 */ 5, 324, 325, 12, 7, 327, 322, 10, 9, 329,
/* 500 */ 307, 305, 308, 309, 310, 304, 303, 298, 63, 315,
/* 510 */ 314, 320, 273, 119, 2, 5, 324, 325, 12, 7,
/* 520 */ 327, 322, 10, 9, 14, 156, 75, 182, 276, 36,
/* 530 */ 344, 319, 154, 70, 315, 314, 320, 188, 188, 109,
/* 540 */ 231, 294, 356, 16, 30, 47, 157, 35, 292, 57,
/* 550 */ 58, 289, 240, 247, 345, 48, 132, 14, 51, 75,
/* 560 */ 185, 137, 415, 341, 27, 159, 168, 334, 358, 415,
/* 570 */ 289, 276, 109, 231, 188, 188, 276, 30, 279, 190,
/* 580 */ 42, 44, 57, 58, 294, 240, 247, 345, 48, 71,
/* 590 */ 244, 51, 329, 307, 305, 308, 309, 310, 304, 303,
/* 600 */ 298, 269, 363, 219, 292, 221, 67, 323, 94, 340,
/* 610 */ 141, 97, 212, 280, 188, 226, 188, 346, 313, 140,
/* 620 */ 118, 255, 250, 203, 183, 188, 363, 219, 285, 221,
/* 630 */ 65, 339, 94, 301, 276, 96, 363, 219, 188, 221,
/* 640 */ 67, 346, 94, 259, 118, 105, 250, 160, 359, 138,
/* 650 */ 188, 346, 285, 260, 118, 188, 250, 301, 360, 353,
/* 660 */ 188, 326, 285, 318, 276, 117, 336, 301, 363, 219,
/* 670 */ 188, 221, 67, 188, 94, 363, 219, 101, 221, 67,
/* 680 */ 292, 94, 108, 346, 102, 112, 118, 162, 250, 251,
/* 690 */ 346, 234, 289, 118, 285, 250, 23, 292, 229, 301,
/* 700 */ 292, 285, 343, 114, 363, 219, 301, 221, 67, 347,
/* 710 */ 94, 363, 219, 99, 221, 67, 4, 94, 292, 346,
/* 720 */ 106, 116, 118, 128, 250, 364, 346, 239, 143, 118,
/* 730 */ 285, 250, 242, 190, 42, 301, 292, 285, 276, 232,
/* 740 */ 207, 201, 301, 276, 38, 136, 329, 307, 305, 308,
/* 750 */ 309, 310, 304, 303, 298, 363, 219, 266, 221, 67,
/* 760 */ 276, 94, 363, 219, 104, 221, 67, 286, 94, 278,
/* 770 */ 346, 107, 147, 118, 52, 250, 337, 346, 19, 194,
/* 780 */ 118, 285, 250, 245, 256, 32, 301, 276, 285, 1,
/* 790 */ 83, 363, 219, 301, 220, 67, 76, 94, 363, 219,
/* 800 */ 103, 221, 67, 90, 94, 79, 346, 100, 351, 118,
/* 810 */ 80, 250, 204, 346, 84, 302, 118, 285, 250, 62,
/* 820 */ 271, 241, 301, 188, 285, 280, 46, 363, 219, 301,
/* 830 */ 221, 66, 43, 94, 363, 216, 98, 221, 166, 91,
/* 840 */ 94, 130, 346, 20, 82, 118, 200, 250, 41, 346,
/* 850 */ 294, 8, 118, 285, 250, 338, 296, 296, 301, 296,
/* 860 */ 285, 296, 296, 296, 296, 296, 296, 296, 181, 355,
/* 870 */ 363, 275, 296, 221, 127, 296, 94, 363, 275, 296,
/* 880 */ 221, 59, 89, 94, 296, 346, 296, 296, 118, 296,
/* 890 */ 250, 296, 346, 196, 296, 118, 285, 250, 296, 296,
/* 900 */ 296, 296, 296, 285, 363, 86, 296, 72, 53, 93,
/* 910 */ 87, 363, 86, 296, 74, 60, 93, 87, 296, 346,
/* 920 */ 296, 296, 118, 296, 250, 296, 346, 296, 296, 118,
/* 930 */ 285, 250, 296, 296, 296, 296, 296, 285, 296, 296,
/* 940 */ 296, 296, 296, 296, 363, 275, 296, 221, 127, 296,
/* 950 */ 94, 296, 296, 296, 296, 296, 296, 296, 296, 346,
/* 960 */ 296, 296, 118, 296, 250, 296, 296, 357, 363, 228,
/* 970 */ 285, 221, 54, 95, 94, 296, 296, 296, 296, 296,
/* 980 */ 296, 363, 275, 346, 221, 127, 118, 94, 250, 296,
/* 990 */ 296, 296, 296, 296, 285, 296, 346, 296, 296, 118,
/* 1000 */ 296, 250, 363, 216, 223, 221, 166, 285, 94, 316,
/* 1010 */ 235, 361, 362, 214, 300, 14, 296, 346, 296, 296,
/* 1020 */ 118, 296, 250, 363, 275, 296, 221, 127, 285, 94,
/* 1030 */ 109, 296, 296, 296, 296, 296, 296, 352, 346, 296,
/* 1040 */ 296, 118, 296, 250, 296, 296, 197, 363, 186, 285,
/* 1050 */ 221, 151, 238, 94, 296, 296, 296, 363, 275, 296,
/* 1060 */ 221, 167, 346, 94, 296, 118, 296, 250, 296, 296,
/* 1070 */ 296, 296, 346, 285, 296, 118, 296, 250, 363, 275,
/* 1080 */ 296, 221, 134, 285, 94, 296, 296, 296, 296, 296,
/* 1090 */ 296, 296, 296, 346, 296, 296, 118, 296, 250, 363,
/* 1100 */ 275, 296, 221, 126, 285, 94, 296, 296, 296, 296,
/* 1110 */ 296, 296, 296, 296, 346, 296, 296, 118, 296, 250,
/* 1120 */ 296, 296, 296, 363, 275, 285, 221, 131, 296, 94,
/* 1130 */ 296, 296, 296, 363, 275, 296, 221, 155, 346, 94,
/* 1140 */ 296, 118, 296, 250, 296, 296, 296, 296, 346, 285,
/* 1150 */ 296, 118, 296, 250, 363, 275, 296, 221, 153, 285,
/* 1160 */ 94, 296, 296, 296, 296, 296, 296, 296, 296, 346,
/* 1170 */ 296, 296, 118, 296, 250, 363, 275, 296, 221, 125,
/* 1180 */ 285, 94, 296, 296, 296, 296, 296, 296, 296, 296,
/* 1190 */ 346, 296, 296, 118, 296, 250, 296, 296, 296, 363,
/* 1200 */ 275, 285, 221, 163, 296, 94, 296, 296, 296, 363,
/* 1210 */ 275, 296, 221, 165, 346, 94, 296, 118, 296, 250,
/* 1220 */ 296, 296, 296, 296, 346, 285, 296, 118, 296, 250,
/* 1230 */ 363, 275, 296, 221, 150, 285, 94, 296, 296, 296,
/* 1240 */ 296, 296, 296, 296, 296, 346, 296, 296, 118, 296,
/* 1250 */ 250, 363, 275, 296, 221, 64, 285, 94, 296, 296,
/* 1260 */ 296, 296, 296, 296, 296, 296, 346, 296, 296, 118,
/* 1270 */ 296, 250, 296, 296, 296, 363, 275, 285, 221, 120,
/* 1280 */ 296, 94, 296, 296, 296, 363, 275, 296, 221, 152,
/* 1290 */ 346, 94, 296, 118, 296, 250, 296, 296, 296, 296,
/* 1300 */ 346, 285, 296, 118, 296, 250, 363, 275, 296, 221,
/* 1310 */ 149, 285, 94, 296, 296, 296, 296, 296, 296, 296,
/* 1320 */ 296, 346, 296, 296, 118, 296, 250, 363, 275, 296,
/* 1330 */ 221, 148, 285, 94, 296, 296, 296, 296, 296, 296,
/* 1340 */ 296, 296, 346, 296, 296, 118, 296, 250, 296, 296,
/* 1350 */ 296, 363, 275, 285, 221, 363, 275, 94, 221, 296,
/* 1360 */ 296, 94, 296, 296, 296, 296, 346, 296, 296, 115,
/* 1370 */ 346, 250, 296, 110, 296, 250, 296, 285, 296, 363,
/* 1380 */ 275, 285, 221, 296, 296, 94, 296, 296, 296, 296,
/* 1390 */ 296, 296, 296, 296, 346, 296, 296, 111, 296, 250,
/* 1400 */ 296, 296, 296, 296, 296, 285,
2009-12-05 15:10:47 +00:00
);
static public $yy_lookahead = array(
2009-12-13 20:21:54 +00:00
/* 0 */ 7, 15, 9, 10, 10, 12, 12, 14, 14, 16,
/* 10 */ 16, 7, 8, 3, 10, 22, 23, 7, 77, 26,
/* 20 */ 27, 75, 76, 82, 78, 32, 33, 81, 35, 36,
/* 30 */ 37, 38, 22, 92, 41, 42, 7, 99, 9, 10,
/* 40 */ 102, 95, 104, 75, 76, 34, 78, 101, 38, 81,
/* 50 */ 8, 22, 23, 42, 11, 26, 27, 7, 90, 9,
/* 60 */ 10, 32, 33, 95, 35, 36, 37, 38, 25, 101,
/* 70 */ 41, 42, 43, 7, 78, 9, 10, 81, 8, 69,
/* 80 */ 70, 7, 8, 13, 10, 15, 44, 78, 22, 23,
/* 90 */ 81, 41, 26, 27, 87, 21, 3, 101, 32, 33,
/* 100 */ 7, 35, 36, 37, 38, 8, 97, 41, 42, 7,
/* 110 */ 101, 9, 10, 25, 44, 22, 7, 8, 82, 10,
/* 120 */ 72, 73, 74, 75, 22, 23, 8, 44, 26, 27,
/* 130 */ 21, 38, 44, 15, 32, 33, 18, 35, 36, 37,
/* 140 */ 38, 44, 27, 41, 42, 7, 7, 9, 10, 10,
/* 150 */ 11, 104, 75, 76, 39, 78, 10, 18, 81, 44,
/* 160 */ 22, 23, 69, 70, 26, 27, 7, 90, 9, 10,
/* 170 */ 32, 33, 95, 35, 36, 37, 38, 27, 101, 41,
/* 180 */ 42, 7, 23, 9, 10, 78, 40, 26, 81, 39,
/* 190 */ 7, 30, 31, 10, 35, 36, 22, 23, 26, 8,
/* 200 */ 26, 27, 30, 31, 43, 75, 32, 33, 101, 35,
/* 210 */ 36, 37, 38, 77, 8, 41, 42, 7, 82, 9,
/* 220 */ 10, 15, 27, 40, 75, 76, 96, 78, 92, 34,
/* 230 */ 81, 13, 22, 23, 39, 44, 26, 27, 43, 9,
/* 240 */ 10, 111, 32, 33, 95, 35, 36, 37, 38, 83,
/* 250 */ 101, 41, 42, 7, 7, 9, 10, 10, 11, 88,
/* 260 */ 75, 76, 11, 78, 7, 8, 81, 10, 22, 23,
/* 270 */ 8, 41, 26, 27, 103, 8, 82, 15, 32, 33,
/* 280 */ 95, 35, 36, 37, 38, 34, 101, 41, 42, 7,
/* 290 */ 10, 9, 10, 26, 11, 8, 7, 30, 31, 10,
/* 300 */ 11, 107, 15, 23, 22, 23, 77, 15, 26, 27,
/* 310 */ 27, 82, 89, 7, 32, 33, 10, 35, 36, 37,
/* 320 */ 38, 92, 39, 41, 42, 7, 103, 9, 10, 40,
/* 330 */ 8, 44, 8, 77, 9, 10, 44, 15, 82, 15,
/* 340 */ 22, 23, 18, 28, 26, 27, 40, 15, 92, 7,
/* 350 */ 32, 33, 10, 35, 36, 37, 38, 25, 13, 41,
/* 360 */ 42, 46, 47, 48, 49, 50, 51, 52, 53, 54,
/* 370 */ 55, 77, 28, 77, 9, 7, 82, 8, 10, 34,
/* 380 */ 83, 66, 67, 68, 15, 24, 92, 42, 92, 7,
/* 390 */ 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,
/* 400 */ 7, 105, 9, 10, 78, 44, 41, 81, 17, 27,
/* 410 */ 66, 67, 68, 44, 8, 22, 23, 8, 77, 100,
/* 420 */ 27, 15, 13, 82, 15, 32, 33, 101, 35, 36,
/* 430 */ 37, 38, 83, 92, 41, 42, 27, 46, 47, 48,
/* 440 */ 49, 50, 51, 52, 53, 54, 55, 7, 39, 9,
/* 450 */ 10, 8, 28, 44, 88, 24, 100, 66, 67, 68,
/* 460 */ 25, 78, 22, 23, 81, 21, 28, 27, 44, 103,
/* 470 */ 28, 27, 32, 33, 43, 35, 36, 37, 38, 44,
/* 480 */ 100, 41, 42, 39, 101, 7, 44, 45, 10, 46,
/* 490 */ 47, 48, 49, 50, 51, 52, 53, 54, 55, 57,
/* 500 */ 58, 59, 60, 61, 62, 63, 64, 65, 83, 66,
/* 510 */ 67, 68, 18, 77, 46, 47, 48, 49, 50, 51,
/* 520 */ 52, 53, 54, 55, 7, 17, 9, 10, 92, 29,
/* 530 */ 8, 8, 24, 88, 66, 67, 68, 15, 15, 22,
/* 540 */ 23, 105, 28, 11, 27, 13, 99, 29, 103, 32,
/* 550 */ 33, 104, 35, 36, 37, 38, 77, 7, 41, 9,
/* 560 */ 10, 77, 8, 28, 21, 99, 82, 8, 8, 15,
/* 570 */ 104, 92, 22, 23, 15, 15, 92, 27, 10, 44,
/* 580 */ 45, 56, 32, 33, 105, 35, 36, 37, 38, 88,
/* 590 */ 41, 41, 57, 58, 59, 60, 61, 62, 63, 64,
/* 600 */ 65, 10, 75, 76, 103, 78, 79, 8, 81, 8,
/* 610 */ 100, 84, 85, 103, 15, 25, 15, 90, 8, 77,
/* 620 */ 93, 10, 95, 85, 86, 15, 75, 76, 101, 78,
/* 630 */ 79, 8, 81, 106, 92, 84, 75, 76, 15, 78,
/* 640 */ 79, 90, 81, 8, 93, 84, 95, 10, 8, 77,
/* 650 */ 15, 90, 101, 8, 93, 15, 95, 106, 74, 75,
/* 660 */ 15, 4, 101, 8, 92, 88, 8, 106, 75, 76,
/* 670 */ 15, 78, 79, 15, 81, 75, 76, 84, 78, 79,
/* 680 */ 103, 81, 88, 90, 84, 88, 93, 99, 95, 75,
/* 690 */ 90, 3, 104, 93, 101, 95, 11, 103, 34, 106,
/* 700 */ 103, 101, 10, 88, 75, 76, 106, 78, 79, 8,
/* 710 */ 81, 75, 76, 84, 78, 79, 108, 81, 103, 90,
/* 720 */ 84, 88, 93, 77, 95, 111, 90, 23, 77, 93,
/* 730 */ 101, 95, 41, 44, 45, 106, 103, 101, 92, 3,
/* 740 */ 20, 10, 106, 92, 11, 77, 57, 58, 59, 60,
/* 750 */ 61, 62, 63, 64, 65, 75, 76, 8, 78, 79,
/* 760 */ 92, 81, 75, 76, 84, 78, 79, 28, 81, 8,
/* 770 */ 90, 84, 77, 93, 100, 95, 8, 90, 27, 10,
/* 780 */ 93, 101, 95, 43, 69, 19, 106, 92, 101, 15,
/* 790 */ 9, 75, 76, 106, 78, 79, 9, 81, 75, 76,
/* 800 */ 84, 78, 79, 15, 81, 9, 90, 84, 8, 93,
/* 810 */ 9, 95, 20, 90, 9, 4, 93, 101, 95, 10,
/* 820 */ 102, 92, 106, 15, 101, 103, 94, 75, 76, 106,
/* 830 */ 78, 79, 15, 81, 75, 76, 84, 78, 79, 97,
/* 840 */ 81, 100, 90, 27, 9, 93, 91, 95, 25, 90,
/* 850 */ 105, 87, 93, 101, 95, 85, 112, 112, 106, 112,
/* 860 */ 101, 112, 112, 112, 112, 112, 112, 112, 109, 110,
/* 870 */ 75, 76, 112, 78, 79, 112, 81, 75, 76, 112,
/* 880 */ 78, 79, 80, 81, 112, 90, 112, 112, 93, 112,
/* 890 */ 95, 112, 90, 98, 112, 93, 101, 95, 112, 112,
/* 900 */ 112, 112, 112, 101, 75, 76, 112, 78, 79, 80,
/* 910 */ 81, 75, 76, 112, 78, 79, 80, 81, 112, 90,
/* 920 */ 112, 112, 93, 112, 95, 112, 90, 112, 112, 93,
/* 930 */ 101, 95, 112, 112, 112, 112, 112, 101, 112, 112,
/* 940 */ 112, 112, 112, 112, 75, 76, 112, 78, 79, 112,
/* 950 */ 81, 112, 112, 112, 112, 112, 112, 112, 112, 90,
/* 960 */ 112, 112, 93, 112, 95, 112, 112, 98, 75, 76,
/* 970 */ 101, 78, 79, 80, 81, 112, 112, 112, 112, 112,
/* 980 */ 112, 75, 76, 90, 78, 79, 93, 81, 95, 112,
/* 990 */ 112, 112, 112, 112, 101, 112, 90, 112, 112, 93,
/* 1000 */ 112, 95, 75, 76, 98, 78, 79, 101, 81, 1,
/* 1010 */ 2, 3, 4, 5, 6, 7, 112, 90, 112, 112,
/* 1020 */ 93, 112, 95, 75, 76, 112, 78, 79, 101, 81,
/* 1030 */ 22, 112, 112, 112, 112, 112, 112, 110, 90, 112,
/* 1040 */ 112, 93, 112, 95, 112, 112, 98, 75, 76, 101,
/* 1050 */ 78, 79, 80, 81, 112, 112, 112, 75, 76, 112,
/* 1060 */ 78, 79, 90, 81, 112, 93, 112, 95, 112, 112,
/* 1070 */ 112, 112, 90, 101, 112, 93, 112, 95, 75, 76,
/* 1080 */ 112, 78, 79, 101, 81, 112, 112, 112, 112, 112,
/* 1090 */ 112, 112, 112, 90, 112, 112, 93, 112, 95, 75,
/* 1100 */ 76, 112, 78, 79, 101, 81, 112, 112, 112, 112,
/* 1110 */ 112, 112, 112, 112, 90, 112, 112, 93, 112, 95,
/* 1120 */ 112, 112, 112, 75, 76, 101, 78, 79, 112, 81,
/* 1130 */ 112, 112, 112, 75, 76, 112, 78, 79, 90, 81,
/* 1140 */ 112, 93, 112, 95, 112, 112, 112, 112, 90, 101,
/* 1150 */ 112, 93, 112, 95, 75, 76, 112, 78, 79, 101,
/* 1160 */ 81, 112, 112, 112, 112, 112, 112, 112, 112, 90,
/* 1170 */ 112, 112, 93, 112, 95, 75, 76, 112, 78, 79,
/* 1180 */ 101, 81, 112, 112, 112, 112, 112, 112, 112, 112,
/* 1190 */ 90, 112, 112, 93, 112, 95, 112, 112, 112, 75,
/* 1200 */ 76, 101, 78, 79, 112, 81, 112, 112, 112, 75,
/* 1210 */ 76, 112, 78, 79, 90, 81, 112, 93, 112, 95,
/* 1220 */ 112, 112, 112, 112, 90, 101, 112, 93, 112, 95,
/* 1230 */ 75, 76, 112, 78, 79, 101, 81, 112, 112, 112,
/* 1240 */ 112, 112, 112, 112, 112, 90, 112, 112, 93, 112,
/* 1250 */ 95, 75, 76, 112, 78, 79, 101, 81, 112, 112,
/* 1260 */ 112, 112, 112, 112, 112, 112, 90, 112, 112, 93,
/* 1270 */ 112, 95, 112, 112, 112, 75, 76, 101, 78, 79,
/* 1280 */ 112, 81, 112, 112, 112, 75, 76, 112, 78, 79,
/* 1290 */ 90, 81, 112, 93, 112, 95, 112, 112, 112, 112,
/* 1300 */ 90, 101, 112, 93, 112, 95, 75, 76, 112, 78,
/* 1310 */ 79, 101, 81, 112, 112, 112, 112, 112, 112, 112,
/* 1320 */ 112, 90, 112, 112, 93, 112, 95, 75, 76, 112,
/* 1330 */ 78, 79, 101, 81, 112, 112, 112, 112, 112, 112,
/* 1340 */ 112, 112, 90, 112, 112, 93, 112, 95, 112, 112,
/* 1350 */ 112, 75, 76, 101, 78, 75, 76, 81, 78, 112,
/* 1360 */ 112, 81, 112, 112, 112, 112, 90, 112, 112, 93,
/* 1370 */ 90, 95, 112, 93, 112, 95, 112, 101, 112, 75,
/* 1380 */ 76, 101, 78, 112, 112, 81, 112, 112, 112, 112,
/* 1390 */ 112, 112, 112, 112, 90, 112, 112, 93, 112, 95,
/* 1400 */ 112, 112, 112, 112, 112, 101,
2009-12-05 15:10:47 +00:00
);
2009-12-13 20:21:54 +00:00
const YY_SHIFT_USE_DFLT = -15;
const YY_SHIFT_MAX = 236;
2009-12-05 15:10:47 +00:00
static public $yy_shift_ofst = array(
2009-12-13 20:21:54 +00:00
/* 0 */ 1008, 318, 282, 282, 282, 282, 102, 282, 282, 282,
/* 10 */ 282, 282, 282, 282, -7, -7, 138, 66, 138, 66,
/* 20 */ 66, 102, 66, 246, 66, 66, 66, 66, 66, 66,
/* 30 */ 66, 66, 66, 66, 66, 66, 66, 66, 66, 29,
/* 40 */ 210, 174, 440, 393, 550, 517, 517, 50, 93, 409,
/* 50 */ 70, 230, 345, 369, 287, 332, 332, 365, 365, 292,
/* 60 */ 292, 365, 292, 332, 292, 442, 535, 689, 1008, 10,
/* 70 */ 139, 289, 118, 183, 324, 368, 368, 478, 342, 368,
/* 80 */ 368, 368, 368, 368, 368, 342, 635, 532, 817, 808,
/* 90 */ 835, 218, 218, 808, 218, 808, 344, 443, 315, 391,
/* 100 */ 468, 468, 468, 468, 468, 468, 468, 468, 109, -6,
/* 110 */ 267, 161, 74, 4, 247, 172, 306, 257, 172, 322,
/* 120 */ 88, 11, 406, 262, 206, 97, 42, 361, 658, 601,
/* 130 */ 11, 191, 599, 325, 424, 382, 610, 655, 645, 11,
/* 140 */ 623, 11, 640, 560, 559, 11, 523, 522, 435, 83,
/* 150 */ 83, 83, 83, 83, 835, 83, -14, 218, 823, 218,
/* 160 */ 816, 218, 218, 83, -14, 83, 83, 83, -15, -15,
/* 170 */ -15, -15, -15, -15, -15, 159, 195, 283, 444, 115,
/* 180 */ 150, 431, 150, 508, 251, 150, 554, 150, 280, 43,
/* 190 */ 146, 809, 768, 751, 740, 769, 438, 739, 731, 733,
/* 200 */ 749, 761, 715, 766, 801, 792, 805, 796, 787, 774,
/* 210 */ 781, 788, 800, 720, 736, 568, 543, 549, 591, 525,
/* 220 */ 494, 494, 500, 514, 518, 590, 611, 692, 701, 704,
/* 230 */ 691, 664, 811, 637, 657, 688, 685,
2009-12-05 15:10:47 +00:00
);
2009-12-13 20:21:54 +00:00
const YY_REDUCE_USE_DFLT = -63;
const YY_REDUCE_MAX = 174;
2009-12-05 15:10:47 +00:00
static public $yy_reduce_ofst = array(
2009-12-13 20:21:54 +00:00
/* 0 */ 48, 527, 636, 716, 680, 687, 759, 593, 629, 561,
/* 10 */ 600, 551, 723, 752, 836, 829, 802, 869, 893, 948,
/* 20 */ 795, 927, 906, 972, 1100, 1124, 982, 1134, 1079, 1058,
/* 30 */ 1003, 1024, 1176, 1048, 1155, 1200, 1252, 1231, 1210, 1304,
/* 40 */ 1280, 1276, -32, 77, 149, 185, -54, 9, 130, 484,
/* 50 */ -59, -4, -62, 229, 136, 436, 479, 326, 107, 294,
/* 60 */ 229, 383, 256, 296, 341, 194, 194, 194, 584, 614,
/* 70 */ 223, 510, 542, 510, 542, 171, 577, 171, 171, 597,
/* 80 */ 594, 633, 615, 445, 366, 501, 572, 447, 668, 695,
/* 90 */ 538, 466, 588, 646, 447, 651, 608, 608, 608, 608,
/* 100 */ 608, 608, 608, 608, 608, 608, 608, 608, 722, 755,
/* 110 */ 732, 732, 722, 722, 722, 732, 722, 722, 732, 729,
/* 120 */ 36, 718, 729, 729, 729, 36, 36, 36, 729, 729,
/* 130 */ 718, 36, 729, 742, 36, 741, 729, 729, 729, 718,
/* 140 */ 729, 718, 729, 729, 729, 718, 729, 729, 36, 36,
/* 150 */ 36, 36, 36, 36, 770, 36, 764, 47, 745, 47,
/* 160 */ 674, 47, 47, 36, 7, 36, 36, 36, 297, 356,
/* 170 */ 380, 425, 319, 349, 166,
2009-12-05 15:10:47 +00:00
);
static public $yyExpectedTokens = array(
/* 0 */ array(1, 2, 3, 4, 5, 6, 7, 22, ),
2009-12-13 20:21:54 +00:00
/* 1 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 2 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 3 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 4 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 5 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 6 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 7 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 8 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 9 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 10 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 11 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 12 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 13 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 14 */ array(7, 9, 10, 12, 14, 16, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 15 */ array(7, 9, 10, 12, 14, 16, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 16 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 17 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 18 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 19 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 20 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 21 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 22 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 23 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 24 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 25 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 26 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 27 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 28 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 29 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 30 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 31 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 32 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 33 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 34 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 35 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 36 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 37 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 38 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 39 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, 43, ),
/* 40 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 41 */ array(7, 9, 10, 22, 23, 26, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 42 */ array(7, 9, 10, 22, 23, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 43 */ array(7, 9, 10, 22, 23, 27, 32, 33, 35, 36, 37, 38, 41, 42, ),
/* 44 */ array(7, 9, 10, 22, 23, 27, 32, 33, 35, 36, 37, 38, 41, ),
/* 45 */ array(7, 9, 10, 22, 23, 27, 32, 33, 35, 36, 37, 38, 41, ),
/* 46 */ array(7, 9, 10, 22, 23, 27, 32, 33, 35, 36, 37, 38, 41, ),
/* 47 */ array(7, 9, 10, 41, ),
/* 48 */ array(3, 7, 22, 38, 69, 70, ),
/* 49 */ array(8, 13, 15, 27, 39, 44, ),
/* 50 */ array(8, 13, 15, 44, ),
/* 51 */ array(9, 10, 41, ),
/* 52 */ array(13, 34, 42, ),
/* 53 */ array(8, 15, 44, ),
/* 54 */ array(8, 15, 44, ),
/* 55 */ array(15, 25, ),
2009-12-05 15:10:47 +00:00
/* 56 */ array(15, 25, ),
2009-12-13 20:21:54 +00:00
/* 57 */ array(9, 41, ),
/* 58 */ array(9, 41, ),
/* 59 */ array(15, 44, ),
/* 60 */ array(15, 44, ),
/* 61 */ array(9, 41, ),
/* 62 */ array(15, 44, ),
/* 63 */ array(15, 25, ),
/* 64 */ array(15, 44, ),
/* 65 */ array(28, 44, 45, 57, 58, 59, 60, 61, 62, 63, 64, 65, ),
/* 66 */ array(28, 44, 45, 57, 58, 59, 60, 61, 62, 63, 64, 65, ),
/* 67 */ array(44, 45, 57, 58, 59, 60, 61, 62, 63, 64, 65, ),
/* 68 */ array(1, 2, 3, 4, 5, 6, 7, 22, ),
/* 69 */ array(3, 7, 22, 38, 69, 70, ),
/* 70 */ array(7, 10, 11, 18, ),
/* 71 */ array(7, 10, 11, 40, ),
2009-12-05 15:10:47 +00:00
/* 72 */ array(8, 15, 18, ),
2009-12-13 20:21:54 +00:00
/* 73 */ array(7, 10, 40, ),
/* 74 */ array(8, 15, 18, ),
2009-12-05 15:10:47 +00:00
/* 75 */ array(7, 10, ),
/* 76 */ array(7, 10, ),
/* 77 */ array(7, 10, ),
/* 78 */ array(7, 10, ),
/* 79 */ array(7, 10, ),
/* 80 */ array(7, 10, ),
/* 81 */ array(7, 10, ),
2009-12-13 20:21:54 +00:00
/* 82 */ array(7, 10, ),
2009-12-05 15:10:47 +00:00
/* 83 */ array(7, 10, ),
/* 84 */ array(7, 10, ),
/* 85 */ array(7, 10, ),
2009-12-13 20:21:54 +00:00
/* 86 */ array(8, 15, ),
/* 87 */ array(11, 13, ),
2009-12-05 15:10:47 +00:00
/* 88 */ array(15, ),
2009-12-13 20:21:54 +00:00
/* 89 */ array(15, ),
/* 90 */ array(9, ),
2009-12-05 15:10:47 +00:00
/* 91 */ array(13, ),
2009-12-13 20:21:54 +00:00
/* 92 */ array(13, ),
/* 93 */ array(15, ),
/* 94 */ array(13, ),
/* 95 */ array(15, ),
/* 96 */ array(28, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 66, 67, 68, ),
/* 97 */ array(8, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 66, 67, 68, ),
/* 98 */ array(28, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 66, 67, 68, ),
/* 99 */ array(17, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 66, 67, 68, ),
2009-12-05 15:10:47 +00:00
/* 100 */ array(46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 66, 67, 68, ),
/* 101 */ array(46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 66, 67, 68, ),
/* 102 */ array(46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 66, 67, 68, ),
/* 103 */ array(46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 66, 67, 68, ),
/* 104 */ array(46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 66, 67, 68, ),
/* 105 */ array(46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 66, 67, 68, ),
/* 106 */ array(46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 66, 67, 68, ),
2009-12-13 20:21:54 +00:00
/* 107 */ array(46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 66, 67, 68, ),
/* 108 */ array(7, 8, 10, 21, ),
/* 109 */ array(10, 12, 14, 16, ),
/* 110 */ array(8, 26, 30, 31, ),
/* 111 */ array(26, 30, 31, 43, ),
/* 112 */ array(7, 8, 10, 21, ),
/* 113 */ array(7, 8, 10, ),
/* 114 */ array(7, 10, 11, ),
/* 115 */ array(26, 30, 31, ),
/* 116 */ array(7, 10, 40, ),
/* 117 */ array(7, 8, 10, ),
/* 118 */ array(26, 30, 31, ),
/* 119 */ array(8, 15, ),
/* 120 */ array(25, 44, ),
/* 121 */ array(34, 42, ),
/* 122 */ array(8, 15, ),
/* 123 */ array(8, 15, ),
2009-12-05 15:10:47 +00:00
/* 124 */ array(8, 15, ),
2009-12-13 20:21:54 +00:00
/* 125 */ array(8, 44, ),
/* 126 */ array(8, 44, ),
/* 127 */ array(24, 44, ),
/* 128 */ array(8, 15, ),
2009-12-05 15:10:47 +00:00
/* 129 */ array(8, 15, ),
2009-12-13 20:21:54 +00:00
/* 130 */ array(34, 42, ),
/* 131 */ array(8, 44, ),
/* 132 */ array(8, 15, ),
/* 133 */ array(9, 10, ),
/* 134 */ array(28, 44, ),
/* 135 */ array(7, 27, ),
/* 136 */ array(8, 15, ),
2009-12-05 15:10:47 +00:00
/* 137 */ array(8, 15, ),
/* 138 */ array(8, 15, ),
2009-12-13 20:21:54 +00:00
/* 139 */ array(34, 42, ),
2009-12-05 15:10:47 +00:00
/* 140 */ array(8, 15, ),
2009-12-13 20:21:54 +00:00
/* 141 */ array(34, 42, ),
2009-12-05 15:10:47 +00:00
/* 142 */ array(8, 15, ),
/* 143 */ array(8, 15, ),
2009-12-13 20:21:54 +00:00
/* 144 */ array(8, 15, ),
/* 145 */ array(34, 42, ),
/* 146 */ array(8, 15, ),
/* 147 */ array(8, 15, ),
/* 148 */ array(25, 44, ),
/* 149 */ array(44, ),
/* 150 */ array(44, ),
/* 151 */ array(44, ),
/* 152 */ array(44, ),
/* 153 */ array(44, ),
/* 154 */ array(9, ),
/* 155 */ array(44, ),
/* 156 */ array(15, ),
/* 157 */ array(13, ),
/* 158 */ array(25, ),
/* 159 */ array(13, ),
2009-12-05 15:10:47 +00:00
/* 160 */ array(27, ),
/* 161 */ array(13, ),
2009-12-13 20:21:54 +00:00
/* 162 */ array(13, ),
/* 163 */ array(44, ),
/* 164 */ array(15, ),
/* 165 */ array(44, ),
/* 166 */ array(44, ),
/* 167 */ array(44, ),
2009-12-05 15:10:47 +00:00
/* 168 */ array(),
/* 169 */ array(),
/* 170 */ array(),
/* 171 */ array(),
/* 172 */ array(),
/* 173 */ array(),
2009-12-13 20:21:54 +00:00
/* 174 */ array(),
/* 175 */ array(7, 9, 10, 23, 35, 36, ),
/* 176 */ array(27, 34, 39, 43, ),
/* 177 */ array(11, 27, 39, ),
/* 178 */ array(21, 27, 39, ),
/* 179 */ array(27, 39, 44, ),
/* 180 */ array(27, 39, ),
/* 181 */ array(24, 43, ),
/* 182 */ array(27, 39, ),
/* 183 */ array(17, 24, ),
/* 184 */ array(11, 34, ),
/* 185 */ array(27, 39, ),
/* 186 */ array(8, 15, ),
/* 187 */ array(27, 39, ),
/* 188 */ array(10, 23, ),
/* 189 */ array(11, 25, ),
/* 190 */ array(10, 40, ),
/* 191 */ array(10, ),
/* 192 */ array(8, ),
/* 193 */ array(27, ),
/* 194 */ array(43, ),
/* 195 */ array(10, ),
/* 196 */ array(28, ),
/* 197 */ array(28, ),
/* 198 */ array(10, ),
/* 199 */ array(11, ),
2009-12-05 15:10:47 +00:00
/* 200 */ array(8, ),
/* 201 */ array(8, ),
2009-12-13 20:21:54 +00:00
/* 202 */ array(69, ),
/* 203 */ array(19, ),
/* 204 */ array(9, ),
/* 205 */ array(20, ),
2009-12-05 15:10:47 +00:00
/* 206 */ array(9, ),
2009-12-13 20:21:54 +00:00
/* 207 */ array(9, ),
2009-12-05 15:10:47 +00:00
/* 208 */ array(9, ),
2009-12-13 20:21:54 +00:00
/* 209 */ array(15, ),
/* 210 */ array(9, ),
/* 211 */ array(15, ),
/* 212 */ array(8, ),
/* 213 */ array(20, ),
/* 214 */ array(3, ),
/* 215 */ array(10, ),
/* 216 */ array(21, ),
/* 217 */ array(41, ),
/* 218 */ array(10, ),
/* 219 */ array(56, ),
/* 220 */ array(18, ),
/* 221 */ array(18, ),
/* 222 */ array(29, ),
/* 223 */ array(28, ),
/* 224 */ array(29, ),
/* 225 */ array(25, ),
2009-12-05 15:10:47 +00:00
/* 226 */ array(10, ),
2009-12-13 20:21:54 +00:00
/* 227 */ array(10, ),
/* 228 */ array(8, ),
/* 229 */ array(23, ),
/* 230 */ array(41, ),
/* 231 */ array(34, ),
/* 232 */ array(4, ),
2009-12-05 15:10:47 +00:00
/* 233 */ array(10, ),
2009-12-13 20:21:54 +00:00
/* 234 */ array(4, ),
/* 235 */ array(3, ),
/* 236 */ array(11, ),
2009-12-05 15:10:47 +00:00
/* 237 */ array(),
/* 238 */ array(),
/* 239 */ array(),
/* 240 */ array(),
/* 241 */ array(),
/* 242 */ array(),
/* 243 */ array(),
/* 244 */ array(),
/* 245 */ array(),
/* 246 */ array(),
/* 247 */ array(),
/* 248 */ array(),
/* 249 */ array(),
/* 250 */ array(),
/* 251 */ array(),
/* 252 */ array(),
/* 253 */ array(),
/* 254 */ array(),
/* 255 */ array(),
/* 256 */ array(),
/* 257 */ array(),
/* 258 */ array(),
/* 259 */ array(),
/* 260 */ array(),
/* 261 */ array(),
/* 262 */ array(),
/* 263 */ array(),
/* 264 */ array(),
/* 265 */ array(),
/* 266 */ array(),
/* 267 */ array(),
/* 268 */ array(),
/* 269 */ array(),
/* 270 */ array(),
/* 271 */ array(),
/* 272 */ array(),
/* 273 */ array(),
/* 274 */ array(),
/* 275 */ array(),
/* 276 */ array(),
/* 277 */ array(),
/* 278 */ array(),
/* 279 */ array(),
/* 280 */ array(),
/* 281 */ array(),
/* 282 */ array(),
/* 283 */ array(),
/* 284 */ array(),
/* 285 */ array(),
/* 286 */ array(),
/* 287 */ array(),
/* 288 */ array(),
/* 289 */ array(),
/* 290 */ array(),
/* 291 */ array(),
/* 292 */ array(),
/* 293 */ array(),
/* 294 */ array(),
/* 295 */ array(),
/* 296 */ array(),
/* 297 */ array(),
/* 298 */ array(),
/* 299 */ array(),
/* 300 */ array(),
/* 301 */ array(),
/* 302 */ array(),
/* 303 */ array(),
/* 304 */ array(),
/* 305 */ array(),
/* 306 */ array(),
/* 307 */ array(),
/* 308 */ array(),
/* 309 */ array(),
/* 310 */ array(),
/* 311 */ array(),
/* 312 */ array(),
/* 313 */ array(),
/* 314 */ array(),
/* 315 */ array(),
/* 316 */ array(),
/* 317 */ array(),
/* 318 */ array(),
/* 319 */ array(),
/* 320 */ array(),
/* 321 */ array(),
/* 322 */ array(),
/* 323 */ array(),
/* 324 */ array(),
/* 325 */ array(),
/* 326 */ array(),
/* 327 */ array(),
/* 328 */ array(),
/* 329 */ array(),
/* 330 */ array(),
/* 331 */ array(),
/* 332 */ array(),
/* 333 */ array(),
/* 334 */ array(),
/* 335 */ array(),
/* 336 */ array(),
/* 337 */ array(),
/* 338 */ array(),
/* 339 */ array(),
/* 340 */ array(),
/* 341 */ array(),
/* 342 */ array(),
/* 343 */ array(),
/* 344 */ array(),
/* 345 */ array(),
/* 346 */ array(),
/* 347 */ array(),
/* 348 */ array(),
/* 349 */ array(),
/* 350 */ array(),
/* 351 */ array(),
/* 352 */ array(),
/* 353 */ array(),
/* 354 */ array(),
/* 355 */ array(),
/* 356 */ array(),
/* 357 */ array(),
/* 358 */ array(),
/* 359 */ array(),
/* 360 */ array(),
/* 361 */ array(),
2009-12-13 20:21:54 +00:00
/* 362 */ array(),
/* 363 */ array(),
/* 364 */ array(),
2009-12-05 15:10:47 +00:00
);
static public $yy_default = array(
2009-12-13 20:21:54 +00:00
/* 0 */ 547, 547, 547, 547, 547, 547, 533, 547, 547, 547,
/* 10 */ 547, 547, 547, 547, 547, 547, 547, 491, 547, 491,
/* 20 */ 491, 547, 491, 547, 547, 547, 547, 547, 547, 547,
/* 30 */ 547, 547, 547, 547, 547, 547, 547, 547, 547, 547,
/* 40 */ 547, 547, 547, 547, 547, 547, 547, 547, 547, 547,
/* 50 */ 547, 547, 453, 547, 547, 412, 412, 547, 547, 412,
/* 60 */ 412, 547, 412, 412, 412, 501, 501, 501, 365, 547,
/* 70 */ 547, 463, 435, 463, 435, 547, 547, 547, 547, 547,
/* 80 */ 547, 547, 547, 547, 547, 547, 426, 456, 412, 412,
/* 90 */ 547, 448, 449, 412, 456, 412, 547, 547, 547, 547,
/* 100 */ 510, 511, 514, 499, 505, 515, 506, 507, 547, 547,
/* 110 */ 547, 547, 547, 547, 547, 496, 464, 547, 423, 547,
/* 120 */ 547, 484, 547, 547, 547, 547, 547, 490, 547, 547,
/* 130 */ 482, 547, 547, 547, 547, 463, 547, 547, 547, 483,
/* 140 */ 547, 461, 547, 547, 547, 485, 547, 547, 547, 502,
/* 150 */ 430, 414, 418, 431, 547, 395, 546, 479, 425, 450,
/* 160 */ 463, 454, 451, 421, 546, 534, 536, 535, 495, 463,
/* 170 */ 463, 495, 463, 495, 495, 547, 547, 417, 422, 413,
/* 180 */ 497, 547, 547, 547, 439, 516, 426, 422, 547, 477,
/* 190 */ 547, 547, 547, 452, 547, 547, 547, 547, 547, 547,
/* 200 */ 547, 547, 547, 419, 547, 547, 547, 547, 547, 547,
/* 210 */ 547, 547, 547, 547, 547, 547, 426, 547, 547, 426,
/* 220 */ 435, 435, 547, 547, 444, 477, 547, 547, 426, 547,
/* 230 */ 547, 439, 547, 547, 547, 547, 417, 473, 416, 440,
/* 240 */ 441, 410, 460, 474, 459, 472, 407, 442, 402, 471,
/* 250 */ 443, 543, 544, 366, 540, 424, 539, 447, 538, 375,
/* 260 */ 376, 434, 433, 432, 406, 405, 403, 436, 481, 457,
/* 270 */ 404, 462, 408, 438, 427, 426, 411, 486, 409, 465,
/* 280 */ 476, 466, 467, 478, 437, 458, 488, 468, 469, 480,
/* 290 */ 477, 470, 475, 428, 494, 493, 517, 399, 526, 398,
/* 300 */ 372, 498, 371, 525, 524, 520, 401, 519, 521, 522,
/* 310 */ 523, 400, 500, 387, 528, 527, 369, 388, 386, 384,
/* 320 */ 529, 389, 513, 390, 508, 509, 370, 512, 391, 518,
/* 330 */ 504, 396, 545, 541, 378, 542, 379, 394, 420, 377,
/* 340 */ 397, 444, 446, 492, 385, 445, 429, 380, 381, 392,
/* 350 */ 530, 393, 532, 368, 503, 531, 487, 489, 383, 382,
/* 360 */ 367, 374, 373, 455, 537,
2009-12-05 15:10:47 +00:00
);
const YYNOCODE = 113;
const YYSTACKDEPTH = 100;
2009-12-13 20:21:54 +00:00
const YYNSTATE = 365;
const YYNRULE = 182;
2009-12-05 15:10:47 +00:00
const YYERRORSYMBOL = 71;
const YYERRSYMDT = 'yy0';
const YYFALLBACK = 0;
static public $yyFallback = array(
);
static function Trace($TraceFILE, $zTracePrompt)
{
if (!$TraceFILE) {
$zTracePrompt = 0;
} elseif (!$zTracePrompt) {
$TraceFILE = 0;
}
self::$yyTraceFILE = $TraceFILE;
self::$yyTracePrompt = $zTracePrompt;
}
static function PrintTrace()
{
self::$yyTraceFILE = fopen('php://output', 'w');
self::$yyTracePrompt = '<br>';
}
static public $yyTraceFILE;
static 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(
2009-12-05 15:10:47 +00:00
'$', 'COMMENT', 'PHP', 'OTHER',
'SHORTTAGEND', 'SHORTTAGSTART', 'XML', 'LDEL',
'RDEL', 'DOLLAR', 'ID', 'EQUAL',
'FOREACH', 'PTR', 'IF', 'SPACE',
'FOR', 'SEMICOLON', 'INCDEC', 'TO',
'AS', 'APTR', 'LDELSLASH', 'INTEGER',
'COMMA', 'COLON', 'UNIMATH', 'OPENP',
'CLOSEP', 'QMARK', 'MATH', 'ANDSYM',
2009-12-13 20:21:54 +00:00
'NOT', 'TYPECAST', 'DOT', 'BOOLEAN',
'NULL', 'SINGLEQUOTESTRING', 'QUOTE', 'DOUBLECOLON',
'AT', 'HATCH', 'OPENB', 'CLOSEB',
'VERT', 'ISIN', 'ISDIVBY', 'ISNOTDIVBY',
2009-12-05 15:10:47 +00:00
'ISEVEN', 'ISNOTEVEN', 'ISEVENBY', 'ISNOTEVENBY',
'ISODD', 'ISNOTODD', 'ISODDBY', 'ISNOTODDBY',
'INSTANCEOF', 'EQUALS', 'NOTEQUALS', 'GREATERTHAN',
'LESSTHAN', 'GREATEREQUAL', 'LESSEQUAL', 'IDENTITY',
'NONEIDENTITY', 'MOD', 'LAND', 'LOR',
'LXOR', 'BACKTICK', 'DOLLARID', 'error',
'start', 'template', 'template_element', 'smartytag',
'value', 'attributes', 'variable', 'expr',
'ternary', 'varindexed', 'modifier', 'modparameters',
'ifexprs', 'statement', 'statements', 'optspace',
'varvar', 'foraction', 'array', 'specialclose',
'attribute', 'exprs', 'math', 'function',
'doublequoted', 'method', 'params', 'objectchain',
'arrayindex', 'object', 'indexdef', 'varvarele',
'objectelement', 'modparameter', 'ifexpr', 'ifcond',
'lop', 'arrayelements', 'arrayelement', 'doublequotedcontent',
);
static public $yyRuleName = array(
2009-12-05 15:10:47 +00:00
/* 0 */ "start ::= template",
/* 1 */ "template ::= template_element",
/* 2 */ "template ::= template template_element",
/* 3 */ "template_element ::= smartytag",
/* 4 */ "template_element ::= COMMENT",
/* 5 */ "template_element ::= PHP OTHER SHORTTAGEND",
/* 6 */ "template_element ::= SHORTTAGSTART OTHER SHORTTAGEND",
/* 7 */ "template_element ::= XML",
/* 8 */ "template_element ::= SHORTTAGEND",
/* 9 */ "template_element ::= OTHER",
/* 10 */ "smartytag ::= LDEL value RDEL",
/* 11 */ "smartytag ::= LDEL value attributes RDEL",
/* 12 */ "smartytag ::= LDEL variable attributes RDEL",
/* 13 */ "smartytag ::= LDEL expr attributes RDEL",
/* 14 */ "smartytag ::= LDEL ternary attributes RDEL",
/* 15 */ "smartytag ::= LDEL DOLLAR ID EQUAL value RDEL",
/* 16 */ "smartytag ::= LDEL DOLLAR ID EQUAL expr RDEL",
/* 17 */ "smartytag ::= LDEL DOLLAR ID EQUAL expr attributes RDEL",
/* 18 */ "smartytag ::= LDEL DOLLAR ID EQUAL ternary attributes RDEL",
/* 19 */ "smartytag ::= LDEL varindexed EQUAL expr attributes RDEL",
/* 20 */ "smartytag ::= LDEL varindexed EQUAL ternary attributes RDEL",
/* 21 */ "smartytag ::= LDEL ID attributes RDEL",
/* 22 */ "smartytag ::= LDEL FOREACH attributes RDEL",
/* 23 */ "smartytag ::= LDEL ID RDEL",
/* 24 */ "smartytag ::= LDEL ID PTR ID attributes RDEL",
/* 25 */ "smartytag ::= LDEL ID modifier modparameters attributes RDEL",
/* 26 */ "smartytag ::= LDEL ID PTR ID modifier modparameters attributes RDEL",
/* 27 */ "smartytag ::= LDEL IF SPACE ifexprs RDEL",
/* 28 */ "smartytag ::= LDEL IF SPACE statement RDEL",
/* 29 */ "smartytag ::= LDEL FOR SPACE statements SEMICOLON optspace ifexprs SEMICOLON optspace DOLLAR varvar foraction RDEL",
/* 30 */ "foraction ::= EQUAL expr",
/* 31 */ "foraction ::= INCDEC",
/* 32 */ "smartytag ::= LDEL FOR SPACE statement TO expr attributes RDEL",
/* 33 */ "smartytag ::= LDEL FOREACH SPACE value AS DOLLAR varvar RDEL",
/* 34 */ "smartytag ::= LDEL FOREACH SPACE value AS DOLLAR varvar APTR DOLLAR varvar RDEL",
/* 35 */ "smartytag ::= LDEL FOREACH SPACE array AS DOLLAR varvar RDEL",
/* 36 */ "smartytag ::= LDEL FOREACH SPACE array AS DOLLAR varvar APTR DOLLAR varvar RDEL",
/* 37 */ "smartytag ::= LDELSLASH ID RDEL",
/* 38 */ "smartytag ::= LDELSLASH specialclose RDEL",
/* 39 */ "specialclose ::= IF",
/* 40 */ "specialclose ::= FOR",
/* 41 */ "specialclose ::= FOREACH",
/* 42 */ "smartytag ::= LDELSLASH ID attributes RDEL",
/* 43 */ "smartytag ::= LDELSLASH ID modifier modparameters attributes RDEL",
/* 44 */ "smartytag ::= LDELSLASH ID PTR ID RDEL",
/* 45 */ "attributes ::= attributes attribute",
/* 46 */ "attributes ::= attribute",
/* 47 */ "attributes ::=",
/* 48 */ "attribute ::= SPACE ID EQUAL ID",
/* 49 */ "attribute ::= SPACE ID EQUAL expr",
/* 50 */ "attribute ::= SPACE ID EQUAL value",
/* 51 */ "attribute ::= SPACE ID EQUAL ternary",
/* 52 */ "attribute ::= SPACE ID",
/* 53 */ "attribute ::= SPACE INTEGER EQUAL expr",
/* 54 */ "statements ::= statement",
/* 55 */ "statements ::= statements COMMA statement",
/* 56 */ "statement ::= DOLLAR varvar EQUAL expr",
/* 57 */ "expr ::= ID",
/* 58 */ "expr ::= exprs",
/* 59 */ "expr ::= DOLLAR ID COLON ID",
/* 60 */ "expr ::= expr modifier modparameters",
/* 61 */ "exprs ::= value",
/* 62 */ "exprs ::= UNIMATH value",
/* 63 */ "exprs ::= exprs math value",
/* 64 */ "exprs ::= array",
/* 65 */ "ternary ::= OPENP ifexprs CLOSEP QMARK expr COLON expr",
/* 66 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr",
/* 67 */ "math ::= UNIMATH",
/* 68 */ "math ::= MATH",
/* 69 */ "math ::= ANDSYM",
/* 70 */ "value ::= variable",
2009-12-13 20:21:54 +00:00
/* 71 */ "value ::= NOT variable",
/* 72 */ "value ::= TYPECAST variable",
/* 73 */ "value ::= variable INCDEC",
/* 74 */ "value ::= INTEGER",
/* 75 */ "value ::= INTEGER DOT INTEGER",
/* 76 */ "value ::= BOOLEAN",
/* 77 */ "value ::= NULL",
/* 78 */ "value ::= function",
/* 79 */ "value ::= OPENP expr CLOSEP",
/* 80 */ "value ::= SINGLEQUOTESTRING",
/* 81 */ "value ::= QUOTE doublequoted QUOTE",
/* 82 */ "value ::= QUOTE QUOTE",
/* 83 */ "value ::= ID DOUBLECOLON method",
/* 84 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP",
/* 85 */ "value ::= ID DOUBLECOLON method objectchain",
/* 86 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain",
/* 87 */ "value ::= ID DOUBLECOLON ID",
/* 88 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex",
/* 89 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain",
/* 90 */ "value ::= smartytag",
/* 91 */ "variable ::= varindexed",
/* 92 */ "variable ::= DOLLAR varvar AT ID",
/* 93 */ "variable ::= object",
/* 94 */ "variable ::= HATCH ID HATCH",
/* 95 */ "variable ::= HATCH variable HATCH",
/* 96 */ "varindexed ::= DOLLAR varvar arrayindex",
/* 97 */ "arrayindex ::= arrayindex indexdef",
/* 98 */ "arrayindex ::=",
/* 99 */ "indexdef ::= DOT DOLLAR varvar",
/* 100 */ "indexdef ::= DOT DOLLAR varvar AT ID",
/* 101 */ "indexdef ::= DOT ID",
/* 102 */ "indexdef ::= DOT BOOLEAN",
/* 103 */ "indexdef ::= DOT NULL",
/* 104 */ "indexdef ::= DOT INTEGER",
/* 105 */ "indexdef ::= DOT LDEL exprs RDEL",
/* 106 */ "indexdef ::= OPENB ID CLOSEB",
/* 107 */ "indexdef ::= OPENB ID DOT ID CLOSEB",
/* 108 */ "indexdef ::= OPENB exprs CLOSEB",
/* 109 */ "indexdef ::= OPENB CLOSEB",
/* 110 */ "varvar ::= varvarele",
/* 111 */ "varvar ::= varvar varvarele",
/* 112 */ "varvarele ::= ID",
/* 113 */ "varvarele ::= LDEL expr RDEL",
/* 114 */ "object ::= varindexed objectchain",
/* 115 */ "objectchain ::= objectelement",
/* 116 */ "objectchain ::= objectchain objectelement",
/* 117 */ "objectelement ::= PTR ID arrayindex",
/* 118 */ "objectelement ::= PTR variable arrayindex",
/* 119 */ "objectelement ::= PTR LDEL expr RDEL arrayindex",
/* 120 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex",
/* 121 */ "objectelement ::= PTR method",
/* 122 */ "function ::= ID OPENP params CLOSEP",
/* 123 */ "method ::= ID OPENP params CLOSEP",
/* 124 */ "params ::= expr COMMA params",
/* 125 */ "params ::= expr",
/* 126 */ "params ::=",
/* 127 */ "modifier ::= VERT AT ID",
/* 128 */ "modifier ::= VERT ID",
/* 129 */ "modparameters ::= modparameters modparameter",
/* 130 */ "modparameters ::=",
/* 131 */ "modparameter ::= COLON exprs",
/* 132 */ "modparameter ::= COLON ID",
/* 133 */ "ifexprs ::= ifexpr",
/* 134 */ "ifexprs ::= NOT ifexprs",
/* 135 */ "ifexprs ::= OPENP ifexprs CLOSEP",
/* 136 */ "ifexpr ::= expr",
/* 137 */ "ifexpr ::= expr ifcond expr",
/* 138 */ "ifexpr ::= expr ISIN array",
/* 139 */ "ifexpr ::= expr ISIN value",
/* 140 */ "ifexpr ::= ifexprs lop ifexprs",
/* 141 */ "ifexpr ::= ifexprs ISDIVBY ifexprs",
/* 142 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs",
/* 143 */ "ifexpr ::= ifexprs ISEVEN",
/* 144 */ "ifexpr ::= ifexprs ISNOTEVEN",
/* 145 */ "ifexpr ::= ifexprs ISEVENBY ifexprs",
/* 146 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs",
/* 147 */ "ifexpr ::= ifexprs ISODD",
/* 148 */ "ifexpr ::= ifexprs ISNOTODD",
/* 149 */ "ifexpr ::= ifexprs ISODDBY ifexprs",
/* 150 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs",
/* 151 */ "ifexpr ::= value INSTANCEOF ID",
/* 152 */ "ifexpr ::= value INSTANCEOF value",
/* 153 */ "ifcond ::= EQUALS",
/* 154 */ "ifcond ::= NOTEQUALS",
/* 155 */ "ifcond ::= GREATERTHAN",
/* 156 */ "ifcond ::= LESSTHAN",
/* 157 */ "ifcond ::= GREATEREQUAL",
/* 158 */ "ifcond ::= LESSEQUAL",
/* 159 */ "ifcond ::= IDENTITY",
/* 160 */ "ifcond ::= NONEIDENTITY",
/* 161 */ "ifcond ::= MOD",
/* 162 */ "lop ::= LAND",
/* 163 */ "lop ::= LOR",
/* 164 */ "lop ::= LXOR",
/* 165 */ "array ::= OPENB arrayelements CLOSEB",
/* 166 */ "arrayelements ::= arrayelement",
/* 167 */ "arrayelements ::= arrayelements COMMA arrayelement",
/* 168 */ "arrayelements ::=",
/* 169 */ "arrayelement ::= value APTR expr",
/* 170 */ "arrayelement ::= ID APTR expr",
/* 171 */ "arrayelement ::= expr",
/* 172 */ "doublequoted ::= doublequoted doublequotedcontent",
/* 173 */ "doublequoted ::= doublequotedcontent",
/* 174 */ "doublequotedcontent ::= BACKTICK variable BACKTICK",
/* 175 */ "doublequotedcontent ::= DOLLARID",
/* 176 */ "doublequotedcontent ::= LDEL variable RDEL",
/* 177 */ "doublequotedcontent ::= LDEL expr RDEL",
/* 178 */ "doublequotedcontent ::= smartytag",
/* 179 */ "doublequotedcontent ::= OTHER",
/* 180 */ "optspace ::= SPACE",
/* 181 */ "optspace ::=",
);
function tokenName($tokenType)
{
if ($tokenType === 0) {
return 'End of Input';
}
if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) {
return $this->yyTokenName[$tokenType];
} else {
return "Unknown";
}
}
static function yy_destructor($yymajor, $yypminor)
{
switch ($yymajor) {
default: break; /* If no destructor action specified: do nothing */
}
}
function yy_pop_parser_stack()
{
if (!count($this->yystack)) {
return;
}
$yytos = array_pop($this->yystack);
if (self::$yyTraceFILE && $this->yyidx >= 0) {
fwrite(self::$yyTraceFILE,
self::$yyTracePrompt . 'Popping ' . $this->yyTokenName[$yytos->major] .
"\n");
}
$yymajor = $yytos->major;
self::yy_destructor($yymajor, $yytos->minor);
$this->yyidx--;
return $yymajor;
}
function __destruct()
{
while ($this->yyidx >= 0) {
$this->yy_pop_parser_stack();
}
if (is_resource(self::$yyTraceFILE)) {
fclose(self::$yyTraceFILE);
}
}
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 {
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]['rhs'];
$nextstate = $this->yy_find_reduce_action(
$this->yystack[$this->yyidx]->stateno,
self::$yyRuleInfo[$yyruleno]['lhs']);
if (isset(self::$yyExpectedTokens[$nextstate])) {
$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
$this->yyidx++;
$x = new TP_yyStackEntry;
$x->stateno = $nextstate;
$x->major = self::$yyRuleInfo[$yyruleno]['lhs'];
$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);
return array_unique($expected);
}
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 {
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]['rhs'];
$nextstate = $this->yy_find_reduce_action(
$this->yystack[$this->yyidx]->stateno,
self::$yyRuleInfo[$yyruleno]['lhs']);
if (isset(self::$yyExpectedTokens[$nextstate]) &&
in_array($token, self::$yyExpectedTokens[$nextstate], true)) {
$this->yyidx = $yyidx;
$this->yystack = $stack;
return true;
}
if ($nextstate < self::YYNSTATE) {
// we need to shift a non-terminal
$this->yyidx++;
$x = new TP_yyStackEntry;
$x->stateno = $nextstate;
$x->major = self::$yyRuleInfo[$yyruleno]['lhs'];
$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;
}
2009-12-05 15:10:47 +00:00
function yy_find_shift_action($iLookAhead)
{
$stateno = $this->yystack[$this->yyidx]->stateno;
/* if ($this->yyidx < 0) return self::YY_NO_ACTION; */
if (!isset(self::$yy_shift_ofst[$stateno])) {
// no shift actions
return self::$yy_default[$stateno];
}
$i = self::$yy_shift_ofst[$stateno];
if ($i === self::YY_SHIFT_USE_DFLT) {
return self::$yy_default[$stateno];
}
if ($iLookAhead == self::YYNOCODE) {
return self::YY_NO_ACTION;
}
$i += $iLookAhead;
if ($i < 0 || $i >= self::YY_SZ_ACTTAB ||
self::$yy_lookahead[$i] != $iLookAhead) {
if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback)
&& ($iFallback = self::$yyFallback[$iLookAhead]) != 0) {
if (self::$yyTraceFILE) {
fwrite(self::$yyTraceFILE, self::$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];
}
}
function yy_find_reduce_action($stateno, $iLookAhead)
{
/* $stateno = $this->yystack[$this->yyidx]->stateno; */
if (!isset(self::$yy_reduce_ofst[$stateno])) {
return self::$yy_default[$stateno];
}
$i = self::$yy_reduce_ofst[$stateno];
if ($i == self::YY_REDUCE_USE_DFLT) {
return self::$yy_default[$stateno];
}
if ($iLookAhead == self::YYNOCODE) {
return self::YY_NO_ACTION;
}
$i += $iLookAhead;
if ($i < 0 || $i >= self::YY_SZ_ACTTAB ||
self::$yy_lookahead[$i] != $iLookAhead) {
return self::$yy_default[$stateno];
} else {
return self::$yy_action[$i];
}
}
function yy_shift($yyNewState, $yyMajor, $yypMinor)
{
$this->yyidx++;
if ($this->yyidx >= self::YYSTACKDEPTH) {
$this->yyidx--;
if (self::$yyTraceFILE) {
fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt);
}
while ($this->yyidx >= 0) {
$this->yy_pop_parser_stack();
}
return;
}
$yytos = new TP_yyStackEntry;
$yytos->stateno = $yyNewState;
$yytos->major = $yyMajor;
$yytos->minor = $yypMinor;
array_push($this->yystack, $yytos);
if (self::$yyTraceFILE && $this->yyidx > 0) {
fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt,
$yyNewState);
fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt);
for($i = 1; $i <= $this->yyidx; $i++) {
fprintf(self::$yyTraceFILE, " %s",
$this->yyTokenName[$this->yystack[$i]->major]);
}
fwrite(self::$yyTraceFILE,"\n");
}
}
static public $yyRuleInfo = array(
2009-12-05 15:10:47 +00:00
array( 'lhs' => 72, 'rhs' => 1 ),
array( 'lhs' => 73, 'rhs' => 1 ),
array( 'lhs' => 73, 'rhs' => 2 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 3 ),
array( 'lhs' => 74, 'rhs' => 3 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 4 ),
array( 'lhs' => 75, 'rhs' => 4 ),
array( 'lhs' => 75, 'rhs' => 4 ),
array( 'lhs' => 75, 'rhs' => 4 ),
array( 'lhs' => 75, 'rhs' => 6 ),
array( 'lhs' => 75, 'rhs' => 6 ),
array( 'lhs' => 75, 'rhs' => 7 ),
array( 'lhs' => 75, 'rhs' => 7 ),
array( 'lhs' => 75, 'rhs' => 6 ),
array( 'lhs' => 75, 'rhs' => 6 ),
array( 'lhs' => 75, 'rhs' => 4 ),
array( 'lhs' => 75, 'rhs' => 4 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 6 ),
array( 'lhs' => 75, 'rhs' => 6 ),
array( 'lhs' => 75, 'rhs' => 8 ),
array( 'lhs' => 75, 'rhs' => 5 ),
array( 'lhs' => 75, 'rhs' => 5 ),
array( 'lhs' => 75, 'rhs' => 13 ),
array( 'lhs' => 89, 'rhs' => 2 ),
array( 'lhs' => 89, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 8 ),
array( 'lhs' => 75, 'rhs' => 8 ),
array( 'lhs' => 75, 'rhs' => 11 ),
array( 'lhs' => 75, 'rhs' => 8 ),
array( 'lhs' => 75, 'rhs' => 11 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 91, 'rhs' => 1 ),
array( 'lhs' => 91, 'rhs' => 1 ),
array( 'lhs' => 91, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 4 ),
array( 'lhs' => 75, 'rhs' => 6 ),
array( 'lhs' => 75, 'rhs' => 5 ),
array( 'lhs' => 77, 'rhs' => 2 ),
array( 'lhs' => 77, 'rhs' => 1 ),
array( 'lhs' => 77, 'rhs' => 0 ),
array( 'lhs' => 92, 'rhs' => 4 ),
array( 'lhs' => 92, 'rhs' => 4 ),
array( 'lhs' => 92, 'rhs' => 4 ),
array( 'lhs' => 92, 'rhs' => 4 ),
array( 'lhs' => 92, 'rhs' => 2 ),
array( 'lhs' => 92, 'rhs' => 4 ),
array( 'lhs' => 86, 'rhs' => 1 ),
array( 'lhs' => 86, 'rhs' => 3 ),
array( 'lhs' => 85, 'rhs' => 4 ),
array( 'lhs' => 79, 'rhs' => 1 ),
array( 'lhs' => 79, 'rhs' => 1 ),
array( 'lhs' => 79, 'rhs' => 4 ),
array( 'lhs' => 79, 'rhs' => 3 ),
array( 'lhs' => 93, 'rhs' => 1 ),
array( 'lhs' => 93, 'rhs' => 2 ),
array( 'lhs' => 93, 'rhs' => 3 ),
array( 'lhs' => 93, 'rhs' => 1 ),
array( 'lhs' => 80, 'rhs' => 7 ),
array( 'lhs' => 80, 'rhs' => 7 ),
array( 'lhs' => 94, 'rhs' => 1 ),
array( 'lhs' => 94, 'rhs' => 1 ),
array( 'lhs' => 94, 'rhs' => 1 ),
array( 'lhs' => 76, 'rhs' => 1 ),
array( 'lhs' => 76, 'rhs' => 2 ),
array( 'lhs' => 76, 'rhs' => 2 ),
2009-12-13 20:21:54 +00:00
array( 'lhs' => 76, 'rhs' => 2 ),
2009-12-05 15:10:47 +00:00
array( 'lhs' => 76, 'rhs' => 1 ),
array( 'lhs' => 76, 'rhs' => 3 ),
array( 'lhs' => 76, 'rhs' => 1 ),
array( 'lhs' => 76, 'rhs' => 1 ),
array( 'lhs' => 76, 'rhs' => 1 ),
array( 'lhs' => 76, 'rhs' => 3 ),
array( 'lhs' => 76, 'rhs' => 1 ),
array( 'lhs' => 76, 'rhs' => 3 ),
array( 'lhs' => 76, 'rhs' => 2 ),
array( 'lhs' => 76, 'rhs' => 3 ),
array( 'lhs' => 76, 'rhs' => 7 ),
array( 'lhs' => 76, 'rhs' => 4 ),
array( 'lhs' => 76, 'rhs' => 8 ),
array( 'lhs' => 76, 'rhs' => 3 ),
array( 'lhs' => 76, 'rhs' => 5 ),
array( 'lhs' => 76, 'rhs' => 6 ),
array( 'lhs' => 76, 'rhs' => 1 ),
array( 'lhs' => 78, 'rhs' => 1 ),
array( 'lhs' => 78, 'rhs' => 4 ),
array( 'lhs' => 78, 'rhs' => 1 ),
array( 'lhs' => 78, 'rhs' => 3 ),
array( 'lhs' => 78, 'rhs' => 3 ),
array( 'lhs' => 81, 'rhs' => 3 ),
array( 'lhs' => 100, 'rhs' => 2 ),
array( 'lhs' => 100, 'rhs' => 0 ),
array( 'lhs' => 102, 'rhs' => 3 ),
array( 'lhs' => 102, 'rhs' => 5 ),
array( 'lhs' => 102, 'rhs' => 2 ),
array( 'lhs' => 102, 'rhs' => 2 ),
array( 'lhs' => 102, 'rhs' => 2 ),
array( 'lhs' => 102, 'rhs' => 2 ),
array( 'lhs' => 102, 'rhs' => 4 ),
array( 'lhs' => 102, 'rhs' => 3 ),
array( 'lhs' => 102, 'rhs' => 5 ),
array( 'lhs' => 102, 'rhs' => 3 ),
array( 'lhs' => 102, 'rhs' => 2 ),
array( 'lhs' => 88, 'rhs' => 1 ),
array( 'lhs' => 88, 'rhs' => 2 ),
array( 'lhs' => 103, 'rhs' => 1 ),
array( 'lhs' => 103, 'rhs' => 3 ),
array( 'lhs' => 101, 'rhs' => 2 ),
array( 'lhs' => 99, 'rhs' => 1 ),
array( 'lhs' => 99, 'rhs' => 2 ),
array( 'lhs' => 104, 'rhs' => 3 ),
array( 'lhs' => 104, 'rhs' => 3 ),
array( 'lhs' => 104, 'rhs' => 5 ),
array( 'lhs' => 104, 'rhs' => 6 ),
array( 'lhs' => 104, 'rhs' => 2 ),
array( 'lhs' => 95, 'rhs' => 4 ),
array( 'lhs' => 97, 'rhs' => 4 ),
array( 'lhs' => 98, 'rhs' => 3 ),
array( 'lhs' => 98, 'rhs' => 1 ),
array( 'lhs' => 98, 'rhs' => 0 ),
array( 'lhs' => 82, 'rhs' => 3 ),
array( 'lhs' => 82, 'rhs' => 2 ),
array( 'lhs' => 83, 'rhs' => 2 ),
array( 'lhs' => 83, 'rhs' => 0 ),
array( 'lhs' => 105, 'rhs' => 2 ),
array( 'lhs' => 105, 'rhs' => 2 ),
array( 'lhs' => 84, 'rhs' => 1 ),
array( 'lhs' => 84, 'rhs' => 2 ),
array( 'lhs' => 84, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 1 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 90, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 0 ),
array( 'lhs' => 110, 'rhs' => 3 ),
array( 'lhs' => 110, 'rhs' => 3 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 96, 'rhs' => 2 ),
array( 'lhs' => 96, 'rhs' => 1 ),
array( 'lhs' => 111, 'rhs' => 3 ),
array( 'lhs' => 111, 'rhs' => 1 ),
array( 'lhs' => 111, 'rhs' => 3 ),
array( 'lhs' => 111, 'rhs' => 3 ),
array( 'lhs' => 111, 'rhs' => 1 ),
array( 'lhs' => 111, 'rhs' => 1 ),
array( 'lhs' => 87, 'rhs' => 1 ),
array( 'lhs' => 87, 'rhs' => 0 ),
);
static public $yyReduceMap = array(
2009-12-05 15:10:47 +00:00
0 => 0,
39 => 0,
40 => 0,
41 => 0,
61 => 0,
70 => 0,
2009-12-13 20:21:54 +00:00
74 => 0,
2009-12-05 15:10:47 +00:00
76 => 0,
77 => 0,
2009-12-13 20:21:54 +00:00
78 => 0,
80 => 0,
93 => 0,
166 => 0,
2009-12-05 15:10:47 +00:00
1 => 1,
58 => 1,
64 => 1,
67 => 1,
68 => 1,
2009-12-13 20:21:54 +00:00
110 => 1,
133 => 1,
173 => 1,
2009-12-05 15:10:47 +00:00
179 => 1,
2009-12-13 20:21:54 +00:00
180 => 1,
2009-12-05 15:10:47 +00:00
2 => 2,
2009-12-13 20:21:54 +00:00
129 => 2,
2009-12-05 15:10:47 +00:00
3 => 3,
4 => 4,
5 => 5,
6 => 6,
7 => 7,
8 => 8,
9 => 9,
10 => 10,
11 => 11,
12 => 11,
13 => 11,
14 => 11,
15 => 15,
16 => 15,
17 => 17,
18 => 17,
19 => 19,
20 => 19,
21 => 21,
22 => 21,
23 => 23,
24 => 24,
25 => 25,
26 => 26,
27 => 27,
28 => 27,
29 => 29,
30 => 30,
31 => 31,
46 => 31,
2009-12-13 20:21:54 +00:00
125 => 31,
171 => 31,
2009-12-05 15:10:47 +00:00
32 => 32,
33 => 33,
34 => 34,
35 => 35,
36 => 36,
37 => 37,
38 => 37,
42 => 42,
43 => 43,
44 => 44,
45 => 45,
47 => 47,
48 => 48,
49 => 49,
50 => 49,
51 => 49,
53 => 49,
52 => 52,
54 => 54,
55 => 55,
56 => 56,
57 => 57,
59 => 59,
60 => 60,
62 => 62,
72 => 62,
2009-12-13 20:21:54 +00:00
73 => 62,
2009-12-05 15:10:47 +00:00
63 => 63,
65 => 65,
66 => 65,
69 => 69,
2009-12-13 20:21:54 +00:00
71 => 71,
75 => 75,
79 => 79,
2009-12-05 15:10:47 +00:00
81 => 81,
82 => 82,
83 => 83,
84 => 84,
85 => 85,
86 => 86,
87 => 87,
88 => 88,
89 => 89,
90 => 90,
91 => 91,
2009-12-13 20:21:54 +00:00
92 => 92,
2009-12-05 15:10:47 +00:00
94 => 94,
95 => 95,
96 => 96,
97 => 97,
2009-12-13 20:21:54 +00:00
172 => 97,
2009-12-05 15:10:47 +00:00
98 => 98,
2009-12-13 20:21:54 +00:00
130 => 98,
2009-12-05 15:10:47 +00:00
99 => 99,
100 => 100,
2009-12-13 20:21:54 +00:00
101 => 101,
102 => 101,
103 => 101,
2009-12-05 15:10:47 +00:00
104 => 104,
105 => 105,
2009-12-13 20:21:54 +00:00
108 => 105,
2009-12-05 15:10:47 +00:00
106 => 106,
2009-12-13 20:21:54 +00:00
107 => 107,
109 => 109,
181 => 109,
2009-12-05 15:10:47 +00:00
111 => 111,
112 => 112,
113 => 113,
2009-12-13 20:21:54 +00:00
135 => 113,
2009-12-05 15:10:47 +00:00
114 => 114,
115 => 115,
116 => 116,
117 => 117,
118 => 118,
119 => 119,
120 => 120,
121 => 121,
122 => 122,
123 => 123,
2009-12-13 20:21:54 +00:00
124 => 124,
2009-12-05 15:10:47 +00:00
126 => 126,
127 => 127,
2009-12-13 20:21:54 +00:00
128 => 128,
2009-12-05 15:10:47 +00:00
131 => 131,
2009-12-13 20:21:54 +00:00
132 => 132,
134 => 134,
2009-12-05 15:10:47 +00:00
136 => 136,
137 => 137,
2009-12-13 20:21:54 +00:00
140 => 137,
151 => 137,
2009-12-05 15:10:47 +00:00
138 => 138,
2009-12-13 20:21:54 +00:00
139 => 139,
2009-12-05 15:10:47 +00:00
141 => 141,
142 => 142,
143 => 143,
2009-12-13 20:21:54 +00:00
148 => 143,
2009-12-05 15:10:47 +00:00
144 => 144,
2009-12-13 20:21:54 +00:00
147 => 144,
2009-12-05 15:10:47 +00:00
145 => 145,
2009-12-13 20:21:54 +00:00
150 => 145,
146 => 146,
149 => 146,
2009-12-05 15:10:47 +00:00
152 => 152,
153 => 153,
154 => 154,
155 => 155,
156 => 156,
157 => 157,
158 => 158,
159 => 159,
160 => 160,
161 => 161,
162 => 162,
163 => 163,
164 => 164,
2009-12-13 20:21:54 +00:00
165 => 165,
2009-12-05 15:10:47 +00:00
167 => 167,
168 => 168,
169 => 169,
2009-12-13 20:21:54 +00:00
170 => 170,
2009-12-05 15:10:47 +00:00
174 => 174,
2009-12-13 20:21:54 +00:00
176 => 174,
175 => 175,
2009-12-05 15:10:47 +00:00
177 => 177,
2009-12-13 20:21:54 +00:00
178 => 178,
);
2009-12-05 15:10:47 +00:00
#line 78 "smarty_internal_templateparser.y"
function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
2009-12-13 20:21:54 +00:00
#line 1825 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 84 "smarty_internal_templateparser.y"
function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
2009-12-13 20:21:54 +00:00
#line 1828 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 86 "smarty_internal_templateparser.y"
function yy_r2(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
2009-12-13 20:21:54 +00:00
#line 1831 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 92 "smarty_internal_templateparser.y"
function yy_r3(){
2009-10-22 23:05:14 +00:00
if ($this->compiler->has_code) {
$tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array();
$this->_retvalue = $this->cacher->processNocacheCode($tmp.$this->yystack[$this->yyidx + 0]->minor, $this->compiler,true);
2009-12-05 15:10:47 +00:00
} else { $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;} $this->compiler->has_variable_string = false; }
2009-12-13 20:21:54 +00:00
#line 1838 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 99 "smarty_internal_templateparser.y"
function yy_r4(){ $this->_retvalue = ''; }
2009-12-13 20:21:54 +00:00
#line 1841 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 104 "smarty_internal_templateparser.y"
function yy_r5(){if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU) {
2009-10-27 20:25:16 +00:00
$this->_retvalue = $this->cacher->processNocacheCode("<?php echo htmlspecialchars('<?php".str_replace("'","\'",$this->yystack[$this->yyidx + -1]->minor)."?>', ENT_QUOTES);?>\n", $this->compiler, false);
2009-10-22 23:05:14 +00:00
} elseif ($this->sec_obj->php_handling == SMARTY_PHP_QUOTE) {
$this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('<?php'.$this->yystack[$this->yyidx + -1]->minor.'?>', ENT_QUOTES), $this->compiler, false);
}elseif ($this->sec_obj->php_handling == SMARTY_PHP_ALLOW) {
$this->_retvalue = $this->cacher->processNocacheCode('<?php'.$this->yystack[$this->yyidx + -1]->minor.'?>', $this->compiler, true);
}elseif ($this->sec_obj->php_handling == SMARTY_PHP_REMOVE) {
$this->_retvalue = '';
}
2009-12-05 15:10:47 +00:00
}
2009-12-13 20:21:54 +00:00
#line 1853 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 115 "smarty_internal_templateparser.y"
function yy_r6(){
if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU) {
$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '<?=".$this->yystack[$this->yyidx + -1]->minor."?>'?>\n", $this->compiler, false);
2009-10-22 23:05:14 +00:00
} elseif ($this->sec_obj->php_handling == SMARTY_PHP_QUOTE) {
$this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('<?='.$this->yystack[$this->yyidx + -1]->minor.'?>', ENT_QUOTES), $this->compiler, false);
}elseif ($this->sec_obj->php_handling == SMARTY_PHP_ALLOW) {
$this->_retvalue = $this->cacher->processNocacheCode('<?='.$this->yystack[$this->yyidx + -1]->minor.'?>', $this->compiler, true);
2009-10-22 23:05:14 +00:00
}elseif ($this->sec_obj == SMARTY_PHP_REMOVE) {
$this->_retvalue = '';
2009-10-22 23:05:14 +00:00
}
2009-12-05 15:10:47 +00:00
}
2009-12-13 20:21:54 +00:00
#line 1866 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 128 "smarty_internal_templateparser.y"
function yy_r7(){ $this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("<?php echo '<?xml';?>", $this->compiler, true); }
2009-12-13 20:21:54 +00:00
#line 1869 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 129 "smarty_internal_templateparser.y"
function yy_r8(){$this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("<?php echo '?>';?>\n", $this->compiler, true); }
2009-12-13 20:21:54 +00:00
#line 1872 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 131 "smarty_internal_templateparser.y"
function yy_r9(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false); }
2009-12-13 20:21:54 +00:00
#line 1875 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 139 "smarty_internal_templateparser.y"
function yy_r10(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array('value'=>$this->yystack[$this->yyidx + -1]->minor)); }
2009-12-13 20:21:54 +00:00
#line 1878 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 140 "smarty_internal_templateparser.y"
function yy_r11(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)); }
2009-12-13 20:21:54 +00:00
#line 1881 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 151 "smarty_internal_templateparser.y"
function yy_r15(){ $this->_retvalue = $this->compiler->compileTag('assign',array('value'=>$this->yystack[$this->yyidx + -1]->minor,'var'=>"'".$this->yystack[$this->yyidx + -3]->minor."'")); }
2009-12-13 20:21:54 +00:00
#line 1884 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 153 "smarty_internal_templateparser.y"
function yy_r17(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor,'var'=>"'".$this->yystack[$this->yyidx + -4]->minor."'"),$this->yystack[$this->yyidx + -1]->minor)); }
2009-12-13 20:21:54 +00:00
#line 1887 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 155 "smarty_internal_templateparser.y"
function yy_r19(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor)); }
2009-12-13 20:21:54 +00:00
#line 1890 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 158 "smarty_internal_templateparser.y"
function yy_r21(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,$this->yystack[$this->yyidx + -1]->minor); }
2009-12-13 20:21:54 +00:00
#line 1893 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 160 "smarty_internal_templateparser.y"
function yy_r23(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,array()); }
2009-12-13 20:21:54 +00:00
#line 1896 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 162 "smarty_internal_templateparser.y"
function yy_r24(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)); }
2009-12-13 20:21:54 +00:00
#line 1899 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 164 "smarty_internal_templateparser.y"
function yy_r25(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor).'<?php echo ';
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -3]->minor[0],'modifier')) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>";
2009-10-22 23:05:14 +00:00
} else {
if (is_callable($this->yystack[$this->yyidx + -3]->minor[0])) {
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -3]->minor[0], $this->compiler)) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>";
2009-10-22 23:05:14 +00:00
}
} else {
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -3]->minor[0] . "\"");
2009-10-22 23:05:14 +00:00
}
}
2009-12-05 15:10:47 +00:00
}
2009-12-13 20:21:54 +00:00
#line 1914 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 178 "smarty_internal_templateparser.y"
function yy_r26(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -4]->minor),$this->yystack[$this->yyidx + -1]->minor)).'<?php echo ';
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -3]->minor[0],'modifier')) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>";
} else {
if (is_callable($this->yystack[$this->yyidx + -3]->minor[0])) {
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -3]->minor[0], $this->compiler)) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>";
}
} else {
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -3]->minor[0] . "\"");
}
}
2009-12-05 15:10:47 +00:00
}
2009-12-13 20:21:54 +00:00
#line 1929 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 192 "smarty_internal_templateparser.y"
function yy_r27(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); }
2009-12-13 20:21:54 +00:00
#line 1932 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 195 "smarty_internal_templateparser.y"
function yy_r29(){
2009-12-05 15:10:47 +00:00
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -11]->minor,array('start'=>$this->yystack[$this->yyidx + -9]->minor,'ifexp'=>$this->yystack[$this->yyidx + -6]->minor,'varloop'=>$this->yystack[$this->yyidx + -2]->minor,'loop'=>$this->yystack[$this->yyidx + -1]->minor)); }
2009-12-13 20:21:54 +00:00
#line 1936 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 197 "smarty_internal_templateparser.y"
function yy_r30(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; }
2009-12-13 20:21:54 +00:00
#line 1939 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 198 "smarty_internal_templateparser.y"
function yy_r31(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
2009-12-13 20:21:54 +00:00
#line 1942 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 199 "smarty_internal_templateparser.y"
function yy_r32(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array_merge(array('start'=>$this->yystack[$this->yyidx + -4]->minor,'to'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)); }
2009-12-13 20:21:54 +00:00
#line 1945 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 202 "smarty_internal_templateparser.y"
function yy_r33(){
2009-12-05 15:10:47 +00:00
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array('from'=>$this->yystack[$this->yyidx + -4]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor)); }
2009-12-13 20:21:54 +00:00
#line 1949 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 204 "smarty_internal_templateparser.y"
function yy_r34(){
2009-12-05 15:10:47 +00:00
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -9]->minor,array('from'=>$this->yystack[$this->yyidx + -7]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor,'key'=>$this->yystack[$this->yyidx + -4]->minor)); }
2009-12-13 20:21:54 +00:00
#line 1953 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 206 "smarty_internal_templateparser.y"
function yy_r35(){
2009-12-05 15:10:47 +00:00
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array('from'=>$this->yystack[$this->yyidx + -4]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor)); }
2009-12-13 20:21:54 +00:00
#line 1957 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 208 "smarty_internal_templateparser.y"
function yy_r36(){
2009-12-05 15:10:47 +00:00
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -9]->minor,array('from'=>$this->yystack[$this->yyidx + -7]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor,'key'=>$this->yystack[$this->yyidx + -4]->minor)); }
2009-12-13 20:21:54 +00:00
#line 1961 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 212 "smarty_internal_templateparser.y"
function yy_r37(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',array()); }
2009-12-13 20:21:54 +00:00
#line 1964 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 217 "smarty_internal_templateparser.y"
function yy_r42(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',$this->yystack[$this->yyidx + -1]->minor); }
2009-12-13 20:21:54 +00:00
#line 1967 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 218 "smarty_internal_templateparser.y"
function yy_r43(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor.'close',$this->yystack[$this->yyidx + -1]->minor).'<?php echo ';
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -3]->minor[0],'modifier')) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>";
2009-10-22 23:05:14 +00:00
} else {
if (is_callable($this->yystack[$this->yyidx + -3]->minor[0])) {
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -3]->minor[0], $this->compiler)) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>";
2009-10-22 23:05:14 +00:00
}
} else {
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -3]->minor[0] . "\"");
2009-10-22 23:05:14 +00:00
}
}
2009-12-05 15:10:47 +00:00
}
2009-12-13 20:21:54 +00:00
#line 1982 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 232 "smarty_internal_templateparser.y"
function yy_r44(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor)); }
2009-12-13 20:21:54 +00:00
#line 1985 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 239 "smarty_internal_templateparser.y"
function yy_r45(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
2009-12-13 20:21:54 +00:00
#line 1988 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 243 "smarty_internal_templateparser.y"
function yy_r47(){ $this->_retvalue = array(); }
2009-12-13 20:21:54 +00:00
#line 1991 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 246 "smarty_internal_templateparser.y"
function yy_r48(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>"'".$this->yystack[$this->yyidx + 0]->minor."'"); }
2009-12-13 20:21:54 +00:00
#line 1994 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 247 "smarty_internal_templateparser.y"
function yy_r49(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); }
2009-12-13 20:21:54 +00:00
#line 1997 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 250 "smarty_internal_templateparser.y"
function yy_r52(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); }
2009-12-13 20:21:54 +00:00
#line 2000 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 257 "smarty_internal_templateparser.y"
function yy_r54(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); }
2009-12-13 20:21:54 +00:00
#line 2003 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 258 "smarty_internal_templateparser.y"
function yy_r55(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; }
2009-12-13 20:21:54 +00:00
#line 2006 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 260 "smarty_internal_templateparser.y"
function yy_r56(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); }
2009-12-13 20:21:54 +00:00
#line 2009 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 266 "smarty_internal_templateparser.y"
function yy_r57(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
2009-12-13 20:21:54 +00:00
#line 2012 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 269 "smarty_internal_templateparser.y"
function yy_r59(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; }
2009-12-13 20:21:54 +00:00
#line 2015 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 270 "smarty_internal_templateparser.y"
function yy_r60(){
2009-10-22 23:05:14 +00:00
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -1]->minor[0],'modifier')) {
$this->_retvalue = "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -1]->minor[0] . "',array(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor. "),".$this->yystack[$this->yyidx + -1]->minor[1].")";
} else {
if (is_callable($this->yystack[$this->yyidx + -1]->minor[0])) {
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -1]->minor[0], $this->compiler)) {
$this->_retvalue = "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -1]->minor[0] . "',array(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor. "),".$this->yystack[$this->yyidx + -1]->minor[1].")";
}
} else {
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -1]->minor[0] . "\"");
}
}
2009-12-05 15:10:47 +00:00
}
2009-12-13 20:21:54 +00:00
#line 2030 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 287 "smarty_internal_templateparser.y"
function yy_r62(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
2009-12-13 20:21:54 +00:00
#line 2033 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 289 "smarty_internal_templateparser.y"
function yy_r63(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; }
2009-12-13 20:21:54 +00:00
#line 2036 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 296 "smarty_internal_templateparser.y"
function yy_r65(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; }
2009-12-13 20:21:54 +00:00
#line 2039 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 310 "smarty_internal_templateparser.y"
function yy_r69(){$this->_retvalue = ' & '; }
2009-12-13 20:21:54 +00:00
#line 2042 "smarty_internal_templateparser.php"
#line 314 "smarty_internal_templateparser.y"
function yy_r71(){ $this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2045 "smarty_internal_templateparser.php"
#line 319 "smarty_internal_templateparser.y"
function yy_r75(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2048 "smarty_internal_templateparser.php"
#line 329 "smarty_internal_templateparser.y"
function yy_r79(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
#line 2051 "smarty_internal_templateparser.php"
#line 333 "smarty_internal_templateparser.y"
function yy_r81(){ $_s = str_replace(array('."".','.""'),array('.',''),'"'.$this->yystack[$this->yyidx + -1]->minor.'"');
2009-11-27 00:43:38 +00:00
if (substr($_s,0,3) == '"".') {
$this->_retvalue = substr($_s,3);
} else {
$this->_retvalue = $_s;
}
2009-12-05 15:10:47 +00:00
}
#line 2060 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 340 "smarty_internal_templateparser.y"
function yy_r82(){ $this->_retvalue = "''"; }
2009-12-05 15:10:47 +00:00
#line 2063 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 342 "smarty_internal_templateparser.y"
function yy_r83(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
2009-12-05 15:10:47 +00:00
#line 2066 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 343 "smarty_internal_templateparser.y"
function yy_r84(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -3]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -1]->minor .')'; }
#line 2069 "smarty_internal_templateparser.php"
#line 345 "smarty_internal_templateparser.y"
function yy_r85(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2072 "smarty_internal_templateparser.php"
#line 346 "smarty_internal_templateparser.y"
function yy_r86(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -4]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -7]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -2]->minor .')'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2075 "smarty_internal_templateparser.php"
#line 348 "smarty_internal_templateparser.y"
function yy_r87(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2078 "smarty_internal_templateparser.php"
#line 350 "smarty_internal_templateparser.y"
function yy_r88(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2081 "smarty_internal_templateparser.php"
#line 352 "smarty_internal_templateparser.y"
function yy_r89(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.'::$'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2084 "smarty_internal_templateparser.php"
#line 354 "smarty_internal_templateparser.y"
function yy_r90(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + 0]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; }
#line 2087 "smarty_internal_templateparser.php"
#line 363 "smarty_internal_templateparser.y"
2009-12-15 00:02:10 +00:00
function yy_r91(){ if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('special_smarty_variable',$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']);} else {
2009-12-13 20:21:54 +00:00
$this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor['var'] .')->value'.$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor['var'],"'"), null, true, false)->nocache;} }
2009-12-05 15:10:47 +00:00
#line 2091 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 366 "smarty_internal_templateparser.y"
function yy_r92(){ $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"), null, true, false)->nocache; }
2009-12-05 15:10:47 +00:00
#line 2094 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 370 "smarty_internal_templateparser.y"
function yy_r94(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; }
2009-12-05 15:10:47 +00:00
#line 2097 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 371 "smarty_internal_templateparser.y"
function yy_r95(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; }
2009-12-05 15:10:47 +00:00
#line 2100 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 374 "smarty_internal_templateparser.y"
function yy_r96(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'smarty_internal_index'=>$this->yystack[$this->yyidx + 0]->minor); }
2009-12-05 15:10:47 +00:00
#line 2103 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 380 "smarty_internal_templateparser.y"
function yy_r97(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
2009-12-05 15:10:47 +00:00
#line 2106 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 382 "smarty_internal_templateparser.y"
function yy_r98(){return; }
2009-12-05 15:10:47 +00:00
#line 2109 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 386 "smarty_internal_templateparser.y"
function yy_r99(){ $this->_retvalue = '[$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor .')->value]'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable('$this->yystack[$this->yyidx + 0]->minor', null, true, false)->nocache; }
2009-12-05 15:10:47 +00:00
#line 2112 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 387 "smarty_internal_templateparser.y"
function yy_r100(){ $this->_retvalue = '[$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor.']'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"), null, true, false)->nocache; }
2009-12-05 15:10:47 +00:00
#line 2115 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 390 "smarty_internal_templateparser.y"
function yy_r101(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; }
2009-12-05 15:10:47 +00:00
#line 2118 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 394 "smarty_internal_templateparser.y"
function yy_r104(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; }
2009-12-05 15:10:47 +00:00
#line 2121 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 395 "smarty_internal_templateparser.y"
function yy_r105(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; }
#line 2124 "smarty_internal_templateparser.php"
#line 397 "smarty_internal_templateparser.y"
function yy_r106(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; }
#line 2127 "smarty_internal_templateparser.php"
#line 398 "smarty_internal_templateparser.y"
function yy_r107(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; }
#line 2130 "smarty_internal_templateparser.php"
#line 402 "smarty_internal_templateparser.y"
function yy_r109(){$this->_retvalue = ''; }
#line 2133 "smarty_internal_templateparser.php"
#line 410 "smarty_internal_templateparser.y"
function yy_r111(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2136 "smarty_internal_templateparser.php"
#line 412 "smarty_internal_templateparser.y"
function yy_r112(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2139 "smarty_internal_templateparser.php"
#line 415 "smarty_internal_templateparser.y"
function yy_r113(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2142 "smarty_internal_templateparser.php"
#line 420 "smarty_internal_templateparser.y"
2009-12-15 00:02:10 +00:00
function yy_r114(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('special_smarty_variable',$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index']).$this->yystack[$this->yyidx + 0]->minor;} else {
$this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -1]->minor['var'] .')->value'.$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index'].$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"), null, true, false)->nocache;} }
2009-12-13 20:21:54 +00:00
#line 2146 "smarty_internal_templateparser.php"
#line 423 "smarty_internal_templateparser.y"
function yy_r115(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2149 "smarty_internal_templateparser.php"
#line 425 "smarty_internal_templateparser.y"
function yy_r116(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2152 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 427 "smarty_internal_templateparser.y"
2009-12-13 20:21:54 +00:00
function yy_r117(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2155 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 428 "smarty_internal_templateparser.y"
2009-12-13 20:21:54 +00:00
function yy_r118(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2158 "smarty_internal_templateparser.php"
2009-12-05 15:10:47 +00:00
#line 429 "smarty_internal_templateparser.y"
2009-12-13 20:21:54 +00:00
function yy_r119(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2161 "smarty_internal_templateparser.php"
#line 430 "smarty_internal_templateparser.y"
function yy_r120(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2164 "smarty_internal_templateparser.php"
#line 432 "smarty_internal_templateparser.y"
function yy_r121(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2167 "smarty_internal_templateparser.php"
#line 438 "smarty_internal_templateparser.y"
function yy_r122(){if (!$this->template->security || $this->smarty->security_handler->isTrustedPhpFunction($this->yystack[$this->yyidx + -3]->minor, $this->compiler)) {
if ($this->yystack[$this->yyidx + -3]->minor == 'isset' || $this->yystack[$this->yyidx + -3]->minor == 'empty' || $this->yystack[$this->yyidx + -3]->minor == 'array' || is_callable($this->yystack[$this->yyidx + -3]->minor)) {
$this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")";
} else {
$this->compiler->trigger_template_error ("unknown function \"" . $this->yystack[$this->yyidx + -3]->minor . "\"");
}
2009-12-05 15:10:47 +00:00
} }
#line 2176 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 449 "smarty_internal_templateparser.y"
function yy_r123(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
2009-12-05 15:10:47 +00:00
#line 2179 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 453 "smarty_internal_templateparser.y"
function yy_r124(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; }
2009-12-05 15:10:47 +00:00
#line 2182 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 457 "smarty_internal_templateparser.y"
function yy_r126(){ return; }
2009-12-05 15:10:47 +00:00
#line 2185 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 462 "smarty_internal_templateparser.y"
function yy_r127(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); }
2009-12-05 15:10:47 +00:00
#line 2188 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 463 "smarty_internal_templateparser.y"
function yy_r128(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); }
2009-12-05 15:10:47 +00:00
#line 2191 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 479 "smarty_internal_templateparser.y"
function yy_r131(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; }
2009-12-05 15:10:47 +00:00
#line 2194 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 480 "smarty_internal_templateparser.y"
function yy_r132(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
2009-12-05 15:10:47 +00:00
#line 2197 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 487 "smarty_internal_templateparser.y"
function yy_r134(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; }
2009-12-05 15:10:47 +00:00
#line 2200 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 492 "smarty_internal_templateparser.y"
function yy_r136(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; }
2009-12-05 15:10:47 +00:00
#line 2203 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 494 "smarty_internal_templateparser.y"
function yy_r137(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
2009-12-05 15:10:47 +00:00
#line 2206 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 495 "smarty_internal_templateparser.y"
function yy_r138(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; }
2009-12-05 15:10:47 +00:00
#line 2209 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 496 "smarty_internal_templateparser.y"
function yy_r139(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; }
2009-12-05 15:10:47 +00:00
#line 2212 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 498 "smarty_internal_templateparser.y"
function yy_r141(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
2009-12-05 15:10:47 +00:00
#line 2215 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 499 "smarty_internal_templateparser.y"
function yy_r142(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
2009-12-05 15:10:47 +00:00
#line 2218 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 500 "smarty_internal_templateparser.y"
function yy_r143(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
2009-12-05 15:10:47 +00:00
#line 2221 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 501 "smarty_internal_templateparser.y"
function yy_r144(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
2009-12-05 15:10:47 +00:00
#line 2224 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 502 "smarty_internal_templateparser.y"
function yy_r145(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
2009-12-05 15:10:47 +00:00
#line 2227 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 503 "smarty_internal_templateparser.y"
function yy_r146(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
2009-12-05 15:10:47 +00:00
#line 2230 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 509 "smarty_internal_templateparser.y"
function yy_r152(){$this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'='.$this->yystack[$this->yyidx + 0]->minor.';?>'; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.'$_tmp'.$this->prefix_number; }
2009-12-05 15:10:47 +00:00
#line 2233 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 511 "smarty_internal_templateparser.y"
function yy_r153(){$this->_retvalue = '=='; }
2009-12-05 15:10:47 +00:00
#line 2236 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 512 "smarty_internal_templateparser.y"
function yy_r154(){$this->_retvalue = '!='; }
2009-12-05 15:10:47 +00:00
#line 2239 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 513 "smarty_internal_templateparser.y"
function yy_r155(){$this->_retvalue = '>'; }
2009-12-05 15:10:47 +00:00
#line 2242 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 514 "smarty_internal_templateparser.y"
function yy_r156(){$this->_retvalue = '<'; }
2009-12-05 15:10:47 +00:00
#line 2245 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 515 "smarty_internal_templateparser.y"
function yy_r157(){$this->_retvalue = '>='; }
2009-12-05 15:10:47 +00:00
#line 2248 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 516 "smarty_internal_templateparser.y"
function yy_r158(){$this->_retvalue = '<='; }
2009-12-05 15:10:47 +00:00
#line 2251 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 517 "smarty_internal_templateparser.y"
function yy_r159(){$this->_retvalue = '==='; }
2009-12-05 15:10:47 +00:00
#line 2254 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 518 "smarty_internal_templateparser.y"
function yy_r160(){$this->_retvalue = '!=='; }
2009-12-05 15:10:47 +00:00
#line 2257 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 519 "smarty_internal_templateparser.y"
function yy_r161(){$this->_retvalue = '%'; }
2009-12-05 15:10:47 +00:00
#line 2260 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 521 "smarty_internal_templateparser.y"
function yy_r162(){$this->_retvalue = '&&'; }
2009-12-05 15:10:47 +00:00
#line 2263 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 522 "smarty_internal_templateparser.y"
function yy_r163(){$this->_retvalue = '||'; }
2009-12-05 15:10:47 +00:00
#line 2266 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 523 "smarty_internal_templateparser.y"
function yy_r164(){$this->_retvalue = ' XOR '; }
2009-12-05 15:10:47 +00:00
#line 2269 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 528 "smarty_internal_templateparser.y"
function yy_r165(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; }
2009-12-05 15:10:47 +00:00
#line 2272 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 530 "smarty_internal_templateparser.y"
function yy_r167(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; }
2009-12-05 15:10:47 +00:00
#line 2275 "smarty_internal_templateparser.php"
2009-12-13 20:21:54 +00:00
#line 531 "smarty_internal_templateparser.y"
function yy_r168(){ return; }
#line 2278 "smarty_internal_templateparser.php"
#line 532 "smarty_internal_templateparser.y"
function yy_r169(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2281 "smarty_internal_templateparser.php"
#line 533 "smarty_internal_templateparser.y"
function yy_r170(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2284 "smarty_internal_templateparser.php"
#line 542 "smarty_internal_templateparser.y"
function yy_r174(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; $this->compiler->has_variable_string = true; }
#line 2287 "smarty_internal_templateparser.php"
#line 543 "smarty_internal_templateparser.y"
function yy_r175(){$this->_retvalue = '".'.'$_smarty_tpl->getVariable(\''. substr($this->yystack[$this->yyidx + 0]->minor,1) .'\')->value'.'."'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"), null, true, false)->nocache; $this->compiler->has_variable_string = true; }
#line 2290 "smarty_internal_templateparser.php"
#line 545 "smarty_internal_templateparser.y"
function yy_r177(){ $this->_retvalue = '".('.$this->yystack[$this->yyidx + -1]->minor.')."'; $this->compiler->has_variable_string = true; }
#line 2293 "smarty_internal_templateparser.php"
#line 546 "smarty_internal_templateparser.y"
function yy_r178(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + 0]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '".$_tmp'.$this->prefix_number.'."'; $this->compiler->has_variable_string = true; }
#line 2296 "smarty_internal_templateparser.php"
private $_retvalue;
function yy_reduce($yyruleno)
{
$yymsp = $this->yystack[$this->yyidx];
if (self::$yyTraceFILE && $yyruleno >= 0
&& $yyruleno < count(self::$yyRuleName)) {
fprintf(self::$yyTraceFILE, "%sReduce (%d) [%s].\n",
self::$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]['lhs'];
$yysize = self::$yyRuleInfo[$yyruleno]['rhs'];
$this->yyidx -= $yysize;
for($i = $yysize; $i; $i--) {
// pop all of the right-hand side parameters
array_pop($this->yystack);
}
$yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto);
if ($yyact < self::YYNSTATE) {
if (!self::$yyTraceFILE && $yysize) {
$this->yyidx++;
$x = new TP_yyStackEntry;
$x->stateno = $yyact;
$x->major = $yygoto;
$x->minor = $yy_lefthand_side;
$this->yystack[$this->yyidx] = $x;
} else {
$this->yy_shift($yyact, $yygoto, $yy_lefthand_side);
}
} elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) {
$this->yy_accept();
}
}
function yy_parse_failed()
{
if (self::$yyTraceFILE) {
fprintf(self::$yyTraceFILE, "%sFail!\n", self::$yyTracePrompt);
}
while ($this->yyidx >= 0) {
$this->yy_pop_parser_stack();
}
}
function yy_syntax_error($yymajor, $TOKEN)
{
2009-12-05 15:10:47 +00:00
#line 60 "smarty_internal_templateparser.y"
2009-10-22 23:05:14 +00:00
$this->internalError = true;
$this->yymajor = $yymajor;
$this->compiler->trigger_template_error();
2009-12-13 20:21:54 +00:00
#line 2359 "smarty_internal_templateparser.php"
}
function yy_accept()
{
if (self::$yyTraceFILE) {
fprintf(self::$yyTraceFILE, "%sAccept!\n", self::$yyTracePrompt);
}
while ($this->yyidx >= 0) {
$stack = $this->yy_pop_parser_stack();
}
2009-12-05 15:10:47 +00:00
#line 52 "smarty_internal_templateparser.y"
2009-10-22 23:05:14 +00:00
$this->successful = !$this->internalError;
$this->internalError = false;
$this->retvalue = $this->_retvalue;
//echo $this->retvalue."\n\n";
2009-12-13 20:21:54 +00:00
#line 2377 "smarty_internal_templateparser.php"
}
function doParse($yymajor, $yytokenvalue)
{
$yyerrorhit = 0; /* True if yymajor has invoked an error */
if ($this->yyidx === null || $this->yyidx < 0) {
$this->yyidx = 0;
$this->yyerrcnt = -1;
$x = new TP_yyStackEntry;
$x->stateno = 0;
$x->major = 0;
$this->yystack = array();
array_push($this->yystack, $x);
}
$yyendofinput = ($yymajor==0);
if (self::$yyTraceFILE) {
fprintf(self::$yyTraceFILE, "%sInput %s\n",
self::$yyTracePrompt, $this->yyTokenName[$yymajor]);
}
do {
$yyact = $this->yy_find_shift_action($yymajor);
if ($yymajor < self::YYERRORSYMBOL &&
!$this->yy_is_expected_token($yymajor)) {
// force a syntax error
$yyact = self::YY_ERROR_ACTION;
}
if ($yyact < self::YYNSTATE) {
$this->yy_shift($yyact, $yymajor, $yytokenvalue);
$this->yyerrcnt--;
if ($yyendofinput && $this->yyidx >= 0) {
$yymajor = 0;
} else {
$yymajor = self::YYNOCODE;
}
} elseif ($yyact < self::YYNSTATE + self::YYNRULE) {
$this->yy_reduce($yyact - self::YYNSTATE);
} elseif ($yyact == self::YY_ERROR_ACTION) {
if (self::$yyTraceFILE) {
fprintf(self::$yyTraceFILE, "%sSyntax Error!\n",
self::$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 (self::$yyTraceFILE) {
fprintf(self::$yyTraceFILE, "%sDiscard input token %s\n",
self::$yyTracePrompt, $this->yyTokenName[$yymajor]);
}
$this->yy_destructor($yymajor, $yytokenvalue);
$yymajor = self::YYNOCODE;
} else {
while ($this->yyidx >= 0 &&
$yymx != self::YYERRORSYMBOL &&
($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE
){
$this->yy_pop_parser_stack();
}
if ($this->yyidx < 0 || $yymajor==0) {
$this->yy_destructor($yymajor, $yytokenvalue);
$this->yy_parse_failed();
$yymajor = self::YYNOCODE;
} elseif ($yymx != self::YYERRORSYMBOL) {
$u2 = 0;
$this->yy_shift($yyact, self::YYERRORSYMBOL, $u2);
}
}
$this->yyerrcnt = 3;
$yyerrorhit = 1;
} else {
if ($this->yyerrcnt <= 0) {
$this->yy_syntax_error($yymajor, $yytokenvalue);
}
$this->yyerrcnt = 3;
$this->yy_destructor($yymajor, $yytokenvalue);
if ($yyendofinput) {
$this->yy_parse_failed();
}
$yymajor = self::YYNOCODE;
}
} else {
$this->yy_accept();
$yymajor = self::YYNOCODE;
}
} while ($yymajor != self::YYNOCODE && $this->yyidx >= 0);
}
}
2009-12-05 15:10:47 +00:00
?>