Files
smarty/libs/sysplugins/smarty_internal_templateparser.php

2801 lines
141 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_COMMENT = 1;
const TP_PHP = 2;
const TP_OTHER = 3;
const TP_SHORTTAGEND = 4;
const TP_SHORTTAGSTART = 5;
const TP_XML = 6;
const TP_LDEL = 7;
const TP_RDEL = 8;
const TP_DOLLAR = 9;
const TP_ID = 10;
const TP_EQUAL = 11;
const TP_FOREACH = 12;
const TP_PTR = 13;
const TP_IF = 14;
const TP_SPACE = 15;
const TP_FOR = 16;
const TP_SEMICOLON = 17;
const TP_INCDEC = 18;
const TP_TO = 19;
const TP_STEP = 20;
const TP_AS = 21;
const TP_APTR = 22;
const TP_LDELSLASH = 23;
const TP_INTEGER = 24;
const TP_COMMA = 25;
const TP_COLON = 26;
const TP_UNIMATH = 27;
const TP_OPENP = 28;
const TP_CLOSEP = 29;
const TP_QMARK = 30;
const TP_MATH = 31;
const TP_ANDSYM = 32;
const TP_TYPECAST = 33;
const TP_DOT = 34;
const TP_BOOLEAN = 35;
const TP_NULL = 36;
const TP_SINGLEQUOTESTRING = 37;
const TP_QUOTE = 38;
const TP_DOUBLECOLON = 39;
const TP_AT = 40;
const TP_HATCH = 41;
const TP_OPENB = 42;
const TP_CLOSEB = 43;
const TP_VERT = 44;
const TP_NOT = 45;
const TP_ISIN = 46;
const TP_ISDIVBY = 47;
const TP_ISNOTDIVBY = 48;
const TP_ISEVEN = 49;
const TP_ISNOTEVEN = 50;
const TP_ISEVENBY = 51;
const TP_ISNOTEVENBY = 52;
const TP_ISODD = 53;
const TP_ISNOTODD = 54;
const TP_ISODDBY = 55;
const TP_ISNOTODDBY = 56;
const TP_INSTANCEOF = 57;
const TP_EQUALS = 58;
const TP_NOTEQUALS = 59;
const TP_GREATERTHAN = 60;
const TP_LESSTHAN = 61;
const TP_GREATEREQUAL = 62;
const TP_LESSEQUAL = 63;
const TP_IDENTITY = 64;
const TP_NONEIDENTITY = 65;
const TP_MOD = 66;
const TP_LAND = 67;
const TP_LOR = 68;
const TP_LXOR = 69;
const TP_BACKTICK = 70;
const TP_DOLLARID = 71;
const YY_NO_ACTION = 544;
const YY_ACCEPT_ACTION = 543;
const YY_ERROR_ACTION = 542;
/* Next are that tables used to determine what action to take based on the
** current state and lookahead token. These tables are used to implement
** functions that take a state number and lookahead value and return an
** action integer.
**
** Suppose the action integer is N. Then the action is determined as
** follows
**
** 0 <= N < self::YYNSTATE Shift N. That is,
** push the lookahead
** token onto the stack
** and goto state N.
**
** self::YYNSTATE <= N < self::YYNSTATE+self::YYNRULE Reduce by rule N-YYNSTATE.
**
** N == self::YYNSTATE+self::YYNRULE A syntax error has occurred.
**
** N == self::YYNSTATE+self::YYNRULE+1 The parser accepts its
** input. (and concludes parsing)
**
** N == self::YYNSTATE+self::YYNRULE+2 No such action. Denotes unused
** slots in the yy_action[] table.
**
** The action table is constructed as a single large static array $yy_action.
** Given state S and lookahead X, the action is computed as
**
** self::$yy_action[self::$yy_shift_ofst[S] + X ]
**
** If the index value self::$yy_shift_ofst[S]+X is out of range or if the value
** self::$yy_lookahead[self::$yy_shift_ofst[S]+X] is not equal to X or if
** self::$yy_shift_ofst[S] is equal to self::YY_SHIFT_USE_DFLT, it means that
** the action is not in the table and that self::$yy_default[S] should be used instead.
**
** The formula above is for computing the action when the lookahead is
** a terminal symbol. If the lookahead is a non-terminal (as occurs after
** a reduce action) then the static $yy_reduce_ofst array is used in place of
** the static $yy_shift_ofst array and self::YY_REDUCE_USE_DFLT is used in place of
** self::YY_SHIFT_USE_DFLT.
**
** The following are the tables generated in this section:
**
** self::$yy_action A single table containing all actions.
** self::$yy_lookahead A table containing the lookahead for each entry in
** yy_action. Used to detect hash collisions.
** self::$yy_shift_ofst For each state, the offset into self::$yy_action for
** shifting terminals.
** self::$yy_reduce_ofst For each state, the offset into self::$yy_action for
** shifting non-terminals after a reduce.
** self::$yy_default Default action for each state.
*/
const YY_SZ_ACTTAB = 1288;
static public $yy_action = array(
/* 0 */ 15, 86, 75, 50, 22, 89, 49, 204, 31, 201,
/* 10 */ 209, 327, 39, 22, 40, 147, 110, 193, 299, 241,
/* 20 */ 45, 11, 126, 203, 147, 182, 58, 167, 273, 274,
/* 30 */ 285, 51, 20, 56, 56, 13, 15, 290, 79, 178,
/* 40 */ 136, 197, 27, 344, 215, 171, 202, 162, 22, 87,
/* 50 */ 347, 23, 110, 193, 180, 290, 45, 6, 284, 147,
/* 60 */ 252, 112, 58, 275, 273, 274, 285, 51, 22, 311,
/* 70 */ 56, 13, 28, 15, 4, 86, 174, 186, 342, 147,
/* 80 */ 344, 292, 256, 202, 63, 93, 87, 276, 31, 110,
/* 90 */ 193, 327, 39, 45, 24, 284, 180, 150, 112, 58,
/* 100 */ 275, 273, 274, 285, 51, 154, 311, 56, 13, 238,
/* 110 */ 15, 35, 80, 178, 169, 325, 168, 87, 180, 52,
/* 120 */ 195, 244, 182, 247, 270, 246, 110, 193, 266, 265,
/* 130 */ 45, 6, 36, 242, 190, 22, 58, 311, 273, 274,
/* 140 */ 285, 51, 237, 269, 56, 13, 147, 15, 4, 79,
/* 150 */ 178, 180, 180, 17, 344, 185, 173, 202, 157, 245,
/* 160 */ 87, 270, 258, 110, 193, 266, 265, 45, 24, 284,
/* 170 */ 86, 194, 112, 58, 275, 273, 274, 285, 51, 180,
/* 180 */ 311, 56, 13, 15, 289, 79, 177, 87, 224, 226,
/* 190 */ 344, 82, 180, 74, 54, 91, 81, 264, 262, 110,
/* 200 */ 193, 230, 56, 45, 11, 284, 208, 311, 112, 58,
/* 210 */ 275, 273, 274, 285, 51, 191, 311, 56, 13, 25,
/* 220 */ 192, 86, 134, 87, 3, 2, 337, 336, 5, 7,
/* 230 */ 321, 322, 10, 9, 15, 12, 86, 188, 234, 31,
/* 240 */ 330, 333, 327, 311, 319, 318, 314, 18, 182, 31,
/* 250 */ 110, 193, 205, 56, 45, 24, 543, 68, 250, 360,
/* 260 */ 58, 277, 273, 274, 285, 51, 180, 316, 56, 13,
/* 270 */ 344, 354, 152, 202, 182, 118, 87, 3, 2, 337,
/* 280 */ 336, 5, 7, 321, 322, 10, 9, 196, 294, 31,
/* 290 */ 275, 231, 327, 29, 315, 182, 311, 319, 318, 314,
/* 300 */ 254, 326, 3, 2, 337, 336, 5, 7, 321, 322,
/* 310 */ 10, 9, 3, 2, 337, 336, 5, 7, 321, 322,
/* 320 */ 10, 9, 319, 318, 314, 15, 119, 86, 181, 326,
/* 330 */ 409, 270, 319, 318, 314, 266, 265, 182, 62, 37,
/* 340 */ 300, 110, 193, 16, 48, 45, 24, 240, 32, 31,
/* 350 */ 329, 58, 327, 273, 274, 285, 51, 180, 221, 56,
/* 360 */ 13, 15, 33, 79, 176, 49, 323, 218, 353, 313,
/* 370 */ 227, 350, 15, 40, 182, 320, 287, 110, 193, 120,
/* 380 */ 180, 45, 24, 182, 171, 159, 300, 58, 110, 273,
/* 390 */ 274, 285, 51, 158, 290, 56, 13, 15, 301, 79,
/* 400 */ 178, 87, 220, 180, 344, 82, 165, 73, 64, 91,
/* 410 */ 81, 271, 31, 110, 193, 327, 232, 45, 11, 284,
/* 420 */ 236, 311, 112, 58, 275, 273, 274, 285, 51, 171,
/* 430 */ 311, 56, 13, 263, 360, 3, 2, 337, 336, 5,
/* 440 */ 7, 321, 322, 10, 9, 15, 17, 86, 175, 259,
/* 450 */ 19, 146, 48, 14, 34, 319, 318, 314, 228, 187,
/* 460 */ 180, 110, 179, 70, 48, 15, 24, 86, 188, 110,
/* 470 */ 122, 58, 207, 273, 274, 285, 51, 351, 268, 56,
/* 480 */ 13, 110, 193, 412, 257, 290, 24, 180, 308, 44,
/* 490 */ 412, 58, 180, 273, 274, 285, 51, 171, 291, 56,
/* 500 */ 13, 340, 341, 348, 349, 356, 357, 358, 359, 355,
/* 510 */ 15, 213, 86, 188, 87, 125, 59, 260, 31, 328,
/* 520 */ 170, 327, 123, 55, 182, 31, 110, 193, 327, 31,
/* 530 */ 290, 24, 183, 219, 311, 41, 58, 290, 273, 274,
/* 540 */ 285, 51, 344, 211, 56, 202, 67, 61, 87, 127,
/* 550 */ 291, 97, 189, 15, 172, 86, 184, 284, 197, 332,
/* 560 */ 112, 351, 275, 132, 290, 72, 182, 60, 311, 110,
/* 570 */ 193, 71, 161, 352, 24, 310, 180, 271, 44, 58,
/* 580 */ 268, 273, 274, 285, 51, 214, 268, 56, 78, 22,
/* 590 */ 340, 341, 348, 349, 356, 357, 358, 359, 355, 221,
/* 600 */ 147, 312, 1, 344, 211, 419, 202, 67, 182, 87,
/* 610 */ 166, 258, 105, 344, 211, 271, 202, 67, 284, 87,
/* 620 */ 281, 112, 106, 275, 307, 142, 306, 182, 284, 311,
/* 630 */ 171, 112, 69, 275, 352, 180, 278, 44, 190, 311,
/* 640 */ 290, 35, 21, 182, 352, 31, 331, 235, 327, 340,
/* 650 */ 341, 348, 349, 356, 357, 358, 359, 355, 344, 211,
/* 660 */ 216, 202, 67, 42, 87, 86, 302, 100, 344, 211,
/* 670 */ 115, 202, 67, 284, 87, 335, 112, 96, 275, 57,
/* 680 */ 305, 199, 182, 284, 311, 268, 112, 90, 275, 352,
/* 690 */ 243, 303, 304, 124, 311, 317, 248, 56, 297, 352,
/* 700 */ 344, 211, 182, 202, 67, 182, 87, 300, 290, 102,
/* 710 */ 344, 211, 114, 202, 65, 284, 87, 324, 112, 95,
/* 720 */ 275, 291, 280, 255, 182, 284, 311, 268, 112, 182,
/* 730 */ 275, 352, 309, 279, 344, 211, 311, 202, 67, 295,
/* 740 */ 87, 352, 117, 99, 344, 211, 182, 202, 67, 284,
/* 750 */ 87, 137, 112, 104, 275, 38, 283, 268, 180, 284,
/* 760 */ 311, 282, 112, 182, 275, 352, 290, 286, 182, 272,
/* 770 */ 311, 334, 346, 84, 182, 352, 344, 211, 182, 202,
/* 780 */ 67, 77, 87, 344, 211, 103, 202, 67, 296, 87,
/* 790 */ 107, 284, 101, 108, 112, 182, 275, 180, 284, 223,
/* 800 */ 76, 112, 311, 275, 128, 268, 155, 352, 268, 311,
/* 810 */ 85, 271, 344, 211, 352, 202, 66, 261, 87, 290,
/* 820 */ 141, 98, 344, 292, 94, 202, 131, 284, 87, 259,
/* 830 */ 112, 233, 275, 14, 210, 290, 143, 284, 311, 130,
/* 840 */ 112, 26, 275, 352, 30, 345, 145, 46, 311, 110,
/* 850 */ 239, 290, 344, 292, 290, 202, 131, 267, 87, 344,
/* 860 */ 292, 290, 202, 131, 249, 87, 23, 284, 310, 182,
/* 870 */ 112, 298, 275, 326, 284, 217, 43, 112, 311, 275,
/* 880 */ 344, 292, 212, 202, 131, 311, 87, 47, 140, 83,
/* 890 */ 291, 198, 251, 8, 253, 284, 59, 260, 112, 41,
/* 900 */ 275, 92, 296, 229, 344, 206, 311, 202, 53, 88,
/* 910 */ 87, 296, 296, 200, 344, 215, 296, 202, 162, 284,
/* 920 */ 87, 296, 112, 296, 275, 296, 296, 296, 296, 284,
/* 930 */ 311, 296, 112, 296, 275, 344, 292, 296, 202, 144,
/* 940 */ 311, 87, 344, 292, 296, 202, 148, 296, 87, 343,
/* 950 */ 284, 296, 296, 112, 296, 275, 296, 284, 296, 296,
/* 960 */ 112, 311, 275, 344, 292, 296, 202, 163, 311, 87,
/* 970 */ 296, 296, 296, 296, 296, 296, 296, 296, 284, 296,
/* 980 */ 296, 112, 296, 275, 344, 292, 296, 202, 113, 311,
/* 990 */ 87, 344, 292, 296, 202, 138, 296, 87, 296, 284,
/* 1000 */ 296, 296, 112, 296, 275, 296, 284, 296, 296, 112,
/* 1010 */ 311, 275, 344, 292, 296, 202, 151, 311, 87, 344,
/* 1020 */ 292, 296, 202, 133, 296, 87, 296, 284, 296, 296,
/* 1030 */ 112, 296, 275, 296, 284, 296, 296, 112, 311, 275,
/* 1040 */ 344, 292, 296, 202, 149, 311, 87, 296, 296, 296,
/* 1050 */ 296, 296, 296, 296, 296, 284, 296, 296, 112, 296,
/* 1060 */ 275, 344, 292, 296, 202, 129, 311, 87, 344, 292,
/* 1070 */ 296, 202, 135, 296, 87, 296, 284, 296, 296, 112,
/* 1080 */ 296, 275, 296, 284, 296, 296, 112, 311, 275, 344,
/* 1090 */ 292, 296, 202, 139, 311, 87, 344, 292, 296, 202,
/* 1100 */ 153, 296, 87, 296, 284, 296, 296, 112, 296, 275,
/* 1110 */ 296, 284, 296, 296, 112, 311, 275, 344, 292, 296,
/* 1120 */ 202, 164, 311, 87, 296, 296, 296, 296, 296, 296,
/* 1130 */ 296, 296, 284, 296, 296, 112, 296, 275, 344, 292,
/* 1140 */ 296, 202, 160, 311, 87, 344, 292, 296, 202, 156,
/* 1150 */ 296, 87, 296, 284, 296, 296, 112, 296, 275, 296,
/* 1160 */ 284, 296, 296, 112, 311, 275, 344, 292, 296, 202,
/* 1170 */ 121, 311, 87, 344, 292, 296, 202, 296, 296, 87,
/* 1180 */ 296, 284, 296, 296, 112, 296, 275, 296, 284, 296,
/* 1190 */ 296, 116, 311, 275, 344, 292, 296, 202, 296, 311,
/* 1200 */ 87, 296, 296, 296, 296, 296, 296, 296, 296, 284,
/* 1210 */ 296, 296, 109, 296, 275, 344, 292, 296, 202, 296,
/* 1220 */ 311, 87, 344, 339, 296, 202, 296, 296, 87, 296,
/* 1230 */ 284, 296, 296, 111, 296, 275, 296, 338, 296, 296,
/* 1240 */ 296, 311, 275, 344, 225, 296, 202, 296, 311, 87,
/* 1250 */ 344, 293, 296, 202, 296, 296, 87, 296, 222, 296,
/* 1260 */ 296, 344, 288, 275, 202, 296, 296, 87, 296, 311,
/* 1270 */ 275, 296, 296, 296, 296, 296, 311, 296, 296, 296,
/* 1280 */ 296, 275, 296, 296, 296, 296, 296, 311,
);
static public $yy_lookahead = array(
/* 0 */ 7, 9, 9, 10, 28, 12, 34, 14, 7, 16,
/* 10 */ 34, 10, 11, 28, 42, 39, 23, 24, 8, 43,
/* 20 */ 27, 28, 78, 13, 39, 15, 33, 83, 35, 36,
/* 30 */ 37, 38, 25, 41, 41, 42, 7, 93, 9, 10,
/* 40 */ 78, 40, 22, 76, 77, 83, 79, 80, 28, 82,
/* 50 */ 43, 11, 23, 24, 44, 93, 27, 28, 91, 39,
/* 60 */ 8, 94, 33, 96, 35, 36, 37, 38, 28, 102,
/* 70 */ 41, 42, 20, 7, 45, 9, 10, 110, 111, 39,
/* 80 */ 76, 77, 8, 79, 80, 81, 82, 10, 7, 23,
/* 90 */ 24, 10, 11, 27, 28, 91, 44, 17, 94, 33,
/* 100 */ 96, 35, 36, 37, 38, 25, 102, 41, 42, 43,
/* 110 */ 7, 11, 9, 10, 79, 8, 8, 82, 44, 10,
/* 120 */ 13, 12, 15, 14, 27, 16, 23, 24, 31, 32,
/* 130 */ 27, 28, 7, 98, 34, 28, 33, 102, 35, 36,
/* 140 */ 37, 38, 8, 8, 41, 42, 39, 7, 45, 9,
/* 150 */ 10, 44, 44, 28, 76, 77, 8, 79, 80, 81,
/* 160 */ 82, 27, 76, 23, 24, 31, 32, 27, 28, 91,
/* 170 */ 9, 10, 94, 33, 96, 35, 36, 37, 38, 44,
/* 180 */ 102, 41, 42, 7, 79, 9, 10, 82, 9, 10,
/* 190 */ 76, 77, 44, 79, 80, 81, 82, 4, 112, 23,
/* 200 */ 24, 10, 41, 27, 28, 91, 29, 102, 94, 33,
/* 210 */ 96, 35, 36, 37, 38, 24, 102, 41, 42, 7,
/* 220 */ 79, 9, 10, 82, 47, 48, 49, 50, 51, 52,
/* 230 */ 53, 54, 55, 56, 7, 109, 9, 10, 8, 7,
/* 240 */ 8, 8, 10, 102, 67, 68, 69, 25, 15, 7,
/* 250 */ 23, 24, 10, 41, 27, 28, 73, 74, 75, 76,
/* 260 */ 33, 10, 35, 36, 37, 38, 44, 8, 41, 42,
/* 270 */ 76, 77, 17, 79, 15, 101, 82, 47, 48, 49,
/* 280 */ 50, 51, 52, 53, 54, 55, 56, 90, 8, 7,
/* 290 */ 96, 40, 10, 11, 29, 15, 102, 67, 68, 69,
/* 300 */ 18, 104, 47, 48, 49, 50, 51, 52, 53, 54,
/* 310 */ 55, 56, 47, 48, 49, 50, 51, 52, 53, 54,
/* 320 */ 55, 56, 67, 68, 69, 7, 101, 9, 10, 104,
/* 330 */ 8, 27, 67, 68, 69, 31, 32, 15, 84, 26,
/* 340 */ 18, 23, 24, 11, 13, 27, 28, 43, 19, 7,
/* 350 */ 8, 33, 10, 35, 36, 37, 38, 44, 26, 41,
/* 360 */ 42, 7, 26, 9, 10, 34, 1, 2, 3, 4,
/* 370 */ 5, 6, 7, 42, 15, 4, 8, 23, 24, 78,
/* 380 */ 44, 27, 28, 15, 83, 10, 18, 33, 23, 35,
/* 390 */ 36, 37, 38, 84, 93, 41, 42, 7, 79, 9,
/* 400 */ 10, 82, 21, 44, 76, 77, 100, 79, 80, 81,
/* 410 */ 82, 105, 7, 23, 24, 10, 3, 27, 28, 91,
/* 420 */ 29, 102, 94, 33, 96, 35, 36, 37, 38, 83,
/* 430 */ 102, 41, 42, 75, 76, 47, 48, 49, 50, 51,
/* 440 */ 52, 53, 54, 55, 56, 7, 28, 9, 10, 3,
/* 450 */ 11, 101, 13, 7, 108, 67, 68, 69, 86, 87,
/* 460 */ 44, 23, 24, 89, 13, 7, 28, 9, 10, 23,
/* 470 */ 78, 33, 29, 35, 36, 37, 38, 29, 104, 41,
/* 480 */ 42, 23, 24, 8, 38, 93, 28, 44, 105, 46,
/* 490 */ 15, 33, 44, 35, 36, 37, 38, 83, 106, 41,
/* 500 */ 42, 58, 59, 60, 61, 62, 63, 64, 65, 66,
/* 510 */ 7, 79, 9, 10, 82, 78, 70, 71, 7, 8,
/* 520 */ 83, 10, 78, 101, 15, 7, 23, 24, 10, 7,
/* 530 */ 93, 28, 10, 22, 102, 26, 33, 93, 35, 36,
/* 540 */ 37, 38, 76, 77, 41, 79, 80, 84, 82, 78,
/* 550 */ 106, 85, 86, 7, 83, 9, 10, 91, 40, 8,
/* 560 */ 94, 29, 96, 101, 93, 89, 15, 84, 102, 23,
/* 570 */ 24, 89, 100, 107, 28, 103, 44, 105, 46, 33,
/* 580 */ 104, 35, 36, 37, 38, 21, 104, 41, 9, 28,
/* 590 */ 58, 59, 60, 61, 62, 63, 64, 65, 66, 26,
/* 600 */ 39, 8, 15, 76, 77, 44, 79, 80, 15, 82,
/* 610 */ 100, 76, 85, 76, 77, 105, 79, 80, 91, 82,
/* 620 */ 8, 94, 85, 96, 41, 78, 41, 15, 91, 102,
/* 630 */ 83, 94, 97, 96, 107, 44, 8, 46, 34, 102,
/* 640 */ 93, 11, 28, 15, 107, 7, 8, 112, 10, 58,
/* 650 */ 59, 60, 61, 62, 63, 64, 65, 66, 76, 77,
/* 660 */ 22, 79, 80, 7, 82, 9, 10, 85, 76, 77,
/* 670 */ 89, 79, 80, 91, 82, 8, 94, 85, 96, 10,
/* 680 */ 24, 10, 15, 91, 102, 104, 94, 15, 96, 107,
/* 690 */ 8, 35, 36, 78, 102, 8, 8, 41, 8, 107,
/* 700 */ 76, 77, 15, 79, 80, 15, 82, 18, 93, 85,
/* 710 */ 76, 77, 89, 79, 80, 91, 82, 8, 94, 85,
/* 720 */ 96, 106, 8, 8, 15, 91, 102, 104, 94, 15,
/* 730 */ 96, 107, 10, 8, 76, 77, 102, 79, 80, 8,
/* 740 */ 82, 107, 89, 85, 76, 77, 15, 79, 80, 91,
/* 750 */ 82, 78, 94, 85, 96, 22, 8, 104, 44, 91,
/* 760 */ 102, 8, 94, 15, 96, 107, 93, 8, 15, 24,
/* 770 */ 102, 8, 29, 9, 15, 107, 76, 77, 15, 79,
/* 780 */ 80, 9, 82, 76, 77, 85, 79, 80, 8, 82,
/* 790 */ 89, 91, 85, 89, 94, 15, 96, 44, 91, 3,
/* 800 */ 9, 94, 102, 96, 78, 104, 100, 107, 104, 102,
/* 810 */ 9, 105, 76, 77, 107, 79, 80, 70, 82, 93,
/* 820 */ 78, 85, 76, 77, 29, 79, 80, 91, 82, 3,
/* 830 */ 94, 8, 96, 7, 10, 93, 78, 91, 102, 78,
/* 840 */ 94, 30, 96, 107, 30, 99, 78, 57, 102, 23,
/* 850 */ 43, 93, 76, 77, 93, 79, 80, 10, 82, 76,
/* 860 */ 77, 93, 79, 80, 38, 82, 11, 91, 103, 15,
/* 870 */ 94, 93, 96, 104, 91, 99, 15, 94, 102, 96,
/* 880 */ 76, 77, 99, 79, 80, 102, 82, 95, 101, 9,
/* 890 */ 106, 92, 86, 88, 15, 91, 70, 71, 94, 26,
/* 900 */ 96, 98, 113, 99, 76, 77, 102, 79, 80, 81,
/* 910 */ 82, 113, 113, 88, 76, 77, 113, 79, 80, 91,
/* 920 */ 82, 113, 94, 113, 96, 113, 113, 113, 113, 91,
/* 930 */ 102, 113, 94, 113, 96, 76, 77, 113, 79, 80,
/* 940 */ 102, 82, 76, 77, 113, 79, 80, 113, 82, 111,
/* 950 */ 91, 113, 113, 94, 113, 96, 113, 91, 113, 113,
/* 960 */ 94, 102, 96, 76, 77, 113, 79, 80, 102, 82,
/* 970 */ 113, 113, 113, 113, 113, 113, 113, 113, 91, 113,
/* 980 */ 113, 94, 113, 96, 76, 77, 113, 79, 80, 102,
/* 990 */ 82, 76, 77, 113, 79, 80, 113, 82, 113, 91,
/* 1000 */ 113, 113, 94, 113, 96, 113, 91, 113, 113, 94,
/* 1010 */ 102, 96, 76, 77, 113, 79, 80, 102, 82, 76,
/* 1020 */ 77, 113, 79, 80, 113, 82, 113, 91, 113, 113,
/* 1030 */ 94, 113, 96, 113, 91, 113, 113, 94, 102, 96,
/* 1040 */ 76, 77, 113, 79, 80, 102, 82, 113, 113, 113,
/* 1050 */ 113, 113, 113, 113, 113, 91, 113, 113, 94, 113,
/* 1060 */ 96, 76, 77, 113, 79, 80, 102, 82, 76, 77,
/* 1070 */ 113, 79, 80, 113, 82, 113, 91, 113, 113, 94,
/* 1080 */ 113, 96, 113, 91, 113, 113, 94, 102, 96, 76,
/* 1090 */ 77, 113, 79, 80, 102, 82, 76, 77, 113, 79,
/* 1100 */ 80, 113, 82, 113, 91, 113, 113, 94, 113, 96,
/* 1110 */ 113, 91, 113, 113, 94, 102, 96, 76, 77, 113,
/* 1120 */ 79, 80, 102, 82, 113, 113, 113, 113, 113, 113,
/* 1130 */ 113, 113, 91, 113, 113, 94, 113, 96, 76, 77,
/* 1140 */ 113, 79, 80, 102, 82, 76, 77, 113, 79, 80,
/* 1150 */ 113, 82, 113, 91, 113, 113, 94, 113, 96, 113,
/* 1160 */ 91, 113, 113, 94, 102, 96, 76, 77, 113, 79,
/* 1170 */ 80, 102, 82, 76, 77, 113, 79, 113, 113, 82,
/* 1180 */ 113, 91, 113, 113, 94, 113, 96, 113, 91, 113,
/* 1190 */ 113, 94, 102, 96, 76, 77, 113, 79, 113, 102,
/* 1200 */ 82, 113, 113, 113, 113, 113, 113, 113, 113, 91,
/* 1210 */ 113, 113, 94, 113, 96, 76, 77, 113, 79, 113,
/* 1220 */ 102, 82, 76, 77, 113, 79, 113, 113, 82, 113,
/* 1230 */ 91, 113, 113, 94, 113, 96, 113, 91, 113, 113,
/* 1240 */ 113, 102, 96, 76, 77, 113, 79, 113, 102, 82,
/* 1250 */ 76, 77, 113, 79, 113, 113, 82, 113, 91, 113,
/* 1260 */ 113, 76, 77, 96, 79, 113, 113, 82, 113, 102,
/* 1270 */ 96, 113, 113, 113, 113, 113, 102, 113, 113, 113,
/* 1280 */ 113, 96, 113, 113, 113, 113, 113, 102,
);
const YY_SHIFT_USE_DFLT = -29;
const YY_SHIFT_MAX = 232;
static public $yy_shift_ofst = array(
/* 0 */ 365, 103, 29, 29, 29, 29, 29, 29, 29, 29,
/* 10 */ 29, 29, 29, 354, -7, -7, 390, 140, 140, 390,
/* 20 */ 354, 140, 140, 176, 140, 140, 140, 140, 140, 140,
/* 30 */ 140, 140, 140, 140, 140, 140, 140, 140, 140, 140,
/* 40 */ 66, 318, 227, 438, 458, 503, 546, 503, 212, 656,
/* 50 */ 107, 826, 10, 714, 753, 331, 161, 359, -8, -8,
/* 60 */ 509, 509, 509, 359, 359, 532, 443, 591, 365, 446,
/* 70 */ 1, 282, 518, 322, 368, 522, 405, 405, 405, 242,
/* 80 */ 242, 439, 780, 405, 405, 405, 405, 451, 854, 861,
/* 90 */ 880, 854, 451, 854, 451, 265, 255, 230, 177, 388,
/* 100 */ 388, 388, 388, 388, 388, 388, 388, 511, 638, 304,
/* 110 */ 109, 134, 97, 52, 81, 232, 97, 342, -28, -28,
/* 120 */ 259, 74, 233, 280, 763, 731, 551, 709, 690, 313,
/* 130 */ 687, 222, -28, 336, 125, 148, 748, 759, 135, 448,
/* 140 */ -28, 628, 612, 593, 108, 667, -28, 179, 416, 416,
/* 150 */ 879, 416, 879, 416, 880, 451, 416, 416, 873, 614,
/* 160 */ 416, 451, 416, 416, 416, 451, 451, -29, -29, -29,
/* 170 */ -29, -29, -29, -29, -24, 40, 20, 561, -15, 100,
/* 180 */ 251, -15, 191, 332, -15, 475, 7, 80, -15, 823,
/* 190 */ 745, 630, 585, 604, 583, 669, 715, 722, 688, 682,
/* 200 */ 801, 672, 689, 671, 587, 573, 725, 811, 814, 824,
/* 210 */ 807, 790, 795, 747, 772, 733, 764, 743, 796, 579,
/* 220 */ 791, 847, 564, 371, 375, 381, 418, 413, 329, 391,
/* 230 */ 855, 77, 193,
);
const YY_REDUCE_USE_DFLT = -57;
const YY_REDUCE_MAX = 173;
static public $yy_reduce_ofst = array(
/* 0 */ 183, 466, 700, 668, 537, 658, 634, 582, 592, 624,
/* 10 */ 527, 736, 707, -33, 114, 328, 828, 804, 746, 4,
/* 20 */ 838, 783, 776, 78, 1013, 992, 985, 887, 1090, 936,
/* 30 */ 943, 915, 908, 866, 964, 1062, 859, 1069, 1041, 1020,
/* 40 */ 1118, 1097, 1139, 1167, 1146, 1174, 194, 1185, 35, 105,
/* 50 */ 471, 535, 437, 547, -38, 472, 141, -56, 319, 432,
/* 60 */ 444, 392, 615, 301, -38, 346, 346, 346, 358, 86,
/* 70 */ 225, 197, 225, 673, 673, 476, 704, 701, 653, 476,
/* 80 */ 374, 306, 726, 623, 581, 482, 476, 306, 758, 768,
/* 90 */ 372, 742, 510, 761, 706, 126, 126, 126, 126, 126,
/* 100 */ 126, 126, 126, 126, 126, 126, 126, 769, 769, 792,
/* 110 */ 799, 792, 792, 414, 769, 769, 792, 769, 765, 765,
/* 120 */ 778, 414, 778, 778, 778, 778, 778, 778, 778, 414,
/* 130 */ 778, 414, 765, 414, 787, 414, 778, 778, 414, 414,
/* 140 */ 765, 778, 778, 778, 414, 778, 765, 803, 414, 414,
/* 150 */ 805, 414, 825, 414, 806, 383, 414, 414, 784, 422,
/* 160 */ 414, 383, 414, 414, 414, 383, 383, 463, 462, 350,
/* 170 */ 483, 309, 254, 174,
);
static public $yyExpectedTokens = array(
/* 0 */ array(1, 2, 3, 4, 5, 6, 7, 23, ),
/* 1 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, 45, ),
/* 2 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, 45, ),
/* 3 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, 45, ),
/* 4 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, 45, ),
/* 5 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, 45, ),
/* 6 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, 45, ),
/* 7 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, 45, ),
/* 8 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, 45, ),
/* 9 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, 45, ),
/* 10 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, 45, ),
/* 11 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, 45, ),
/* 12 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, 45, ),
/* 13 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 14 */ array(7, 9, 10, 12, 14, 16, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 15 */ array(7, 9, 10, 12, 14, 16, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 16 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 17 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 18 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 19 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 20 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 21 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 22 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 23 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 24 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 25 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 26 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 27 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 28 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 29 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 30 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 31 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 32 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 33 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 34 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 35 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 36 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 37 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 38 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 39 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 40 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, 43, ),
/* 41 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 42 */ array(7, 9, 10, 23, 24, 27, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 43 */ array(7, 9, 10, 23, 24, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 44 */ array(7, 9, 10, 23, 24, 28, 33, 35, 36, 37, 38, 41, 42, ),
/* 45 */ array(7, 9, 10, 23, 24, 28, 33, 35, 36, 37, 38, 41, ),
/* 46 */ array(7, 9, 10, 23, 24, 28, 33, 35, 36, 37, 38, 41, ),
/* 47 */ array(7, 9, 10, 23, 24, 28, 33, 35, 36, 37, 38, 41, ),
/* 48 */ array(7, 9, 10, 41, ),
/* 49 */ array(7, 9, 10, 24, 35, 36, 41, ),
/* 50 */ array(8, 13, 15, 28, 39, 44, ),
/* 51 */ array(3, 7, 23, 38, 70, 71, ),
/* 52 */ array(8, 13, 15, 44, ),
/* 53 */ array(8, 15, 44, ),
/* 54 */ array(8, 15, 44, ),
/* 55 */ array(13, 34, 42, ),
/* 56 */ array(9, 10, 41, ),
/* 57 */ array(15, 44, ),
/* 58 */ array(9, 41, ),
/* 59 */ array(9, 41, ),
/* 60 */ array(15, 26, ),
/* 61 */ array(15, 26, ),
/* 62 */ array(15, 26, ),
/* 63 */ array(15, 44, ),
/* 64 */ array(15, 44, ),
/* 65 */ array(29, 44, 46, 58, 59, 60, 61, 62, 63, 64, 65, 66, ),
/* 66 */ array(29, 44, 46, 58, 59, 60, 61, 62, 63, 64, 65, 66, ),
/* 67 */ array(44, 46, 58, 59, 60, 61, 62, 63, 64, 65, 66, ),
/* 68 */ array(1, 2, 3, 4, 5, 6, 7, 23, ),
/* 69 */ array(3, 7, 23, 38, 70, 71, ),
/* 70 */ array(7, 10, 11, 40, ),
/* 71 */ array(7, 10, 11, 18, ),
/* 72 */ array(7, 10, 40, ),
/* 73 */ array(8, 15, 18, ),
/* 74 */ array(8, 15, 18, ),
/* 75 */ array(7, 10, ),
/* 76 */ array(7, 10, ),
/* 77 */ array(7, 10, ),
/* 78 */ array(7, 10, ),
/* 79 */ array(7, 10, ),
/* 80 */ array(7, 10, ),
/* 81 */ array(11, 13, ),
/* 82 */ array(8, 15, ),
/* 83 */ array(7, 10, ),
/* 84 */ array(7, 10, ),
/* 85 */ array(7, 10, ),
/* 86 */ array(7, 10, ),
/* 87 */ array(13, ),
/* 88 */ array(15, ),
/* 89 */ array(15, ),
/* 90 */ array(9, ),
/* 91 */ array(15, ),
/* 92 */ array(13, ),
/* 93 */ array(15, ),
/* 94 */ array(13, ),
/* 95 */ array(29, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 67, 68, 69, ),
/* 96 */ array(17, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 67, 68, 69, ),
/* 97 */ array(8, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 67, 68, 69, ),
/* 98 */ array(29, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 67, 68, 69, ),
/* 99 */ array(47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 67, 68, 69, ),
/* 100 */ array(47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 67, 68, 69, ),
/* 101 */ array(47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 67, 68, 69, ),
/* 102 */ array(47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 67, 68, 69, ),
/* 103 */ array(47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 67, 68, 69, ),
/* 104 */ array(47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 67, 68, 69, ),
/* 105 */ array(47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 67, 68, 69, ),
/* 106 */ array(47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 67, 68, 69, ),
/* 107 */ array(7, 8, 10, 22, ),
/* 108 */ array(7, 8, 10, 22, ),
/* 109 */ array(27, 31, 32, 43, ),
/* 110 */ array(10, 12, 14, 16, ),
/* 111 */ array(8, 27, 31, 32, ),
/* 112 */ array(27, 31, 32, ),
/* 113 */ array(8, 20, 44, ),
/* 114 */ array(7, 10, 11, ),
/* 115 */ array(7, 8, 10, ),
/* 116 */ array(27, 31, 32, ),
/* 117 */ array(7, 8, 10, ),
/* 118 */ array(34, 42, ),
/* 119 */ array(34, 42, ),
/* 120 */ array(8, 15, ),
/* 121 */ array(8, 44, ),
/* 122 */ array(8, 15, ),
/* 123 */ array(8, 15, ),
/* 124 */ array(8, 15, ),
/* 125 */ array(8, 15, ),
/* 126 */ array(8, 15, ),
/* 127 */ array(8, 15, ),
/* 128 */ array(8, 15, ),
/* 129 */ array(26, 44, ),
/* 130 */ array(8, 15, ),
/* 131 */ array(25, 44, ),
/* 132 */ array(34, 42, ),
/* 133 */ array(26, 44, ),
/* 134 */ array(7, 28, ),
/* 135 */ array(8, 44, ),
/* 136 */ array(8, 15, ),
/* 137 */ array(8, 15, ),
/* 138 */ array(8, 44, ),
/* 139 */ array(29, 44, ),
/* 140 */ array(34, 42, ),
/* 141 */ array(8, 15, ),
/* 142 */ array(8, 15, ),
/* 143 */ array(8, 15, ),
/* 144 */ array(8, 44, ),
/* 145 */ array(8, 15, ),
/* 146 */ array(34, 42, ),
/* 147 */ array(9, 10, ),
/* 148 */ array(44, ),
/* 149 */ array(44, ),
/* 150 */ array(15, ),
/* 151 */ array(44, ),
/* 152 */ array(15, ),
/* 153 */ array(44, ),
/* 154 */ array(9, ),
/* 155 */ array(13, ),
/* 156 */ array(44, ),
/* 157 */ array(44, ),
/* 158 */ array(26, ),
/* 159 */ array(28, ),
/* 160 */ array(44, ),
/* 161 */ array(13, ),
/* 162 */ array(44, ),
/* 163 */ array(44, ),
/* 164 */ array(44, ),
/* 165 */ array(13, ),
/* 166 */ array(13, ),
/* 167 */ array(),
/* 168 */ array(),
/* 169 */ array(),
/* 170 */ array(),
/* 171 */ array(),
/* 172 */ array(),
/* 173 */ array(),
/* 174 */ array(28, 34, 39, 43, ),
/* 175 */ array(11, 28, 39, ),
/* 176 */ array(22, 28, 39, ),
/* 177 */ array(28, 39, 44, ),
/* 178 */ array(28, 39, ),
/* 179 */ array(11, 34, ),
/* 180 */ array(10, 40, ),
/* 181 */ array(28, 39, ),
/* 182 */ array(10, 24, ),
/* 183 */ array(11, 26, ),
/* 184 */ array(28, 39, ),
/* 185 */ array(8, 15, ),
/* 186 */ array(25, 43, ),
/* 187 */ array(17, 25, ),
/* 188 */ array(28, 39, ),
/* 189 */ array(8, ),
/* 190 */ array(24, ),
/* 191 */ array(11, ),
/* 192 */ array(41, ),
/* 193 */ array(34, ),
/* 194 */ array(41, ),
/* 195 */ array(10, ),
/* 196 */ array(8, ),
/* 197 */ array(10, ),
/* 198 */ array(8, ),
/* 199 */ array(8, ),
/* 200 */ array(9, ),
/* 201 */ array(15, ),
/* 202 */ array(18, ),
/* 203 */ array(10, ),
/* 204 */ array(15, ),
/* 205 */ array(26, ),
/* 206 */ array(8, ),
/* 207 */ array(30, ),
/* 208 */ array(30, ),
/* 209 */ array(10, ),
/* 210 */ array(43, ),
/* 211 */ array(57, ),
/* 212 */ array(29, ),
/* 213 */ array(70, ),
/* 214 */ array(9, ),
/* 215 */ array(22, ),
/* 216 */ array(9, ),
/* 217 */ array(29, ),
/* 218 */ array(3, ),
/* 219 */ array(9, ),
/* 220 */ array(9, ),
/* 221 */ array(10, ),
/* 222 */ array(21, ),
/* 223 */ array(4, ),
/* 224 */ array(10, ),
/* 225 */ array(21, ),
/* 226 */ array(28, ),
/* 227 */ array(3, ),
/* 228 */ array(19, ),
/* 229 */ array(29, ),
/* 230 */ array(11, ),
/* 231 */ array(10, ),
/* 232 */ array(4, ),
/* 233 */ array(),
/* 234 */ array(),
/* 235 */ array(),
/* 236 */ array(),
/* 237 */ array(),
/* 238 */ array(),
/* 239 */ array(),
/* 240 */ array(),
/* 241 */ array(),
/* 242 */ array(),
/* 243 */ array(),
/* 244 */ array(),
/* 245 */ array(),
/* 246 */ array(),
/* 247 */ array(),
/* 248 */ array(),
/* 249 */ array(),
/* 250 */ array(),
/* 251 */ array(),
/* 252 */ array(),
/* 253 */ array(),
/* 254 */ array(),
/* 255 */ array(),
/* 256 */ array(),
/* 257 */ array(),
/* 258 */ array(),
/* 259 */ array(),
/* 260 */ array(),
/* 261 */ array(),
/* 262 */ array(),
/* 263 */ array(),
/* 264 */ array(),
/* 265 */ array(),
/* 266 */ array(),
/* 267 */ array(),
/* 268 */ array(),
/* 269 */ array(),
/* 270 */ array(),
/* 271 */ array(),
/* 272 */ array(),
/* 273 */ array(),
/* 274 */ array(),
/* 275 */ array(),
/* 276 */ array(),
/* 277 */ array(),
/* 278 */ array(),
/* 279 */ array(),
/* 280 */ array(),
/* 281 */ array(),
/* 282 */ array(),
/* 283 */ array(),
/* 284 */ array(),
/* 285 */ array(),
/* 286 */ array(),
/* 287 */ array(),
/* 288 */ array(),
/* 289 */ array(),
/* 290 */ array(),
/* 291 */ array(),
/* 292 */ array(),
/* 293 */ array(),
/* 294 */ array(),
/* 295 */ array(),
/* 296 */ array(),
/* 297 */ array(),
/* 298 */ array(),
/* 299 */ array(),
/* 300 */ array(),
/* 301 */ array(),
/* 302 */ array(),
/* 303 */ array(),
/* 304 */ array(),
/* 305 */ array(),
/* 306 */ array(),
/* 307 */ array(),
/* 308 */ array(),
/* 309 */ array(),
/* 310 */ array(),
/* 311 */ array(),
/* 312 */ array(),
/* 313 */ array(),
/* 314 */ array(),
/* 315 */ array(),
/* 316 */ array(),
/* 317 */ array(),
/* 318 */ array(),
/* 319 */ array(),
/* 320 */ array(),
/* 321 */ array(),
/* 322 */ array(),
/* 323 */ array(),
/* 324 */ array(),
/* 325 */ array(),
/* 326 */ array(),
/* 327 */ array(),
/* 328 */ array(),
/* 329 */ array(),
/* 330 */ array(),
/* 331 */ array(),
/* 332 */ array(),
/* 333 */ array(),
/* 334 */ array(),
/* 335 */ array(),
/* 336 */ array(),
/* 337 */ array(),
/* 338 */ array(),
/* 339 */ array(),
/* 340 */ array(),
/* 341 */ array(),
/* 342 */ array(),
/* 343 */ array(),
/* 344 */ array(),
/* 345 */ array(),
/* 346 */ array(),
/* 347 */ array(),
/* 348 */ array(),
/* 349 */ array(),
/* 350 */ array(),
/* 351 */ array(),
/* 352 */ array(),
/* 353 */ array(),
/* 354 */ array(),
/* 355 */ array(),
/* 356 */ array(),
/* 357 */ array(),
/* 358 */ array(),
/* 359 */ array(),
/* 360 */ array(),
);
static public $yy_default = array(
/* 0 */ 542, 542, 542, 542, 542, 542, 542, 542, 542, 542,
/* 10 */ 542, 542, 542, 528, 542, 542, 542, 486, 486, 542,
/* 20 */ 542, 486, 486, 542, 542, 542, 542, 542, 542, 542,
/* 30 */ 542, 542, 542, 542, 542, 542, 542, 542, 542, 542,
/* 40 */ 542, 542, 542, 542, 542, 542, 542, 542, 542, 542,
/* 50 */ 542, 542, 542, 542, 542, 449, 542, 409, 542, 542,
/* 60 */ 409, 409, 409, 409, 409, 496, 496, 496, 361, 542,
/* 70 */ 459, 542, 459, 432, 432, 542, 542, 542, 542, 542,
/* 80 */ 542, 452, 423, 542, 542, 542, 542, 452, 409, 409,
/* 90 */ 542, 409, 444, 409, 445, 542, 542, 542, 542, 505,
/* 100 */ 506, 500, 510, 502, 501, 509, 494, 542, 542, 542,
/* 110 */ 542, 542, 420, 542, 542, 542, 491, 542, 479, 457,
/* 120 */ 542, 542, 542, 542, 542, 542, 542, 542, 542, 542,
/* 130 */ 542, 485, 480, 542, 459, 542, 542, 542, 542, 542,
/* 140 */ 477, 542, 542, 542, 542, 542, 478, 542, 427, 497,
/* 150 */ 541, 391, 541, 418, 542, 447, 428, 411, 422, 459,
/* 160 */ 415, 450, 531, 530, 529, 474, 446, 490, 459, 459,
/* 170 */ 490, 490, 490, 459, 542, 414, 419, 410, 419, 435,
/* 180 */ 542, 492, 542, 472, 511, 423, 542, 542, 542, 542,
/* 190 */ 542, 542, 542, 435, 542, 542, 542, 542, 542, 542,
/* 200 */ 542, 542, 432, 542, 542, 472, 423, 440, 542, 542,
/* 210 */ 542, 423, 542, 542, 542, 423, 542, 542, 542, 542,
/* 220 */ 542, 542, 542, 542, 542, 542, 448, 542, 416, 542,
/* 230 */ 414, 542, 542, 389, 388, 533, 483, 465, 469, 467,
/* 240 */ 468, 466, 481, 406, 403, 413, 402, 401, 400, 443,
/* 250 */ 362, 417, 393, 540, 392, 390, 394, 442, 538, 539,
/* 260 */ 535, 534, 532, 363, 367, 431, 430, 421, 470, 473,
/* 270 */ 429, 475, 436, 437, 438, 439, 487, 488, 375, 376,
/* 280 */ 377, 378, 537, 374, 426, 441, 373, 536, 425, 464,
/* 290 */ 408, 489, 423, 424, 405, 404, 371, 372, 407, 399,
/* 300 */ 434, 433, 460, 461, 462, 463, 456, 455, 476, 453,
/* 310 */ 458, 454, 379, 369, 524, 495, 380, 381, 523, 522,
/* 320 */ 366, 507, 508, 365, 382, 384, 471, 472, 397, 398,
/* 330 */ 396, 395, 385, 387, 386, 383, 504, 503, 498, 499,
/* 340 */ 513, 514, 526, 527, 451, 484, 482, 525, 515, 516,
/* 350 */ 368, 440, 493, 370, 512, 521, 517, 518, 519, 520,
/* 360 */ 364,
);
/* The next thing included is series of defines which control
** various aspects of the generated parser.
** self::YYNOCODE is a number which corresponds
** to no legal terminal or nonterminal number. This
** number is used to fill in empty slots of the hash
** table.
** self::YYFALLBACK If defined, this indicates that one or more tokens
** have fall-back values which should be used if the
** original value of the token will not parse.
** self::YYSTACKDEPTH is the maximum depth of the parser's stack.
** self::YYNSTATE the combined number of states.
** self::YYNRULE the number of rules in the grammar
** self::YYERRORSYMBOL is the code number of the error symbol. If not
** defined, then do no error processing.
*/
const YYNOCODE = 114;
const YYSTACKDEPTH = 100;
const YYNSTATE = 361;
const YYNRULE = 181;
const YYERRORSYMBOL = 72;
const YYERRSYMDT = 'yy0';
const YYFALLBACK = 0;
/** 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(
);
/**
* 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(
'$', 'COMMENT', 'PHP', 'OTHER',
'SHORTTAGEND', 'SHORTTAGSTART', 'XML', 'LDEL',
'RDEL', 'DOLLAR', 'ID', 'EQUAL',
'FOREACH', 'PTR', 'IF', 'SPACE',
'FOR', 'SEMICOLON', 'INCDEC', 'TO',
'STEP', 'AS', 'APTR', 'LDELSLASH',
'INTEGER', 'COMMA', 'COLON', 'UNIMATH',
'OPENP', 'CLOSEP', 'QMARK', 'MATH',
'ANDSYM', 'TYPECAST', 'DOT', 'BOOLEAN',
'NULL', 'SINGLEQUOTESTRING', 'QUOTE', 'DOUBLECOLON',
'AT', 'HATCH', 'OPENB', 'CLOSEB',
'VERT', 'NOT', 'ISIN', 'ISDIVBY',
'ISNOTDIVBY', 'ISEVEN', 'ISNOTEVEN', 'ISEVENBY',
'ISNOTEVENBY', 'ISODD', 'ISNOTODD', 'ISODDBY',
'ISNOTODDBY', 'INSTANCEOF', 'EQUALS', 'NOTEQUALS',
'GREATERTHAN', 'LESSTHAN', 'GREATEREQUAL', 'LESSEQUAL',
'IDENTITY', 'NONEIDENTITY', 'MOD', 'LAND',
'LOR', 'LXOR', 'BACKTICK', 'DOLLARID',
'error', 'start', 'template', 'template_element',
'smartytag', 'value', 'attributes', 'variable',
'expr', 'ternary', 'varindexed', 'modifier',
'modparameters', 'ifexprs', 'statement', 'statements',
'optspace', 'varvar', 'foraction', 'array',
'specialclose', 'attribute', 'exprs', 'math',
'function', 'doublequoted', 'method', 'params',
'objectchain', 'arrayindex', 'object', 'indexdef',
'varvarele', 'objectelement', 'modparameter', 'ifexpr',
'ifcond', 'lop', 'arrayelements', 'arrayelement',
'doublequotedcontent',
);
/**
* For tracing reduce actions, the names of all rules are required.
* @var array
*/
static public $yyRuleName = array(
/* 0 */ "start ::= template",
/* 1 */ "template ::= template_element",
/* 2 */ "template ::= template template_element",
/* 3 */ "template_element ::= smartytag",
/* 4 */ "template_element ::= COMMENT",
/* 5 */ "template_element ::= PHP OTHER SHORTTAGEND",
/* 6 */ "template_element ::= SHORTTAGSTART OTHER SHORTTAGEND",
/* 7 */ "template_element ::= XML",
/* 8 */ "template_element ::= SHORTTAGEND",
/* 9 */ "template_element ::= OTHER",
/* 10 */ "smartytag ::= LDEL value RDEL",
/* 11 */ "smartytag ::= LDEL value attributes RDEL",
/* 12 */ "smartytag ::= LDEL variable attributes RDEL",
/* 13 */ "smartytag ::= LDEL expr attributes RDEL",
/* 14 */ "smartytag ::= LDEL ternary attributes RDEL",
/* 15 */ "smartytag ::= LDEL DOLLAR ID EQUAL value RDEL",
/* 16 */ "smartytag ::= LDEL DOLLAR ID EQUAL expr RDEL",
/* 17 */ "smartytag ::= LDEL DOLLAR ID EQUAL expr attributes RDEL",
/* 18 */ "smartytag ::= LDEL DOLLAR ID EQUAL ternary attributes RDEL",
/* 19 */ "smartytag ::= LDEL varindexed EQUAL expr attributes RDEL",
/* 20 */ "smartytag ::= LDEL varindexed EQUAL ternary attributes RDEL",
/* 21 */ "smartytag ::= LDEL ID attributes RDEL",
/* 22 */ "smartytag ::= LDEL FOREACH attributes RDEL",
/* 23 */ "smartytag ::= LDEL ID RDEL",
/* 24 */ "smartytag ::= LDEL ID PTR ID attributes RDEL",
/* 25 */ "smartytag ::= LDEL ID modifier modparameters attributes RDEL",
/* 26 */ "smartytag ::= LDEL ID PTR ID modifier modparameters attributes RDEL",
/* 27 */ "smartytag ::= LDEL IF SPACE ifexprs RDEL",
/* 28 */ "smartytag ::= LDEL IF SPACE statement RDEL",
/* 29 */ "smartytag ::= LDEL FOR SPACE statements SEMICOLON optspace ifexprs SEMICOLON optspace DOLLAR varvar foraction RDEL",
/* 30 */ "foraction ::= EQUAL expr",
/* 31 */ "foraction ::= INCDEC",
/* 32 */ "smartytag ::= LDEL FOR SPACE statement TO expr RDEL",
/* 33 */ "smartytag ::= LDEL FOR SPACE statement TO expr STEP expr RDEL",
/* 34 */ "smartytag ::= LDEL FOREACH SPACE value AS DOLLAR varvar RDEL",
/* 35 */ "smartytag ::= LDEL FOREACH SPACE value AS DOLLAR varvar APTR DOLLAR varvar RDEL",
/* 36 */ "smartytag ::= LDEL FOREACH SPACE array AS DOLLAR varvar RDEL",
/* 37 */ "smartytag ::= LDEL FOREACH SPACE array AS DOLLAR varvar APTR DOLLAR varvar RDEL",
/* 38 */ "smartytag ::= LDELSLASH ID RDEL",
/* 39 */ "smartytag ::= LDELSLASH specialclose RDEL",
/* 40 */ "specialclose ::= IF",
/* 41 */ "specialclose ::= FOR",
/* 42 */ "specialclose ::= FOREACH",
/* 43 */ "smartytag ::= LDELSLASH ID attributes RDEL",
/* 44 */ "smartytag ::= LDELSLASH ID modifier modparameters attributes RDEL",
/* 45 */ "smartytag ::= LDELSLASH ID PTR ID RDEL",
/* 46 */ "attributes ::= attributes attribute",
/* 47 */ "attributes ::= attribute",
/* 48 */ "attributes ::=",
/* 49 */ "attribute ::= SPACE ID EQUAL ID",
/* 50 */ "attribute ::= SPACE ID EQUAL expr",
/* 51 */ "attribute ::= SPACE ID EQUAL value",
/* 52 */ "attribute ::= SPACE ID EQUAL ternary",
/* 53 */ "attribute ::= SPACE ID",
/* 54 */ "attribute ::= SPACE INTEGER EQUAL expr",
/* 55 */ "statements ::= statement",
/* 56 */ "statements ::= statements COMMA statement",
/* 57 */ "statement ::= DOLLAR varvar EQUAL expr",
/* 58 */ "expr ::= ID",
/* 59 */ "expr ::= exprs",
/* 60 */ "expr ::= DOLLAR ID COLON ID",
/* 61 */ "expr ::= expr modifier modparameters",
/* 62 */ "exprs ::= value",
/* 63 */ "exprs ::= UNIMATH value",
/* 64 */ "exprs ::= exprs math value",
/* 65 */ "exprs ::= array",
/* 66 */ "ternary ::= OPENP ifexprs CLOSEP QMARK expr COLON expr",
/* 67 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr",
/* 68 */ "math ::= UNIMATH",
/* 69 */ "math ::= MATH",
/* 70 */ "math ::= ANDSYM",
/* 71 */ "value ::= variable",
/* 72 */ "value ::= TYPECAST variable",
/* 73 */ "value ::= variable INCDEC",
/* 74 */ "value ::= INTEGER",
/* 75 */ "value ::= INTEGER DOT INTEGER",
/* 76 */ "value ::= BOOLEAN",
/* 77 */ "value ::= NULL",
/* 78 */ "value ::= function",
/* 79 */ "value ::= OPENP expr CLOSEP",
/* 80 */ "value ::= SINGLEQUOTESTRING",
/* 81 */ "value ::= QUOTE doublequoted QUOTE",
/* 82 */ "value ::= QUOTE QUOTE",
/* 83 */ "value ::= ID DOUBLECOLON method",
/* 84 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP",
/* 85 */ "value ::= ID DOUBLECOLON method objectchain",
/* 86 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain",
/* 87 */ "value ::= ID DOUBLECOLON ID",
/* 88 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex",
/* 89 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain",
/* 90 */ "value ::= smartytag",
/* 91 */ "variable ::= varindexed",
/* 92 */ "variable ::= DOLLAR varvar AT ID",
/* 93 */ "variable ::= object",
/* 94 */ "variable ::= HATCH ID HATCH",
/* 95 */ "variable ::= HATCH variable HATCH",
/* 96 */ "varindexed ::= DOLLAR varvar arrayindex",
/* 97 */ "arrayindex ::= arrayindex indexdef",
/* 98 */ "arrayindex ::=",
/* 99 */ "indexdef ::= DOT ID",
/* 100 */ "indexdef ::= DOT BOOLEAN",
/* 101 */ "indexdef ::= DOT NULL",
/* 102 */ "indexdef ::= DOT INTEGER",
/* 103 */ "indexdef ::= DOT variable",
/* 104 */ "indexdef ::= DOT LDEL exprs RDEL",
/* 105 */ "indexdef ::= OPENB ID CLOSEB",
/* 106 */ "indexdef ::= OPENB ID DOT ID CLOSEB",
/* 107 */ "indexdef ::= OPENB exprs CLOSEB",
/* 108 */ "indexdef ::= OPENB CLOSEB",
/* 109 */ "varvar ::= varvarele",
/* 110 */ "varvar ::= varvar varvarele",
/* 111 */ "varvarele ::= ID",
/* 112 */ "varvarele ::= LDEL expr RDEL",
/* 113 */ "object ::= varindexed objectchain",
/* 114 */ "objectchain ::= objectelement",
/* 115 */ "objectchain ::= objectchain objectelement",
/* 116 */ "objectelement ::= PTR ID arrayindex",
/* 117 */ "objectelement ::= PTR variable arrayindex",
/* 118 */ "objectelement ::= PTR LDEL expr RDEL arrayindex",
/* 119 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex",
/* 120 */ "objectelement ::= PTR method",
/* 121 */ "function ::= ID OPENP params CLOSEP",
/* 122 */ "method ::= ID OPENP params CLOSEP",
/* 123 */ "params ::= expr COMMA params",
/* 124 */ "params ::= expr",
/* 125 */ "params ::=",
/* 126 */ "modifier ::= VERT AT ID",
/* 127 */ "modifier ::= VERT ID",
/* 128 */ "modparameters ::= modparameters modparameter",
/* 129 */ "modparameters ::=",
/* 130 */ "modparameter ::= COLON exprs",
/* 131 */ "modparameter ::= COLON ID",
/* 132 */ "ifexprs ::= ifexpr",
/* 133 */ "ifexprs ::= NOT ifexprs",
/* 134 */ "ifexprs ::= OPENP ifexprs CLOSEP",
/* 135 */ "ifexpr ::= expr",
/* 136 */ "ifexpr ::= expr ifcond expr",
/* 137 */ "ifexpr ::= expr ISIN array",
/* 138 */ "ifexpr ::= expr ISIN value",
/* 139 */ "ifexpr ::= ifexprs lop ifexprs",
/* 140 */ "ifexpr ::= ifexprs ISDIVBY ifexprs",
/* 141 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs",
/* 142 */ "ifexpr ::= ifexprs ISEVEN",
/* 143 */ "ifexpr ::= ifexprs ISNOTEVEN",
/* 144 */ "ifexpr ::= ifexprs ISEVENBY ifexprs",
/* 145 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs",
/* 146 */ "ifexpr ::= ifexprs ISODD",
/* 147 */ "ifexpr ::= ifexprs ISNOTODD",
/* 148 */ "ifexpr ::= ifexprs ISODDBY ifexprs",
/* 149 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs",
/* 150 */ "ifexpr ::= value INSTANCEOF ID",
/* 151 */ "ifexpr ::= value INSTANCEOF value",
/* 152 */ "ifcond ::= EQUALS",
/* 153 */ "ifcond ::= NOTEQUALS",
/* 154 */ "ifcond ::= GREATERTHAN",
/* 155 */ "ifcond ::= LESSTHAN",
/* 156 */ "ifcond ::= GREATEREQUAL",
/* 157 */ "ifcond ::= LESSEQUAL",
/* 158 */ "ifcond ::= IDENTITY",
/* 159 */ "ifcond ::= NONEIDENTITY",
/* 160 */ "ifcond ::= MOD",
/* 161 */ "lop ::= LAND",
/* 162 */ "lop ::= LOR",
/* 163 */ "lop ::= LXOR",
/* 164 */ "array ::= OPENB arrayelements CLOSEB",
/* 165 */ "arrayelements ::= arrayelement",
/* 166 */ "arrayelements ::= arrayelements COMMA arrayelement",
/* 167 */ "arrayelements ::=",
/* 168 */ "arrayelement ::= value APTR expr",
/* 169 */ "arrayelement ::= ID APTR expr",
/* 170 */ "arrayelement ::= expr",
/* 171 */ "doublequoted ::= doublequoted doublequotedcontent",
/* 172 */ "doublequoted ::= doublequotedcontent",
/* 173 */ "doublequotedcontent ::= BACKTICK variable BACKTICK",
/* 174 */ "doublequotedcontent ::= DOLLARID",
/* 175 */ "doublequotedcontent ::= LDEL variable RDEL",
/* 176 */ "doublequotedcontent ::= LDEL expr RDEL",
/* 177 */ "doublequotedcontent ::= smartytag",
/* 178 */ "doublequotedcontent ::= OTHER",
/* 179 */ "optspace ::= SPACE",
/* 180 */ "optspace ::=",
);
/**
* 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' => 73, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 1 ),
array( 'lhs' => 74, 'rhs' => 2 ),
array( 'lhs' => 75, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 3 ),
array( 'lhs' => 75, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 1 ),
array( 'lhs' => 75, 'rhs' => 1 ),
array( 'lhs' => 76, 'rhs' => 3 ),
array( 'lhs' => 76, 'rhs' => 4 ),
array( 'lhs' => 76, 'rhs' => 4 ),
array( 'lhs' => 76, 'rhs' => 4 ),
array( 'lhs' => 76, 'rhs' => 4 ),
array( 'lhs' => 76, 'rhs' => 6 ),
array( 'lhs' => 76, 'rhs' => 6 ),
array( 'lhs' => 76, 'rhs' => 7 ),
array( 'lhs' => 76, 'rhs' => 7 ),
array( 'lhs' => 76, 'rhs' => 6 ),
array( 'lhs' => 76, 'rhs' => 6 ),
array( 'lhs' => 76, 'rhs' => 4 ),
array( 'lhs' => 76, 'rhs' => 4 ),
array( 'lhs' => 76, 'rhs' => 3 ),
array( 'lhs' => 76, 'rhs' => 6 ),
array( 'lhs' => 76, 'rhs' => 6 ),
array( 'lhs' => 76, 'rhs' => 8 ),
array( 'lhs' => 76, 'rhs' => 5 ),
array( 'lhs' => 76, 'rhs' => 5 ),
array( 'lhs' => 76, 'rhs' => 13 ),
array( 'lhs' => 90, 'rhs' => 2 ),
array( 'lhs' => 90, 'rhs' => 1 ),
array( 'lhs' => 76, 'rhs' => 7 ),
array( 'lhs' => 76, 'rhs' => 9 ),
array( 'lhs' => 76, 'rhs' => 8 ),
array( 'lhs' => 76, 'rhs' => 11 ),
array( 'lhs' => 76, 'rhs' => 8 ),
array( 'lhs' => 76, 'rhs' => 11 ),
array( 'lhs' => 76, 'rhs' => 3 ),
array( 'lhs' => 76, 'rhs' => 3 ),
array( 'lhs' => 92, 'rhs' => 1 ),
array( 'lhs' => 92, 'rhs' => 1 ),
array( 'lhs' => 92, 'rhs' => 1 ),
array( 'lhs' => 76, 'rhs' => 4 ),
array( 'lhs' => 76, 'rhs' => 6 ),
array( 'lhs' => 76, 'rhs' => 5 ),
array( 'lhs' => 78, 'rhs' => 2 ),
array( 'lhs' => 78, 'rhs' => 1 ),
array( 'lhs' => 78, 'rhs' => 0 ),
array( 'lhs' => 93, 'rhs' => 4 ),
array( 'lhs' => 93, 'rhs' => 4 ),
array( 'lhs' => 93, 'rhs' => 4 ),
array( 'lhs' => 93, 'rhs' => 4 ),
array( 'lhs' => 93, 'rhs' => 2 ),
array( 'lhs' => 93, 'rhs' => 4 ),
array( 'lhs' => 87, 'rhs' => 1 ),
array( 'lhs' => 87, 'rhs' => 3 ),
array( 'lhs' => 86, 'rhs' => 4 ),
array( 'lhs' => 80, 'rhs' => 1 ),
array( 'lhs' => 80, 'rhs' => 1 ),
array( 'lhs' => 80, 'rhs' => 4 ),
array( 'lhs' => 80, 'rhs' => 3 ),
array( 'lhs' => 94, 'rhs' => 1 ),
array( 'lhs' => 94, 'rhs' => 2 ),
array( 'lhs' => 94, 'rhs' => 3 ),
array( 'lhs' => 94, 'rhs' => 1 ),
array( 'lhs' => 81, 'rhs' => 7 ),
array( 'lhs' => 81, 'rhs' => 7 ),
array( 'lhs' => 95, 'rhs' => 1 ),
array( 'lhs' => 95, 'rhs' => 1 ),
array( 'lhs' => 95, 'rhs' => 1 ),
array( 'lhs' => 77, 'rhs' => 1 ),
array( 'lhs' => 77, 'rhs' => 2 ),
array( 'lhs' => 77, 'rhs' => 2 ),
array( 'lhs' => 77, 'rhs' => 1 ),
array( 'lhs' => 77, 'rhs' => 3 ),
array( 'lhs' => 77, 'rhs' => 1 ),
array( 'lhs' => 77, 'rhs' => 1 ),
array( 'lhs' => 77, 'rhs' => 1 ),
array( 'lhs' => 77, 'rhs' => 3 ),
array( 'lhs' => 77, 'rhs' => 1 ),
array( 'lhs' => 77, 'rhs' => 3 ),
array( 'lhs' => 77, 'rhs' => 2 ),
array( 'lhs' => 77, 'rhs' => 3 ),
array( 'lhs' => 77, 'rhs' => 7 ),
array( 'lhs' => 77, 'rhs' => 4 ),
array( 'lhs' => 77, 'rhs' => 8 ),
array( 'lhs' => 77, 'rhs' => 3 ),
array( 'lhs' => 77, 'rhs' => 5 ),
array( 'lhs' => 77, 'rhs' => 6 ),
array( 'lhs' => 77, 'rhs' => 1 ),
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' => 82, 'rhs' => 3 ),
array( 'lhs' => 101, 'rhs' => 2 ),
array( 'lhs' => 101, 'rhs' => 0 ),
array( 'lhs' => 103, 'rhs' => 2 ),
array( 'lhs' => 103, 'rhs' => 2 ),
array( 'lhs' => 103, 'rhs' => 2 ),
array( 'lhs' => 103, 'rhs' => 2 ),
array( 'lhs' => 103, 'rhs' => 2 ),
array( 'lhs' => 103, 'rhs' => 4 ),
array( 'lhs' => 103, 'rhs' => 3 ),
array( 'lhs' => 103, 'rhs' => 5 ),
array( 'lhs' => 103, 'rhs' => 3 ),
array( 'lhs' => 103, 'rhs' => 2 ),
array( 'lhs' => 89, 'rhs' => 1 ),
array( 'lhs' => 89, 'rhs' => 2 ),
array( 'lhs' => 104, 'rhs' => 1 ),
array( 'lhs' => 104, 'rhs' => 3 ),
array( 'lhs' => 102, 'rhs' => 2 ),
array( 'lhs' => 100, 'rhs' => 1 ),
array( 'lhs' => 100, 'rhs' => 2 ),
array( 'lhs' => 105, 'rhs' => 3 ),
array( 'lhs' => 105, 'rhs' => 3 ),
array( 'lhs' => 105, 'rhs' => 5 ),
array( 'lhs' => 105, 'rhs' => 6 ),
array( 'lhs' => 105, 'rhs' => 2 ),
array( 'lhs' => 96, 'rhs' => 4 ),
array( 'lhs' => 98, 'rhs' => 4 ),
array( 'lhs' => 99, 'rhs' => 3 ),
array( 'lhs' => 99, 'rhs' => 1 ),
array( 'lhs' => 99, 'rhs' => 0 ),
array( 'lhs' => 83, 'rhs' => 3 ),
array( 'lhs' => 83, 'rhs' => 2 ),
array( 'lhs' => 84, 'rhs' => 2 ),
array( 'lhs' => 84, 'rhs' => 0 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 106, 'rhs' => 2 ),
array( 'lhs' => 85, 'rhs' => 1 ),
array( 'lhs' => 85, 'rhs' => 2 ),
array( 'lhs' => 85, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 1 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 2 ),
array( 'lhs' => 107, 'rhs' => 2 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 2 ),
array( 'lhs' => 107, 'rhs' => 2 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 107, 'rhs' => 3 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 108, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 109, 'rhs' => 1 ),
array( 'lhs' => 91, 'rhs' => 3 ),
array( 'lhs' => 110, 'rhs' => 1 ),
array( 'lhs' => 110, 'rhs' => 3 ),
array( 'lhs' => 110, 'rhs' => 0 ),
array( 'lhs' => 111, 'rhs' => 3 ),
array( 'lhs' => 111, 'rhs' => 3 ),
array( 'lhs' => 111, 'rhs' => 1 ),
array( 'lhs' => 97, 'rhs' => 2 ),
array( 'lhs' => 97, 'rhs' => 1 ),
array( 'lhs' => 112, 'rhs' => 3 ),
array( 'lhs' => 112, 'rhs' => 1 ),
array( 'lhs' => 112, 'rhs' => 3 ),
array( 'lhs' => 112, 'rhs' => 3 ),
array( 'lhs' => 112, 'rhs' => 1 ),
array( 'lhs' => 112, 'rhs' => 1 ),
array( 'lhs' => 88, 'rhs' => 1 ),
array( 'lhs' => 88, 'rhs' => 0 ),
);
/**
* 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,
40 => 0,
41 => 0,
42 => 0,
62 => 0,
71 => 0,
74 => 0,
76 => 0,
77 => 0,
78 => 0,
80 => 0,
93 => 0,
165 => 0,
1 => 1,
59 => 1,
65 => 1,
68 => 1,
69 => 1,
109 => 1,
132 => 1,
172 => 1,
178 => 1,
179 => 1,
2 => 2,
128 => 2,
3 => 3,
4 => 4,
5 => 5,
6 => 6,
7 => 7,
8 => 8,
9 => 9,
10 => 10,
11 => 11,
12 => 11,
13 => 11,
14 => 11,
15 => 15,
16 => 15,
2009-11-09 16:30:56 +00:00
17 => 17,
18 => 17,
2009-11-09 16:30:56 +00:00
19 => 19,
20 => 19,
21 => 21,
22 => 21,
23 => 23,
24 => 24,
25 => 25,
26 => 26,
27 => 27,
28 => 27,
29 => 29,
30 => 30,
31 => 31,
47 => 31,
124 => 31,
170 => 31,
32 => 32,
33 => 33,
34 => 34,
35 => 35,
36 => 36,
37 => 37,
38 => 38,
39 => 38,
43 => 43,
44 => 44,
45 => 45,
46 => 46,
48 => 48,
49 => 49,
50 => 50,
51 => 50,
52 => 50,
54 => 50,
53 => 53,
55 => 55,
56 => 56,
57 => 57,
58 => 58,
60 => 60,
61 => 61,
63 => 63,
72 => 63,
73 => 63,
64 => 64,
66 => 66,
67 => 66,
70 => 70,
75 => 75,
79 => 79,
81 => 81,
82 => 82,
83 => 83,
84 => 84,
85 => 85,
86 => 86,
87 => 87,
88 => 88,
89 => 89,
90 => 90,
91 => 91,
92 => 92,
94 => 94,
95 => 95,
96 => 96,
97 => 97,
171 => 97,
98 => 98,
129 => 98,
99 => 99,
100 => 99,
101 => 99,
102 => 102,
103 => 103,
104 => 104,
107 => 104,
105 => 105,
106 => 106,
108 => 108,
180 => 108,
110 => 110,
111 => 111,
112 => 112,
134 => 112,
113 => 113,
114 => 114,
115 => 115,
116 => 116,
117 => 117,
118 => 118,
119 => 119,
120 => 120,
121 => 121,
122 => 122,
123 => 123,
125 => 125,
126 => 126,
127 => 127,
130 => 130,
131 => 131,
133 => 133,
135 => 135,
136 => 136,
139 => 136,
150 => 136,
137 => 137,
138 => 138,
140 => 140,
141 => 141,
142 => 142,
147 => 142,
143 => 143,
146 => 143,
144 => 144,
149 => 144,
145 => 145,
148 => 145,
151 => 151,
152 => 152,
153 => 153,
154 => 154,
155 => 155,
156 => 156,
157 => 157,
158 => 158,
159 => 159,
160 => 160,
161 => 161,
162 => 162,
163 => 163,
164 => 164,
166 => 166,
167 => 167,
168 => 168,
169 => 169,
173 => 173,
175 => 173,
174 => 174,
176 => 176,
177 => 177,
);
/* Beginning here are the reduction cases. A typical example
** follows:
** #line <lineno> <grammarfile>
** function yy_r0($yymsp){ ... } // User supplied code
** #line <lineno> <thisfile>
*/
#line 78 "smarty_internal_templateparser.y"
function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2062 "smarty_internal_templateparser.php"
#line 84 "smarty_internal_templateparser.y"
function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2065 "smarty_internal_templateparser.php"
#line 86 "smarty_internal_templateparser.y"
function yy_r2(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2068 "smarty_internal_templateparser.php"
#line 92 "smarty_internal_templateparser.y"
function yy_r3(){
2009-10-22 23:05:14 +00:00
if ($this->compiler->has_code) {
$tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array();
$this->_retvalue = $this->cacher->processNocacheCode($tmp.$this->yystack[$this->yyidx + 0]->minor, $this->compiler,true);
} else { $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;} $this->compiler->has_variable_string = false; }
#line 2075 "smarty_internal_templateparser.php"
#line 99 "smarty_internal_templateparser.y"
function yy_r4(){ $this->_retvalue = ''; }
#line 2078 "smarty_internal_templateparser.php"
#line 104 "smarty_internal_templateparser.y"
function yy_r5(){if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU) {
2009-10-27 20:25:16 +00:00
$this->_retvalue = $this->cacher->processNocacheCode("<?php echo htmlspecialchars('<?php".str_replace("'","\'",$this->yystack[$this->yyidx + -1]->minor)."?>', ENT_QUOTES);?>\n", $this->compiler, false);
2009-10-22 23:05:14 +00:00
} elseif ($this->sec_obj->php_handling == SMARTY_PHP_QUOTE) {
$this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('<?php'.$this->yystack[$this->yyidx + -1]->minor.'?>', ENT_QUOTES), $this->compiler, false);
}elseif ($this->sec_obj->php_handling == SMARTY_PHP_ALLOW) {
$this->_retvalue = $this->cacher->processNocacheCode('<?php'.$this->yystack[$this->yyidx + -1]->minor.'?>', $this->compiler, true);
}elseif ($this->sec_obj->php_handling == SMARTY_PHP_REMOVE) {
$this->_retvalue = '';
}
}
#line 2090 "smarty_internal_templateparser.php"
#line 115 "smarty_internal_templateparser.y"
function yy_r6(){
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
}
}
#line 2101 "smarty_internal_templateparser.php"
#line 126 "smarty_internal_templateparser.y"
function yy_r7(){ $this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("<?php echo '<?xml';?>", $this->compiler, true); }
#line 2104 "smarty_internal_templateparser.php"
#line 127 "smarty_internal_templateparser.y"
function yy_r8(){$this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("<?php echo '?>';?>\n", $this->compiler, true); }
#line 2107 "smarty_internal_templateparser.php"
#line 129 "smarty_internal_templateparser.y"
function yy_r9(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false); }
#line 2110 "smarty_internal_templateparser.php"
#line 137 "smarty_internal_templateparser.y"
function yy_r10(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array('value'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2113 "smarty_internal_templateparser.php"
#line 138 "smarty_internal_templateparser.y"
function yy_r11(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)); }
#line 2116 "smarty_internal_templateparser.php"
#line 149 "smarty_internal_templateparser.y"
function yy_r15(){ $this->_retvalue = $this->compiler->compileTag('assign',array('value'=>$this->yystack[$this->yyidx + -1]->minor,'var'=>"'".$this->yystack[$this->yyidx + -3]->minor."'")); }
#line 2119 "smarty_internal_templateparser.php"
#line 151 "smarty_internal_templateparser.y"
function yy_r17(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor,'var'=>"'".$this->yystack[$this->yyidx + -4]->minor."'"),$this->yystack[$this->yyidx + -1]->minor)); }
#line 2122 "smarty_internal_templateparser.php"
#line 153 "smarty_internal_templateparser.y"
function yy_r19(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor)); }
#line 2125 "smarty_internal_templateparser.php"
#line 156 "smarty_internal_templateparser.y"
function yy_r21(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,$this->yystack[$this->yyidx + -1]->minor); }
#line 2128 "smarty_internal_templateparser.php"
#line 158 "smarty_internal_templateparser.y"
function yy_r23(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,array()); }
#line 2131 "smarty_internal_templateparser.php"
#line 160 "smarty_internal_templateparser.y"
function yy_r24(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)); }
#line 2134 "smarty_internal_templateparser.php"
#line 162 "smarty_internal_templateparser.y"
function yy_r25(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor).'<?php echo ';
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -3]->minor[0],'modifier')) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>";
2009-10-22 23:05:14 +00:00
} else {
if (is_callable($this->yystack[$this->yyidx + -3]->minor[0])) {
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -3]->minor[0], $this->compiler)) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>";
2009-10-22 23:05:14 +00:00
}
} else {
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -3]->minor[0] . "\"");
2009-10-22 23:05:14 +00:00
}
}
}
#line 2149 "smarty_internal_templateparser.php"
#line 176 "smarty_internal_templateparser.y"
function yy_r26(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -4]->minor),$this->yystack[$this->yyidx + -1]->minor)).'<?php echo ';
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -3]->minor[0],'modifier')) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>";
} else {
if (is_callable($this->yystack[$this->yyidx + -3]->minor[0])) {
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -3]->minor[0], $this->compiler)) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>";
}
} else {
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -3]->minor[0] . "\"");
}
}
}
#line 2164 "smarty_internal_templateparser.php"
#line 190 "smarty_internal_templateparser.y"
function yy_r27(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2167 "smarty_internal_templateparser.php"
#line 193 "smarty_internal_templateparser.y"
function yy_r29(){
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -11]->minor,array('start'=>$this->yystack[$this->yyidx + -9]->minor,'ifexp'=>$this->yystack[$this->yyidx + -6]->minor,'varloop'=>$this->yystack[$this->yyidx + -2]->minor,'loop'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2171 "smarty_internal_templateparser.php"
#line 195 "smarty_internal_templateparser.y"
function yy_r30(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; }
#line 2174 "smarty_internal_templateparser.php"
#line 196 "smarty_internal_templateparser.y"
function yy_r31(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2177 "smarty_internal_templateparser.php"
#line 197 "smarty_internal_templateparser.y"
function yy_r32(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('start'=>$this->yystack[$this->yyidx + -3]->minor,'to'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2180 "smarty_internal_templateparser.php"
#line 198 "smarty_internal_templateparser.y"
function yy_r33(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -7]->minor,array('start'=>$this->yystack[$this->yyidx + -5]->minor,'to'=>$this->yystack[$this->yyidx + -3]->minor,'step'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2183 "smarty_internal_templateparser.php"
#line 200 "smarty_internal_templateparser.y"
function yy_r34(){
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array('from'=>$this->yystack[$this->yyidx + -4]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2187 "smarty_internal_templateparser.php"
#line 202 "smarty_internal_templateparser.y"
function yy_r35(){
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -9]->minor,array('from'=>$this->yystack[$this->yyidx + -7]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor,'key'=>$this->yystack[$this->yyidx + -4]->minor)); }
#line 2191 "smarty_internal_templateparser.php"
#line 204 "smarty_internal_templateparser.y"
function yy_r36(){
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array('from'=>$this->yystack[$this->yyidx + -4]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2195 "smarty_internal_templateparser.php"
#line 206 "smarty_internal_templateparser.y"
function yy_r37(){
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -9]->minor,array('from'=>$this->yystack[$this->yyidx + -7]->minor,'item'=>$this->yystack[$this->yyidx + -1]->minor,'key'=>$this->yystack[$this->yyidx + -4]->minor)); }
#line 2199 "smarty_internal_templateparser.php"
#line 210 "smarty_internal_templateparser.y"
function yy_r38(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',array()); }
#line 2202 "smarty_internal_templateparser.php"
#line 215 "smarty_internal_templateparser.y"
function yy_r43(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',$this->yystack[$this->yyidx + -1]->minor); }
#line 2205 "smarty_internal_templateparser.php"
#line 216 "smarty_internal_templateparser.y"
function yy_r44(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor.'close',$this->yystack[$this->yyidx + -1]->minor).'<?php echo ';
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -3]->minor[0],'modifier')) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>";
2009-10-22 23:05:14 +00:00
} else {
if (is_callable($this->yystack[$this->yyidx + -3]->minor[0])) {
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -3]->minor[0], $this->compiler)) {
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -3]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -2]->minor. "),".$this->yystack[$this->yyidx + -3]->minor[1].");?>";
2009-10-22 23:05:14 +00:00
}
} else {
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -3]->minor[0] . "\"");
2009-10-22 23:05:14 +00:00
}
}
}
#line 2220 "smarty_internal_templateparser.php"
#line 230 "smarty_internal_templateparser.y"
function yy_r45(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor)); }
#line 2223 "smarty_internal_templateparser.php"
#line 237 "smarty_internal_templateparser.y"
function yy_r46(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
#line 2226 "smarty_internal_templateparser.php"
#line 241 "smarty_internal_templateparser.y"
function yy_r48(){ $this->_retvalue = array(); }
#line 2229 "smarty_internal_templateparser.php"
#line 244 "smarty_internal_templateparser.y"
function yy_r49(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>"'".$this->yystack[$this->yyidx + 0]->minor."'"); }
#line 2232 "smarty_internal_templateparser.php"
#line 245 "smarty_internal_templateparser.y"
function yy_r50(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2235 "smarty_internal_templateparser.php"
#line 248 "smarty_internal_templateparser.y"
function yy_r53(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); }
#line 2238 "smarty_internal_templateparser.php"
#line 255 "smarty_internal_templateparser.y"
function yy_r55(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); }
#line 2241 "smarty_internal_templateparser.php"
#line 256 "smarty_internal_templateparser.y"
function yy_r56(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; }
#line 2244 "smarty_internal_templateparser.php"
#line 258 "smarty_internal_templateparser.y"
function yy_r57(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2247 "smarty_internal_templateparser.php"
#line 264 "smarty_internal_templateparser.y"
function yy_r58(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2250 "smarty_internal_templateparser.php"
#line 267 "smarty_internal_templateparser.y"
function yy_r60(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; }
#line 2253 "smarty_internal_templateparser.php"
#line 268 "smarty_internal_templateparser.y"
function yy_r61(){
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] . "\"");
}
}
}
#line 2268 "smarty_internal_templateparser.php"
#line 285 "smarty_internal_templateparser.y"
function yy_r63(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2271 "smarty_internal_templateparser.php"
#line 287 "smarty_internal_templateparser.y"
function yy_r64(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; }
#line 2274 "smarty_internal_templateparser.php"
#line 294 "smarty_internal_templateparser.y"
function yy_r66(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; }
#line 2277 "smarty_internal_templateparser.php"
#line 308 "smarty_internal_templateparser.y"
function yy_r70(){$this->_retvalue = ' & '; }
#line 2280 "smarty_internal_templateparser.php"
#line 316 "smarty_internal_templateparser.y"
function yy_r75(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2283 "smarty_internal_templateparser.php"
#line 326 "smarty_internal_templateparser.y"
function yy_r79(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
#line 2286 "smarty_internal_templateparser.php"
#line 330 "smarty_internal_templateparser.y"
function yy_r81(){ $_s = str_replace(array('."".','.""'),array('.',''),'"'.$this->yystack[$this->yyidx + -1]->minor.'"');
2009-11-27 00:43:38 +00:00
if (substr($_s,0,3) == '"".') {
$this->_retvalue = substr($_s,3);
} else {
$this->_retvalue = $_s;
}
}
#line 2295 "smarty_internal_templateparser.php"
#line 337 "smarty_internal_templateparser.y"
function yy_r82(){ $this->_retvalue = "''"; }
#line 2298 "smarty_internal_templateparser.php"
#line 339 "smarty_internal_templateparser.y"
function yy_r83(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2301 "smarty_internal_templateparser.php"
#line 340 "smarty_internal_templateparser.y"
function yy_r84(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -3]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -1]->minor .')'; }
#line 2304 "smarty_internal_templateparser.php"
#line 342 "smarty_internal_templateparser.y"
function yy_r85(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2307 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 343 "smarty_internal_templateparser.y"
function yy_r86(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -4]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -7]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -2]->minor .')'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2310 "smarty_internal_templateparser.php"
#line 345 "smarty_internal_templateparser.y"
function yy_r87(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2313 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 347 "smarty_internal_templateparser.y"
function yy_r88(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2316 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 349 "smarty_internal_templateparser.y"
function yy_r89(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.'::$'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2319 "smarty_internal_templateparser.php"
#line 351 "smarty_internal_templateparser.y"
function yy_r90(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + 0]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; }
#line 2322 "smarty_internal_templateparser.php"
#line 360 "smarty_internal_templateparser.y"
function yy_r91(){if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('special_smarty_variable',$this->yystack[$this->yyidx + 0]->minor['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'],"'"), null, true, false)->nocache;} }
#line 2326 "smarty_internal_templateparser.php"
#line 363 "smarty_internal_templateparser.y"
function yy_r92(){ $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"), null, true, false)->nocache; }
#line 2329 "smarty_internal_templateparser.php"
#line 367 "smarty_internal_templateparser.y"
function yy_r94(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; }
#line 2332 "smarty_internal_templateparser.php"
#line 368 "smarty_internal_templateparser.y"
function yy_r95(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; }
#line 2335 "smarty_internal_templateparser.php"
#line 371 "smarty_internal_templateparser.y"
function yy_r96(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); }
#line 2338 "smarty_internal_templateparser.php"
#line 377 "smarty_internal_templateparser.y"
function yy_r97(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2341 "smarty_internal_templateparser.php"
#line 379 "smarty_internal_templateparser.y"
function yy_r98(){return; }
#line 2344 "smarty_internal_templateparser.php"
#line 383 "smarty_internal_templateparser.y"
function yy_r99(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; }
#line 2347 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 387 "smarty_internal_templateparser.y"
function yy_r102(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; }
#line 2350 "smarty_internal_templateparser.php"
#line 388 "smarty_internal_templateparser.y"
function yy_r103(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; }
#line 2353 "smarty_internal_templateparser.php"
#line 389 "smarty_internal_templateparser.y"
function yy_r104(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; }
#line 2356 "smarty_internal_templateparser.php"
#line 391 "smarty_internal_templateparser.y"
function yy_r105(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; }
#line 2359 "smarty_internal_templateparser.php"
#line 392 "smarty_internal_templateparser.y"
function yy_r106(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; }
#line 2362 "smarty_internal_templateparser.php"
#line 396 "smarty_internal_templateparser.y"
function yy_r108(){$this->_retvalue = ''; }
#line 2365 "smarty_internal_templateparser.php"
#line 404 "smarty_internal_templateparser.y"
function yy_r110(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2368 "smarty_internal_templateparser.php"
#line 406 "smarty_internal_templateparser.y"
function yy_r111(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2371 "smarty_internal_templateparser.php"
#line 409 "smarty_internal_templateparser.y"
function yy_r112(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2374 "smarty_internal_templateparser.php"
#line 414 "smarty_internal_templateparser.y"
function yy_r113(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('special_smarty_variable',$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'],"'"), null, true, false)->nocache;} }
#line 2378 "smarty_internal_templateparser.php"
#line 417 "smarty_internal_templateparser.y"
function yy_r114(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
#line 2381 "smarty_internal_templateparser.php"
#line 419 "smarty_internal_templateparser.y"
function yy_r115(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2384 "smarty_internal_templateparser.php"
#line 421 "smarty_internal_templateparser.y"
function yy_r116(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2387 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 422 "smarty_internal_templateparser.y"
function yy_r117(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2390 "smarty_internal_templateparser.php"
#line 423 "smarty_internal_templateparser.y"
function yy_r118(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2393 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 424 "smarty_internal_templateparser.y"
function yy_r119(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
#line 2396 "smarty_internal_templateparser.php"
#line 426 "smarty_internal_templateparser.y"
function yy_r120(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2399 "smarty_internal_templateparser.php"
#line 432 "smarty_internal_templateparser.y"
function yy_r121(){if (!$this->template->security || $this->smarty->security_handler->isTrustedPhpFunction($this->yystack[$this->yyidx + -3]->minor, $this->compiler)) {
if ($this->yystack[$this->yyidx + -3]->minor == 'isset' || $this->yystack[$this->yyidx + -3]->minor == 'empty' || $this->yystack[$this->yyidx + -3]->minor == 'array' || is_callable($this->yystack[$this->yyidx + -3]->minor)) {
$this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")";
} else {
$this->compiler->trigger_template_error ("unknown function \"" . $this->yystack[$this->yyidx + -3]->minor . "\"");
}
} }
#line 2408 "smarty_internal_templateparser.php"
#line 443 "smarty_internal_templateparser.y"
function yy_r122(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
#line 2411 "smarty_internal_templateparser.php"
#line 447 "smarty_internal_templateparser.y"
function yy_r123(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; }
#line 2414 "smarty_internal_templateparser.php"
#line 451 "smarty_internal_templateparser.y"
function yy_r125(){ return; }
#line 2417 "smarty_internal_templateparser.php"
#line 456 "smarty_internal_templateparser.y"
function yy_r126(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); }
#line 2420 "smarty_internal_templateparser.php"
#line 457 "smarty_internal_templateparser.y"
function yy_r127(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); }
#line 2423 "smarty_internal_templateparser.php"
#line 473 "smarty_internal_templateparser.y"
function yy_r130(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; }
#line 2426 "smarty_internal_templateparser.php"
#line 474 "smarty_internal_templateparser.y"
function yy_r131(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
#line 2429 "smarty_internal_templateparser.php"
#line 481 "smarty_internal_templateparser.y"
function yy_r133(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2432 "smarty_internal_templateparser.php"
#line 486 "smarty_internal_templateparser.y"
function yy_r135(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; }
#line 2435 "smarty_internal_templateparser.php"
#line 488 "smarty_internal_templateparser.y"
function yy_r136(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
#line 2438 "smarty_internal_templateparser.php"
#line 489 "smarty_internal_templateparser.y"
function yy_r137(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2441 "smarty_internal_templateparser.php"
#line 490 "smarty_internal_templateparser.y"
function yy_r138(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2444 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 492 "smarty_internal_templateparser.y"
function yy_r140(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2447 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 493 "smarty_internal_templateparser.y"
function yy_r141(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2450 "smarty_internal_templateparser.php"
#line 494 "smarty_internal_templateparser.y"
function yy_r142(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2453 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 495 "smarty_internal_templateparser.y"
function yy_r143(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2456 "smarty_internal_templateparser.php"
#line 496 "smarty_internal_templateparser.y"
function yy_r144(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2459 "smarty_internal_templateparser.php"
#line 497 "smarty_internal_templateparser.y"
function yy_r145(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
#line 2462 "smarty_internal_templateparser.php"
#line 503 "smarty_internal_templateparser.y"
function yy_r151(){$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 2465 "smarty_internal_templateparser.php"
#line 505 "smarty_internal_templateparser.y"
function yy_r152(){$this->_retvalue = '=='; }
#line 2468 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 506 "smarty_internal_templateparser.y"
function yy_r153(){$this->_retvalue = '!='; }
#line 2471 "smarty_internal_templateparser.php"
#line 507 "smarty_internal_templateparser.y"
function yy_r154(){$this->_retvalue = '>'; }
#line 2474 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 508 "smarty_internal_templateparser.y"
function yy_r155(){$this->_retvalue = '<'; }
#line 2477 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 509 "smarty_internal_templateparser.y"
function yy_r156(){$this->_retvalue = '>='; }
#line 2480 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 510 "smarty_internal_templateparser.y"
function yy_r157(){$this->_retvalue = '<='; }
#line 2483 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 511 "smarty_internal_templateparser.y"
function yy_r158(){$this->_retvalue = '==='; }
#line 2486 "smarty_internal_templateparser.php"
#line 512 "smarty_internal_templateparser.y"
function yy_r159(){$this->_retvalue = '!=='; }
#line 2489 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 513 "smarty_internal_templateparser.y"
function yy_r160(){$this->_retvalue = '%'; }
#line 2492 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 515 "smarty_internal_templateparser.y"
function yy_r161(){$this->_retvalue = '&&'; }
#line 2495 "smarty_internal_templateparser.php"
#line 516 "smarty_internal_templateparser.y"
function yy_r162(){$this->_retvalue = '||'; }
#line 2498 "smarty_internal_templateparser.php"
#line 517 "smarty_internal_templateparser.y"
function yy_r163(){$this->_retvalue = ' XOR '; }
#line 2501 "smarty_internal_templateparser.php"
#line 522 "smarty_internal_templateparser.y"
function yy_r164(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2504 "smarty_internal_templateparser.php"
#line 524 "smarty_internal_templateparser.y"
function yy_r166(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; }
#line 2507 "smarty_internal_templateparser.php"
2009-11-27 00:43:38 +00:00
#line 525 "smarty_internal_templateparser.y"
function yy_r167(){ return; }
#line 2510 "smarty_internal_templateparser.php"
#line 526 "smarty_internal_templateparser.y"
function yy_r168(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2513 "smarty_internal_templateparser.php"
#line 527 "smarty_internal_templateparser.y"
function yy_r169(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; }
#line 2516 "smarty_internal_templateparser.php"
#line 536 "smarty_internal_templateparser.y"
function yy_r173(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; $this->compiler->has_variable_string = true; }
#line 2519 "smarty_internal_templateparser.php"
#line 537 "smarty_internal_templateparser.y"
function yy_r174(){$this->_retvalue = '".'.'$_smarty_tpl->getVariable(\''. substr($this->yystack[$this->yyidx + 0]->minor,1) .'\')->value'.'."'; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"), null, true, false)->nocache; $this->compiler->has_variable_string = true; }
#line 2522 "smarty_internal_templateparser.php"
#line 539 "smarty_internal_templateparser.y"
function yy_r176(){ $this->_retvalue = '".('.$this->yystack[$this->yyidx + -1]->minor.')."'; $this->compiler->has_variable_string = true; }
#line 2525 "smarty_internal_templateparser.php"
#line 540 "smarty_internal_templateparser.y"
function yy_r177(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + 0]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '".$_tmp'.$this->prefix_number.'."'; $this->compiler->has_variable_string = true; }
#line 2528 "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();
#line 2646 "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";
#line 2671 "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);
}
}
?>