Files
smarty/libs/sysplugins/internal.templateparser.php
Uwe.Tews bfefb8e017 - implemented caching of registered Resources
- new property 'auto_literal'. if true(default)  '{ ' and ' }' interpreted as literal, not as Smarty delimiter
2009-08-29 16:29:52 +00:00

2597 lines
124 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;
$this->cacher = $this->template->cacher_object;
$this->nocache = false;
$this->prefix_code = array();
$this->prefix_number = 0;
}
public static function &instance($new_instance = null)
{
static $instance = null;
if (isset($new_instance) && is_object($new_instance))
$instance = $new_instance;
return $instance;
}
#line 142 "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_LDELSLASH = 2;
const TP_LDEL = 3;
const TP_RDEL = 4;
const TP_PHP = 5;
const TP_SHORTTAGSTART = 6;
const TP_SHORTTAGEND = 7;
const TP_COMMENTEND = 8;
const TP_COMMENTSTART = 9;
const TP_INTEGER = 10;
const TP_MATH = 11;
const TP_UNIMATH = 12;
const TP_INCDEC = 13;
const TP_OPENP = 14;
const TP_CLOSEP = 15;
const TP_OPENB = 16;
const TP_CLOSEB = 17;
const TP_DOLLAR = 18;
const TP_DOT = 19;
const TP_COMMA = 20;
const TP_COLON = 21;
const TP_DOUBLECOLON = 22;
const TP_SEMICOLON = 23;
const TP_VERT = 24;
const TP_EQUAL = 25;
const TP_SPACE = 26;
const TP_PTR = 27;
const TP_APTR = 28;
const TP_ID = 29;
const TP_EQUALS = 30;
const TP_NOTEQUALS = 31;
const TP_GREATERTHAN = 32;
const TP_LESSTHAN = 33;
const TP_GREATEREQUAL = 34;
const TP_LESSEQUAL = 35;
const TP_IDENTITY = 36;
const TP_NONEIDENTITY = 37;
const TP_NOT = 38;
const TP_LAND = 39;
const TP_LOR = 40;
const TP_QUOTE = 41;
const TP_SINGLEQUOTE = 42;
const TP_BOOLEAN = 43;
const TP_NULL = 44;
const TP_AS = 45;
const TP_ANDSYM = 46;
const TP_BACKTICK = 47;
const TP_HATCH = 48;
const TP_AT = 49;
const TP_ISODD = 50;
const TP_ISNOTODD = 51;
const TP_ISEVEN = 52;
const TP_ISNOTEVEN = 53;
const TP_ISODDBY = 54;
const TP_ISNOTODDBY = 55;
const TP_ISEVENBY = 56;
const TP_ISNOTEVENBY = 57;
const TP_ISDIVBY = 58;
const TP_ISNOTDIVBY = 59;
const TP_ISIN = 60;
const TP_LITERALSTART = 61;
const TP_LITERALEND = 62;
const TP_LDELIMTAG = 63;
const TP_RDELIMTAG = 64;
const TP_PHPSTART = 65;
const TP_PHPEND = 66;
const TP_XML = 67;
const YY_NO_ACTION = 436;
const YY_ACCEPT_ACTION = 435;
const YY_ERROR_ACTION = 434;
/* 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 = 1071;
static public $yy_action = array(
/* 0 */ 162, 28, 435, 50, 185, 194, 275, 276, 151, 246,
/* 10 */ 35, 247, 6, 205, 12, 183, 60, 274, 279, 272,
/* 20 */ 270, 5, 2, 4, 7, 11, 8, 141, 243, 137,
/* 30 */ 181, 160, 237, 160, 278, 70, 3, 196, 197, 39,
/* 40 */ 56, 268, 267, 162, 28, 198, 44, 205, 167, 183,
/* 50 */ 269, 151, 205, 35, 183, 20, 195, 12, 213, 65,
/* 60 */ 187, 162, 28, 144, 107, 128, 109, 130, 102, 151,
/* 70 */ 133, 35, 36, 20, 254, 12, 254, 60, 31, 275,
/* 80 */ 276, 41, 39, 56, 268, 267, 265, 22, 40, 44,
/* 90 */ 274, 279, 272, 270, 5, 2, 4, 7, 11, 8,
/* 100 */ 39, 56, 268, 267, 162, 28, 22, 44, 191, 21,
/* 110 */ 275, 276, 151, 258, 35, 22, 6, 176, 12, 9,
/* 120 */ 64, 274, 279, 272, 270, 5, 2, 4, 7, 11,
/* 130 */ 8, 135, 258, 149, 156, 70, 237, 21, 278, 70,
/* 140 */ 3, 258, 22, 39, 56, 268, 267, 162, 28, 250,
/* 150 */ 44, 205, 252, 183, 269, 151, 195, 35, 180, 20,
/* 160 */ 195, 12, 228, 60, 19, 132, 22, 203, 258, 65,
/* 170 */ 125, 137, 171, 70, 141, 196, 197, 221, 219, 220,
/* 180 */ 225, 226, 231, 232, 230, 137, 39, 56, 268, 267,
/* 190 */ 162, 28, 258, 44, 195, 216, 162, 18, 151, 44,
/* 200 */ 35, 13, 20, 235, 12, 117, 60, 34, 10, 110,
/* 210 */ 36, 137, 139, 1, 166, 129, 70, 134, 236, 188,
/* 220 */ 162, 28, 137, 173, 47, 210, 27, 58, 212, 39,
/* 230 */ 56, 268, 267, 202, 65, 215, 44, 195, 275, 276,
/* 240 */ 160, 42, 196, 197, 128, 148, 25, 53, 204, 274,
/* 250 */ 279, 272, 270, 5, 2, 4, 7, 11, 8, 162,
/* 260 */ 28, 65, 214, 33, 44, 31, 13, 151, 41, 35,
/* 270 */ 280, 20, 111, 12, 110, 65, 38, 36, 65, 67,
/* 280 */ 24, 189, 174, 66, 13, 193, 140, 206, 137, 184,
/* 290 */ 160, 44, 110, 237, 242, 278, 70, 97, 39, 56,
/* 300 */ 268, 267, 162, 28, 22, 44, 266, 238, 44, 95,
/* 310 */ 151, 269, 35, 205, 20, 183, 12, 195, 65, 16,
/* 320 */ 13, 22, 259, 208, 13, 142, 234, 137, 110, 138,
/* 330 */ 258, 23, 110, 221, 219, 220, 225, 226, 231, 232,
/* 340 */ 230, 39, 56, 268, 267, 162, 28, 258, 44, 240,
/* 350 */ 149, 145, 70, 151, 227, 35, 205, 20, 183, 12,
/* 360 */ 103, 60, 101, 34, 114, 128, 260, 70, 217, 137,
/* 370 */ 254, 26, 40, 195, 254, 22, 237, 261, 278, 70,
/* 380 */ 97, 248, 16, 255, 39, 56, 268, 267, 195, 266,
/* 390 */ 238, 44, 95, 120, 269, 211, 199, 229, 271, 160,
/* 400 */ 195, 146, 237, 160, 278, 70, 52, 90, 164, 244,
/* 410 */ 75, 153, 136, 162, 28, 159, 157, 32, 95, 168,
/* 420 */ 269, 151, 160, 207, 14, 20, 195, 12, 137, 65,
/* 430 */ 245, 249, 237, 17, 278, 70, 99, 131, 209, 194,
/* 440 */ 140, 182, 228, 128, 124, 266, 238, 223, 95, 271,
/* 450 */ 269, 137, 39, 56, 268, 267, 195, 137, 237, 44,
/* 460 */ 278, 70, 52, 216, 162, 18, 77, 30, 46, 160,
/* 470 */ 264, 266, 238, 177, 95, 237, 269, 278, 70, 51,
/* 480 */ 139, 94, 195, 74, 160, 161, 147, 249, 266, 238,
/* 490 */ 65, 95, 160, 269, 162, 28, 257, 88, 91, 195,
/* 500 */ 218, 154, 151, 192, 249, 113, 20, 57, 218, 42,
/* 510 */ 65, 93, 257, 237, 106, 278, 61, 49, 104, 137,
/* 520 */ 44, 140, 257, 29, 254, 38, 266, 238, 212, 95,
/* 530 */ 45, 269, 182, 39, 56, 268, 267, 195, 15, 237,
/* 540 */ 44, 278, 70, 52, 121, 182, 55, 80, 87, 271,
/* 550 */ 38, 54, 266, 238, 201, 95, 237, 269, 278, 70,
/* 560 */ 52, 257, 179, 195, 83, 255, 257, 32, 249, 266,
/* 570 */ 238, 96, 95, 233, 269, 237, 71, 278, 70, 52,
/* 580 */ 195, 254, 182, 84, 175, 249, 172, 126, 266, 238,
/* 590 */ 92, 95, 271, 269, 237, 68, 278, 70, 52, 195,
/* 600 */ 186, 251, 81, 239, 249, 257, 178, 266, 238, 256,
/* 610 */ 95, 69, 269, 237, 158, 278, 70, 52, 195, 62,
/* 620 */ 123, 79, 73, 249, 273, 253, 266, 238, 23, 95,
/* 630 */ 237, 269, 278, 70, 52, 59, 165, 195, 76, 155,
/* 640 */ 163, 200, 249, 266, 238, 152, 95, 237, 269, 278,
/* 650 */ 70, 52, 143, 218, 195, 78, 190, 37, 262, 249,
/* 660 */ 266, 238, 199, 95, 237, 269, 278, 70, 52, 160,
/* 670 */ 63, 195, 82, 112, 72, 263, 249, 266, 238, 263,
/* 680 */ 95, 237, 269, 278, 70, 105, 263, 263, 195, 263,
/* 690 */ 263, 263, 263, 249, 266, 238, 263, 95, 263, 269,
/* 700 */ 263, 263, 169, 263, 237, 195, 278, 70, 105, 263,
/* 710 */ 263, 263, 263, 263, 263, 263, 263, 266, 238, 263,
/* 720 */ 95, 263, 269, 263, 263, 170, 263, 237, 195, 278,
/* 730 */ 70, 105, 263, 263, 263, 263, 263, 263, 263, 263,
/* 740 */ 266, 238, 263, 95, 263, 269, 263, 263, 241, 263,
/* 750 */ 237, 195, 278, 70, 105, 263, 263, 263, 263, 263,
/* 760 */ 263, 263, 263, 266, 238, 263, 95, 263, 269, 263,
/* 770 */ 263, 150, 263, 263, 195, 237, 263, 278, 70, 115,
/* 780 */ 263, 263, 263, 263, 263, 263, 263, 263, 266, 238,
/* 790 */ 263, 95, 263, 269, 263, 263, 263, 263, 237, 195,
/* 800 */ 278, 70, 118, 263, 263, 263, 263, 263, 263, 263,
/* 810 */ 263, 266, 238, 263, 95, 263, 269, 263, 263, 263,
/* 820 */ 263, 237, 195, 278, 70, 108, 263, 263, 263, 263,
/* 830 */ 263, 263, 263, 263, 266, 238, 263, 95, 263, 269,
/* 840 */ 263, 263, 263, 263, 237, 195, 278, 61, 43, 263,
/* 850 */ 263, 237, 263, 278, 70, 116, 263, 266, 238, 263,
/* 860 */ 95, 263, 269, 263, 266, 238, 263, 95, 195, 269,
/* 870 */ 263, 263, 263, 263, 237, 195, 278, 70, 127, 263,
/* 880 */ 263, 263, 263, 263, 263, 263, 263, 266, 238, 263,
/* 890 */ 95, 263, 269, 263, 263, 263, 263, 237, 195, 278,
/* 900 */ 70, 98, 263, 263, 263, 263, 263, 263, 263, 263,
/* 910 */ 266, 238, 263, 95, 263, 269, 263, 263, 263, 263,
/* 920 */ 237, 195, 278, 70, 100, 263, 263, 237, 263, 278,
/* 930 */ 70, 122, 263, 266, 238, 263, 95, 263, 269, 263,
/* 940 */ 266, 238, 263, 95, 195, 269, 263, 263, 263, 263,
/* 950 */ 237, 195, 278, 70, 119, 263, 263, 263, 263, 263,
/* 960 */ 263, 263, 263, 266, 238, 263, 95, 263, 269, 263,
/* 970 */ 263, 263, 263, 237, 195, 278, 70, 48, 263, 263,
/* 980 */ 263, 263, 263, 263, 263, 263, 266, 238, 263, 95,
/* 990 */ 263, 269, 263, 237, 263, 278, 70, 195, 263, 263,
/* 1000 */ 237, 263, 278, 70, 263, 263, 266, 238, 263, 89,
/* 1010 */ 263, 269, 263, 266, 238, 263, 85, 195, 269, 263,
/* 1020 */ 263, 263, 263, 237, 195, 278, 70, 237, 263, 278,
/* 1030 */ 70, 263, 263, 263, 263, 263, 266, 238, 263, 86,
/* 1040 */ 277, 269, 263, 263, 263, 269, 237, 195, 278, 70,
/* 1050 */ 263, 195, 263, 263, 263, 263, 263, 263, 263, 222,
/* 1060 */ 224, 263, 263, 263, 269, 263, 263, 263, 263, 263,
/* 1070 */ 195,
);
static public $yy_lookahead = array(
/* 0 */ 2, 3, 69, 70, 71, 72, 39, 40, 10, 4,
/* 10 */ 12, 4, 14, 1, 16, 3, 18, 50, 51, 52,
/* 20 */ 53, 54, 55, 56, 57, 58, 59, 29, 29, 24,
/* 30 */ 4, 26, 72, 26, 74, 75, 38, 11, 12, 41,
/* 40 */ 42, 43, 44, 2, 3, 85, 48, 1, 49, 3,
/* 50 */ 90, 10, 1, 12, 3, 14, 96, 16, 17, 18,
/* 60 */ 1, 2, 3, 23, 77, 78, 77, 78, 95, 10,
/* 70 */ 29, 12, 46, 14, 87, 16, 87, 18, 16, 39,
/* 80 */ 40, 19, 41, 42, 43, 44, 15, 3, 29, 48,
/* 90 */ 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
/* 100 */ 41, 42, 43, 44, 2, 3, 3, 48, 62, 25,
/* 110 */ 39, 40, 10, 29, 12, 3, 14, 66, 16, 103,
/* 120 */ 18, 50, 51, 52, 53, 54, 55, 56, 57, 58,
/* 130 */ 59, 29, 29, 49, 74, 75, 72, 25, 74, 75,
/* 140 */ 38, 29, 3, 41, 42, 43, 44, 2, 3, 85,
/* 150 */ 48, 1, 13, 3, 90, 10, 96, 12, 8, 14,
/* 160 */ 96, 16, 15, 18, 25, 4, 3, 4, 29, 18,
/* 170 */ 79, 24, 74, 75, 29, 11, 12, 30, 31, 32,
/* 180 */ 33, 34, 35, 36, 37, 24, 41, 42, 43, 44,
/* 190 */ 2, 3, 29, 48, 96, 1, 2, 3, 10, 48,
/* 200 */ 12, 14, 14, 4, 16, 20, 18, 60, 23, 22,
/* 210 */ 46, 24, 18, 26, 27, 74, 75, 29, 4, 1,
/* 220 */ 2, 3, 24, 5, 6, 7, 28, 9, 72, 41,
/* 230 */ 42, 43, 44, 92, 18, 41, 48, 96, 39, 40,
/* 240 */ 26, 47, 11, 12, 78, 29, 3, 91, 17, 50,
/* 250 */ 51, 52, 53, 54, 55, 56, 57, 58, 59, 2,
/* 260 */ 3, 18, 106, 3, 48, 16, 14, 10, 19, 12,
/* 270 */ 10, 14, 29, 16, 22, 18, 27, 46, 18, 61,
/* 280 */ 28, 63, 64, 65, 14, 67, 29, 17, 24, 29,
/* 290 */ 26, 48, 22, 72, 15, 74, 75, 76, 41, 42,
/* 300 */ 43, 44, 2, 3, 3, 48, 85, 86, 48, 88,
/* 310 */ 10, 90, 12, 1, 14, 3, 16, 96, 18, 14,
/* 320 */ 14, 3, 4, 7, 14, 104, 105, 24, 22, 29,
/* 330 */ 29, 25, 22, 30, 31, 32, 33, 34, 35, 36,
/* 340 */ 37, 41, 42, 43, 44, 2, 3, 29, 48, 4,
/* 350 */ 49, 74, 75, 10, 42, 12, 1, 14, 3, 16,
/* 360 */ 77, 18, 95, 60, 77, 78, 74, 75, 15, 24,
/* 370 */ 87, 3, 29, 96, 87, 3, 72, 4, 74, 75,
/* 380 */ 76, 4, 14, 100, 41, 42, 43, 44, 96, 85,
/* 390 */ 86, 48, 88, 94, 90, 1, 97, 42, 99, 26,
/* 400 */ 96, 29, 72, 26, 74, 75, 76, 73, 18, 105,
/* 410 */ 80, 81, 82, 2, 3, 85, 86, 21, 88, 29,
/* 420 */ 90, 10, 26, 29, 20, 14, 96, 16, 24, 18,
/* 430 */ 17, 101, 72, 20, 74, 75, 76, 4, 71, 72,
/* 440 */ 29, 107, 15, 78, 94, 85, 86, 4, 88, 99,
/* 450 */ 90, 24, 41, 42, 43, 44, 96, 24, 72, 48,
/* 460 */ 74, 75, 76, 1, 2, 3, 80, 102, 79, 26,
/* 470 */ 4, 85, 86, 1, 88, 72, 90, 74, 75, 76,
/* 480 */ 18, 83, 96, 80, 26, 27, 84, 101, 85, 86,
/* 490 */ 18, 88, 26, 90, 2, 3, 98, 83, 73, 96,
/* 500 */ 98, 29, 10, 41, 101, 95, 14, 83, 98, 47,
/* 510 */ 18, 73, 98, 72, 77, 74, 75, 76, 95, 24,
/* 520 */ 48, 29, 98, 25, 87, 27, 85, 86, 72, 88,
/* 530 */ 95, 90, 107, 41, 42, 43, 44, 96, 14, 72,
/* 540 */ 48, 74, 75, 76, 94, 107, 83, 80, 73, 99,
/* 550 */ 27, 83, 85, 86, 99, 88, 72, 90, 74, 75,
/* 560 */ 76, 98, 106, 96, 80, 100, 98, 21, 101, 85,
/* 570 */ 86, 77, 88, 29, 90, 72, 29, 74, 75, 76,
/* 580 */ 96, 87, 107, 80, 47, 101, 48, 94, 85, 86,
/* 590 */ 83, 88, 99, 90, 72, 18, 74, 75, 76, 96,
/* 600 */ 48, 4, 80, 29, 101, 98, 47, 85, 86, 4,
/* 610 */ 88, 18, 90, 72, 45, 74, 75, 76, 96, 18,
/* 620 */ 29, 80, 15, 101, 10, 4, 85, 86, 25, 88,
/* 630 */ 72, 90, 74, 75, 76, 29, 19, 96, 80, 45,
/* 640 */ 29, 29, 101, 85, 86, 29, 88, 72, 90, 74,
/* 650 */ 75, 76, 21, 98, 96, 80, 107, 89, 87, 101,
/* 660 */ 85, 86, 97, 88, 72, 90, 74, 75, 76, 26,
/* 670 */ 18, 96, 80, 95, 92, 108, 101, 85, 86, 81,
/* 680 */ 88, 72, 90, 74, 75, 76, 108, 108, 96, 108,
/* 690 */ 108, 108, 108, 101, 85, 86, 108, 88, 108, 90,
/* 700 */ 108, 108, 93, 108, 72, 96, 74, 75, 76, 108,
/* 710 */ 108, 108, 108, 108, 108, 108, 108, 85, 86, 108,
/* 720 */ 88, 108, 90, 108, 108, 93, 108, 72, 96, 74,
/* 730 */ 75, 76, 108, 108, 108, 108, 108, 108, 108, 108,
/* 740 */ 85, 86, 108, 88, 108, 90, 108, 108, 93, 108,
/* 750 */ 72, 96, 74, 75, 76, 108, 108, 108, 108, 108,
/* 760 */ 108, 108, 108, 85, 86, 108, 88, 108, 90, 108,
/* 770 */ 108, 93, 108, 108, 96, 72, 108, 74, 75, 76,
/* 780 */ 108, 108, 108, 108, 108, 108, 108, 108, 85, 86,
/* 790 */ 108, 88, 108, 90, 108, 108, 108, 108, 72, 96,
/* 800 */ 74, 75, 76, 108, 108, 108, 108, 108, 108, 108,
/* 810 */ 108, 85, 86, 108, 88, 108, 90, 108, 108, 108,
/* 820 */ 108, 72, 96, 74, 75, 76, 108, 108, 108, 108,
/* 830 */ 108, 108, 108, 108, 85, 86, 108, 88, 108, 90,
/* 840 */ 108, 108, 108, 108, 72, 96, 74, 75, 76, 108,
/* 850 */ 108, 72, 108, 74, 75, 76, 108, 85, 86, 108,
/* 860 */ 88, 108, 90, 108, 85, 86, 108, 88, 96, 90,
/* 870 */ 108, 108, 108, 108, 72, 96, 74, 75, 76, 108,
/* 880 */ 108, 108, 108, 108, 108, 108, 108, 85, 86, 108,
/* 890 */ 88, 108, 90, 108, 108, 108, 108, 72, 96, 74,
/* 900 */ 75, 76, 108, 108, 108, 108, 108, 108, 108, 108,
/* 910 */ 85, 86, 108, 88, 108, 90, 108, 108, 108, 108,
/* 920 */ 72, 96, 74, 75, 76, 108, 108, 72, 108, 74,
/* 930 */ 75, 76, 108, 85, 86, 108, 88, 108, 90, 108,
/* 940 */ 85, 86, 108, 88, 96, 90, 108, 108, 108, 108,
/* 950 */ 72, 96, 74, 75, 76, 108, 108, 108, 108, 108,
/* 960 */ 108, 108, 108, 85, 86, 108, 88, 108, 90, 108,
/* 970 */ 108, 108, 108, 72, 96, 74, 75, 76, 108, 108,
/* 980 */ 108, 108, 108, 108, 108, 108, 85, 86, 108, 88,
/* 990 */ 108, 90, 108, 72, 108, 74, 75, 96, 108, 108,
/* 1000 */ 72, 108, 74, 75, 108, 108, 85, 86, 108, 88,
/* 1010 */ 108, 90, 108, 85, 86, 108, 88, 96, 90, 108,
/* 1020 */ 108, 108, 108, 72, 96, 74, 75, 72, 108, 74,
/* 1030 */ 75, 108, 108, 108, 108, 108, 85, 86, 108, 88,
/* 1040 */ 85, 90, 108, 108, 108, 90, 72, 96, 74, 75,
/* 1050 */ 108, 96, 108, 108, 108, 108, 108, 108, 108, 85,
/* 1060 */ 86, 108, 108, 108, 90, 108, 108, 108, 108, 108,
/* 1070 */ 96,
);
const YY_SHIFT_USE_DFLT = -34;
const YY_SHIFT_MAX = 171;
static public $yy_shift_ofst = array(
/* 0 */ 218, 102, -2, -2, -2, -2, -2, -2, -2, -2,
/* 10 */ -2, -2, 188, 145, 145, 145, 145, 188, 59, 145,
/* 20 */ 145, 145, 145, 145, 145, 145, 145, 145, 343, 145,
/* 30 */ 145, 41, 300, 257, 411, 492, 492, 492, 243, 194,
/* 40 */ 187, 260, 472, 5, 216, 249, 396, 151, 264, 264,
/* 50 */ 218, 147, 303, 462, 139, 84, 355, 301, 12, 458,
/* 60 */ 372, 498, 103, 103, 372, 103, 12, 12, 103, 103,
/* 70 */ 523, 643, 523, 523, 71, 199, 40, -33, -33, -33,
/* 80 */ -33, -33, -33, -33, -33, 231, 26, 46, 112, 164,
/* 90 */ 51, 150, 318, 312, 163, 164, 7, 198, 433, 345,
/* 100 */ 161, 62, 62, 214, 62, 404, 466, 443, 427, 377,
/* 110 */ 390, 368, 62, 62, 373, 495, 495, 652, 495, 495,
/* 120 */ 523, 523, 495, 524, 523, 546, 523, 495, -34, -34,
/* 130 */ -34, -34, -34, 270, 252, 306, 185, -1, 310, 394,
/* 140 */ 310, 310, 413, 574, 593, 559, 631, 621, 538, 612,
/* 150 */ 607, 617, 597, 605, 537, 577, 552, 569, 601, 594,
/* 160 */ 611, 616, 606, 603, 591, 614, 547, 544, 305, 353,
/* 170 */ 279, 316,
);
const YY_REDUCE_USE_DFLT = -68;
const YY_REDUCE_MAX = 132;
static public $yy_reduce_ofst = array(
/* 0 */ -67, 330, 484, 386, 522, 467, 403, 503, 592, 575,
/* 10 */ 558, 541, 221, 632, 655, 678, 609, 304, 772, 779,
/* 20 */ 749, 703, 360, 802, 726, 825, 848, 855, 441, 901,
/* 30 */ 878, 928, 921, 951, 974, 955, -40, 64, 141, 156,
/* 40 */ -11, 292, 277, -13, 60, 299, 283, 98, 287, -13,
/* 50 */ 367, 365, 365, 456, 402, 410, 438, 410, 425, 437,
/* 60 */ 424, 350, 398, 414, 463, 424, 334, 475, 507, 468,
/* 70 */ 350, 494, 493, 450, 16, 16, 16, 16, 16, 16,
/* 80 */ 16, 16, 16, 16, 16, 568, 568, 549, 555, 568,
/* 90 */ 549, 549, 555, 549, 555, 568, 571, 166, 166, 166,
/* 100 */ 166, 565, 565, 571, 565, 166, 571, 571, 166, 571,
/* 110 */ 582, 578, 565, 565, 571, 166, 166, 598, 166, 166,
/* 120 */ 455, 455, 166, 435, 455, 465, 455, 166, 91, -27,
/* 130 */ 389, 423, 267,
);
static public $yyExpectedTokens = array(
/* 0 */ array(1, 2, 3, 5, 6, 7, 9, 61, 63, 64, 65, 67, ),
/* 1 */ array(2, 3, 10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
/* 2 */ array(2, 3, 10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
/* 3 */ array(2, 3, 10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
/* 4 */ array(2, 3, 10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
/* 5 */ array(2, 3, 10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
/* 6 */ array(2, 3, 10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
/* 7 */ array(2, 3, 10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
/* 8 */ array(2, 3, 10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
/* 9 */ array(2, 3, 10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
/* 10 */ array(2, 3, 10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
/* 11 */ array(2, 3, 10, 12, 14, 16, 18, 29, 38, 41, 42, 43, 44, 48, ),
/* 12 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 13 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 14 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 15 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 16 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 17 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 18 */ array(1, 2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 19 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 20 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 21 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 22 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 23 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 24 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 25 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 26 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 27 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 28 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 29 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 30 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 31 */ array(2, 3, 10, 12, 14, 16, 17, 18, 29, 41, 42, 43, 44, 48, ),
/* 32 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 33 */ array(2, 3, 10, 12, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 34 */ array(2, 3, 10, 14, 16, 18, 29, 41, 42, 43, 44, 48, ),
/* 35 */ array(2, 3, 10, 14, 18, 29, 41, 42, 43, 44, 48, ),
/* 36 */ array(2, 3, 10, 14, 18, 29, 41, 42, 43, 44, 48, ),
/* 37 */ array(2, 3, 10, 14, 18, 29, 41, 42, 43, 44, 48, ),
/* 38 */ array(3, 18, 29, 48, ),
/* 39 */ array(1, 2, 3, 18, 41, 47, ),
/* 40 */ array(14, 22, 24, 26, 27, ),
/* 41 */ array(3, 10, 18, 29, 48, ),
/* 42 */ array(1, 18, 29, 48, ),
/* 43 */ array(4, 24, 26, ),
/* 44 */ array(18, 29, 48, ),
/* 45 */ array(16, 19, 27, ),
/* 46 */ array(21, 26, ),
/* 47 */ array(18, 48, ),
/* 48 */ array(24, 26, ),
/* 49 */ array(24, 26, ),
/* 50 */ array(1, 2, 3, 5, 6, 7, 9, 61, 63, 64, 65, 67, ),
/* 51 */ array(15, 24, 30, 31, 32, 33, 34, 35, 36, 37, 60, ),
/* 52 */ array(24, 30, 31, 32, 33, 34, 35, 36, 37, 60, ),
/* 53 */ array(1, 2, 3, 18, 41, 47, ),
/* 54 */ array(3, 13, 25, 29, ),
/* 55 */ array(3, 25, 29, 49, ),
/* 56 */ array(1, 3, 42, ),
/* 57 */ array(3, 29, 49, ),
/* 58 */ array(1, 3, ),
/* 59 */ array(26, 27, ),
/* 60 */ array(3, 29, ),
/* 61 */ array(25, 27, ),
/* 62 */ array(3, 29, ),
/* 63 */ array(3, 29, ),
/* 64 */ array(3, 29, ),
/* 65 */ array(3, 29, ),
/* 66 */ array(1, 3, ),
/* 67 */ array(1, 3, ),
/* 68 */ array(3, 29, ),
/* 69 */ array(3, 29, ),
/* 70 */ array(27, ),
/* 71 */ array(26, ),
/* 72 */ array(27, ),
/* 73 */ array(27, ),
/* 74 */ array(15, 39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
/* 75 */ array(4, 39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
/* 76 */ array(23, 39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
/* 77 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
/* 78 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
/* 79 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
/* 80 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
/* 81 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
/* 82 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
/* 83 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
/* 84 */ array(39, 40, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, ),
/* 85 */ array(11, 12, 17, 46, ),
/* 86 */ array(4, 11, 12, 46, ),
/* 87 */ array(1, 3, 62, ),
/* 88 */ array(3, 25, 29, ),
/* 89 */ array(11, 12, 46, ),
/* 90 */ array(1, 3, 66, ),
/* 91 */ array(1, 3, 8, ),
/* 92 */ array(3, 4, 29, ),
/* 93 */ array(1, 3, 42, ),
/* 94 */ array(3, 4, 29, ),
/* 95 */ array(11, 12, 46, ),
/* 96 */ array(4, 26, ),
/* 97 */ array(24, 28, ),
/* 98 */ array(4, 24, ),
/* 99 */ array(4, 24, ),
/* 100 */ array(4, 24, ),
/* 101 */ array(16, 19, ),
/* 102 */ array(16, 19, ),
/* 103 */ array(4, 26, ),
/* 104 */ array(16, 19, ),
/* 105 */ array(20, 24, ),
/* 106 */ array(4, 26, ),
/* 107 */ array(4, 26, ),
/* 108 */ array(15, 24, ),
/* 109 */ array(4, 26, ),
/* 110 */ array(18, 29, ),
/* 111 */ array(3, 14, ),
/* 112 */ array(16, 19, ),
/* 113 */ array(16, 19, ),
/* 114 */ array(4, 26, ),
/* 115 */ array(24, ),
/* 116 */ array(24, ),
/* 117 */ array(18, ),
/* 118 */ array(24, ),
/* 119 */ array(24, ),
/* 120 */ array(27, ),
/* 121 */ array(27, ),
/* 122 */ array(24, ),
/* 123 */ array(14, ),
/* 124 */ array(27, ),
/* 125 */ array(21, ),
/* 126 */ array(27, ),
/* 127 */ array(24, ),
/* 128 */ array(),
/* 129 */ array(),
/* 130 */ array(),
/* 131 */ array(),
/* 132 */ array(),
/* 133 */ array(14, 17, 22, ),
/* 134 */ array(14, 22, 28, ),
/* 135 */ array(14, 22, 25, ),
/* 136 */ array(20, 23, ),
/* 137 */ array(29, 49, ),
/* 138 */ array(14, 22, ),
/* 139 */ array(1, 29, ),
/* 140 */ array(14, 22, ),
/* 141 */ array(14, 22, ),
/* 142 */ array(17, 20, ),
/* 143 */ array(29, ),
/* 144 */ array(18, ),
/* 145 */ array(47, ),
/* 146 */ array(21, ),
/* 147 */ array(4, ),
/* 148 */ array(48, ),
/* 149 */ array(29, ),
/* 150 */ array(15, ),
/* 151 */ array(19, ),
/* 152 */ array(4, ),
/* 153 */ array(4, ),
/* 154 */ array(47, ),
/* 155 */ array(18, ),
/* 156 */ array(48, ),
/* 157 */ array(45, ),
/* 158 */ array(18, ),
/* 159 */ array(45, ),
/* 160 */ array(29, ),
/* 161 */ array(29, ),
/* 162 */ array(29, ),
/* 163 */ array(25, ),
/* 164 */ array(29, ),
/* 165 */ array(10, ),
/* 166 */ array(29, ),
/* 167 */ array(29, ),
/* 168 */ array(14, ),
/* 169 */ array(15, ),
/* 170 */ array(15, ),
/* 171 */ array(7, ),
/* 172 */ array(),
/* 173 */ array(),
/* 174 */ array(),
/* 175 */ array(),
/* 176 */ array(),
/* 177 */ array(),
/* 178 */ array(),
/* 179 */ array(),
/* 180 */ array(),
/* 181 */ array(),
/* 182 */ array(),
/* 183 */ array(),
/* 184 */ array(),
/* 185 */ array(),
/* 186 */ array(),
/* 187 */ array(),
/* 188 */ array(),
/* 189 */ array(),
/* 190 */ array(),
/* 191 */ array(),
/* 192 */ array(),
/* 193 */ array(),
/* 194 */ array(),
/* 195 */ array(),
/* 196 */ array(),
/* 197 */ array(),
/* 198 */ array(),
/* 199 */ array(),
/* 200 */ array(),
/* 201 */ array(),
/* 202 */ array(),
/* 203 */ array(),
/* 204 */ array(),
/* 205 */ array(),
/* 206 */ array(),
/* 207 */ array(),
/* 208 */ array(),
/* 209 */ array(),
/* 210 */ array(),
/* 211 */ array(),
/* 212 */ array(),
/* 213 */ array(),
/* 214 */ array(),
/* 215 */ array(),
/* 216 */ array(),
/* 217 */ array(),
/* 218 */ array(),
/* 219 */ array(),
/* 220 */ array(),
/* 221 */ array(),
/* 222 */ array(),
/* 223 */ array(),
/* 224 */ array(),
/* 225 */ array(),
/* 226 */ array(),
/* 227 */ array(),
/* 228 */ array(),
/* 229 */ array(),
/* 230 */ array(),
/* 231 */ array(),
/* 232 */ array(),
/* 233 */ array(),
/* 234 */ array(),
/* 235 */ array(),
/* 236 */ array(),
/* 237 */ array(),
/* 238 */ array(),
/* 239 */ array(),
/* 240 */ array(),
/* 241 */ array(),
/* 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(),
);
static public $yy_default = array(
/* 0 */ 434, 434, 434, 434, 434, 434, 434, 434, 434, 434,
/* 10 */ 434, 434, 415, 377, 377, 377, 377, 434, 434, 434,
/* 20 */ 434, 434, 434, 434, 434, 434, 434, 434, 434, 434,
/* 30 */ 434, 434, 434, 434, 434, 434, 434, 434, 434, 434,
/* 40 */ 311, 434, 434, 434, 434, 343, 311, 434, 311, 311,
/* 50 */ 281, 387, 387, 434, 434, 353, 434, 353, 434, 311,
/* 60 */ 434, 346, 434, 434, 434, 434, 434, 434, 434, 434,
/* 70 */ 346, 311, 338, 339, 434, 434, 434, 385, 391, 392,
/* 80 */ 400, 396, 393, 401, 397, 434, 434, 434, 434, 382,
/* 90 */ 434, 434, 434, 434, 434, 317, 434, 418, 434, 434,
/* 100 */ 434, 371, 369, 434, 370, 376, 434, 434, 434, 434,
/* 110 */ 434, 353, 368, 351, 434, 315, 305, 434, 417, 388,
/* 120 */ 344, 341, 416, 353, 365, 319, 340, 312, 381, 353,
/* 130 */ 381, 353, 353, 434, 316, 316, 434, 434, 383, 434,
/* 140 */ 434, 316, 434, 434, 434, 434, 363, 434, 434, 434,
/* 150 */ 434, 328, 434, 313, 434, 434, 434, 324, 434, 320,
/* 160 */ 434, 434, 434, 434, 434, 434, 434, 434, 342, 434,
/* 170 */ 434, 434, 349, 289, 288, 421, 290, 428, 422, 419,
/* 180 */ 285, 357, 431, 433, 354, 282, 350, 427, 294, 287,
/* 190 */ 430, 286, 336, 292, 284, 348, 326, 325, 323, 352,
/* 200 */ 347, 367, 372, 308, 359, 432, 358, 423, 291, 283,
/* 210 */ 293, 426, 425, 360, 420, 337, 429, 374, 362, 403,
/* 220 */ 404, 402, 390, 296, 389, 405, 406, 334, 333, 335,
/* 230 */ 409, 407, 408, 378, 413, 302, 299, 345, 324, 318,
/* 240 */ 364, 375, 373, 379, 414, 412, 424, 298, 297, 384,
/* 250 */ 322, 301, 306, 304, 310, 380, 303, 361, 363, 307,
/* 260 */ 356, 295, 309, 314, 300, 386, 320, 331, 330, 332,
/* 270 */ 395, 366, 394, 329, 398, 410, 411, 321, 327, 399,
/* 280 */ 355,
);
/* 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 = 109;
const YYSTACKDEPTH = 100;
const YYNSTATE = 281;
const YYNRULE = 153;
const YYERRORSYMBOL = 68;
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, /* LDELSLASH => OTHER */
1, /* LDEL => OTHER */
1, /* RDEL => OTHER */
1, /* PHP => OTHER */
1, /* SHORTTAGSTART => OTHER */
1, /* SHORTTAGEND => OTHER */
1, /* COMMENTEND => OTHER */
1, /* COMMENTSTART => OTHER */
1, /* INTEGER => OTHER */
1, /* MATH => OTHER */
1, /* UNIMATH => OTHER */
1, /* INCDEC => OTHER */
1, /* OPENP => OTHER */
1, /* CLOSEP => OTHER */
1, /* OPENB => OTHER */
1, /* CLOSEB => OTHER */
1, /* DOLLAR => OTHER */
1, /* DOT => OTHER */
1, /* COMMA => OTHER */
1, /* COLON => OTHER */
1, /* DOUBLECOLON => OTHER */
1, /* SEMICOLON => OTHER */
1, /* VERT => OTHER */
1, /* EQUAL => OTHER */
1, /* SPACE => OTHER */
1, /* PTR => OTHER */
1, /* APTR => OTHER */
1, /* ID => OTHER */
1, /* EQUALS => OTHER */
1, /* NOTEQUALS => OTHER */
1, /* GREATERTHAN => OTHER */
1, /* LESSTHAN => OTHER */
1, /* GREATEREQUAL => OTHER */
1, /* LESSEQUAL => OTHER */
1, /* IDENTITY => OTHER */
1, /* NONEIDENTITY => OTHER */
1, /* NOT => OTHER */
1, /* LAND => OTHER */
1, /* LOR => OTHER */
1, /* QUOTE => OTHER */
1, /* SINGLEQUOTE => OTHER */
1, /* BOOLEAN => OTHER */
1, /* NULL => OTHER */
1, /* AS => OTHER */
1, /* ANDSYM => OTHER */
1, /* BACKTICK => OTHER */
1, /* HATCH => OTHER */
1, /* AT => OTHER */
1, /* ISODD => OTHER */
1, /* ISNOTODD => OTHER */
1, /* ISEVEN => OTHER */
1, /* ISNOTEVEN => OTHER */
1, /* ISODDBY => OTHER */
1, /* ISNOTODDBY => OTHER */
1, /* ISEVENBY => OTHER */
1, /* ISNOTEVENBY => OTHER */
1, /* ISDIVBY => OTHER */
1, /* ISNOTDIVBY => OTHER */
1, /* ISIN => OTHER */
0, /* LITERALSTART => nothing */
0, /* LITERALEND => nothing */
0, /* LDELIMTAG => nothing */
0, /* RDELIMTAG => nothing */
0, /* PHPSTART => nothing */
0, /* PHPEND => nothing */
0, /* XML => nothing */
);
/**
* 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', 'LDELSLASH', 'LDEL',
'RDEL', 'PHP', 'SHORTTAGSTART', 'SHORTTAGEND',
'COMMENTEND', 'COMMENTSTART', 'INTEGER', 'MATH',
'UNIMATH', 'INCDEC', 'OPENP', 'CLOSEP',
'OPENB', 'CLOSEB', 'DOLLAR', 'DOT',
'COMMA', 'COLON', 'DOUBLECOLON', 'SEMICOLON',
'VERT', 'EQUAL', 'SPACE', 'PTR',
'APTR', 'ID', 'EQUALS', 'NOTEQUALS',
'GREATERTHAN', 'LESSTHAN', 'GREATEREQUAL', 'LESSEQUAL',
'IDENTITY', 'NONEIDENTITY', 'NOT', 'LAND',
'LOR', 'QUOTE', 'SINGLEQUOTE', 'BOOLEAN',
'NULL', 'AS', 'ANDSYM', 'BACKTICK',
'HATCH', 'AT', 'ISODD', 'ISNOTODD',
'ISEVEN', 'ISNOTEVEN', 'ISODDBY', 'ISNOTODDBY',
'ISEVENBY', 'ISNOTEVENBY', 'ISDIVBY', 'ISNOTDIVBY',
'ISIN', 'LITERALSTART', 'LITERALEND', 'LDELIMTAG',
'RDELIMTAG', 'PHPSTART', 'PHPEND', 'XML',
'error', 'start', 'template', 'template_element',
'smartytag', 'text', 'variable', 'varindexed',
'expr', 'attributes', '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 ::= smartytag",
/* 4 */ "template_element ::= COMMENTSTART text COMMENTEND",
/* 5 */ "template_element ::= LITERALSTART text LITERALEND",
/* 6 */ "template_element ::= LDELIMTAG",
/* 7 */ "template_element ::= RDELIMTAG",
/* 8 */ "template_element ::= PHP",
/* 9 */ "template_element ::= PHPSTART text PHPEND",
/* 10 */ "template_element ::= SHORTTAGSTART variable SHORTTAGEND",
/* 11 */ "template_element ::= XML",
/* 12 */ "template_element ::= SHORTTAGEND",
/* 13 */ "template_element ::= OTHER",
/* 14 */ "smartytag ::= LDEL varindexed EQUAL expr attributes RDEL",
/* 15 */ "smartytag ::= LDEL expr attributes RDEL",
/* 16 */ "smartytag ::= LDEL ID attributes RDEL",
/* 17 */ "smartytag ::= LDEL ID PTR ID attributes RDEL",
/* 18 */ "smartytag ::= LDEL ID modifier modparameters attributes RDEL",
/* 19 */ "smartytag ::= LDELSLASH ID attributes RDEL",
/* 20 */ "smartytag ::= LDELSLASH ID PTR ID RDEL",
/* 21 */ "smartytag ::= LDEL ID SPACE ifexprs RDEL",
/* 22 */ "smartytag ::= LDEL ID SPACE statement RDEL",
/* 23 */ "smartytag ::= LDEL ID SPACE statements SEMICOLON ifexprs SEMICOLON DOLLAR varvar foraction RDEL",
/* 24 */ "foraction ::= EQUAL expr",
/* 25 */ "foraction ::= INCDEC",
/* 26 */ "smartytag ::= LDEL ID SPACE value AS DOLLAR varvar RDEL",
/* 27 */ "smartytag ::= LDEL ID SPACE array AS DOLLAR varvar RDEL",
/* 28 */ "attributes ::= attributes attribute",
/* 29 */ "attributes ::= attribute",
/* 30 */ "attributes ::=",
/* 31 */ "attribute ::= SPACE ID EQUAL expr",
/* 32 */ "statements ::= statement",
/* 33 */ "statements ::= statements COMMA statement",
/* 34 */ "statement ::= DOLLAR varvar EQUAL expr",
/* 35 */ "expr ::= ID",
/* 36 */ "expr ::= exprs",
/* 37 */ "expr ::= DOLLAR ID COLON ID",
/* 38 */ "expr ::= expr modifier modparameters",
/* 39 */ "exprs ::= value",
/* 40 */ "exprs ::= UNIMATH value",
/* 41 */ "exprs ::= exprs math value",
/* 42 */ "exprs ::= exprs ANDSYM value",
/* 43 */ "exprs ::= array",
/* 44 */ "math ::= UNIMATH",
/* 45 */ "math ::= MATH",
/* 46 */ "value ::= variable",
/* 47 */ "value ::= INTEGER",
/* 48 */ "value ::= INTEGER DOT INTEGER",
/* 49 */ "value ::= BOOLEAN",
/* 50 */ "value ::= NULL",
/* 51 */ "value ::= function",
/* 52 */ "value ::= OPENP expr CLOSEP",
/* 53 */ "value ::= SINGLEQUOTE text SINGLEQUOTE",
/* 54 */ "value ::= SINGLEQUOTE SINGLEQUOTE",
/* 55 */ "value ::= QUOTE doublequoted QUOTE",
/* 56 */ "value ::= QUOTE QUOTE",
/* 57 */ "value ::= ID DOUBLECOLON method",
/* 58 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP",
/* 59 */ "value ::= ID DOUBLECOLON method objectchain",
/* 60 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain",
/* 61 */ "value ::= ID DOUBLECOLON ID",
/* 62 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex",
/* 63 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain",
/* 64 */ "value ::= smartytag",
/* 65 */ "variable ::= varindexed",
/* 66 */ "variable ::= DOLLAR varvar AT ID",
/* 67 */ "variable ::= object",
/* 68 */ "variable ::= HATCH ID HATCH",
/* 69 */ "variable ::= HATCH variable HATCH",
/* 70 */ "varindexed ::= DOLLAR varvar arrayindex",
/* 71 */ "arrayindex ::= arrayindex indexdef",
/* 72 */ "arrayindex ::=",
/* 73 */ "indexdef ::= DOT ID",
/* 74 */ "indexdef ::= DOT INTEGER",
/* 75 */ "indexdef ::= DOT variable",
/* 76 */ "indexdef ::= DOT LDEL exprs RDEL",
/* 77 */ "indexdef ::= OPENB ID CLOSEB",
/* 78 */ "indexdef ::= OPENB exprs CLOSEB",
/* 79 */ "indexdef ::= OPENB CLOSEB",
/* 80 */ "varvar ::= varvarele",
/* 81 */ "varvar ::= varvar varvarele",
/* 82 */ "varvarele ::= ID",
/* 83 */ "varvarele ::= LDEL expr RDEL",
/* 84 */ "object ::= varindexed objectchain",
/* 85 */ "objectchain ::= objectelement",
/* 86 */ "objectchain ::= objectchain objectelement",
/* 87 */ "objectelement ::= PTR ID arrayindex",
/* 88 */ "objectelement ::= PTR variable arrayindex",
/* 89 */ "objectelement ::= PTR LDEL expr RDEL arrayindex",
/* 90 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex",
/* 91 */ "objectelement ::= PTR method",
/* 92 */ "function ::= ID OPENP params CLOSEP",
/* 93 */ "method ::= ID OPENP params CLOSEP",
/* 94 */ "params ::= expr COMMA params",
/* 95 */ "params ::= expr",
/* 96 */ "params ::=",
/* 97 */ "modifier ::= VERT AT ID",
/* 98 */ "modifier ::= VERT ID",
/* 99 */ "modparameters ::= modparameters modparameter",
/* 100 */ "modparameters ::=",
/* 101 */ "modparameter ::= COLON exprs",
/* 102 */ "modparameter ::= COLON ID",
/* 103 */ "ifexprs ::= ifexpr",
/* 104 */ "ifexprs ::= NOT ifexprs",
/* 105 */ "ifexprs ::= OPENP ifexprs CLOSEP",
/* 106 */ "ifexpr ::= expr",
/* 107 */ "ifexpr ::= expr ifcond expr",
/* 108 */ "ifexpr ::= expr ISIN array",
/* 109 */ "ifexpr ::= expr ISIN value",
/* 110 */ "ifexpr ::= ifexprs lop ifexprs",
/* 111 */ "ifexpr ::= ifexprs ISDIVBY ifexprs",
/* 112 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs",
/* 113 */ "ifexpr ::= ifexprs ISEVEN",
/* 114 */ "ifexpr ::= ifexprs ISNOTEVEN",
/* 115 */ "ifexpr ::= ifexprs ISEVENBY ifexprs",
/* 116 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs",
/* 117 */ "ifexpr ::= ifexprs ISODD",
/* 118 */ "ifexpr ::= ifexprs ISNOTODD",
/* 119 */ "ifexpr ::= ifexprs ISODDBY ifexprs",
/* 120 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs",
/* 121 */ "ifcond ::= EQUALS",
/* 122 */ "ifcond ::= NOTEQUALS",
/* 123 */ "ifcond ::= GREATERTHAN",
/* 124 */ "ifcond ::= LESSTHAN",
/* 125 */ "ifcond ::= GREATEREQUAL",
/* 126 */ "ifcond ::= LESSEQUAL",
/* 127 */ "ifcond ::= IDENTITY",
/* 128 */ "ifcond ::= NONEIDENTITY",
/* 129 */ "lop ::= LAND",
/* 130 */ "lop ::= LOR",
/* 131 */ "array ::= OPENB arrayelements CLOSEB",
/* 132 */ "arrayelements ::= arrayelement",
/* 133 */ "arrayelements ::= arrayelements COMMA arrayelement",
/* 134 */ "arrayelements ::=",
/* 135 */ "arrayelement ::= expr APTR expr",
/* 136 */ "arrayelement ::= ID APTR expr",
/* 137 */ "arrayelement ::= expr",
/* 138 */ "doublequoted ::= doublequoted doublequotedcontent",
/* 139 */ "doublequoted ::= doublequotedcontent",
/* 140 */ "doublequotedcontent ::= BACKTICK ID BACKTICK",
/* 141 */ "doublequotedcontent ::= BACKTICK variable BACKTICK",
/* 142 */ "doublequotedcontent ::= DOLLAR ID",
/* 143 */ "doublequotedcontent ::= LDEL expr RDEL",
/* 144 */ "doublequotedcontent ::= smartytag",
/* 145 */ "doublequotedcontent ::= DOLLAR OTHER",
/* 146 */ "doublequotedcontent ::= LDEL OTHER",
/* 147 */ "doublequotedcontent ::= BACKTICK OTHER",
/* 148 */ "doublequotedcontent ::= OTHER",
/* 149 */ "text ::= text textelement",
/* 150 */ "text ::= textelement",
/* 151 */ "textelement ::= OTHER",
/* 152 */ "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' => 69, 'rhs' => 1 ),
array( 'lhs' => 70, 'rhs' => 1 ),
array( 'lhs' => 70, 'rhs' => 2 ),
array( 'lhs' => 71, 'rhs' => 1 ),
array( 'lhs' => 71, 'rhs' => 3 ),
array( 'lhs' => 71, 'rhs' => 3 ),
array( 'lhs' => 71, 'rhs' => 1 ),
array( 'lhs' => 71, 'rhs' => 1 ),
array( 'lhs' => 71, 'rhs' => 1 ),
array( 'lhs' => 71, 'rhs' => 3 ),
array( 'lhs' => 71, 'rhs' => 3 ),
array( 'lhs' => 71, 'rhs' => 1 ),
array( 'lhs' => 71, 'rhs' => 1 ),
array( 'lhs' => 71, 'rhs' => 1 ),
array( 'lhs' => 72, 'rhs' => 6 ),
array( 'lhs' => 72, 'rhs' => 4 ),
array( 'lhs' => 72, 'rhs' => 4 ),
array( 'lhs' => 72, 'rhs' => 6 ),
array( 'lhs' => 72, 'rhs' => 6 ),
array( 'lhs' => 72, 'rhs' => 4 ),
array( 'lhs' => 72, 'rhs' => 5 ),
array( 'lhs' => 72, 'rhs' => 5 ),
array( 'lhs' => 72, 'rhs' => 5 ),
array( 'lhs' => 72, 'rhs' => 11 ),
array( 'lhs' => 84, 'rhs' => 2 ),
array( 'lhs' => 84, 'rhs' => 1 ),
array( 'lhs' => 72, 'rhs' => 8 ),
array( 'lhs' => 72, 'rhs' => 8 ),
array( 'lhs' => 77, 'rhs' => 2 ),
array( 'lhs' => 77, 'rhs' => 1 ),
array( 'lhs' => 77, 'rhs' => 0 ),
array( 'lhs' => 87, 'rhs' => 4 ),
array( 'lhs' => 82, 'rhs' => 1 ),
array( 'lhs' => 82, 'rhs' => 3 ),
array( 'lhs' => 81, 'rhs' => 4 ),
array( 'lhs' => 76, 'rhs' => 1 ),
array( 'lhs' => 76, 'rhs' => 1 ),
array( 'lhs' => 76, 'rhs' => 4 ),
array( 'lhs' => 76, 'rhs' => 3 ),
array( 'lhs' => 88, 'rhs' => 1 ),
array( 'lhs' => 88, 'rhs' => 2 ),
array( 'lhs' => 88, 'rhs' => 3 ),
array( 'lhs' => 88, 'rhs' => 3 ),
array( 'lhs' => 88, 'rhs' => 1 ),
array( 'lhs' => 89, 'rhs' => 1 ),
array( 'lhs' => 89, 'rhs' => 1 ),
array( 'lhs' => 85, 'rhs' => 1 ),
array( 'lhs' => 85, 'rhs' => 1 ),
array( 'lhs' => 85, 'rhs' => 3 ),
array( 'lhs' => 85, 'rhs' => 1 ),
array( 'lhs' => 85, 'rhs' => 1 ),
array( 'lhs' => 85, 'rhs' => 1 ),
array( 'lhs' => 85, 'rhs' => 3 ),
array( 'lhs' => 85, 'rhs' => 3 ),
array( 'lhs' => 85, 'rhs' => 2 ),
array( 'lhs' => 85, 'rhs' => 3 ),
array( 'lhs' => 85, 'rhs' => 2 ),
array( 'lhs' => 85, 'rhs' => 3 ),
array( 'lhs' => 85, 'rhs' => 7 ),
array( 'lhs' => 85, 'rhs' => 4 ),
array( 'lhs' => 85, 'rhs' => 8 ),
array( 'lhs' => 85, 'rhs' => 3 ),
array( 'lhs' => 85, 'rhs' => 5 ),
array( 'lhs' => 85, 'rhs' => 6 ),
array( 'lhs' => 85, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 4 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 3 ),
array( 'lhs' => 74, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 95, 'rhs' => 2 ),
array( 'lhs' => 95, 'rhs' => 0 ),
array( 'lhs' => 97, 'rhs' => 2 ),
array( 'lhs' => 97, 'rhs' => 2 ),
array( 'lhs' => 97, 'rhs' => 2 ),
array( 'lhs' => 97, 'rhs' => 4 ),
array( 'lhs' => 97, 'rhs' => 3 ),
array( 'lhs' => 97, 'rhs' => 3 ),
array( 'lhs' => 97, 'rhs' => 2 ),
array( 'lhs' => 83, 'rhs' => 1 ),
array( 'lhs' => 83, 'rhs' => 2 ),
array( 'lhs' => 98, 'rhs' => 1 ),
array( 'lhs' => 98, 'rhs' => 3 ),
array( 'lhs' => 96, 'rhs' => 2 ),
array( 'lhs' => 94, 'rhs' => 1 ),
array( 'lhs' => 94, 'rhs' => 2 ),
array( 'lhs' => 99, 'rhs' => 3 ),
array( 'lhs' => 99, 'rhs' => 3 ),
array( 'lhs' => 99, 'rhs' => 5 ),
array( 'lhs' => 99, 'rhs' => 6 ),
array( 'lhs' => 99, 'rhs' => 2 ),
array( 'lhs' => 90, 'rhs' => 4 ),
array( 'lhs' => 92, 'rhs' => 4 ),
array( 'lhs' => 93, 'rhs' => 3 ),
array( 'lhs' => 93, 'rhs' => 1 ),
array( 'lhs' => 93, 'rhs' => 0 ),
array( 'lhs' => 78, 'rhs' => 3 ),
array( 'lhs' => 78, 'rhs' => 2 ),
array( 'lhs' => 79, 'rhs' => 2 ),
array( 'lhs' => 79, 'rhs' => 0 ),
array( 'lhs' => 100, 'rhs' => 2 ),
array( 'lhs' => 100, 'rhs' => 2 ),
array( 'lhs' => 80, 'rhs' => 1 ),
array( 'lhs' => 80, 'rhs' => 2 ),
array( 'lhs' => 80, 'rhs' => 3 ),
array( 'lhs' => 101, 'rhs' => 1 ),
array( 'lhs' => 101, 'rhs' => 3 ),
array( 'lhs' => 101, 'rhs' => 3 ),
array( 'lhs' => 101, 'rhs' => 3 ),
array( 'lhs' => 101, 'rhs' => 3 ),
array( 'lhs' => 101, 'rhs' => 3 ),
array( 'lhs' => 101, 'rhs' => 3 ),
array( 'lhs' => 101, 'rhs' => 2 ),
array( 'lhs' => 101, 'rhs' => 2 ),
array( 'lhs' => 101, 'rhs' => 3 ),
array( 'lhs' => 101, 'rhs' => 3 ),
array( 'lhs' => 101, 'rhs' => 2 ),
array( 'lhs' => 101, 'rhs' => 2 ),
array( 'lhs' => 101, 'rhs' => 3 ),
array( 'lhs' => 101, 'rhs' => 3 ),
array( 'lhs' => 102, 'rhs' => 1 ),
array( 'lhs' => 102, 'rhs' => 1 ),
array( 'lhs' => 102, 'rhs' => 1 ),
array( 'lhs' => 102, 'rhs' => 1 ),
array( 'lhs' => 102, 'rhs' => 1 ),
array( 'lhs' => 102, 'rhs' => 1 ),
array( 'lhs' => 102, 'rhs' => 1 ),
array( 'lhs' => 102, 'rhs' => 1 ),
array( 'lhs' => 103, 'rhs' => 1 ),
array( 'lhs' => 103, 'rhs' => 1 ),
array( 'lhs' => 86, 'rhs' => 3 ),
array( 'lhs' => 104, 'rhs' => 1 ),
array( 'lhs' => 104, 'rhs' => 3 ),
array( 'lhs' => 104, 'rhs' => 0 ),
array( 'lhs' => 105, 'rhs' => 3 ),
array( 'lhs' => 105, 'rhs' => 3 ),
array( 'lhs' => 105, 'rhs' => 1 ),
array( 'lhs' => 91, 'rhs' => 2 ),
array( 'lhs' => 91, 'rhs' => 1 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 106, 'rhs' => 1 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 1 ),
array( 'lhs' => 73, 'rhs' => 2 ),
array( 'lhs' => 73, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, '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,
39 => 0,
46 => 0,
47 => 0,
49 => 0,
50 => 0,
51 => 0,
67 => 0,
132 => 0,
1 => 1,
36 => 1,
43 => 1,
44 => 1,
45 => 1,
80 => 1,
103 => 1,
139 => 1,
148 => 1,
150 => 1,
151 => 1,
152 => 1,
2 => 2,
71 => 2,
138 => 2,
146 => 2,
149 => 2,
3 => 3,
4 => 4,
5 => 5,
6 => 6,
7 => 7,
8 => 8,
9 => 9,
10 => 10,
11 => 11,
12 => 12,
13 => 13,
14 => 14,
15 => 15,
16 => 16,
17 => 17,
18 => 18,
19 => 19,
20 => 20,
21 => 21,
22 => 22,
23 => 23,
24 => 24,
25 => 25,
29 => 25,
95 => 25,
137 => 25,
26 => 26,
27 => 27,
28 => 28,
30 => 30,
31 => 31,
32 => 32,
33 => 33,
34 => 34,
35 => 35,
37 => 37,
38 => 38,
40 => 40,
41 => 41,
42 => 42,
48 => 48,
52 => 52,
53 => 53,
54 => 54,
56 => 54,
55 => 55,
57 => 57,
58 => 58,
59 => 59,
60 => 60,
61 => 61,
62 => 62,
63 => 63,
64 => 64,
65 => 65,
66 => 66,
68 => 68,
69 => 69,
70 => 70,
72 => 72,
100 => 72,
73 => 73,
74 => 74,
75 => 75,
76 => 76,
78 => 76,
77 => 77,
79 => 79,
81 => 81,
82 => 82,
83 => 83,
105 => 83,
84 => 84,
85 => 85,
86 => 86,
87 => 87,
88 => 88,
89 => 89,
90 => 90,
91 => 91,
92 => 92,
93 => 93,
94 => 94,
96 => 96,
97 => 97,
98 => 98,
99 => 99,
101 => 101,
102 => 102,
104 => 104,
106 => 106,
107 => 107,
110 => 107,
108 => 108,
109 => 109,
111 => 111,
112 => 112,
113 => 113,
118 => 113,
114 => 114,
117 => 114,
115 => 115,
120 => 115,
116 => 116,
119 => 116,
121 => 121,
122 => 122,
123 => 123,
124 => 124,
125 => 125,
126 => 126,
127 => 127,
128 => 128,
129 => 129,
130 => 130,
131 => 131,
133 => 133,
134 => 134,
135 => 135,
136 => 136,
140 => 140,
141 => 141,
142 => 142,
143 => 143,
144 => 144,
145 => 145,
147 => 147,
);
/* Beginning here are the reduction cases. A typical example
** follows:
** #line <lineno> <grammarfile>
** function yy_r0($yymsp){ ... } // User supplied code
** #line <lineno> <thisfile>
*/
#line 73 "internal.templateparser.y"
function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 1895 "internal.templateparser.php"
#line 79 "internal.templateparser.y"
function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 1898 "internal.templateparser.php"
#line 81 "internal.templateparser.y"
function yy_r2(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 1901 "internal.templateparser.php"
#line 87 "internal.templateparser.y"
function yy_r3(){if ($this->compiler->has_code) {
$tmp =''; foreach ($this->prefix_code as $code) {$tmp.=$code;} $this->prefix_code=array();
$this->_retvalue = $this->cacher->processNocacheCode($tmp.$this->yystack[$this->yyidx + 0]->minor, $this->compiler,$this->nocache,true);
} else { $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;} $this->nocache=false; }
#line 1907 "internal.templateparser.php"
#line 92 "internal.templateparser.y"
function yy_r4(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0]; }
#line 1910 "internal.templateparser.php"
#line 95 "internal.templateparser.y"
function yy_r5(){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 1913 "internal.templateparser.php"
#line 97 "internal.templateparser.y"
function yy_r6(){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 1916 "internal.templateparser.php"
#line 99 "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->right_delimiter, $this->compiler,false,false); }
#line 1919 "internal.templateparser.php"
#line 101 "internal.templateparser.y"
function yy_r8(){if (!$this->template->security) {
$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler, false,true);
} elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_QUOTE) {
$this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars($this->yystack[$this->yyidx + 0]->minor, ENT_QUOTES), $this->compiler, false, false);
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_PASSTHRU || $this->smarty->security_policy->php_handling == SMARTY_PHP_ALLOW) {
$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '".$this->yystack[$this->yyidx + 0]->minor."';?>\n", $this->compiler, false, false);
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_REMOVE) {
$this->_retvalue = '';
} }
#line 1930 "internal.templateparser.php"
#line 111 "internal.templateparser.y"
function yy_r9(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0];
if (!$this->template->security) {
$this->_retvalue .= $this->cacher->processNocacheCode('<?php '.$this->yystack[$this->yyidx + -1]->minor.' ?>', $this->compiler, false,true);
} elseif ($this->smarty->security_policy->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->smarty->security_policy->php_handling == SMARTY_PHP_PASSTHRU || $this->smarty->security_policy->php_handling == SMARTY_PHP_ALLOW) {
$this->_retvalue .= $this->cacher->processNocacheCode("<?php echo '<?php ".$this->yystack[$this->yyidx + -1]->minor." ?>';?>\n", $this->compiler, false, false);
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_REMOVE) {
$this->_retvalue .= '';
} }
#line 1942 "internal.templateparser.php"
#line 122 "internal.templateparser.y"
function yy_r10(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0];
if (!$this->template->security) {
$this->_retvalue .= $this->cacher->processNocacheCode($this->compiler->compileTag('print_expression',array('value'=>$this->yystack[$this->yyidx + -1]->minor)), $this->compiler, false,true);
} elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_QUOTE) {
$this->_retvalue .= $this->cacher->processNocacheCode(htmlspecialchars('<?php '.t.' ?>', ENT_QUOTES), $this->compiler, false, false);
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_PASSTHRU || $this->smarty->security_policy->php_handling == SMARTY_PHP_ALLOW) {
$this->_retvalue .= $this->cacher->processNocacheCode("<?php echo '<?php ".t." ?>';?>\n", $this->compiler, false, false);
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_REMOVE) {
$this->_retvalue .= '';
} }
#line 1954 "internal.templateparser.php"
#line 133 "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 1957 "internal.templateparser.php"
#line 134 "internal.templateparser.y"
function yy_r12(){$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '?>';?>\n", $this->compiler, true, true); }
#line 1960 "internal.templateparser.php"
#line 136 "internal.templateparser.y"
function yy_r13(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false,false); }
#line 1963 "internal.templateparser.php"
#line 143 "internal.templateparser.y"
function yy_r14(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -5]->minor,$s); $this->_retvalue = $s[0].$this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor)); }
#line 1966 "internal.templateparser.php"
#line 145 "internal.templateparser.y"
function yy_r15(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -3]->minor,$s); $this->_retvalue = $s[0].$this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)); }
#line 1969 "internal.templateparser.php"
#line 147 "internal.templateparser.y"
function yy_r16(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -3]->minor,$s); $this->_retvalue = $s[0].$this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,$this->yystack[$this->yyidx + -1]->minor); }
#line 1972 "internal.templateparser.php"
#line 149 "internal.templateparser.y"
function yy_r17(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -5]->minor,$s); $this->_retvalue = $s[0].$this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)); }
#line 1975 "internal.templateparser.php"
#line 151 "internal.templateparser.y"
function yy_r18(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -5]->minor,$s); $this->_retvalue = $s[0].'<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor).'<?php echo ';
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -3]->minor[0],'modifier')) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>";
} else {
if (is_callable($this->yystack[$this->yyidx + -3]->minor[0])) {
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -3]->minor[0], $this->compiler)) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>";
}
} else {
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -3]->minor[0] . "\"");
}
}
}
#line 1990 "internal.templateparser.php"
#line 165 "internal.templateparser.y"
function yy_r19(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -3]->minor,$s); $this->_retvalue = $s[0].$this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',$this->yystack[$this->yyidx + -1]->minor); }
#line 1993 "internal.templateparser.php"
#line 167 "internal.templateparser.y"
function yy_r20(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -4]->minor,$s); $this->_retvalue = $s[0].$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 1996 "internal.templateparser.php"
#line 169 "internal.templateparser.y"
function yy_r21(){if (!in_array($this->yystack[$this->yyidx + -3]->minor,array('if','elseif','while'))) {
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -3]->minor . "\"");
}
preg_match('/\s*/',$this->yystack[$this->yyidx + -4]->minor,$s); $this->_retvalue = $s[0].$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2002 "internal.templateparser.php"
#line 173 "internal.templateparser.y"
function yy_r22(){ if (!in_array($this->yystack[$this->yyidx + -3]->minor,array('if','elseif','while'))) {
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -3]->minor . "\"");
}
preg_match('/\s*/',$this->yystack[$this->yyidx + -4]->minor,$s); $this->_retvalue = $s[0].$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2008 "internal.templateparser.php"
#line 178 "internal.templateparser.y"
function yy_r23(){
if ($this->yystack[$this->yyidx + -9]->minor != 'for') {
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -9]->minor . "\"");
}
preg_match('/\s*/',$this->yystack[$this->yyidx + -10]->minor,$s); $this->_retvalue = $s[0].$this->compiler->compileTag($this->yystack[$this->yyidx + -9]->minor,array('start'=>$this->yystack[$this->yyidx + -7]->minor,'ifexp'=>$this->yystack[$this->yyidx + -5]->minor,'varloop'=>$this->yystack[$this->yyidx + -2]->minor,'loop'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2015 "internal.templateparser.php"
#line 183 "internal.templateparser.y"
function yy_r24(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; }
#line 2018 "internal.templateparser.php"
#line 184 "internal.templateparser.y"
function yy_r25(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2021 "internal.templateparser.php"
#line 186 "internal.templateparser.y"
function yy_r26(){
if ($this->yystack[$this->yyidx + -6]->minor != 'foreach') {
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -6]->minor . "\"");
}
preg_match('/\s*/',$this->yystack[$this->yyidx + -7]->minor,$s); $this->_retvalue = $s[0].$this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array('from'=>$this->yystack[$this->yyidx + -4]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2028 "internal.templateparser.php"
#line 191 "internal.templateparser.y"
function yy_r27(){
if ($this->yystack[$this->yyidx + -6]->minor != 'foreach') {
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -6]->minor . "\"");
}
preg_match('/\s*/',$this->yystack[$this->yyidx + -7]->minor,$s); $this->_retvalue = $s[0].$this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array('from'=>$this->yystack[$this->yyidx + -4]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2035 "internal.templateparser.php"
#line 201 "internal.templateparser.y"
function yy_r28(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
#line 2038 "internal.templateparser.php"
#line 205 "internal.templateparser.y"
function yy_r30(){ $this->_retvalue = array(); }
#line 2041 "internal.templateparser.php"
#line 208 "internal.templateparser.y"
function yy_r31(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2044 "internal.templateparser.php"
#line 213 "internal.templateparser.y"
function yy_r32(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); }
#line 2047 "internal.templateparser.php"
#line 214 "internal.templateparser.y"
function yy_r33(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; }
#line 2050 "internal.templateparser.php"
#line 216 "internal.templateparser.y"
function yy_r34(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2053 "internal.templateparser.php"
#line 222 "internal.templateparser.y"
function yy_r35(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2056 "internal.templateparser.php"
#line 226 "internal.templateparser.y"
function yy_r37(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; }
#line 2059 "internal.templateparser.php"
#line 227 "internal.templateparser.y"
function yy_r38(){
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 2074 "internal.templateparser.php"
#line 244 "internal.templateparser.y"
function yy_r40(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2077 "internal.templateparser.php"
#line 246 "internal.templateparser.y"
function yy_r41(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; }
#line 2080 "internal.templateparser.php"
#line 248 "internal.templateparser.y"
function yy_r42(){ $this->_retvalue = '('. $this->yystack[$this->yyidx + -2]->minor . ').(' . $this->yystack[$this->yyidx + 0]->minor. ')'; }
#line 2083 "internal.templateparser.php"
#line 268 "internal.templateparser.y"
function yy_r48(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2086 "internal.templateparser.php"
#line 276 "internal.templateparser.y"
function yy_r52(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
#line 2089 "internal.templateparser.php"
#line 278 "internal.templateparser.y"
function yy_r53(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; }
#line 2092 "internal.templateparser.php"
#line 279 "internal.templateparser.y"
function yy_r54(){ $this->_retvalue = "''"; }
#line 2095 "internal.templateparser.php"
#line 281 "internal.templateparser.y"
function yy_r55(){ $this->_retvalue = '"'.$this->yystack[$this->yyidx + -1]->minor.'"'; }
#line 2098 "internal.templateparser.php"
#line 284 "internal.templateparser.y"
function yy_r57(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2101 "internal.templateparser.php"
#line 285 "internal.templateparser.y"
function yy_r58(){ $this->prefix_number++; $this->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -3]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -1]->minor .')'; }
#line 2104 "internal.templateparser.php"
#line 287 "internal.templateparser.y"
function yy_r59(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2107 "internal.templateparser.php"
#line 288 "internal.templateparser.y"
function yy_r60(){ $this->prefix_number++; $this->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -4]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -7]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -2]->minor .')'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2110 "internal.templateparser.php"
#line 290 "internal.templateparser.y"
function yy_r61(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2113 "internal.templateparser.php"
#line 292 "internal.templateparser.y"
function yy_r62(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2116 "internal.templateparser.php"
#line 294 "internal.templateparser.y"
function yy_r63(){ $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 2119 "internal.templateparser.php"
#line 296 "internal.templateparser.y"
function yy_r64(){ $this->prefix_number++; $this->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + 0]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; }
#line 2122 "internal.templateparser.php"
#line 302 "internal.templateparser.y"
function yy_r65(){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 2126 "internal.templateparser.php"
#line 305 "internal.templateparser.y"
function yy_r66(){ $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 2129 "internal.templateparser.php"
#line 309 "internal.templateparser.y"
function yy_r68(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; }
#line 2132 "internal.templateparser.php"
#line 310 "internal.templateparser.y"
function yy_r69(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; }
#line 2135 "internal.templateparser.php"
#line 313 "internal.templateparser.y"
function yy_r70(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2138 "internal.templateparser.php"
#line 321 "internal.templateparser.y"
function yy_r72(){return; }
#line 2141 "internal.templateparser.php"
#line 325 "internal.templateparser.y"
function yy_r73(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; }
#line 2144 "internal.templateparser.php"
#line 326 "internal.templateparser.y"
function yy_r74(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; }
#line 2147 "internal.templateparser.php"
#line 327 "internal.templateparser.y"
function yy_r75(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; }
#line 2150 "internal.templateparser.php"
#line 328 "internal.templateparser.y"
function yy_r76(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; }
#line 2153 "internal.templateparser.php"
#line 330 "internal.templateparser.y"
function yy_r77(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; }
#line 2156 "internal.templateparser.php"
#line 334 "internal.templateparser.y"
function yy_r79(){$this->_retvalue = ''; }
#line 2159 "internal.templateparser.php"
#line 342 "internal.templateparser.y"
function yy_r81(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2162 "internal.templateparser.php"
#line 344 "internal.templateparser.y"
function yy_r82(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2165 "internal.templateparser.php"
#line 346 "internal.templateparser.y"
function yy_r83(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2168 "internal.templateparser.php"
#line 351 "internal.templateparser.y"
function yy_r84(){ 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 2172 "internal.templateparser.php"
#line 354 "internal.templateparser.y"
function yy_r85(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2175 "internal.templateparser.php"
#line 356 "internal.templateparser.y"
function yy_r86(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2178 "internal.templateparser.php"
#line 358 "internal.templateparser.y"
function yy_r87(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2181 "internal.templateparser.php"
#line 359 "internal.templateparser.y"
function yy_r88(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2184 "internal.templateparser.php"
#line 360 "internal.templateparser.y"
function yy_r89(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2187 "internal.templateparser.php"
#line 361 "internal.templateparser.y"
function yy_r90(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2190 "internal.templateparser.php"
#line 363 "internal.templateparser.y"
function yy_r91(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2193 "internal.templateparser.php"
#line 369 "internal.templateparser.y"
function yy_r92(){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 2202 "internal.templateparser.php"
#line 380 "internal.templateparser.y"
function yy_r93(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
#line 2205 "internal.templateparser.php"
#line 384 "internal.templateparser.y"
function yy_r94(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; }
#line 2208 "internal.templateparser.php"
#line 388 "internal.templateparser.y"
function yy_r96(){ return; }
#line 2211 "internal.templateparser.php"
#line 393 "internal.templateparser.y"
function yy_r97(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); }
#line 2214 "internal.templateparser.php"
#line 394 "internal.templateparser.y"
function yy_r98(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); }
#line 2217 "internal.templateparser.php"
#line 401 "internal.templateparser.y"
function yy_r99(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2220 "internal.templateparser.php"
#line 405 "internal.templateparser.y"
function yy_r101(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; }
#line 2223 "internal.templateparser.php"
#line 406 "internal.templateparser.y"
function yy_r102(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2226 "internal.templateparser.php"
#line 413 "internal.templateparser.y"
function yy_r104(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2229 "internal.templateparser.php"
#line 418 "internal.templateparser.y"
function yy_r106(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; }
#line 2232 "internal.templateparser.php"
#line 419 "internal.templateparser.y"
function yy_r107(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2235 "internal.templateparser.php"
#line 420 "internal.templateparser.y"
function yy_r108(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2238 "internal.templateparser.php"
#line 421 "internal.templateparser.y"
function yy_r109(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2241 "internal.templateparser.php"
#line 423 "internal.templateparser.y"
function yy_r111(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2244 "internal.templateparser.php"
#line 424 "internal.templateparser.y"
function yy_r112(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2247 "internal.templateparser.php"
#line 425 "internal.templateparser.y"
function yy_r113(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2250 "internal.templateparser.php"
#line 426 "internal.templateparser.y"
function yy_r114(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2253 "internal.templateparser.php"
#line 427 "internal.templateparser.y"
function yy_r115(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2256 "internal.templateparser.php"
#line 428 "internal.templateparser.y"
function yy_r116(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2259 "internal.templateparser.php"
#line 434 "internal.templateparser.y"
function yy_r121(){$this->_retvalue = '=='; }
#line 2262 "internal.templateparser.php"
#line 435 "internal.templateparser.y"
function yy_r122(){$this->_retvalue = '!='; }
#line 2265 "internal.templateparser.php"
#line 436 "internal.templateparser.y"
function yy_r123(){$this->_retvalue = '>'; }
#line 2268 "internal.templateparser.php"
#line 437 "internal.templateparser.y"
function yy_r124(){$this->_retvalue = '<'; }
#line 2271 "internal.templateparser.php"
#line 438 "internal.templateparser.y"
function yy_r125(){$this->_retvalue = '>='; }
#line 2274 "internal.templateparser.php"
#line 439 "internal.templateparser.y"
function yy_r126(){$this->_retvalue = '<='; }
#line 2277 "internal.templateparser.php"
#line 440 "internal.templateparser.y"
function yy_r127(){$this->_retvalue = '==='; }
#line 2280 "internal.templateparser.php"
#line 441 "internal.templateparser.y"
function yy_r128(){$this->_retvalue = '!=='; }
#line 2283 "internal.templateparser.php"
#line 443 "internal.templateparser.y"
function yy_r129(){$this->_retvalue = '&&'; }
#line 2286 "internal.templateparser.php"
#line 444 "internal.templateparser.y"
function yy_r130(){$this->_retvalue = '||'; }
#line 2289 "internal.templateparser.php"
#line 449 "internal.templateparser.y"
function yy_r131(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2292 "internal.templateparser.php"
#line 451 "internal.templateparser.y"
function yy_r133(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; }
#line 2295 "internal.templateparser.php"
#line 452 "internal.templateparser.y"
function yy_r134(){ return; }
#line 2298 "internal.templateparser.php"
#line 453 "internal.templateparser.y"
function yy_r135(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2301 "internal.templateparser.php"
#line 454 "internal.templateparser.y"
function yy_r136(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2304 "internal.templateparser.php"
#line 462 "internal.templateparser.y"
function yy_r140(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; }
#line 2307 "internal.templateparser.php"
#line 463 "internal.templateparser.y"
function yy_r141(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; }
#line 2310 "internal.templateparser.php"
#line 464 "internal.templateparser.y"
function yy_r142(){$this->_retvalue = '".'.'$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + 0]->minor .'\')->value'.'."'; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"))->nocache; }
#line 2313 "internal.templateparser.php"
#line 465 "internal.templateparser.y"
function yy_r143(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0].'".('.$this->yystack[$this->yyidx + -1]->minor.')."'; }
#line 2316 "internal.templateparser.php"
#line 466 "internal.templateparser.y"
function yy_r144(){ $this->prefix_number++; $this->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + 0]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '".$_tmp'.$this->prefix_number.'."'; }
#line 2319 "internal.templateparser.php"
#line 467 "internal.templateparser.y"
function yy_r145(){$this->_retvalue = '$'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2322 "internal.templateparser.php"
#line 469 "internal.templateparser.y"
function yy_r147(){$this->_retvalue = '`'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2325 "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 55 "internal.templateparser.y"
$this->internalError = true;
$this->yymajor = $yymajor;
$this->compiler->trigger_template_error();
#line 2443 "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 47 "internal.templateparser.y"
$this->successful = !$this->internalError;
$this->internalError = false;
$this->retvalue = $this->_retvalue;
//echo $this->retvalue."\n\n";
#line 2468 "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);
}
}