2009-11-08 16:17:51 +00:00
|
|
|
<?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;
|
|
|
|
|
}
|
|
|
|
|
|
2009-11-08 16:17:51 +00:00
|
|
|
#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.
|
|
|
|
|
*/
|
2009-11-15 19:05:53 +00:00
|
|
|
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_EQUAL = 9;
|
|
|
|
|
const TP_ID = 10;
|
|
|
|
|
const TP_PTR = 11;
|
|
|
|
|
const TP_SPACE = 12;
|
|
|
|
|
const TP_SEMICOLON = 13;
|
|
|
|
|
const TP_DOLLAR = 14;
|
|
|
|
|
const TP_INCDEC = 15;
|
|
|
|
|
const TP_AS = 16;
|
2009-11-17 18:09:29 +00:00
|
|
|
const TP_APTR = 17;
|
|
|
|
|
const TP_LDELSLASH = 18;
|
|
|
|
|
const TP_COMMA = 19;
|
|
|
|
|
const TP_COLON = 20;
|
|
|
|
|
const TP_UNIMATH = 21;
|
|
|
|
|
const TP_OPENP = 22;
|
|
|
|
|
const TP_CLOSEP = 23;
|
|
|
|
|
const TP_QMARK = 24;
|
|
|
|
|
const TP_MATH = 25;
|
|
|
|
|
const TP_ANDSYM = 26;
|
|
|
|
|
const TP_TYPECAST = 27;
|
|
|
|
|
const TP_INTEGER = 28;
|
|
|
|
|
const TP_DOT = 29;
|
|
|
|
|
const TP_BOOLEAN = 30;
|
|
|
|
|
const TP_NULL = 31;
|
|
|
|
|
const TP_SINGLEQUOTESTRING = 32;
|
|
|
|
|
const TP_QUOTE = 33;
|
|
|
|
|
const TP_DOUBLECOLON = 34;
|
|
|
|
|
const TP_AT = 35;
|
|
|
|
|
const TP_HATCH = 36;
|
|
|
|
|
const TP_OPENB = 37;
|
|
|
|
|
const TP_CLOSEB = 38;
|
|
|
|
|
const TP_VERT = 39;
|
|
|
|
|
const TP_NOT = 40;
|
|
|
|
|
const TP_ISIN = 41;
|
|
|
|
|
const TP_ISDIVBY = 42;
|
|
|
|
|
const TP_ISNOTDIVBY = 43;
|
|
|
|
|
const TP_ISEVEN = 44;
|
|
|
|
|
const TP_ISNOTEVEN = 45;
|
|
|
|
|
const TP_ISEVENBY = 46;
|
|
|
|
|
const TP_ISNOTEVENBY = 47;
|
|
|
|
|
const TP_ISODD = 48;
|
|
|
|
|
const TP_ISNOTODD = 49;
|
|
|
|
|
const TP_ISODDBY = 50;
|
|
|
|
|
const TP_ISNOTODDBY = 51;
|
|
|
|
|
const TP_INSTANCEOF = 52;
|
|
|
|
|
const TP_EQUALS = 53;
|
|
|
|
|
const TP_NOTEQUALS = 54;
|
|
|
|
|
const TP_GREATERTHAN = 55;
|
|
|
|
|
const TP_LESSTHAN = 56;
|
|
|
|
|
const TP_GREATEREQUAL = 57;
|
|
|
|
|
const TP_LESSEQUAL = 58;
|
|
|
|
|
const TP_IDENTITY = 59;
|
|
|
|
|
const TP_NONEIDENTITY = 60;
|
|
|
|
|
const TP_MOD = 61;
|
|
|
|
|
const TP_LAND = 62;
|
|
|
|
|
const TP_LOR = 63;
|
|
|
|
|
const TP_LXOR = 64;
|
2009-11-15 19:05:53 +00:00
|
|
|
const TP_BACKTICK = 65;
|
|
|
|
|
const TP_DOLLARID = 66;
|
2009-11-17 18:09:29 +00:00
|
|
|
const YY_NO_ACTION = 492;
|
|
|
|
|
const YY_ACCEPT_ACTION = 491;
|
|
|
|
|
const YY_ERROR_ACTION = 490;
|
2009-11-08 16:17:51 +00:00
|
|
|
|
|
|
|
|
/* Next are that tables used to determine what action to take based on the
|
|
|
|
|
** current state and lookahead token. These tables are used to implement
|
|
|
|
|
** functions that take a state number and lookahead value and return an
|
|
|
|
|
** action integer.
|
|
|
|
|
**
|
|
|
|
|
** Suppose the action integer is N. Then the action is determined as
|
|
|
|
|
** follows
|
|
|
|
|
**
|
|
|
|
|
** 0 <= N < self::YYNSTATE Shift N. That is,
|
|
|
|
|
** push the lookahead
|
|
|
|
|
** token onto the stack
|
|
|
|
|
** and goto state N.
|
|
|
|
|
**
|
|
|
|
|
** self::YYNSTATE <= N < self::YYNSTATE+self::YYNRULE Reduce by rule N-YYNSTATE.
|
|
|
|
|
**
|
|
|
|
|
** N == self::YYNSTATE+self::YYNRULE A syntax error has occurred.
|
|
|
|
|
**
|
|
|
|
|
** N == self::YYNSTATE+self::YYNRULE+1 The parser accepts its
|
|
|
|
|
** input. (and concludes parsing)
|
|
|
|
|
**
|
|
|
|
|
** N == self::YYNSTATE+self::YYNRULE+2 No such action. Denotes unused
|
|
|
|
|
** slots in the yy_action[] table.
|
|
|
|
|
**
|
|
|
|
|
** The action table is constructed as a single large static array $yy_action.
|
|
|
|
|
** Given state S and lookahead X, the action is computed as
|
|
|
|
|
**
|
|
|
|
|
** self::$yy_action[self::$yy_shift_ofst[S] + X ]
|
|
|
|
|
**
|
|
|
|
|
** If the index value self::$yy_shift_ofst[S]+X is out of range or if the value
|
|
|
|
|
** self::$yy_lookahead[self::$yy_shift_ofst[S]+X] is not equal to X or if
|
|
|
|
|
** self::$yy_shift_ofst[S] is equal to self::YY_SHIFT_USE_DFLT, it means that
|
|
|
|
|
** the action is not in the table and that self::$yy_default[S] should be used instead.
|
|
|
|
|
**
|
|
|
|
|
** The formula above is for computing the action when the lookahead is
|
|
|
|
|
** a terminal symbol. If the lookahead is a non-terminal (as occurs after
|
|
|
|
|
** a reduce action) then the static $yy_reduce_ofst array is used in place of
|
|
|
|
|
** the static $yy_shift_ofst array and self::YY_REDUCE_USE_DFLT is used in place of
|
|
|
|
|
** self::YY_SHIFT_USE_DFLT.
|
|
|
|
|
**
|
|
|
|
|
** The following are the tables generated in this section:
|
|
|
|
|
**
|
|
|
|
|
** self::$yy_action A single table containing all actions.
|
|
|
|
|
** self::$yy_lookahead A table containing the lookahead for each entry in
|
|
|
|
|
** yy_action. Used to detect hash collisions.
|
|
|
|
|
** self::$yy_shift_ofst For each state, the offset into self::$yy_action for
|
|
|
|
|
** shifting terminals.
|
|
|
|
|
** self::$yy_reduce_ofst For each state, the offset into self::$yy_action for
|
|
|
|
|
** shifting non-terminals after a reduce.
|
|
|
|
|
** self::$yy_default Default action for each state.
|
|
|
|
|
*/
|
2009-11-17 18:09:29 +00:00
|
|
|
const YY_SZ_ACTTAB = 1484;
|
2009-11-08 16:17:51 +00:00
|
|
|
static public $yy_action = array(
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 0 */ 22, 187, 220, 168, 38, 80, 18, 72, 361, 21,
|
|
|
|
|
/* 10 */ 35, 206, 361, 295, 43, 8, 35, 206, 26, 295,
|
|
|
|
|
/* 20 */ 55, 171, 15, 277, 278, 241, 48, 50, 22, 50,
|
|
|
|
|
/* 30 */ 13, 159, 214, 9, 129, 80, 253, 205, 192, 206,
|
|
|
|
|
/* 40 */ 274, 82, 43, 32, 491, 64, 210, 227, 55, 171,
|
|
|
|
|
/* 50 */ 269, 277, 278, 241, 48, 275, 153, 50, 13, 232,
|
|
|
|
|
/* 60 */ 22, 267, 220, 158, 56, 222, 18, 77, 124, 35,
|
|
|
|
|
/* 70 */ 213, 206, 295, 148, 43, 8, 266, 206, 270, 196,
|
|
|
|
|
/* 80 */ 55, 171, 251, 277, 278, 241, 48, 165, 22, 50,
|
|
|
|
|
/* 90 */ 13, 168, 231, 9, 291, 72, 253, 205, 44, 206,
|
|
|
|
|
/* 100 */ 221, 82, 43, 32, 35, 45, 26, 295, 55, 171,
|
|
|
|
|
/* 110 */ 193, 277, 278, 241, 48, 275, 22, 50, 13, 168,
|
|
|
|
|
/* 120 */ 65, 267, 73, 72, 56, 222, 35, 206, 33, 295,
|
|
|
|
|
/* 130 */ 43, 7, 192, 53, 293, 219, 55, 171, 152, 277,
|
|
|
|
|
/* 140 */ 278, 241, 48, 29, 22, 50, 13, 47, 15, 271,
|
|
|
|
|
/* 150 */ 23, 72, 157, 272, 273, 206, 82, 177, 43, 7,
|
|
|
|
|
/* 160 */ 129, 282, 317, 34, 55, 171, 216, 277, 278, 241,
|
|
|
|
|
/* 170 */ 48, 116, 211, 50, 13, 140, 267, 230, 165, 24,
|
|
|
|
|
/* 180 */ 6, 10, 236, 302, 5, 2, 301, 287, 3, 4,
|
|
|
|
|
/* 190 */ 271, 229, 227, 42, 272, 273, 35, 217, 165, 295,
|
|
|
|
|
/* 200 */ 286, 285, 281, 243, 6, 10, 236, 302, 5, 2,
|
|
|
|
|
/* 210 */ 301, 287, 3, 4, 100, 39, 253, 205, 259, 59,
|
|
|
|
|
/* 220 */ 81, 82, 80, 298, 286, 285, 281, 44, 189, 257,
|
|
|
|
|
/* 230 */ 252, 242, 21, 105, 165, 275, 183, 300, 260, 261,
|
|
|
|
|
/* 240 */ 35, 267, 237, 295, 50, 15, 82, 6, 10, 236,
|
|
|
|
|
/* 250 */ 302, 5, 2, 301, 287, 3, 4, 129, 27, 35,
|
|
|
|
|
/* 260 */ 228, 121, 295, 31, 152, 80, 267, 286, 285, 281,
|
|
|
|
|
/* 270 */ 130, 6, 10, 236, 302, 5, 2, 301, 287, 3,
|
|
|
|
|
/* 280 */ 4, 194, 165, 22, 271, 82, 167, 50, 272, 273,
|
|
|
|
|
/* 290 */ 80, 286, 285, 281, 206, 238, 190, 43, 32, 44,
|
|
|
|
|
/* 300 */ 201, 44, 255, 55, 171, 267, 277, 278, 241, 48,
|
|
|
|
|
/* 310 */ 294, 22, 50, 13, 163, 57, 145, 247, 80, 253,
|
|
|
|
|
/* 320 */ 205, 44, 206, 357, 82, 43, 32, 44, 165, 109,
|
|
|
|
|
/* 330 */ 255, 55, 171, 256, 277, 278, 241, 48, 275, 22,
|
|
|
|
|
/* 340 */ 50, 13, 160, 251, 267, 15, 72, 46, 35, 235,
|
|
|
|
|
/* 350 */ 206, 295, 184, 43, 32, 37, 248, 129, 172, 55,
|
|
|
|
|
/* 360 */ 171, 224, 277, 278, 241, 48, 138, 200, 50, 13,
|
|
|
|
|
/* 370 */ 268, 182, 147, 14, 82, 6, 10, 236, 302, 5,
|
|
|
|
|
/* 380 */ 2, 301, 287, 3, 4, 233, 198, 288, 289, 191,
|
|
|
|
|
/* 390 */ 299, 22, 44, 165, 267, 286, 285, 281, 253, 205,
|
|
|
|
|
/* 400 */ 38, 63, 206, 82, 70, 316, 86, 173, 164, 44,
|
|
|
|
|
/* 410 */ 19, 22, 162, 180, 167, 105, 107, 275, 80, 257,
|
|
|
|
|
/* 420 */ 54, 246, 206, 267, 123, 44, 32, 165, 314, 280,
|
|
|
|
|
/* 430 */ 251, 55, 171, 115, 277, 278, 241, 48, 251, 22,
|
|
|
|
|
/* 440 */ 50, 13, 166, 248, 284, 240, 80, 181, 1, 44,
|
|
|
|
|
/* 450 */ 206, 248, 253, 205, 32, 133, 317, 82, 15, 55,
|
|
|
|
|
/* 460 */ 171, 15, 277, 278, 241, 48, 252, 242, 50, 105,
|
|
|
|
|
/* 470 */ 129, 275, 165, 129, 40, 165, 165, 267, 36, 204,
|
|
|
|
|
/* 480 */ 283, 45, 113, 82, 44, 294, 307, 303, 304, 305,
|
|
|
|
|
/* 490 */ 306, 312, 313, 319, 320, 22, 207, 125, 167, 46,
|
|
|
|
|
/* 500 */ 165, 152, 80, 267, 290, 359, 206, 37, 44, 359,
|
|
|
|
|
/* 510 */ 32, 251, 165, 279, 40, 55, 171, 44, 277, 278,
|
|
|
|
|
/* 520 */ 241, 48, 245, 80, 50, 209, 307, 303, 304, 305,
|
|
|
|
|
/* 530 */ 306, 312, 313, 319, 320, 22, 60, 117, 161, 131,
|
|
|
|
|
/* 540 */ 128, 155, 80, 154, 152, 50, 206, 174, 254, 151,
|
|
|
|
|
/* 550 */ 32, 251, 44, 251, 251, 55, 171, 248, 277, 278,
|
|
|
|
|
/* 560 */ 241, 48, 253, 205, 50, 63, 212, 82, 120, 28,
|
|
|
|
|
/* 570 */ 93, 239, 156, 44, 318, 44, 188, 242, 44, 105,
|
|
|
|
|
/* 580 */ 165, 275, 251, 16, 20, 45, 98, 267, 253, 205,
|
|
|
|
|
/* 590 */ 226, 63, 314, 82, 146, 197, 95, 104, 75, 270,
|
|
|
|
|
/* 600 */ 165, 257, 188, 242, 142, 105, 132, 275, 296, 270,
|
|
|
|
|
/* 610 */ 195, 118, 257, 267, 253, 205, 144, 63, 314, 82,
|
|
|
|
|
/* 620 */ 251, 270, 90, 35, 23, 251, 179, 66, 188, 242,
|
|
|
|
|
/* 630 */ 106, 105, 165, 275, 40, 221, 265, 199, 49, 267,
|
|
|
|
|
/* 640 */ 102, 20, 257, 67, 314, 257, 307, 303, 304, 305,
|
|
|
|
|
/* 650 */ 306, 312, 313, 319, 320, 257, 25, 71, 257, 253,
|
|
|
|
|
/* 660 */ 205, 255, 61, 225, 82, 263, 276, 87, 292, 30,
|
|
|
|
|
/* 670 */ 218, 79, 234, 188, 242, 176, 105, 258, 275, 74,
|
|
|
|
|
/* 680 */ 78, 297, 244, 264, 267, 253, 205, 175, 63, 314,
|
|
|
|
|
/* 690 */ 82, 143, 83, 92, 42, 51, 262, 250, 203, 188,
|
|
|
|
|
/* 700 */ 242, 223, 105, 294, 275, 202, 253, 205, 315, 62,
|
|
|
|
|
/* 710 */ 267, 82, 41, 119, 89, 314, 44, 266, 17, 208,
|
|
|
|
|
/* 720 */ 188, 242, 322, 105, 276, 275, 12, 11, 276, 276,
|
|
|
|
|
/* 730 */ 276, 267, 253, 205, 276, 63, 314, 82, 276, 276,
|
|
|
|
|
/* 740 */ 94, 276, 84, 276, 276, 276, 188, 242, 276, 105,
|
|
|
|
|
/* 750 */ 276, 275, 276, 276, 276, 276, 276, 267, 253, 205,
|
|
|
|
|
/* 760 */ 276, 63, 314, 82, 276, 276, 91, 276, 276, 276,
|
|
|
|
|
/* 770 */ 276, 276, 188, 242, 276, 105, 276, 275, 276, 253,
|
|
|
|
|
/* 780 */ 205, 276, 112, 267, 82, 276, 253, 68, 314, 52,
|
|
|
|
|
/* 790 */ 85, 76, 276, 252, 242, 276, 105, 276, 275, 276,
|
|
|
|
|
/* 800 */ 252, 242, 276, 105, 267, 275, 276, 276, 276, 276,
|
|
|
|
|
/* 810 */ 276, 267, 169, 310, 276, 276, 276, 276, 253, 205,
|
|
|
|
|
/* 820 */ 276, 63, 276, 82, 276, 276, 88, 276, 276, 276,
|
|
|
|
|
/* 830 */ 276, 276, 188, 242, 276, 105, 276, 275, 276, 276,
|
|
|
|
|
/* 840 */ 276, 276, 276, 267, 253, 205, 276, 63, 314, 82,
|
|
|
|
|
/* 850 */ 276, 276, 96, 276, 276, 276, 276, 276, 188, 242,
|
|
|
|
|
/* 860 */ 276, 105, 276, 275, 276, 253, 205, 276, 63, 267,
|
|
|
|
|
/* 870 */ 82, 276, 276, 97, 314, 276, 276, 276, 276, 188,
|
|
|
|
|
/* 880 */ 242, 276, 105, 276, 275, 276, 276, 276, 276, 276,
|
|
|
|
|
/* 890 */ 267, 276, 276, 253, 69, 314, 58, 85, 76, 276,
|
|
|
|
|
/* 900 */ 276, 276, 276, 276, 276, 276, 276, 252, 242, 276,
|
|
|
|
|
/* 910 */ 105, 276, 275, 276, 276, 276, 253, 205, 267, 135,
|
|
|
|
|
/* 920 */ 215, 82, 276, 276, 276, 276, 276, 276, 276, 276,
|
|
|
|
|
/* 930 */ 170, 242, 276, 105, 276, 275, 276, 253, 205, 276,
|
|
|
|
|
/* 940 */ 114, 267, 82, 276, 276, 276, 276, 276, 276, 276,
|
|
|
|
|
/* 950 */ 276, 252, 242, 276, 105, 276, 275, 276, 276, 249,
|
|
|
|
|
/* 960 */ 276, 276, 267, 276, 276, 253, 205, 276, 114, 276,
|
|
|
|
|
/* 970 */ 82, 276, 276, 276, 276, 276, 276, 276, 276, 252,
|
|
|
|
|
/* 980 */ 242, 276, 105, 276, 275, 276, 276, 178, 253, 205,
|
|
|
|
|
/* 990 */ 267, 112, 276, 82, 276, 276, 276, 276, 276, 276,
|
|
|
|
|
/* 1000 */ 276, 276, 252, 242, 276, 105, 276, 275, 276, 253,
|
|
|
|
|
/* 1010 */ 205, 276, 114, 267, 82, 276, 276, 276, 276, 276,
|
|
|
|
|
/* 1020 */ 276, 276, 309, 252, 242, 276, 105, 276, 275, 276,
|
|
|
|
|
/* 1030 */ 276, 185, 276, 276, 267, 276, 276, 253, 205, 276,
|
|
|
|
|
/* 1040 */ 114, 276, 82, 276, 276, 276, 276, 276, 276, 276,
|
|
|
|
|
/* 1050 */ 276, 252, 242, 276, 105, 276, 275, 276, 276, 186,
|
|
|
|
|
/* 1060 */ 253, 205, 267, 108, 276, 82, 276, 276, 276, 276,
|
|
|
|
|
/* 1070 */ 276, 276, 276, 276, 252, 242, 276, 105, 276, 275,
|
|
|
|
|
/* 1080 */ 276, 253, 205, 276, 126, 267, 82, 276, 276, 276,
|
|
|
|
|
/* 1090 */ 276, 276, 276, 276, 276, 252, 242, 276, 105, 276,
|
|
|
|
|
/* 1100 */ 275, 276, 276, 276, 276, 276, 267, 276, 276, 253,
|
|
|
|
|
/* 1110 */ 205, 276, 150, 276, 82, 276, 276, 276, 276, 276,
|
|
|
|
|
/* 1120 */ 276, 276, 276, 252, 242, 276, 105, 276, 275, 276,
|
|
|
|
|
/* 1130 */ 276, 276, 253, 205, 267, 139, 276, 82, 276, 276,
|
|
|
|
|
/* 1140 */ 276, 276, 276, 276, 276, 276, 252, 242, 276, 105,
|
|
|
|
|
/* 1150 */ 276, 275, 276, 253, 205, 276, 110, 267, 82, 276,
|
|
|
|
|
/* 1160 */ 276, 276, 276, 276, 276, 276, 276, 252, 242, 276,
|
|
|
|
|
/* 1170 */ 105, 276, 275, 276, 276, 276, 276, 276, 267, 276,
|
|
|
|
|
/* 1180 */ 276, 253, 205, 276, 137, 276, 82, 276, 276, 276,
|
|
|
|
|
/* 1190 */ 276, 276, 276, 276, 276, 252, 242, 276, 105, 276,
|
|
|
|
|
/* 1200 */ 275, 276, 276, 276, 253, 205, 267, 149, 276, 82,
|
|
|
|
|
/* 1210 */ 276, 276, 276, 276, 276, 276, 276, 276, 252, 242,
|
|
|
|
|
/* 1220 */ 276, 105, 276, 275, 276, 253, 205, 276, 111, 267,
|
|
|
|
|
/* 1230 */ 82, 276, 276, 276, 276, 276, 276, 276, 276, 252,
|
|
|
|
|
/* 1240 */ 242, 276, 105, 276, 275, 276, 276, 276, 276, 276,
|
|
|
|
|
/* 1250 */ 267, 276, 276, 253, 205, 276, 136, 276, 82, 276,
|
|
|
|
|
/* 1260 */ 276, 276, 276, 276, 276, 276, 276, 252, 242, 276,
|
|
|
|
|
/* 1270 */ 105, 276, 275, 276, 276, 276, 253, 205, 267, 122,
|
|
|
|
|
/* 1280 */ 276, 82, 276, 276, 276, 276, 276, 276, 276, 276,
|
|
|
|
|
/* 1290 */ 252, 242, 276, 105, 276, 275, 276, 253, 205, 276,
|
|
|
|
|
/* 1300 */ 141, 267, 82, 276, 276, 276, 276, 276, 276, 276,
|
|
|
|
|
/* 1310 */ 276, 252, 242, 276, 105, 276, 275, 276, 276, 276,
|
|
|
|
|
/* 1320 */ 276, 276, 267, 276, 276, 253, 205, 276, 127, 276,
|
|
|
|
|
/* 1330 */ 82, 276, 276, 276, 276, 276, 276, 276, 276, 252,
|
|
|
|
|
/* 1340 */ 242, 276, 105, 276, 275, 276, 276, 276, 253, 205,
|
|
|
|
|
/* 1350 */ 267, 134, 276, 82, 276, 276, 276, 276, 276, 276,
|
|
|
|
|
/* 1360 */ 276, 276, 252, 242, 276, 105, 276, 275, 276, 253,
|
|
|
|
|
/* 1370 */ 205, 276, 276, 267, 82, 276, 276, 276, 276, 276,
|
|
|
|
|
/* 1380 */ 276, 276, 276, 252, 242, 276, 101, 276, 275, 276,
|
|
|
|
|
/* 1390 */ 276, 276, 276, 276, 267, 276, 276, 253, 205, 276,
|
|
|
|
|
/* 1400 */ 276, 276, 82, 276, 276, 276, 276, 276, 276, 276,
|
|
|
|
|
/* 1410 */ 276, 252, 242, 276, 99, 276, 275, 276, 276, 276,
|
|
|
|
|
/* 1420 */ 253, 205, 267, 276, 276, 82, 276, 276, 276, 276,
|
|
|
|
|
/* 1430 */ 276, 276, 276, 276, 252, 242, 276, 103, 276, 275,
|
|
|
|
|
/* 1440 */ 276, 253, 205, 276, 276, 267, 82, 276, 276, 276,
|
|
|
|
|
/* 1450 */ 276, 276, 276, 276, 276, 308, 311, 276, 253, 205,
|
|
|
|
|
/* 1460 */ 275, 276, 276, 82, 276, 276, 267, 276, 276, 276,
|
|
|
|
|
/* 1470 */ 276, 276, 321, 276, 276, 276, 276, 275, 276, 276,
|
|
|
|
|
/* 1480 */ 276, 276, 276, 267,
|
2009-11-08 16:17:51 +00:00
|
|
|
);
|
|
|
|
|
static public $yy_lookahead = array(
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 0 */ 7, 10, 3, 10, 20, 14, 7, 14, 8, 9,
|
|
|
|
|
/* 10 */ 7, 18, 12, 10, 21, 22, 7, 18, 9, 10,
|
|
|
|
|
/* 20 */ 27, 28, 22, 30, 31, 32, 33, 36, 7, 36,
|
|
|
|
|
/* 30 */ 37, 10, 33, 40, 34, 14, 71, 72, 35, 18,
|
|
|
|
|
/* 40 */ 99, 76, 21, 22, 68, 69, 70, 71, 27, 28,
|
|
|
|
|
/* 50 */ 85, 30, 31, 32, 33, 90, 8, 36, 37, 38,
|
|
|
|
|
/* 60 */ 7, 96, 3, 10, 65, 66, 7, 14, 73, 7,
|
|
|
|
|
/* 70 */ 8, 18, 10, 94, 21, 22, 97, 18, 99, 17,
|
|
|
|
|
/* 80 */ 27, 28, 87, 30, 31, 32, 33, 39, 7, 36,
|
|
|
|
|
/* 90 */ 37, 10, 33, 40, 8, 14, 71, 72, 12, 18,
|
|
|
|
|
/* 100 */ 71, 76, 21, 22, 7, 11, 9, 10, 27, 28,
|
|
|
|
|
/* 110 */ 85, 30, 31, 32, 33, 90, 7, 36, 37, 10,
|
|
|
|
|
/* 120 */ 91, 96, 14, 14, 65, 66, 7, 18, 9, 10,
|
|
|
|
|
/* 130 */ 21, 22, 35, 78, 15, 106, 27, 28, 77, 30,
|
|
|
|
|
/* 140 */ 31, 32, 33, 17, 7, 36, 37, 10, 22, 21,
|
|
|
|
|
/* 150 */ 9, 14, 72, 25, 26, 18, 76, 16, 21, 22,
|
|
|
|
|
/* 160 */ 34, 23, 23, 102, 27, 28, 38, 30, 31, 32,
|
|
|
|
|
/* 170 */ 33, 95, 92, 36, 37, 13, 96, 8, 39, 20,
|
|
|
|
|
/* 180 */ 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
|
|
|
|
|
/* 190 */ 21, 70, 71, 52, 25, 26, 7, 8, 39, 10,
|
|
|
|
|
/* 200 */ 62, 63, 64, 8, 42, 43, 44, 45, 46, 47,
|
|
|
|
|
/* 210 */ 48, 49, 50, 51, 83, 7, 71, 72, 10, 74,
|
|
|
|
|
/* 220 */ 75, 76, 14, 8, 62, 63, 64, 12, 23, 98,
|
|
|
|
|
/* 230 */ 85, 86, 9, 88, 39, 90, 28, 8, 30, 31,
|
|
|
|
|
/* 240 */ 7, 96, 72, 10, 36, 22, 76, 42, 43, 44,
|
|
|
|
|
/* 250 */ 45, 46, 47, 48, 49, 50, 51, 34, 7, 7,
|
|
|
|
|
/* 260 */ 8, 10, 10, 20, 77, 14, 96, 62, 63, 64,
|
|
|
|
|
/* 270 */ 95, 42, 43, 44, 45, 46, 47, 48, 49, 50,
|
|
|
|
|
/* 280 */ 51, 72, 39, 7, 21, 76, 10, 36, 25, 26,
|
|
|
|
|
/* 290 */ 14, 62, 63, 64, 18, 8, 84, 21, 22, 12,
|
|
|
|
|
/* 300 */ 11, 12, 15, 27, 28, 96, 30, 31, 32, 33,
|
|
|
|
|
/* 310 */ 98, 7, 36, 37, 10, 78, 78, 8, 14, 71,
|
|
|
|
|
/* 320 */ 72, 12, 18, 8, 76, 21, 22, 12, 39, 73,
|
|
|
|
|
/* 330 */ 15, 27, 28, 85, 30, 31, 32, 33, 90, 7,
|
|
|
|
|
/* 340 */ 36, 37, 10, 87, 96, 22, 14, 29, 7, 8,
|
|
|
|
|
/* 350 */ 18, 10, 29, 21, 22, 37, 100, 34, 17, 27,
|
|
|
|
|
/* 360 */ 28, 38, 30, 31, 32, 33, 13, 10, 36, 37,
|
|
|
|
|
/* 370 */ 72, 14, 19, 19, 76, 42, 43, 44, 45, 46,
|
|
|
|
|
/* 380 */ 47, 48, 49, 50, 51, 1, 2, 3, 4, 5,
|
|
|
|
|
/* 390 */ 6, 7, 12, 39, 96, 62, 63, 64, 71, 72,
|
|
|
|
|
/* 400 */ 20, 74, 18, 76, 83, 8, 79, 80, 81, 12,
|
|
|
|
|
/* 410 */ 19, 7, 85, 86, 10, 88, 73, 90, 14, 98,
|
|
|
|
|
/* 420 */ 78, 8, 18, 96, 73, 12, 22, 39, 101, 38,
|
|
|
|
|
/* 430 */ 87, 27, 28, 95, 30, 31, 32, 33, 87, 7,
|
|
|
|
|
/* 440 */ 36, 37, 10, 100, 8, 8, 14, 11, 12, 12,
|
|
|
|
|
/* 450 */ 18, 100, 71, 72, 22, 74, 23, 76, 22, 27,
|
|
|
|
|
/* 460 */ 28, 22, 30, 31, 32, 33, 85, 86, 36, 88,
|
|
|
|
|
/* 470 */ 34, 90, 39, 34, 41, 39, 39, 96, 17, 72,
|
|
|
|
|
/* 480 */ 8, 11, 95, 76, 12, 98, 53, 54, 55, 56,
|
|
|
|
|
/* 490 */ 57, 58, 59, 60, 61, 7, 23, 73, 10, 29,
|
|
|
|
|
/* 500 */ 39, 77, 14, 96, 8, 8, 18, 37, 12, 12,
|
|
|
|
|
/* 510 */ 22, 87, 39, 8, 41, 27, 28, 12, 30, 31,
|
|
|
|
|
/* 520 */ 32, 33, 10, 14, 36, 80, 53, 54, 55, 56,
|
|
|
|
|
/* 530 */ 57, 58, 59, 60, 61, 7, 10, 73, 10, 73,
|
|
|
|
|
/* 540 */ 73, 77, 14, 77, 77, 36, 18, 35, 8, 8,
|
|
|
|
|
/* 550 */ 22, 87, 12, 87, 87, 27, 28, 100, 30, 31,
|
|
|
|
|
/* 560 */ 32, 33, 71, 72, 36, 74, 8, 76, 73, 7,
|
|
|
|
|
/* 570 */ 79, 8, 77, 12, 8, 12, 85, 86, 12, 88,
|
|
|
|
|
/* 580 */ 39, 90, 87, 9, 22, 11, 83, 96, 71, 72,
|
|
|
|
|
/* 590 */ 4, 74, 101, 76, 94, 3, 79, 83, 14, 99,
|
|
|
|
|
/* 600 */ 39, 98, 85, 86, 94, 88, 73, 90, 4, 99,
|
|
|
|
|
/* 610 */ 3, 73, 98, 96, 71, 72, 94, 74, 101, 76,
|
|
|
|
|
/* 620 */ 87, 99, 79, 7, 9, 87, 10, 83, 85, 86,
|
|
|
|
|
/* 630 */ 83, 88, 39, 90, 41, 71, 10, 10, 10, 96,
|
|
|
|
|
/* 640 */ 83, 22, 98, 83, 101, 98, 53, 54, 55, 56,
|
|
|
|
|
/* 650 */ 57, 58, 59, 60, 61, 98, 24, 14, 98, 71,
|
|
|
|
|
/* 660 */ 72, 15, 74, 38, 76, 36, 28, 79, 8, 24,
|
|
|
|
|
/* 670 */ 106, 14, 23, 85, 86, 20, 88, 10, 90, 14,
|
|
|
|
|
/* 680 */ 14, 8, 10, 36, 96, 71, 72, 16, 74, 101,
|
|
|
|
|
/* 690 */ 76, 10, 23, 79, 52, 95, 10, 23, 10, 85,
|
|
|
|
|
/* 700 */ 86, 65, 88, 98, 90, 29, 71, 72, 87, 74,
|
|
|
|
|
/* 710 */ 96, 76, 89, 95, 79, 101, 12, 97, 22, 82,
|
|
|
|
|
/* 720 */ 85, 86, 12, 88, 107, 90, 82, 103, 107, 107,
|
|
|
|
|
/* 730 */ 107, 96, 71, 72, 107, 74, 101, 76, 107, 107,
|
|
|
|
|
/* 740 */ 79, 107, 92, 107, 107, 107, 85, 86, 107, 88,
|
|
|
|
|
/* 750 */ 107, 90, 107, 107, 107, 107, 107, 96, 71, 72,
|
|
|
|
|
/* 760 */ 107, 74, 101, 76, 107, 107, 79, 107, 107, 107,
|
|
|
|
|
/* 770 */ 107, 107, 85, 86, 107, 88, 107, 90, 107, 71,
|
|
|
|
|
/* 780 */ 72, 107, 74, 96, 76, 107, 71, 72, 101, 74,
|
|
|
|
|
/* 790 */ 75, 76, 107, 85, 86, 107, 88, 107, 90, 107,
|
|
|
|
|
/* 800 */ 85, 86, 107, 88, 96, 90, 107, 107, 107, 107,
|
|
|
|
|
/* 810 */ 107, 96, 104, 105, 107, 107, 107, 107, 71, 72,
|
|
|
|
|
/* 820 */ 107, 74, 107, 76, 107, 107, 79, 107, 107, 107,
|
|
|
|
|
/* 830 */ 107, 107, 85, 86, 107, 88, 107, 90, 107, 107,
|
|
|
|
|
/* 840 */ 107, 107, 107, 96, 71, 72, 107, 74, 101, 76,
|
|
|
|
|
/* 850 */ 107, 107, 79, 107, 107, 107, 107, 107, 85, 86,
|
|
|
|
|
/* 860 */ 107, 88, 107, 90, 107, 71, 72, 107, 74, 96,
|
|
|
|
|
/* 870 */ 76, 107, 107, 79, 101, 107, 107, 107, 107, 85,
|
|
|
|
|
/* 880 */ 86, 107, 88, 107, 90, 107, 107, 107, 107, 107,
|
|
|
|
|
/* 890 */ 96, 107, 107, 71, 72, 101, 74, 75, 76, 107,
|
|
|
|
|
/* 900 */ 107, 107, 107, 107, 107, 107, 107, 85, 86, 107,
|
|
|
|
|
/* 910 */ 88, 107, 90, 107, 107, 107, 71, 72, 96, 74,
|
|
|
|
|
/* 920 */ 75, 76, 107, 107, 107, 107, 107, 107, 107, 107,
|
|
|
|
|
/* 930 */ 85, 86, 107, 88, 107, 90, 107, 71, 72, 107,
|
|
|
|
|
/* 940 */ 74, 96, 76, 107, 107, 107, 107, 107, 107, 107,
|
|
|
|
|
/* 950 */ 107, 85, 86, 107, 88, 107, 90, 107, 107, 93,
|
|
|
|
|
/* 960 */ 107, 107, 96, 107, 107, 71, 72, 107, 74, 107,
|
|
|
|
|
/* 970 */ 76, 107, 107, 107, 107, 107, 107, 107, 107, 85,
|
|
|
|
|
/* 980 */ 86, 107, 88, 107, 90, 107, 107, 93, 71, 72,
|
|
|
|
|
/* 990 */ 96, 74, 107, 76, 107, 107, 107, 107, 107, 107,
|
|
|
|
|
/* 1000 */ 107, 107, 85, 86, 107, 88, 107, 90, 107, 71,
|
|
|
|
|
/* 1010 */ 72, 107, 74, 96, 76, 107, 107, 107, 107, 107,
|
|
|
|
|
/* 1020 */ 107, 107, 105, 85, 86, 107, 88, 107, 90, 107,
|
|
|
|
|
/* 1030 */ 107, 93, 107, 107, 96, 107, 107, 71, 72, 107,
|
|
|
|
|
/* 1040 */ 74, 107, 76, 107, 107, 107, 107, 107, 107, 107,
|
|
|
|
|
/* 1050 */ 107, 85, 86, 107, 88, 107, 90, 107, 107, 93,
|
|
|
|
|
/* 1060 */ 71, 72, 96, 74, 107, 76, 107, 107, 107, 107,
|
|
|
|
|
/* 1070 */ 107, 107, 107, 107, 85, 86, 107, 88, 107, 90,
|
|
|
|
|
/* 1080 */ 107, 71, 72, 107, 74, 96, 76, 107, 107, 107,
|
|
|
|
|
/* 1090 */ 107, 107, 107, 107, 107, 85, 86, 107, 88, 107,
|
|
|
|
|
/* 1100 */ 90, 107, 107, 107, 107, 107, 96, 107, 107, 71,
|
|
|
|
|
/* 1110 */ 72, 107, 74, 107, 76, 107, 107, 107, 107, 107,
|
|
|
|
|
/* 1120 */ 107, 107, 107, 85, 86, 107, 88, 107, 90, 107,
|
|
|
|
|
/* 1130 */ 107, 107, 71, 72, 96, 74, 107, 76, 107, 107,
|
|
|
|
|
/* 1140 */ 107, 107, 107, 107, 107, 107, 85, 86, 107, 88,
|
|
|
|
|
/* 1150 */ 107, 90, 107, 71, 72, 107, 74, 96, 76, 107,
|
|
|
|
|
/* 1160 */ 107, 107, 107, 107, 107, 107, 107, 85, 86, 107,
|
|
|
|
|
/* 1170 */ 88, 107, 90, 107, 107, 107, 107, 107, 96, 107,
|
|
|
|
|
/* 1180 */ 107, 71, 72, 107, 74, 107, 76, 107, 107, 107,
|
|
|
|
|
/* 1190 */ 107, 107, 107, 107, 107, 85, 86, 107, 88, 107,
|
|
|
|
|
/* 1200 */ 90, 107, 107, 107, 71, 72, 96, 74, 107, 76,
|
|
|
|
|
/* 1210 */ 107, 107, 107, 107, 107, 107, 107, 107, 85, 86,
|
|
|
|
|
/* 1220 */ 107, 88, 107, 90, 107, 71, 72, 107, 74, 96,
|
|
|
|
|
/* 1230 */ 76, 107, 107, 107, 107, 107, 107, 107, 107, 85,
|
|
|
|
|
/* 1240 */ 86, 107, 88, 107, 90, 107, 107, 107, 107, 107,
|
|
|
|
|
/* 1250 */ 96, 107, 107, 71, 72, 107, 74, 107, 76, 107,
|
|
|
|
|
/* 1260 */ 107, 107, 107, 107, 107, 107, 107, 85, 86, 107,
|
|
|
|
|
/* 1270 */ 88, 107, 90, 107, 107, 107, 71, 72, 96, 74,
|
|
|
|
|
/* 1280 */ 107, 76, 107, 107, 107, 107, 107, 107, 107, 107,
|
|
|
|
|
/* 1290 */ 85, 86, 107, 88, 107, 90, 107, 71, 72, 107,
|
|
|
|
|
/* 1300 */ 74, 96, 76, 107, 107, 107, 107, 107, 107, 107,
|
|
|
|
|
/* 1310 */ 107, 85, 86, 107, 88, 107, 90, 107, 107, 107,
|
|
|
|
|
/* 1320 */ 107, 107, 96, 107, 107, 71, 72, 107, 74, 107,
|
|
|
|
|
/* 1330 */ 76, 107, 107, 107, 107, 107, 107, 107, 107, 85,
|
|
|
|
|
/* 1340 */ 86, 107, 88, 107, 90, 107, 107, 107, 71, 72,
|
|
|
|
|
/* 1350 */ 96, 74, 107, 76, 107, 107, 107, 107, 107, 107,
|
|
|
|
|
/* 1360 */ 107, 107, 85, 86, 107, 88, 107, 90, 107, 71,
|
|
|
|
|
/* 1370 */ 72, 107, 107, 96, 76, 107, 107, 107, 107, 107,
|
|
|
|
|
/* 1380 */ 107, 107, 107, 85, 86, 107, 88, 107, 90, 107,
|
|
|
|
|
/* 1390 */ 107, 107, 107, 107, 96, 107, 107, 71, 72, 107,
|
|
|
|
|
/* 1400 */ 107, 107, 76, 107, 107, 107, 107, 107, 107, 107,
|
|
|
|
|
/* 1410 */ 107, 85, 86, 107, 88, 107, 90, 107, 107, 107,
|
|
|
|
|
/* 1420 */ 71, 72, 96, 107, 107, 76, 107, 107, 107, 107,
|
|
|
|
|
/* 1430 */ 107, 107, 107, 107, 85, 86, 107, 88, 107, 90,
|
|
|
|
|
/* 1440 */ 107, 71, 72, 107, 107, 96, 76, 107, 107, 107,
|
|
|
|
|
/* 1450 */ 107, 107, 107, 107, 107, 85, 86, 107, 71, 72,
|
|
|
|
|
/* 1460 */ 90, 107, 107, 76, 107, 107, 96, 107, 107, 107,
|
|
|
|
|
/* 1470 */ 107, 107, 85, 107, 107, 107, 107, 90, 107, 107,
|
|
|
|
|
/* 1480 */ 107, 107, 107, 96,
|
2009-11-08 16:17:51 +00:00
|
|
|
);
|
2009-11-17 18:09:29 +00:00
|
|
|
const YY_SHIFT_USE_DFLT = -17;
|
|
|
|
|
const YY_SHIFT_MAX = 208;
|
2009-11-08 16:17:51 +00:00
|
|
|
static public $yy_shift_ofst = array(
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 0 */ 384, 53, -7, -7, -7, -7, -7, -7, -7, -7,
|
|
|
|
|
/* 10 */ -7, -7, -7, 332, 81, 81, 109, 81, 137, 332,
|
|
|
|
|
/* 20 */ 81, 109, 137, 81, 81, 81, 81, 81, 81, 81,
|
|
|
|
|
/* 30 */ 81, 81, 81, 81, 81, 81, 81, 21, 304, 276,
|
|
|
|
|
/* 40 */ 404, 488, 432, 488, 528, 251, 208, 436, 59, 289,
|
|
|
|
|
/* 50 */ -9, 470, 437, 380, 380, 509, 509, 380, 561, 561,
|
|
|
|
|
/* 60 */ 561, 473, 433, 593, 384, -1, 119, 97, 287, 315,
|
|
|
|
|
/* 70 */ 3, 233, 616, 233, 233, 233, 574, 616, 233, 233,
|
|
|
|
|
/* 80 */ 233, 704, 94, 94, 94, 704, 229, 205, 162, 138,
|
|
|
|
|
/* 90 */ 333, 333, 333, 333, 333, 333, 333, 333, 341, 169,
|
|
|
|
|
/* 100 */ 62, 128, 252, 263, 9, 263, 189, 86, 48, 215,
|
|
|
|
|
/* 110 */ 159, 243, 461, 318, 354, 318, 318, 566, 540, 318,
|
|
|
|
|
/* 120 */ 496, 562, 195, 505, 397, 563, 541, 139, 309, 357,
|
|
|
|
|
/* 130 */ 318, 472, 413, 388, 388, 388, 388, 388, 710, 388,
|
|
|
|
|
/* 140 */ 710, 388, 94, 696, 94, -16, 94, 108, 94, 388,
|
|
|
|
|
/* 150 */ 388, -17, -17, -17, -17, -17, -17, -17, 0, 323,
|
|
|
|
|
/* 160 */ 126, 223, 141, 439, 353, 512, 439, 439, 439, 391,
|
|
|
|
|
/* 170 */ 497, 676, 666, 673, 672, 665, 667, 657, 649, 655,
|
|
|
|
|
/* 180 */ 671, 526, 681, 686, 688, 674, 669, 647, 642, 645,
|
|
|
|
|
/* 190 */ 660, 607, 626, 615, 636, 604, 584, 586, 592, 558,
|
|
|
|
|
/* 200 */ 619, 627, 638, 625, 629, 646, 628, 632, 643,
|
2009-11-08 16:17:51 +00:00
|
|
|
);
|
2009-11-17 18:09:29 +00:00
|
|
|
const YY_REDUCE_USE_DFLT = -60;
|
|
|
|
|
const YY_REDUCE_MAX = 157;
|
2009-11-08 16:17:51 +00:00
|
|
|
static public $yy_reduce_ofst = array(
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 0 */ -24, 327, 773, 661, 517, 543, 614, 588, 635, 491,
|
|
|
|
|
/* 10 */ 687, 794, 747, 708, 866, 938, 145, 966, 715, 917,
|
|
|
|
|
/* 20 */ 894, 845, 822, 1110, 1133, 1082, 1061, 989, 1010, 1038,
|
|
|
|
|
/* 30 */ 1154, 1182, 1254, 1277, 381, 1205, 1226, 1298, 1349, 1326,
|
|
|
|
|
/* 40 */ 1370, -35, 1387, 248, 25, 80, 298, 466, 29, 464,
|
|
|
|
|
/* 50 */ 407, -21, 424, 343, 256, 170, 209, 351, 424, 467,
|
|
|
|
|
/* 60 */ 495, 61, 61, 61, 121, 564, 212, 387, -5, -5,
|
|
|
|
|
/* 70 */ 387, 544, 321, 514, 131, 547, 510, 560, 557, 503,
|
|
|
|
|
/* 80 */ 321, 538, 510, 500, 522, 533, 624, 624, 624, 624,
|
|
|
|
|
/* 90 */ 624, 624, 624, 624, 624, 624, 624, 624, 605, 623,
|
|
|
|
|
/* 100 */ 605, 623, 605, 623, 605, 623, 605, 621, 187, 621,
|
|
|
|
|
/* 110 */ 187, 187, 187, 620, 187, 620, 620, 621, 621, 620,
|
|
|
|
|
/* 120 */ 621, 618, 187, 621, 621, 621, 187, 187, 621, 650,
|
|
|
|
|
/* 130 */ 620, 621, 621, 187, 187, 187, 187, 187, 644, 187,
|
|
|
|
|
/* 140 */ 637, 187, -59, 600, -59, 457, -59, 445, -59, 187,
|
|
|
|
|
/* 150 */ 187, 175, 238, 338, 342, 237, 55, 76,
|
2009-11-08 16:17:51 +00:00
|
|
|
);
|
|
|
|
|
static public $yyExpectedTokens = array(
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 0 */ array(1, 2, 3, 4, 5, 6, 7, 18, ),
|
|
|
|
|
/* 1 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, 40, ),
|
|
|
|
|
/* 2 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, 40, ),
|
|
|
|
|
/* 3 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, 40, ),
|
|
|
|
|
/* 4 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, 40, ),
|
|
|
|
|
/* 5 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, 40, ),
|
|
|
|
|
/* 6 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, 40, ),
|
|
|
|
|
/* 7 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, 40, ),
|
|
|
|
|
/* 8 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, 40, ),
|
|
|
|
|
/* 9 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, 40, ),
|
|
|
|
|
/* 10 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, 40, ),
|
|
|
|
|
/* 11 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, 40, ),
|
|
|
|
|
/* 12 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, 40, ),
|
|
|
|
|
/* 13 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 14 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 15 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 16 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 17 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 18 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 19 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 20 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 21 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 22 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 23 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 24 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 25 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 26 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 27 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 28 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 29 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 30 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 31 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 32 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 33 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 34 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 35 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 36 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 37 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, 38, ),
|
|
|
|
|
/* 38 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 39 */ array(7, 10, 14, 18, 21, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 40 */ array(7, 10, 14, 18, 22, 27, 28, 30, 31, 32, 33, 36, 37, ),
|
|
|
|
|
/* 41 */ array(7, 10, 14, 18, 22, 27, 28, 30, 31, 32, 33, 36, ),
|
|
|
|
|
/* 42 */ array(7, 10, 14, 18, 22, 27, 28, 30, 31, 32, 33, 36, ),
|
|
|
|
|
/* 43 */ array(7, 10, 14, 18, 22, 27, 28, 30, 31, 32, 33, 36, ),
|
|
|
|
|
/* 44 */ array(7, 10, 14, 18, 22, 27, 28, 30, 31, 32, 33, 36, ),
|
|
|
|
|
/* 45 */ array(7, 10, 14, 36, ),
|
|
|
|
|
/* 46 */ array(7, 10, 14, 28, 30, 31, 36, ),
|
|
|
|
|
/* 47 */ array(8, 11, 12, 22, 34, 39, ),
|
|
|
|
|
/* 48 */ array(3, 7, 18, 33, 65, 66, ),
|
|
|
|
|
/* 49 */ array(11, 12, 39, ),
|
|
|
|
|
/* 50 */ array(10, 14, 36, ),
|
|
|
|
|
/* 51 */ array(11, 29, 37, ),
|
|
|
|
|
/* 52 */ array(8, 12, 39, ),
|
|
|
|
|
/* 53 */ array(12, 20, ),
|
|
|
|
|
/* 54 */ array(12, 20, ),
|
|
|
|
|
/* 55 */ array(14, 36, ),
|
|
|
|
|
/* 56 */ array(14, 36, ),
|
|
|
|
|
/* 57 */ array(12, 20, ),
|
|
|
|
|
/* 58 */ array(12, 39, ),
|
|
|
|
|
/* 59 */ array(12, 39, ),
|
|
|
|
|
/* 60 */ array(12, 39, ),
|
|
|
|
|
/* 61 */ array(23, 39, 41, 53, 54, 55, 56, 57, 58, 59, 60, 61, ),
|
|
|
|
|
/* 62 */ array(23, 39, 41, 53, 54, 55, 56, 57, 58, 59, 60, 61, ),
|
|
|
|
|
/* 63 */ array(39, 41, 53, 54, 55, 56, 57, 58, 59, 60, 61, ),
|
|
|
|
|
/* 64 */ array(1, 2, 3, 4, 5, 6, 7, 18, ),
|
|
|
|
|
/* 65 */ array(3, 7, 18, 33, 65, 66, ),
|
|
|
|
|
/* 66 */ array(7, 9, 10, 15, ),
|
|
|
|
|
/* 67 */ array(7, 9, 10, 35, ),
|
|
|
|
|
/* 68 */ array(8, 12, 15, ),
|
|
|
|
|
/* 69 */ array(8, 12, 15, ),
|
|
|
|
|
/* 70 */ array(7, 10, 35, ),
|
2009-11-15 19:05:53 +00:00
|
|
|
/* 71 */ array(7, 10, ),
|
|
|
|
|
/* 72 */ array(7, 10, ),
|
|
|
|
|
/* 73 */ array(7, 10, ),
|
|
|
|
|
/* 74 */ array(7, 10, ),
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 75 */ array(7, 10, ),
|
|
|
|
|
/* 76 */ array(9, 11, ),
|
|
|
|
|
/* 77 */ array(7, 10, ),
|
|
|
|
|
/* 78 */ array(7, 10, ),
|
|
|
|
|
/* 79 */ array(7, 10, ),
|
|
|
|
|
/* 80 */ array(7, 10, ),
|
|
|
|
|
/* 81 */ array(12, ),
|
|
|
|
|
/* 82 */ array(11, ),
|
|
|
|
|
/* 83 */ array(11, ),
|
|
|
|
|
/* 84 */ array(11, ),
|
|
|
|
|
/* 85 */ array(12, ),
|
|
|
|
|
/* 86 */ array(8, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 62, 63, 64, ),
|
|
|
|
|
/* 87 */ array(23, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 62, 63, 64, ),
|
|
|
|
|
/* 88 */ array(13, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 62, 63, 64, ),
|
|
|
|
|
/* 89 */ array(23, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 62, 63, 64, ),
|
|
|
|
|
/* 90 */ array(42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 62, 63, 64, ),
|
|
|
|
|
/* 91 */ array(42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 62, 63, 64, ),
|
|
|
|
|
/* 92 */ array(42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 62, 63, 64, ),
|
|
|
|
|
/* 93 */ array(42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 62, 63, 64, ),
|
|
|
|
|
/* 94 */ array(42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 62, 63, 64, ),
|
|
|
|
|
/* 95 */ array(42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 62, 63, 64, ),
|
|
|
|
|
/* 96 */ array(42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 62, 63, 64, ),
|
|
|
|
|
/* 97 */ array(42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 62, 63, 64, ),
|
|
|
|
|
/* 98 */ array(7, 8, 10, 17, ),
|
|
|
|
|
/* 99 */ array(8, 21, 25, 26, ),
|
|
|
|
|
/* 100 */ array(7, 8, 10, 17, ),
|
|
|
|
|
/* 101 */ array(21, 25, 26, 38, ),
|
|
|
|
|
/* 102 */ array(7, 8, 10, ),
|
|
|
|
|
/* 103 */ array(21, 25, 26, ),
|
|
|
|
|
/* 104 */ array(7, 9, 10, ),
|
|
|
|
|
/* 105 */ array(21, 25, 26, ),
|
|
|
|
|
/* 106 */ array(7, 8, 10, ),
|
|
|
|
|
/* 107 */ array(8, 12, ),
|
|
|
|
|
/* 108 */ array(8, 39, ),
|
2009-11-15 19:05:53 +00:00
|
|
|
/* 109 */ array(8, 12, ),
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 110 */ array(20, 39, ),
|
|
|
|
|
/* 111 */ array(20, 39, ),
|
|
|
|
|
/* 112 */ array(17, 39, ),
|
|
|
|
|
/* 113 */ array(29, 37, ),
|
|
|
|
|
/* 114 */ array(19, 39, ),
|
|
|
|
|
/* 115 */ array(29, 37, ),
|
|
|
|
|
/* 116 */ array(29, 37, ),
|
|
|
|
|
/* 117 */ array(8, 12, ),
|
2009-11-15 19:05:53 +00:00
|
|
|
/* 118 */ array(8, 12, ),
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 119 */ array(29, 37, ),
|
2009-11-15 19:05:53 +00:00
|
|
|
/* 120 */ array(8, 12, ),
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 121 */ array(7, 22, ),
|
|
|
|
|
/* 122 */ array(8, 39, ),
|
2009-11-15 19:05:53 +00:00
|
|
|
/* 123 */ array(8, 12, ),
|
|
|
|
|
/* 124 */ array(8, 12, ),
|
|
|
|
|
/* 125 */ array(8, 12, ),
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 126 */ array(8, 39, ),
|
|
|
|
|
/* 127 */ array(23, 39, ),
|
|
|
|
|
/* 128 */ array(8, 12, ),
|
|
|
|
|
/* 129 */ array(10, 14, ),
|
|
|
|
|
/* 130 */ array(29, 37, ),
|
|
|
|
|
/* 131 */ array(8, 12, ),
|
|
|
|
|
/* 132 */ array(8, 12, ),
|
|
|
|
|
/* 133 */ array(39, ),
|
|
|
|
|
/* 134 */ array(39, ),
|
|
|
|
|
/* 135 */ array(39, ),
|
|
|
|
|
/* 136 */ array(39, ),
|
|
|
|
|
/* 137 */ array(39, ),
|
|
|
|
|
/* 138 */ array(12, ),
|
|
|
|
|
/* 139 */ array(39, ),
|
|
|
|
|
/* 140 */ array(12, ),
|
|
|
|
|
/* 141 */ array(39, ),
|
|
|
|
|
/* 142 */ array(11, ),
|
|
|
|
|
/* 143 */ array(22, ),
|
|
|
|
|
/* 144 */ array(11, ),
|
|
|
|
|
/* 145 */ array(20, ),
|
|
|
|
|
/* 146 */ array(11, ),
|
|
|
|
|
/* 147 */ array(14, ),
|
|
|
|
|
/* 148 */ array(11, ),
|
|
|
|
|
/* 149 */ array(39, ),
|
|
|
|
|
/* 150 */ array(39, ),
|
|
|
|
|
/* 151 */ array(),
|
|
|
|
|
/* 152 */ array(),
|
|
|
|
|
/* 153 */ array(),
|
|
|
|
|
/* 154 */ array(),
|
|
|
|
|
/* 155 */ array(),
|
|
|
|
|
/* 156 */ array(),
|
|
|
|
|
/* 157 */ array(),
|
|
|
|
|
/* 158 */ array(8, 9, 12, 22, 34, ),
|
|
|
|
|
/* 159 */ array(22, 29, 34, 38, ),
|
|
|
|
|
/* 160 */ array(17, 22, 34, ),
|
|
|
|
|
/* 161 */ array(9, 22, 34, ),
|
|
|
|
|
/* 162 */ array(9, 16, 52, ),
|
|
|
|
|
/* 163 */ array(22, 34, ),
|
|
|
|
|
/* 164 */ array(13, 19, ),
|
|
|
|
|
/* 165 */ array(10, 35, ),
|
|
|
|
|
/* 166 */ array(22, 34, ),
|
|
|
|
|
/* 167 */ array(22, 34, ),
|
|
|
|
|
/* 168 */ array(22, 34, ),
|
|
|
|
|
/* 169 */ array(19, 38, ),
|
|
|
|
|
/* 170 */ array(8, 12, ),
|
|
|
|
|
/* 171 */ array(29, ),
|
|
|
|
|
/* 172 */ array(14, ),
|
|
|
|
|
/* 173 */ array(8, ),
|
|
|
|
|
/* 174 */ array(10, ),
|
2009-11-15 19:05:53 +00:00
|
|
|
/* 175 */ array(14, ),
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 176 */ array(10, ),
|
|
|
|
|
/* 177 */ array(14, ),
|
|
|
|
|
/* 178 */ array(23, ),
|
|
|
|
|
/* 179 */ array(20, ),
|
|
|
|
|
/* 180 */ array(16, ),
|
2009-11-15 19:05:53 +00:00
|
|
|
/* 181 */ array(10, ),
|
|
|
|
|
/* 182 */ array(10, ),
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 183 */ array(10, ),
|
2009-11-15 19:05:53 +00:00
|
|
|
/* 184 */ array(10, ),
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 185 */ array(23, ),
|
|
|
|
|
/* 186 */ array(23, ),
|
|
|
|
|
/* 187 */ array(36, ),
|
|
|
|
|
/* 188 */ array(52, ),
|
|
|
|
|
/* 189 */ array(24, ),
|
|
|
|
|
/* 190 */ array(8, ),
|
|
|
|
|
/* 191 */ array(3, ),
|
2009-11-15 19:05:53 +00:00
|
|
|
/* 192 */ array(10, ),
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 193 */ array(9, ),
|
|
|
|
|
/* 194 */ array(65, ),
|
|
|
|
|
/* 195 */ array(4, ),
|
|
|
|
|
/* 196 */ array(14, ),
|
|
|
|
|
/* 197 */ array(4, ),
|
|
|
|
|
/* 198 */ array(3, ),
|
|
|
|
|
/* 199 */ array(8, ),
|
|
|
|
|
/* 200 */ array(22, ),
|
|
|
|
|
/* 201 */ array(10, ),
|
|
|
|
|
/* 202 */ array(28, ),
|
|
|
|
|
/* 203 */ array(38, ),
|
|
|
|
|
/* 204 */ array(36, ),
|
|
|
|
|
/* 205 */ array(15, ),
|
|
|
|
|
/* 206 */ array(10, ),
|
|
|
|
|
/* 207 */ array(24, ),
|
|
|
|
|
/* 208 */ array(14, ),
|
2009-11-14 20:09:18 +00:00
|
|
|
/* 209 */ array(),
|
|
|
|
|
/* 210 */ array(),
|
2009-11-08 16:17:51 +00:00
|
|
|
/* 211 */ array(),
|
|
|
|
|
/* 212 */ array(),
|
|
|
|
|
/* 213 */ array(),
|
|
|
|
|
/* 214 */ array(),
|
|
|
|
|
/* 215 */ array(),
|
|
|
|
|
/* 216 */ array(),
|
|
|
|
|
/* 217 */ array(),
|
|
|
|
|
/* 218 */ array(),
|
|
|
|
|
/* 219 */ array(),
|
|
|
|
|
/* 220 */ array(),
|
|
|
|
|
/* 221 */ array(),
|
|
|
|
|
/* 222 */ array(),
|
|
|
|
|
/* 223 */ array(),
|
|
|
|
|
/* 224 */ array(),
|
|
|
|
|
/* 225 */ array(),
|
|
|
|
|
/* 226 */ array(),
|
|
|
|
|
/* 227 */ array(),
|
|
|
|
|
/* 228 */ array(),
|
|
|
|
|
/* 229 */ array(),
|
|
|
|
|
/* 230 */ array(),
|
|
|
|
|
/* 231 */ array(),
|
|
|
|
|
/* 232 */ array(),
|
|
|
|
|
/* 233 */ array(),
|
|
|
|
|
/* 234 */ array(),
|
|
|
|
|
/* 235 */ array(),
|
|
|
|
|
/* 236 */ array(),
|
|
|
|
|
/* 237 */ array(),
|
|
|
|
|
/* 238 */ array(),
|
|
|
|
|
/* 239 */ array(),
|
|
|
|
|
/* 240 */ array(),
|
|
|
|
|
/* 241 */ array(),
|
|
|
|
|
/* 242 */ array(),
|
|
|
|
|
/* 243 */ array(),
|
|
|
|
|
/* 244 */ array(),
|
|
|
|
|
/* 245 */ array(),
|
|
|
|
|
/* 246 */ array(),
|
|
|
|
|
/* 247 */ array(),
|
|
|
|
|
/* 248 */ array(),
|
|
|
|
|
/* 249 */ array(),
|
|
|
|
|
/* 250 */ array(),
|
|
|
|
|
/* 251 */ array(),
|
|
|
|
|
/* 252 */ array(),
|
|
|
|
|
/* 253 */ array(),
|
|
|
|
|
/* 254 */ array(),
|
|
|
|
|
/* 255 */ array(),
|
|
|
|
|
/* 256 */ array(),
|
|
|
|
|
/* 257 */ array(),
|
|
|
|
|
/* 258 */ array(),
|
|
|
|
|
/* 259 */ array(),
|
|
|
|
|
/* 260 */ array(),
|
|
|
|
|
/* 261 */ array(),
|
|
|
|
|
/* 262 */ array(),
|
|
|
|
|
/* 263 */ array(),
|
|
|
|
|
/* 264 */ array(),
|
|
|
|
|
/* 265 */ array(),
|
|
|
|
|
/* 266 */ array(),
|
|
|
|
|
/* 267 */ array(),
|
|
|
|
|
/* 268 */ array(),
|
|
|
|
|
/* 269 */ array(),
|
|
|
|
|
/* 270 */ array(),
|
|
|
|
|
/* 271 */ array(),
|
|
|
|
|
/* 272 */ array(),
|
|
|
|
|
/* 273 */ array(),
|
|
|
|
|
/* 274 */ array(),
|
|
|
|
|
/* 275 */ array(),
|
|
|
|
|
/* 276 */ array(),
|
|
|
|
|
/* 277 */ array(),
|
|
|
|
|
/* 278 */ array(),
|
|
|
|
|
/* 279 */ array(),
|
|
|
|
|
/* 280 */ array(),
|
|
|
|
|
/* 281 */ array(),
|
|
|
|
|
/* 282 */ array(),
|
|
|
|
|
/* 283 */ array(),
|
|
|
|
|
/* 284 */ array(),
|
|
|
|
|
/* 285 */ array(),
|
|
|
|
|
/* 286 */ array(),
|
|
|
|
|
/* 287 */ array(),
|
|
|
|
|
/* 288 */ array(),
|
|
|
|
|
/* 289 */ array(),
|
|
|
|
|
/* 290 */ array(),
|
|
|
|
|
/* 291 */ array(),
|
|
|
|
|
/* 292 */ array(),
|
|
|
|
|
/* 293 */ array(),
|
|
|
|
|
/* 294 */ array(),
|
|
|
|
|
/* 295 */ array(),
|
|
|
|
|
/* 296 */ array(),
|
|
|
|
|
/* 297 */ array(),
|
|
|
|
|
/* 298 */ array(),
|
|
|
|
|
/* 299 */ array(),
|
|
|
|
|
/* 300 */ array(),
|
|
|
|
|
/* 301 */ array(),
|
|
|
|
|
/* 302 */ array(),
|
|
|
|
|
/* 303 */ array(),
|
|
|
|
|
/* 304 */ array(),
|
|
|
|
|
/* 305 */ array(),
|
|
|
|
|
/* 306 */ array(),
|
|
|
|
|
/* 307 */ array(),
|
|
|
|
|
/* 308 */ array(),
|
|
|
|
|
/* 309 */ array(),
|
|
|
|
|
/* 310 */ array(),
|
|
|
|
|
/* 311 */ array(),
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 312 */ array(),
|
|
|
|
|
/* 313 */ array(),
|
|
|
|
|
/* 314 */ array(),
|
|
|
|
|
/* 315 */ array(),
|
|
|
|
|
/* 316 */ array(),
|
|
|
|
|
/* 317 */ array(),
|
|
|
|
|
/* 318 */ array(),
|
|
|
|
|
/* 319 */ array(),
|
|
|
|
|
/* 320 */ array(),
|
|
|
|
|
/* 321 */ array(),
|
|
|
|
|
/* 322 */ array(),
|
2009-11-08 16:17:51 +00:00
|
|
|
);
|
|
|
|
|
static public $yy_default = array(
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 0 */ 490, 490, 490, 490, 490, 490, 490, 490, 490, 490,
|
|
|
|
|
/* 10 */ 490, 490, 490, 476, 434, 434, 490, 434, 490, 490,
|
|
|
|
|
/* 20 */ 434, 490, 490, 490, 490, 490, 490, 490, 490, 490,
|
|
|
|
|
/* 30 */ 490, 490, 490, 490, 490, 490, 490, 490, 490, 490,
|
|
|
|
|
/* 40 */ 490, 490, 490, 490, 490, 490, 490, 490, 490, 357,
|
|
|
|
|
/* 50 */ 490, 396, 490, 357, 357, 490, 490, 357, 357, 357,
|
|
|
|
|
/* 60 */ 357, 444, 444, 444, 323, 490, 490, 406, 379, 379,
|
|
|
|
|
/* 70 */ 406, 490, 490, 490, 490, 490, 399, 490, 490, 490,
|
|
|
|
|
/* 80 */ 490, 357, 399, 392, 391, 357, 490, 490, 490, 490,
|
|
|
|
|
/* 90 */ 453, 450, 449, 442, 457, 458, 454, 448, 490, 490,
|
|
|
|
|
/* 100 */ 490, 490, 490, 439, 490, 367, 490, 490, 490, 490,
|
|
|
|
|
/* 110 */ 490, 490, 479, 404, 433, 427, 426, 490, 490, 425,
|
|
|
|
|
/* 120 */ 490, 406, 490, 490, 490, 490, 490, 490, 490, 490,
|
|
|
|
|
/* 130 */ 428, 490, 490, 445, 346, 358, 374, 362, 489, 365,
|
|
|
|
|
/* 140 */ 489, 477, 422, 406, 393, 369, 394, 490, 397, 375,
|
|
|
|
|
/* 150 */ 478, 406, 438, 406, 438, 438, 438, 406, 366, 490,
|
|
|
|
|
/* 160 */ 366, 361, 370, 440, 490, 490, 459, 490, 366, 490,
|
|
|
|
|
/* 170 */ 370, 382, 490, 363, 490, 490, 490, 490, 490, 420,
|
|
|
|
|
/* 180 */ 373, 490, 490, 410, 490, 490, 490, 490, 370, 490,
|
|
|
|
|
/* 190 */ 490, 490, 490, 490, 490, 490, 490, 490, 490, 490,
|
|
|
|
|
/* 200 */ 395, 490, 490, 490, 490, 379, 490, 387, 490, 364,
|
|
|
|
|
/* 210 */ 324, 429, 354, 350, 389, 360, 416, 351, 480, 481,
|
|
|
|
|
/* 220 */ 487, 486, 483, 482, 414, 415, 328, 326, 349, 325,
|
|
|
|
|
/* 230 */ 413, 390, 417, 327, 431, 348, 451, 380, 484, 334,
|
|
|
|
|
/* 240 */ 485, 388, 373, 421, 435, 436, 335, 336, 437, 432,
|
|
|
|
|
/* 250 */ 430, 356, 370, 398, 337, 381, 371, 418, 368, 407,
|
|
|
|
|
/* 260 */ 408, 409, 411, 403, 402, 400, 405, 401, 412, 372,
|
|
|
|
|
/* 270 */ 423, 376, 377, 378, 424, 386, 383, 384, 385, 353,
|
|
|
|
|
/* 280 */ 473, 472, 443, 338, 339, 471, 470, 456, 332, 331,
|
|
|
|
|
/* 290 */ 340, 342, 345, 347, 419, 420, 329, 344, 341, 330,
|
|
|
|
|
/* 300 */ 343, 455, 452, 462, 463, 464, 465, 461, 447, 475,
|
|
|
|
|
/* 310 */ 474, 446, 466, 467, 441, 355, 333, 387, 352, 468,
|
|
|
|
|
/* 320 */ 469, 460, 488,
|
2009-11-08 16:17:51 +00:00
|
|
|
);
|
|
|
|
|
/* The next thing included is series of defines which control
|
|
|
|
|
** various aspects of the generated parser.
|
|
|
|
|
** self::YYNOCODE is a number which corresponds
|
|
|
|
|
** to no legal terminal or nonterminal number. This
|
|
|
|
|
** number is used to fill in empty slots of the hash
|
|
|
|
|
** table.
|
|
|
|
|
** self::YYFALLBACK If defined, this indicates that one or more tokens
|
|
|
|
|
** have fall-back values which should be used if the
|
|
|
|
|
** original value of the token will not parse.
|
|
|
|
|
** self::YYSTACKDEPTH is the maximum depth of the parser's stack.
|
|
|
|
|
** self::YYNSTATE the combined number of states.
|
|
|
|
|
** self::YYNRULE the number of rules in the grammar
|
|
|
|
|
** self::YYERRORSYMBOL is the code number of the error symbol. If not
|
|
|
|
|
** defined, then do no error processing.
|
|
|
|
|
*/
|
2009-11-15 19:05:53 +00:00
|
|
|
const YYNOCODE = 108;
|
2009-11-08 16:17:51 +00:00
|
|
|
const YYSTACKDEPTH = 100;
|
2009-11-17 18:09:29 +00:00
|
|
|
const YYNSTATE = 323;
|
|
|
|
|
const YYNRULE = 167;
|
2009-11-15 19:05:53 +00:00
|
|
|
const YYERRORSYMBOL = 67;
|
2009-11-08 16:17:51 +00:00
|
|
|
const YYERRSYMDT = 'yy0';
|
2009-11-15 19:05:53 +00:00
|
|
|
const YYFALLBACK = 0;
|
2009-11-08 16:17:51 +00:00
|
|
|
/** 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(
|
2009-11-15 19:05:53 +00:00
|
|
|
'$', 'COMMENT', 'PHP', 'OTHER',
|
|
|
|
|
'SHORTTAGEND', 'SHORTTAGSTART', 'XML', 'LDEL',
|
|
|
|
|
'RDEL', 'EQUAL', 'ID', 'PTR',
|
|
|
|
|
'SPACE', 'SEMICOLON', 'DOLLAR', 'INCDEC',
|
2009-11-17 18:09:29 +00:00
|
|
|
'AS', 'APTR', 'LDELSLASH', 'COMMA',
|
|
|
|
|
'COLON', 'UNIMATH', 'OPENP', 'CLOSEP',
|
|
|
|
|
'QMARK', 'MATH', 'ANDSYM', 'TYPECAST',
|
|
|
|
|
'INTEGER', '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',
|
2009-11-15 19:05:53 +00:00
|
|
|
'start', 'template', 'template_element', 'smartytag',
|
|
|
|
|
'variable', 'attributes', 'expr', 'ternary',
|
|
|
|
|
'varindexed', 'modifier', 'modparameters', 'ifexprs',
|
|
|
|
|
'statement', 'statements', 'optspace', 'varvar',
|
|
|
|
|
'foraction', 'value', 'array', 'attribute',
|
|
|
|
|
'exprs', 'math', 'function', 'doublequoted',
|
|
|
|
|
'method', 'params', 'objectchain', 'arrayindex',
|
|
|
|
|
'object', 'indexdef', 'varvarele', 'objectelement',
|
|
|
|
|
'modparameter', 'ifexpr', 'ifcond', 'lop',
|
|
|
|
|
'arrayelements', 'arrayelement', 'doublequotedcontent',
|
2009-11-08 16:17:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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",
|
2009-11-14 20:09:18 +00:00
|
|
|
/* 3 */ "template_element ::= smartytag",
|
|
|
|
|
/* 4 */ "template_element ::= COMMENT",
|
2009-11-15 19:05:53 +00:00
|
|
|
/* 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 variable attributes RDEL",
|
|
|
|
|
/* 11 */ "smartytag ::= LDEL expr attributes RDEL",
|
|
|
|
|
/* 12 */ "smartytag ::= LDEL ternary attributes RDEL",
|
|
|
|
|
/* 13 */ "smartytag ::= LDEL varindexed EQUAL expr attributes RDEL",
|
|
|
|
|
/* 14 */ "smartytag ::= LDEL varindexed EQUAL ternary attributes RDEL",
|
|
|
|
|
/* 15 */ "smartytag ::= LDEL ID attributes RDEL",
|
|
|
|
|
/* 16 */ "smartytag ::= LDEL ID RDEL",
|
|
|
|
|
/* 17 */ "smartytag ::= LDEL ID PTR ID attributes RDEL",
|
|
|
|
|
/* 18 */ "smartytag ::= LDEL ID modifier modparameters attributes RDEL",
|
|
|
|
|
/* 19 */ "smartytag ::= LDEL ID PTR ID modifier modparameters attributes RDEL",
|
|
|
|
|
/* 20 */ "smartytag ::= LDEL ID SPACE ifexprs RDEL",
|
|
|
|
|
/* 21 */ "smartytag ::= LDEL ID SPACE statement RDEL",
|
|
|
|
|
/* 22 */ "smartytag ::= LDEL ID SPACE statements SEMICOLON optspace ifexprs SEMICOLON optspace DOLLAR varvar foraction RDEL",
|
|
|
|
|
/* 23 */ "foraction ::= EQUAL expr",
|
|
|
|
|
/* 24 */ "foraction ::= INCDEC",
|
|
|
|
|
/* 25 */ "smartytag ::= LDEL ID SPACE value AS DOLLAR varvar RDEL",
|
2009-11-17 18:09:29 +00:00
|
|
|
/* 26 */ "smartytag ::= LDEL ID SPACE value AS DOLLAR varvar APTR DOLLAR varvar RDEL",
|
|
|
|
|
/* 27 */ "smartytag ::= LDEL ID SPACE array AS DOLLAR varvar RDEL",
|
|
|
|
|
/* 28 */ "smartytag ::= LDEL ID SPACE array AS DOLLAR varvar APTR DOLLAR varvar RDEL",
|
|
|
|
|
/* 29 */ "smartytag ::= LDELSLASH ID attributes RDEL",
|
|
|
|
|
/* 30 */ "smartytag ::= LDELSLASH ID modifier modparameters attributes RDEL",
|
|
|
|
|
/* 31 */ "smartytag ::= LDELSLASH ID PTR ID RDEL",
|
|
|
|
|
/* 32 */ "attributes ::= attributes attribute",
|
|
|
|
|
/* 33 */ "attributes ::= attribute",
|
|
|
|
|
/* 34 */ "attributes ::=",
|
|
|
|
|
/* 35 */ "attribute ::= SPACE ID EQUAL expr",
|
|
|
|
|
/* 36 */ "attribute ::= SPACE ID EQUAL value",
|
|
|
|
|
/* 37 */ "attribute ::= SPACE ID EQUAL ternary",
|
|
|
|
|
/* 38 */ "attribute ::= SPACE ID",
|
|
|
|
|
/* 39 */ "attribute ::= SPACE value EQUAL expr",
|
|
|
|
|
/* 40 */ "statements ::= statement",
|
|
|
|
|
/* 41 */ "statements ::= statements COMMA statement",
|
|
|
|
|
/* 42 */ "statement ::= DOLLAR varvar EQUAL expr",
|
|
|
|
|
/* 43 */ "expr ::= ID",
|
|
|
|
|
/* 44 */ "expr ::= exprs",
|
|
|
|
|
/* 45 */ "expr ::= DOLLAR ID COLON ID",
|
|
|
|
|
/* 46 */ "expr ::= expr modifier modparameters",
|
|
|
|
|
/* 47 */ "exprs ::= value",
|
|
|
|
|
/* 48 */ "exprs ::= UNIMATH value",
|
|
|
|
|
/* 49 */ "exprs ::= exprs math value",
|
|
|
|
|
/* 50 */ "exprs ::= array",
|
|
|
|
|
/* 51 */ "ternary ::= OPENP ifexprs CLOSEP QMARK expr COLON expr",
|
|
|
|
|
/* 52 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr",
|
|
|
|
|
/* 53 */ "math ::= UNIMATH",
|
|
|
|
|
/* 54 */ "math ::= MATH",
|
|
|
|
|
/* 55 */ "math ::= ANDSYM",
|
|
|
|
|
/* 56 */ "value ::= variable",
|
|
|
|
|
/* 57 */ "value ::= TYPECAST variable",
|
|
|
|
|
/* 58 */ "value ::= variable INCDEC",
|
|
|
|
|
/* 59 */ "value ::= INTEGER",
|
|
|
|
|
/* 60 */ "value ::= INTEGER DOT INTEGER",
|
|
|
|
|
/* 61 */ "value ::= BOOLEAN",
|
|
|
|
|
/* 62 */ "value ::= NULL",
|
|
|
|
|
/* 63 */ "value ::= function",
|
|
|
|
|
/* 64 */ "value ::= OPENP expr CLOSEP",
|
|
|
|
|
/* 65 */ "value ::= SINGLEQUOTESTRING",
|
|
|
|
|
/* 66 */ "value ::= QUOTE doublequoted QUOTE",
|
|
|
|
|
/* 67 */ "value ::= QUOTE QUOTE",
|
|
|
|
|
/* 68 */ "value ::= ID DOUBLECOLON method",
|
|
|
|
|
/* 69 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP",
|
|
|
|
|
/* 70 */ "value ::= ID DOUBLECOLON method objectchain",
|
|
|
|
|
/* 71 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain",
|
|
|
|
|
/* 72 */ "value ::= ID DOUBLECOLON ID",
|
|
|
|
|
/* 73 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex",
|
|
|
|
|
/* 74 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain",
|
|
|
|
|
/* 75 */ "value ::= smartytag",
|
|
|
|
|
/* 76 */ "variable ::= varindexed",
|
|
|
|
|
/* 77 */ "variable ::= DOLLAR varvar AT ID",
|
|
|
|
|
/* 78 */ "variable ::= object",
|
|
|
|
|
/* 79 */ "variable ::= HATCH ID HATCH",
|
|
|
|
|
/* 80 */ "variable ::= HATCH variable HATCH",
|
|
|
|
|
/* 81 */ "varindexed ::= DOLLAR varvar arrayindex",
|
|
|
|
|
/* 82 */ "arrayindex ::= arrayindex indexdef",
|
|
|
|
|
/* 83 */ "arrayindex ::=",
|
|
|
|
|
/* 84 */ "indexdef ::= DOT ID",
|
|
|
|
|
/* 85 */ "indexdef ::= DOT BOOLEAN",
|
|
|
|
|
/* 86 */ "indexdef ::= DOT NULL",
|
|
|
|
|
/* 87 */ "indexdef ::= DOT INTEGER",
|
|
|
|
|
/* 88 */ "indexdef ::= DOT INTEGER ID",
|
|
|
|
|
/* 89 */ "indexdef ::= DOT variable",
|
|
|
|
|
/* 90 */ "indexdef ::= DOT LDEL exprs RDEL",
|
|
|
|
|
/* 91 */ "indexdef ::= OPENB ID CLOSEB",
|
|
|
|
|
/* 92 */ "indexdef ::= OPENB ID DOT ID CLOSEB",
|
|
|
|
|
/* 93 */ "indexdef ::= OPENB exprs CLOSEB",
|
|
|
|
|
/* 94 */ "indexdef ::= OPENB CLOSEB",
|
|
|
|
|
/* 95 */ "varvar ::= varvarele",
|
|
|
|
|
/* 96 */ "varvar ::= varvar varvarele",
|
|
|
|
|
/* 97 */ "varvarele ::= ID",
|
|
|
|
|
/* 98 */ "varvarele ::= LDEL expr RDEL",
|
|
|
|
|
/* 99 */ "object ::= varindexed objectchain",
|
|
|
|
|
/* 100 */ "objectchain ::= objectelement",
|
|
|
|
|
/* 101 */ "objectchain ::= objectchain objectelement",
|
|
|
|
|
/* 102 */ "objectelement ::= PTR ID arrayindex",
|
|
|
|
|
/* 103 */ "objectelement ::= PTR variable arrayindex",
|
|
|
|
|
/* 104 */ "objectelement ::= PTR LDEL expr RDEL arrayindex",
|
|
|
|
|
/* 105 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex",
|
|
|
|
|
/* 106 */ "objectelement ::= PTR method",
|
|
|
|
|
/* 107 */ "function ::= ID OPENP params CLOSEP",
|
|
|
|
|
/* 108 */ "method ::= ID OPENP params CLOSEP",
|
|
|
|
|
/* 109 */ "params ::= expr COMMA params",
|
|
|
|
|
/* 110 */ "params ::= expr",
|
|
|
|
|
/* 111 */ "params ::=",
|
|
|
|
|
/* 112 */ "modifier ::= VERT AT ID",
|
|
|
|
|
/* 113 */ "modifier ::= VERT ID",
|
|
|
|
|
/* 114 */ "modparameters ::= modparameters modparameter",
|
|
|
|
|
/* 115 */ "modparameters ::=",
|
|
|
|
|
/* 116 */ "modparameter ::= COLON exprs",
|
|
|
|
|
/* 117 */ "modparameter ::= COLON ID",
|
|
|
|
|
/* 118 */ "ifexprs ::= ifexpr",
|
|
|
|
|
/* 119 */ "ifexprs ::= NOT ifexprs",
|
|
|
|
|
/* 120 */ "ifexprs ::= OPENP ifexprs CLOSEP",
|
|
|
|
|
/* 121 */ "ifexpr ::= expr",
|
|
|
|
|
/* 122 */ "ifexpr ::= expr ifcond expr",
|
|
|
|
|
/* 123 */ "ifexpr ::= expr ISIN array",
|
|
|
|
|
/* 124 */ "ifexpr ::= expr ISIN value",
|
|
|
|
|
/* 125 */ "ifexpr ::= ifexprs lop ifexprs",
|
|
|
|
|
/* 126 */ "ifexpr ::= ifexprs ISDIVBY ifexprs",
|
|
|
|
|
/* 127 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs",
|
|
|
|
|
/* 128 */ "ifexpr ::= ifexprs ISEVEN",
|
|
|
|
|
/* 129 */ "ifexpr ::= ifexprs ISNOTEVEN",
|
|
|
|
|
/* 130 */ "ifexpr ::= ifexprs ISEVENBY ifexprs",
|
|
|
|
|
/* 131 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs",
|
|
|
|
|
/* 132 */ "ifexpr ::= ifexprs ISODD",
|
|
|
|
|
/* 133 */ "ifexpr ::= ifexprs ISNOTODD",
|
|
|
|
|
/* 134 */ "ifexpr ::= ifexprs ISODDBY ifexprs",
|
|
|
|
|
/* 135 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs",
|
|
|
|
|
/* 136 */ "ifexpr ::= value INSTANCEOF ID",
|
|
|
|
|
/* 137 */ "ifexpr ::= value INSTANCEOF value",
|
|
|
|
|
/* 138 */ "ifcond ::= EQUALS",
|
|
|
|
|
/* 139 */ "ifcond ::= NOTEQUALS",
|
|
|
|
|
/* 140 */ "ifcond ::= GREATERTHAN",
|
|
|
|
|
/* 141 */ "ifcond ::= LESSTHAN",
|
|
|
|
|
/* 142 */ "ifcond ::= GREATEREQUAL",
|
|
|
|
|
/* 143 */ "ifcond ::= LESSEQUAL",
|
|
|
|
|
/* 144 */ "ifcond ::= IDENTITY",
|
|
|
|
|
/* 145 */ "ifcond ::= NONEIDENTITY",
|
|
|
|
|
/* 146 */ "ifcond ::= MOD",
|
|
|
|
|
/* 147 */ "lop ::= LAND",
|
|
|
|
|
/* 148 */ "lop ::= LOR",
|
|
|
|
|
/* 149 */ "lop ::= LXOR",
|
|
|
|
|
/* 150 */ "array ::= OPENB arrayelements CLOSEB",
|
|
|
|
|
/* 151 */ "arrayelements ::= arrayelement",
|
|
|
|
|
/* 152 */ "arrayelements ::= arrayelements COMMA arrayelement",
|
|
|
|
|
/* 153 */ "arrayelements ::=",
|
|
|
|
|
/* 154 */ "arrayelement ::= expr APTR expr",
|
|
|
|
|
/* 155 */ "arrayelement ::= ID APTR expr",
|
|
|
|
|
/* 156 */ "arrayelement ::= expr",
|
|
|
|
|
/* 157 */ "doublequoted ::= doublequoted doublequotedcontent",
|
|
|
|
|
/* 158 */ "doublequoted ::= doublequotedcontent",
|
|
|
|
|
/* 159 */ "doublequotedcontent ::= BACKTICK variable BACKTICK",
|
|
|
|
|
/* 160 */ "doublequotedcontent ::= DOLLARID",
|
|
|
|
|
/* 161 */ "doublequotedcontent ::= LDEL variable RDEL",
|
|
|
|
|
/* 162 */ "doublequotedcontent ::= LDEL expr RDEL",
|
|
|
|
|
/* 163 */ "doublequotedcontent ::= smartytag",
|
|
|
|
|
/* 164 */ "doublequotedcontent ::= OTHER",
|
|
|
|
|
/* 165 */ "optspace ::= SPACE",
|
|
|
|
|
/* 166 */ "optspace ::=",
|
2009-11-08 16:17:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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(
|
2009-11-15 19:05:53 +00:00
|
|
|
array( 'lhs' => 68, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 69, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 69, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 70, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 70, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 70, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 70, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 70, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 70, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 70, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 4 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 4 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 4 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 6 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 6 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 4 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 6 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 6 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 8 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 5 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 5 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 13 ),
|
|
|
|
|
array( 'lhs' => 84, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 84, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 8 ),
|
2009-11-17 18:09:29 +00:00
|
|
|
array( 'lhs' => 71, 'rhs' => 11 ),
|
2009-11-15 19:05:53 +00:00
|
|
|
array( 'lhs' => 71, 'rhs' => 8 ),
|
2009-11-17 18:09:29 +00:00
|
|
|
array( 'lhs' => 71, 'rhs' => 11 ),
|
2009-11-15 19:05:53 +00:00
|
|
|
array( 'lhs' => 71, 'rhs' => 4 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 6 ),
|
|
|
|
|
array( 'lhs' => 71, 'rhs' => 5 ),
|
|
|
|
|
array( 'lhs' => 73, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 73, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 73, 'rhs' => 0 ),
|
|
|
|
|
array( 'lhs' => 87, 'rhs' => 4 ),
|
|
|
|
|
array( 'lhs' => 87, 'rhs' => 4 ),
|
|
|
|
|
array( 'lhs' => 87, 'rhs' => 4 ),
|
|
|
|
|
array( 'lhs' => 87, 'rhs' => 2 ),
|
2009-11-17 18:09:29 +00:00
|
|
|
array( 'lhs' => 87, 'rhs' => 4 ),
|
2009-11-15 19:05:53 +00:00
|
|
|
array( 'lhs' => 81, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 81, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 80, 'rhs' => 4 ),
|
2009-11-08 16:17:51 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 1 ),
|
2009-11-15 19:05:53 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 74, 'rhs' => 4 ),
|
|
|
|
|
array( 'lhs' => 74, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 88, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 88, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 88, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 88, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 75, 'rhs' => 7 ),
|
|
|
|
|
array( 'lhs' => 75, 'rhs' => 7 ),
|
|
|
|
|
array( 'lhs' => 89, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 89, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 89, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 7 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 4 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 8 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 5 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 6 ),
|
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 72, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 72, 'rhs' => 4 ),
|
|
|
|
|
array( 'lhs' => 72, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 72, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 72, 'rhs' => 3 ),
|
2009-11-08 16:17:51 +00:00
|
|
|
array( 'lhs' => 76, 'rhs' => 3 ),
|
2009-11-15 19:05:53 +00:00
|
|
|
array( 'lhs' => 95, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 95, 'rhs' => 0 ),
|
|
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 97, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 97, 'rhs' => 4 ),
|
|
|
|
|
array( 'lhs' => 97, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 97, 'rhs' => 5 ),
|
|
|
|
|
array( 'lhs' => 97, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 83, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 83, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 98, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 98, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 96, 'rhs' => 2 ),
|
2009-11-14 20:09:18 +00:00
|
|
|
array( 'lhs' => 94, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 94, 'rhs' => 2 ),
|
2009-11-15 19:05:53 +00:00
|
|
|
array( 'lhs' => 99, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 99, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 99, 'rhs' => 5 ),
|
|
|
|
|
array( 'lhs' => 99, 'rhs' => 6 ),
|
|
|
|
|
array( 'lhs' => 99, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 90, 'rhs' => 4 ),
|
|
|
|
|
array( 'lhs' => 92, 'rhs' => 4 ),
|
|
|
|
|
array( 'lhs' => 93, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 93, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 93, 'rhs' => 0 ),
|
|
|
|
|
array( 'lhs' => 77, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 77, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 78, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 78, 'rhs' => 0 ),
|
|
|
|
|
array( 'lhs' => 100, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 100, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 79, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 79, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 79, 'rhs' => 3 ),
|
2009-11-14 20:09:18 +00:00
|
|
|
array( 'lhs' => 101, 'rhs' => 1 ),
|
2009-11-15 19:05:53 +00:00
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
2009-11-14 20:09:18 +00:00
|
|
|
array( 'lhs' => 101, 'rhs' => 2 ),
|
2009-11-15 19:05:53 +00:00
|
|
|
array( 'lhs' => 101, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 101, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 101, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 103, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 103, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 103, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 86, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 104, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 104, 'rhs' => 0 ),
|
|
|
|
|
array( 'lhs' => 105, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 105, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 105, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 91, 'rhs' => 2 ),
|
|
|
|
|
array( 'lhs' => 91, 'rhs' => 1 ),
|
2009-11-14 10:40:08 +00:00
|
|
|
array( 'lhs' => 106, 'rhs' => 3 ),
|
2009-11-15 19:05:53 +00:00
|
|
|
array( 'lhs' => 106, 'rhs' => 1 ),
|
2009-11-14 10:40:08 +00:00
|
|
|
array( 'lhs' => 106, 'rhs' => 3 ),
|
2009-11-15 19:05:53 +00:00
|
|
|
array( 'lhs' => 106, 'rhs' => 3 ),
|
|
|
|
|
array( 'lhs' => 106, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 106, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 82, 'rhs' => 1 ),
|
|
|
|
|
array( 'lhs' => 82, 'rhs' => 0 ),
|
2009-11-08 16:17:51 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The following table contains a mapping of reduce action to method name
|
|
|
|
|
* that handles the reduction.
|
|
|
|
|
*
|
|
|
|
|
* If a rule is not set, it has no handler.
|
|
|
|
|
*/
|
|
|
|
|
static public $yyReduceMap = array(
|
|
|
|
|
0 => 0,
|
2009-11-17 18:09:29 +00:00
|
|
|
47 => 0,
|
2009-11-15 19:05:53 +00:00
|
|
|
56 => 0,
|
|
|
|
|
59 => 0,
|
2009-11-17 18:09:29 +00:00
|
|
|
61 => 0,
|
2009-11-08 16:17:51 +00:00
|
|
|
62 => 0,
|
2009-11-17 18:09:29 +00:00
|
|
|
63 => 0,
|
|
|
|
|
65 => 0,
|
|
|
|
|
78 => 0,
|
|
|
|
|
151 => 0,
|
2009-11-08 16:17:51 +00:00
|
|
|
1 => 1,
|
2009-11-17 18:09:29 +00:00
|
|
|
44 => 1,
|
2009-11-15 19:05:53 +00:00
|
|
|
50 => 1,
|
2009-11-17 18:09:29 +00:00
|
|
|
53 => 1,
|
|
|
|
|
54 => 1,
|
|
|
|
|
95 => 1,
|
|
|
|
|
118 => 1,
|
|
|
|
|
158 => 1,
|
|
|
|
|
164 => 1,
|
|
|
|
|
165 => 1,
|
2009-11-08 16:17:51 +00:00
|
|
|
2 => 2,
|
2009-11-17 18:09:29 +00:00
|
|
|
114 => 2,
|
2009-11-08 16:17:51 +00:00
|
|
|
3 => 3,
|
|
|
|
|
4 => 4,
|
|
|
|
|
5 => 5,
|
|
|
|
|
6 => 6,
|
|
|
|
|
7 => 7,
|
|
|
|
|
8 => 8,
|
|
|
|
|
9 => 9,
|
|
|
|
|
10 => 10,
|
2009-11-15 19:05:53 +00:00
|
|
|
11 => 10,
|
|
|
|
|
12 => 10,
|
|
|
|
|
13 => 13,
|
|
|
|
|
14 => 13,
|
2009-11-14 20:09:18 +00:00
|
|
|
15 => 15,
|
2009-11-15 19:05:53 +00:00
|
|
|
16 => 16,
|
2009-11-09 16:30:56 +00:00
|
|
|
17 => 17,
|
2009-11-14 20:09:18 +00:00
|
|
|
18 => 18,
|
2009-11-09 16:30:56 +00:00
|
|
|
19 => 19,
|
2009-11-08 16:17:51 +00:00
|
|
|
20 => 20,
|
|
|
|
|
21 => 21,
|
|
|
|
|
22 => 22,
|
|
|
|
|
23 => 23,
|
|
|
|
|
24 => 24,
|
2009-11-17 18:09:29 +00:00
|
|
|
33 => 24,
|
|
|
|
|
110 => 24,
|
|
|
|
|
156 => 24,
|
2009-11-08 16:17:51 +00:00
|
|
|
25 => 25,
|
|
|
|
|
26 => 26,
|
|
|
|
|
27 => 27,
|
|
|
|
|
28 => 28,
|
|
|
|
|
29 => 29,
|
|
|
|
|
30 => 30,
|
2009-11-17 18:09:29 +00:00
|
|
|
31 => 31,
|
2009-11-08 16:17:51 +00:00
|
|
|
32 => 32,
|
2009-11-17 18:09:29 +00:00
|
|
|
34 => 34,
|
|
|
|
|
35 => 35,
|
|
|
|
|
36 => 35,
|
|
|
|
|
37 => 35,
|
2009-11-14 20:09:18 +00:00
|
|
|
38 => 38,
|
|
|
|
|
39 => 39,
|
2009-11-08 16:17:51 +00:00
|
|
|
40 => 40,
|
2009-11-17 18:09:29 +00:00
|
|
|
41 => 41,
|
2009-11-08 16:17:51 +00:00
|
|
|
42 => 42,
|
2009-11-15 19:05:53 +00:00
|
|
|
43 => 43,
|
2009-11-14 20:09:18 +00:00
|
|
|
45 => 45,
|
2009-11-15 19:05:53 +00:00
|
|
|
46 => 46,
|
2009-11-14 20:09:18 +00:00
|
|
|
48 => 48,
|
2009-11-17 18:09:29 +00:00
|
|
|
57 => 48,
|
|
|
|
|
58 => 48,
|
|
|
|
|
49 => 49,
|
|
|
|
|
51 => 51,
|
|
|
|
|
52 => 51,
|
|
|
|
|
55 => 55,
|
|
|
|
|
60 => 60,
|
2009-11-15 19:05:53 +00:00
|
|
|
64 => 64,
|
2009-11-14 20:09:18 +00:00
|
|
|
66 => 66,
|
2009-11-08 16:17:51 +00:00
|
|
|
67 => 67,
|
2009-11-15 19:05:53 +00:00
|
|
|
68 => 68,
|
2009-11-14 10:40:08 +00:00
|
|
|
69 => 69,
|
2009-11-14 20:09:18 +00:00
|
|
|
70 => 70,
|
2009-11-08 16:17:51 +00:00
|
|
|
71 => 71,
|
|
|
|
|
72 => 72,
|
|
|
|
|
73 => 73,
|
|
|
|
|
74 => 74,
|
2009-11-17 18:09:29 +00:00
|
|
|
75 => 75,
|
2009-11-08 16:17:51 +00:00
|
|
|
76 => 76,
|
|
|
|
|
77 => 77,
|
2009-11-15 19:05:53 +00:00
|
|
|
79 => 79,
|
2009-11-14 10:40:08 +00:00
|
|
|
80 => 80,
|
2009-11-14 20:09:18 +00:00
|
|
|
81 => 81,
|
2009-11-17 18:09:29 +00:00
|
|
|
82 => 82,
|
|
|
|
|
157 => 82,
|
|
|
|
|
83 => 83,
|
|
|
|
|
115 => 83,
|
2009-11-08 16:17:51 +00:00
|
|
|
84 => 84,
|
2009-11-17 18:09:29 +00:00
|
|
|
85 => 84,
|
|
|
|
|
86 => 84,
|
2009-11-15 19:05:53 +00:00
|
|
|
87 => 87,
|
2009-11-14 20:09:18 +00:00
|
|
|
88 => 88,
|
|
|
|
|
89 => 89,
|
2009-11-17 18:09:29 +00:00
|
|
|
90 => 90,
|
|
|
|
|
93 => 90,
|
2009-11-08 16:17:51 +00:00
|
|
|
91 => 91,
|
2009-11-17 18:09:29 +00:00
|
|
|
92 => 92,
|
2009-11-15 19:05:53 +00:00
|
|
|
94 => 94,
|
2009-11-17 18:09:29 +00:00
|
|
|
166 => 94,
|
2009-11-15 19:05:53 +00:00
|
|
|
96 => 96,
|
2009-11-14 10:40:08 +00:00
|
|
|
97 => 97,
|
2009-11-14 20:09:18 +00:00
|
|
|
98 => 98,
|
2009-11-17 18:09:29 +00:00
|
|
|
120 => 98,
|
2009-11-08 16:17:51 +00:00
|
|
|
99 => 99,
|
|
|
|
|
100 => 100,
|
|
|
|
|
101 => 101,
|
|
|
|
|
102 => 102,
|
|
|
|
|
103 => 103,
|
|
|
|
|
104 => 104,
|
|
|
|
|
105 => 105,
|
|
|
|
|
106 => 106,
|
2009-11-17 18:09:29 +00:00
|
|
|
107 => 107,
|
2009-11-08 16:17:51 +00:00
|
|
|
108 => 108,
|
|
|
|
|
109 => 109,
|
2009-11-17 18:09:29 +00:00
|
|
|
111 => 111,
|
|
|
|
|
112 => 112,
|
2009-11-14 20:09:18 +00:00
|
|
|
113 => 113,
|
2009-11-15 19:05:53 +00:00
|
|
|
116 => 116,
|
2009-11-17 18:09:29 +00:00
|
|
|
117 => 117,
|
2009-11-15 19:05:53 +00:00
|
|
|
119 => 119,
|
|
|
|
|
121 => 121,
|
2009-11-17 18:09:29 +00:00
|
|
|
122 => 122,
|
|
|
|
|
125 => 122,
|
|
|
|
|
136 => 122,
|
2009-11-14 20:09:18 +00:00
|
|
|
123 => 123,
|
2009-11-08 16:17:51 +00:00
|
|
|
124 => 124,
|
2009-11-15 19:05:53 +00:00
|
|
|
126 => 126,
|
2009-11-14 10:40:08 +00:00
|
|
|
127 => 127,
|
2009-11-14 20:09:18 +00:00
|
|
|
128 => 128,
|
2009-11-17 18:09:29 +00:00
|
|
|
133 => 128,
|
|
|
|
|
129 => 129,
|
|
|
|
|
132 => 129,
|
|
|
|
|
130 => 130,
|
|
|
|
|
135 => 130,
|
|
|
|
|
131 => 131,
|
|
|
|
|
134 => 131,
|
2009-11-15 19:05:53 +00:00
|
|
|
137 => 137,
|
2009-11-14 20:09:18 +00:00
|
|
|
138 => 138,
|
|
|
|
|
139 => 139,
|
2009-11-08 16:17:51 +00:00
|
|
|
140 => 140,
|
|
|
|
|
141 => 141,
|
|
|
|
|
142 => 142,
|
|
|
|
|
143 => 143,
|
|
|
|
|
144 => 144,
|
|
|
|
|
145 => 145,
|
|
|
|
|
146 => 146,
|
|
|
|
|
147 => 147,
|
2009-11-17 18:09:29 +00:00
|
|
|
148 => 148,
|
2009-11-08 16:17:51 +00:00
|
|
|
149 => 149,
|
|
|
|
|
150 => 150,
|
2009-11-15 19:05:53 +00:00
|
|
|
152 => 152,
|
2009-11-17 18:09:29 +00:00
|
|
|
153 => 153,
|
|
|
|
|
154 => 154,
|
|
|
|
|
155 => 155,
|
2009-11-15 19:05:53 +00:00
|
|
|
159 => 159,
|
2009-11-17 18:09:29 +00:00
|
|
|
161 => 159,
|
2009-11-14 20:09:18 +00:00
|
|
|
160 => 160,
|
2009-11-17 18:09:29 +00:00
|
|
|
162 => 162,
|
|
|
|
|
163 => 163,
|
2009-11-08 16:17:51 +00:00
|
|
|
);
|
|
|
|
|
/* Beginning here are the reduction cases. A typical example
|
|
|
|
|
** follows:
|
|
|
|
|
** #line <lineno> <grammarfile>
|
|
|
|
|
** function yy_r0($yymsp){ ... } // User supplied code
|
|
|
|
|
** #line <lineno> <thisfile>
|
|
|
|
|
*/
|
|
|
|
|
#line 79 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2006 "smarty_internal_templateparser.php"
|
2009-11-08 16:17:51 +00:00
|
|
|
#line 85 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2009 "smarty_internal_templateparser.php"
|
2009-11-08 16:17:51 +00:00
|
|
|
#line 87 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r2(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2012 "smarty_internal_templateparser.php"
|
2009-11-08 16:17:51 +00:00
|
|
|
#line 93 "smarty_internal_templateparser.y"
|
2009-10-31 00:44:58 +00:00
|
|
|
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();
|
2009-11-14 20:09:18 +00:00
|
|
|
$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; }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2019 "smarty_internal_templateparser.php"
|
2009-11-14 20:09:18 +00:00
|
|
|
#line 100 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r4(){ $this->_retvalue = ''; }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2022 "smarty_internal_templateparser.php"
|
2009-11-08 16:17:51 +00:00
|
|
|
#line 105 "smarty_internal_templateparser.y"
|
2009-11-15 19:05:53 +00:00
|
|
|
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 = '';
|
|
|
|
|
}
|
2009-11-08 16:17:51 +00:00
|
|
|
}
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2034 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 116 "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) {
|
2009-10-31 00:44:58 +00:00
|
|
|
$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) {
|
2009-10-31 00:44:58 +00:00
|
|
|
$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) {
|
2009-10-31 00:44:58 +00:00
|
|
|
$this->_retvalue = '';
|
2009-10-22 23:05:14 +00:00
|
|
|
}
|
2009-11-08 16:17:51 +00:00
|
|
|
}
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2045 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 127 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r7(){ $this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("<?php echo '<?xml';?>", $this->compiler, true); }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2048 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 128 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r8(){$this->compiler->tag_nocache = true; $this->_retvalue = $this->cacher->processNocacheCode("<?php echo '?>';?>\n", $this->compiler, true); }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2051 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 130 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r9(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false); }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2054 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 137 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r10(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2057 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 147 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r13(){ $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)); }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2060 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 150 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r15(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,$this->yystack[$this->yyidx + -1]->minor); }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2063 "smarty_internal_templateparser.php"
|
2009-11-14 20:09:18 +00:00
|
|
|
#line 151 "smarty_internal_templateparser.y"
|
2009-11-15 19:05:53 +00:00
|
|
|
function yy_r16(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,array()); }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2066 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 153 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r17(){ $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)); }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2069 "smarty_internal_templateparser.php"
|
2009-11-14 20:09:18 +00:00
|
|
|
#line 155 "smarty_internal_templateparser.y"
|
2009-11-15 19:05:53 +00:00
|
|
|
function yy_r18(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor).'<?php echo ';
|
2009-11-14 20:09:18 +00:00
|
|
|
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 {
|
2009-11-14 20:09:18 +00:00
|
|
|
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 {
|
2009-11-14 20:09:18 +00:00
|
|
|
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -3]->minor[0] . "\"");
|
2009-10-22 23:05:14 +00:00
|
|
|
}
|
|
|
|
|
}
|
2009-11-08 16:17:51 +00:00
|
|
|
}
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2084 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 169 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r19(){ $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 ';
|
2009-11-14 20:09:18 +00:00
|
|
|
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-11-14 10:40:08 +00:00
|
|
|
} else {
|
2009-11-14 20:09:18 +00:00
|
|
|
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-11-14 10:40:08 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
2009-11-14 20:09:18 +00:00
|
|
|
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -3]->minor[0] . "\"");
|
2009-11-14 10:40:08 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2099 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 183 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r20(){if (!in_array($this->yystack[$this->yyidx + -3]->minor,array('if','elseif','while'))) {
|
2009-11-14 20:09:18 +00:00
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -3]->minor . "\"");
|
2009-10-22 23:05:14 +00:00
|
|
|
}
|
2009-11-14 20:09:18 +00:00
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2105 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 187 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r21(){ if (!in_array($this->yystack[$this->yyidx + -3]->minor,array('if','elseif','while'))) {
|
2009-11-14 20:09:18 +00:00
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -3]->minor . "\"");
|
2009-10-22 23:05:14 +00:00
|
|
|
}
|
2009-11-14 20:09:18 +00:00
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2111 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 192 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r22(){
|
2009-11-14 20:09:18 +00:00
|
|
|
if ($this->yystack[$this->yyidx + -11]->minor != 'for') {
|
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -11]->minor . "\"");
|
2009-10-22 23:05:14 +00:00
|
|
|
}
|
2009-11-14 20:09:18 +00:00
|
|
|
$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)); }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2118 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 197 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r23(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2121 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 198 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r24(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2124 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 200 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r25(){
|
2009-11-14 20:09:18 +00:00
|
|
|
if ($this->yystack[$this->yyidx + -6]->minor != 'foreach') {
|
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -6]->minor . "\"");
|
2009-10-22 23:05:14 +00:00
|
|
|
}
|
2009-11-14 20:09:18 +00:00
|
|
|
$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)); }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2131 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 205 "smarty_internal_templateparser.y"
|
2009-11-17 18:09:29 +00:00
|
|
|
function yy_r26(){
|
|
|
|
|
if ($this->yystack[$this->yyidx + -9]->minor != 'foreach') {
|
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -9]->minor . "\"");
|
|
|
|
|
}
|
|
|
|
|
$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 2138 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 210 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r27(){
|
2009-11-14 20:09:18 +00:00
|
|
|
if ($this->yystack[$this->yyidx + -6]->minor != 'foreach') {
|
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -6]->minor . "\"");
|
2009-10-22 23:05:14 +00:00
|
|
|
}
|
2009-11-14 20:09:18 +00:00
|
|
|
$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)); }
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2145 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 215 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r28(){
|
|
|
|
|
if ($this->yystack[$this->yyidx + -9]->minor != 'foreach') {
|
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -9]->minor . "\"");
|
|
|
|
|
}
|
|
|
|
|
$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 2152 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 222 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r29(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',$this->yystack[$this->yyidx + -1]->minor); }
|
|
|
|
|
#line 2155 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 223 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r30(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor.'close',$this->yystack[$this->yyidx + -1]->minor).'<?php echo ';
|
2009-11-14 20:09:18 +00:00
|
|
|
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 {
|
2009-11-14 20:09:18 +00:00
|
|
|
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 {
|
2009-11-14 20:09:18 +00:00
|
|
|
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -3]->minor[0] . "\"");
|
2009-10-22 23:05:14 +00:00
|
|
|
}
|
|
|
|
|
}
|
2009-11-08 16:17:51 +00:00
|
|
|
}
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2170 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 237 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r31(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor)); }
|
|
|
|
|
#line 2173 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 244 "smarty_internal_templateparser.y"
|
2009-11-17 18:09:29 +00:00
|
|
|
function yy_r32(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
|
|
|
|
|
#line 2176 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 248 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r34(){ $this->_retvalue = array(); }
|
|
|
|
|
#line 2179 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 251 "smarty_internal_templateparser.y"
|
2009-11-17 18:09:29 +00:00
|
|
|
function yy_r35(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); }
|
|
|
|
|
#line 2182 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 254 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r38(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); }
|
|
|
|
|
#line 2185 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 255 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r39(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); var_dump($this->_retvalue); }
|
|
|
|
|
#line 2188 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 261 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r40(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); }
|
|
|
|
|
#line 2191 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 262 "smarty_internal_templateparser.y"
|
2009-11-17 18:09:29 +00:00
|
|
|
function yy_r41(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; }
|
|
|
|
|
#line 2194 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 264 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r42(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); }
|
|
|
|
|
#line 2197 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 270 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r43(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
|
|
|
|
|
#line 2200 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 273 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r45(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; }
|
|
|
|
|
#line 2203 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 274 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r46(){
|
2009-10-22 23:05:14 +00:00
|
|
|
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -1]->minor[0],'modifier')) {
|
|
|
|
|
$this->_retvalue = "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -1]->minor[0] . "',array(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor. "),".$this->yystack[$this->yyidx + -1]->minor[1].")";
|
|
|
|
|
} else {
|
|
|
|
|
if (is_callable($this->yystack[$this->yyidx + -1]->minor[0])) {
|
|
|
|
|
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -1]->minor[0], $this->compiler)) {
|
|
|
|
|
$this->_retvalue = "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -1]->minor[0] . "',array(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor. "),".$this->yystack[$this->yyidx + -1]->minor[1].")";
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -1]->minor[0] . "\"");
|
|
|
|
|
}
|
|
|
|
|
}
|
2009-11-08 16:17:51 +00:00
|
|
|
}
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2218 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 291 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r48(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
|
#line 2221 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 293 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r49(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
|
#line 2224 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 300 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r51(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
|
#line 2227 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 314 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r55(){$this->_retvalue = ' & '; }
|
|
|
|
|
#line 2230 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 322 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r60(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
|
#line 2233 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 330 "smarty_internal_templateparser.y"
|
2009-11-17 18:09:29 +00:00
|
|
|
function yy_r64(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
|
|
|
|
|
#line 2236 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 334 "smarty_internal_templateparser.y"
|
2009-11-17 18:09:29 +00:00
|
|
|
function yy_r66(){ $this->_retvalue = str_replace(array('."".','"".','.""'),array('.','',''),'"'.$this->yystack[$this->yyidx + -1]->minor.'"'); }
|
|
|
|
|
#line 2239 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 335 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r67(){ $this->_retvalue = "''"; }
|
|
|
|
|
#line 2242 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 337 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r68(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
|
#line 2245 "smarty_internal_templateparser.php"
|
2009-11-14 20:09:18 +00:00
|
|
|
#line 338 "smarty_internal_templateparser.y"
|
2009-11-17 18:09:29 +00:00
|
|
|
function yy_r69(){ $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 2248 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 340 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r70(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
|
#line 2251 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 341 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r71(){ $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 2254 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 343 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r72(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
|
#line 2257 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 345 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r73(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
|
#line 2260 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 347 "smarty_internal_templateparser.y"
|
2009-11-17 18:09:29 +00:00
|
|
|
function yy_r74(){ $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 2263 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 349 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r75(){ $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 2266 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 358 "smarty_internal_templateparser.y"
|
2009-11-17 18:09:29 +00:00
|
|
|
function yy_r76(){if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('special_smarty_variable',$this->yystack[$this->yyidx + 0]->minor['index']);} else {
|
|
|
|
|
$this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor['var'] .')->value'.$this->yystack[$this->yyidx + 0]->minor['index']; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor['var'],"'"))->nocache;} }
|
|
|
|
|
#line 2270 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 361 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r77(){ $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"))->nocache; }
|
|
|
|
|
#line 2273 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 365 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r79(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; }
|
|
|
|
|
#line 2276 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 366 "smarty_internal_templateparser.y"
|
2009-11-17 18:09:29 +00:00
|
|
|
function yy_r80(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; }
|
|
|
|
|
#line 2279 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 369 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r81(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); }
|
|
|
|
|
#line 2282 "smarty_internal_templateparser.php"
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 375 "smarty_internal_templateparser.y"
|
2009-11-17 18:09:29 +00:00
|
|
|
function yy_r82(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
|
#line 2285 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 377 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r83(){return; }
|
|
|
|
|
#line 2288 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 381 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r84(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; }
|
|
|
|
|
#line 2291 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 384 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r87(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; }
|
|
|
|
|
#line 2294 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 385 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r88(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor ."']"; }
|
|
|
|
|
#line 2297 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 386 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r89(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; }
|
|
|
|
|
#line 2300 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 387 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r90(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; }
|
|
|
|
|
#line 2303 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 389 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r91(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; }
|
|
|
|
|
#line 2306 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 390 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r92(){ $this->_retvalue = '['.$this->compiler->compileTag('special_smarty_variable','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; }
|
|
|
|
|
#line 2309 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 394 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r94(){$this->_retvalue = ''; }
|
|
|
|
|
#line 2312 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 402 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r96(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
|
#line 2315 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 404 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r97(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
|
|
|
|
|
#line 2318 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 406 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r98(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
|
#line 2321 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 411 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r99(){ 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 {
|
2009-11-14 10:40:08 +00:00
|
|
|
$this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -1]->minor['var'] .')->value'.$this->yystack[$this->yyidx + -1]->minor['index'].$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"))->nocache;} }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2325 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 414 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r100(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2328 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 416 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r101(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2331 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 418 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r102(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2334 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 419 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r103(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2337 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 420 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r104(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2340 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 421 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r105(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2343 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 423 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r106(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2346 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 429 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r107(){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 . "\"");
|
|
|
|
|
}
|
|
|
|
|
} }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2355 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 440 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r108(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2358 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 444 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r109(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2361 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 448 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r111(){ return; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2364 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 453 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r112(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2367 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 454 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r113(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2370 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 470 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r116(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2373 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 471 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r117(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2376 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 478 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r119(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2379 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 483 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r121(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2382 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 485 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r122(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2385 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 486 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r123(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2388 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 487 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r124(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2391 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 489 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r126(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2394 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 490 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r127(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2397 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 491 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r128(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2400 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 492 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r129(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2403 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 493 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r130(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2406 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 494 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r131(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2409 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 500 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r137(){$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; }
|
2009-11-15 19:05:53 +00:00
|
|
|
#line 2412 "smarty_internal_templateparser.php"
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 502 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r138(){$this->_retvalue = '=='; }
|
|
|
|
|
#line 2415 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 503 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r139(){$this->_retvalue = '!='; }
|
|
|
|
|
#line 2418 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 504 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r140(){$this->_retvalue = '>'; }
|
|
|
|
|
#line 2421 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 505 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r141(){$this->_retvalue = '<'; }
|
|
|
|
|
#line 2424 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 506 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r142(){$this->_retvalue = '>='; }
|
|
|
|
|
#line 2427 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 507 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r143(){$this->_retvalue = '<='; }
|
|
|
|
|
#line 2430 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 508 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r144(){$this->_retvalue = '==='; }
|
|
|
|
|
#line 2433 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 509 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r145(){$this->_retvalue = '!=='; }
|
|
|
|
|
#line 2436 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 510 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r146(){$this->_retvalue = '%'; }
|
|
|
|
|
#line 2439 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 512 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r147(){$this->_retvalue = '&&'; }
|
|
|
|
|
#line 2442 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 513 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r148(){$this->_retvalue = '||'; }
|
|
|
|
|
#line 2445 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 514 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r149(){$this->_retvalue = ' XOR '; }
|
|
|
|
|
#line 2448 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 519 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r150(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
|
#line 2451 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 521 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r152(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
|
#line 2454 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 522 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r153(){ return; }
|
|
|
|
|
#line 2457 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 523 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r154(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
|
#line 2460 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 524 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r155(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
|
#line 2463 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 533 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r159(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; $this->compiler->has_variable_string = true; }
|
|
|
|
|
#line 2466 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 534 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r160(){$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,"'"))->nocache; $this->compiler->has_variable_string = true; }
|
|
|
|
|
#line 2469 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 536 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r162(){ $this->_retvalue = '".('.$this->yystack[$this->yyidx + -1]->minor.')."'; $this->compiler->has_variable_string = true; }
|
|
|
|
|
#line 2472 "smarty_internal_templateparser.php"
|
|
|
|
|
#line 537 "smarty_internal_templateparser.y"
|
|
|
|
|
function yy_r163(){ $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 2475 "smarty_internal_templateparser.php"
|
2009-11-08 16:17:51 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* placeholder for the left hand side in a reduce operation.
|
|
|
|
|
*
|
|
|
|
|
* For a parser with a rule like this:
|
|
|
|
|
* <pre>
|
|
|
|
|
* rule(A) ::= B. { A = 1; }
|
|
|
|
|
* </pre>
|
|
|
|
|
*
|
|
|
|
|
* The parser will translate to something like:
|
|
|
|
|
*
|
|
|
|
|
* <code>
|
|
|
|
|
* function yy_r0(){$this->_retvalue = 1;}
|
|
|
|
|
* </code>
|
|
|
|
|
*/
|
|
|
|
|
private $_retvalue;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Perform a reduce action and the shift that must immediately
|
|
|
|
|
* follow the reduce.
|
|
|
|
|
*
|
|
|
|
|
* For a rule such as:
|
|
|
|
|
*
|
|
|
|
|
* <pre>
|
|
|
|
|
* A ::= B blah C. { dosomething(); }
|
|
|
|
|
* </pre>
|
|
|
|
|
*
|
|
|
|
|
* This function will first call the action, if any, ("dosomething();" in our
|
|
|
|
|
* example), and then it will pop three states from the stack,
|
|
|
|
|
* one for each entry on the right-hand side of the expression
|
|
|
|
|
* (B, blah, and C in our example rule), and then push the result of the action
|
|
|
|
|
* back on to the stack with the resulting state reduced to (as described in the .out
|
|
|
|
|
* file)
|
|
|
|
|
* @param int Number of the rule by which to reduce
|
|
|
|
|
*/
|
|
|
|
|
function yy_reduce($yyruleno)
|
|
|
|
|
{
|
|
|
|
|
//int $yygoto; /* The next state */
|
|
|
|
|
//int $yyact; /* The next action */
|
|
|
|
|
//mixed $yygotominor; /* The LHS of the rule reduced */
|
|
|
|
|
//TP_yyStackEntry $yymsp; /* The top of the parser's stack */
|
|
|
|
|
//int $yysize; /* Amount to pop the stack */
|
|
|
|
|
$yymsp = $this->yystack[$this->yyidx];
|
|
|
|
|
if (self::$yyTraceFILE && $yyruleno >= 0
|
|
|
|
|
&& $yyruleno < count(self::$yyRuleName)) {
|
|
|
|
|
fprintf(self::$yyTraceFILE, "%sReduce (%d) [%s].\n",
|
|
|
|
|
self::$yyTracePrompt, $yyruleno,
|
|
|
|
|
self::$yyRuleName[$yyruleno]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$this->_retvalue = $yy_lefthand_side = null;
|
|
|
|
|
if (array_key_exists($yyruleno, self::$yyReduceMap)) {
|
|
|
|
|
// call the action
|
|
|
|
|
$this->_retvalue = null;
|
|
|
|
|
$this->{'yy_r' . self::$yyReduceMap[$yyruleno]}();
|
|
|
|
|
$yy_lefthand_side = $this->_retvalue;
|
|
|
|
|
}
|
|
|
|
|
$yygoto = self::$yyRuleInfo[$yyruleno]['lhs'];
|
|
|
|
|
$yysize = self::$yyRuleInfo[$yyruleno]['rhs'];
|
|
|
|
|
$this->yyidx -= $yysize;
|
|
|
|
|
for($i = $yysize; $i; $i--) {
|
|
|
|
|
// pop all of the right-hand side parameters
|
|
|
|
|
array_pop($this->yystack);
|
|
|
|
|
}
|
|
|
|
|
$yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto);
|
|
|
|
|
if ($yyact < self::YYNSTATE) {
|
|
|
|
|
/* If we are not debugging and the reduce action popped at least
|
|
|
|
|
** one element off the stack, then we can push the new element back
|
|
|
|
|
** onto the stack here, and skip the stack overflow test in yy_shift().
|
|
|
|
|
** That gives a significant speed improvement. */
|
|
|
|
|
if (!self::$yyTraceFILE && $yysize) {
|
|
|
|
|
$this->yyidx++;
|
|
|
|
|
$x = new TP_yyStackEntry;
|
|
|
|
|
$x->stateno = $yyact;
|
|
|
|
|
$x->major = $yygoto;
|
|
|
|
|
$x->minor = $yy_lefthand_side;
|
|
|
|
|
$this->yystack[$this->yyidx] = $x;
|
|
|
|
|
} else {
|
|
|
|
|
$this->yy_shift($yyact, $yygoto, $yy_lefthand_side);
|
|
|
|
|
}
|
|
|
|
|
} elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) {
|
|
|
|
|
$this->yy_accept();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The following code executes when the parse fails
|
|
|
|
|
*
|
|
|
|
|
* Code from %parse_fail is inserted here
|
|
|
|
|
*/
|
|
|
|
|
function yy_parse_failed()
|
|
|
|
|
{
|
|
|
|
|
if (self::$yyTraceFILE) {
|
|
|
|
|
fprintf(self::$yyTraceFILE, "%sFail!\n", self::$yyTracePrompt);
|
|
|
|
|
}
|
|
|
|
|
while ($this->yyidx >= 0) {
|
|
|
|
|
$this->yy_pop_parser_stack();
|
|
|
|
|
}
|
|
|
|
|
/* Here code is inserted which will be executed whenever the
|
|
|
|
|
** parser fails */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The following code executes when a syntax error first occurs.
|
|
|
|
|
*
|
|
|
|
|
* %syntax_error code is inserted here
|
|
|
|
|
* @param int The major type of the error token
|
|
|
|
|
* @param mixed The minor type of the error token
|
|
|
|
|
*/
|
|
|
|
|
function yy_syntax_error($yymajor, $TOKEN)
|
|
|
|
|
{
|
|
|
|
|
#line 60 "smarty_internal_templateparser.y"
|
2009-10-22 23:05:14 +00:00
|
|
|
|
|
|
|
|
$this->internalError = true;
|
|
|
|
|
$this->yymajor = $yymajor;
|
|
|
|
|
$this->compiler->trigger_template_error();
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2593 "smarty_internal_templateparser.php"
|
2009-11-08 16:17:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The following is executed when the parser accepts
|
|
|
|
|
*
|
|
|
|
|
* %parse_accept code is inserted here
|
|
|
|
|
*/
|
|
|
|
|
function yy_accept()
|
|
|
|
|
{
|
|
|
|
|
if (self::$yyTraceFILE) {
|
|
|
|
|
fprintf(self::$yyTraceFILE, "%sAccept!\n", self::$yyTracePrompt);
|
|
|
|
|
}
|
|
|
|
|
while ($this->yyidx >= 0) {
|
|
|
|
|
$stack = $this->yy_pop_parser_stack();
|
|
|
|
|
}
|
|
|
|
|
/* Here code is inserted which will be executed whenever the
|
|
|
|
|
** parser accepts */
|
|
|
|
|
#line 52 "smarty_internal_templateparser.y"
|
2009-10-22 23:05:14 +00:00
|
|
|
|
|
|
|
|
$this->successful = !$this->internalError;
|
|
|
|
|
$this->internalError = false;
|
|
|
|
|
$this->retvalue = $this->_retvalue;
|
|
|
|
|
//echo $this->retvalue."\n\n";
|
2009-11-17 18:09:29 +00:00
|
|
|
#line 2618 "smarty_internal_templateparser.php"
|
2009-11-08 16:17:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
?>
|