Files
smarty/libs/sysplugins/internal.templateparser.php

2702 lines
128 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
*/
/**
* This can be used to store both the string representation of
* a token, and any useful meta-data associated with the token.
*
* meta-data should be stored as an array
*/
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]);
}
}
/** The following structure represents a single element of the
* parser's stack. Information stored includes:
*
* + The state number for the parser at this level of the stack.
*
* + The value of the token stored at this level of the stack.
* (In other words, the "major" token.)
*
* + The semantic value stored at this level of the stack. This is
* the information used by the action routines in the grammar.
* It is sometimes called the "minor" token.
*/
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 */
};
// code external to the class is included here
// declare_class is output here
#line 12 "internal.templateparser.y"
class Smarty_Internal_Templateparser#line 109 "internal.templateparser.php"
{
/* First off, code is included which follows the "include_class" declaration
** in the input file. */
#line 14 "internal.templateparser.y"
// 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->nocache = false;
$this->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;
}
#line 147 "internal.templateparser.php"
/* Next is all token values, as class constants
*/
/*
** These constants (all generated automatically by the parser generator)
** specify the various kinds of tokens (terminals) that the parser
** understands.
**
** Each symbol here is a terminal symbol in the grammar.
*/
const TP_OTHER = 1;
const TP_XML = 2;
const TP_PHP = 3;
const TP_SHORTTAGSTART = 4;
const TP_SHORTTAGEND = 5;
const TP_PHPSTART = 6;
const TP_PHPEND = 7;
const TP_COMMENTEND = 8;
const TP_COMMENTSTART = 9;
const TP_SINGLEQUOTE = 10;
const TP_LITERALSTART = 11;
const TP_LITERALEND = 12;
const TP_LDELIMTAG = 13;
const TP_RDELIMTAG = 14;
const TP_LDELSLASH = 15;
const TP_LDEL = 16;
const TP_RDEL = 17;
const TP_ISIN = 18;
const TP_AS = 19;
const TP_BOOLEAN = 20;
const TP_NULL = 21;
const TP_IDENTITY = 22;
const TP_NONEIDENTITY = 23;
const TP_EQUALS = 24;
const TP_NOTEQUALS = 25;
const TP_GREATEREQUAL = 26;
const TP_LESSEQUAL = 27;
const TP_GREATERTHAN = 28;
const TP_LESSTHAN = 29;
const TP_NOT = 30;
const TP_LAND = 31;
const TP_LOR = 32;
const TP_LXOR = 33;
const TP_ISODDBY = 34;
const TP_ISNOTODDBY = 35;
const TP_ISODD = 36;
const TP_ISNOTODD = 37;
const TP_ISEVENBY = 38;
const TP_ISNOTEVENBY = 39;
const TP_ISEVEN = 40;
const TP_ISNOTEVEN = 41;
const TP_ISDIVBY = 42;
const TP_ISNOTDIVBY = 43;
const TP_OPENP = 44;
const TP_CLOSEP = 45;
const TP_OPENB = 46;
const TP_CLOSEB = 47;
const TP_PTR = 48;
const TP_APTR = 49;
const TP_EQUAL = 50;
const TP_INTEGER = 51;
const TP_INCDEC = 52;
const TP_UNIMATH = 53;
const TP_MATH = 54;
const TP_DOLLAR = 55;
const TP_COLON = 56;
const TP_DOUBLECOLON = 57;
const TP_SEMICOLON = 58;
const TP_AT = 59;
const TP_HATCH = 60;
const TP_QUOTE = 61;
const TP_BACKTICK = 62;
const TP_VERT = 63;
const TP_DOT = 64;
const TP_COMMA = 65;
const TP_ANDSYM = 66;
const TP_ID = 67;
const TP_SPACE = 68;
const TP_INSTANCEOF = 69;
const TP_QMARK = 70;
const YY_NO_ACTION = 473;
const YY_ACCEPT_ACTION = 472;
const YY_ERROR_ACTION = 471;
/* Next are that tables used to determine what action to take based on the
** current state and lookahead token. These tables are used to implement
** functions that take a state number and lookahead value and return an
** action integer.
**
** Suppose the action integer is N. Then the action is determined as
** follows
**
** 0 <= N < self::YYNSTATE Shift N. That is,
** push the lookahead
** token onto the stack
** and goto state N.
**
** self::YYNSTATE <= N < self::YYNSTATE+self::YYNRULE Reduce by rule N-YYNSTATE.
**
** N == self::YYNSTATE+self::YYNRULE A syntax error has occurred.
**
** N == self::YYNSTATE+self::YYNRULE+1 The parser accepts its
** input. (and concludes parsing)
**
** N == self::YYNSTATE+self::YYNRULE+2 No such action. Denotes unused
** slots in the yy_action[] table.
**
** The action table is constructed as a single large static array $yy_action.
** Given state S and lookahead X, the action is computed as
**
** self::$yy_action[self::$yy_shift_ofst[S] + X ]
**
** If the index value self::$yy_shift_ofst[S]+X is out of range or if the value
** self::$yy_lookahead[self::$yy_shift_ofst[S]+X] is not equal to X or if
** self::$yy_shift_ofst[S] is equal to self::YY_SHIFT_USE_DFLT, it means that
** the action is not in the table and that self::$yy_default[S] should be used instead.
**
** The formula above is for computing the action when the lookahead is
** a terminal symbol. If the lookahead is a non-terminal (as occurs after
** a reduce action) then the static $yy_reduce_ofst array is used in place of
** the static $yy_shift_ofst array and self::YY_REDUCE_USE_DFLT is used in place of
** self::YY_SHIFT_USE_DFLT.
**
** The following are the tables generated in this section:
**
** self::$yy_action A single table containing all actions.
** self::$yy_lookahead A table containing the lookahead for each entry in
** yy_action. Used to detect hash collisions.
** self::$yy_shift_ofst For each state, the offset into self::$yy_action for
** shifting terminals.
** self::$yy_reduce_ofst For each state, the offset into self::$yy_action for
** shifting non-terminals after a reduce.
** self::$yy_default Default action for each state.
*/
const YY_SZ_ACTTAB = 1132;
static public $yy_action = array(
/* 0 */ 282, 283, 284, 8, 9, 275, 276, 4, 7, 268,
/* 10 */ 269, 5, 10, 170, 281, 282, 283, 284, 8, 9,
/* 20 */ 275, 276, 4, 7, 268, 269, 5, 10, 242, 195,
/* 30 */ 282, 283, 284, 8, 9, 275, 276, 4, 7, 268,
/* 40 */ 269, 5, 10, 282, 283, 284, 8, 9, 275, 276,
/* 50 */ 4, 7, 268, 269, 5, 10, 61, 174, 255, 61,
/* 60 */ 273, 25, 16, 43, 136, 16, 256, 257, 151, 256,
/* 70 */ 257, 201, 226, 67, 175, 202, 2, 239, 23, 68,
/* 80 */ 270, 70, 69, 215, 216, 148, 15, 50, 116, 18,
/* 90 */ 11, 115, 14, 35, 182, 14, 206, 176, 161, 44,
/* 100 */ 176, 63, 44, 217, 69, 194, 50, 58, 30, 50,
/* 110 */ 58, 23, 61, 159, 208, 61, 156, 198, 16, 37,
/* 120 */ 30, 16, 256, 257, 115, 256, 257, 228, 23, 30,
/* 130 */ 30, 183, 191, 238, 61, 2, 232, 47, 69, 38,
/* 140 */ 16, 115, 229, 50, 256, 257, 12, 161, 14, 11,
/* 150 */ 188, 14, 1, 176, 29, 44, 176, 63, 44, 279,
/* 160 */ 71, 171, 50, 58, 29, 50, 58, 341, 35, 46,
/* 170 */ 14, 279, 155, 192, 233, 176, 61, 44, 69, 63,
/* 180 */ 279, 279, 16, 50, 50, 58, 256, 257, 228, 185,
/* 190 */ 246, 159, 221, 81, 23, 61, 292, 293, 61, 241,
/* 200 */ 22, 16, 66, 229, 16, 256, 257, 115, 256, 257,
/* 210 */ 35, 273, 14, 259, 43, 28, 204, 176, 341, 44,
/* 220 */ 199, 69, 292, 293, 81, 161, 50, 58, 223, 35,
/* 230 */ 32, 14, 12, 165, 14, 34, 176, 161, 44, 176,
/* 240 */ 69, 44, 161, 63, 259, 50, 58, 61, 50, 58,
/* 250 */ 61, 30, 164, 16, 69, 159, 16, 256, 257, 50,
/* 260 */ 256, 257, 264, 98, 292, 293, 111, 40, 472, 94,
/* 270 */ 203, 227, 272, 300, 297, 286, 285, 298, 299, 54,
/* 280 */ 30, 12, 6, 14, 35, 36, 14, 277, 176, 125,
/* 290 */ 44, 176, 63, 44, 189, 63, 228, 50, 58, 236,
/* 300 */ 50, 58, 279, 209, 46, 149, 249, 158, 57, 81,
/* 310 */ 81, 229, 161, 92, 173, 162, 184, 61, 99, 200,
/* 320 */ 161, 122, 19, 16, 263, 211, 290, 256, 257, 259,
/* 330 */ 259, 157, 40, 228, 228, 267, 227, 272, 300, 297,
/* 340 */ 286, 285, 298, 299, 254, 205, 61, 30, 229, 229,
/* 350 */ 262, 35, 16, 14, 61, 295, 256, 257, 176, 270,
/* 360 */ 16, 37, 69, 45, 256, 257, 137, 50, 58, 261,
/* 370 */ 222, 258, 161, 21, 165, 169, 73, 161, 24, 47,
/* 380 */ 35, 145, 234, 265, 62, 13, 81, 176, 35, 249,
/* 390 */ 192, 69, 161, 81, 239, 176, 50, 58, 279, 69,
/* 400 */ 291, 301, 303, 165, 50, 58, 259, 263, 252, 45,
/* 410 */ 40, 163, 152, 259, 227, 272, 300, 297, 286, 285,
/* 420 */ 298, 299, 144, 161, 160, 249, 150, 57, 184, 81,
/* 430 */ 225, 48, 85, 30, 23, 239, 101, 113, 287, 26,
/* 440 */ 122, 196, 114, 263, 249, 228, 57, 115, 81, 259,
/* 450 */ 142, 90, 126, 153, 267, 161, 113, 287, 161, 122,
/* 460 */ 229, 184, 263, 239, 190, 96, 120, 65, 259, 53,
/* 470 */ 76, 64, 236, 267, 249, 45, 57, 20, 81, 251,
/* 480 */ 287, 86, 122, 151, 154, 263, 113, 287, 396, 122,
/* 490 */ 167, 259, 263, 65, 266, 51, 76, 64, 259, 161,
/* 500 */ 249, 236, 109, 267, 81, 251, 287, 39, 122, 31,
/* 510 */ 249, 263, 251, 287, 81, 122, 138, 259, 263, 184,
/* 520 */ 178, 104, 248, 65, 259, 53, 76, 64, 263, 239,
/* 530 */ 338, 396, 166, 302, 259, 251, 287, 291, 122, 396,
/* 540 */ 161, 263, 228, 33, 60, 184, 249, 259, 57, 151,
/* 550 */ 81, 230, 59, 84, 79, 218, 95, 229, 113, 287,
/* 560 */ 291, 122, 103, 112, 263, 249, 278, 55, 291, 81,
/* 570 */ 259, 224, 82, 219, 27, 267, 102, 113, 287, 294,
/* 580 */ 122, 184, 124, 263, 249, 280, 56, 258, 81, 259,
/* 590 */ 147, 83, 291, 141, 267, 258, 113, 287, 236, 122,
/* 600 */ 278, 132, 263, 249, 130, 57, 239, 81, 259, 258,
/* 610 */ 93, 135, 78, 267, 239, 113, 287, 245, 122, 123,
/* 620 */ 240, 263, 193, 179, 239, 328, 249, 259, 57, 220,
/* 630 */ 81, 213, 267, 89, 75, 291, 180, 172, 113, 287,
/* 640 */ 247, 122, 214, 207, 263, 260, 72, 289, 181, 249,
/* 650 */ 259, 57, 250, 81, 186, 267, 88, 18, 42, 244,
/* 660 */ 22, 113, 287, 210, 122, 131, 3, 263, 249, 261,
/* 670 */ 57, 231, 81, 259, 110, 87, 243, 41, 267, 253,
/* 680 */ 113, 287, 80, 122, 17, 74, 263, 249, 39, 57,
/* 690 */ 278, 81, 259, 49, 91, 252, 282, 267, 304, 113,
/* 700 */ 287, 282, 122, 282, 282, 263, 249, 282, 107, 282,
/* 710 */ 81, 259, 282, 128, 282, 282, 267, 151, 251, 287,
/* 720 */ 282, 122, 282, 282, 263, 282, 239, 288, 282, 249,
/* 730 */ 259, 107, 282, 81, 282, 282, 282, 282, 282, 282,
/* 740 */ 282, 251, 287, 282, 122, 282, 282, 263, 282, 282,
/* 750 */ 177, 282, 249, 259, 107, 282, 81, 282, 282, 249,
/* 760 */ 282, 52, 77, 81, 251, 287, 282, 122, 282, 282,
/* 770 */ 263, 251, 287, 197, 122, 282, 259, 263, 249, 282,
/* 780 */ 107, 282, 81, 259, 282, 249, 282, 109, 282, 81,
/* 790 */ 251, 287, 282, 122, 282, 282, 263, 251, 287, 187,
/* 800 */ 122, 222, 259, 263, 282, 282, 396, 282, 249, 259,
/* 810 */ 133, 212, 81, 282, 282, 282, 13, 282, 296, 282,
/* 820 */ 251, 287, 282, 122, 282, 282, 263, 282, 282, 249,
/* 830 */ 282, 140, 259, 81, 282, 282, 396, 282, 396, 282,
/* 840 */ 396, 251, 287, 282, 122, 282, 168, 263, 282, 396,
/* 850 */ 282, 282, 282, 259, 396, 160, 249, 396, 139, 282,
/* 860 */ 81, 237, 48, 282, 282, 282, 282, 282, 251, 287,
/* 870 */ 282, 122, 282, 282, 263, 249, 282, 117, 282, 81,
/* 880 */ 259, 282, 249, 282, 127, 282, 81, 251, 287, 282,
/* 890 */ 122, 282, 282, 263, 251, 287, 282, 122, 282, 259,
/* 900 */ 263, 282, 282, 282, 282, 249, 259, 119, 282, 81,
/* 910 */ 282, 282, 249, 282, 106, 282, 81, 251, 287, 282,
/* 920 */ 122, 282, 282, 263, 251, 287, 282, 122, 282, 259,
/* 930 */ 263, 282, 282, 249, 282, 134, 259, 81, 282, 282,
/* 940 */ 282, 282, 282, 282, 282, 251, 287, 282, 122, 282,
/* 950 */ 249, 263, 143, 282, 81, 282, 282, 259, 282, 282,
/* 960 */ 282, 282, 251, 287, 282, 122, 282, 249, 263, 105,
/* 970 */ 282, 81, 282, 282, 259, 282, 282, 282, 282, 251,
/* 980 */ 287, 282, 122, 282, 249, 263, 129, 282, 81, 282,
/* 990 */ 282, 259, 282, 282, 282, 282, 251, 287, 282, 122,
/* 1000 */ 282, 282, 263, 249, 282, 108, 282, 81, 259, 282,
/* 1010 */ 282, 282, 282, 282, 282, 251, 287, 282, 122, 282,
/* 1020 */ 282, 263, 282, 282, 249, 282, 118, 259, 81, 282,
/* 1030 */ 282, 249, 282, 146, 282, 81, 251, 287, 282, 122,
/* 1040 */ 282, 249, 263, 251, 287, 81, 122, 282, 259, 263,
/* 1050 */ 282, 282, 282, 251, 287, 259, 121, 282, 249, 263,
/* 1060 */ 282, 282, 81, 282, 282, 259, 282, 282, 282, 282,
/* 1070 */ 251, 287, 282, 100, 282, 249, 263, 282, 282, 81,
/* 1080 */ 282, 282, 259, 282, 282, 282, 282, 251, 287, 282,
/* 1090 */ 97, 282, 282, 263, 249, 282, 282, 249, 81, 259,
/* 1100 */ 282, 81, 282, 282, 282, 282, 271, 249, 282, 274,
/* 1110 */ 282, 81, 263, 282, 282, 263, 282, 282, 259, 235,
/* 1120 */ 282, 259, 282, 282, 282, 263, 282, 282, 282, 282,
/* 1130 */ 282, 259,
);
static public $yy_lookahead = array(
/* 0 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
/* 10 */ 41, 42, 43, 19, 45, 31, 32, 33, 34, 35,
/* 20 */ 36, 37, 38, 39, 40, 41, 42, 43, 1, 45,
/* 30 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
/* 40 */ 41, 42, 43, 31, 32, 33, 34, 35, 36, 37,
/* 50 */ 38, 39, 40, 41, 42, 43, 10, 58, 92, 10,
/* 60 */ 66, 16, 16, 69, 79, 16, 20, 21, 83, 20,
/* 70 */ 21, 1, 2, 3, 4, 5, 30, 92, 44, 9,
/* 80 */ 45, 11, 55, 13, 14, 15, 16, 60, 101, 44,
/* 90 */ 44, 57, 46, 44, 67, 46, 47, 51, 63, 53,
/* 100 */ 51, 55, 53, 1, 55, 55, 60, 61, 16, 60,
/* 110 */ 61, 44, 10, 67, 47, 10, 67, 67, 16, 46,
/* 120 */ 16, 16, 20, 21, 57, 20, 21, 1, 44, 16,
/* 130 */ 16, 64, 48, 1, 10, 30, 10, 64, 55, 16,
/* 140 */ 16, 57, 16, 60, 20, 21, 44, 63, 46, 44,
/* 150 */ 67, 46, 68, 51, 50, 53, 51, 55, 53, 67,
/* 160 */ 55, 76, 60, 61, 50, 60, 61, 17, 44, 67,
/* 170 */ 46, 67, 67, 59, 51, 51, 10, 53, 55, 55,
/* 180 */ 67, 67, 16, 60, 60, 61, 20, 21, 1, 78,
/* 190 */ 67, 67, 5, 82, 44, 10, 53, 54, 10, 67,
/* 200 */ 50, 16, 67, 16, 16, 20, 21, 57, 20, 21,
/* 210 */ 44, 66, 46, 102, 69, 16, 47, 51, 68, 53,
/* 220 */ 78, 55, 53, 54, 82, 63, 60, 61, 17, 44,
/* 230 */ 56, 46, 44, 67, 46, 56, 51, 63, 53, 51,
/* 240 */ 55, 53, 63, 55, 102, 60, 61, 10, 60, 61,
/* 250 */ 10, 16, 67, 16, 55, 67, 16, 20, 21, 60,
/* 260 */ 20, 21, 105, 77, 53, 54, 67, 18, 72, 73,
/* 270 */ 74, 22, 23, 24, 25, 26, 27, 28, 29, 84,
/* 280 */ 16, 44, 58, 46, 44, 50, 46, 52, 51, 65,
/* 290 */ 53, 51, 55, 53, 45, 55, 1, 60, 61, 113,
/* 300 */ 60, 61, 67, 8, 67, 78, 78, 67, 80, 82,
/* 310 */ 82, 16, 63, 85, 86, 87, 68, 10, 90, 91,
/* 320 */ 63, 93, 65, 16, 96, 98, 17, 20, 21, 102,
/* 330 */ 102, 67, 18, 1, 1, 107, 22, 23, 24, 25,
/* 340 */ 26, 27, 28, 29, 17, 12, 10, 16, 16, 16,
/* 350 */ 67, 44, 16, 46, 10, 47, 20, 21, 51, 45,
/* 360 */ 16, 46, 55, 48, 20, 21, 100, 60, 61, 103,
/* 370 */ 1, 105, 63, 65, 67, 59, 55, 63, 49, 64,
/* 380 */ 44, 79, 78, 67, 88, 16, 82, 51, 44, 78,
/* 390 */ 59, 55, 63, 82, 92, 51, 60, 61, 67, 55,
/* 400 */ 104, 90, 91, 67, 60, 61, 102, 96, 106, 48,
/* 410 */ 18, 67, 17, 102, 22, 23, 24, 25, 26, 27,
/* 420 */ 28, 29, 79, 63, 55, 78, 83, 80, 68, 82,
/* 430 */ 61, 62, 85, 16, 44, 92, 77, 90, 91, 49,
/* 440 */ 93, 48, 101, 96, 78, 1, 80, 57, 82, 102,
/* 450 */ 79, 85, 84, 17, 107, 63, 90, 91, 63, 93,
/* 460 */ 16, 68, 96, 92, 75, 77, 101, 78, 102, 80,
/* 470 */ 81, 82, 113, 107, 78, 48, 80, 50, 82, 90,
/* 480 */ 91, 85, 93, 83, 67, 96, 90, 91, 16, 93,
/* 490 */ 75, 102, 96, 78, 17, 80, 81, 82, 102, 63,
/* 500 */ 78, 113, 80, 107, 82, 90, 91, 56, 93, 70,
/* 510 */ 78, 96, 90, 91, 82, 93, 79, 102, 96, 68,
/* 520 */ 75, 88, 90, 78, 102, 80, 81, 82, 96, 92,
/* 530 */ 17, 59, 110, 111, 102, 90, 91, 104, 93, 67,
/* 540 */ 63, 96, 1, 70, 88, 68, 78, 102, 80, 83,
/* 550 */ 82, 10, 88, 85, 45, 17, 97, 16, 90, 91,
/* 560 */ 104, 93, 77, 101, 96, 78, 104, 80, 104, 82,
/* 570 */ 102, 112, 85, 17, 108, 107, 88, 90, 91, 67,
/* 580 */ 93, 68, 100, 96, 78, 89, 80, 105, 82, 102,
/* 590 */ 100, 85, 104, 79, 107, 105, 90, 91, 113, 93,
/* 600 */ 104, 79, 96, 78, 100, 80, 92, 82, 102, 105,
/* 610 */ 85, 79, 67, 107, 92, 90, 91, 62, 93, 88,
/* 620 */ 67, 96, 19, 55, 92, 17, 78, 102, 80, 5,
/* 630 */ 82, 17, 107, 85, 55, 104, 64, 67, 90, 91,
/* 640 */ 60, 93, 67, 47, 96, 60, 55, 45, 67, 78,
/* 650 */ 102, 80, 51, 82, 67, 107, 85, 44, 95, 62,
/* 660 */ 50, 90, 91, 45, 93, 67, 109, 96, 78, 103,
/* 670 */ 80, 113, 82, 102, 101, 85, 112, 94, 107, 74,
/* 680 */ 90, 91, 98, 93, 44, 55, 96, 78, 56, 80,
/* 690 */ 104, 82, 102, 101, 85, 106, 114, 107, 86, 90,
/* 700 */ 91, 114, 93, 114, 114, 96, 78, 114, 80, 114,
/* 710 */ 82, 102, 114, 79, 114, 114, 107, 83, 90, 91,
/* 720 */ 114, 93, 114, 114, 96, 114, 92, 99, 114, 78,
/* 730 */ 102, 80, 114, 82, 114, 114, 114, 114, 114, 114,
/* 740 */ 114, 90, 91, 114, 93, 114, 114, 96, 114, 114,
/* 750 */ 99, 114, 78, 102, 80, 114, 82, 114, 114, 78,
/* 760 */ 114, 80, 81, 82, 90, 91, 114, 93, 114, 114,
/* 770 */ 96, 90, 91, 99, 93, 114, 102, 96, 78, 114,
/* 780 */ 80, 114, 82, 102, 114, 78, 114, 80, 114, 82,
/* 790 */ 90, 91, 114, 93, 114, 114, 96, 90, 91, 99,
/* 800 */ 93, 1, 102, 96, 114, 114, 16, 114, 78, 102,
/* 810 */ 80, 81, 82, 114, 114, 114, 16, 114, 111, 114,
/* 820 */ 90, 91, 114, 93, 114, 114, 96, 114, 114, 78,
/* 830 */ 114, 80, 102, 82, 114, 114, 46, 114, 48, 114,
/* 840 */ 50, 90, 91, 114, 93, 114, 56, 96, 114, 59,
/* 850 */ 114, 114, 114, 102, 64, 55, 78, 67, 80, 114,
/* 860 */ 82, 61, 62, 114, 114, 114, 114, 114, 90, 91,
/* 870 */ 114, 93, 114, 114, 96, 78, 114, 80, 114, 82,
/* 880 */ 102, 114, 78, 114, 80, 114, 82, 90, 91, 114,
/* 890 */ 93, 114, 114, 96, 90, 91, 114, 93, 114, 102,
/* 900 */ 96, 114, 114, 114, 114, 78, 102, 80, 114, 82,
/* 910 */ 114, 114, 78, 114, 80, 114, 82, 90, 91, 114,
/* 920 */ 93, 114, 114, 96, 90, 91, 114, 93, 114, 102,
/* 930 */ 96, 114, 114, 78, 114, 80, 102, 82, 114, 114,
/* 940 */ 114, 114, 114, 114, 114, 90, 91, 114, 93, 114,
/* 950 */ 78, 96, 80, 114, 82, 114, 114, 102, 114, 114,
/* 960 */ 114, 114, 90, 91, 114, 93, 114, 78, 96, 80,
/* 970 */ 114, 82, 114, 114, 102, 114, 114, 114, 114, 90,
/* 980 */ 91, 114, 93, 114, 78, 96, 80, 114, 82, 114,
/* 990 */ 114, 102, 114, 114, 114, 114, 90, 91, 114, 93,
/* 1000 */ 114, 114, 96, 78, 114, 80, 114, 82, 102, 114,
/* 1010 */ 114, 114, 114, 114, 114, 90, 91, 114, 93, 114,
/* 1020 */ 114, 96, 114, 114, 78, 114, 80, 102, 82, 114,
/* 1030 */ 114, 78, 114, 80, 114, 82, 90, 91, 114, 93,
/* 1040 */ 114, 78, 96, 90, 91, 82, 93, 114, 102, 96,
/* 1050 */ 114, 114, 114, 90, 91, 102, 93, 114, 78, 96,
/* 1060 */ 114, 114, 82, 114, 114, 102, 114, 114, 114, 114,
/* 1070 */ 90, 91, 114, 93, 114, 78, 96, 114, 114, 82,
/* 1080 */ 114, 114, 102, 114, 114, 114, 114, 90, 91, 114,
/* 1090 */ 93, 114, 114, 96, 78, 114, 114, 78, 82, 102,
/* 1100 */ 114, 82, 114, 114, 114, 114, 90, 78, 114, 90,
/* 1110 */ 114, 82, 96, 114, 114, 96, 114, 114, 102, 90,
/* 1120 */ 114, 102, 114, 114, 114, 96, 114, 114, 114, 114,
/* 1130 */ 114, 102,
);
const YY_SHIFT_USE_DFLT = -32;
const YY_SHIFT_MAX = 200;
static public $yy_shift_ofst = array(
/* 0 */ 70, 105, 46, 46, 46, 46, 46, 46, 46, 46,
/* 10 */ 46, 46, 46, 102, 240, 237, 237, 124, 124, 124,
/* 20 */ 188, 240, 188, 124, 124, 124, 124, 124, 124, 124,
/* 30 */ 124, 124, 124, 124, 124, 124, 124, 49, 166, 185,
/* 40 */ 307, 336, 336, 344, 336, 199, 84, 123, 27, 315,
/* 50 */ 83, 477, 360, 360, 451, 314, 249, 392, 369, 114,
/* 60 */ 235, 541, 331, 417, 427, 513, 393, 332, 444, 264,
/* 70 */ 332, 417, 92, 92, 92, 92, 248, 248, 248, 361,
/* 80 */ 361, 361, -31, -16, -1, 12, 12, 12, 12, 12,
/* 90 */ 12, 12, 12, 12, 70, 800, 333, 169, 295, -6,
/* 100 */ 211, 187, 104, 126, 113, 35, 174, 257, 436, 329,
/* 110 */ 73, 45, 73, 145, 73, 50, 73, 179, 309, 395,
/* 120 */ 73, 143, 143, 92, 361, 630, 632, 162, 248, 162,
/* 130 */ 361, 640, 248, 162, 162, 248, 248, 361, 248, 162,
/* 140 */ 162, 248, 248, 162, 248, 248, 162, 361, 135, -32,
/* 150 */ -32, -32, -32, -32, 790, 150, 67, 472, 390, 34,
/* 160 */ 132, 316, 224, 34, 34, 34, 308, 538, 512, 553,
/* 170 */ 579, 614, 624, 608, 591, 568, 572, 509, 556, 570,
/* 180 */ 601, 610, 597, 587, 581, 580, 596, 602, 585, 439,
/* 190 */ 327, 545, 283, 321, 598, 473, 575, 618, 613, 555,
/* 200 */ 603,
);
const YY_REDUCE_USE_DFLT = -35;
const YY_REDUCE_MAX = 153;
static public $yy_reduce_ofst = array(
/* 0 */ 196, 228, 396, 548, 525, 347, 468, 571, 609, 366,
/* 10 */ 590, 487, 506, 415, 422, 389, 445, 651, 674, 628,
/* 20 */ 681, 707, 730, 700, 953, 925, 778, 751, 827, 855,
/* 30 */ 946, 834, 872, 797, 804, 889, 906, 997, 980, 963,
/* 40 */ 311, 1029, 1019, 1016, 432, 227, 343, 304, 142, 266,
/* 50 */ 111, -15, 634, -15, 302, 466, 466, 466, 459, 462,
/* 60 */ 496, 485, 462, 296, 482, 437, 371, 359, 186, 296,
/* 70 */ 388, 464, 456, 433, 488, 531, 522, 532, 514, 490,
/* 80 */ 504, 482, 557, 557, 557, 557, 557, 557, 557, 557,
/* 90 */ 557, 557, 557, 557, 605, 564, 558, 583, 558, 563,
/* 100 */ 583, 558, 586, 558, 586, 400, 400, 400, 400, 400,
/* 110 */ 566, 573, 566, 563, 566, 584, 566, 400, 400, 400,
/* 120 */ 566, 583, 583, 586, 157, 612, 589, 400, -34, 400,
/* 130 */ 157, 592, -34, 400, 400, -34, -34, 157, -34, 400,
/* 140 */ 400, -34, -34, 400, -34, -34, 400, 157, 85, -13,
/* 150 */ 195, 368, 365, 341,
);
static public $yyExpectedTokens = array(
/* 0 */ array(1, 2, 3, 4, 5, 9, 11, 13, 14, 15, 16, ),
/* 1 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 2 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 3 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 4 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 5 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 6 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 7 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 8 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 9 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 10 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 11 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 12 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 13 */ array(1, 10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 14 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 15 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 16 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 17 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 18 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 19 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 20 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 21 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 22 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 23 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 24 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 25 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 26 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 27 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 28 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 29 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 30 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 31 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 32 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 33 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 34 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 35 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 36 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 37 */ array(10, 16, 20, 21, 44, 46, 47, 51, 53, 55, 60, 61, 67, ),
/* 38 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 39 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 40 */ array(10, 16, 20, 21, 44, 46, 51, 55, 60, 61, 67, ),
/* 41 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ),
/* 42 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ),
/* 43 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ),
/* 44 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ),
/* 45 */ array(16, 55, 60, 67, ),
/* 46 */ array(44, 48, 57, 63, 68, ),
/* 47 */ array(16, 51, 55, 60, 67, ),
/* 48 */ array(1, 55, 60, 67, ),
/* 49 */ array(46, 48, 64, ),
/* 50 */ array(55, 60, 67, ),
/* 51 */ array(17, 63, 68, ),
/* 52 */ array(63, 68, ),
/* 53 */ array(63, 68, ),
/* 54 */ array(56, 68, ),
/* 55 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ),
/* 56 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ),
/* 57 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 63, ),
/* 58 */ array(1, 16, 55, 61, 62, ),
/* 59 */ array(16, 50, 59, 67, ),
/* 60 */ array(16, 50, 52, 67, ),
/* 61 */ array(1, 10, 16, ),
/* 62 */ array(16, 59, 67, ),
/* 63 */ array(16, 67, ),
/* 64 */ array(48, 50, ),
/* 65 */ array(17, 68, ),
/* 66 */ array(48, 68, ),
/* 67 */ array(1, 16, ),
/* 68 */ array(1, 16, ),
/* 69 */ array(16, 67, ),
/* 70 */ array(1, 16, ),
/* 71 */ array(16, 67, ),
/* 72 */ array(16, 67, ),
/* 73 */ array(16, 67, ),
/* 74 */ array(16, 67, ),
/* 75 */ array(16, 67, ),
/* 76 */ array(68, ),
/* 77 */ array(68, ),
/* 78 */ array(68, ),
/* 79 */ array(48, ),
/* 80 */ array(48, ),
/* 81 */ array(48, ),
/* 82 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ),
/* 83 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ),
/* 84 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 58, ),
/* 85 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 86 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 87 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 88 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 89 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 90 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 91 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 92 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 93 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 94 */ array(1, 2, 3, 4, 5, 9, 11, 13, 14, 15, 16, ),
/* 95 */ array(1, 16, 55, 61, 62, ),
/* 96 */ array(1, 12, 16, ),
/* 97 */ array(47, 53, 54, ),
/* 98 */ array(1, 8, 16, ),
/* 99 */ array(19, 66, 69, ),
/* 100 */ array(17, 53, 54, ),
/* 101 */ array(1, 5, 16, ),
/* 102 */ array(16, 50, 67, ),
/* 103 */ array(1, 10, 16, ),
/* 104 */ array(16, 67, ),
/* 105 */ array(45, 63, ),
/* 106 */ array(56, 63, ),
/* 107 */ array(63, 65, ),
/* 108 */ array(17, 63, ),
/* 109 */ array(49, 63, ),
/* 110 */ array(46, 64, ),
/* 111 */ array(16, 44, ),
/* 112 */ array(46, 64, ),
/* 113 */ array(66, 69, ),
/* 114 */ array(46, 64, ),
/* 115 */ array(55, 67, ),
/* 116 */ array(46, 64, ),
/* 117 */ array(56, 63, ),
/* 118 */ array(17, 63, ),
/* 119 */ array(17, 63, ),
/* 120 */ array(46, 64, ),
/* 121 */ array(53, 54, ),
/* 122 */ array(53, 54, ),
/* 123 */ array(16, 67, ),
/* 124 */ array(48, ),
/* 125 */ array(55, ),
/* 126 */ array(56, ),
/* 127 */ array(63, ),
/* 128 */ array(68, ),
/* 129 */ array(63, ),
/* 130 */ array(48, ),
/* 131 */ array(44, ),
/* 132 */ array(68, ),
/* 133 */ array(63, ),
/* 134 */ array(63, ),
/* 135 */ array(68, ),
/* 136 */ array(68, ),
/* 137 */ array(48, ),
/* 138 */ array(68, ),
/* 139 */ array(63, ),
/* 140 */ array(63, ),
/* 141 */ array(68, ),
/* 142 */ array(68, ),
/* 143 */ array(63, ),
/* 144 */ array(68, ),
/* 145 */ array(68, ),
/* 146 */ array(63, ),
/* 147 */ array(48, ),
/* 148 */ array(67, ),
/* 149 */ array(),
/* 150 */ array(),
/* 151 */ array(),
/* 152 */ array(),
/* 153 */ array(),
/* 154 */ array(16, 46, 48, 50, 56, 59, 64, 67, ),
/* 155 */ array(17, 44, 50, 57, 68, ),
/* 156 */ array(44, 47, 57, 64, ),
/* 157 */ array(16, 59, 67, ),
/* 158 */ array(44, 49, 57, ),
/* 159 */ array(44, 57, ),
/* 160 */ array(1, 67, ),
/* 161 */ array(59, 67, ),
/* 162 */ array(58, 65, ),
/* 163 */ array(44, 57, ),
/* 164 */ array(44, 57, ),
/* 165 */ array(44, 57, ),
/* 166 */ array(47, 65, ),
/* 167 */ array(17, ),
/* 168 */ array(67, ),
/* 169 */ array(67, ),
/* 170 */ array(55, ),
/* 171 */ array(17, ),
/* 172 */ array(5, ),
/* 173 */ array(17, ),
/* 174 */ array(55, ),
/* 175 */ array(55, ),
/* 176 */ array(64, ),
/* 177 */ array(45, ),
/* 178 */ array(17, ),
/* 179 */ array(67, ),
/* 180 */ array(51, ),
/* 181 */ array(50, ),
/* 182 */ array(62, ),
/* 183 */ array(67, ),
/* 184 */ array(67, ),
/* 185 */ array(60, ),
/* 186 */ array(47, ),
/* 187 */ array(45, ),
/* 188 */ array(60, ),
/* 189 */ array(70, ),
/* 190 */ array(17, ),
/* 191 */ array(67, ),
/* 192 */ array(67, ),
/* 193 */ array(55, ),
/* 194 */ array(67, ),
/* 195 */ array(70, ),
/* 196 */ array(67, ),
/* 197 */ array(45, ),
/* 198 */ array(44, ),
/* 199 */ array(62, ),
/* 200 */ array(19, ),
/* 201 */ array(),
/* 202 */ array(),
/* 203 */ array(),
/* 204 */ array(),
/* 205 */ array(),
/* 206 */ array(),
/* 207 */ array(),
/* 208 */ array(),
/* 209 */ array(),
/* 210 */ array(),
/* 211 */ array(),
/* 212 */ array(),
/* 213 */ array(),
/* 214 */ array(),
/* 215 */ array(),
/* 216 */ array(),
/* 217 */ array(),
/* 218 */ array(),
/* 219 */ array(),
/* 220 */ array(),
/* 221 */ array(),
/* 222 */ array(),
/* 223 */ array(),
/* 224 */ array(),
/* 225 */ array(),
/* 226 */ array(),
/* 227 */ array(),
/* 228 */ array(),
/* 229 */ array(),
/* 230 */ array(),
/* 231 */ array(),
/* 232 */ array(),
/* 233 */ array(),
/* 234 */ array(),
/* 235 */ array(),
/* 236 */ array(),
/* 237 */ array(),
/* 238 */ array(),
/* 239 */ array(),
/* 240 */ array(),
/* 241 */ array(),
2009-04-08 14:47:28 +00:00
/* 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(),
2009-05-14 10:53:28 +00:00
/* 271 */ array(),
/* 272 */ array(),
/* 273 */ array(),
/* 274 */ array(),
/* 275 */ array(),
/* 276 */ array(),
/* 277 */ array(),
/* 278 */ array(),
/* 279 */ array(),
/* 280 */ array(),
/* 281 */ array(),
2009-09-27 17:58:33 +00:00
/* 282 */ array(),
2009-09-29 18:52:58 +00:00
/* 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(),
);
static public $yy_default = array(
/* 0 */ 471, 471, 471, 471, 471, 471, 471, 471, 471, 471,
/* 10 */ 471, 471, 471, 471, 452, 471, 471, 410, 410, 410,
/* 20 */ 471, 471, 471, 410, 471, 471, 471, 471, 471, 471,
/* 30 */ 471, 471, 471, 471, 471, 471, 471, 471, 471, 471,
/* 40 */ 471, 471, 471, 471, 471, 471, 338, 471, 471, 374,
/* 50 */ 471, 471, 338, 338, 338, 420, 420, 420, 471, 385,
/* 60 */ 471, 471, 385, 471, 378, 358, 338, 471, 471, 471,
/* 70 */ 471, 471, 471, 471, 471, 471, 338, 338, 338, 370,
/* 80 */ 369, 378, 471, 471, 471, 426, 418, 427, 431, 425,
/* 90 */ 435, 434, 327, 430, 305, 471, 471, 471, 471, 349,
/* 100 */ 471, 471, 471, 471, 333, 471, 471, 409, 471, 455,
/* 110 */ 401, 385, 383, 349, 404, 471, 402, 471, 471, 471,
/* 120 */ 403, 415, 346, 332, 398, 471, 348, 353, 322, 330,
/* 130 */ 371, 385, 321, 339, 344, 323, 320, 375, 319, 454,
/* 140 */ 422, 325, 334, 354, 324, 326, 453, 372, 471, 385,
/* 150 */ 414, 414, 385, 385, 377, 345, 471, 377, 345, 345,
/* 160 */ 471, 471, 471, 436, 416, 471, 471, 471, 471, 471,
/* 170 */ 471, 471, 471, 342, 471, 471, 359, 471, 471, 471,
/* 180 */ 471, 341, 471, 471, 471, 471, 471, 471, 471, 364,
/* 190 */ 471, 471, 471, 471, 471, 471, 471, 471, 373, 471,
/* 200 */ 352, 318, 317, 306, 392, 311, 393, 391, 390, 310,
/* 210 */ 407, 405, 340, 309, 335, 312, 313, 464, 462, 376,
/* 220 */ 315, 314, 466, 389, 457, 368, 316, 444, 469, 470,
/* 230 */ 366, 467, 365, 387, 388, 351, 468, 367, 463, 337,
/* 240 */ 411, 460, 465, 456, 458, 459, 386, 382, 350, 358,
/* 250 */ 360, 349, 413, 307, 308, 336, 361, 362, 399, 380,
/* 260 */ 381, 384, 379, 363, 400, 412, 461, 417, 428, 429,
/* 270 */ 364, 437, 445, 357, 421, 432, 433, 331, 395, 396,
/* 280 */ 329, 419, 446, 447, 448, 443, 442, 352, 408, 406,
/* 290 */ 397, 394, 355, 356, 347, 449, 451, 439, 440, 441,
/* 300 */ 438, 424, 450, 423, 343,
);
/* The next thing included is series of defines which control
** various aspects of the generated parser.
** self::YYNOCODE is a number which corresponds
** to no legal terminal or nonterminal number. This
** number is used to fill in empty slots of the hash
** table.
** self::YYFALLBACK If defined, this indicates that one or more tokens
** have fall-back values which should be used if the
** original value of the token will not parse.
** self::YYSTACKDEPTH is the maximum depth of the parser's stack.
** self::YYNSTATE the combined number of states.
** self::YYNRULE the number of rules in the grammar
** self::YYERRORSYMBOL is the code number of the error symbol. If not
** defined, then do no error processing.
*/
const YYNOCODE = 115;
const YYSTACKDEPTH = 100;
const YYNSTATE = 305;
const YYNRULE = 166;
const YYERRORSYMBOL = 71;
const YYERRSYMDT = 'yy0';
const YYFALLBACK = 1;
/** The next table maps tokens into fallback tokens. If a construct
* like the following:
*
* %fallback ID X Y Z.
*
* appears in the grammer, then ID becomes a fallback token for X, Y,
* and Z. Whenever one of the tokens X, Y, or Z is input to the parser
* but it does not parse, the type of the token is changed to ID and
* the parse is retried before an error is thrown.
*/
static public $yyFallback = array(
0, /* $ => nothing */
0, /* OTHER => nothing */
1, /* XML => OTHER */
1, /* PHP => OTHER */
1, /* SHORTTAGSTART => OTHER */
1, /* SHORTTAGEND => OTHER */
1, /* PHPSTART => OTHER */
1, /* PHPEND => OTHER */
1, /* COMMENTEND => OTHER */
1, /* COMMENTSTART => OTHER */
1, /* SINGLEQUOTE => OTHER */
1, /* LITERALSTART => OTHER */
1, /* LITERALEND => OTHER */
1, /* LDELIMTAG => OTHER */
1, /* RDELIMTAG => OTHER */
1, /* LDELSLASH => OTHER */
1, /* LDEL => OTHER */
1, /* RDEL => OTHER */
1, /* ISIN => OTHER */
1, /* AS => OTHER */
1, /* BOOLEAN => OTHER */
1, /* NULL => OTHER */
1, /* IDENTITY => OTHER */
1, /* NONEIDENTITY => OTHER */
1, /* EQUALS => OTHER */
1, /* NOTEQUALS => OTHER */
1, /* GREATEREQUAL => OTHER */
1, /* LESSEQUAL => OTHER */
1, /* GREATERTHAN => OTHER */
1, /* LESSTHAN => OTHER */
1, /* NOT => OTHER */
1, /* LAND => OTHER */
1, /* LOR => OTHER */
1, /* LXOR => OTHER */
1, /* ISODDBY => OTHER */
1, /* ISNOTODDBY => OTHER */
1, /* ISODD => OTHER */
1, /* ISNOTODD => OTHER */
1, /* ISEVENBY => OTHER */
1, /* ISNOTEVENBY => OTHER */
1, /* ISEVEN => OTHER */
1, /* ISNOTEVEN => OTHER */
1, /* ISDIVBY => OTHER */
1, /* ISNOTDIVBY => OTHER */
1, /* OPENP => OTHER */
1, /* CLOSEP => OTHER */
1, /* OPENB => OTHER */
1, /* CLOSEB => OTHER */
1, /* PTR => OTHER */
1, /* APTR => OTHER */
1, /* EQUAL => OTHER */
1, /* INTEGER => OTHER */
1, /* INCDEC => OTHER */
1, /* UNIMATH => OTHER */
1, /* MATH => OTHER */
1, /* DOLLAR => OTHER */
1, /* COLON => OTHER */
1, /* DOUBLECOLON => OTHER */
1, /* SEMICOLON => OTHER */
1, /* AT => OTHER */
1, /* HATCH => OTHER */
1, /* QUOTE => OTHER */
1, /* BACKTICK => OTHER */
1, /* VERT => OTHER */
1, /* DOT => OTHER */
1, /* COMMA => OTHER */
1, /* ANDSYM => OTHER */
1, /* ID => OTHER */
1, /* SPACE => OTHER */
1, /* INSTANCEOF => OTHER */
1, /* QMARK => OTHER */
);
/**
* Turn parser tracing on by giving a stream to which to write the trace
* and a prompt to preface each trace message. Tracing is turned off
* by making either argument NULL
*
* Inputs:
*
* - A stream resource to which trace output should be written.
* If NULL, then tracing is turned off.
* - A prefix string written at the beginning of every
* line of trace output. If NULL, then tracing is
* turned off.
*
* Outputs:
*
* - None.
* @param resource
* @param string
*/
static function Trace($TraceFILE, $zTracePrompt)
{
if (!$TraceFILE) {
$zTracePrompt = 0;
} elseif (!$zTracePrompt) {
$TraceFILE = 0;
}
self::$yyTraceFILE = $TraceFILE;
self::$yyTracePrompt = $zTracePrompt;
}
/**
* Output debug information to output (php://output stream)
*/
static function PrintTrace()
{
self::$yyTraceFILE = fopen('php://output', 'w');
self::$yyTracePrompt = '<br>';
}
/**
* @var resource|0
*/
static public $yyTraceFILE;
/**
* String to prepend to debug output
* @var string|0
*/
static public $yyTracePrompt;
/**
* @var int
*/
public $yyidx; /* Index of top element in stack */
/**
* @var int
*/
public $yyerrcnt; /* Shifts left before out of the error */
/**
* @var array
*/
public $yystack = array(); /* The parser's stack */
/**
* For tracing shifts, the names of all terminals and nonterminals
* are required. The following table supplies these names
* @var array
*/
public $yyTokenName = array(
'$', 'OTHER', 'XML', 'PHP',
'SHORTTAGSTART', 'SHORTTAGEND', 'PHPSTART', 'PHPEND',
'COMMENTEND', 'COMMENTSTART', 'SINGLEQUOTE', 'LITERALSTART',
'LITERALEND', 'LDELIMTAG', 'RDELIMTAG', 'LDELSLASH',
'LDEL', 'RDEL', 'ISIN', 'AS',
'BOOLEAN', 'NULL', 'IDENTITY', 'NONEIDENTITY',
'EQUALS', 'NOTEQUALS', 'GREATEREQUAL', 'LESSEQUAL',
'GREATERTHAN', 'LESSTHAN', 'NOT', 'LAND',
'LOR', 'LXOR', 'ISODDBY', 'ISNOTODDBY',
'ISODD', 'ISNOTODD', 'ISEVENBY', 'ISNOTEVENBY',
'ISEVEN', 'ISNOTEVEN', 'ISDIVBY', 'ISNOTDIVBY',
'OPENP', 'CLOSEP', 'OPENB', 'CLOSEB',
'PTR', 'APTR', 'EQUAL', 'INTEGER',
'INCDEC', 'UNIMATH', 'MATH', 'DOLLAR',
'COLON', 'DOUBLECOLON', 'SEMICOLON', 'AT',
'HATCH', 'QUOTE', 'BACKTICK', 'VERT',
'DOT', 'COMMA', 'ANDSYM', 'ID',
'SPACE', 'INSTANCEOF', 'QMARK', 'error',
'start', 'template', 'template_element', 'smartytag',
'smartyclosetag', 'text', 'variable', 'attributes',
'expr', 'ternary', 'varindexed', 'modifier',
'modparameters', 'ifexprs', 'statement', 'statements',
'varvar', 'foraction', 'value', 'array',
'attribute', 'exprs', 'math', 'bitop',
'function', 'doublequoted', 'method', 'params',
'objectchain', 'arrayindex', 'object', 'indexdef',
'varvarele', 'objectelement', 'modparameter', 'ifexpr',
'ifcond', 'lop', 'arrayelements', 'arrayelement',
'doublequotedcontent', 'textelement',
);
/**
* For tracing reduce actions, the names of all rules are required.
* @var array
*/
static public $yyRuleName = array(
/* 0 */ "start ::= template",
/* 1 */ "template ::= template_element",
/* 2 */ "template ::= template template_element",
/* 3 */ "template_element ::= LDEL smartytag RDEL",
/* 4 */ "template_element ::= LDELSLASH smartyclosetag RDEL",
/* 5 */ "template_element ::= COMMENTSTART text COMMENTEND",
/* 6 */ "template_element ::= LITERALSTART text LITERALEND",
/* 7 */ "template_element ::= LDELIMTAG",
/* 8 */ "template_element ::= RDELIMTAG",
/* 9 */ "template_element ::= PHP text SHORTTAGEND",
/* 10 */ "template_element ::= SHORTTAGSTART DOLLAR ID SHORTTAGEND",
/* 11 */ "template_element ::= XML",
/* 12 */ "template_element ::= SHORTTAGEND",
/* 13 */ "template_element ::= OTHER",
/* 14 */ "smartytag ::= variable attributes",
/* 15 */ "smartytag ::= expr attributes",
/* 16 */ "smartytag ::= ternary attributes",
/* 17 */ "smartytag ::= varindexed EQUAL expr attributes",
/* 18 */ "smartytag ::= varindexed EQUAL ternary attributes",
/* 19 */ "smartytag ::= ID attributes",
/* 20 */ "smartytag ::= ID PTR ID attributes",
/* 21 */ "smartytag ::= ID modifier modparameters attributes",
/* 22 */ "smartytag ::= ID SPACE ifexprs",
/* 23 */ "smartytag ::= ID SPACE statement",
/* 24 */ "smartytag ::= ID SPACE statements SEMICOLON ifexprs SEMICOLON DOLLAR varvar foraction",
/* 25 */ "foraction ::= EQUAL expr",
/* 26 */ "foraction ::= INCDEC",
/* 27 */ "smartytag ::= ID SPACE value AS DOLLAR varvar",
/* 28 */ "smartytag ::= ID SPACE array AS DOLLAR varvar",
/* 29 */ "smartyclosetag ::= ID attributes",
/* 30 */ "smartyclosetag ::= ID PTR ID",
/* 31 */ "attributes ::= attributes attribute",
/* 32 */ "attributes ::= attribute",
/* 33 */ "attributes ::=",
/* 34 */ "attribute ::= SPACE ID EQUAL expr",
/* 35 */ "attribute ::= SPACE ID EQUAL ternary",
/* 36 */ "attribute ::= SPACE ID",
/* 37 */ "statements ::= statement",
/* 38 */ "statements ::= statements COMMA statement",
/* 39 */ "statement ::= DOLLAR varvar EQUAL expr",
/* 40 */ "expr ::= ID",
/* 41 */ "expr ::= exprs",
/* 42 */ "expr ::= DOLLAR ID COLON ID",
/* 43 */ "expr ::= expr modifier modparameters",
/* 44 */ "exprs ::= value",
/* 45 */ "exprs ::= UNIMATH value",
/* 46 */ "exprs ::= exprs math value",
/* 47 */ "exprs ::= array",
/* 48 */ "ternary ::= OPENP ifexprs CLOSEP QMARK expr COLON expr",
/* 49 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr",
/* 50 */ "math ::= UNIMATH",
/* 51 */ "math ::= MATH",
/* 52 */ "bitop ::= ANDSYM",
/* 53 */ "value ::= variable",
/* 54 */ "value ::= INTEGER",
/* 55 */ "value ::= INTEGER DOT INTEGER",
/* 56 */ "value ::= BOOLEAN",
/* 57 */ "value ::= NULL",
/* 58 */ "value ::= function",
/* 59 */ "value ::= OPENP expr CLOSEP",
/* 60 */ "value ::= SINGLEQUOTE text SINGLEQUOTE",
/* 61 */ "value ::= SINGLEQUOTE SINGLEQUOTE",
/* 62 */ "value ::= QUOTE doublequoted QUOTE",
/* 63 */ "value ::= QUOTE QUOTE",
/* 64 */ "value ::= ID DOUBLECOLON method",
/* 65 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP",
/* 66 */ "value ::= ID DOUBLECOLON method objectchain",
/* 67 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain",
/* 68 */ "value ::= ID DOUBLECOLON ID",
/* 69 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex",
/* 70 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain",
/* 71 */ "value ::= LDEL smartytag RDEL",
/* 72 */ "variable ::= DOLLAR ID",
/* 73 */ "variable ::= varindexed",
/* 74 */ "variable ::= DOLLAR varvar AT ID",
/* 75 */ "variable ::= object",
/* 76 */ "variable ::= HATCH ID HATCH",
/* 77 */ "variable ::= HATCH variable HATCH",
/* 78 */ "varindexed ::= DOLLAR varvar arrayindex",
/* 79 */ "arrayindex ::= arrayindex indexdef",
/* 80 */ "arrayindex ::=",
/* 81 */ "indexdef ::= DOT ID",
/* 82 */ "indexdef ::= DOT INTEGER",
/* 83 */ "indexdef ::= DOT variable",
/* 84 */ "indexdef ::= DOT LDEL exprs RDEL",
/* 85 */ "indexdef ::= OPENB ID CLOSEB",
/* 86 */ "indexdef ::= OPENB ID DOT ID CLOSEB",
/* 87 */ "indexdef ::= OPENB exprs CLOSEB",
/* 88 */ "indexdef ::= OPENB CLOSEB",
/* 89 */ "varvar ::= varvarele",
/* 90 */ "varvar ::= varvar varvarele",
/* 91 */ "varvarele ::= ID",
/* 92 */ "varvarele ::= LDEL expr RDEL",
/* 93 */ "object ::= varindexed objectchain",
/* 94 */ "objectchain ::= objectelement",
/* 95 */ "objectchain ::= objectchain objectelement",
/* 96 */ "objectelement ::= PTR ID arrayindex",
/* 97 */ "objectelement ::= PTR variable arrayindex",
/* 98 */ "objectelement ::= PTR LDEL expr RDEL arrayindex",
/* 99 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex",
/* 100 */ "objectelement ::= PTR method",
/* 101 */ "function ::= ID OPENP params CLOSEP",
/* 102 */ "method ::= ID OPENP params CLOSEP",
/* 103 */ "params ::= expr COMMA params",
/* 104 */ "params ::= expr",
/* 105 */ "params ::=",
/* 106 */ "modifier ::= VERT AT ID",
/* 107 */ "modifier ::= VERT ID",
/* 108 */ "modparameters ::= modparameters modparameter",
/* 109 */ "modparameters ::=",
/* 110 */ "modparameter ::= COLON exprs",
/* 111 */ "modparameter ::= COLON ID",
/* 112 */ "ifexprs ::= ifexpr",
/* 113 */ "ifexprs ::= NOT ifexprs",
/* 114 */ "ifexprs ::= OPENP ifexprs CLOSEP",
/* 115 */ "ifexpr ::= expr",
/* 116 */ "ifexpr ::= value bitop value",
/* 117 */ "ifexpr ::= expr ifcond expr",
/* 118 */ "ifexpr ::= expr ISIN array",
/* 119 */ "ifexpr ::= expr ISIN value",
/* 120 */ "ifexpr ::= ifexprs lop ifexprs",
/* 121 */ "ifexpr ::= ifexprs ISDIVBY ifexprs",
/* 122 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs",
/* 123 */ "ifexpr ::= ifexprs ISEVEN",
/* 124 */ "ifexpr ::= ifexprs ISNOTEVEN",
/* 125 */ "ifexpr ::= ifexprs ISEVENBY ifexprs",
/* 126 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs",
/* 127 */ "ifexpr ::= ifexprs ISODD",
/* 128 */ "ifexpr ::= ifexprs ISNOTODD",
/* 129 */ "ifexpr ::= ifexprs ISODDBY ifexprs",
/* 130 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs",
/* 131 */ "ifexpr ::= value INSTANCEOF ID",
/* 132 */ "ifexpr ::= value INSTANCEOF value",
/* 133 */ "ifcond ::= EQUALS",
/* 134 */ "ifcond ::= NOTEQUALS",
/* 135 */ "ifcond ::= GREATERTHAN",
/* 136 */ "ifcond ::= LESSTHAN",
/* 137 */ "ifcond ::= GREATEREQUAL",
/* 138 */ "ifcond ::= LESSEQUAL",
/* 139 */ "ifcond ::= IDENTITY",
/* 140 */ "ifcond ::= NONEIDENTITY",
/* 141 */ "lop ::= LAND",
/* 142 */ "lop ::= LOR",
/* 143 */ "lop ::= LXOR",
/* 144 */ "array ::= OPENB arrayelements CLOSEB",
/* 145 */ "arrayelements ::= arrayelement",
/* 146 */ "arrayelements ::= arrayelements COMMA arrayelement",
/* 147 */ "arrayelements ::=",
/* 148 */ "arrayelement ::= expr APTR expr",
/* 149 */ "arrayelement ::= ID APTR expr",
/* 150 */ "arrayelement ::= expr",
/* 151 */ "doublequoted ::= doublequoted doublequotedcontent",
/* 152 */ "doublequoted ::= doublequotedcontent",
/* 153 */ "doublequotedcontent ::= BACKTICK ID BACKTICK",
/* 154 */ "doublequotedcontent ::= BACKTICK variable BACKTICK",
/* 155 */ "doublequotedcontent ::= DOLLAR ID",
/* 156 */ "doublequotedcontent ::= LDEL expr RDEL",
/* 157 */ "doublequotedcontent ::= LDEL smartytag RDEL",
/* 158 */ "doublequotedcontent ::= DOLLAR OTHER",
/* 159 */ "doublequotedcontent ::= LDEL OTHER",
/* 160 */ "doublequotedcontent ::= BACKTICK OTHER",
/* 161 */ "doublequotedcontent ::= OTHER",
/* 162 */ "text ::= text textelement",
/* 163 */ "text ::= textelement",
/* 164 */ "textelement ::= OTHER",
/* 165 */ "textelement ::= LDEL",
);
/**
* This function returns the symbolic name associated with a token
* value.
* @param int
* @return string
*/
function tokenName($tokenType)
{
if ($tokenType === 0) {
return 'End of Input';
}
if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) {
return $this->yyTokenName[$tokenType];
} else {
return "Unknown";
}
}
/**
* The following function deletes the value associated with a
* symbol. The symbol can be either a terminal or nonterminal.
* @param int the symbol code
* @param mixed the symbol's value
*/
static function yy_destructor($yymajor, $yypminor)
{
switch ($yymajor) {
/* Here is inserted the actions which take place when a
** terminal or non-terminal is destroyed. This can happen
** when the symbol is popped from the stack during a
** reduce or during error processing or when a parser is
** being destroyed before it is finished parsing.
**
** Note: during a reduce, the only symbols destroyed are those
** which appear on the RHS of the rule, but which are not used
** inside the C code.
*/
default: break; /* If no destructor action specified: do nothing */
}
}
/**
* Pop the parser's stack once.
*
* If there is a destructor routine associated with the token which
* is popped from the stack, then call it.
*
* Return the major token number for the symbol popped.
* @param TP_yyParser
* @return int
*/
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;
}
/**
* Deallocate and destroy a parser. Destructors are all called for
* all stack elements before shutting the parser down.
*/
function __destruct()
{
while ($this->yyidx >= 0) {
$this->yy_pop_parser_stack();
}
if (is_resource(self::$yyTraceFILE)) {
fclose(self::$yyTraceFILE);
}
}
/**
* Based on the current state and parser stack, get a list of all
* possible lookahead tokens
* @param int
* @return array
*/
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);
}
/**
* Based on the parser state and current parser stack, determine whether
* the lookahead token is possible.
*
* The parser will convert the token value to an error token if not. This
* catches some unusual edge cases where the parser would fail.
* @param int
* @return bool
*/
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;
}
/**
* Find the appropriate action for a parser given the terminal
* look-ahead token iLookAhead.
*
* If the look-ahead token is YYNOCODE, then check to see if the action is
* independent of the look-ahead. If it is, return the action, otherwise
* return YY_NO_ACTION.
* @param int The look-ahead token
*/
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];
}
}
/**
* Find the appropriate action for a parser given the non-terminal
* look-ahead token $iLookAhead.
*
* If the look-ahead token is self::YYNOCODE, then check to see if the action is
* independent of the look-ahead. If it is, return the action, otherwise
* return self::YY_NO_ACTION.
* @param int Current state number
* @param int The look-ahead token
*/
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];
}
}
/**
* Perform a shift action.
* @param int The new state to shift in
* @param int The major token to shift in
* @param mixed the minor token to shift in
*/
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();
}
/* Here code is inserted which will execute if the parser
** stack ever overflows */
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");
}
}
/**
* The following table contains information about every rule that
* is used during the reduce.
*
* <pre>
* array(
* array(
* int $lhs; Symbol on the left-hand side of the rule
* int $nrhs; Number of right-hand side symbols in the rule
* ),...
* );
* </pre>
*/
static public $yyRuleInfo = array(
array( 'lhs' => 72, 'rhs' => 1 ),
array( 'lhs' => 73, 'rhs' => 1 ),
array( 'lhs' => 73, 'rhs' => 2 ),
array( 'lhs' => 74, 'rhs' => 3 ),
array( 'lhs' => 74, 'rhs' => 3 ),
array( 'lhs' => 74, 'rhs' => 3 ),
array( 'lhs' => 74, 'rhs' => 3 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 3 ),
array( 'lhs' => 74, 'rhs' => 4 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 2 ),
array( 'lhs' => 75, 'rhs' => 2 ),
array( 'lhs' => 75, 'rhs' => 2 ),
array( 'lhs' => 75, 'rhs' => 4 ),
array( 'lhs' => 75, 'rhs' => 4 ),
array( 'lhs' => 75, 'rhs' => 2 ),
array( 'lhs' => 75, 'rhs' => 4 ),
array( 'lhs' => 75, 'rhs' => 4 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 9 ),
array( 'lhs' => 89, 'rhs' => 2 ),
array( 'lhs' => 89, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 6 ),
array( 'lhs' => 75, 'rhs' => 6 ),
array( 'lhs' => 76, 'rhs' => 2 ),
array( 'lhs' => 76, 'rhs' => 3 ),
array( 'lhs' => 79, 'rhs' => 2 ),
array( 'lhs' => 79, 'rhs' => 1 ),
array( 'lhs' => 79, 'rhs' => 0 ),
array( 'lhs' => 92, 'rhs' => 4 ),
array( 'lhs' => 92, 'rhs' => 4 ),
array( 'lhs' => 92, 'rhs' => 2 ),
array( 'lhs' => 87, 'rhs' => 1 ),
array( 'lhs' => 87, 'rhs' => 3 ),
array( 'lhs' => 86, 'rhs' => 4 ),
array( 'lhs' => 80, 'rhs' => 1 ),
array( 'lhs' => 80, 'rhs' => 1 ),
array( 'lhs' => 80, 'rhs' => 4 ),
array( 'lhs' => 80, 'rhs' => 3 ),
array( 'lhs' => 93, 'rhs' => 1 ),
array( 'lhs' => 93, 'rhs' => 2 ),
array( 'lhs' => 93, 'rhs' => 3 ),
array( 'lhs' => 93, 'rhs' => 1 ),
array( 'lhs' => 81, 'rhs' => 7 ),
array( 'lhs' => 81, 'rhs' => 7 ),
array( 'lhs' => 94, 'rhs' => 1 ),
array( 'lhs' => 94, 'rhs' => 1 ),
array( 'lhs' => 95, 'rhs' => 1 ),
array( 'lhs' => 90, 'rhs' => 1 ),
array( 'lhs' => 90, 'rhs' => 1 ),
array( 'lhs' => 90, 'rhs' => 3 ),
array( 'lhs' => 90, 'rhs' => 1 ),
array( 'lhs' => 90, 'rhs' => 1 ),
array( 'lhs' => 90, 'rhs' => 1 ),
array( 'lhs' => 90, 'rhs' => 3 ),
array( 'lhs' => 90, 'rhs' => 3 ),
array( 'lhs' => 90, 'rhs' => 2 ),
array( 'lhs' => 90, 'rhs' => 3 ),
array( 'lhs' => 90, 'rhs' => 2 ),
array( 'lhs' => 90, 'rhs' => 3 ),
array( 'lhs' => 90, 'rhs' => 7 ),
array( 'lhs' => 90, 'rhs' => 4 ),
array( 'lhs' => 90, 'rhs' => 8 ),
array( 'lhs' => 90, 'rhs' => 3 ),
array( 'lhs' => 90, 'rhs' => 5 ),
array( 'lhs' => 90, 'rhs' => 6 ),
array( 'lhs' => 90, 'rhs' => 3 ),
array( 'lhs' => 78, 'rhs' => 2 ),
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' => 82, 'rhs' => 3 ),
array( 'lhs' => 101, 'rhs' => 2 ),
array( 'lhs' => 101, 'rhs' => 0 ),
array( 'lhs' => 103, 'rhs' => 2 ),
array( 'lhs' => 103, 'rhs' => 2 ),
array( 'lhs' => 103, 'rhs' => 2 ),
array( 'lhs' => 103, 'rhs' => 4 ),
array( 'lhs' => 103, 'rhs' => 3 ),
array( 'lhs' => 103, 'rhs' => 5 ),
array( 'lhs' => 103, 'rhs' => 3 ),
array( 'lhs' => 103, 'rhs' => 2 ),
array( 'lhs' => 88, 'rhs' => 1 ),
array( 'lhs' => 88, 'rhs' => 2 ),
array( 'lhs' => 104, 'rhs' => 1 ),
array( 'lhs' => 104, 'rhs' => 3 ),
array( 'lhs' => 102, 'rhs' => 2 ),
array( 'lhs' => 100, 'rhs' => 1 ),
array( 'lhs' => 100, 'rhs' => 2 ),
array( 'lhs' => 105, 'rhs' => 3 ),
array( 'lhs' => 105, 'rhs' => 3 ),
array( 'lhs' => 105, 'rhs' => 5 ),
array( 'lhs' => 105, 'rhs' => 6 ),
array( 'lhs' => 105, 'rhs' => 2 ),
array( 'lhs' => 96, 'rhs' => 4 ),
array( 'lhs' => 98, 'rhs' => 4 ),
array( 'lhs' => 99, 'rhs' => 3 ),
array( 'lhs' => 99, 'rhs' => 1 ),
array( 'lhs' => 99, 'rhs' => 0 ),
array( 'lhs' => 83, 'rhs' => 3 ),
array( 'lhs' => 83, 'rhs' => 2 ),
array( 'lhs' => 84, 'rhs' => 2 ),
array( 'lhs' => 84, 'rhs' => 0 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 85, 'rhs' => 1 ),
array( 'lhs' => 85, 'rhs' => 2 ),
array( 'lhs' => 85, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 2 ),
array( 'lhs' => 107, 'rhs' => 2 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 2 ),
array( 'lhs' => 107, 'rhs' => 2 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 91, 'rhs' => 3 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 110, 'rhs' => 3 ),
array( 'lhs' => 110, 'rhs' => 0 ),
array( 'lhs' => 111, 'rhs' => 3 ),
array( 'lhs' => 111, 'rhs' => 3 ),
array( 'lhs' => 111, 'rhs' => 1 ),
array( 'lhs' => 97, 'rhs' => 2 ),
array( 'lhs' => 97, 'rhs' => 1 ),
array( 'lhs' => 112, 'rhs' => 3 ),
array( 'lhs' => 112, 'rhs' => 3 ),
array( 'lhs' => 112, 'rhs' => 2 ),
array( 'lhs' => 112, 'rhs' => 3 ),
array( 'lhs' => 112, 'rhs' => 3 ),
array( 'lhs' => 112, 'rhs' => 2 ),
array( 'lhs' => 112, 'rhs' => 2 ),
array( 'lhs' => 112, 'rhs' => 2 ),
array( 'lhs' => 112, 'rhs' => 1 ),
array( 'lhs' => 77, 'rhs' => 2 ),
array( 'lhs' => 77, 'rhs' => 1 ),
array( 'lhs' => 113, 'rhs' => 1 ),
array( 'lhs' => 113, 'rhs' => 1 ),
);
/**
* The following table contains a mapping of reduce action to method name
* that handles the reduction.
*
* If a rule is not set, it has no handler.
*/
static public $yyReduceMap = array(
0 => 0,
44 => 0,
53 => 0,
54 => 0,
56 => 0,
57 => 0,
58 => 0,
75 => 0,
145 => 0,
1 => 1,
41 => 1,
47 => 1,
50 => 1,
51 => 1,
89 => 1,
112 => 1,
152 => 1,
161 => 1,
163 => 1,
164 => 1,
165 => 1,
2 => 2,
79 => 2,
151 => 2,
159 => 2,
162 => 2,
3 => 3,
4 => 3,
5 => 5,
6 => 6,
7 => 7,
8 => 8,
9 => 9,
10 => 10,
11 => 11,
12 => 12,
13 => 13,
14 => 14,
15 => 14,
16 => 14,
17 => 17,
18 => 17,
19 => 19,
20 => 20,
21 => 21,
22 => 22,
23 => 23,
24 => 24,
25 => 25,
26 => 26,
32 => 26,
104 => 26,
150 => 26,
27 => 27,
28 => 28,
29 => 29,
30 => 30,
31 => 31,
33 => 33,
34 => 34,
35 => 34,
36 => 36,
37 => 37,
38 => 38,
39 => 39,
40 => 40,
2009-05-09 12:44:43 +00:00
42 => 42,
43 => 43,
45 => 45,
46 => 46,
48 => 48,
49 => 48,
52 => 52,
55 => 55,
59 => 59,
60 => 60,
61 => 61,
63 => 61,
62 => 62,
2009-05-09 12:44:43 +00:00
64 => 64,
65 => 65,
66 => 66,
67 => 67,
68 => 68,
69 => 69,
70 => 70,
71 => 71,
72 => 72,
73 => 73,
74 => 74,
76 => 76,
77 => 77,
2009-09-27 17:58:33 +00:00
78 => 78,
80 => 80,
109 => 80,
81 => 81,
82 => 82,
83 => 83,
84 => 84,
87 => 84,
85 => 85,
86 => 86,
88 => 88,
90 => 90,
91 => 91,
92 => 92,
114 => 92,
93 => 93,
94 => 94,
2009-09-27 17:58:33 +00:00
95 => 95,
96 => 96,
97 => 97,
98 => 98,
99 => 99,
2009-09-27 17:58:33 +00:00
100 => 100,
101 => 101,
102 => 102,
2009-09-27 17:58:33 +00:00
103 => 103,
105 => 105,
106 => 106,
107 => 107,
108 => 108,
2009-09-27 17:58:33 +00:00
110 => 110,
111 => 111,
113 => 113,
115 => 115,
2009-08-12 16:43:37 +00:00
116 => 116,
2009-09-27 17:58:33 +00:00
117 => 117,
120 => 117,
131 => 117,
118 => 118,
119 => 119,
121 => 121,
122 => 122,
123 => 123,
128 => 123,
124 => 124,
127 => 124,
125 => 125,
130 => 125,
126 => 126,
129 => 126,
132 => 132,
2009-09-27 17:58:33 +00:00
133 => 133,
134 => 134,
135 => 135,
136 => 136,
137 => 137,
2009-09-27 17:58:33 +00:00
138 => 138,
139 => 139,
140 => 140,
141 => 141,
142 => 142,
143 => 143,
144 => 144,
146 => 146,
2009-09-27 17:58:33 +00:00
147 => 147,
148 => 148,
149 => 149,
153 => 153,
154 => 154,
155 => 155,
156 => 156,
157 => 157,
158 => 158,
160 => 160,
);
/* Beginning here are the reduction cases. A typical example
** follows:
** #line <lineno> <grammarfile>
** function yy_r0($yymsp){ ... } // User supplied code
** #line <lineno> <thisfile>
*/
#line 79 "internal.templateparser.y"
function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 1990 "internal.templateparser.php"
#line 85 "internal.templateparser.y"
function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 1993 "internal.templateparser.php"
#line 87 "internal.templateparser.y"
function yy_r2(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 1996 "internal.templateparser.php"
#line 93 "internal.templateparser.y"
function yy_r3(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s);
if ($this->compiler->has_code) {
$tmp =''; foreach ($this->prefix_code as $code) {$tmp.=$code;} $this->prefix_code=array();
$this->_retvalue = $this->cacher->processNocacheCode($tmp.$s[0].$this->yystack[$this->yyidx + -1]->minor, $this->compiler,$this->nocache,true);
} else { $this->_retvalue = $s[0].$this->yystack[$this->yyidx + -1]->minor;} $this->nocache=false; }
#line 2003 "internal.templateparser.php"
#line 105 "internal.templateparser.y"
function yy_r5(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0]; }
#line 2006 "internal.templateparser.php"
#line 108 "internal.templateparser.y"
function yy_r6(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s2); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->yystack[$this->yyidx + -1]->minor.$s2[0], $this->compiler,false,false); }
#line 2009 "internal.templateparser.php"
#line 110 "internal.templateparser.y"
function yy_r7(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->smarty->left_delimiter, $this->compiler,false,false); }
#line 2012 "internal.templateparser.php"
#line 112 "internal.templateparser.y"
function yy_r8(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->smarty->right_delimiter, $this->compiler,false,false); }
#line 2015 "internal.templateparser.php"
#line 114 "internal.templateparser.y"
function yy_r9(){if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU) {
2009-09-29 18:52:58 +00:00
$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '<?php".str_replace("'","\'",$this->yystack[$this->yyidx + -1]->minor)."?>';?>\n", $this->compiler, false, false);
} elseif ($this->sec_obj->php_handling == SMARTY_PHP_QUOTE) {
2009-09-29 18:52:58 +00:00
$this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('<?php'.$this->yystack[$this->yyidx + -1]->minor.'?>', ENT_QUOTES), $this->compiler, false, false);
}elseif ($this->sec_obj->php_handling == SMARTY_PHP_ALLOW) {
2009-09-29 18:52:58 +00:00
$this->_retvalue = $this->cacher->processNocacheCode('<?php'.$this->yystack[$this->yyidx + -1]->minor.'?>', $this->compiler, false,true);
}elseif ($this->sec_obj->php_handling == SMARTY_PHP_REMOVE) {
$this->_retvalue = '';
}
}
#line 2027 "internal.templateparser.php"
#line 125 "internal.templateparser.y"
function yy_r10(){preg_match('/\s*/',$this->yystack[$this->yyidx + -3]->minor,$s); $this->_retvalue = $s[0];
if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU || $this->sec_obj->php_handling == SMARTY_PHP_ALLOW) {
$this->_retvalue .= $this->cacher->processNocacheCode("<?php echo '<?=$".$this->yystack[$this->yyidx + -1]->minor."?>'?>\n", $this->compiler, false, false);
} 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, false);
}elseif ($this->sec_obj == SMARTY_PHP_REMOVE) {
$this->_retvalue .= '';
}
}
#line 2038 "internal.templateparser.php"
#line 136 "internal.templateparser.y"
function yy_r11(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode("<?php echo '<?xml';?>", $this->compiler, true, true); }
#line 2041 "internal.templateparser.php"
#line 137 "internal.templateparser.y"
function yy_r12(){$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '?>';?>\n", $this->compiler, true, true); }
#line 2044 "internal.templateparser.php"
#line 139 "internal.templateparser.y"
function yy_r13(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false,false); }
#line 2047 "internal.templateparser.php"
#line 146 "internal.templateparser.y"
function yy_r14(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); }
#line 2050 "internal.templateparser.php"
#line 151 "internal.templateparser.y"
function yy_r17(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor)); }
#line 2053 "internal.templateparser.php"
#line 154 "internal.templateparser.y"
function yy_r19(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
#line 2056 "internal.templateparser.php"
#line 156 "internal.templateparser.y"
function yy_r20(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); }
#line 2059 "internal.templateparser.php"
#line 158 "internal.templateparser.y"
function yy_r21(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor).'<?php echo ';
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -2]->minor[0],'modifier')) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>";
} else {
if (is_callable($this->yystack[$this->yyidx + -2]->minor[0])) {
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -2]->minor[0], $this->compiler)) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>";
}
} else {
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -2]->minor[0] . "\"");
}
}
}
#line 2074 "internal.templateparser.php"
#line 172 "internal.templateparser.y"
function yy_r22(){if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) {
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -2]->minor . "\"");
}
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); }
#line 2080 "internal.templateparser.php"
#line 176 "internal.templateparser.y"
function yy_r23(){ if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) {
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -2]->minor . "\"");
}
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); }
#line 2086 "internal.templateparser.php"
#line 181 "internal.templateparser.y"
function yy_r24(){
if ($this->yystack[$this->yyidx + -8]->minor != 'for') {
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -8]->minor . "\"");
}
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -8]->minor,array('start'=>$this->yystack[$this->yyidx + -6]->minor,'ifexp'=>$this->yystack[$this->yyidx + -4]->minor,'varloop'=>$this->yystack[$this->yyidx + -1]->minor,'loop'=>$this->yystack[$this->yyidx + 0]->minor)); }
#line 2093 "internal.templateparser.php"
#line 186 "internal.templateparser.y"
function yy_r25(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; }
#line 2096 "internal.templateparser.php"
#line 187 "internal.templateparser.y"
function yy_r26(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2099 "internal.templateparser.php"
#line 189 "internal.templateparser.y"
function yy_r27(){
if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') {
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\"");
}
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor)); }
#line 2106 "internal.templateparser.php"
#line 194 "internal.templateparser.y"
function yy_r28(){
if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') {
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\"");
}
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor)); }
#line 2113 "internal.templateparser.php"
#line 201 "internal.templateparser.y"
function yy_r29(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',$this->yystack[$this->yyidx + 0]->minor); }
#line 2116 "internal.templateparser.php"
#line 203 "internal.templateparser.y"
function yy_r30(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + 0]->minor)); }
#line 2119 "internal.templateparser.php"
#line 210 "internal.templateparser.y"
function yy_r31(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
#line 2122 "internal.templateparser.php"
#line 214 "internal.templateparser.y"
function yy_r33(){ $this->_retvalue = array(); }
#line 2125 "internal.templateparser.php"
#line 217 "internal.templateparser.y"
function yy_r34(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2128 "internal.templateparser.php"
#line 219 "internal.templateparser.y"
function yy_r36(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); }
#line 2131 "internal.templateparser.php"
#line 224 "internal.templateparser.y"
function yy_r37(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); }
#line 2134 "internal.templateparser.php"
#line 225 "internal.templateparser.y"
function yy_r38(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; }
#line 2137 "internal.templateparser.php"
#line 227 "internal.templateparser.y"
function yy_r39(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2140 "internal.templateparser.php"
#line 233 "internal.templateparser.y"
function yy_r40(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2143 "internal.templateparser.php"
#line 236 "internal.templateparser.y"
function yy_r42(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; }
#line 2146 "internal.templateparser.php"
#line 237 "internal.templateparser.y"
function yy_r43(){
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] . "\"");
}
}
}
#line 2161 "internal.templateparser.php"
#line 254 "internal.templateparser.y"
function yy_r45(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2164 "internal.templateparser.php"
#line 256 "internal.templateparser.y"
function yy_r46(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; }
#line 2167 "internal.templateparser.php"
#line 263 "internal.templateparser.y"
function yy_r48(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; }
#line 2170 "internal.templateparser.php"
#line 276 "internal.templateparser.y"
function yy_r52(){$this->_retvalue = ' & '; }
#line 2173 "internal.templateparser.php"
#line 282 "internal.templateparser.y"
function yy_r55(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2176 "internal.templateparser.php"
#line 290 "internal.templateparser.y"
function yy_r59(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
#line 2179 "internal.templateparser.php"
#line 292 "internal.templateparser.y"
function yy_r60(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; }
#line 2182 "internal.templateparser.php"
#line 293 "internal.templateparser.y"
function yy_r61(){ $this->_retvalue = "''"; }
#line 2185 "internal.templateparser.php"
#line 295 "internal.templateparser.y"
function yy_r62(){ $this->_retvalue = '"'.$this->yystack[$this->yyidx + -1]->minor.'"'; }
#line 2188 "internal.templateparser.php"
#line 298 "internal.templateparser.y"
function yy_r64(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2191 "internal.templateparser.php"
#line 299 "internal.templateparser.y"
function yy_r65(){ $this->prefix_number++; $this->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 2194 "internal.templateparser.php"
#line 301 "internal.templateparser.y"
function yy_r66(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2197 "internal.templateparser.php"
#line 302 "internal.templateparser.y"
function yy_r67(){ $this->prefix_number++; $this->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 2200 "internal.templateparser.php"
#line 304 "internal.templateparser.y"
function yy_r68(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2203 "internal.templateparser.php"
#line 306 "internal.templateparser.y"
function yy_r69(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2206 "internal.templateparser.php"
#line 308 "internal.templateparser.y"
function yy_r70(){ $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 2209 "internal.templateparser.php"
#line 310 "internal.templateparser.y"
function yy_r71(){ $this->prefix_number++; $this->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + -1]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; }
#line 2212 "internal.templateparser.php"
#line 317 "internal.templateparser.y"
function yy_r72(){ $this->_retvalue = '$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + 0]->minor .'\')->value'; $this->nocache=$this->template->getVariable('$this->yystack[$this->yyidx + 0]->minor')->nocache; }
#line 2215 "internal.templateparser.php"
#line 319 "internal.templateparser.y"
function yy_r73(){if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('internal_smarty_var',$this->yystack[$this->yyidx + 0]->minor['index']);} else {
$this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor['var'] .')->value'.$this->yystack[$this->yyidx + 0]->minor['index']; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor['var'],"'"))->nocache;} }
#line 2219 "internal.templateparser.php"
#line 322 "internal.templateparser.y"
function yy_r74(){ $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"))->nocache; }
#line 2222 "internal.templateparser.php"
#line 326 "internal.templateparser.y"
function yy_r76(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; }
#line 2225 "internal.templateparser.php"
#line 327 "internal.templateparser.y"
function yy_r77(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; }
#line 2228 "internal.templateparser.php"
#line 330 "internal.templateparser.y"
function yy_r78(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2231 "internal.templateparser.php"
#line 338 "internal.templateparser.y"
function yy_r80(){return; }
#line 2234 "internal.templateparser.php"
#line 342 "internal.templateparser.y"
function yy_r81(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; }
#line 2237 "internal.templateparser.php"
#line 343 "internal.templateparser.y"
function yy_r82(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; }
#line 2240 "internal.templateparser.php"
#line 344 "internal.templateparser.y"
function yy_r83(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; }
#line 2243 "internal.templateparser.php"
#line 345 "internal.templateparser.y"
function yy_r84(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; }
#line 2246 "internal.templateparser.php"
#line 347 "internal.templateparser.y"
function yy_r85(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; }
#line 2249 "internal.templateparser.php"
#line 348 "internal.templateparser.y"
function yy_r86(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; }
#line 2252 "internal.templateparser.php"
#line 352 "internal.templateparser.y"
function yy_r88(){$this->_retvalue = ''; }
#line 2255 "internal.templateparser.php"
#line 360 "internal.templateparser.y"
function yy_r90(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2258 "internal.templateparser.php"
#line 362 "internal.templateparser.y"
function yy_r91(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2261 "internal.templateparser.php"
#line 364 "internal.templateparser.y"
function yy_r92(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2264 "internal.templateparser.php"
#line 369 "internal.templateparser.y"
function yy_r93(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('internal_smarty_var',$this->yystack[$this->yyidx + -1]->minor['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['index'].$this->yystack[$this->yyidx + 0]->minor; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"))->nocache;} }
#line 2268 "internal.templateparser.php"
#line 372 "internal.templateparser.y"
function yy_r94(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2271 "internal.templateparser.php"
#line 374 "internal.templateparser.y"
function yy_r95(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2274 "internal.templateparser.php"
#line 376 "internal.templateparser.y"
function yy_r96(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2277 "internal.templateparser.php"
#line 377 "internal.templateparser.y"
function yy_r97(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2280 "internal.templateparser.php"
#line 378 "internal.templateparser.y"
function yy_r98(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2283 "internal.templateparser.php"
#line 379 "internal.templateparser.y"
function yy_r99(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2286 "internal.templateparser.php"
#line 381 "internal.templateparser.y"
function yy_r100(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2289 "internal.templateparser.php"
#line 387 "internal.templateparser.y"
function yy_r101(){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 . "\"");
}
} }
#line 2298 "internal.templateparser.php"
#line 398 "internal.templateparser.y"
function yy_r102(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
#line 2301 "internal.templateparser.php"
#line 402 "internal.templateparser.y"
function yy_r103(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; }
#line 2304 "internal.templateparser.php"
#line 406 "internal.templateparser.y"
function yy_r105(){ return; }
#line 2307 "internal.templateparser.php"
#line 411 "internal.templateparser.y"
function yy_r106(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); }
#line 2310 "internal.templateparser.php"
#line 412 "internal.templateparser.y"
function yy_r107(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); }
#line 2313 "internal.templateparser.php"
#line 424 "internal.templateparser.y"
function yy_r108(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2316 "internal.templateparser.php"
#line 428 "internal.templateparser.y"
function yy_r110(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; }
#line 2319 "internal.templateparser.php"
#line 429 "internal.templateparser.y"
function yy_r111(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2322 "internal.templateparser.php"
#line 436 "internal.templateparser.y"
function yy_r113(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2325 "internal.templateparser.php"
#line 441 "internal.templateparser.y"
function yy_r115(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; }
#line 2328 "internal.templateparser.php"
#line 442 "internal.templateparser.y"
function yy_r116(){$this->_retvalue =$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2331 "internal.templateparser.php"
#line 443 "internal.templateparser.y"
function yy_r117(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2334 "internal.templateparser.php"
#line 444 "internal.templateparser.y"
function yy_r118(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2337 "internal.templateparser.php"
#line 445 "internal.templateparser.y"
function yy_r119(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2340 "internal.templateparser.php"
#line 447 "internal.templateparser.y"
function yy_r121(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2343 "internal.templateparser.php"
#line 448 "internal.templateparser.y"
function yy_r122(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2346 "internal.templateparser.php"
#line 449 "internal.templateparser.y"
function yy_r123(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2349 "internal.templateparser.php"
#line 450 "internal.templateparser.y"
function yy_r124(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2352 "internal.templateparser.php"
#line 451 "internal.templateparser.y"
function yy_r125(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2355 "internal.templateparser.php"
#line 452 "internal.templateparser.y"
function yy_r126(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2358 "internal.templateparser.php"
#line 458 "internal.templateparser.y"
function yy_r132(){$this->prefix_number++; $this->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; }
#line 2361 "internal.templateparser.php"
#line 460 "internal.templateparser.y"
function yy_r133(){$this->_retvalue = '=='; }
#line 2364 "internal.templateparser.php"
#line 461 "internal.templateparser.y"
function yy_r134(){$this->_retvalue = '!='; }
#line 2367 "internal.templateparser.php"
#line 462 "internal.templateparser.y"
function yy_r135(){$this->_retvalue = '>'; }
#line 2370 "internal.templateparser.php"
#line 463 "internal.templateparser.y"
function yy_r136(){$this->_retvalue = '<'; }
#line 2373 "internal.templateparser.php"
#line 464 "internal.templateparser.y"
function yy_r137(){$this->_retvalue = '>='; }
#line 2376 "internal.templateparser.php"
#line 465 "internal.templateparser.y"
function yy_r138(){$this->_retvalue = '<='; }
#line 2379 "internal.templateparser.php"
#line 466 "internal.templateparser.y"
function yy_r139(){$this->_retvalue = '==='; }
#line 2382 "internal.templateparser.php"
#line 467 "internal.templateparser.y"
function yy_r140(){$this->_retvalue = '!=='; }
#line 2385 "internal.templateparser.php"
#line 469 "internal.templateparser.y"
function yy_r141(){$this->_retvalue = '&&'; }
#line 2388 "internal.templateparser.php"
#line 470 "internal.templateparser.y"
function yy_r142(){$this->_retvalue = '||'; }
#line 2391 "internal.templateparser.php"
#line 471 "internal.templateparser.y"
function yy_r143(){$this->_retvalue = ' XOR '; }
#line 2394 "internal.templateparser.php"
#line 476 "internal.templateparser.y"
function yy_r144(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2397 "internal.templateparser.php"
#line 478 "internal.templateparser.y"
function yy_r146(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; }
#line 2400 "internal.templateparser.php"
#line 479 "internal.templateparser.y"
function yy_r147(){ return; }
#line 2403 "internal.templateparser.php"
#line 480 "internal.templateparser.y"
function yy_r148(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2406 "internal.templateparser.php"
#line 481 "internal.templateparser.y"
function yy_r149(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2409 "internal.templateparser.php"
#line 490 "internal.templateparser.y"
function yy_r153(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; }
#line 2412 "internal.templateparser.php"
#line 491 "internal.templateparser.y"
function yy_r154(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; }
#line 2415 "internal.templateparser.php"
#line 492 "internal.templateparser.y"
function yy_r155(){$this->_retvalue = '".'.'$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + 0]->minor .'\')->value'.'."'; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"))->nocache; }
#line 2418 "internal.templateparser.php"
#line 493 "internal.templateparser.y"
function yy_r156(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0].'".('.$this->yystack[$this->yyidx + -1]->minor.')."'; }
#line 2421 "internal.templateparser.php"
#line 494 "internal.templateparser.y"
function yy_r157(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->prefix_number++; $this->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + -1]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = $s[0].'".$_tmp'.$this->prefix_number.'."'; }
#line 2424 "internal.templateparser.php"
#line 495 "internal.templateparser.y"
function yy_r158(){$this->_retvalue = '$'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2427 "internal.templateparser.php"
#line 497 "internal.templateparser.y"
function yy_r160(){$this->_retvalue = '`'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2430 "internal.templateparser.php"
/**
* placeholder for the left hand side in a reduce operation.
*
* For a parser with a rule like this:
* <pre>
* rule(A) ::= B. { A = 1; }
* </pre>
*
* The parser will translate to something like:
*
* <code>
* function yy_r0(){$this->_retvalue = 1;}
* </code>
*/
private $_retvalue;
/**
* Perform a reduce action and the shift that must immediately
* follow the reduce.
*
* For a rule such as:
*
* <pre>
* A ::= B blah C. { dosomething(); }
* </pre>
*
* This function will first call the action, if any, ("dosomething();" in our
* example), and then it will pop three states from the stack,
* one for each entry on the right-hand side of the expression
* (B, blah, and C in our example rule), and then push the result of the action
* back on to the stack with the resulting state reduced to (as described in the .out
* file)
* @param int Number of the rule by which to reduce
*/
function yy_reduce($yyruleno)
{
//int $yygoto; /* The next state */
//int $yyact; /* The next action */
//mixed $yygotominor; /* The LHS of the rule reduced */
//TP_yyStackEntry $yymsp; /* The top of the parser's stack */
//int $yysize; /* Amount to pop the stack */
$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 we are not debugging and the reduce action popped at least
** one element off the stack, then we can push the new element back
** onto the stack here, and skip the stack overflow test in yy_shift().
** That gives a significant speed improvement. */
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();
}
}
/**
* The following code executes when the parse fails
*
* Code from %parse_fail is inserted here
*/
function yy_parse_failed()
{
if (self::$yyTraceFILE) {
fprintf(self::$yyTraceFILE, "%sFail!\n", self::$yyTracePrompt);
}
while ($this->yyidx >= 0) {
$this->yy_pop_parser_stack();
}
/* Here code is inserted which will be executed whenever the
** parser fails */
}
/**
* The following code executes when a syntax error first occurs.
*
* %syntax_error code is inserted here
* @param int The major type of the error token
* @param mixed The minor type of the error token
*/
function yy_syntax_error($yymajor, $TOKEN)
{
#line 60 "internal.templateparser.y"
$this->internalError = true;
$this->yymajor = $yymajor;
$this->compiler->trigger_template_error();
#line 2548 "internal.templateparser.php"
}
/**
* The following is executed when the parser accepts
*
* %parse_accept code is inserted here
*/
function yy_accept()
{
if (self::$yyTraceFILE) {
fprintf(self::$yyTraceFILE, "%sAccept!\n", self::$yyTracePrompt);
}
while ($this->yyidx >= 0) {
$stack = $this->yy_pop_parser_stack();
}
/* Here code is inserted which will be executed whenever the
** parser accepts */
#line 52 "internal.templateparser.y"
$this->successful = !$this->internalError;
$this->internalError = false;
$this->retvalue = $this->_retvalue;
//echo $this->retvalue."\n\n";
#line 2573 "internal.templateparser.php"
}
/**
* The main parser program.
*
* The first argument is the major token number. The second is
* the token value string as scanned from the input.
*
* @param int the token number
* @param mixed the token value
* @param mixed any extra arguments that should be passed to handlers
*/
function doParse($yymajor, $yytokenvalue)
{
// $yyact; /* The parser action. */
// $yyendofinput; /* True if we are at the end of input */
$yyerrorhit = 0; /* True if yymajor has invoked an error */
/* (re)initialize the parser, if necessary */
if ($this->yyidx === null || $this->yyidx < 0) {
/* if ($yymajor == 0) return; // not sure why this was here... */
$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) {
/* A syntax error has occurred.
** The response to an error depends upon whether or not the
** grammar defines an error token "ERROR".
**
** This is what we do if the grammar does define ERROR:
**
** * Call the %syntax_error function.
**
** * Begin popping the stack until we enter a state where
** it is legal to shift the error symbol, then shift
** the error symbol.
**
** * Set the error count to three.
**
** * Begin accepting and shifting new tokens. No new error
** processing will occur until three tokens have been
** shifted successfully.
**
*/
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 {
/* YYERRORSYMBOL is not defined */
/* This is what we do if the grammar does not define ERROR:
**
** * Report an error message, and throw away the input token.
**
** * If the input token is $, then fail the parse.
**
** As before, subsequent error messages are suppressed until
** three input tokens have been successfully shifted.
*/
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);
}
}