Files
smarty/libs/sysplugins/smarty_internal_templateparser.php

2784 lines
135 KiB
PHP
Raw Normal View History

<?php
/**
* Smarty Internal Plugin Templateparser
*
* This is the template parser.
* It is generated from the internal.templateparser.y file
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* This can be used to store both the string representation of
* a token, and any useful meta-data associated with the token.
*
* meta-data should be stored as an array
*/
class TP_yyToken implements ArrayAccess
{
public $string = '';
public $metadata = array();
function __construct($s, $m = array())
{
if ($s instanceof TP_yyToken) {
$this->string = $s->string;
$this->metadata = $s->metadata;
} else {
$this->string = (string) $s;
if ($m instanceof TP_yyToken) {
$this->metadata = $m->metadata;
} elseif (is_array($m)) {
$this->metadata = $m;
}
}
}
function __toString()
{
return $this->_string;
}
function offsetExists($offset)
{
return isset($this->metadata[$offset]);
}
function offsetGet($offset)
{
return $this->metadata[$offset];
}
function offsetSet($offset, $value)
{
if ($offset === null) {
if (isset($value[0])) {
$x = ($value instanceof TP_yyToken) ?
$value->metadata : $value;
$this->metadata = array_merge($this->metadata, $x);
return;
}
$offset = count($this->metadata);
}
if ($value === null) {
return;
}
if ($value instanceof TP_yyToken) {
if ($value->metadata) {
$this->metadata[$offset] = $value->metadata;
}
} elseif ($value) {
$this->metadata[$offset] = $value;
}
}
function offsetUnset($offset)
{
unset($this->metadata[$offset]);
}
}
/** The following structure represents a single element of the
* parser's stack. Information stored includes:
*
* + The state number for the parser at this level of the stack.
*
* + The value of the token stored at this level of the stack.
* (In other words, the "major" token.)
*
* + The semantic value stored at this level of the stack. This is
* the information used by the action routines in the grammar.
* It is sometimes called the "minor" token.
*/
class TP_yyStackEntry
{
public $stateno; /* The state-number */
public $major; /* The major token value. This is the code
** number for the token at this stack level */
public $minor; /* The user-supplied minor token value. This
** is the value of the token */
};
// code external to the class is included here
// declare_class is output here
#line 12 "smarty_internal_templateparser.y"
class Smarty_Internal_Templateparser#line 109 "smarty_internal_templateparser.php"
{
/* First off, code is included which follows the "include_class" declaration
** in the input file. */
#line 14 "smarty_internal_templateparser.y"
2009-10-22 23:05:14 +00:00
// states whether the parse was successful or not
public $successful = true;
public $retvalue = 0;
private $lex;
private $internalError = false;
function __construct($lex, $compiler) {
// set instance object
self::instance($this);
$this->lex = $lex;
$this->compiler = $compiler;
$this->smarty = $this->compiler->smarty;
$this->template = $this->compiler->template;
if ($this->template->security && isset($this->smarty->security_handler)) {
$this->sec_obj = $this->smarty->security_policy;
} else {
$this->sec_obj = $this->smarty;
}
$this->cacher = $this->template->cacher_object;
$this->compiler->has_variable_string = false;
$this->compiler->prefix_code = array();
$this->prefix_number = 0;
}
public static function &instance($new_instance = null)
{
static $instance = null;
if (isset($new_instance) && is_object($new_instance))
$instance = $new_instance;
return $instance;
}
#line 147 "smarty_internal_templateparser.php"
/* Next is all token values, as class constants
*/
/*
** These constants (all generated automatically by the parser generator)
** specify the various kinds of tokens (terminals) that the parser
** understands.
**
** Each symbol here is a terminal symbol in the grammar.
*/
const TP_OTHER = 1;
const TP_XML = 2;
const TP_PHP = 3;
const TP_SHORTTAGSTART = 4;
const TP_SHORTTAGEND = 5;
const TP_PHPSTART = 6;
const TP_PHPEND = 7;
const TP_COMMENT = 8;
const TP_SINGLEQUOTE = 9;
const TP_LITERALSTART = 10;
const TP_LITERALEND = 11;
const TP_LDELIMTAG = 12;
const TP_RDELIMTAG = 13;
const TP_LDELSLASH = 14;
const TP_LDEL = 15;
const TP_RDEL = 16;
const TP_ISIN = 17;
const TP_AS = 18;
const TP_BOOLEAN = 19;
const TP_NULL = 20;
const TP_IDENTITY = 21;
const TP_NONEIDENTITY = 22;
const TP_EQUALS = 23;
const TP_NOTEQUALS = 24;
const TP_GREATEREQUAL = 25;
const TP_LESSEQUAL = 26;
const TP_GREATERTHAN = 27;
const TP_LESSTHAN = 28;
const TP_MOD = 29;
const TP_NOT = 30;
const TP_LAND = 31;
const TP_LOR = 32;
const TP_LXOR = 33;
const TP_ISODDBY = 34;
const TP_ISNOTODDBY = 35;
const TP_ISODD = 36;
const TP_ISNOTODD = 37;
const TP_ISEVENBY = 38;
const TP_ISNOTEVENBY = 39;
const TP_ISEVEN = 40;
const TP_ISNOTEVEN = 41;
const TP_ISDIVBY = 42;
const TP_ISNOTDIVBY = 43;
const TP_OPENP = 44;
const TP_CLOSEP = 45;
const TP_OPENB = 46;
const TP_CLOSEB = 47;
const TP_PTR = 48;
const TP_APTR = 49;
const TP_EQUAL = 50;
const TP_INTEGER = 51;
const TP_INCDEC = 52;
const TP_UNIMATH = 53;
const TP_MATH = 54;
const TP_DOLLAR = 55;
const TP_COLON = 56;
const TP_DOUBLECOLON = 57;
const TP_SEMICOLON = 58;
const TP_AT = 59;
const TP_HATCH = 60;
const TP_QUOTE = 61;
const TP_BACKTICK = 62;
const TP_VERT = 63;
const TP_DOT = 64;
const TP_COMMA = 65;
const TP_ANDSYM = 66;
const TP_ID = 67;
const TP_SPACE = 68;
const TP_INSTANCEOF = 69;
const TP_QMARK = 70;
2009-11-02 20:21:28 +00:00
const YY_NO_ACTION = 494;
const YY_ACCEPT_ACTION = 493;
const YY_ERROR_ACTION = 492;
/* 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.
*/
2009-11-02 20:21:28 +00:00
const YY_SZ_ACTTAB = 1158;
static public $yy_action = array(
2009-11-02 20:21:28 +00:00
/* 0 */ 278, 279, 269, 4, 7, 277, 282, 13, 3, 272,
/* 10 */ 270, 12, 6, 174, 258, 278, 279, 269, 4, 7,
/* 20 */ 277, 282, 13, 3, 272, 270, 12, 6, 143, 278,
/* 30 */ 279, 269, 4, 7, 277, 282, 13, 3, 272, 270,
/* 40 */ 12, 6, 202, 181, 278, 279, 269, 4, 7, 277,
/* 50 */ 282, 13, 3, 272, 270, 12, 6, 63, 106, 16,
/* 60 */ 63, 265, 297, 75, 41, 168, 75, 276, 271, 81,
/* 70 */ 276, 271, 116, 217, 222, 207, 200, 221, 8, 185,
/* 80 */ 228, 8, 68, 16, 224, 211, 138, 2, 35, 153,
/* 90 */ 310, 26, 10, 81, 14, 10, 116, 14, 36, 203,
/* 100 */ 43, 42, 203, 65, 42, 164, 74, 233, 49, 58,
/* 110 */ 210, 49, 58, 63, 310, 158, 44, 23, 155, 75,
/* 120 */ 286, 235, 52, 276, 271, 288, 358, 164, 175, 20,
/* 130 */ 57, 36, 81, 63, 15, 91, 204, 162, 183, 75,
/* 140 */ 160, 176, 53, 276, 271, 103, 218, 275, 28, 44,
/* 150 */ 14, 294, 24, 310, 16, 203, 29, 42, 287, 76,
/* 160 */ 22, 171, 110, 164, 49, 58, 246, 116, 28, 264,
/* 170 */ 14, 156, 152, 16, 167, 203, 136, 42, 358, 65,
/* 180 */ 236, 46, 286, 5, 49, 58, 116, 63, 16, 215,
/* 190 */ 125, 45, 366, 75, 196, 30, 15, 276, 271, 356,
/* 200 */ 130, 116, 39, 312, 313, 304, 268, 280, 266, 255,
/* 210 */ 257, 259, 254, 256, 281, 32, 111, 63, 23, 164,
/* 220 */ 76, 353, 28, 75, 14, 49, 199, 276, 271, 203,
/* 230 */ 169, 42, 173, 65, 193, 76, 167, 175, 49, 58,
/* 240 */ 49, 81, 253, 46, 21, 158, 172, 119, 164, 262,
/* 250 */ 284, 356, 28, 31, 14, 267, 275, 261, 23, 203,
/* 260 */ 299, 42, 310, 76, 233, 305, 220, 231, 49, 58,
/* 270 */ 264, 63, 129, 188, 252, 161, 150, 75, 235, 295,
/* 280 */ 189, 276, 271, 19, 81, 215, 39, 493, 95, 219,
/* 290 */ 268, 280, 266, 255, 257, 259, 254, 256, 281, 206,
/* 300 */ 70, 63, 23, 212, 301, 310, 28, 75, 14, 274,
/* 310 */ 264, 276, 271, 203, 274, 42, 175, 76, 220, 231,
/* 320 */ 81, 175, 49, 58, 154, 81, 135, 164, 273, 165,
/* 330 */ 154, 295, 164, 244, 233, 275, 11, 24, 14, 215,
/* 340 */ 275, 310, 251, 203, 76, 42, 310, 65, 235, 49,
/* 350 */ 25, 164, 49, 58, 264, 63, 195, 149, 137, 59,
/* 360 */ 16, 75, 151, 133, 178, 276, 271, 154, 291, 209,
/* 370 */ 175, 215, 55, 116, 81, 63, 215, 83, 342, 164,
/* 380 */ 38, 75, 201, 311, 1, 276, 271, 103, 208, 275,
/* 390 */ 11, 99, 14, 23, 283, 310, 113, 203, 245, 42,
/* 400 */ 287, 65, 81, 164, 164, 242, 49, 58, 188, 43,
/* 410 */ 11, 18, 14, 158, 232, 164, 241, 203, 175, 42,
/* 420 */ 76, 65, 81, 310, 34, 49, 49, 58, 243, 63,
/* 430 */ 314, 164, 213, 45, 154, 75, 313, 275, 188, 276,
/* 440 */ 271, 134, 230, 310, 39, 186, 71, 178, 268, 280,
/* 450 */ 266, 255, 257, 259, 254, 256, 281, 316, 101, 63,
/* 460 */ 23, 260, 164, 290, 28, 75, 14, 1, 37, 276,
/* 470 */ 271, 203, 175, 42, 57, 65, 81, 265, 233, 92,
/* 480 */ 49, 58, 164, 100, 201, 311, 239, 157, 96, 103,
/* 490 */ 164, 275, 235, 164, 28, 243, 14, 310, 188, 226,
/* 500 */ 290, 203, 287, 292, 171, 76, 293, 37, 66, 80,
/* 510 */ 49, 58, 264, 78, 144, 63, 197, 165, 170, 188,
/* 520 */ 64, 75, 51, 82, 69, 276, 271, 215, 302, 18,
/* 530 */ 63, 60, 315, 311, 175, 177, 75, 103, 81, 275,
/* 540 */ 276, 271, 313, 220, 231, 310, 315, 311, 290, 227,
/* 550 */ 28, 102, 109, 275, 61, 141, 295, 203, 128, 310,
/* 560 */ 108, 76, 62, 304, 308, 28, 49, 58, 215, 290,
/* 570 */ 124, 290, 203, 165, 175, 304, 76, 290, 81, 290,
/* 580 */ 131, 49, 58, 142, 139, 304, 315, 311, 166, 296,
/* 590 */ 175, 98, 105, 275, 81, 140, 215, 215, 180, 310,
/* 600 */ 67, 175, 315, 311, 225, 81, 191, 103, 215, 275,
/* 610 */ 187, 216, 48, 315, 311, 310, 298, 33, 97, 192,
/* 620 */ 275, 261, 22, 163, 306, 175, 310, 57, 247, 81,
/* 630 */ 229, 27, 90, 237, 182, 9, 223, 201, 311, 214,
/* 640 */ 300, 175, 103, 57, 275, 81, 250, 73, 84, 21,
/* 650 */ 310, 289, 132, 201, 311, 287, 309, 41, 103, 198,
/* 660 */ 275, 175, 312, 57, 265, 81, 310, 40, 88, 248,
/* 670 */ 120, 287, 249, 201, 311, 77, 43, 196, 103, 234,
/* 680 */ 275, 240, 47, 175, 285, 57, 310, 81, 17, 263,
/* 690 */ 87, 287, 205, 50, 72, 201, 311, 293, 293, 293,
/* 700 */ 103, 293, 275, 175, 293, 57, 293, 81, 310, 293,
/* 710 */ 86, 293, 293, 287, 293, 201, 311, 175, 293, 57,
/* 720 */ 103, 81, 275, 293, 89, 293, 293, 293, 310, 201,
/* 730 */ 311, 293, 293, 287, 103, 293, 275, 293, 293, 293,
/* 740 */ 293, 175, 310, 57, 293, 81, 293, 287, 94, 293,
/* 750 */ 293, 293, 293, 201, 311, 293, 293, 293, 103, 293,
/* 760 */ 275, 293, 293, 175, 293, 57, 310, 81, 293, 293,
/* 770 */ 93, 287, 293, 293, 293, 201, 311, 293, 293, 293,
/* 780 */ 103, 293, 275, 175, 293, 56, 293, 81, 310, 293,
/* 790 */ 85, 293, 293, 287, 293, 201, 311, 175, 293, 104,
/* 800 */ 103, 81, 275, 293, 293, 293, 293, 293, 310, 315,
/* 810 */ 311, 293, 293, 287, 103, 293, 275, 293, 293, 184,
/* 820 */ 293, 175, 310, 104, 293, 81, 293, 293, 293, 293,
/* 830 */ 293, 293, 293, 315, 311, 293, 293, 293, 103, 293,
/* 840 */ 275, 293, 293, 179, 293, 175, 310, 146, 238, 81,
/* 850 */ 293, 293, 293, 293, 293, 293, 293, 159, 311, 293,
/* 860 */ 293, 293, 103, 175, 275, 104, 293, 81, 293, 293,
/* 870 */ 310, 293, 293, 293, 293, 315, 311, 175, 293, 104,
/* 880 */ 103, 81, 275, 293, 293, 303, 293, 293, 310, 315,
/* 890 */ 311, 293, 293, 293, 103, 293, 275, 293, 293, 190,
/* 900 */ 293, 175, 310, 54, 79, 81, 293, 293, 293, 293,
/* 910 */ 293, 293, 293, 315, 311, 293, 293, 293, 103, 194,
/* 920 */ 275, 293, 293, 175, 293, 117, 310, 69, 293, 293,
/* 930 */ 293, 293, 293, 293, 293, 315, 311, 175, 293, 105,
/* 940 */ 103, 81, 275, 293, 293, 293, 293, 293, 310, 315,
/* 950 */ 311, 293, 293, 293, 103, 175, 275, 148, 293, 81,
/* 960 */ 293, 293, 310, 293, 293, 293, 293, 315, 311, 293,
/* 970 */ 293, 307, 103, 293, 275, 293, 293, 293, 293, 175,
/* 980 */ 310, 127, 175, 81, 107, 293, 81, 293, 293, 293,
/* 990 */ 293, 315, 311, 293, 315, 311, 103, 293, 275, 103,
/* 1000 */ 293, 275, 293, 293, 310, 293, 175, 310, 114, 293,
/* 1010 */ 81, 293, 293, 293, 293, 293, 293, 293, 315, 311,
/* 1020 */ 175, 293, 126, 103, 81, 275, 293, 293, 293, 293,
/* 1030 */ 293, 310, 315, 311, 175, 293, 123, 103, 81, 275,
/* 1040 */ 293, 293, 293, 293, 293, 310, 315, 311, 175, 293,
/* 1050 */ 122, 103, 81, 275, 293, 293, 293, 293, 293, 310,
/* 1060 */ 315, 311, 175, 293, 145, 103, 81, 275, 293, 293,
/* 1070 */ 293, 293, 293, 310, 315, 311, 175, 293, 147, 103,
/* 1080 */ 81, 275, 293, 293, 293, 293, 293, 310, 315, 311,
/* 1090 */ 175, 293, 115, 103, 81, 275, 293, 293, 293, 293,
/* 1100 */ 293, 310, 315, 311, 175, 293, 121, 103, 81, 275,
/* 1110 */ 293, 293, 293, 293, 293, 310, 315, 311, 175, 293,
/* 1120 */ 118, 103, 81, 275, 293, 293, 293, 293, 293, 310,
/* 1130 */ 315, 311, 175, 293, 112, 103, 81, 275, 293, 293,
/* 1140 */ 293, 293, 293, 310, 315, 311, 293, 293, 293, 103,
/* 1150 */ 293, 275, 293, 293, 293, 293, 293, 310,
);
static public $yy_lookahead = array(
/* 0 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
2009-11-02 20:21:28 +00:00
/* 10 */ 41, 42, 43, 18, 45, 31, 32, 33, 34, 35,
/* 20 */ 36, 37, 38, 39, 40, 41, 42, 43, 85, 31,
/* 30 */ 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
2009-11-02 20:21:28 +00:00
/* 40 */ 42, 43, 58, 45, 31, 32, 33, 34, 35, 36,
/* 50 */ 37, 38, 39, 40, 41, 42, 43, 9, 103, 44,
/* 60 */ 9, 106, 47, 15, 69, 79, 15, 19, 20, 83,
/* 70 */ 19, 20, 57, 1, 2, 3, 4, 5, 30, 64,
/* 80 */ 8, 30, 10, 44, 12, 13, 14, 15, 49, 79,
/* 90 */ 104, 49, 44, 83, 46, 44, 57, 46, 46, 51,
/* 100 */ 48, 53, 51, 55, 53, 63, 55, 1, 60, 61,
/* 110 */ 100, 60, 61, 9, 104, 67, 64, 15, 67, 15,
/* 120 */ 1, 15, 85, 19, 20, 1, 16, 63, 79, 65,
/* 130 */ 81, 46, 83, 9, 15, 86, 87, 88, 59, 15,
/* 140 */ 91, 92, 85, 19, 20, 96, 67, 98, 44, 64,
/* 150 */ 46, 47, 50, 104, 44, 51, 56, 53, 109, 55,
/* 160 */ 50, 59, 103, 63, 60, 61, 1, 57, 44, 67,
/* 170 */ 46, 67, 16, 44, 55, 51, 80, 53, 68, 55,
/* 180 */ 61, 62, 1, 58, 60, 61, 57, 9, 44, 93,
/* 190 */ 65, 67, 63, 15, 65, 15, 15, 19, 20, 16,
/* 200 */ 102, 57, 17, 105, 108, 107, 21, 22, 23, 24,
/* 210 */ 25, 26, 27, 28, 29, 15, 103, 9, 15, 63,
/* 220 */ 55, 16, 44, 15, 46, 60, 1, 19, 20, 51,
/* 230 */ 45, 53, 67, 55, 55, 55, 55, 79, 60, 61,
/* 240 */ 60, 83, 61, 62, 44, 67, 67, 67, 63, 91,
/* 250 */ 92, 68, 44, 50, 46, 52, 98, 52, 15, 51,
/* 260 */ 47, 53, 104, 55, 1, 47, 53, 54, 60, 61,
/* 270 */ 67, 9, 80, 68, 11, 67, 84, 15, 15, 66,
/* 280 */ 79, 19, 20, 65, 83, 93, 17, 72, 73, 74,
/* 290 */ 21, 22, 23, 24, 25, 26, 27, 28, 29, 64,
/* 300 */ 55, 9, 15, 1, 16, 104, 44, 15, 46, 45,
/* 310 */ 67, 19, 20, 51, 45, 53, 79, 55, 53, 54,
/* 320 */ 83, 79, 60, 61, 84, 83, 80, 63, 91, 67,
/* 330 */ 84, 66, 63, 91, 1, 98, 44, 50, 46, 93,
/* 340 */ 98, 104, 9, 51, 55, 53, 104, 55, 15, 60,
/* 350 */ 110, 63, 60, 61, 67, 9, 67, 16, 80, 67,
/* 360 */ 44, 15, 84, 80, 48, 19, 20, 84, 16, 67,
/* 370 */ 79, 93, 81, 57, 83, 9, 93, 86, 16, 63,
/* 380 */ 15, 15, 91, 92, 68, 19, 20, 96, 48, 98,
/* 390 */ 44, 78, 46, 15, 51, 104, 103, 51, 79, 53,
/* 400 */ 109, 55, 83, 63, 63, 67, 60, 61, 68, 48,
/* 410 */ 44, 50, 46, 67, 16, 63, 51, 51, 79, 53,
/* 420 */ 55, 55, 83, 104, 56, 60, 60, 61, 115, 9,
/* 430 */ 91, 63, 67, 67, 84, 15, 108, 98, 68, 19,
/* 440 */ 20, 94, 95, 104, 17, 67, 89, 48, 21, 22,
/* 450 */ 23, 24, 25, 26, 27, 28, 29, 93, 78, 9,
/* 460 */ 15, 90, 63, 106, 44, 15, 46, 68, 56, 19,
/* 470 */ 20, 51, 79, 53, 81, 55, 83, 106, 1, 86,
/* 480 */ 60, 61, 63, 89, 91, 92, 9, 67, 99, 96,
/* 490 */ 63, 98, 15, 63, 44, 115, 46, 104, 68, 5,
/* 500 */ 106, 51, 109, 114, 59, 55, 16, 56, 55, 45,
/* 510 */ 60, 61, 67, 67, 80, 9, 75, 67, 77, 68,
/* 520 */ 79, 15, 81, 82, 83, 19, 20, 93, 45, 50,
/* 530 */ 9, 89, 91, 92, 79, 18, 15, 96, 83, 98,
/* 540 */ 19, 20, 108, 53, 54, 104, 91, 92, 106, 60,
/* 550 */ 44, 96, 89, 98, 89, 80, 66, 51, 102, 104,
/* 560 */ 89, 55, 89, 107, 16, 44, 60, 61, 93, 106,
/* 570 */ 102, 106, 51, 67, 79, 107, 55, 106, 83, 106,
/* 580 */ 102, 60, 61, 80, 80, 107, 91, 92, 67, 47,
/* 590 */ 79, 96, 81, 98, 83, 80, 93, 93, 75, 104,
/* 600 */ 55, 79, 91, 92, 45, 83, 83, 96, 93, 98,
/* 610 */ 67, 67, 67, 91, 92, 104, 67, 70, 96, 67,
/* 620 */ 98, 52, 50, 112, 113, 79, 104, 81, 62, 83,
/* 630 */ 67, 70, 86, 16, 56, 111, 5, 91, 92, 16,
/* 640 */ 60, 79, 96, 81, 98, 83, 62, 55, 86, 44,
/* 650 */ 104, 16, 67, 91, 92, 109, 67, 69, 96, 1,
/* 660 */ 98, 79, 105, 81, 106, 83, 104, 97, 86, 115,
/* 670 */ 103, 109, 74, 91, 92, 100, 48, 65, 96, 114,
/* 680 */ 98, 95, 103, 79, 107, 81, 104, 83, 44, 87,
/* 690 */ 86, 109, 76, 67, 55, 91, 92, 116, 116, 116,
/* 700 */ 96, 116, 98, 79, 116, 81, 116, 83, 104, 116,
/* 710 */ 86, 116, 116, 109, 116, 91, 92, 79, 116, 81,
/* 720 */ 96, 83, 98, 116, 86, 116, 116, 116, 104, 91,
/* 730 */ 92, 116, 116, 109, 96, 116, 98, 116, 116, 116,
/* 740 */ 116, 79, 104, 81, 116, 83, 116, 109, 86, 116,
/* 750 */ 116, 116, 116, 91, 92, 116, 116, 116, 96, 116,
/* 760 */ 98, 116, 116, 79, 116, 81, 104, 83, 116, 116,
/* 770 */ 86, 109, 116, 116, 116, 91, 92, 116, 116, 116,
/* 780 */ 96, 116, 98, 79, 116, 81, 116, 83, 104, 116,
/* 790 */ 86, 116, 116, 109, 116, 91, 92, 79, 116, 81,
/* 800 */ 96, 83, 98, 116, 116, 116, 116, 116, 104, 91,
/* 810 */ 92, 116, 116, 109, 96, 116, 98, 116, 116, 101,
/* 820 */ 116, 79, 104, 81, 116, 83, 116, 116, 116, 116,
/* 830 */ 116, 116, 116, 91, 92, 116, 116, 116, 96, 116,
/* 840 */ 98, 116, 116, 101, 116, 79, 104, 81, 82, 83,
/* 850 */ 116, 116, 116, 116, 116, 116, 116, 91, 92, 116,
/* 860 */ 116, 116, 96, 79, 98, 81, 116, 83, 116, 116,
/* 870 */ 104, 116, 116, 116, 116, 91, 92, 79, 116, 81,
/* 880 */ 96, 83, 98, 116, 116, 101, 116, 116, 104, 91,
/* 890 */ 92, 116, 116, 116, 96, 116, 98, 116, 116, 101,
/* 900 */ 116, 79, 104, 81, 82, 83, 116, 116, 116, 116,
/* 910 */ 116, 116, 116, 91, 92, 116, 116, 116, 96, 75,
/* 920 */ 98, 116, 116, 79, 116, 81, 104, 83, 116, 116,
/* 930 */ 116, 116, 116, 116, 116, 91, 92, 79, 116, 81,
/* 940 */ 96, 83, 98, 116, 116, 116, 116, 116, 104, 91,
/* 950 */ 92, 116, 116, 116, 96, 79, 98, 81, 116, 83,
/* 960 */ 116, 116, 104, 116, 116, 116, 116, 91, 92, 116,
/* 970 */ 116, 113, 96, 116, 98, 116, 116, 116, 116, 79,
/* 980 */ 104, 81, 79, 83, 81, 116, 83, 116, 116, 116,
/* 990 */ 116, 91, 92, 116, 91, 92, 96, 116, 98, 96,
/* 1000 */ 116, 98, 116, 116, 104, 116, 79, 104, 81, 116,
/* 1010 */ 83, 116, 116, 116, 116, 116, 116, 116, 91, 92,
/* 1020 */ 79, 116, 81, 96, 83, 98, 116, 116, 116, 116,
/* 1030 */ 116, 104, 91, 92, 79, 116, 81, 96, 83, 98,
/* 1040 */ 116, 116, 116, 116, 116, 104, 91, 92, 79, 116,
/* 1050 */ 81, 96, 83, 98, 116, 116, 116, 116, 116, 104,
/* 1060 */ 91, 92, 79, 116, 81, 96, 83, 98, 116, 116,
/* 1070 */ 116, 116, 116, 104, 91, 92, 79, 116, 81, 96,
/* 1080 */ 83, 98, 116, 116, 116, 116, 116, 104, 91, 92,
/* 1090 */ 79, 116, 81, 96, 83, 98, 116, 116, 116, 116,
/* 1100 */ 116, 104, 91, 92, 79, 116, 81, 96, 83, 98,
/* 1110 */ 116, 116, 116, 116, 116, 104, 91, 92, 79, 116,
/* 1120 */ 81, 96, 83, 98, 116, 116, 116, 116, 116, 104,
/* 1130 */ 91, 92, 79, 116, 81, 96, 83, 98, 116, 116,
/* 1140 */ 116, 116, 116, 104, 91, 92, 116, 116, 116, 96,
/* 1150 */ 116, 98, 116, 116, 116, 116, 116, 104,
);
const YY_SHIFT_USE_DFLT = -32;
2009-11-02 20:21:28 +00:00
const YY_SHIFT_MAX = 208;
static public $yy_shift_ofst = array(
2009-11-02 20:21:28 +00:00
/* 0 */ 72, 51, 366, 48, 48, 48, 48, 48, 48, 48,
/* 10 */ 48, 48, 48, 48, 420, 124, 178, 178, 346, 420,
/* 20 */ 178, 178, 292, 178, 178, 178, 178, 178, 178, 178,
/* 30 */ 178, 178, 178, 178, 178, 178, 104, 208, 262, 450,
/* 40 */ 506, 521, 506, 180, 365, 316, 165, 52, 399, 289,
/* 50 */ 340, 430, 451, 451, 430, 185, 269, 427, 181, 129,
/* 60 */ 102, 203, 445, 477, 205, 378, 243, 243, 106, 361,
/* 70 */ 243, 243, 243, 243, 378, 545, 243, 628, 370, 370,
/* 80 */ 628, 628, 370, -2, -16, -31, 13, 13, 13, 13,
/* 90 */ 13, 13, 13, 13, 13, 72, 119, 490, 213, 263,
/* 100 */ 287, 333, 265, 265, 64, 42, 85, 368, 243, 243,
/* 110 */ 85, 85, 341, 85, 264, 100, 179, 352, 288, 200,
/* 120 */ 85, 156, 419, 419, 628, 639, 419, 419, 628, 370,
/* 130 */ 628, 628, 644, 370, 612, 370, 370, 370, 626, 370,
/* 140 */ 370, 370, 370, 412, 370, 419, 419, 419, 419, -32,
/* 150 */ -32, -32, -32, -32, -32, 110, 15, 39, 144, 183,
/* 160 */ -5, 144, 125, 218, 79, 144, 144, 302, 566, 561,
/* 170 */ 623, 589, 605, 584, 592, 569, 517, 453, 446, 483,
/* 180 */ 548, 547, 549, 544, 559, 543, 578, 542, 552, 489,
/* 190 */ 464, 479, 572, 585, 635, 580, 563, 617, 494, 631,
/* 200 */ 658, 588, 245, 235, 362, 398, 343, 225, 338,
);
const YY_REDUCE_USE_DFLT = -58;
2009-11-02 20:21:28 +00:00
const YY_REDUCE_MAX = 154;
static public $yy_reduce_ofst = array(
2009-11-02 20:21:28 +00:00
/* 0 */ 215, 49, 441, 604, 582, 562, 624, 638, 684, 546,
/* 10 */ 704, 291, 393, 662, 511, 844, 742, 798, 822, 858,
/* 20 */ 784, 718, 766, 1039, 941, 983, 900, 903, 927, 876,
/* 30 */ 1053, 955, 1025, 1011, 997, 969, 495, 455, 522, 158,
/* 40 */ 242, 237, 339, 10, 319, 192, -14, 98, 192, 201,
/* 50 */ 278, 246, 96, 434, 283, 240, 240, 240, 389, 347,
/* 60 */ -45, 371, -45, 380, 475, 473, 463, 357, 313, 456,
/* 70 */ 465, -45, 394, 471, 442, 523, 473, 468, 503, 515,
/* 80 */ 478, 456, 504, 524, 524, 524, 524, 524, 524, 524,
/* 90 */ 524, 524, 524, 524, 524, 598, 565, 570, 570, 554,
/* 100 */ 558, 554, 570, 570, 350, 350, 557, 350, 558, 558,
/* 110 */ 557, 557, 350, 557, 350, 350, 575, 350, 350, 567,
/* 120 */ 557, 350, 350, 350, 577, 602, 350, 350, 577, 364,
/* 130 */ 577, 577, 579, 364, 586, 364, 364, 364, 616, 364,
/* 140 */ 364, 364, 364, 328, 364, 350, 350, 350, 350, 293,
/* 150 */ 57, 37, 113, 59, -57,
);
static public $yyExpectedTokens = array(
/* 0 */ array(1, 2, 3, 4, 5, 8, 10, 12, 13, 14, 15, ),
/* 1 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 2 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 3 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 4 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 5 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 6 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 7 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 8 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 9 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 10 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 11 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 12 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 13 */ array(9, 15, 19, 20, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 14 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 15 */ array(1, 9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 16 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 17 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 18 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 19 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 20 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 21 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 22 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 23 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 24 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 25 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 26 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 27 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 28 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 29 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 30 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 31 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 32 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 33 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 34 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 35 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 36 */ array(9, 15, 19, 20, 44, 46, 47, 51, 53, 55, 60, 61, 67, ),
/* 37 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 38 */ array(9, 15, 19, 20, 44, 46, 51, 53, 55, 60, 61, 67, ),
/* 39 */ array(9, 15, 19, 20, 44, 46, 51, 55, 60, 61, 67, ),
/* 40 */ array(9, 15, 19, 20, 44, 51, 55, 60, 61, 67, ),
/* 41 */ array(9, 15, 19, 20, 44, 51, 55, 60, 61, 67, ),
/* 42 */ array(9, 15, 19, 20, 44, 51, 55, 60, 61, 67, ),
/* 43 */ array(15, 55, 60, 67, ),
/* 44 */ array(15, 51, 55, 60, 67, ),
/* 45 */ array(44, 48, 57, 63, 68, ),
/* 46 */ array(1, 55, 60, 67, ),
2009-11-02 20:21:28 +00:00
/* 47 */ array(46, 48, 64, ),
/* 48 */ array(48, 63, 68, ),
/* 49 */ array(55, 60, 67, ),
/* 50 */ array(48, 63, 68, ),
2009-11-02 20:21:28 +00:00
/* 51 */ array(63, 68, ),
/* 52 */ array(56, 68, ),
/* 53 */ array(56, 68, ),
/* 54 */ array(63, 68, ),
/* 55 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ),
/* 56 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ),
/* 57 */ array(17, 21, 22, 23, 24, 25, 26, 27, 28, 29, 63, ),
/* 58 */ array(1, 15, 55, 61, 62, ),
2009-11-02 20:21:28 +00:00
/* 59 */ array(44, 57, 63, 65, ),
/* 60 */ array(15, 50, 59, 67, ),
/* 61 */ array(15, 50, 52, 67, ),
/* 62 */ array(15, 59, 67, ),
/* 63 */ array(1, 9, 15, ),
2009-11-02 20:21:28 +00:00
/* 64 */ array(16, 52, 68, ),
/* 65 */ array(15, 67, ),
/* 66 */ array(15, 67, ),
2009-11-02 20:21:28 +00:00
/* 67 */ array(15, 67, ),
/* 68 */ array(1, 15, ),
/* 69 */ array(48, 50, ),
/* 70 */ array(15, 67, ),
2009-11-02 20:21:28 +00:00
/* 71 */ array(15, 67, ),
/* 72 */ array(15, 67, ),
2009-11-02 20:21:28 +00:00
/* 73 */ array(15, 67, ),
/* 74 */ array(15, 67, ),
2009-11-02 20:21:28 +00:00
/* 75 */ array(55, 67, ),
/* 76 */ array(15, 67, ),
/* 77 */ array(48, ),
/* 78 */ array(68, ),
/* 79 */ array(68, ),
/* 80 */ array(48, ),
/* 81 */ array(48, ),
2009-11-02 20:21:28 +00:00
/* 82 */ array(68, ),
/* 83 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ),
/* 84 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 58, ),
/* 85 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ),
/* 86 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 87 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 88 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 89 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 90 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 91 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 92 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 93 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
2009-11-02 20:21:28 +00:00
/* 94 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
/* 95 */ array(1, 2, 3, 4, 5, 8, 10, 12, 13, 14, 15, ),
/* 96 */ array(1, 15, 55, 61, 62, ),
/* 97 */ array(16, 53, 54, 66, ),
2009-11-02 20:21:28 +00:00
/* 98 */ array(47, 53, 54, 66, ),
/* 99 */ array(1, 11, 15, ),
/* 100 */ array(15, 50, 67, ),
2009-11-02 20:21:28 +00:00
/* 101 */ array(1, 9, 15, ),
/* 102 */ array(53, 54, 66, ),
2009-11-02 20:21:28 +00:00
/* 103 */ array(53, 54, 66, ),
/* 104 */ array(63, 65, ),
/* 105 */ array(49, 63, ),
/* 106 */ array(46, 64, ),
/* 107 */ array(56, 63, ),
/* 108 */ array(15, 67, ),
/* 109 */ array(15, 67, ),
/* 110 */ array(46, 64, ),
/* 111 */ array(46, 64, ),
/* 112 */ array(16, 63, ),
/* 113 */ array(46, 64, ),
/* 114 */ array(45, 63, ),
/* 115 */ array(56, 63, ),
2009-11-02 20:21:28 +00:00
/* 116 */ array(55, 67, ),
/* 117 */ array(16, 63, ),
2009-11-02 20:21:28 +00:00
/* 118 */ array(16, 63, ),
/* 119 */ array(15, 44, ),
/* 120 */ array(46, 64, ),
2009-11-02 20:21:28 +00:00
/* 121 */ array(16, 63, ),
/* 122 */ array(63, ),
2009-11-02 20:21:28 +00:00
/* 123 */ array(63, ),
/* 124 */ array(48, ),
/* 125 */ array(55, ),
/* 126 */ array(63, ),
2009-11-02 20:21:28 +00:00
/* 127 */ array(63, ),
/* 128 */ array(48, ),
/* 129 */ array(68, ),
/* 130 */ array(48, ),
2009-11-02 20:21:28 +00:00
/* 131 */ array(48, ),
/* 132 */ array(44, ),
/* 133 */ array(68, ),
2009-11-02 20:21:28 +00:00
/* 134 */ array(65, ),
/* 135 */ array(68, ),
/* 136 */ array(68, ),
2009-11-02 20:21:28 +00:00
/* 137 */ array(68, ),
/* 138 */ array(67, ),
/* 139 */ array(68, ),
/* 140 */ array(68, ),
/* 141 */ array(68, ),
2009-11-02 20:21:28 +00:00
/* 142 */ array(68, ),
/* 143 */ array(56, ),
/* 144 */ array(68, ),
/* 145 */ array(63, ),
2009-11-02 20:21:28 +00:00
/* 146 */ array(63, ),
/* 147 */ array(63, ),
/* 148 */ array(63, ),
/* 149 */ array(),
/* 150 */ array(),
2009-10-19 14:36:57 +00:00
/* 151 */ array(),
/* 152 */ array(),
2009-11-02 20:21:28 +00:00
/* 153 */ array(),
/* 154 */ array(),
/* 155 */ array(16, 44, 50, 57, 68, ),
/* 156 */ array(44, 47, 57, 64, ),
/* 157 */ array(44, 49, 57, ),
/* 158 */ array(44, 57, ),
/* 159 */ array(16, 68, ),
/* 160 */ array(18, 69, ),
/* 161 */ array(44, 57, ),
/* 162 */ array(58, 65, ),
/* 163 */ array(47, 65, ),
/* 164 */ array(59, 67, ),
/* 165 */ array(44, 57, ),
2009-11-02 20:21:28 +00:00
/* 166 */ array(44, 57, ),
/* 167 */ array(1, 67, ),
/* 168 */ array(62, ),
/* 169 */ array(70, ),
2009-11-02 20:21:28 +00:00
/* 170 */ array(16, ),
/* 171 */ array(67, ),
2009-11-02 20:21:28 +00:00
/* 172 */ array(44, ),
/* 173 */ array(62, ),
/* 174 */ array(55, ),
/* 175 */ array(52, ),
/* 176 */ array(18, ),
/* 177 */ array(55, ),
/* 178 */ array(67, ),
2009-11-02 20:21:28 +00:00
/* 179 */ array(45, ),
/* 180 */ array(16, ),
/* 181 */ array(70, ),
/* 182 */ array(67, ),
2009-11-02 20:21:28 +00:00
/* 183 */ array(67, ),
/* 184 */ array(45, ),
/* 185 */ array(67, ),
/* 186 */ array(56, ),
/* 187 */ array(47, ),
/* 188 */ array(67, ),
/* 189 */ array(60, ),
/* 190 */ array(45, ),
/* 191 */ array(50, ),
2009-11-02 20:21:28 +00:00
/* 192 */ array(50, ),
/* 193 */ array(67, ),
2009-11-02 20:21:28 +00:00
/* 194 */ array(16, ),
/* 195 */ array(60, ),
/* 196 */ array(67, ),
/* 197 */ array(16, ),
/* 198 */ array(5, ),
/* 199 */ array(5, ),
/* 200 */ array(1, ),
/* 201 */ array(69, ),
/* 202 */ array(55, ),
/* 203 */ array(64, ),
/* 204 */ array(16, ),
2009-11-02 20:21:28 +00:00
/* 205 */ array(16, ),
/* 206 */ array(51, ),
/* 207 */ array(1, ),
/* 208 */ array(67, ),
/* 209 */ array(),
/* 210 */ array(),
/* 211 */ array(),
/* 212 */ array(),
/* 213 */ array(),
/* 214 */ array(),
/* 215 */ array(),
/* 216 */ array(),
/* 217 */ array(),
/* 218 */ array(),
/* 219 */ array(),
/* 220 */ array(),
/* 221 */ array(),
/* 222 */ array(),
/* 223 */ array(),
/* 224 */ array(),
/* 225 */ array(),
/* 226 */ array(),
/* 227 */ array(),
/* 228 */ array(),
/* 229 */ array(),
/* 230 */ array(),
/* 231 */ array(),
/* 232 */ array(),
/* 233 */ array(),
/* 234 */ array(),
/* 235 */ array(),
/* 236 */ array(),
/* 237 */ array(),
/* 238 */ array(),
/* 239 */ array(),
/* 240 */ array(),
/* 241 */ array(),
2009-04-08 14:47:28 +00:00
/* 242 */ array(),
/* 243 */ array(),
/* 244 */ array(),
/* 245 */ array(),
/* 246 */ array(),
/* 247 */ array(),
/* 248 */ array(),
/* 249 */ array(),
/* 250 */ array(),
/* 251 */ array(),
/* 252 */ array(),
/* 253 */ array(),
/* 254 */ array(),
/* 255 */ array(),
/* 256 */ array(),
/* 257 */ array(),
/* 258 */ array(),
/* 259 */ array(),
/* 260 */ array(),
/* 261 */ array(),
/* 262 */ array(),
/* 263 */ array(),
/* 264 */ array(),
/* 265 */ array(),
/* 266 */ array(),
/* 267 */ array(),
/* 268 */ array(),
/* 269 */ array(),
/* 270 */ array(),
2009-05-14 10:53:28 +00:00
/* 271 */ array(),
/* 272 */ array(),
/* 273 */ array(),
/* 274 */ array(),
/* 275 */ array(),
/* 276 */ array(),
/* 277 */ array(),
/* 278 */ array(),
/* 279 */ array(),
/* 280 */ array(),
/* 281 */ array(),
2009-09-27 17:58:33 +00:00
/* 282 */ array(),
2009-09-29 18:52:58 +00:00
/* 283 */ array(),
/* 284 */ array(),
/* 285 */ array(),
/* 286 */ array(),
/* 287 */ array(),
/* 288 */ array(),
/* 289 */ array(),
/* 290 */ array(),
/* 291 */ array(),
/* 292 */ array(),
/* 293 */ array(),
/* 294 */ array(),
/* 295 */ array(),
/* 296 */ array(),
/* 297 */ array(),
/* 298 */ array(),
/* 299 */ array(),
/* 300 */ array(),
/* 301 */ array(),
2009-10-19 14:36:57 +00:00
/* 302 */ array(),
/* 303 */ array(),
/* 304 */ array(),
/* 305 */ array(),
/* 306 */ array(),
/* 307 */ array(),
/* 308 */ array(),
/* 309 */ array(),
/* 310 */ array(),
2009-11-02 20:21:28 +00:00
/* 311 */ array(),
/* 312 */ array(),
/* 313 */ array(),
/* 314 */ array(),
/* 315 */ array(),
/* 316 */ array(),
);
static public $yy_default = array(
2009-11-02 20:21:28 +00:00
/* 0 */ 492, 492, 492, 492, 492, 492, 492, 492, 492, 492,
/* 10 */ 492, 492, 492, 492, 473, 492, 431, 431, 492, 492,
/* 20 */ 431, 431, 492, 492, 492, 492, 492, 492, 492, 492,
/* 30 */ 492, 492, 492, 492, 492, 492, 492, 492, 492, 492,
/* 40 */ 492, 492, 492, 492, 492, 338, 492, 396, 338, 492,
/* 50 */ 353, 353, 353, 353, 353, 441, 441, 441, 492, 361,
/* 60 */ 406, 492, 406, 492, 379, 492, 492, 492, 492, 399,
/* 70 */ 492, 406, 492, 492, 492, 492, 492, 391, 353, 353,
/* 80 */ 392, 399, 353, 492, 492, 492, 447, 451, 454, 455,
/* 90 */ 445, 341, 446, 439, 450, 317, 492, 492, 492, 492,
/* 100 */ 492, 492, 436, 367, 430, 476, 404, 492, 346, 347,
/* 110 */ 423, 425, 492, 424, 492, 492, 492, 492, 492, 406,
/* 120 */ 422, 492, 475, 344, 393, 492, 365, 474, 419, 337,
/* 130 */ 397, 394, 406, 335, 355, 333, 349, 348, 492, 334,
/* 140 */ 336, 332, 339, 369, 340, 442, 354, 375, 374, 406,
/* 150 */ 435, 435, 406, 406, 435, 366, 492, 366, 366, 370,
/* 160 */ 370, 437, 492, 492, 492, 492, 456, 492, 492, 386,
/* 170 */ 492, 492, 395, 492, 492, 379, 373, 492, 492, 492,
/* 180 */ 492, 492, 492, 492, 492, 492, 417, 492, 492, 492,
/* 190 */ 492, 492, 358, 492, 492, 492, 492, 492, 492, 492,
/* 200 */ 492, 370, 492, 381, 363, 492, 492, 492, 492, 481,
/* 210 */ 426, 326, 484, 407, 322, 352, 432, 331, 433, 318,
/* 220 */ 376, 330, 329, 327, 325, 428, 328, 403, 323, 362,
/* 230 */ 360, 377, 321, 490, 477, 491, 389, 320, 357, 388,
/* 240 */ 359, 408, 350, 489, 372, 409, 486, 480, 488, 319,
/* 250 */ 479, 387, 324, 390, 460, 459, 461, 462, 440, 463,
/* 260 */ 343, 380, 444, 364, 417, 416, 458, 345, 464, 469,
/* 270 */ 449, 384, 448, 457, 386, 385, 383, 452, 467, 468,
/* 280 */ 465, 466, 453, 382, 443, 421, 487, 438, 485, 483,
/* 290 */ 415, 482, 478, 410, 414, 378, 412, 411, 368, 413,
/* 300 */ 402, 418, 427, 429, 420, 470, 471, 472, 398, 400,
/* 310 */ 401, 373, 405, 434, 371, 370, 351,
);
/* 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.
*/
2009-11-02 20:21:28 +00:00
const YYNOCODE = 117;
const YYSTACKDEPTH = 100;
2009-11-02 20:21:28 +00:00
const YYNSTATE = 317;
const YYNRULE = 175;
const YYERRORSYMBOL = 71;
const YYERRSYMDT = 'yy0';
const YYFALLBACK = 1;
/** The next table maps tokens into fallback tokens. If a construct
* like the following:
*
* %fallback ID X Y Z.
*
* appears in the grammer, then ID becomes a fallback token for X, Y,
* and Z. Whenever one of the tokens X, Y, or Z is input to the parser
* but it does not parse, the type of the token is changed to ID and
* the parse is retried before an error is thrown.
*/
static public $yyFallback = array(
0, /* $ => nothing */
0, /* OTHER => nothing */
1, /* XML => OTHER */
1, /* PHP => OTHER */
1, /* SHORTTAGSTART => OTHER */
1, /* SHORTTAGEND => OTHER */
1, /* PHPSTART => OTHER */
1, /* PHPEND => OTHER */
1, /* COMMENT => OTHER */
1, /* SINGLEQUOTE => OTHER */
1, /* LITERALSTART => OTHER */
1, /* LITERALEND => OTHER */
1, /* LDELIMTAG => OTHER */
1, /* RDELIMTAG => OTHER */
1, /* LDELSLASH => OTHER */
1, /* LDEL => OTHER */
1, /* RDEL => OTHER */
1, /* ISIN => OTHER */
1, /* AS => OTHER */
1, /* BOOLEAN => OTHER */
1, /* NULL => OTHER */
1, /* IDENTITY => OTHER */
1, /* NONEIDENTITY => OTHER */
1, /* EQUALS => OTHER */
1, /* NOTEQUALS => OTHER */
1, /* GREATEREQUAL => OTHER */
1, /* LESSEQUAL => OTHER */
1, /* GREATERTHAN => OTHER */
1, /* LESSTHAN => OTHER */
1, /* MOD => OTHER */
1, /* NOT => OTHER */
1, /* LAND => OTHER */
1, /* LOR => OTHER */
1, /* LXOR => OTHER */
1, /* ISODDBY => OTHER */
1, /* ISNOTODDBY => OTHER */
1, /* ISODD => OTHER */
1, /* ISNOTODD => OTHER */
1, /* ISEVENBY => OTHER */
1, /* ISNOTEVENBY => OTHER */
1, /* ISEVEN => OTHER */
1, /* ISNOTEVEN => OTHER */
1, /* ISDIVBY => OTHER */
1, /* ISNOTDIVBY => OTHER */
1, /* OPENP => OTHER */
1, /* CLOSEP => OTHER */
1, /* OPENB => OTHER */
1, /* CLOSEB => OTHER */
1, /* PTR => OTHER */
1, /* APTR => OTHER */
1, /* EQUAL => OTHER */
1, /* INTEGER => OTHER */
1, /* INCDEC => OTHER */
1, /* UNIMATH => OTHER */
1, /* MATH => OTHER */
1, /* DOLLAR => OTHER */
1, /* COLON => OTHER */
1, /* DOUBLECOLON => OTHER */
1, /* SEMICOLON => OTHER */
1, /* AT => OTHER */
1, /* HATCH => OTHER */
1, /* QUOTE => OTHER */
1, /* BACKTICK => OTHER */
1, /* VERT => OTHER */
1, /* DOT => OTHER */
1, /* COMMA => OTHER */
1, /* ANDSYM => OTHER */
1, /* ID => OTHER */
1, /* SPACE => OTHER */
1, /* INSTANCEOF => OTHER */
1, /* QMARK => OTHER */
);
/**
* Turn parser tracing on by giving a stream to which to write the trace
* and a prompt to preface each trace message. Tracing is turned off
* by making either argument NULL
*
* Inputs:
*
* - A stream resource to which trace output should be written.
* If NULL, then tracing is turned off.
* - A prefix string written at the beginning of every
* line of trace output. If NULL, then tracing is
* turned off.
*
* Outputs:
*
* - None.
* @param resource
* @param string
*/
static function Trace($TraceFILE, $zTracePrompt)
{
if (!$TraceFILE) {
$zTracePrompt = 0;
} elseif (!$zTracePrompt) {
$TraceFILE = 0;
}
self::$yyTraceFILE = $TraceFILE;
self::$yyTracePrompt = $zTracePrompt;
}
/**
* Output debug information to output (php://output stream)
*/
static function PrintTrace()
{
self::$yyTraceFILE = fopen('php://output', 'w');
self::$yyTracePrompt = '<br>';
}
/**
* @var resource|0
*/
static public $yyTraceFILE;
/**
* String to prepend to debug output
* @var string|0
*/
static public $yyTracePrompt;
/**
* @var int
*/
public $yyidx; /* Index of top element in stack */
/**
* @var int
*/
public $yyerrcnt; /* Shifts left before out of the error */
/**
* @var array
*/
public $yystack = array(); /* The parser's stack */
/**
* For tracing shifts, the names of all terminals and nonterminals
* are required. The following table supplies these names
* @var array
*/
public $yyTokenName = array(
'$', 'OTHER', 'XML', 'PHP',
'SHORTTAGSTART', 'SHORTTAGEND', 'PHPSTART', 'PHPEND',
'COMMENT', 'SINGLEQUOTE', 'LITERALSTART', 'LITERALEND',
'LDELIMTAG', 'RDELIMTAG', 'LDELSLASH', 'LDEL',
'RDEL', 'ISIN', 'AS', 'BOOLEAN',
'NULL', 'IDENTITY', 'NONEIDENTITY', 'EQUALS',
'NOTEQUALS', 'GREATEREQUAL', 'LESSEQUAL', 'GREATERTHAN',
'LESSTHAN', 'MOD', 'NOT', 'LAND',
'LOR', 'LXOR', 'ISODDBY', 'ISNOTODDBY',
'ISODD', 'ISNOTODD', 'ISEVENBY', 'ISNOTEVENBY',
'ISEVEN', 'ISNOTEVEN', 'ISDIVBY', 'ISNOTDIVBY',
'OPENP', 'CLOSEP', 'OPENB', 'CLOSEB',
'PTR', 'APTR', 'EQUAL', 'INTEGER',
'INCDEC', 'UNIMATH', 'MATH', 'DOLLAR',
'COLON', 'DOUBLECOLON', 'SEMICOLON', 'AT',
'HATCH', 'QUOTE', 'BACKTICK', 'VERT',
'DOT', 'COMMA', 'ANDSYM', 'ID',
'SPACE', 'INSTANCEOF', 'QMARK', 'error',
'start', 'template', 'template_element', 'smartytag',
'smartyclosetag', 'outputtag', 'text', 'variable',
'attributes', 'expr', 'ternary', 'varindexed',
'modifier', 'modparameters', 'ifexprs', 'statement',
'statements', 'varvar', 'foraction', 'value',
2009-11-02 20:21:28 +00:00
'array', 'attribute', 'unqattr', 'unqattritem',
'exprs', 'math', 'function', 'doublequoted',
'method', 'params', 'objectchain', 'arrayindex',
'object', 'indexdef', 'varvarele', 'objectelement',
'modparameter', 'ifexpr', 'ifcond', 'lop',
'arrayelements', 'arrayelement', 'doublequotedcontent', 'textelement',
);
/**
* For tracing reduce actions, the names of all rules are required.
* @var array
*/
static public $yyRuleName = array(
/* 0 */ "start ::= template",
/* 1 */ "template ::= template_element",
/* 2 */ "template ::= template template_element",
/* 3 */ "template_element ::= LDEL smartytag RDEL",
/* 4 */ "template_element ::= LDELSLASH smartyclosetag RDEL",
/* 5 */ "template_element ::= LDEL outputtag RDEL",
/* 6 */ "template_element ::= COMMENT",
/* 7 */ "template_element ::= LITERALSTART text LITERALEND",
/* 8 */ "template_element ::= LDELIMTAG",
/* 9 */ "template_element ::= RDELIMTAG",
/* 10 */ "template_element ::= PHP OTHER SHORTTAGEND",
/* 11 */ "template_element ::= SHORTTAGSTART OTHER SHORTTAGEND",
/* 12 */ "template_element ::= XML",
/* 13 */ "template_element ::= SHORTTAGEND",
/* 14 */ "template_element ::= OTHER",
/* 15 */ "outputtag ::= variable attributes",
/* 16 */ "outputtag ::= expr attributes",
/* 17 */ "outputtag ::= ternary attributes",
/* 18 */ "smartytag ::= varindexed EQUAL expr attributes",
/* 19 */ "smartytag ::= varindexed EQUAL ternary attributes",
/* 20 */ "smartytag ::= ID attributes",
/* 21 */ "smartytag ::= ID",
/* 22 */ "smartytag ::= ID PTR ID attributes",
/* 23 */ "smartytag ::= ID modifier modparameters attributes",
/* 24 */ "smartytag ::= ID SPACE ifexprs",
/* 25 */ "smartytag ::= ID SPACE statement",
/* 26 */ "smartytag ::= ID SPACE statements SEMICOLON ifexprs SEMICOLON DOLLAR varvar foraction",
/* 27 */ "foraction ::= EQUAL expr",
/* 28 */ "foraction ::= INCDEC",
/* 29 */ "smartytag ::= ID SPACE value AS DOLLAR varvar",
/* 30 */ "smartytag ::= ID SPACE array AS DOLLAR varvar",
/* 31 */ "smartyclosetag ::= ID attributes",
/* 32 */ "smartyclosetag ::= ID modifier modparameters attributes",
/* 33 */ "smartyclosetag ::= ID PTR ID",
/* 34 */ "attributes ::= attributes attribute",
/* 35 */ "attributes ::= attribute",
/* 36 */ "attributes ::=",
/* 37 */ "attribute ::= SPACE ID EQUAL expr",
2009-11-02 20:21:28 +00:00
/* 38 */ "attribute ::= SPACE ID EQUAL ID unqattr",
/* 39 */ "attribute ::= SPACE ID EQUAL value",
/* 40 */ "attribute ::= SPACE ID EQUAL ternary",
/* 41 */ "attribute ::= SPACE ID",
/* 42 */ "unqattr ::= unqattr unqattritem",
/* 43 */ "unqattr ::= unqattritem",
/* 44 */ "unqattr ::=",
/* 45 */ "unqattritem ::= COMMA ID",
/* 46 */ "statements ::= statement",
/* 47 */ "statements ::= statements COMMA statement",
/* 48 */ "statement ::= DOLLAR varvar EQUAL expr",
/* 49 */ "expr ::= ID",
/* 50 */ "expr ::= exprs",
/* 51 */ "expr ::= DOLLAR ID COLON ID",
/* 52 */ "expr ::= expr modifier modparameters",
/* 53 */ "exprs ::= value",
/* 54 */ "exprs ::= UNIMATH value",
/* 55 */ "exprs ::= exprs math value",
/* 56 */ "exprs ::= array",
/* 57 */ "ternary ::= OPENP ifexprs CLOSEP QMARK expr COLON expr",
/* 58 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr",
/* 59 */ "math ::= UNIMATH",
/* 60 */ "math ::= MATH",
/* 61 */ "math ::= ANDSYM",
/* 62 */ "value ::= variable",
/* 63 */ "value ::= variable INCDEC",
/* 64 */ "value ::= INTEGER",
/* 65 */ "value ::= INTEGER DOT INTEGER",
/* 66 */ "value ::= BOOLEAN",
/* 67 */ "value ::= NULL",
/* 68 */ "value ::= function",
/* 69 */ "value ::= OPENP expr CLOSEP",
/* 70 */ "value ::= SINGLEQUOTE text SINGLEQUOTE",
/* 71 */ "value ::= SINGLEQUOTE SINGLEQUOTE",
/* 72 */ "value ::= QUOTE doublequoted QUOTE",
/* 73 */ "value ::= QUOTE QUOTE",
/* 74 */ "value ::= ID DOUBLECOLON method",
/* 75 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP",
/* 76 */ "value ::= ID DOUBLECOLON method objectchain",
/* 77 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain",
/* 78 */ "value ::= ID DOUBLECOLON ID",
/* 79 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex",
/* 80 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain",
/* 81 */ "value ::= LDEL smartytag RDEL",
/* 82 */ "variable ::= varindexed",
/* 83 */ "variable ::= DOLLAR varvar AT ID",
/* 84 */ "variable ::= object",
/* 85 */ "variable ::= HATCH ID HATCH",
/* 86 */ "variable ::= HATCH variable HATCH",
/* 87 */ "varindexed ::= DOLLAR varvar arrayindex",
/* 88 */ "arrayindex ::= arrayindex indexdef",
/* 89 */ "arrayindex ::=",
/* 90 */ "indexdef ::= DOT ID",
/* 91 */ "indexdef ::= DOT INTEGER",
/* 92 */ "indexdef ::= DOT variable",
/* 93 */ "indexdef ::= DOT LDEL exprs RDEL",
/* 94 */ "indexdef ::= OPENB ID CLOSEB",
/* 95 */ "indexdef ::= OPENB ID DOT ID CLOSEB",
/* 96 */ "indexdef ::= OPENB exprs CLOSEB",
/* 97 */ "indexdef ::= OPENB CLOSEB",
/* 98 */ "varvar ::= varvarele",
/* 99 */ "varvar ::= varvar varvarele",
/* 100 */ "varvarele ::= ID",
/* 101 */ "varvarele ::= LDEL expr RDEL",
/* 102 */ "object ::= varindexed objectchain",
/* 103 */ "objectchain ::= objectelement",
/* 104 */ "objectchain ::= objectchain objectelement",
/* 105 */ "objectelement ::= PTR ID arrayindex",
/* 106 */ "objectelement ::= PTR variable arrayindex",
/* 107 */ "objectelement ::= PTR LDEL expr RDEL arrayindex",
/* 108 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex",
/* 109 */ "objectelement ::= PTR method",
/* 110 */ "function ::= ID OPENP params CLOSEP",
/* 111 */ "method ::= ID OPENP params CLOSEP",
/* 112 */ "params ::= expr COMMA params",
/* 113 */ "params ::= expr",
/* 114 */ "params ::=",
/* 115 */ "modifier ::= VERT AT ID",
/* 116 */ "modifier ::= VERT ID",
/* 117 */ "modparameters ::= modparameters modparameter",
/* 118 */ "modparameters ::=",
/* 119 */ "modparameter ::= COLON exprs",
/* 120 */ "modparameter ::= COLON ID",
/* 121 */ "ifexprs ::= ifexpr",
/* 122 */ "ifexprs ::= NOT ifexprs",
/* 123 */ "ifexprs ::= OPENP ifexprs CLOSEP",
/* 124 */ "ifexpr ::= expr",
/* 125 */ "ifexpr ::= expr ifcond expr",
/* 126 */ "ifexpr ::= expr ISIN array",
/* 127 */ "ifexpr ::= expr ISIN value",
/* 128 */ "ifexpr ::= ifexprs lop ifexprs",
/* 129 */ "ifexpr ::= ifexprs ISDIVBY ifexprs",
/* 130 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs",
/* 131 */ "ifexpr ::= ifexprs ISEVEN",
/* 132 */ "ifexpr ::= ifexprs ISNOTEVEN",
/* 133 */ "ifexpr ::= ifexprs ISEVENBY ifexprs",
/* 134 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs",
/* 135 */ "ifexpr ::= ifexprs ISODD",
/* 136 */ "ifexpr ::= ifexprs ISNOTODD",
/* 137 */ "ifexpr ::= ifexprs ISODDBY ifexprs",
/* 138 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs",
/* 139 */ "ifexpr ::= value INSTANCEOF ID",
/* 140 */ "ifexpr ::= value INSTANCEOF value",
/* 141 */ "ifcond ::= EQUALS",
/* 142 */ "ifcond ::= NOTEQUALS",
/* 143 */ "ifcond ::= GREATERTHAN",
/* 144 */ "ifcond ::= LESSTHAN",
/* 145 */ "ifcond ::= GREATEREQUAL",
/* 146 */ "ifcond ::= LESSEQUAL",
/* 147 */ "ifcond ::= IDENTITY",
/* 148 */ "ifcond ::= NONEIDENTITY",
/* 149 */ "ifcond ::= MOD",
/* 150 */ "lop ::= LAND",
/* 151 */ "lop ::= LOR",
/* 152 */ "lop ::= LXOR",
/* 153 */ "array ::= OPENB arrayelements CLOSEB",
/* 154 */ "arrayelements ::= arrayelement",
/* 155 */ "arrayelements ::= arrayelements COMMA arrayelement",
/* 156 */ "arrayelements ::=",
/* 157 */ "arrayelement ::= expr APTR expr",
/* 158 */ "arrayelement ::= ID APTR expr",
/* 159 */ "arrayelement ::= expr",
/* 160 */ "doublequoted ::= doublequoted doublequotedcontent",
/* 161 */ "doublequoted ::= doublequotedcontent",
/* 162 */ "doublequotedcontent ::= BACKTICK ID BACKTICK",
/* 163 */ "doublequotedcontent ::= BACKTICK variable BACKTICK",
/* 164 */ "doublequotedcontent ::= DOLLAR ID",
/* 165 */ "doublequotedcontent ::= LDEL expr RDEL",
/* 166 */ "doublequotedcontent ::= LDEL smartytag RDEL",
/* 167 */ "doublequotedcontent ::= DOLLAR OTHER",
/* 168 */ "doublequotedcontent ::= LDEL OTHER",
/* 169 */ "doublequotedcontent ::= BACKTICK OTHER",
/* 170 */ "doublequotedcontent ::= OTHER",
/* 171 */ "text ::= text textelement",
/* 172 */ "text ::= textelement",
/* 173 */ "textelement ::= OTHER",
/* 174 */ "textelement ::= LDEL",
);
/**
* This function returns the symbolic name associated with a token
* value.
* @param int
* @return string
*/
function tokenName($tokenType)
{
if ($tokenType === 0) {
return 'End of Input';
}
if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) {
return $this->yyTokenName[$tokenType];
} else {
return "Unknown";
}
}
/**
* The following function deletes the value associated with a
* symbol. The symbol can be either a terminal or nonterminal.
* @param int the symbol code
* @param mixed the symbol's value
*/
static function yy_destructor($yymajor, $yypminor)
{
switch ($yymajor) {
/* Here is inserted the actions which take place when a
** terminal or non-terminal is destroyed. This can happen
** when the symbol is popped from the stack during a
** reduce or during error processing or when a parser is
** being destroyed before it is finished parsing.
**
** Note: during a reduce, the only symbols destroyed are those
** which appear on the RHS of the rule, but which are not used
** inside the C code.
*/
default: break; /* If no destructor action specified: do nothing */
}
}
/**
* Pop the parser's stack once.
*
* If there is a destructor routine associated with the token which
* is popped from the stack, then call it.
*
* Return the major token number for the symbol popped.
* @param TP_yyParser
* @return int
*/
function yy_pop_parser_stack()
{
if (!count($this->yystack)) {
return;
}
$yytos = array_pop($this->yystack);
if (self::$yyTraceFILE && $this->yyidx >= 0) {
fwrite(self::$yyTraceFILE,
self::$yyTracePrompt . 'Popping ' . $this->yyTokenName[$yytos->major] .
"\n");
}
$yymajor = $yytos->major;
self::yy_destructor($yymajor, $yytos->minor);
$this->yyidx--;
return $yymajor;
}
/**
* Deallocate and destroy a parser. Destructors are all called for
* all stack elements before shutting the parser down.
*/
function __destruct()
{
while ($this->yyidx >= 0) {
$this->yy_pop_parser_stack();
}
if (is_resource(self::$yyTraceFILE)) {
fclose(self::$yyTraceFILE);
}
}
/**
* Based on the current state and parser stack, get a list of all
* possible lookahead tokens
* @param int
* @return array
*/
function yy_get_expected_tokens($token)
{
$state = $this->yystack[$this->yyidx]->stateno;
$expected = self::$yyExpectedTokens[$state];
if (in_array($token, self::$yyExpectedTokens[$state], true)) {
return $expected;
}
$stack = $this->yystack;
$yyidx = $this->yyidx;
do {
$yyact = $this->yy_find_shift_action($token);
if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
// reduce action
$done = 0;
do {
if ($done++ == 100) {
$this->yyidx = $yyidx;
$this->yystack = $stack;
// too much recursion prevents proper detection
// so give up
return array_unique($expected);
}
$yyruleno = $yyact - self::YYNSTATE;
$this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs'];
$nextstate = $this->yy_find_reduce_action(
$this->yystack[$this->yyidx]->stateno,
self::$yyRuleInfo[$yyruleno]['lhs']);
if (isset(self::$yyExpectedTokens[$nextstate])) {
$expected += self::$yyExpectedTokens[$nextstate];
if (in_array($token,
self::$yyExpectedTokens[$nextstate], true)) {
$this->yyidx = $yyidx;
$this->yystack = $stack;
return array_unique($expected);
}
}
if ($nextstate < self::YYNSTATE) {
// we need to shift a non-terminal
$this->yyidx++;
$x = new TP_yyStackEntry;
$x->stateno = $nextstate;
$x->major = self::$yyRuleInfo[$yyruleno]['lhs'];
$this->yystack[$this->yyidx] = $x;
continue 2;
} elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) {
$this->yyidx = $yyidx;
$this->yystack = $stack;
// the last token was just ignored, we can't accept
// by ignoring input, this is in essence ignoring a
// syntax error!
return array_unique($expected);
} elseif ($nextstate === self::YY_NO_ACTION) {
$this->yyidx = $yyidx;
$this->yystack = $stack;
// input accepted, but not shifted (I guess)
return $expected;
} else {
$yyact = $nextstate;
}
} while (true);
}
break;
} while (true);
return array_unique($expected);
}
/**
* Based on the parser state and current parser stack, determine whether
* the lookahead token is possible.
*
* The parser will convert the token value to an error token if not. This
* catches some unusual edge cases where the parser would fail.
* @param int
* @return bool
*/
function yy_is_expected_token($token)
{
if ($token === 0) {
return true; // 0 is not part of this
}
$state = $this->yystack[$this->yyidx]->stateno;
if (in_array($token, self::$yyExpectedTokens[$state], true)) {
return true;
}
$stack = $this->yystack;
$yyidx = $this->yyidx;
do {
$yyact = $this->yy_find_shift_action($token);
if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
// reduce action
$done = 0;
do {
if ($done++ == 100) {
$this->yyidx = $yyidx;
$this->yystack = $stack;
// too much recursion prevents proper detection
// so give up
return true;
}
$yyruleno = $yyact - self::YYNSTATE;
$this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs'];
$nextstate = $this->yy_find_reduce_action(
$this->yystack[$this->yyidx]->stateno,
self::$yyRuleInfo[$yyruleno]['lhs']);
if (isset(self::$yyExpectedTokens[$nextstate]) &&
in_array($token, self::$yyExpectedTokens[$nextstate], true)) {
$this->yyidx = $yyidx;
$this->yystack = $stack;
return true;
}
if ($nextstate < self::YYNSTATE) {
// we need to shift a non-terminal
$this->yyidx++;
$x = new TP_yyStackEntry;
$x->stateno = $nextstate;
$x->major = self::$yyRuleInfo[$yyruleno]['lhs'];
$this->yystack[$this->yyidx] = $x;
continue 2;
} elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) {
$this->yyidx = $yyidx;
$this->yystack = $stack;
if (!$token) {
// end of input: this is valid
return true;
}
// the last token was just ignored, we can't accept
// by ignoring input, this is in essence ignoring a
// syntax error!
return false;
} elseif ($nextstate === self::YY_NO_ACTION) {
$this->yyidx = $yyidx;
$this->yystack = $stack;
// input accepted, but not shifted (I guess)
return true;
} else {
$yyact = $nextstate;
}
} while (true);
}
break;
} while (true);
$this->yyidx = $yyidx;
$this->yystack = $stack;
return true;
}
/**
* Find the appropriate action for a parser given the terminal
* look-ahead token iLookAhead.
*
* If the look-ahead token is YYNOCODE, then check to see if the action is
* independent of the look-ahead. If it is, return the action, otherwise
* return YY_NO_ACTION.
* @param int The look-ahead token
*/
function yy_find_shift_action($iLookAhead)
{
$stateno = $this->yystack[$this->yyidx]->stateno;
/* if ($this->yyidx < 0) return self::YY_NO_ACTION; */
if (!isset(self::$yy_shift_ofst[$stateno])) {
// no shift actions
return self::$yy_default[$stateno];
}
$i = self::$yy_shift_ofst[$stateno];
if ($i === self::YY_SHIFT_USE_DFLT) {
return self::$yy_default[$stateno];
}
if ($iLookAhead == self::YYNOCODE) {
return self::YY_NO_ACTION;
}
$i += $iLookAhead;
if ($i < 0 || $i >= self::YY_SZ_ACTTAB ||
self::$yy_lookahead[$i] != $iLookAhead) {
if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback)
&& ($iFallback = self::$yyFallback[$iLookAhead]) != 0) {
if (self::$yyTraceFILE) {
fwrite(self::$yyTraceFILE, self::$yyTracePrompt . "FALLBACK " .
$this->yyTokenName[$iLookAhead] . " => " .
$this->yyTokenName[$iFallback] . "\n");
}
return $this->yy_find_shift_action($iFallback);
}
return self::$yy_default[$stateno];
} else {
return self::$yy_action[$i];
}
}
/**
* Find the appropriate action for a parser given the non-terminal
* look-ahead token $iLookAhead.
*
* If the look-ahead token is self::YYNOCODE, then check to see if the action is
* independent of the look-ahead. If it is, return the action, otherwise
* return self::YY_NO_ACTION.
* @param int Current state number
* @param int The look-ahead token
*/
function yy_find_reduce_action($stateno, $iLookAhead)
{
/* $stateno = $this->yystack[$this->yyidx]->stateno; */
if (!isset(self::$yy_reduce_ofst[$stateno])) {
return self::$yy_default[$stateno];
}
$i = self::$yy_reduce_ofst[$stateno];
if ($i == self::YY_REDUCE_USE_DFLT) {
return self::$yy_default[$stateno];
}
if ($iLookAhead == self::YYNOCODE) {
return self::YY_NO_ACTION;
}
$i += $iLookAhead;
if ($i < 0 || $i >= self::YY_SZ_ACTTAB ||
self::$yy_lookahead[$i] != $iLookAhead) {
return self::$yy_default[$stateno];
} else {
return self::$yy_action[$i];
}
}
/**
* Perform a shift action.
* @param int The new state to shift in
* @param int The major token to shift in
* @param mixed the minor token to shift in
*/
function yy_shift($yyNewState, $yyMajor, $yypMinor)
{
$this->yyidx++;
if ($this->yyidx >= self::YYSTACKDEPTH) {
$this->yyidx--;
if (self::$yyTraceFILE) {
fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt);
}
while ($this->yyidx >= 0) {
$this->yy_pop_parser_stack();
}
/* Here code is inserted which will execute if the parser
** stack ever overflows */
return;
}
$yytos = new TP_yyStackEntry;
$yytos->stateno = $yyNewState;
$yytos->major = $yyMajor;
$yytos->minor = $yypMinor;
array_push($this->yystack, $yytos);
if (self::$yyTraceFILE && $this->yyidx > 0) {
fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt,
$yyNewState);
fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt);
for($i = 1; $i <= $this->yyidx; $i++) {
fprintf(self::$yyTraceFILE, " %s",
$this->yyTokenName[$this->yystack[$i]->major]);
}
fwrite(self::$yyTraceFILE,"\n");
}
}
/**
* The following table contains information about every rule that
* is used during the reduce.
*
* <pre>
* array(
* array(
* int $lhs; Symbol on the left-hand side of the rule
* int $nrhs; Number of right-hand side symbols in the rule
* ),...
* );
* </pre>
*/
static public $yyRuleInfo = array(
array( 'lhs' => 72, 'rhs' => 1 ),
array( 'lhs' => 73, 'rhs' => 1 ),
array( 'lhs' => 73, 'rhs' => 2 ),
array( 'lhs' => 74, 'rhs' => 3 ),
array( 'lhs' => 74, 'rhs' => 3 ),
array( 'lhs' => 74, 'rhs' => 3 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 3 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 3 ),
array( 'lhs' => 74, 'rhs' => 3 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 77, 'rhs' => 2 ),
array( 'lhs' => 77, 'rhs' => 2 ),
array( 'lhs' => 77, 'rhs' => 2 ),
array( 'lhs' => 75, 'rhs' => 4 ),
array( 'lhs' => 75, 'rhs' => 4 ),
array( 'lhs' => 75, 'rhs' => 2 ),
array( 'lhs' => 75, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 4 ),
array( 'lhs' => 75, 'rhs' => 4 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 9 ),
array( 'lhs' => 90, 'rhs' => 2 ),
array( 'lhs' => 90, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 6 ),
array( 'lhs' => 75, 'rhs' => 6 ),
array( 'lhs' => 76, 'rhs' => 2 ),
array( 'lhs' => 76, 'rhs' => 4 ),
array( 'lhs' => 76, 'rhs' => 3 ),
array( 'lhs' => 80, 'rhs' => 2 ),
array( 'lhs' => 80, 'rhs' => 1 ),
array( 'lhs' => 80, 'rhs' => 0 ),
array( 'lhs' => 93, 'rhs' => 4 ),
2009-11-02 20:21:28 +00:00
array( 'lhs' => 93, 'rhs' => 5 ),
array( 'lhs' => 93, 'rhs' => 4 ),
array( 'lhs' => 93, 'rhs' => 4 ),
array( 'lhs' => 93, 'rhs' => 2 ),
2009-11-02 20:21:28 +00:00
array( 'lhs' => 94, 'rhs' => 2 ),
array( 'lhs' => 94, 'rhs' => 1 ),
array( 'lhs' => 94, 'rhs' => 0 ),
array( 'lhs' => 95, 'rhs' => 2 ),
array( 'lhs' => 88, 'rhs' => 1 ),
array( 'lhs' => 88, 'rhs' => 3 ),
array( 'lhs' => 87, 'rhs' => 4 ),
array( 'lhs' => 81, 'rhs' => 1 ),
array( 'lhs' => 81, 'rhs' => 1 ),
array( 'lhs' => 81, 'rhs' => 4 ),
array( 'lhs' => 81, 'rhs' => 3 ),
2009-11-02 20:21:28 +00:00
array( 'lhs' => 96, 'rhs' => 1 ),
array( 'lhs' => 96, 'rhs' => 2 ),
array( 'lhs' => 96, 'rhs' => 3 ),
array( 'lhs' => 96, 'rhs' => 1 ),
array( 'lhs' => 82, 'rhs' => 7 ),
array( 'lhs' => 82, 'rhs' => 7 ),
2009-11-02 20:21:28 +00:00
array( 'lhs' => 97, 'rhs' => 1 ),
array( 'lhs' => 97, 'rhs' => 1 ),
array( 'lhs' => 97, 'rhs' => 1 ),
array( 'lhs' => 91, 'rhs' => 1 ),
array( 'lhs' => 91, 'rhs' => 2 ),
array( 'lhs' => 91, 'rhs' => 1 ),
array( 'lhs' => 91, 'rhs' => 3 ),
array( 'lhs' => 91, 'rhs' => 1 ),
array( 'lhs' => 91, 'rhs' => 1 ),
array( 'lhs' => 91, 'rhs' => 1 ),
array( 'lhs' => 91, 'rhs' => 3 ),
array( 'lhs' => 91, 'rhs' => 3 ),
array( 'lhs' => 91, 'rhs' => 2 ),
array( 'lhs' => 91, 'rhs' => 3 ),
array( 'lhs' => 91, 'rhs' => 2 ),
array( 'lhs' => 91, 'rhs' => 3 ),
array( 'lhs' => 91, 'rhs' => 7 ),
array( 'lhs' => 91, 'rhs' => 4 ),
array( 'lhs' => 91, 'rhs' => 8 ),
array( 'lhs' => 91, 'rhs' => 3 ),
array( 'lhs' => 91, 'rhs' => 5 ),
array( 'lhs' => 91, 'rhs' => 6 ),
array( 'lhs' => 91, 'rhs' => 3 ),
array( 'lhs' => 79, 'rhs' => 1 ),
array( 'lhs' => 79, 'rhs' => 4 ),
array( 'lhs' => 79, 'rhs' => 1 ),
array( 'lhs' => 79, 'rhs' => 3 ),
array( 'lhs' => 79, 'rhs' => 3 ),
array( 'lhs' => 83, 'rhs' => 3 ),
array( 'lhs' => 103, 'rhs' => 2 ),
2009-11-02 20:21:28 +00:00
array( 'lhs' => 103, 'rhs' => 0 ),
array( 'lhs' => 105, 'rhs' => 2 ),
array( 'lhs' => 105, 'rhs' => 2 ),
array( 'lhs' => 105, 'rhs' => 2 ),
array( 'lhs' => 105, 'rhs' => 4 ),
array( 'lhs' => 105, 'rhs' => 3 ),
array( 'lhs' => 105, 'rhs' => 5 ),
2009-11-02 20:21:28 +00:00
array( 'lhs' => 105, 'rhs' => 3 ),
array( 'lhs' => 105, 'rhs' => 2 ),
2009-11-02 20:21:28 +00:00
array( 'lhs' => 89, 'rhs' => 1 ),
array( 'lhs' => 89, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 1 ),
array( 'lhs' => 106, 'rhs' => 3 ),
array( 'lhs' => 104, 'rhs' => 2 ),
array( 'lhs' => 102, 'rhs' => 1 ),
array( 'lhs' => 102, 'rhs' => 2 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 5 ),
array( 'lhs' => 107, 'rhs' => 6 ),
array( 'lhs' => 107, 'rhs' => 2 ),
array( 'lhs' => 98, 'rhs' => 4 ),
2009-11-02 20:21:28 +00:00
array( 'lhs' => 100, 'rhs' => 4 ),
array( 'lhs' => 101, 'rhs' => 3 ),
array( 'lhs' => 101, 'rhs' => 1 ),
array( 'lhs' => 101, 'rhs' => 0 ),
array( 'lhs' => 84, 'rhs' => 3 ),
array( 'lhs' => 84, 'rhs' => 2 ),
array( 'lhs' => 85, 'rhs' => 2 ),
array( 'lhs' => 85, 'rhs' => 0 ),
2009-11-02 20:21:28 +00:00
array( 'lhs' => 108, 'rhs' => 2 ),
array( 'lhs' => 108, 'rhs' => 2 ),
array( 'lhs' => 86, 'rhs' => 1 ),
array( 'lhs' => 86, 'rhs' => 2 ),
array( 'lhs' => 86, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 1 ),
2009-11-02 20:21:28 +00:00
array( 'lhs' => 109, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 2 ),
array( 'lhs' => 109, 'rhs' => 2 ),
array( 'lhs' => 109, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 2 ),
array( 'lhs' => 109, 'rhs' => 2 ),
array( 'lhs' => 109, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 3 ),
array( 'lhs' => 109, 'rhs' => 3 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 111, 'rhs' => 1 ),
2009-11-02 20:21:28 +00:00
array( 'lhs' => 111, 'rhs' => 1 ),
array( 'lhs' => 111, 'rhs' => 1 ),
array( 'lhs' => 92, 'rhs' => 3 ),
2009-10-16 16:54:25 +00:00
array( 'lhs' => 112, 'rhs' => 1 ),
2009-11-02 20:21:28 +00:00
array( 'lhs' => 112, 'rhs' => 3 ),
array( 'lhs' => 112, 'rhs' => 0 ),
array( 'lhs' => 113, 'rhs' => 3 ),
array( 'lhs' => 113, 'rhs' => 3 ),
array( 'lhs' => 113, 'rhs' => 1 ),
array( 'lhs' => 99, 'rhs' => 2 ),
array( 'lhs' => 99, 'rhs' => 1 ),
array( 'lhs' => 114, 'rhs' => 3 ),
array( 'lhs' => 114, 'rhs' => 3 ),
array( 'lhs' => 114, 'rhs' => 2 ),
array( 'lhs' => 114, 'rhs' => 3 ),
array( 'lhs' => 114, 'rhs' => 3 ),
array( 'lhs' => 114, 'rhs' => 2 ),
array( 'lhs' => 114, 'rhs' => 2 ),
array( 'lhs' => 114, 'rhs' => 2 ),
array( 'lhs' => 114, 'rhs' => 1 ),
array( 'lhs' => 78, 'rhs' => 2 ),
array( 'lhs' => 78, 'rhs' => 1 ),
2009-11-02 20:21:28 +00:00
array( 'lhs' => 115, 'rhs' => 1 ),
array( 'lhs' => 115, '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,
2009-11-02 20:21:28 +00:00
43 => 0,
53 => 0,
62 => 0,
2009-11-02 20:21:28 +00:00
64 => 0,
66 => 0,
67 => 0,
68 => 0,
84 => 0,
154 => 0,
1 => 1,
2009-11-02 20:21:28 +00:00
50 => 1,
56 => 1,
59 => 1,
60 => 1,
98 => 1,
121 => 1,
161 => 1,
170 => 1,
172 => 1,
173 => 1,
174 => 1,
2 => 2,
2009-11-02 20:21:28 +00:00
88 => 2,
160 => 2,
168 => 2,
171 => 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 => 15,
17 => 15,
18 => 18,
19 => 18,
20 => 20,
21 => 21,
22 => 22,
23 => 23,
24 => 24,
25 => 25,
26 => 26,
27 => 27,
28 => 28,
35 => 28,
2009-11-02 20:21:28 +00:00
113 => 28,
159 => 28,
29 => 29,
30 => 30,
31 => 31,
2009-10-19 14:36:57 +00:00
32 => 32,
33 => 33,
34 => 34,
36 => 36,
37 => 37,
39 => 37,
2009-11-02 20:21:28 +00:00
40 => 37,
38 => 38,
2009-10-19 14:36:57 +00:00
41 => 41,
42 => 42,
2009-11-02 20:21:28 +00:00
54 => 42,
63 => 42,
2009-10-19 14:36:57 +00:00
44 => 44,
2009-11-02 20:21:28 +00:00
45 => 45,
46 => 46,
2009-10-19 14:36:57 +00:00
47 => 47,
2009-11-02 20:21:28 +00:00
48 => 48,
49 => 49,
2009-11-02 20:21:28 +00:00
51 => 51,
52 => 52,
2009-11-02 20:21:28 +00:00
55 => 55,
57 => 57,
58 => 57,
61 => 61,
65 => 65,
69 => 69,
70 => 70,
71 => 71,
2009-11-02 20:21:28 +00:00
73 => 71,
72 => 72,
2009-10-19 14:36:57 +00:00
74 => 74,
75 => 75,
76 => 76,
77 => 77,
2009-10-19 14:36:57 +00:00
78 => 78,
2009-11-02 20:21:28 +00:00
79 => 79,
80 => 80,
81 => 81,
82 => 82,
2009-11-02 20:21:28 +00:00
83 => 83,
85 => 85,
2009-10-19 14:36:57 +00:00
86 => 86,
87 => 87,
89 => 89,
2009-11-02 20:21:28 +00:00
118 => 89,
90 => 90,
2009-11-02 20:21:28 +00:00
91 => 91,
92 => 92,
2009-11-02 20:21:28 +00:00
93 => 93,
96 => 93,
94 => 94,
2009-09-27 17:58:33 +00:00
95 => 95,
97 => 97,
99 => 99,
2009-09-27 17:58:33 +00:00
100 => 100,
101 => 101,
2009-11-02 20:21:28 +00:00
123 => 101,
102 => 102,
2009-10-19 14:36:57 +00:00
103 => 103,
104 => 104,
105 => 105,
106 => 106,
107 => 107,
2009-11-02 20:21:28 +00:00
108 => 108,
109 => 109,
110 => 110,
111 => 111,
112 => 112,
114 => 114,
115 => 115,
2009-11-02 20:21:28 +00:00
116 => 116,
2009-09-27 17:58:33 +00:00
117 => 117,
119 => 119,
120 => 120,
122 => 122,
124 => 124,
2009-10-19 14:36:57 +00:00
125 => 125,
2009-11-02 20:21:28 +00:00
128 => 125,
139 => 125,
126 => 126,
127 => 127,
129 => 129,
2009-11-02 20:21:28 +00:00
130 => 130,
131 => 131,
136 => 131,
132 => 132,
135 => 132,
133 => 133,
138 => 133,
134 => 134,
137 => 134,
140 => 140,
141 => 141,
142 => 142,
2009-10-19 14:36:57 +00:00
143 => 143,
144 => 144,
145 => 145,
146 => 146,
2009-09-27 17:58:33 +00:00
147 => 147,
2009-10-19 14:36:57 +00:00
148 => 148,
2009-11-02 20:21:28 +00:00
149 => 149,
150 => 150,
151 => 151,
152 => 152,
153 => 153,
2009-11-02 20:21:28 +00:00
155 => 155,
156 => 156,
2009-10-19 14:36:57 +00:00
157 => 157,
158 => 158,
162 => 162,
2009-11-02 20:21:28 +00:00
163 => 163,
164 => 164,
2009-11-02 20:21:28 +00:00
165 => 165,
166 => 166,
167 => 167,
169 => 169,
);
/* Beginning here are the reduction cases. A typical example
** follows:
** #line <lineno> <grammarfile>
** function yy_r0($yymsp){ ... } // User supplied code
** #line <lineno> <thisfile>
*/
#line 79 "smarty_internal_templateparser.y"
function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
2009-11-02 20:21:28 +00:00
#line 2034 "smarty_internal_templateparser.php"
#line 85 "smarty_internal_templateparser.y"
function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
2009-11-02 20:21:28 +00:00
#line 2037 "smarty_internal_templateparser.php"
#line 87 "smarty_internal_templateparser.y"
function yy_r2(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
2009-11-02 20:21:28 +00:00
#line 2040 "smarty_internal_templateparser.php"
#line 93 "smarty_internal_templateparser.y"
function yy_r3(){
2009-10-22 23:05:14 +00:00
if ($this->compiler->has_code) {
$tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array();
$this->_retvalue = $this->cacher->processNocacheCode($tmp.$this->yystack[$this->yyidx + -1]->minor, $this->compiler,true);
} else { $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor;} $this->compiler->has_variable_string = false; }
2009-11-02 20:21:28 +00:00
#line 2047 "smarty_internal_templateparser.php"
#line 99 "smarty_internal_templateparser.y"
function yy_r4(){
2009-10-22 23:05:14 +00:00
if ($this->compiler->has_code) {
$tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array();
$this->_retvalue = $this->cacher->processNocacheCode($tmp.$this->yystack[$this->yyidx + -1]->minor, $this->compiler,true);
} else { $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor;} $this->compiler->has_variable_string = false; }
2009-11-02 20:21:28 +00:00
#line 2054 "smarty_internal_templateparser.php"
#line 105 "smarty_internal_templateparser.y"
function yy_r5(){
if ($this->compiler->has_code) {
$tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array();
$this->_retvalue = $this->cacher->processNocacheCode($tmp.$this->yystack[$this->yyidx + -1]->minor, $this->compiler,true);
} else { $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor;} $this->compiler->has_variable_string = false; }
2009-11-02 20:21:28 +00:00
#line 2061 "smarty_internal_templateparser.php"
#line 111 "smarty_internal_templateparser.y"
function yy_r6(){ $this->_retvalue = ''; }
2009-11-02 20:21:28 +00:00
#line 2064 "smarty_internal_templateparser.php"
#line 113 "smarty_internal_templateparser.y"
function yy_r7(){ $this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + -1]->minor, $this->compiler,false); }
2009-11-02 20:21:28 +00:00
#line 2067 "smarty_internal_templateparser.php"
#line 115 "smarty_internal_templateparser.y"
function yy_r8(){$this->_retvalue = $this->cacher->processNocacheCode($this->smarty->left_delimiter, $this->compiler,false); }
2009-11-02 20:21:28 +00:00
#line 2070 "smarty_internal_templateparser.php"
#line 117 "smarty_internal_templateparser.y"
function yy_r9(){ $this->_retvalue = $this->cacher->processNocacheCode($this->smarty->right_delimiter, $this->compiler,false); }
2009-11-02 20:21:28 +00:00
#line 2073 "smarty_internal_templateparser.php"
#line 119 "smarty_internal_templateparser.y"
2009-10-22 23:05:14 +00:00
function yy_r10(){if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU) {
2009-10-27 20:25:16 +00:00
$this->_retvalue = $this->cacher->processNocacheCode("<?php echo htmlspecialchars('<?php".str_replace("'","\'",$this->yystack[$this->yyidx + -1]->minor)."?>', ENT_QUOTES);?>\n", $this->compiler, false);
2009-10-22 23:05:14 +00:00
} elseif ($this->sec_obj->php_handling == SMARTY_PHP_QUOTE) {
$this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('<?php'.$this->yystack[$this->yyidx + -1]->minor.'?>', ENT_QUOTES), $this->compiler, false);
}elseif ($this->sec_obj->php_handling == SMARTY_PHP_ALLOW) {
$this->_retvalue = $this->cacher->processNocacheCode('<?php'.$this->yystack[$this->yyidx + -1]->minor.'?>', $this->compiler, true);
}elseif ($this->sec_obj->php_handling == SMARTY_PHP_REMOVE) {
$this->_retvalue = '';
}
}
2009-11-02 20:21:28 +00:00
#line 2085 "smarty_internal_templateparser.php"
#line 130 "smarty_internal_templateparser.y"
function yy_r11(){
2009-10-22 23:05:14 +00:00
if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU || $this->sec_obj->php_handling == SMARTY_PHP_ALLOW) {
$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '<?=".$this->yystack[$this->yyidx + -1]->minor."?>'?>\n", $this->compiler, false);
2009-10-22 23:05:14 +00:00
} elseif ($this->sec_obj->php_handling == SMARTY_PHP_QUOTE) {
$this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('<?='.$this->yystack[$this->yyidx + -1]->minor.'?>', ENT_QUOTES), $this->compiler, false);
2009-10-22 23:05:14 +00:00
}elseif ($this->sec_obj == SMARTY_PHP_REMOVE) {
$this->_retvalue = '';
2009-10-22 23:05:14 +00:00
}
}
2009-11-02 20:21:28 +00:00
#line 2096 "smarty_internal_templateparser.php"
#line 141 "smarty_internal_templateparser.y"
function yy_r12(){ $this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("<?php echo '<?xml';?>", $this->compiler, true); }
2009-11-02 20:21:28 +00:00
#line 2099 "smarty_internal_templateparser.php"
#line 142 "smarty_internal_templateparser.y"
function yy_r13(){$this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("<?php echo '?>';?>\n", $this->compiler, true); }
2009-11-02 20:21:28 +00:00
#line 2102 "smarty_internal_templateparser.php"
#line 145 "smarty_internal_templateparser.y"
function yy_r14(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false); }
2009-11-02 20:21:28 +00:00
#line 2105 "smarty_internal_templateparser.php"
#line 152 "smarty_internal_templateparser.y"
function yy_r15(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); }
2009-11-02 20:21:28 +00:00
#line 2108 "smarty_internal_templateparser.php"
#line 162 "smarty_internal_templateparser.y"
function yy_r18(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor)); }
2009-11-02 20:21:28 +00:00
#line 2111 "smarty_internal_templateparser.php"
#line 165 "smarty_internal_templateparser.y"
function yy_r20(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
2009-11-02 20:21:28 +00:00
#line 2114 "smarty_internal_templateparser.php"
#line 166 "smarty_internal_templateparser.y"
function yy_r21(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + 0]->minor,array()); }
2009-11-02 20:21:28 +00:00
#line 2117 "smarty_internal_templateparser.php"
#line 168 "smarty_internal_templateparser.y"
function yy_r22(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); }
2009-11-02 20:21:28 +00:00
#line 2120 "smarty_internal_templateparser.php"
#line 170 "smarty_internal_templateparser.y"
function yy_r23(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor).'<?php echo ';
2009-10-22 23:05:14 +00:00
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -2]->minor[0],'modifier')) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>";
} else {
if (is_callable($this->yystack[$this->yyidx + -2]->minor[0])) {
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -2]->minor[0], $this->compiler)) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>";
}
} else {
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -2]->minor[0] . "\"");
}
}
}
2009-11-02 20:21:28 +00:00
#line 2135 "smarty_internal_templateparser.php"
#line 184 "smarty_internal_templateparser.y"
function yy_r24(){if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) {
2009-10-22 23:05:14 +00:00
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -2]->minor . "\"");
}
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); }
2009-11-02 20:21:28 +00:00
#line 2141 "smarty_internal_templateparser.php"
#line 188 "smarty_internal_templateparser.y"
function yy_r25(){ if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) {
2009-10-22 23:05:14 +00:00
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -2]->minor . "\"");
}
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); }
2009-11-02 20:21:28 +00:00
#line 2147 "smarty_internal_templateparser.php"
#line 193 "smarty_internal_templateparser.y"
function yy_r26(){
2009-10-22 23:05:14 +00:00
if ($this->yystack[$this->yyidx + -8]->minor != 'for') {
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -8]->minor . "\"");
}
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -8]->minor,array('start'=>$this->yystack[$this->yyidx + -6]->minor,'ifexp'=>$this->yystack[$this->yyidx + -4]->minor,'varloop'=>$this->yystack[$this->yyidx + -1]->minor,'loop'=>$this->yystack[$this->yyidx + 0]->minor)); }
2009-11-02 20:21:28 +00:00
#line 2154 "smarty_internal_templateparser.php"
#line 198 "smarty_internal_templateparser.y"
function yy_r27(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; }
2009-11-02 20:21:28 +00:00
#line 2157 "smarty_internal_templateparser.php"
#line 199 "smarty_internal_templateparser.y"
function yy_r28(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
2009-11-02 20:21:28 +00:00
#line 2160 "smarty_internal_templateparser.php"
#line 201 "smarty_internal_templateparser.y"
function yy_r29(){
2009-10-22 23:05:14 +00:00
if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') {
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\"");
}
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor)); }
2009-11-02 20:21:28 +00:00
#line 2167 "smarty_internal_templateparser.php"
#line 206 "smarty_internal_templateparser.y"
function yy_r30(){
2009-10-22 23:05:14 +00:00
if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') {
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\"");
}
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor)); }
2009-11-02 20:21:28 +00:00
#line 2174 "smarty_internal_templateparser.php"
#line 213 "smarty_internal_templateparser.y"
function yy_r31(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',$this->yystack[$this->yyidx + 0]->minor); }
2009-11-02 20:21:28 +00:00
#line 2177 "smarty_internal_templateparser.php"
#line 214 "smarty_internal_templateparser.y"
function yy_r32(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',$this->yystack[$this->yyidx + 0]->minor).'<?php echo ';
2009-10-22 23:05:14 +00:00
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -2]->minor[0],'modifier')) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>";
} else {
if (is_callable($this->yystack[$this->yyidx + -2]->minor[0])) {
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -2]->minor[0], $this->compiler)) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>";
}
} else {
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -2]->minor[0] . "\"");
}
}
2009-10-19 14:36:57 +00:00
}
2009-11-02 20:21:28 +00:00
#line 2192 "smarty_internal_templateparser.php"
#line 228 "smarty_internal_templateparser.y"
function yy_r33(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + 0]->minor)); }
2009-11-02 20:21:28 +00:00
#line 2195 "smarty_internal_templateparser.php"
#line 235 "smarty_internal_templateparser.y"
function yy_r34(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
2009-11-02 20:21:28 +00:00
#line 2198 "smarty_internal_templateparser.php"
#line 239 "smarty_internal_templateparser.y"
function yy_r36(){ $this->_retvalue = array(); }
2009-11-02 20:21:28 +00:00
#line 2201 "smarty_internal_templateparser.php"
#line 242 "smarty_internal_templateparser.y"
function yy_r37(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); }
2009-11-02 20:21:28 +00:00
#line 2204 "smarty_internal_templateparser.php"
#line 243 "smarty_internal_templateparser.y"
function yy_r38(){ $this->_retvalue = array($this->yystack[$this->yyidx + -3]->minor=>'\''.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'\''); }
#line 2207 "smarty_internal_templateparser.php"
#line 246 "smarty_internal_templateparser.y"
function yy_r41(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); }
#line 2210 "smarty_internal_templateparser.php"
#line 249 "smarty_internal_templateparser.y"
function yy_r42(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2213 "smarty_internal_templateparser.php"
#line 251 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r44(){ $this->_retvalue = ''; }
#line 2216 "smarty_internal_templateparser.php"
#line 252 "smarty_internal_templateparser.y"
function yy_r45(){ $this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; }
#line 2219 "smarty_internal_templateparser.php"
#line 258 "smarty_internal_templateparser.y"
function yy_r46(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); }
#line 2222 "smarty_internal_templateparser.php"
#line 259 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r47(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; }
#line 2225 "smarty_internal_templateparser.php"
#line 261 "smarty_internal_templateparser.y"
function yy_r48(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2228 "smarty_internal_templateparser.php"
#line 267 "smarty_internal_templateparser.y"
function yy_r49(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2231 "smarty_internal_templateparser.php"
#line 270 "smarty_internal_templateparser.y"
function yy_r51(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; }
#line 2234 "smarty_internal_templateparser.php"
#line 271 "smarty_internal_templateparser.y"
function yy_r52(){
2009-10-22 23:05:14 +00:00
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -1]->minor[0],'modifier')) {
$this->_retvalue = "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -1]->minor[0] . "',array(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor. "),".$this->yystack[$this->yyidx + -1]->minor[1].")";
} else {
if (is_callable($this->yystack[$this->yyidx + -1]->minor[0])) {
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -1]->minor[0], $this->compiler)) {
$this->_retvalue = "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -1]->minor[0] . "',array(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor. "),".$this->yystack[$this->yyidx + -1]->minor[1].")";
}
} else {
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -1]->minor[0] . "\"");
}
}
}
2009-11-02 20:21:28 +00:00
#line 2249 "smarty_internal_templateparser.php"
#line 290 "smarty_internal_templateparser.y"
function yy_r55(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; }
#line 2252 "smarty_internal_templateparser.php"
#line 297 "smarty_internal_templateparser.y"
function yy_r57(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; }
#line 2255 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 311 "smarty_internal_templateparser.y"
function yy_r61(){$this->_retvalue = ' & '; }
#line 2258 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 318 "smarty_internal_templateparser.y"
function yy_r65(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2261 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 326 "smarty_internal_templateparser.y"
function yy_r69(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
#line 2264 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 328 "smarty_internal_templateparser.y"
function yy_r70(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; }
#line 2267 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 329 "smarty_internal_templateparser.y"
function yy_r71(){ $this->_retvalue = "''"; }
#line 2270 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 331 "smarty_internal_templateparser.y"
function yy_r72(){ $this->_retvalue = '"'.$this->yystack[$this->yyidx + -1]->minor.'"'; }
#line 2273 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 334 "smarty_internal_templateparser.y"
function yy_r74(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2276 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 335 "smarty_internal_templateparser.y"
function yy_r75(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -3]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -1]->minor .')'; }
#line 2279 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 337 "smarty_internal_templateparser.y"
function yy_r76(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2282 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 338 "smarty_internal_templateparser.y"
function yy_r77(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -4]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -7]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -2]->minor .')'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2285 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 340 "smarty_internal_templateparser.y"
function yy_r78(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2288 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 342 "smarty_internal_templateparser.y"
function yy_r79(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2291 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 344 "smarty_internal_templateparser.y"
function yy_r80(){ $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 2294 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 346 "smarty_internal_templateparser.y"
function yy_r81(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + -1]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; }
#line 2297 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 355 "smarty_internal_templateparser.y"
function yy_r82(){if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('special_smarty_variable',$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->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor['var'],"'"))->nocache;} }
#line 2301 "smarty_internal_templateparser.php"
#line 358 "smarty_internal_templateparser.y"
function yy_r83(){ $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"))->nocache; }
#line 2304 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 362 "smarty_internal_templateparser.y"
function yy_r85(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; }
#line 2307 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 363 "smarty_internal_templateparser.y"
function yy_r86(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; }
#line 2310 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 366 "smarty_internal_templateparser.y"
function yy_r87(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2313 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 374 "smarty_internal_templateparser.y"
function yy_r89(){return; }
#line 2316 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 378 "smarty_internal_templateparser.y"
function yy_r90(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; }
#line 2319 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 379 "smarty_internal_templateparser.y"
function yy_r91(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; }
#line 2322 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 380 "smarty_internal_templateparser.y"
function yy_r92(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; }
#line 2325 "smarty_internal_templateparser.php"
2009-11-02 20:21:28 +00:00
#line 381 "smarty_internal_templateparser.y"
function yy_r93(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; }
#line 2328 "smarty_internal_templateparser.php"
#line 383 "smarty_internal_templateparser.y"
function yy_r94(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; }
#line 2331 "smarty_internal_templateparser.php"
#line 384 "smarty_internal_templateparser.y"
function yy_r95(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; }
#line 2334 "smarty_internal_templateparser.php"
#line 388 "smarty_internal_templateparser.y"
function yy_r97(){$this->_retvalue = ''; }
#line 2337 "smarty_internal_templateparser.php"
#line 396 "smarty_internal_templateparser.y"
function yy_r99(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2340 "smarty_internal_templateparser.php"
#line 398 "smarty_internal_templateparser.y"
function yy_r100(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2343 "smarty_internal_templateparser.php"
#line 400 "smarty_internal_templateparser.y"
function yy_r101(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2346 "smarty_internal_templateparser.php"
#line 405 "smarty_internal_templateparser.y"
function yy_r102(){ 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->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"))->nocache;} }
#line 2350 "smarty_internal_templateparser.php"
#line 408 "smarty_internal_templateparser.y"
function yy_r103(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2353 "smarty_internal_templateparser.php"
#line 410 "smarty_internal_templateparser.y"
function yy_r104(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2356 "smarty_internal_templateparser.php"
#line 412 "smarty_internal_templateparser.y"
function yy_r105(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2359 "smarty_internal_templateparser.php"
#line 413 "smarty_internal_templateparser.y"
function yy_r106(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2362 "smarty_internal_templateparser.php"
#line 414 "smarty_internal_templateparser.y"
function yy_r107(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2365 "smarty_internal_templateparser.php"
#line 415 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r108(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2368 "smarty_internal_templateparser.php"
#line 417 "smarty_internal_templateparser.y"
function yy_r109(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2371 "smarty_internal_templateparser.php"
#line 423 "smarty_internal_templateparser.y"
function yy_r110(){if (!$this->template->security || $this->smarty->security_handler->isTrustedPhpFunction($this->yystack[$this->yyidx + -3]->minor, $this->compiler)) {
2009-10-22 23:05:14 +00:00
if ($this->yystack[$this->yyidx + -3]->minor == 'isset' || $this->yystack[$this->yyidx + -3]->minor == 'empty' || $this->yystack[$this->yyidx + -3]->minor == 'array' || is_callable($this->yystack[$this->yyidx + -3]->minor)) {
$this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")";
} else {
$this->compiler->trigger_template_error ("unknown function \"" . $this->yystack[$this->yyidx + -3]->minor . "\"");
}
} }
2009-11-02 20:21:28 +00:00
#line 2380 "smarty_internal_templateparser.php"
#line 434 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r111(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
#line 2383 "smarty_internal_templateparser.php"
#line 438 "smarty_internal_templateparser.y"
function yy_r112(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; }
#line 2386 "smarty_internal_templateparser.php"
#line 442 "smarty_internal_templateparser.y"
function yy_r114(){ return; }
#line 2389 "smarty_internal_templateparser.php"
#line 447 "smarty_internal_templateparser.y"
function yy_r115(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); }
#line 2392 "smarty_internal_templateparser.php"
#line 448 "smarty_internal_templateparser.y"
function yy_r116(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); }
#line 2395 "smarty_internal_templateparser.php"
#line 460 "smarty_internal_templateparser.y"
function yy_r117(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2398 "smarty_internal_templateparser.php"
#line 464 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r119(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; }
#line 2401 "smarty_internal_templateparser.php"
#line 465 "smarty_internal_templateparser.y"
function yy_r120(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2404 "smarty_internal_templateparser.php"
#line 472 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r122(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2407 "smarty_internal_templateparser.php"
#line 477 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r124(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; }
#line 2410 "smarty_internal_templateparser.php"
#line 479 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r125(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2413 "smarty_internal_templateparser.php"
#line 480 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r126(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2416 "smarty_internal_templateparser.php"
#line 481 "smarty_internal_templateparser.y"
function yy_r127(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2419 "smarty_internal_templateparser.php"
#line 483 "smarty_internal_templateparser.y"
function yy_r129(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2422 "smarty_internal_templateparser.php"
#line 484 "smarty_internal_templateparser.y"
function yy_r130(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2425 "smarty_internal_templateparser.php"
#line 485 "smarty_internal_templateparser.y"
function yy_r131(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2428 "smarty_internal_templateparser.php"
#line 486 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r132(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2431 "smarty_internal_templateparser.php"
#line 487 "smarty_internal_templateparser.y"
function yy_r133(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2434 "smarty_internal_templateparser.php"
#line 488 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r134(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2437 "smarty_internal_templateparser.php"
#line 494 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r140(){$this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'='.$this->yystack[$this->yyidx + 0]->minor.';?>'; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.'$_tmp'.$this->prefix_number; }
#line 2440 "smarty_internal_templateparser.php"
#line 496 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r141(){$this->_retvalue = '=='; }
#line 2443 "smarty_internal_templateparser.php"
#line 497 "smarty_internal_templateparser.y"
function yy_r142(){$this->_retvalue = '!='; }
#line 2446 "smarty_internal_templateparser.php"
#line 498 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r143(){$this->_retvalue = '>'; }
#line 2449 "smarty_internal_templateparser.php"
#line 499 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r144(){$this->_retvalue = '<'; }
#line 2452 "smarty_internal_templateparser.php"
#line 500 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r145(){$this->_retvalue = '>='; }
#line 2455 "smarty_internal_templateparser.php"
#line 501 "smarty_internal_templateparser.y"
function yy_r146(){$this->_retvalue = '<='; }
#line 2458 "smarty_internal_templateparser.php"
#line 502 "smarty_internal_templateparser.y"
function yy_r147(){$this->_retvalue = '==='; }
#line 2461 "smarty_internal_templateparser.php"
#line 503 "smarty_internal_templateparser.y"
function yy_r148(){$this->_retvalue = '!=='; }
#line 2464 "smarty_internal_templateparser.php"
#line 504 "smarty_internal_templateparser.y"
function yy_r149(){$this->_retvalue = '%'; }
#line 2467 "smarty_internal_templateparser.php"
#line 506 "smarty_internal_templateparser.y"
function yy_r150(){$this->_retvalue = '&&'; }
#line 2470 "smarty_internal_templateparser.php"
#line 507 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r151(){$this->_retvalue = '||'; }
#line 2473 "smarty_internal_templateparser.php"
#line 508 "smarty_internal_templateparser.y"
2009-11-02 20:21:28 +00:00
function yy_r152(){$this->_retvalue = ' XOR '; }
#line 2476 "smarty_internal_templateparser.php"
#line 513 "smarty_internal_templateparser.y"
function yy_r153(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2479 "smarty_internal_templateparser.php"
#line 515 "smarty_internal_templateparser.y"
function yy_r155(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; }
#line 2482 "smarty_internal_templateparser.php"
#line 516 "smarty_internal_templateparser.y"
function yy_r156(){ return; }
#line 2485 "smarty_internal_templateparser.php"
#line 517 "smarty_internal_templateparser.y"
function yy_r157(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2488 "smarty_internal_templateparser.php"
#line 518 "smarty_internal_templateparser.y"
function yy_r158(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2491 "smarty_internal_templateparser.php"
#line 527 "smarty_internal_templateparser.y"
function yy_r162(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; }
#line 2494 "smarty_internal_templateparser.php"
#line 528 "smarty_internal_templateparser.y"
function yy_r163(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; $this->compiler->has_variable_string = true; }
#line 2497 "smarty_internal_templateparser.php"
#line 529 "smarty_internal_templateparser.y"
function yy_r164(){$this->_retvalue = '".'.'$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + 0]->minor .'\')->value'.'."'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"))->nocache; $this->compiler->has_variable_string = true; }
#line 2500 "smarty_internal_templateparser.php"
#line 530 "smarty_internal_templateparser.y"
function yy_r165(){ $this->_retvalue = '".('.$this->yystack[$this->yyidx + -1]->minor.')."'; $this->compiler->has_variable_string = true; }
#line 2503 "smarty_internal_templateparser.php"
#line 531 "smarty_internal_templateparser.y"
function yy_r166(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + -1]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '".$_tmp'.$this->prefix_number.'."'; $this->compiler->has_variable_string = true; }
#line 2506 "smarty_internal_templateparser.php"
#line 532 "smarty_internal_templateparser.y"
function yy_r167(){$this->_retvalue = '$'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2509 "smarty_internal_templateparser.php"
#line 534 "smarty_internal_templateparser.y"
function yy_r169(){$this->_retvalue = '`'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2512 "smarty_internal_templateparser.php"
/**
* placeholder for the left hand side in a reduce operation.
*
* For a parser with a rule like this:
* <pre>
* rule(A) ::= B. { A = 1; }
* </pre>
*
* The parser will translate to something like:
*
* <code>
* function yy_r0(){$this->_retvalue = 1;}
* </code>
*/
private $_retvalue;
/**
* Perform a reduce action and the shift that must immediately
* follow the reduce.
*
* For a rule such as:
*
* <pre>
* A ::= B blah C. { dosomething(); }
* </pre>
*
* This function will first call the action, if any, ("dosomething();" in our
* example), and then it will pop three states from the stack,
* one for each entry on the right-hand side of the expression
* (B, blah, and C in our example rule), and then push the result of the action
* back on to the stack with the resulting state reduced to (as described in the .out
* file)
* @param int Number of the rule by which to reduce
*/
function yy_reduce($yyruleno)
{
//int $yygoto; /* The next state */
//int $yyact; /* The next action */
//mixed $yygotominor; /* The LHS of the rule reduced */
//TP_yyStackEntry $yymsp; /* The top of the parser's stack */
//int $yysize; /* Amount to pop the stack */
$yymsp = $this->yystack[$this->yyidx];
if (self::$yyTraceFILE && $yyruleno >= 0
&& $yyruleno < count(self::$yyRuleName)) {
fprintf(self::$yyTraceFILE, "%sReduce (%d) [%s].\n",
self::$yyTracePrompt, $yyruleno,
self::$yyRuleName[$yyruleno]);
}
$this->_retvalue = $yy_lefthand_side = null;
if (array_key_exists($yyruleno, self::$yyReduceMap)) {
// call the action
$this->_retvalue = null;
$this->{'yy_r' . self::$yyReduceMap[$yyruleno]}();
$yy_lefthand_side = $this->_retvalue;
}
$yygoto = self::$yyRuleInfo[$yyruleno]['lhs'];
$yysize = self::$yyRuleInfo[$yyruleno]['rhs'];
$this->yyidx -= $yysize;
for($i = $yysize; $i; $i--) {
// pop all of the right-hand side parameters
array_pop($this->yystack);
}
$yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto);
if ($yyact < self::YYNSTATE) {
/* If we are not debugging and the reduce action popped at least
** one element off the stack, then we can push the new element back
** onto the stack here, and skip the stack overflow test in yy_shift().
** That gives a significant speed improvement. */
if (!self::$yyTraceFILE && $yysize) {
$this->yyidx++;
$x = new TP_yyStackEntry;
$x->stateno = $yyact;
$x->major = $yygoto;
$x->minor = $yy_lefthand_side;
$this->yystack[$this->yyidx] = $x;
} else {
$this->yy_shift($yyact, $yygoto, $yy_lefthand_side);
}
} elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) {
$this->yy_accept();
}
}
/**
* The following code executes when the parse fails
*
* Code from %parse_fail is inserted here
*/
function yy_parse_failed()
{
if (self::$yyTraceFILE) {
fprintf(self::$yyTraceFILE, "%sFail!\n", self::$yyTracePrompt);
}
while ($this->yyidx >= 0) {
$this->yy_pop_parser_stack();
}
/* Here code is inserted which will be executed whenever the
** parser fails */
}
/**
* The following code executes when a syntax error first occurs.
*
* %syntax_error code is inserted here
* @param int The major type of the error token
* @param mixed The minor type of the error token
*/
function yy_syntax_error($yymajor, $TOKEN)
{
#line 60 "smarty_internal_templateparser.y"
2009-10-22 23:05:14 +00:00
$this->internalError = true;
$this->yymajor = $yymajor;
$this->compiler->trigger_template_error();
2009-11-02 20:21:28 +00:00
#line 2630 "smarty_internal_templateparser.php"
}
/**
* The following is executed when the parser accepts
*
* %parse_accept code is inserted here
*/
function yy_accept()
{
if (self::$yyTraceFILE) {
fprintf(self::$yyTraceFILE, "%sAccept!\n", self::$yyTracePrompt);
}
while ($this->yyidx >= 0) {
$stack = $this->yy_pop_parser_stack();
}
/* Here code is inserted which will be executed whenever the
** parser accepts */
#line 52 "smarty_internal_templateparser.y"
2009-10-22 23:05:14 +00:00
$this->successful = !$this->internalError;
$this->internalError = false;
$this->retvalue = $this->_retvalue;
//echo $this->retvalue."\n\n";
2009-11-02 20:21:28 +00:00
#line 2655 "smarty_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);
}
}