Files
smarty/libs/sysplugins/internal.templateparser.php
Uwe.Tews 4a68612a5a - added {$foo++}{$foo--} syntax
- buxfix changed PHP "if (..):" to "if (..){" because of possible bad code when concenating PHP tags
- autoload Smarty internal classes
2009-10-21 09:49:43 +00:00

2715 lines
130 KiB
PHP

<?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->compiler->has_variable_string = false;
$this->nocache = false;
$this->compiler->prefix_code = array();
$this->prefix_number = 0;
}
public static function &instance($new_instance = null)
{
static $instance = null;
if (isset($new_instance) && is_object($new_instance))
$instance = $new_instance;
return $instance;
}
#line 148 "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 = 475;
const YY_ACCEPT_ACTION = 474;
const YY_ERROR_ACTION = 473;
/* 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 = 1126;
static public $yy_action = array(
/* 0 */ 279, 285, 286, 5, 2, 272, 278, 10, 13, 270,
/* 10 */ 271, 3, 4, 29, 279, 285, 286, 5, 2, 272,
/* 20 */ 278, 10, 13, 270, 271, 3, 4, 188, 284, 279,
/* 30 */ 285, 286, 5, 2, 272, 278, 10, 13, 270, 271,
/* 40 */ 3, 4, 64, 178, 125, 64, 29, 31, 15, 280,
/* 50 */ 132, 15, 259, 260, 151, 259, 260, 212, 204, 70,
/* 60 */ 185, 213, 7, 242, 282, 73, 103, 74, 27, 219,
/* 70 */ 222, 139, 16, 29, 241, 160, 9, 154, 14, 32,
/* 80 */ 172, 14, 209, 181, 79, 41, 181, 66, 41, 220,
/* 90 */ 69, 231, 50, 59, 64, 50, 59, 282, 217, 163,
/* 100 */ 15, 239, 157, 262, 259, 260, 232, 26, 279, 285,
/* 110 */ 286, 5, 2, 272, 278, 10, 13, 270, 271, 3,
/* 120 */ 4, 64, 29, 160, 282, 294, 295, 15, 32, 269,
/* 130 */ 14, 259, 260, 107, 227, 181, 281, 41, 296, 69,
/* 140 */ 244, 7, 24, 64, 50, 59, 252, 18, 144, 15,
/* 150 */ 79, 165, 36, 259, 260, 9, 26, 14, 254, 290,
/* 160 */ 112, 104, 181, 266, 41, 168, 72, 231, 267, 262,
/* 170 */ 22, 50, 59, 282, 151, 160, 235, 8, 156, 14,
/* 180 */ 183, 231, 232, 218, 181, 189, 41, 252, 66, 294,
/* 190 */ 295, 79, 221, 50, 59, 64, 232, 199, 342, 277,
/* 200 */ 45, 15, 296, 224, 266, 259, 260, 252, 160, 58,
/* 210 */ 262, 79, 245, 183, 86, 203, 166, 64, 6, 159,
/* 220 */ 175, 135, 104, 15, 266, 153, 38, 259, 260, 8,
/* 230 */ 262, 14, 224, 76, 242, 273, 181, 12, 41, 169,
/* 240 */ 66, 231, 289, 69, 146, 50, 59, 6, 50, 183,
/* 250 */ 233, 32, 163, 14, 160, 174, 232, 161, 181, 183,
/* 260 */ 41, 236, 66, 206, 47, 69, 69, 50, 59, 64,
/* 270 */ 50, 50, 252, 54, 163, 15, 79, 249, 201, 259,
/* 280 */ 260, 37, 192, 44, 254, 290, 161, 98, 160, 266,
/* 290 */ 268, 64, 240, 47, 252, 262, 127, 15, 79, 46,
/* 300 */ 136, 259, 260, 32, 150, 14, 254, 290, 33, 104,
/* 310 */ 181, 266, 41, 242, 66, 18, 131, 262, 225, 50,
/* 320 */ 59, 265, 44, 345, 43, 32, 158, 14, 112, 474,
/* 330 */ 95, 211, 181, 145, 41, 193, 69, 151, 294, 295,
/* 340 */ 231, 50, 59, 64, 226, 53, 242, 69, 167, 15,
/* 350 */ 18, 296, 50, 259, 260, 232, 21, 237, 202, 121,
/* 360 */ 40, 79, 79, 112, 276, 230, 299, 300, 287, 275,
/* 370 */ 301, 288, 18, 187, 345, 34, 194, 8, 152, 14,
/* 380 */ 262, 262, 197, 37, 181, 112, 41, 274, 66, 160,
/* 390 */ 283, 160, 140, 50, 59, 261, 1, 265, 155, 114,
/* 400 */ 45, 46, 79, 40, 281, 160, 134, 276, 230, 299,
/* 410 */ 300, 287, 275, 301, 288, 141, 64, 216, 116, 242,
/* 420 */ 29, 262, 15, 43, 160, 274, 259, 260, 242, 40,
/* 430 */ 179, 18, 255, 276, 230, 299, 300, 287, 275, 301,
/* 440 */ 288, 255, 298, 160, 112, 64, 25, 160, 160, 17,
/* 450 */ 32, 15, 14, 160, 100, 259, 260, 181, 82, 64,
/* 460 */ 23, 69, 111, 168, 252, 15, 50, 59, 79, 259,
/* 470 */ 260, 282, 29, 167, 160, 160, 238, 292, 117, 32,
/* 480 */ 39, 266, 63, 231, 102, 306, 181, 262, 96, 239,
/* 490 */ 69, 106, 183, 32, 130, 50, 59, 292, 232, 292,
/* 500 */ 181, 252, 162, 207, 69, 79, 292, 242, 258, 50,
/* 510 */ 59, 183, 49, 302, 303, 252, 167, 58, 266, 79,
/* 520 */ 61, 151, 91, 200, 262, 99, 186, 196, 290, 252,
/* 530 */ 104, 57, 266, 79, 143, 292, 85, 44, 262, 20,
/* 540 */ 101, 196, 290, 273, 104, 28, 266, 242, 67, 252,
/* 550 */ 243, 58, 262, 79, 138, 293, 94, 273, 248, 257,
/* 560 */ 239, 196, 290, 149, 104, 147, 266, 242, 265, 252,
/* 570 */ 265, 58, 262, 79, 133, 239, 83, 273, 126, 250,
/* 580 */ 60, 196, 290, 214, 104, 182, 266, 242, 253, 208,
/* 590 */ 223, 242, 262, 170, 263, 292, 62, 273, 55, 77,
/* 600 */ 65, 35, 176, 252, 205, 331, 21, 79, 254, 290,
/* 610 */ 252, 104, 58, 266, 79, 251, 210, 88, 264, 262,
/* 620 */ 266, 184, 196, 290, 75, 104, 262, 266, 252, 22,
/* 630 */ 56, 137, 79, 262, 297, 84, 78, 30, 273, 68,
/* 640 */ 196, 290, 228, 104, 247, 266, 180, 71, 252, 190,
/* 650 */ 58, 262, 79, 177, 215, 90, 273, 234, 281, 42,
/* 660 */ 196, 290, 261, 104, 246, 266, 11, 255, 256, 39,
/* 670 */ 19, 262, 80, 281, 48, 252, 273, 58, 115, 79,
/* 680 */ 281, 281, 89, 281, 281, 281, 281, 196, 290, 252,
/* 690 */ 104, 58, 266, 79, 281, 281, 92, 281, 262, 281,
/* 700 */ 281, 196, 290, 273, 104, 281, 266, 252, 281, 58,
/* 710 */ 281, 79, 262, 281, 87, 281, 281, 273, 281, 196,
/* 720 */ 290, 281, 104, 281, 266, 281, 281, 252, 281, 58,
/* 730 */ 262, 79, 281, 281, 93, 273, 281, 281, 281, 196,
/* 740 */ 290, 281, 104, 281, 266, 281, 281, 281, 281, 281,
/* 750 */ 262, 173, 281, 281, 62, 273, 51, 77, 65, 281,
/* 760 */ 281, 281, 281, 281, 281, 281, 254, 290, 281, 104,
/* 770 */ 281, 266, 281, 281, 281, 281, 281, 262, 171, 281,
/* 780 */ 281, 62, 281, 55, 77, 65, 281, 281, 252, 281,
/* 790 */ 109, 281, 79, 254, 290, 281, 104, 281, 266, 281,
/* 800 */ 254, 290, 281, 104, 262, 266, 281, 281, 281, 281,
/* 810 */ 252, 262, 109, 281, 79, 281, 281, 281, 281, 164,
/* 820 */ 305, 281, 254, 290, 281, 104, 281, 266, 281, 281,
/* 830 */ 281, 281, 281, 262, 252, 281, 110, 281, 79, 281,
/* 840 */ 281, 281, 304, 281, 281, 281, 254, 290, 252, 104,
/* 850 */ 110, 266, 79, 281, 198, 281, 281, 262, 281, 281,
/* 860 */ 254, 290, 252, 104, 110, 266, 79, 281, 291, 281,
/* 870 */ 281, 262, 281, 281, 254, 290, 281, 104, 281, 266,
/* 880 */ 281, 281, 191, 281, 252, 262, 110, 281, 79, 281,
/* 890 */ 281, 281, 281, 281, 281, 281, 254, 290, 281, 104,
/* 900 */ 281, 266, 281, 281, 195, 281, 252, 262, 123, 229,
/* 910 */ 79, 281, 281, 252, 281, 52, 81, 79, 254, 290,
/* 920 */ 281, 104, 281, 266, 281, 254, 290, 281, 104, 262,
/* 930 */ 266, 252, 281, 113, 281, 79, 262, 281, 281, 281,
/* 940 */ 281, 281, 281, 254, 290, 252, 104, 128, 266, 79,
/* 950 */ 281, 281, 281, 281, 262, 281, 281, 254, 290, 281,
/* 960 */ 104, 252, 266, 118, 281, 79, 281, 281, 262, 281,
/* 970 */ 281, 281, 281, 254, 290, 252, 104, 122, 266, 79,
/* 980 */ 281, 281, 281, 281, 262, 281, 281, 254, 290, 252,
/* 990 */ 104, 129, 266, 79, 281, 281, 281, 281, 262, 281,
/* 1000 */ 281, 254, 290, 281, 104, 252, 266, 108, 281, 79,
/* 1010 */ 281, 281, 262, 281, 281, 281, 281, 254, 290, 281,
/* 1020 */ 104, 281, 266, 252, 281, 124, 281, 79, 262, 281,
/* 1030 */ 281, 281, 281, 281, 281, 254, 290, 252, 104, 120,
/* 1040 */ 266, 79, 281, 281, 281, 281, 262, 281, 281, 254,
/* 1050 */ 290, 281, 104, 252, 266, 148, 281, 79, 281, 281,
/* 1060 */ 262, 281, 281, 281, 281, 254, 290, 252, 104, 119,
/* 1070 */ 266, 79, 281, 281, 281, 281, 262, 281, 281, 254,
/* 1080 */ 290, 252, 104, 142, 266, 79, 281, 281, 252, 281,
/* 1090 */ 262, 281, 79, 254, 290, 281, 104, 281, 266, 281,
/* 1100 */ 254, 290, 252, 105, 262, 266, 79, 281, 281, 281,
/* 1110 */ 281, 262, 281, 281, 254, 290, 281, 97, 281, 266,
/* 1120 */ 281, 281, 281, 281, 281, 262,
);
static public $yy_lookahead = array(
/* 0 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
/* 10 */ 41, 42, 43, 16, 31, 32, 33, 34, 35, 36,
/* 20 */ 37, 38, 39, 40, 41, 42, 43, 58, 45, 31,
/* 30 */ 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
/* 40 */ 42, 43, 10, 45, 84, 10, 16, 50, 16, 52,
/* 50 */ 79, 16, 20, 21, 83, 20, 21, 1, 2, 3,
/* 60 */ 4, 5, 30, 92, 67, 9, 77, 11, 56, 13,
/* 70 */ 14, 15, 16, 16, 1, 63, 44, 17, 46, 44,
/* 80 */ 78, 46, 47, 51, 82, 53, 51, 55, 53, 17,
/* 90 */ 55, 1, 60, 61, 10, 60, 61, 67, 8, 67,
/* 100 */ 16, 112, 67, 101, 20, 21, 16, 50, 31, 32,
/* 110 */ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
/* 120 */ 43, 10, 16, 63, 67, 53, 54, 16, 44, 17,
/* 130 */ 46, 20, 21, 100, 1, 51, 103, 53, 66, 55,
/* 140 */ 67, 30, 16, 10, 60, 61, 78, 44, 80, 16,
/* 150 */ 82, 67, 49, 20, 21, 44, 50, 46, 90, 91,
/* 160 */ 57, 93, 51, 95, 53, 59, 55, 1, 104, 101,
/* 170 */ 44, 60, 61, 67, 83, 63, 10, 44, 67, 46,
/* 180 */ 68, 1, 16, 47, 51, 55, 53, 78, 55, 53,
/* 190 */ 54, 82, 12, 60, 61, 10, 16, 67, 17, 90,
/* 200 */ 67, 16, 66, 1, 95, 20, 21, 78, 63, 80,
/* 210 */ 101, 82, 1, 68, 85, 86, 87, 10, 16, 90,
/* 220 */ 91, 79, 93, 16, 95, 83, 16, 20, 21, 44,
/* 230 */ 101, 46, 1, 52, 92, 106, 51, 58, 53, 48,
/* 240 */ 55, 1, 17, 55, 65, 60, 61, 16, 60, 68,
/* 250 */ 10, 44, 67, 46, 63, 67, 16, 55, 51, 68,
/* 260 */ 53, 51, 55, 61, 62, 55, 55, 60, 61, 10,
/* 270 */ 60, 60, 78, 84, 67, 16, 82, 67, 67, 20,
/* 280 */ 21, 46, 59, 48, 90, 91, 55, 93, 63, 95,
/* 290 */ 67, 10, 61, 62, 78, 101, 80, 16, 82, 64,
/* 300 */ 79, 20, 21, 44, 83, 46, 90, 91, 16, 93,
/* 310 */ 51, 95, 53, 92, 55, 44, 99, 101, 47, 60,
/* 320 */ 61, 104, 48, 17, 69, 44, 67, 46, 57, 72,
/* 330 */ 73, 74, 51, 79, 53, 64, 55, 83, 53, 54,
/* 340 */ 1, 60, 61, 10, 5, 84, 92, 55, 67, 16,
/* 350 */ 44, 66, 60, 20, 21, 16, 50, 78, 78, 67,
/* 360 */ 18, 82, 82, 57, 22, 23, 24, 25, 26, 27,
/* 370 */ 28, 29, 44, 19, 68, 49, 48, 44, 17, 46,
/* 380 */ 101, 101, 67, 46, 51, 57, 53, 45, 55, 63,
/* 390 */ 89, 63, 99, 60, 61, 102, 68, 104, 78, 100,
/* 400 */ 67, 64, 82, 18, 103, 63, 79, 22, 23, 24,
/* 410 */ 25, 26, 27, 28, 29, 79, 10, 97, 100, 92,
/* 420 */ 16, 101, 16, 69, 63, 45, 20, 21, 92, 18,
/* 430 */ 45, 44, 105, 22, 23, 24, 25, 26, 27, 28,
/* 440 */ 29, 105, 47, 63, 57, 10, 56, 63, 63, 65,
/* 450 */ 44, 16, 46, 63, 77, 20, 21, 51, 67, 10,
/* 460 */ 65, 55, 88, 59, 78, 16, 60, 61, 82, 20,
/* 470 */ 21, 67, 16, 67, 63, 63, 90, 103, 100, 44,
/* 480 */ 56, 95, 88, 1, 88, 86, 51, 101, 96, 112,
/* 490 */ 55, 88, 68, 44, 79, 60, 61, 103, 16, 103,
/* 500 */ 51, 78, 67, 111, 55, 82, 103, 92, 92, 60,
/* 510 */ 61, 68, 67, 90, 91, 78, 67, 80, 95, 82,
/* 520 */ 88, 83, 85, 67, 101, 77, 76, 90, 91, 78,
/* 530 */ 93, 80, 95, 82, 79, 103, 85, 48, 101, 50,
/* 540 */ 77, 90, 91, 106, 93, 107, 95, 92, 55, 78,
/* 550 */ 67, 80, 101, 82, 79, 67, 85, 106, 62, 17,
/* 560 */ 112, 90, 91, 99, 93, 99, 95, 92, 104, 78,
/* 570 */ 104, 80, 101, 82, 79, 112, 85, 106, 79, 60,
/* 580 */ 88, 90, 91, 67, 93, 64, 95, 92, 51, 17,
/* 590 */ 17, 92, 101, 75, 60, 103, 78, 106, 80, 81,
/* 600 */ 82, 70, 67, 78, 5, 17, 50, 82, 90, 91,
/* 610 */ 78, 93, 80, 95, 82, 90, 45, 85, 67, 101,
/* 620 */ 95, 19, 90, 91, 55, 93, 101, 95, 78, 44,
/* 630 */ 80, 67, 82, 101, 45, 85, 45, 70, 106, 55,
/* 640 */ 90, 91, 17, 93, 62, 95, 67, 55, 78, 56,
/* 650 */ 80, 101, 82, 55, 47, 85, 106, 112, 103, 94,
/* 660 */ 90, 91, 102, 93, 111, 95, 108, 105, 74, 56,
/* 670 */ 44, 101, 97, 113, 100, 78, 106, 80, 100, 82,
/* 680 */ 113, 113, 85, 113, 113, 113, 113, 90, 91, 78,
/* 690 */ 93, 80, 95, 82, 113, 113, 85, 113, 101, 113,
/* 700 */ 113, 90, 91, 106, 93, 113, 95, 78, 113, 80,
/* 710 */ 113, 82, 101, 113, 85, 113, 113, 106, 113, 90,
/* 720 */ 91, 113, 93, 113, 95, 113, 113, 78, 113, 80,
/* 730 */ 101, 82, 113, 113, 85, 106, 113, 113, 113, 90,
/* 740 */ 91, 113, 93, 113, 95, 113, 113, 113, 113, 113,
/* 750 */ 101, 75, 113, 113, 78, 106, 80, 81, 82, 113,
/* 760 */ 113, 113, 113, 113, 113, 113, 90, 91, 113, 93,
/* 770 */ 113, 95, 113, 113, 113, 113, 113, 101, 75, 113,
/* 780 */ 113, 78, 113, 80, 81, 82, 113, 113, 78, 113,
/* 790 */ 80, 113, 82, 90, 91, 113, 93, 113, 95, 113,
/* 800 */ 90, 91, 113, 93, 101, 95, 113, 113, 113, 113,
/* 810 */ 78, 101, 80, 113, 82, 113, 113, 113, 113, 109,
/* 820 */ 110, 113, 90, 91, 113, 93, 113, 95, 113, 113,
/* 830 */ 113, 113, 113, 101, 78, 113, 80, 113, 82, 113,
/* 840 */ 113, 113, 110, 113, 113, 113, 90, 91, 78, 93,
/* 850 */ 80, 95, 82, 113, 98, 113, 113, 101, 113, 113,
/* 860 */ 90, 91, 78, 93, 80, 95, 82, 113, 98, 113,
/* 870 */ 113, 101, 113, 113, 90, 91, 113, 93, 113, 95,
/* 880 */ 113, 113, 98, 113, 78, 101, 80, 113, 82, 113,
/* 890 */ 113, 113, 113, 113, 113, 113, 90, 91, 113, 93,
/* 900 */ 113, 95, 113, 113, 98, 113, 78, 101, 80, 81,
/* 910 */ 82, 113, 113, 78, 113, 80, 81, 82, 90, 91,
/* 920 */ 113, 93, 113, 95, 113, 90, 91, 113, 93, 101,
/* 930 */ 95, 78, 113, 80, 113, 82, 101, 113, 113, 113,
/* 940 */ 113, 113, 113, 90, 91, 78, 93, 80, 95, 82,
/* 950 */ 113, 113, 113, 113, 101, 113, 113, 90, 91, 113,
/* 960 */ 93, 78, 95, 80, 113, 82, 113, 113, 101, 113,
/* 970 */ 113, 113, 113, 90, 91, 78, 93, 80, 95, 82,
/* 980 */ 113, 113, 113, 113, 101, 113, 113, 90, 91, 78,
/* 990 */ 93, 80, 95, 82, 113, 113, 113, 113, 101, 113,
/* 1000 */ 113, 90, 91, 113, 93, 78, 95, 80, 113, 82,
/* 1010 */ 113, 113, 101, 113, 113, 113, 113, 90, 91, 113,
/* 1020 */ 93, 113, 95, 78, 113, 80, 113, 82, 101, 113,
/* 1030 */ 113, 113, 113, 113, 113, 90, 91, 78, 93, 80,
/* 1040 */ 95, 82, 113, 113, 113, 113, 101, 113, 113, 90,
/* 1050 */ 91, 113, 93, 78, 95, 80, 113, 82, 113, 113,
/* 1060 */ 101, 113, 113, 113, 113, 90, 91, 78, 93, 80,
/* 1070 */ 95, 82, 113, 113, 113, 113, 101, 113, 113, 90,
/* 1080 */ 91, 78, 93, 80, 95, 82, 113, 113, 78, 113,
/* 1090 */ 101, 113, 82, 90, 91, 113, 93, 113, 95, 113,
/* 1100 */ 90, 91, 78, 93, 101, 95, 82, 113, 113, 113,
/* 1110 */ 113, 101, 113, 113, 90, 91, 113, 93, 113, 95,
/* 1120 */ 113, 113, 113, 113, 113, 101,
);
const YY_SHIFT_USE_DFLT = -32;
const YY_SHIFT_MAX = 203;
static public $yy_shift_ofst = array(
/* 0 */ 56, 111, 32, 32, 32, 32, 133, 32, 32, 32,
/* 10 */ 32, 32, 32, 32, 259, 333, 333, 207, 207, 207,
/* 20 */ 185, 185, 207, 259, 207, 207, 207, 207, 207, 207,
/* 30 */ 207, 207, 207, 207, 207, 207, 207, 35, 281, 84,
/* 40 */ 406, 449, 449, 435, 292, 328, 210, 211, 235, 191,
/* 50 */ 188, 112, 145, 424, 424, 145, 385, 342, 411, 202,
/* 60 */ -3, 106, 181, 404, 240, 489, 456, 30, 30, 30,
/* 70 */ 482, 30, 456, 482, 482, 30, 443, 443, 274, 274,
/* 80 */ 274, 443, 443, -31, -2, -17, 77, 77, 77, 77,
/* 90 */ 77, 77, 77, 77, 77, 56, 231, 136, 72, 166,
/* 100 */ 90, 339, 57, 180, 285, 285, 30, 337, 390, 326,
/* 110 */ 384, 30, 130, 361, 337, 337, 337, 337, 60, 225,
/* 120 */ 380, 126, 12, 412, 412, 613, 443, 412, 412, 412,
/* 130 */ 443, 274, 443, 443, 443, 443, 443, 626, 443, 445,
/* 140 */ 274, 443, 412, 443, 412, 443, 493, 274, 412, 274,
/* 150 */ -32, -32, -32, -32, -32, -32, 306, 271, 103, 354,
/* 160 */ 223, 73, 387, 387, 395, 387, 179, 387, 551, 516,
/* 170 */ 572, 542, 519, 573, 534, 602, 599, 535, 567, 531,
/* 180 */ 556, 521, 537, 579, 592, 598, 625, 584, 569, 564,
/* 190 */ 488, 591, 483, 315, 391, 571, 255, 607, 589, 585,
/* 200 */ 593, 582, 496, 588,
);
const YY_REDUCE_USE_DFLT = -41;
const YY_REDUCE_MAX = 155;
static public $yy_reduce_ofst = array(
/* 0 */ 257, 129, 611, 597, 629, 649, 676, 570, 550, 451,
/* 10 */ 437, 471, 491, 532, 710, 518, 703, 770, 756, 784,
/* 20 */ 835, 828, 806, 732, 883, 945, 68, 216, 1003, 989,
/* 30 */ 897, 975, 959, 853, 867, 927, 911, 1024, 194, 1010,
/* 40 */ 423, 525, 386, 109, 320, 221, 279, 280, 293, 142,
/* 50 */ 2, -29, 254, 327, 336, -29, 438, 438, 438, 392,
/* 60 */ 301, 33, 415, 33, 448, 217, 394, 396, 374, 394,
/* 70 */ 463, 403, 432, 377, -11, 492, 475, 455, 466, 217,
/* 80 */ 464, 499, 495, 558, 558, 558, 558, 558, 558, 558,
/* 90 */ 558, 558, 558, 558, 558, 594, 553, 565, 565, 545,
/* 100 */ 545, 545, 555, 545, 565, 565, 555, 560, 91, 91,
/* 110 */ 91, 555, 575, 91, 560, 560, 560, 560, 91, 91,
/* 120 */ 91, 578, 91, 91, 91, 562, 416, 91, 91, 91,
/* 130 */ 416, 64, 416, 416, 416, 416, 416, 574, 416, 450,
/* 140 */ 64, 416, 91, 416, 91, 416, 399, 64, 91, 64,
/* 150 */ 189, -40, 378, 261, 318, 299,
);
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(1, 10, 16, 20, 21, 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(10, 16, 20, 21, 30, 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(16, 55, 60, 67, ),
/* 45 */ array(44, 48, 57, 63, 68, ),
/* 46 */ array(16, 51, 55, 60, 67, ),
/* 47 */ array(1, 55, 60, 67, ),
/* 48 */ array(46, 48, 64, ),
/* 49 */ array(48, 63, 68, ),
/* 50 */ array(55, 60, 67, ),
/* 51 */ array(17, 63, 68, ),
/* 52 */ array(63, 68, ),
/* 53 */ array(56, 68, ),
/* 54 */ array(56, 68, ),
/* 55 */ array(63, 68, ),
/* 56 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ),
/* 57 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ),
/* 58 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 63, ),
/* 59 */ array(1, 16, 55, 61, 62, ),
/* 60 */ array(16, 50, 52, 67, ),
/* 61 */ array(16, 50, 59, 67, ),
/* 62 */ array(17, 52, 68, ),
/* 63 */ array(16, 59, 67, ),
/* 64 */ array(1, 10, 16, ),
/* 65 */ array(48, 50, ),
/* 66 */ array(16, 67, ),
/* 67 */ array(16, 67, ),
/* 68 */ array(16, 67, ),
/* 69 */ array(16, 67, ),
/* 70 */ array(1, 16, ),
/* 71 */ array(16, 67, ),
/* 72 */ array(16, 67, ),
/* 73 */ array(1, 16, ),
/* 74 */ array(1, 16, ),
/* 75 */ array(16, 67, ),
/* 76 */ array(68, ),
/* 77 */ array(68, ),
/* 78 */ array(48, ),
/* 79 */ array(48, ),
/* 80 */ array(48, ),
/* 81 */ array(68, ),
/* 82 */ array(68, ),
/* 83 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 58, ),
/* 84 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ),
/* 85 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ),
/* 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(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 95 */ array(1, 2, 3, 4, 5, 9, 11, 13, 14, 15, 16, ),
/* 96 */ array(1, 16, 55, 61, 62, ),
/* 97 */ array(47, 53, 54, 66, ),
/* 98 */ array(17, 53, 54, 66, ),
/* 99 */ array(1, 10, 16, ),
/* 100 */ array(1, 8, 16, ),
/* 101 */ array(1, 5, 16, ),
/* 102 */ array(16, 50, 67, ),
/* 103 */ array(1, 12, 16, ),
/* 104 */ array(53, 54, 66, ),
/* 105 */ array(53, 54, 66, ),
/* 106 */ array(16, 67, ),
/* 107 */ array(46, 64, ),
/* 108 */ array(56, 63, ),
/* 109 */ array(49, 63, ),
/* 110 */ array(63, 65, ),
/* 111 */ array(16, 67, ),
/* 112 */ array(55, 67, ),
/* 113 */ array(17, 63, ),
/* 114 */ array(46, 64, ),
/* 115 */ array(46, 64, ),
/* 116 */ array(46, 64, ),
/* 117 */ array(46, 64, ),
/* 118 */ array(17, 63, ),
/* 119 */ array(17, 63, ),
/* 120 */ array(45, 63, ),
/* 121 */ array(16, 44, ),
/* 122 */ array(56, 63, ),
/* 123 */ array(63, ),
/* 124 */ array(63, ),
/* 125 */ array(56, ),
/* 126 */ array(68, ),
/* 127 */ array(63, ),
/* 128 */ array(63, ),
/* 129 */ array(63, ),
/* 130 */ array(68, ),
/* 131 */ array(48, ),
/* 132 */ array(68, ),
/* 133 */ array(68, ),
/* 134 */ array(68, ),
/* 135 */ array(68, ),
/* 136 */ array(68, ),
/* 137 */ array(44, ),
/* 138 */ array(68, ),
/* 139 */ array(67, ),
/* 140 */ array(48, ),
/* 141 */ array(68, ),
/* 142 */ array(63, ),
/* 143 */ array(68, ),
/* 144 */ array(63, ),
/* 145 */ array(68, ),
/* 146 */ array(55, ),
/* 147 */ array(48, ),
/* 148 */ array(63, ),
/* 149 */ array(48, ),
/* 150 */ array(),
/* 151 */ array(),
/* 152 */ array(),
/* 153 */ array(),
/* 154 */ array(),
/* 155 */ array(),
/* 156 */ array(17, 44, 50, 57, 68, ),
/* 157 */ array(44, 47, 57, 64, ),
/* 158 */ array(44, 49, 57, ),
/* 159 */ array(19, 69, ),
/* 160 */ array(59, 67, ),
/* 161 */ array(1, 67, ),
/* 162 */ array(44, 57, ),
/* 163 */ array(44, 57, ),
/* 164 */ array(47, 65, ),
/* 165 */ array(44, 57, ),
/* 166 */ array(58, 65, ),
/* 167 */ array(44, 57, ),
/* 168 */ array(67, ),
/* 169 */ array(67, ),
/* 170 */ array(17, ),
/* 171 */ array(17, ),
/* 172 */ array(60, ),
/* 173 */ array(17, ),
/* 174 */ array(60, ),
/* 175 */ array(19, ),
/* 176 */ array(5, ),
/* 177 */ array(67, ),
/* 178 */ array(70, ),
/* 179 */ array(70, ),
/* 180 */ array(50, ),
/* 181 */ array(64, ),
/* 182 */ array(51, ),
/* 183 */ array(67, ),
/* 184 */ array(55, ),
/* 185 */ array(55, ),
/* 186 */ array(17, ),
/* 187 */ array(55, ),
/* 188 */ array(55, ),
/* 189 */ array(67, ),
/* 190 */ array(67, ),
/* 191 */ array(45, ),
/* 192 */ array(67, ),
/* 193 */ array(67, ),
/* 194 */ array(67, ),
/* 195 */ array(45, ),
/* 196 */ array(69, ),
/* 197 */ array(47, ),
/* 198 */ array(45, ),
/* 199 */ array(44, ),
/* 200 */ array(56, ),
/* 201 */ array(62, ),
/* 202 */ array(62, ),
/* 203 */ array(17, ),
/* 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(),
/* 242 */ array(),
/* 243 */ array(),
/* 244 */ array(),
/* 245 */ array(),
/* 246 */ array(),
/* 247 */ array(),
/* 248 */ array(),
/* 249 */ array(),
/* 250 */ array(),
/* 251 */ array(),
/* 252 */ array(),
/* 253 */ array(),
/* 254 */ array(),
/* 255 */ array(),
/* 256 */ array(),
/* 257 */ array(),
/* 258 */ array(),
/* 259 */ array(),
/* 260 */ array(),
/* 261 */ array(),
/* 262 */ array(),
/* 263 */ array(),
/* 264 */ array(),
/* 265 */ array(),
/* 266 */ array(),
/* 267 */ array(),
/* 268 */ array(),
/* 269 */ array(),
/* 270 */ array(),
/* 271 */ array(),
/* 272 */ array(),
/* 273 */ array(),
/* 274 */ array(),
/* 275 */ array(),
/* 276 */ array(),
/* 277 */ array(),
/* 278 */ array(),
/* 279 */ array(),
/* 280 */ array(),
/* 281 */ array(),
/* 282 */ array(),
/* 283 */ array(),
/* 284 */ array(),
/* 285 */ array(),
/* 286 */ array(),
/* 287 */ array(),
/* 288 */ array(),
/* 289 */ array(),
/* 290 */ array(),
/* 291 */ array(),
/* 292 */ array(),
/* 293 */ array(),
/* 294 */ array(),
/* 295 */ array(),
/* 296 */ array(),
/* 297 */ array(),
/* 298 */ array(),
/* 299 */ array(),
/* 300 */ array(),
/* 301 */ array(),
/* 302 */ array(),
/* 303 */ array(),
/* 304 */ array(),
/* 305 */ array(),
/* 306 */ array(),
);
static public $yy_default = array(
/* 0 */ 473, 473, 473, 473, 473, 473, 473, 473, 473, 473,
/* 10 */ 473, 473, 473, 473, 454, 473, 473, 413, 413, 413,
/* 20 */ 473, 473, 413, 473, 473, 473, 473, 473, 473, 473,
/* 30 */ 473, 473, 473, 473, 473, 473, 473, 473, 473, 473,
/* 40 */ 473, 473, 473, 473, 473, 342, 473, 473, 378, 342,
/* 50 */ 473, 473, 342, 342, 342, 342, 423, 423, 423, 473,
/* 60 */ 473, 388, 362, 388, 473, 381, 473, 473, 473, 473,
/* 70 */ 473, 473, 473, 473, 473, 473, 342, 342, 374, 381,
/* 80 */ 373, 342, 342, 473, 473, 473, 330, 429, 433, 428,
/* 90 */ 421, 432, 437, 436, 427, 307, 473, 473, 473, 473,
/* 100 */ 473, 473, 473, 473, 350, 418, 336, 386, 473, 457,
/* 110 */ 412, 335, 473, 473, 405, 404, 407, 406, 473, 473,
/* 120 */ 473, 388, 473, 343, 358, 352, 326, 357, 455, 456,
/* 130 */ 321, 401, 323, 328, 338, 337, 327, 388, 322, 473,
/* 140 */ 379, 329, 424, 324, 348, 325, 473, 376, 333, 375,
/* 150 */ 417, 417, 388, 417, 388, 388, 349, 473, 349, 353,
/* 160 */ 473, 473, 438, 349, 473, 419, 473, 473, 473, 473,
/* 170 */ 473, 473, 473, 473, 473, 356, 473, 473, 473, 368,
/* 180 */ 345, 363, 473, 473, 473, 473, 473, 473, 473, 473,
/* 190 */ 473, 473, 473, 473, 473, 473, 353, 473, 473, 377,
/* 200 */ 399, 473, 473, 346, 318, 317, 372, 459, 380, 396,
/* 210 */ 410, 308, 320, 319, 339, 394, 408, 312, 395, 314,
/* 220 */ 392, 313, 315, 464, 468, 393, 316, 466, 311, 344,
/* 230 */ 447, 471, 472, 370, 469, 369, 390, 391, 355, 470,
/* 240 */ 371, 465, 341, 414, 462, 467, 458, 460, 461, 389,
/* 250 */ 385, 354, 362, 364, 353, 416, 309, 310, 340, 365,
/* 260 */ 366, 387, 383, 384, 382, 402, 367, 403, 415, 463,
/* 270 */ 430, 431, 434, 420, 368, 445, 446, 439, 435, 448,
/* 280 */ 334, 398, 399, 332, 422, 449, 450, 444, 443, 400,
/* 290 */ 356, 411, 397, 351, 359, 360, 361, 409, 451, 440,
/* 300 */ 441, 442, 426, 425, 453, 452, 347,
);
/* 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 = 114;
const YYSTACKDEPTH = 100;
const YYNSTATE = 307;
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', '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 ::= variable INCDEC attributes",
/* 16 */ "smartytag ::= expr attributes",
/* 17 */ "smartytag ::= ternary attributes",
/* 18 */ "smartytag ::= varindexed EQUAL expr attributes",
/* 19 */ "smartytag ::= varindexed EQUAL ternary attributes",
/* 20 */ "smartytag ::= ID attributes",
/* 21 */ "smartytag ::= ID PTR ID attributes",
/* 22 */ "smartytag ::= ID modifier modparameters attributes",
/* 23 */ "smartytag ::= ID SPACE ifexprs",
/* 24 */ "smartytag ::= ID SPACE statement",
/* 25 */ "smartytag ::= ID SPACE statements SEMICOLON ifexprs SEMICOLON DOLLAR varvar foraction",
/* 26 */ "foraction ::= EQUAL expr",
/* 27 */ "foraction ::= INCDEC",
/* 28 */ "smartytag ::= ID SPACE value AS DOLLAR varvar",
/* 29 */ "smartytag ::= ID SPACE array AS DOLLAR varvar",
/* 30 */ "smartyclosetag ::= ID attributes",
/* 31 */ "smartyclosetag ::= ID modifier modparameters attributes",
/* 32 */ "smartyclosetag ::= ID PTR ID",
/* 33 */ "attributes ::= attributes attribute",
/* 34 */ "attributes ::= attribute",
/* 35 */ "attributes ::=",
/* 36 */ "attribute ::= SPACE ID EQUAL expr",
/* 37 */ "attribute ::= SPACE ID EQUAL ternary",
/* 38 */ "attribute ::= SPACE ID",
/* 39 */ "statements ::= statement",
/* 40 */ "statements ::= statements COMMA statement",
/* 41 */ "statement ::= DOLLAR varvar EQUAL expr",
/* 42 */ "expr ::= ID",
/* 43 */ "expr ::= exprs",
/* 44 */ "expr ::= DOLLAR ID COLON ID",
/* 45 */ "expr ::= expr modifier modparameters",
/* 46 */ "exprs ::= value",
/* 47 */ "exprs ::= UNIMATH value",
/* 48 */ "exprs ::= exprs math value",
/* 49 */ "exprs ::= array",
/* 50 */ "ternary ::= OPENP ifexprs CLOSEP QMARK expr COLON expr",
/* 51 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr",
/* 52 */ "math ::= UNIMATH",
/* 53 */ "math ::= MATH",
/* 54 */ "math ::= ANDSYM",
/* 55 */ "value ::= variable",
/* 56 */ "value ::= INTEGER",
/* 57 */ "value ::= INTEGER DOT INTEGER",
/* 58 */ "value ::= BOOLEAN",
/* 59 */ "value ::= NULL",
/* 60 */ "value ::= function",
/* 61 */ "value ::= OPENP expr CLOSEP",
/* 62 */ "value ::= SINGLEQUOTE text SINGLEQUOTE",
/* 63 */ "value ::= SINGLEQUOTE SINGLEQUOTE",
/* 64 */ "value ::= QUOTE doublequoted QUOTE",
/* 65 */ "value ::= QUOTE QUOTE",
/* 66 */ "value ::= ID DOUBLECOLON method",
/* 67 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP",
/* 68 */ "value ::= ID DOUBLECOLON method objectchain",
/* 69 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain",
/* 70 */ "value ::= ID DOUBLECOLON ID",
/* 71 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex",
/* 72 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain",
/* 73 */ "value ::= LDEL smartytag RDEL",
/* 74 */ "variable ::= varindexed",
/* 75 */ "variable ::= DOLLAR varvar AT ID",
/* 76 */ "variable ::= object",
/* 77 */ "variable ::= HATCH ID HATCH",
/* 78 */ "variable ::= HATCH variable HATCH",
/* 79 */ "varindexed ::= DOLLAR varvar arrayindex",
/* 80 */ "arrayindex ::= arrayindex indexdef",
/* 81 */ "arrayindex ::=",
/* 82 */ "indexdef ::= DOT ID",
/* 83 */ "indexdef ::= DOT INTEGER",
/* 84 */ "indexdef ::= DOT variable",
/* 85 */ "indexdef ::= DOT LDEL exprs RDEL",
/* 86 */ "indexdef ::= OPENB ID CLOSEB",
/* 87 */ "indexdef ::= OPENB ID DOT ID CLOSEB",
/* 88 */ "indexdef ::= OPENB exprs CLOSEB",
/* 89 */ "indexdef ::= OPENB CLOSEB",
/* 90 */ "varvar ::= varvarele",
/* 91 */ "varvar ::= varvar varvarele",
/* 92 */ "varvarele ::= ID",
/* 93 */ "varvarele ::= LDEL expr RDEL",
/* 94 */ "object ::= varindexed objectchain",
/* 95 */ "objectchain ::= objectelement",
/* 96 */ "objectchain ::= objectchain objectelement",
/* 97 */ "objectelement ::= PTR ID arrayindex",
/* 98 */ "objectelement ::= PTR variable arrayindex",
/* 99 */ "objectelement ::= PTR LDEL expr RDEL arrayindex",
/* 100 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex",
/* 101 */ "objectelement ::= PTR method",
/* 102 */ "function ::= ID OPENP params CLOSEP",
/* 103 */ "method ::= ID OPENP params CLOSEP",
/* 104 */ "params ::= expr COMMA params",
/* 105 */ "params ::= expr",
/* 106 */ "params ::=",
/* 107 */ "modifier ::= VERT AT ID",
/* 108 */ "modifier ::= VERT ID",
/* 109 */ "modparameters ::= modparameters modparameter",
/* 110 */ "modparameters ::=",
/* 111 */ "modparameter ::= COLON exprs",
/* 112 */ "modparameter ::= COLON ID",
/* 113 */ "ifexprs ::= ifexpr",
/* 114 */ "ifexprs ::= NOT ifexprs",
/* 115 */ "ifexprs ::= OPENP ifexprs CLOSEP",
/* 116 */ "ifexpr ::= expr",
/* 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' => 3 ),
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' => 4 ),
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' => 94, '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' => 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' => 100, 'rhs' => 2 ),
array( 'lhs' => 100, 'rhs' => 0 ),
array( 'lhs' => 102, 'rhs' => 2 ),
array( 'lhs' => 102, 'rhs' => 2 ),
array( 'lhs' => 102, 'rhs' => 2 ),
array( 'lhs' => 102, 'rhs' => 4 ),
array( 'lhs' => 102, 'rhs' => 3 ),
array( 'lhs' => 102, 'rhs' => 5 ),
array( 'lhs' => 102, 'rhs' => 3 ),
array( 'lhs' => 102, 'rhs' => 2 ),
array( 'lhs' => 88, 'rhs' => 1 ),
array( 'lhs' => 88, 'rhs' => 2 ),
array( 'lhs' => 103, 'rhs' => 1 ),
array( 'lhs' => 103, 'rhs' => 3 ),
array( 'lhs' => 101, 'rhs' => 2 ),
array( 'lhs' => 99, 'rhs' => 1 ),
array( 'lhs' => 99, 'rhs' => 2 ),
array( 'lhs' => 104, 'rhs' => 3 ),
array( 'lhs' => 104, 'rhs' => 3 ),
array( 'lhs' => 104, 'rhs' => 5 ),
array( 'lhs' => 104, 'rhs' => 6 ),
array( 'lhs' => 104, 'rhs' => 2 ),
array( 'lhs' => 95, 'rhs' => 4 ),
array( 'lhs' => 97, 'rhs' => 4 ),
array( 'lhs' => 98, 'rhs' => 3 ),
array( 'lhs' => 98, 'rhs' => 1 ),
array( 'lhs' => 98, 'rhs' => 0 ),
array( 'lhs' => 83, 'rhs' => 3 ),
array( 'lhs' => 83, 'rhs' => 2 ),
array( 'lhs' => 84, 'rhs' => 2 ),
array( 'lhs' => 84, 'rhs' => 0 ),
array( 'lhs' => 105, 'rhs' => 2 ),
array( 'lhs' => 105, 'rhs' => 2 ),
array( 'lhs' => 85, 'rhs' => 1 ),
array( 'lhs' => 85, 'rhs' => 2 ),
array( 'lhs' => 85, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 1 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 91, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 0 ),
array( 'lhs' => 110, 'rhs' => 3 ),
array( 'lhs' => 110, 'rhs' => 3 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 96, 'rhs' => 2 ),
array( 'lhs' => 96, 'rhs' => 1 ),
array( 'lhs' => 111, 'rhs' => 3 ),
array( 'lhs' => 111, 'rhs' => 3 ),
array( 'lhs' => 111, 'rhs' => 2 ),
array( 'lhs' => 111, 'rhs' => 3 ),
array( 'lhs' => 111, 'rhs' => 3 ),
array( 'lhs' => 111, 'rhs' => 2 ),
array( 'lhs' => 111, 'rhs' => 2 ),
array( 'lhs' => 111, 'rhs' => 2 ),
array( 'lhs' => 111, 'rhs' => 1 ),
array( 'lhs' => 77, 'rhs' => 2 ),
array( 'lhs' => 77, 'rhs' => 1 ),
array( 'lhs' => 112, 'rhs' => 1 ),
array( 'lhs' => 112, '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,
46 => 0,
55 => 0,
56 => 0,
58 => 0,
59 => 0,
60 => 0,
76 => 0,
145 => 0,
1 => 1,
43 => 1,
49 => 1,
52 => 1,
53 => 1,
90 => 1,
113 => 1,
152 => 1,
161 => 1,
163 => 1,
164 => 1,
165 => 1,
2 => 2,
80 => 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,
16 => 14,
17 => 14,
15 => 15,
18 => 18,
19 => 18,
20 => 20,
21 => 21,
22 => 22,
23 => 23,
24 => 24,
25 => 25,
26 => 26,
27 => 27,
34 => 27,
105 => 27,
150 => 27,
28 => 28,
29 => 29,
30 => 30,
31 => 31,
32 => 32,
33 => 33,
35 => 35,
36 => 36,
37 => 36,
38 => 38,
39 => 39,
40 => 40,
41 => 41,
42 => 42,
44 => 44,
45 => 45,
47 => 47,
48 => 48,
50 => 50,
51 => 50,
54 => 54,
57 => 57,
61 => 61,
62 => 62,
63 => 63,
65 => 63,
64 => 64,
66 => 66,
67 => 67,
68 => 68,
69 => 69,
70 => 70,
71 => 71,
72 => 72,
73 => 73,
74 => 74,
75 => 75,
77 => 77,
78 => 78,
79 => 79,
81 => 81,
110 => 81,
82 => 82,
83 => 83,
84 => 84,
85 => 85,
88 => 85,
86 => 86,
87 => 87,
89 => 89,
91 => 91,
92 => 92,
93 => 93,
115 => 93,
94 => 94,
95 => 95,
96 => 96,
97 => 97,
98 => 98,
99 => 99,
100 => 100,
101 => 101,
102 => 102,
103 => 103,
104 => 104,
106 => 106,
107 => 107,
108 => 108,
109 => 109,
111 => 111,
112 => 112,
114 => 114,
116 => 116,
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,
133 => 133,
134 => 134,
135 => 135,
136 => 136,
137 => 137,
138 => 138,
139 => 139,
140 => 140,
141 => 141,
142 => 142,
143 => 143,
144 => 144,
146 => 146,
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 80 "internal.templateparser.y"
function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 1991 "internal.templateparser.php"
#line 86 "internal.templateparser.y"
function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 1994 "internal.templateparser.php"
#line 88 "internal.templateparser.y"
function yy_r2(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 1997 "internal.templateparser.php"
#line 94 "internal.templateparser.y"
function yy_r3(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s);
if ($this->compiler->has_code) {
$tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array();
$this->_retvalue = $this->cacher->processNocacheCode($tmp.$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; $this->compiler->has_variable_string = false; }
#line 2004 "internal.templateparser.php"
#line 106 "internal.templateparser.y"
function yy_r5(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0]; }
#line 2007 "internal.templateparser.php"
#line 109 "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 2010 "internal.templateparser.php"
#line 111 "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 2013 "internal.templateparser.php"
#line 113 "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 2016 "internal.templateparser.php"
#line 115 "internal.templateparser.y"
function yy_r9(){if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU) {
$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) {
$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) {
$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 2028 "internal.templateparser.php"
#line 126 "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 2039 "internal.templateparser.php"
#line 137 "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 2042 "internal.templateparser.php"
#line 138 "internal.templateparser.y"
function yy_r12(){$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '?>';?>\n", $this->compiler, true, true); }
#line 2045 "internal.templateparser.php"
#line 140 "internal.templateparser.y"
function yy_r13(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false,false); }
#line 2048 "internal.templateparser.php"
#line 147 "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 2051 "internal.templateparser.php"
#line 148 "internal.templateparser.y"
function yy_r15(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); }
#line 2054 "internal.templateparser.php"
#line 153 "internal.templateparser.y"
function yy_r18(){ $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 2057 "internal.templateparser.php"
#line 156 "internal.templateparser.y"
function yy_r20(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
#line 2060 "internal.templateparser.php"
#line 158 "internal.templateparser.y"
function yy_r21(){ $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 2063 "internal.templateparser.php"
#line 160 "internal.templateparser.y"
function yy_r22(){ $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 2078 "internal.templateparser.php"
#line 174 "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 2084 "internal.templateparser.php"
#line 178 "internal.templateparser.y"
function yy_r24(){ 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 2090 "internal.templateparser.php"
#line 183 "internal.templateparser.y"
function yy_r25(){
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 2097 "internal.templateparser.php"
#line 188 "internal.templateparser.y"
function yy_r26(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; }
#line 2100 "internal.templateparser.php"
#line 189 "internal.templateparser.y"
function yy_r27(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2103 "internal.templateparser.php"
#line 191 "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 2110 "internal.templateparser.php"
#line 196 "internal.templateparser.y"
function yy_r29(){
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 2117 "internal.templateparser.php"
#line 203 "internal.templateparser.y"
function yy_r30(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',$this->yystack[$this->yyidx + 0]->minor); }
#line 2120 "internal.templateparser.php"
#line 204 "internal.templateparser.y"
function yy_r31(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',$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 2135 "internal.templateparser.php"
#line 218 "internal.templateparser.y"
function yy_r32(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + 0]->minor)); }
#line 2138 "internal.templateparser.php"
#line 225 "internal.templateparser.y"
function yy_r33(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
#line 2141 "internal.templateparser.php"
#line 229 "internal.templateparser.y"
function yy_r35(){ $this->_retvalue = array(); }
#line 2144 "internal.templateparser.php"
#line 232 "internal.templateparser.y"
function yy_r36(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2147 "internal.templateparser.php"
#line 234 "internal.templateparser.y"
function yy_r38(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); }
#line 2150 "internal.templateparser.php"
#line 239 "internal.templateparser.y"
function yy_r39(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); }
#line 2153 "internal.templateparser.php"
#line 240 "internal.templateparser.y"
function yy_r40(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; }
#line 2156 "internal.templateparser.php"
#line 242 "internal.templateparser.y"
function yy_r41(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2159 "internal.templateparser.php"
#line 248 "internal.templateparser.y"
function yy_r42(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2162 "internal.templateparser.php"
#line 251 "internal.templateparser.y"
function yy_r44(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; }
#line 2165 "internal.templateparser.php"
#line 252 "internal.templateparser.y"
function yy_r45(){
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 2180 "internal.templateparser.php"
#line 269 "internal.templateparser.y"
function yy_r47(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2183 "internal.templateparser.php"
#line 271 "internal.templateparser.y"
function yy_r48(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; }
#line 2186 "internal.templateparser.php"
#line 278 "internal.templateparser.y"
function yy_r50(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; }
#line 2189 "internal.templateparser.php"
#line 292 "internal.templateparser.y"
function yy_r54(){$this->_retvalue = ' & '; }
#line 2192 "internal.templateparser.php"
#line 298 "internal.templateparser.y"
function yy_r57(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2195 "internal.templateparser.php"
#line 306 "internal.templateparser.y"
function yy_r61(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
#line 2198 "internal.templateparser.php"
#line 308 "internal.templateparser.y"
function yy_r62(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; }
#line 2201 "internal.templateparser.php"
#line 309 "internal.templateparser.y"
function yy_r63(){ $this->_retvalue = "''"; }
#line 2204 "internal.templateparser.php"
#line 311 "internal.templateparser.y"
function yy_r64(){ $this->_retvalue = '"'.$this->yystack[$this->yyidx + -1]->minor.'"'; }
#line 2207 "internal.templateparser.php"
#line 314 "internal.templateparser.y"
function yy_r66(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2210 "internal.templateparser.php"
#line 315 "internal.templateparser.y"
function yy_r67(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -3]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -1]->minor .')'; }
#line 2213 "internal.templateparser.php"
#line 317 "internal.templateparser.y"
function yy_r68(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2216 "internal.templateparser.php"
#line 318 "internal.templateparser.y"
function yy_r69(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -4]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -7]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -2]->minor .')'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2219 "internal.templateparser.php"
#line 320 "internal.templateparser.y"
function yy_r70(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2222 "internal.templateparser.php"
#line 322 "internal.templateparser.y"
function yy_r71(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2225 "internal.templateparser.php"
#line 324 "internal.templateparser.y"
function yy_r72(){ $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 2228 "internal.templateparser.php"
#line 326 "internal.templateparser.y"
function yy_r73(){ $this->prefix_number++; $this->compiler->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 2231 "internal.templateparser.php"
#line 335 "internal.templateparser.y"
function yy_r74(){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 2235 "internal.templateparser.php"
#line 338 "internal.templateparser.y"
function yy_r75(){ $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 2238 "internal.templateparser.php"
#line 342 "internal.templateparser.y"
function yy_r77(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; }
#line 2241 "internal.templateparser.php"
#line 343 "internal.templateparser.y"
function yy_r78(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; }
#line 2244 "internal.templateparser.php"
#line 346 "internal.templateparser.y"
function yy_r79(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2247 "internal.templateparser.php"
#line 354 "internal.templateparser.y"
function yy_r81(){return; }
#line 2250 "internal.templateparser.php"
#line 358 "internal.templateparser.y"
function yy_r82(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; }
#line 2253 "internal.templateparser.php"
#line 359 "internal.templateparser.y"
function yy_r83(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; }
#line 2256 "internal.templateparser.php"
#line 360 "internal.templateparser.y"
function yy_r84(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; }
#line 2259 "internal.templateparser.php"
#line 361 "internal.templateparser.y"
function yy_r85(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; }
#line 2262 "internal.templateparser.php"
#line 363 "internal.templateparser.y"
function yy_r86(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; }
#line 2265 "internal.templateparser.php"
#line 364 "internal.templateparser.y"
function yy_r87(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; }
#line 2268 "internal.templateparser.php"
#line 368 "internal.templateparser.y"
function yy_r89(){$this->_retvalue = ''; }
#line 2271 "internal.templateparser.php"
#line 376 "internal.templateparser.y"
function yy_r91(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2274 "internal.templateparser.php"
#line 378 "internal.templateparser.y"
function yy_r92(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2277 "internal.templateparser.php"
#line 380 "internal.templateparser.y"
function yy_r93(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2280 "internal.templateparser.php"
#line 385 "internal.templateparser.y"
function yy_r94(){ 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 2284 "internal.templateparser.php"
#line 388 "internal.templateparser.y"
function yy_r95(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2287 "internal.templateparser.php"
#line 390 "internal.templateparser.y"
function yy_r96(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2290 "internal.templateparser.php"
#line 392 "internal.templateparser.y"
function yy_r97(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2293 "internal.templateparser.php"
#line 393 "internal.templateparser.y"
function yy_r98(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2296 "internal.templateparser.php"
#line 394 "internal.templateparser.y"
function yy_r99(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2299 "internal.templateparser.php"
#line 395 "internal.templateparser.y"
function yy_r100(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2302 "internal.templateparser.php"
#line 397 "internal.templateparser.y"
function yy_r101(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2305 "internal.templateparser.php"
#line 403 "internal.templateparser.y"
function yy_r102(){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 2314 "internal.templateparser.php"
#line 414 "internal.templateparser.y"
function yy_r103(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
#line 2317 "internal.templateparser.php"
#line 418 "internal.templateparser.y"
function yy_r104(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; }
#line 2320 "internal.templateparser.php"
#line 422 "internal.templateparser.y"
function yy_r106(){ return; }
#line 2323 "internal.templateparser.php"
#line 427 "internal.templateparser.y"
function yy_r107(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); }
#line 2326 "internal.templateparser.php"
#line 428 "internal.templateparser.y"
function yy_r108(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); }
#line 2329 "internal.templateparser.php"
#line 440 "internal.templateparser.y"
function yy_r109(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2332 "internal.templateparser.php"
#line 444 "internal.templateparser.y"
function yy_r111(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; }
#line 2335 "internal.templateparser.php"
#line 445 "internal.templateparser.y"
function yy_r112(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2338 "internal.templateparser.php"
#line 452 "internal.templateparser.y"
function yy_r114(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2341 "internal.templateparser.php"
#line 457 "internal.templateparser.y"
function yy_r116(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; }
#line 2344 "internal.templateparser.php"
#line 459 "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 2347 "internal.templateparser.php"
#line 460 "internal.templateparser.y"
function yy_r118(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2350 "internal.templateparser.php"
#line 461 "internal.templateparser.y"
function yy_r119(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2353 "internal.templateparser.php"
#line 463 "internal.templateparser.y"
function yy_r121(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2356 "internal.templateparser.php"
#line 464 "internal.templateparser.y"
function yy_r122(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2359 "internal.templateparser.php"
#line 465 "internal.templateparser.y"
function yy_r123(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2362 "internal.templateparser.php"
#line 466 "internal.templateparser.y"
function yy_r124(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2365 "internal.templateparser.php"
#line 467 "internal.templateparser.y"
function yy_r125(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2368 "internal.templateparser.php"
#line 468 "internal.templateparser.y"
function yy_r126(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2371 "internal.templateparser.php"
#line 474 "internal.templateparser.y"
function yy_r132(){$this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'='.$this->yystack[$this->yyidx + 0]->minor.';?>'; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.'$_tmp'.$this->prefix_number; }
#line 2374 "internal.templateparser.php"
#line 476 "internal.templateparser.y"
function yy_r133(){$this->_retvalue = '=='; }
#line 2377 "internal.templateparser.php"
#line 477 "internal.templateparser.y"
function yy_r134(){$this->_retvalue = '!='; }
#line 2380 "internal.templateparser.php"
#line 478 "internal.templateparser.y"
function yy_r135(){$this->_retvalue = '>'; }
#line 2383 "internal.templateparser.php"
#line 479 "internal.templateparser.y"
function yy_r136(){$this->_retvalue = '<'; }
#line 2386 "internal.templateparser.php"
#line 480 "internal.templateparser.y"
function yy_r137(){$this->_retvalue = '>='; }
#line 2389 "internal.templateparser.php"
#line 481 "internal.templateparser.y"
function yy_r138(){$this->_retvalue = '<='; }
#line 2392 "internal.templateparser.php"
#line 482 "internal.templateparser.y"
function yy_r139(){$this->_retvalue = '==='; }
#line 2395 "internal.templateparser.php"
#line 483 "internal.templateparser.y"
function yy_r140(){$this->_retvalue = '!=='; }
#line 2398 "internal.templateparser.php"
#line 485 "internal.templateparser.y"
function yy_r141(){$this->_retvalue = '&&'; }
#line 2401 "internal.templateparser.php"
#line 486 "internal.templateparser.y"
function yy_r142(){$this->_retvalue = '||'; }
#line 2404 "internal.templateparser.php"
#line 487 "internal.templateparser.y"
function yy_r143(){$this->_retvalue = ' XOR '; }
#line 2407 "internal.templateparser.php"
#line 492 "internal.templateparser.y"
function yy_r144(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2410 "internal.templateparser.php"
#line 494 "internal.templateparser.y"
function yy_r146(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; }
#line 2413 "internal.templateparser.php"
#line 495 "internal.templateparser.y"
function yy_r147(){ return; }
#line 2416 "internal.templateparser.php"
#line 496 "internal.templateparser.y"
function yy_r148(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2419 "internal.templateparser.php"
#line 497 "internal.templateparser.y"
function yy_r149(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2422 "internal.templateparser.php"
#line 506 "internal.templateparser.y"
function yy_r153(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; }
#line 2425 "internal.templateparser.php"
#line 507 "internal.templateparser.y"
function yy_r154(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; $this->compiler->has_variable_string = true; }
#line 2428 "internal.templateparser.php"
#line 508 "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; $this->compiler->has_variable_string = true; }
#line 2431 "internal.templateparser.php"
#line 509 "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.')."'; $this->compiler->has_variable_string = true; }
#line 2434 "internal.templateparser.php"
#line 510 "internal.templateparser.y"
function yy_r157(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->prefix_number++; $this->compiler->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.'."'; $this->compiler->has_variable_string = true; }
#line 2437 "internal.templateparser.php"
#line 511 "internal.templateparser.y"
function yy_r158(){$this->_retvalue = '$'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2440 "internal.templateparser.php"
#line 513 "internal.templateparser.y"
function yy_r160(){$this->_retvalue = '`'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2443 "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 61 "internal.templateparser.y"
$this->internalError = true;
$this->yymajor = $yymajor;
$this->compiler->trigger_template_error();
#line 2561 "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 53 "internal.templateparser.y"
$this->successful = !$this->internalError;
$this->internalError = false;
$this->retvalue = $this->_retvalue;
//echo $this->retvalue."\n\n";
#line 2586 "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);
}
}