2009-03-22 16:09:05 +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 "internal.templateparser.y"
|
|
|
|
class Smarty_Internal_Templateparser#line 109 "internal.templateparser.php"
|
|
|
|
{
|
|
|
|
/* First off, code is included which follows the "include_class" declaration
|
|
|
|
** in the input file. */
|
|
|
|
#line 14 "internal.templateparser.y"
|
|
|
|
|
|
|
|
// states whether the parse was successful or not
|
|
|
|
public $successful = true;
|
|
|
|
public $retvalue = 0;
|
|
|
|
private $lex;
|
|
|
|
private $internalError = false;
|
|
|
|
|
|
|
|
function __construct($lex, $compiler) {
|
|
|
|
// set instance object
|
|
|
|
self::instance($this);
|
|
|
|
$this->lex = $lex;
|
|
|
|
$this->smarty = Smarty::instance();
|
|
|
|
$this->compiler = $compiler;
|
|
|
|
$this->template = $this->compiler->template;
|
|
|
|
$this->cacher = $this->template->cacher_object;
|
|
|
|
$this->nocache = false;
|
|
|
|
$this->prefix_code = array();
|
|
|
|
$this->prefix_number = 0;
|
|
|
|
}
|
|
|
|
public static function &instance($new_instance = null)
|
|
|
|
{
|
|
|
|
static $instance = null;
|
|
|
|
if (isset($new_instance) && is_object($new_instance))
|
|
|
|
$instance = $new_instance;
|
|
|
|
return $instance;
|
|
|
|
}
|
|
|
|
|
|
|
|
#line 142 "internal.templateparser.php"
|
|
|
|
|
|
|
|
/* Next is all token values, as class constants
|
|
|
|
*/
|
|
|
|
/*
|
|
|
|
** These constants (all generated automatically by the parser generator)
|
|
|
|
** specify the various kinds of tokens (terminals) that the parser
|
|
|
|
** understands.
|
|
|
|
**
|
|
|
|
** Each symbol here is a terminal symbol in the grammar.
|
|
|
|
*/
|
|
|
|
const TP_OTHER = 1;
|
|
|
|
const TP_LDELSLASH = 2;
|
|
|
|
const TP_LDEL = 3;
|
|
|
|
const TP_RDEL = 4;
|
|
|
|
const TP_XML = 5;
|
|
|
|
const TP_PHP = 6;
|
|
|
|
const TP_SHORTTAGSTART = 7;
|
|
|
|
const TP_SHORTTAGEND = 8;
|
|
|
|
const TP_COMMENTEND = 9;
|
|
|
|
const TP_COMMENTSTART = 10;
|
2009-04-09 15:53:52 +00:00
|
|
|
const TP_INTEGER = 11;
|
2009-03-22 16:09:05 +00:00
|
|
|
const TP_MATH = 12;
|
|
|
|
const TP_UNIMATH = 13;
|
|
|
|
const TP_INCDEC = 14;
|
|
|
|
const TP_OPENP = 15;
|
|
|
|
const TP_CLOSEP = 16;
|
|
|
|
const TP_OPENB = 17;
|
|
|
|
const TP_CLOSEB = 18;
|
|
|
|
const TP_DOLLAR = 19;
|
|
|
|
const TP_DOT = 20;
|
|
|
|
const TP_COMMA = 21;
|
|
|
|
const TP_COLON = 22;
|
|
|
|
const TP_DOUBLECOLON = 23;
|
|
|
|
const TP_SEMICOLON = 24;
|
|
|
|
const TP_VERT = 25;
|
|
|
|
const TP_EQUAL = 26;
|
|
|
|
const TP_SPACE = 27;
|
|
|
|
const TP_PTR = 28;
|
|
|
|
const TP_APTR = 29;
|
|
|
|
const TP_ID = 30;
|
|
|
|
const TP_EQUALS = 31;
|
|
|
|
const TP_NOTEQUALS = 32;
|
|
|
|
const TP_GREATERTHAN = 33;
|
|
|
|
const TP_LESSTHAN = 34;
|
|
|
|
const TP_GREATEREQUAL = 35;
|
|
|
|
const TP_LESSEQUAL = 36;
|
|
|
|
const TP_IDENTITY = 37;
|
|
|
|
const TP_NONEIDENTITY = 38;
|
|
|
|
const TP_NOT = 39;
|
|
|
|
const TP_LAND = 40;
|
|
|
|
const TP_LOR = 41;
|
|
|
|
const TP_QUOTE = 42;
|
|
|
|
const TP_SINGLEQUOTE = 43;
|
|
|
|
const TP_BOOLEAN = 44;
|
|
|
|
const TP_NULL = 45;
|
|
|
|
const TP_IN = 46;
|
|
|
|
const TP_ANDSYM = 47;
|
|
|
|
const TP_BACKTICK = 48;
|
|
|
|
const TP_HATCH = 49;
|
|
|
|
const TP_AT = 50;
|
|
|
|
const TP_ISODD = 51;
|
|
|
|
const TP_ISNOTODD = 52;
|
|
|
|
const TP_ISEVEN = 53;
|
|
|
|
const TP_ISNOTEVEN = 54;
|
|
|
|
const TP_ISODDBY = 55;
|
|
|
|
const TP_ISNOTODDBY = 56;
|
|
|
|
const TP_ISEVENBY = 57;
|
|
|
|
const TP_ISNOTEVENBY = 58;
|
|
|
|
const TP_ISDIVBY = 59;
|
|
|
|
const TP_ISNOTDIVBY = 60;
|
2009-04-14 09:04:15 +00:00
|
|
|
const TP_ISIN = 61;
|
|
|
|
const TP_LITERALSTART = 62;
|
|
|
|
const TP_LITERALEND = 63;
|
|
|
|
const TP_LDELIMTAG = 64;
|
|
|
|
const TP_RDELIMTAG = 65;
|
|
|
|
const TP_PHPSTART = 66;
|
|
|
|
const TP_PHPEND = 67;
|
2009-04-18 14:46:29 +00:00
|
|
|
const YY_NO_ACTION = 412;
|
|
|
|
const YY_ACCEPT_ACTION = 411;
|
|
|
|
const YY_ERROR_ACTION = 410;
|
2009-03-22 16:09:05 +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-04-18 14:46:29 +00:00
|
|
|
const YY_SZ_ACTTAB = 911;
|
2009-03-22 16:09:05 +00:00
|
|
|
static public $yy_action = array(
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 0 */ 185, 188, 186, 15, 26, 411, 51, 169, 216, 248,
|
|
|
|
/* 10 */ 21, 101, 176, 182, 177, 175, 3, 2, 11, 8,
|
|
|
|
/* 20 */ 6, 5, 13, 59, 188, 186, 147, 29, 36, 144,
|
|
|
|
/* 30 */ 28, 229, 12, 247, 63, 176, 182, 177, 175, 3,
|
|
|
|
/* 40 */ 2, 11, 8, 6, 5, 127, 110, 35, 223, 145,
|
|
|
|
/* 50 */ 234, 143, 235, 213, 180, 210, 100, 39, 57, 192,
|
|
|
|
/* 60 */ 193, 131, 215, 216, 151, 188, 186, 170, 187, 189,
|
|
|
|
/* 70 */ 174, 183, 181, 178, 184, 99, 176, 182, 177, 175,
|
|
|
|
/* 80 */ 3, 2, 11, 8, 6, 5, 242, 252, 254, 245,
|
|
|
|
/* 90 */ 188, 186, 147, 258, 36, 207, 4, 34, 12, 253,
|
|
|
|
/* 100 */ 63, 176, 182, 177, 175, 3, 2, 11, 8, 6,
|
|
|
|
/* 110 */ 5, 129, 137, 146, 31, 23, 227, 43, 31, 220,
|
|
|
|
/* 120 */ 9, 43, 38, 39, 57, 192, 193, 232, 236, 41,
|
|
|
|
/* 130 */ 151, 63, 194, 53, 40, 220, 252, 254, 221, 63,
|
|
|
|
/* 140 */ 71, 130, 104, 198, 197, 168, 167, 88, 257, 199,
|
|
|
|
/* 150 */ 213, 213, 210, 210, 221, 47, 147, 239, 36, 179,
|
|
|
|
/* 160 */ 4, 151, 12, 111, 60, 223, 147, 234, 36, 151,
|
|
|
|
/* 170 */ 28, 38, 12, 122, 63, 126, 220, 244, 154, 30,
|
|
|
|
/* 180 */ 137, 238, 225, 49, 9, 129, 61, 39, 57, 192,
|
|
|
|
/* 190 */ 193, 152, 190, 120, 151, 221, 7, 39, 57, 192,
|
|
|
|
/* 200 */ 193, 147, 15, 36, 151, 28, 107, 12, 196, 63,
|
|
|
|
/* 210 */ 101, 220, 131, 212, 1, 135, 226, 147, 93, 36,
|
|
|
|
/* 220 */ 42, 28, 124, 12, 125, 63, 263, 252, 254, 242,
|
|
|
|
/* 230 */ 221, 10, 39, 57, 192, 193, 132, 262, 58, 151,
|
|
|
|
/* 240 */ 218, 219, 62, 249, 235, 131, 14, 131, 39, 57,
|
|
|
|
/* 250 */ 192, 193, 147, 131, 36, 151, 28, 261, 12, 27,
|
|
|
|
/* 260 */ 63, 147, 38, 36, 213, 28, 210, 12, 15, 63,
|
|
|
|
/* 270 */ 121, 134, 217, 15, 227, 63, 101, 220, 94, 24,
|
|
|
|
/* 280 */ 128, 101, 123, 39, 57, 192, 193, 18, 116, 242,
|
|
|
|
/* 290 */ 151, 131, 39, 57, 192, 193, 221, 162, 204, 151,
|
|
|
|
/* 300 */ 194, 53, 85, 220, 45, 151, 201, 213, 78, 210,
|
|
|
|
/* 310 */ 26, 198, 197, 194, 53, 88, 220, 199, 213, 131,
|
|
|
|
/* 320 */ 210, 69, 221, 22, 198, 197, 200, 179, 88, 230,
|
|
|
|
/* 330 */ 199, 194, 53, 29, 220, 221, 211, 229, 149, 73,
|
|
|
|
/* 340 */ 179, 220, 198, 197, 194, 53, 88, 220, 199, 205,
|
|
|
|
/* 350 */ 131, 26, 77, 221, 63, 198, 197, 46, 179, 88,
|
|
|
|
/* 360 */ 221, 199, 163, 16, 147, 157, 221, 131, 28, 103,
|
|
|
|
/* 370 */ 12, 179, 63, 123, 20, 159, 232, 26, 229, 131,
|
|
|
|
/* 380 */ 242, 137, 15, 132, 151, 259, 160, 84, 194, 83,
|
|
|
|
/* 390 */ 101, 220, 253, 240, 33, 39, 57, 192, 193, 206,
|
|
|
|
/* 400 */ 194, 53, 151, 220, 229, 199, 155, 237, 75, 220,
|
|
|
|
/* 410 */ 221, 198, 197, 123, 241, 88, 137, 199, 194, 52,
|
|
|
|
/* 420 */ 26, 220, 221, 211, 143, 131, 70, 179, 221, 198,
|
|
|
|
/* 430 */ 197, 194, 53, 88, 220, 199, 171, 137, 123, 79,
|
|
|
|
/* 440 */ 221, 87, 198, 197, 33, 179, 88, 229, 199, 137,
|
|
|
|
/* 450 */ 123, 264, 224, 221, 86, 131, 56, 54, 179, 137,
|
|
|
|
/* 460 */ 25, 170, 187, 189, 174, 183, 181, 178, 184, 26,
|
|
|
|
/* 470 */ 194, 53, 25, 220, 137, 211, 237, 237, 74, 137,
|
|
|
|
/* 480 */ 153, 198, 197, 194, 91, 88, 220, 199, 211, 112,
|
|
|
|
/* 490 */ 150, 34, 221, 234, 198, 197, 138, 179, 88, 119,
|
|
|
|
/* 500 */ 199, 97, 41, 234, 64, 221, 55, 194, 53, 261,
|
|
|
|
/* 510 */ 220, 27, 242, 133, 255, 76, 222, 172, 198, 197,
|
|
|
|
/* 520 */ 194, 53, 88, 220, 199, 233, 237, 63, 72, 221,
|
|
|
|
/* 530 */ 96, 198, 197, 246, 179, 88, 147, 199, 19, 13,
|
|
|
|
/* 540 */ 28, 242, 221, 173, 63, 68, 32, 179, 140, 231,
|
|
|
|
/* 550 */ 260, 251, 24, 67, 208, 132, 45, 151, 203, 202,
|
|
|
|
/* 560 */ 194, 105, 63, 220, 139, 191, 148, 39, 57, 192,
|
|
|
|
/* 570 */ 193, 198, 197, 209, 151, 88, 65, 199, 166, 109,
|
|
|
|
/* 580 */ 158, 95, 221, 194, 105, 214, 220, 37, 223, 137,
|
|
|
|
/* 590 */ 243, 232, 151, 44, 198, 197, 194, 105, 88, 220,
|
|
|
|
/* 600 */ 199, 17, 92, 156, 255, 221, 255, 198, 197, 194,
|
|
|
|
/* 610 */ 91, 88, 220, 199, 255, 255, 161, 255, 221, 255,
|
|
|
|
/* 620 */ 198, 197, 194, 105, 88, 220, 199, 66, 255, 255,
|
|
|
|
/* 630 */ 255, 221, 255, 198, 197, 194, 118, 88, 220, 199,
|
|
|
|
/* 640 */ 250, 255, 256, 255, 221, 255, 198, 197, 255, 255,
|
|
|
|
/* 650 */ 88, 255, 199, 255, 255, 194, 90, 221, 220, 255,
|
|
|
|
/* 660 */ 255, 255, 255, 255, 255, 255, 198, 197, 255, 255,
|
|
|
|
/* 670 */ 88, 255, 199, 194, 115, 255, 220, 221, 255, 255,
|
|
|
|
/* 680 */ 255, 255, 255, 255, 198, 197, 194, 102, 88, 220,
|
|
|
|
/* 690 */ 199, 255, 255, 255, 255, 221, 255, 198, 197, 194,
|
|
|
|
/* 700 */ 108, 88, 220, 199, 255, 255, 255, 255, 221, 255,
|
|
|
|
/* 710 */ 198, 197, 194, 106, 88, 220, 199, 255, 255, 255,
|
|
|
|
/* 720 */ 255, 221, 255, 198, 197, 194, 117, 88, 220, 199,
|
|
|
|
/* 730 */ 255, 255, 194, 255, 221, 220, 198, 197, 255, 255,
|
|
|
|
/* 740 */ 88, 255, 199, 165, 164, 194, 98, 221, 220, 199,
|
|
|
|
/* 750 */ 255, 255, 255, 255, 221, 255, 198, 197, 255, 255,
|
|
|
|
/* 760 */ 88, 255, 199, 194, 48, 255, 220, 221, 255, 255,
|
|
|
|
/* 770 */ 255, 255, 255, 255, 198, 197, 194, 114, 88, 220,
|
|
|
|
/* 780 */ 199, 255, 255, 255, 255, 221, 255, 198, 197, 194,
|
|
|
|
/* 790 */ 89, 88, 220, 199, 255, 255, 255, 255, 221, 255,
|
|
|
|
/* 800 */ 198, 197, 194, 50, 88, 141, 199, 255, 255, 255,
|
|
|
|
/* 810 */ 255, 221, 255, 198, 197, 194, 113, 88, 220, 199,
|
|
|
|
/* 820 */ 255, 255, 194, 255, 221, 220, 198, 197, 255, 255,
|
|
|
|
/* 830 */ 88, 194, 199, 228, 220, 255, 255, 221, 255, 199,
|
|
|
|
/* 840 */ 255, 255, 198, 197, 221, 255, 82, 255, 199, 194,
|
|
|
|
/* 850 */ 255, 255, 220, 221, 255, 255, 255, 255, 255, 255,
|
|
|
|
/* 860 */ 198, 197, 194, 255, 80, 220, 199, 255, 255, 255,
|
|
|
|
/* 870 */ 255, 221, 255, 198, 197, 194, 255, 81, 220, 199,
|
|
|
|
/* 880 */ 255, 255, 255, 255, 221, 255, 136, 142, 194, 255,
|
|
|
|
/* 890 */ 255, 220, 199, 255, 255, 255, 255, 221, 255, 195,
|
|
|
|
/* 900 */ 255, 255, 255, 255, 255, 199, 255, 255, 255, 255,
|
|
|
|
/* 910 */ 221,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
static public $yy_lookahead = array(
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 0 */ 16, 40, 41, 15, 3, 69, 70, 71, 72, 30,
|
|
|
|
/* 10 */ 3, 23, 51, 52, 53, 54, 55, 56, 57, 58,
|
|
|
|
/* 20 */ 59, 60, 15, 30, 40, 41, 11, 26, 13, 50,
|
|
|
|
/* 30 */ 15, 30, 17, 18, 19, 51, 52, 53, 54, 55,
|
|
|
|
/* 40 */ 56, 57, 58, 59, 60, 30, 95, 46, 97, 24,
|
|
|
|
/* 50 */ 99, 50, 16, 1, 4, 3, 79, 42, 43, 44,
|
|
|
|
/* 60 */ 45, 25, 71, 72, 49, 40, 41, 31, 32, 33,
|
|
|
|
/* 70 */ 34, 35, 36, 37, 38, 76, 51, 52, 53, 54,
|
|
|
|
/* 80 */ 55, 56, 57, 58, 59, 60, 87, 12, 13, 4,
|
|
|
|
/* 90 */ 40, 41, 11, 18, 13, 43, 15, 61, 17, 100,
|
|
|
|
/* 100 */ 19, 51, 52, 53, 54, 55, 56, 57, 58, 59,
|
|
|
|
/* 110 */ 60, 30, 27, 84, 17, 3, 74, 20, 17, 77,
|
|
|
|
/* 120 */ 39, 20, 47, 42, 43, 44, 45, 98, 4, 28,
|
|
|
|
/* 130 */ 49, 19, 74, 75, 92, 77, 12, 13, 96, 19,
|
|
|
|
/* 140 */ 82, 83, 30, 85, 86, 4, 88, 89, 106, 91,
|
|
|
|
/* 150 */ 1, 1, 3, 3, 96, 81, 11, 4, 13, 101,
|
|
|
|
/* 160 */ 15, 49, 17, 95, 19, 97, 11, 99, 13, 49,
|
|
|
|
/* 170 */ 15, 47, 17, 74, 19, 30, 77, 1, 2, 3,
|
|
|
|
/* 180 */ 27, 5, 6, 7, 39, 30, 10, 42, 43, 44,
|
|
|
|
/* 190 */ 45, 30, 93, 21, 49, 96, 24, 42, 43, 44,
|
|
|
|
/* 200 */ 45, 11, 15, 13, 49, 15, 79, 17, 74, 19,
|
|
|
|
/* 210 */ 23, 77, 25, 63, 27, 28, 67, 11, 76, 13,
|
|
|
|
/* 220 */ 30, 15, 80, 17, 4, 19, 4, 12, 13, 87,
|
|
|
|
/* 230 */ 96, 103, 42, 43, 44, 45, 30, 16, 62, 49,
|
|
|
|
/* 240 */ 64, 65, 66, 18, 16, 25, 21, 25, 42, 43,
|
|
|
|
/* 250 */ 44, 45, 11, 25, 13, 49, 15, 1, 17, 3,
|
|
|
|
/* 260 */ 19, 11, 47, 13, 1, 15, 3, 17, 15, 19,
|
|
|
|
/* 270 */ 4, 30, 9, 15, 74, 19, 23, 77, 76, 26,
|
|
|
|
/* 280 */ 30, 23, 80, 42, 43, 44, 45, 29, 81, 87,
|
|
|
|
/* 290 */ 49, 25, 42, 43, 44, 45, 96, 88, 42, 49,
|
|
|
|
/* 300 */ 74, 75, 73, 77, 48, 49, 106, 1, 82, 3,
|
|
|
|
/* 310 */ 3, 85, 86, 74, 75, 89, 77, 91, 1, 25,
|
|
|
|
/* 320 */ 3, 82, 96, 29, 85, 86, 99, 101, 89, 4,
|
|
|
|
/* 330 */ 91, 74, 75, 26, 77, 96, 107, 30, 74, 82,
|
|
|
|
/* 340 */ 101, 77, 85, 86, 74, 75, 89, 77, 91, 43,
|
|
|
|
/* 350 */ 25, 3, 82, 96, 19, 85, 86, 79, 101, 89,
|
|
|
|
/* 360 */ 96, 91, 14, 21, 11, 30, 96, 25, 15, 76,
|
|
|
|
/* 370 */ 17, 101, 19, 80, 26, 19, 98, 3, 30, 25,
|
|
|
|
/* 380 */ 87, 27, 15, 30, 49, 18, 30, 78, 74, 73,
|
|
|
|
/* 390 */ 23, 77, 100, 4, 22, 42, 43, 44, 45, 85,
|
|
|
|
/* 400 */ 74, 75, 49, 77, 30, 91, 74, 98, 82, 77,
|
|
|
|
/* 410 */ 96, 85, 86, 80, 4, 89, 27, 91, 74, 75,
|
|
|
|
/* 420 */ 3, 77, 96, 107, 50, 25, 82, 101, 96, 85,
|
|
|
|
/* 430 */ 86, 74, 75, 89, 77, 91, 4, 27, 80, 82,
|
|
|
|
/* 440 */ 96, 73, 85, 86, 22, 101, 89, 30, 91, 27,
|
|
|
|
/* 450 */ 80, 4, 8, 96, 73, 25, 78, 78, 101, 27,
|
|
|
|
/* 460 */ 102, 31, 32, 33, 34, 35, 36, 37, 38, 3,
|
|
|
|
/* 470 */ 74, 75, 102, 77, 27, 107, 98, 98, 82, 27,
|
|
|
|
/* 480 */ 28, 85, 86, 74, 75, 89, 77, 91, 107, 95,
|
|
|
|
/* 490 */ 30, 61, 96, 99, 85, 86, 30, 101, 89, 95,
|
|
|
|
/* 500 */ 91, 76, 28, 99, 19, 96, 78, 74, 75, 1,
|
|
|
|
/* 510 */ 77, 3, 87, 104, 105, 82, 49, 4, 85, 86,
|
|
|
|
/* 520 */ 74, 75, 89, 77, 91, 30, 98, 19, 82, 96,
|
|
|
|
/* 530 */ 76, 85, 86, 16, 101, 89, 11, 91, 26, 15,
|
|
|
|
/* 540 */ 15, 87, 96, 4, 19, 30, 3, 101, 30, 30,
|
|
|
|
/* 550 */ 42, 30, 26, 16, 11, 30, 48, 49, 48, 48,
|
|
|
|
/* 560 */ 74, 75, 19, 77, 22, 11, 20, 42, 43, 44,
|
|
|
|
/* 570 */ 45, 85, 86, 30, 49, 89, 19, 91, 4, 30,
|
|
|
|
/* 580 */ 94, 79, 96, 74, 75, 107, 77, 90, 97, 27,
|
|
|
|
/* 590 */ 87, 98, 49, 79, 85, 86, 74, 75, 89, 77,
|
|
|
|
/* 600 */ 91, 15, 79, 94, 108, 96, 108, 85, 86, 74,
|
|
|
|
/* 610 */ 75, 89, 77, 91, 108, 108, 94, 108, 96, 108,
|
|
|
|
/* 620 */ 85, 86, 74, 75, 89, 77, 91, 93, 108, 108,
|
|
|
|
/* 630 */ 108, 96, 108, 85, 86, 74, 75, 89, 77, 91,
|
|
|
|
/* 640 */ 105, 108, 94, 108, 96, 108, 85, 86, 108, 108,
|
|
|
|
/* 650 */ 89, 108, 91, 108, 108, 74, 75, 96, 77, 108,
|
|
|
|
/* 660 */ 108, 108, 108, 108, 108, 108, 85, 86, 108, 108,
|
|
|
|
/* 670 */ 89, 108, 91, 74, 75, 108, 77, 96, 108, 108,
|
|
|
|
/* 680 */ 108, 108, 108, 108, 85, 86, 74, 75, 89, 77,
|
|
|
|
/* 690 */ 91, 108, 108, 108, 108, 96, 108, 85, 86, 74,
|
|
|
|
/* 700 */ 75, 89, 77, 91, 108, 108, 108, 108, 96, 108,
|
|
|
|
/* 710 */ 85, 86, 74, 75, 89, 77, 91, 108, 108, 108,
|
|
|
|
/* 720 */ 108, 96, 108, 85, 86, 74, 75, 89, 77, 91,
|
|
|
|
/* 730 */ 108, 108, 74, 108, 96, 77, 85, 86, 108, 108,
|
|
|
|
/* 740 */ 89, 108, 91, 85, 86, 74, 75, 96, 77, 91,
|
|
|
|
/* 750 */ 108, 108, 108, 108, 96, 108, 85, 86, 108, 108,
|
|
|
|
/* 760 */ 89, 108, 91, 74, 75, 108, 77, 96, 108, 108,
|
|
|
|
/* 770 */ 108, 108, 108, 108, 85, 86, 74, 75, 89, 77,
|
|
|
|
/* 780 */ 91, 108, 108, 108, 108, 96, 108, 85, 86, 74,
|
|
|
|
/* 790 */ 75, 89, 77, 91, 108, 108, 108, 108, 96, 108,
|
|
|
|
/* 800 */ 85, 86, 74, 75, 89, 77, 91, 108, 108, 108,
|
|
|
|
/* 810 */ 108, 96, 108, 85, 86, 74, 75, 89, 77, 91,
|
|
|
|
/* 820 */ 108, 108, 74, 108, 96, 77, 85, 86, 108, 108,
|
|
|
|
/* 830 */ 89, 74, 91, 85, 77, 108, 108, 96, 108, 91,
|
|
|
|
/* 840 */ 108, 108, 85, 86, 96, 108, 89, 108, 91, 74,
|
|
|
|
/* 850 */ 108, 108, 77, 96, 108, 108, 108, 108, 108, 108,
|
|
|
|
/* 860 */ 85, 86, 74, 108, 89, 77, 91, 108, 108, 108,
|
|
|
|
/* 870 */ 108, 96, 108, 85, 86, 74, 108, 89, 77, 91,
|
|
|
|
/* 880 */ 108, 108, 108, 108, 96, 108, 85, 86, 74, 108,
|
|
|
|
/* 890 */ 108, 77, 91, 108, 108, 108, 108, 96, 108, 85,
|
|
|
|
/* 900 */ 108, 108, 108, 108, 108, 91, 108, 108, 108, 108,
|
|
|
|
/* 910 */ 96,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
2009-04-14 12:41:07 +00:00
|
|
|
const YY_SHIFT_USE_DFLT = -40;
|
2009-04-18 14:46:29 +00:00
|
|
|
const YY_SHIFT_MAX = 161;
|
2009-03-22 16:09:05 +00:00
|
|
|
static public $yy_shift_ofst = array(
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 0 */ 176, 145, 81, 81, 81, 81, 81, 81, 81, 81,
|
|
|
|
/* 10 */ 81, 81, 250, 155, 250, 155, 155, 155, 155, 155,
|
|
|
|
/* 20 */ 155, 155, 155, 155, 155, 155, 155, 155, 155, 155,
|
|
|
|
/* 30 */ 190, 15, 206, 241, 353, 353, 525, 525, 525, 508,
|
|
|
|
/* 40 */ 256, 112, 187, 543, 101, 335, 101, 422, 354, 120,
|
|
|
|
/* 50 */ 354, 176, 36, 430, 1, 348, 374, 306, 317, 452,
|
|
|
|
/* 60 */ 466, 317, 317, 466, 417, 417, 474, 474, 562, 25,
|
|
|
|
/* 70 */ -16, 50, -39, -39, -39, -39, -39, -39, -39, -39,
|
|
|
|
/* 80 */ 75, 124, 215, 263, 307, 149, 52, 150, 215, 220,
|
|
|
|
/* 90 */ 222, 294, 97, 389, 153, 97, 410, 432, 228, 447,
|
|
|
|
/* 100 */ 97, 356, 325, 85, 7, 342, 266, 97, 400, 586,
|
|
|
|
/* 110 */ 474, 474, 474, 400, 400, 400, 372, 400, 400, 474,
|
|
|
|
/* 120 */ 485, -40, -40, -40, -40, -40, 253, 367, 258, -12,
|
|
|
|
/* 130 */ 172, -21, -12, 225, -12, 515, 539, 518, 542, 519,
|
|
|
|
/* 140 */ 526, 512, 513, 495, 521, 557, 574, 546, 554, 510,
|
|
|
|
/* 150 */ 467, 460, 141, 161, -7, 444, 221, 511, 537, 549,
|
|
|
|
/* 160 */ 524, 517,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
2009-04-18 14:46:29 +00:00
|
|
|
const YY_REDUCE_USE_DFLT = -65;
|
2009-04-14 09:04:15 +00:00
|
|
|
const YY_REDUCE_MAX = 125;
|
2009-03-22 16:09:05 +00:00
|
|
|
static public $yy_reduce_ofst = array(
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 0 */ -64, 58, 270, 326, 344, 257, 396, 239, 226, 357,
|
|
|
|
/* 10 */ 433, 446, 409, 522, 535, 509, 548, 486, 702, 689,
|
|
|
|
/* 20 */ 599, 715, 561, 638, 651, 625, 612, 581, 671, 741,
|
|
|
|
/* 30 */ 728, 775, 788, 757, 658, 801, 814, 314, 748, 42,
|
|
|
|
/* 40 */ 200, 99, 142, 134, 68, 264, -49, -1, 202, 332,
|
|
|
|
/* 50 */ 293, -9, 370, 358, 278, 29, 278, 381, 368, 425,
|
|
|
|
/* 60 */ 379, 316, 229, 378, 309, 428, 404, 394, 454, 128,
|
|
|
|
/* 70 */ 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
|
|
|
|
/* 80 */ 497, 497, 497, 478, 493, 478, 478, 478, 497, 333,
|
|
|
|
/* 90 */ 333, 333, 491, 503, 503, 491, 503, 503, 333, 503,
|
|
|
|
/* 100 */ 491, 534, 333, 503, 523, 333, 333, 491, 333, 514,
|
|
|
|
/* 110 */ 227, 227, 227, 333, 333, 333, 292, 333, 333, 227,
|
|
|
|
/* 120 */ 209, -23, 127, 207, 74, 502,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
static public $yyExpectedTokens = array(
|
2009-04-14 09:04:15 +00:00
|
|
|
/* 0 */ array(1, 2, 3, 5, 6, 7, 10, 62, 64, 65, 66, ),
|
2009-03-22 16:09:05 +00:00
|
|
|
/* 1 */ array(11, 13, 15, 17, 19, 30, 39, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 2 */ array(11, 13, 15, 17, 19, 30, 39, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 3 */ array(11, 13, 15, 17, 19, 30, 39, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 4 */ array(11, 13, 15, 17, 19, 30, 39, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 5 */ array(11, 13, 15, 17, 19, 30, 39, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 6 */ array(11, 13, 15, 17, 19, 30, 39, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 7 */ array(11, 13, 15, 17, 19, 30, 39, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 8 */ array(11, 13, 15, 17, 19, 30, 39, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 9 */ array(11, 13, 15, 17, 19, 30, 39, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 10 */ array(11, 13, 15, 17, 19, 30, 39, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 11 */ array(11, 13, 15, 17, 19, 30, 39, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 12 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 13 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 14 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 15 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 16 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 17 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 18 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 19 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 20 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 21 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 22 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 23 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 24 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 25 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 26 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 27 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
2009-04-05 14:49:27 +00:00
|
|
|
/* 28 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
2009-04-08 14:47:28 +00:00
|
|
|
/* 29 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
2009-04-09 17:43:32 +00:00
|
|
|
/* 30 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 31 */ array(11, 13, 15, 17, 18, 19, 30, 42, 43, 44, 45, 49, ),
|
2009-04-08 14:47:28 +00:00
|
|
|
/* 32 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
2009-04-09 17:43:32 +00:00
|
|
|
/* 33 */ array(11, 13, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
|
|
|
/* 34 */ array(11, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 35 */ array(11, 15, 17, 19, 30, 42, 43, 44, 45, 49, ),
|
2009-04-08 14:47:28 +00:00
|
|
|
/* 36 */ array(11, 15, 19, 30, 42, 43, 44, 45, 49, ),
|
2009-04-09 17:43:32 +00:00
|
|
|
/* 37 */ array(11, 15, 19, 30, 42, 43, 44, 45, 49, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 38 */ array(11, 15, 19, 30, 42, 43, 44, 45, 49, ),
|
2009-04-09 17:43:32 +00:00
|
|
|
/* 39 */ array(1, 3, 19, 42, 48, 49, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 40 */ array(1, 3, 19, 42, 48, 49, ),
|
|
|
|
/* 41 */ array(3, 19, 30, 49, ),
|
2009-04-14 09:04:15 +00:00
|
|
|
/* 42 */ array(15, 23, 25, 27, 28, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 43 */ array(3, 11, 19, 30, 49, ),
|
2009-04-14 09:04:15 +00:00
|
|
|
/* 44 */ array(17, 20, 28, ),
|
|
|
|
/* 45 */ array(19, 30, 49, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 46 */ array(17, 20, 28, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 47 */ array(22, 27, ),
|
2009-04-10 14:31:23 +00:00
|
|
|
/* 48 */ array(25, 27, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 49 */ array(19, 49, ),
|
|
|
|
/* 50 */ array(25, 27, ),
|
|
|
|
/* 51 */ array(1, 2, 3, 5, 6, 7, 10, 62, 64, 65, 66, ),
|
|
|
|
/* 52 */ array(16, 25, 31, 32, 33, 34, 35, 36, 37, 38, 61, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 53 */ array(25, 31, 32, 33, 34, 35, 36, 37, 38, 61, ),
|
|
|
|
/* 54 */ array(3, 26, 30, 46, 50, ),
|
|
|
|
/* 55 */ array(3, 14, 26, 30, ),
|
2009-04-14 09:04:15 +00:00
|
|
|
/* 56 */ array(3, 30, 50, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 57 */ array(1, 3, 43, ),
|
|
|
|
/* 58 */ array(1, 3, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 59 */ array(27, 28, ),
|
2009-04-10 12:33:51 +00:00
|
|
|
/* 60 */ array(3, 30, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 61 */ array(1, 3, ),
|
2009-04-14 09:04:15 +00:00
|
|
|
/* 62 */ array(1, 3, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 63 */ array(3, 30, ),
|
2009-04-14 09:04:15 +00:00
|
|
|
/* 64 */ array(3, 30, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 65 */ array(3, 30, ),
|
2009-04-14 09:04:15 +00:00
|
|
|
/* 66 */ array(28, ),
|
2009-04-10 12:33:51 +00:00
|
|
|
/* 67 */ array(28, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 68 */ array(27, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 69 */ array(24, 40, 41, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 70 */ array(16, 40, 41, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 71 */ array(4, 40, 41, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, ),
|
2009-03-22 16:09:05 +00:00
|
|
|
/* 72 */ array(40, 41, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, ),
|
|
|
|
/* 73 */ array(40, 41, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, ),
|
2009-04-08 14:47:28 +00:00
|
|
|
/* 74 */ array(40, 41, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, ),
|
|
|
|
/* 75 */ array(40, 41, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, ),
|
2009-04-09 15:53:52 +00:00
|
|
|
/* 76 */ array(40, 41, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, ),
|
2009-04-09 17:43:32 +00:00
|
|
|
/* 77 */ array(40, 41, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, ),
|
2009-04-10 12:33:51 +00:00
|
|
|
/* 78 */ array(40, 41, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 79 */ array(40, 41, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, ),
|
2009-04-10 12:33:51 +00:00
|
|
|
/* 80 */ array(12, 13, 18, 47, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 81 */ array(4, 12, 13, 47, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 82 */ array(12, 13, 47, ),
|
|
|
|
/* 83 */ array(1, 3, 9, ),
|
|
|
|
/* 84 */ array(3, 26, 30, ),
|
|
|
|
/* 85 */ array(1, 3, 67, ),
|
|
|
|
/* 86 */ array(1, 3, 43, ),
|
|
|
|
/* 87 */ array(1, 3, 63, ),
|
|
|
|
/* 88 */ array(12, 13, 47, ),
|
|
|
|
/* 89 */ array(4, 25, ),
|
|
|
|
/* 90 */ array(4, 25, ),
|
|
|
|
/* 91 */ array(25, 29, ),
|
|
|
|
/* 92 */ array(17, 20, ),
|
|
|
|
/* 93 */ array(4, 27, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 94 */ array(4, 27, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 95 */ array(17, 20, ),
|
|
|
|
/* 96 */ array(4, 27, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 97 */ array(4, 27, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 98 */ array(16, 25, ),
|
|
|
|
/* 99 */ array(4, 27, ),
|
|
|
|
/* 100 */ array(17, 20, ),
|
|
|
|
/* 101 */ array(19, 30, ),
|
|
|
|
/* 102 */ array(4, 25, ),
|
|
|
|
/* 103 */ array(4, 27, ),
|
|
|
|
/* 104 */ array(3, 15, ),
|
|
|
|
/* 105 */ array(21, 25, ),
|
|
|
|
/* 106 */ array(4, 25, ),
|
|
|
|
/* 107 */ array(17, 20, ),
|
|
|
|
/* 108 */ array(25, ),
|
|
|
|
/* 109 */ array(15, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 110 */ array(28, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 111 */ array(28, ),
|
|
|
|
/* 112 */ array(28, ),
|
2009-04-09 15:53:52 +00:00
|
|
|
/* 113 */ array(25, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 114 */ array(25, ),
|
|
|
|
/* 115 */ array(25, ),
|
|
|
|
/* 116 */ array(22, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 117 */ array(25, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 118 */ array(25, ),
|
|
|
|
/* 119 */ array(28, ),
|
|
|
|
/* 120 */ array(19, ),
|
2009-04-09 17:43:32 +00:00
|
|
|
/* 121 */ array(),
|
|
|
|
/* 122 */ array(),
|
|
|
|
/* 123 */ array(),
|
2009-04-10 12:33:51 +00:00
|
|
|
/* 124 */ array(),
|
2009-04-14 09:04:15 +00:00
|
|
|
/* 125 */ array(),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 126 */ array(15, 23, 26, ),
|
|
|
|
/* 127 */ array(15, 18, 23, ),
|
|
|
|
/* 128 */ array(15, 23, 29, ),
|
2009-04-09 17:43:32 +00:00
|
|
|
/* 129 */ array(15, 23, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 130 */ array(21, 24, ),
|
|
|
|
/* 131 */ array(30, 50, ),
|
|
|
|
/* 132 */ array(15, 23, ),
|
|
|
|
/* 133 */ array(18, 21, ),
|
2009-04-14 09:04:15 +00:00
|
|
|
/* 134 */ array(15, 23, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 135 */ array(30, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 136 */ array(4, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 137 */ array(30, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 138 */ array(22, ),
|
|
|
|
/* 139 */ array(30, ),
|
|
|
|
/* 140 */ array(26, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 141 */ array(26, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 142 */ array(4, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 143 */ array(30, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 144 */ array(30, ),
|
|
|
|
/* 145 */ array(19, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 146 */ array(4, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 147 */ array(20, ),
|
|
|
|
/* 148 */ array(11, ),
|
|
|
|
/* 149 */ array(48, ),
|
|
|
|
/* 150 */ array(49, ),
|
|
|
|
/* 151 */ array(30, ),
|
|
|
|
/* 152 */ array(4, ),
|
|
|
|
/* 153 */ array(30, ),
|
|
|
|
/* 154 */ array(30, ),
|
|
|
|
/* 155 */ array(8, ),
|
|
|
|
/* 156 */ array(16, ),
|
|
|
|
/* 157 */ array(48, ),
|
|
|
|
/* 158 */ array(16, ),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 159 */ array(30, ),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 160 */ array(15, ),
|
|
|
|
/* 161 */ array(16, ),
|
2009-03-22 16:09:05 +00:00
|
|
|
/* 162 */ array(),
|
|
|
|
/* 163 */ array(),
|
|
|
|
/* 164 */ array(),
|
|
|
|
/* 165 */ array(),
|
|
|
|
/* 166 */ array(),
|
|
|
|
/* 167 */ array(),
|
|
|
|
/* 168 */ array(),
|
|
|
|
/* 169 */ array(),
|
|
|
|
/* 170 */ array(),
|
|
|
|
/* 171 */ array(),
|
|
|
|
/* 172 */ array(),
|
|
|
|
/* 173 */ array(),
|
|
|
|
/* 174 */ array(),
|
|
|
|
/* 175 */ array(),
|
|
|
|
/* 176 */ array(),
|
|
|
|
/* 177 */ array(),
|
|
|
|
/* 178 */ array(),
|
|
|
|
/* 179 */ array(),
|
|
|
|
/* 180 */ array(),
|
|
|
|
/* 181 */ array(),
|
|
|
|
/* 182 */ array(),
|
|
|
|
/* 183 */ array(),
|
|
|
|
/* 184 */ array(),
|
|
|
|
/* 185 */ array(),
|
|
|
|
/* 186 */ array(),
|
|
|
|
/* 187 */ array(),
|
|
|
|
/* 188 */ array(),
|
|
|
|
/* 189 */ array(),
|
|
|
|
/* 190 */ array(),
|
|
|
|
/* 191 */ array(),
|
|
|
|
/* 192 */ array(),
|
|
|
|
/* 193 */ array(),
|
|
|
|
/* 194 */ array(),
|
|
|
|
/* 195 */ array(),
|
|
|
|
/* 196 */ array(),
|
|
|
|
/* 197 */ array(),
|
|
|
|
/* 198 */ array(),
|
|
|
|
/* 199 */ array(),
|
|
|
|
/* 200 */ array(),
|
|
|
|
/* 201 */ array(),
|
|
|
|
/* 202 */ array(),
|
|
|
|
/* 203 */ array(),
|
|
|
|
/* 204 */ array(),
|
|
|
|
/* 205 */ array(),
|
|
|
|
/* 206 */ array(),
|
|
|
|
/* 207 */ array(),
|
|
|
|
/* 208 */ array(),
|
|
|
|
/* 209 */ array(),
|
|
|
|
/* 210 */ array(),
|
|
|
|
/* 211 */ array(),
|
|
|
|
/* 212 */ array(),
|
|
|
|
/* 213 */ array(),
|
|
|
|
/* 214 */ array(),
|
|
|
|
/* 215 */ array(),
|
|
|
|
/* 216 */ array(),
|
|
|
|
/* 217 */ array(),
|
|
|
|
/* 218 */ array(),
|
|
|
|
/* 219 */ array(),
|
|
|
|
/* 220 */ array(),
|
|
|
|
/* 221 */ array(),
|
|
|
|
/* 222 */ array(),
|
|
|
|
/* 223 */ array(),
|
|
|
|
/* 224 */ array(),
|
|
|
|
/* 225 */ array(),
|
|
|
|
/* 226 */ array(),
|
|
|
|
/* 227 */ array(),
|
|
|
|
/* 228 */ array(),
|
|
|
|
/* 229 */ array(),
|
|
|
|
/* 230 */ array(),
|
|
|
|
/* 231 */ array(),
|
|
|
|
/* 232 */ array(),
|
|
|
|
/* 233 */ array(),
|
|
|
|
/* 234 */ array(),
|
|
|
|
/* 235 */ array(),
|
|
|
|
/* 236 */ array(),
|
|
|
|
/* 237 */ array(),
|
2009-03-26 14:08:43 +00:00
|
|
|
/* 238 */ array(),
|
|
|
|
/* 239 */ array(),
|
2009-04-03 15:59:40 +00:00
|
|
|
/* 240 */ array(),
|
|
|
|
/* 241 */ array(),
|
2009-04-08 14:47:28 +00:00
|
|
|
/* 242 */ array(),
|
|
|
|
/* 243 */ array(),
|
|
|
|
/* 244 */ array(),
|
|
|
|
/* 245 */ array(),
|
|
|
|
/* 246 */ array(),
|
|
|
|
/* 247 */ array(),
|
|
|
|
/* 248 */ array(),
|
|
|
|
/* 249 */ array(),
|
|
|
|
/* 250 */ array(),
|
|
|
|
/* 251 */ array(),
|
|
|
|
/* 252 */ array(),
|
2009-04-09 15:53:52 +00:00
|
|
|
/* 253 */ array(),
|
2009-04-09 17:43:32 +00:00
|
|
|
/* 254 */ array(),
|
|
|
|
/* 255 */ array(),
|
|
|
|
/* 256 */ array(),
|
|
|
|
/* 257 */ array(),
|
2009-04-10 12:33:51 +00:00
|
|
|
/* 258 */ array(),
|
2009-04-14 09:04:15 +00:00
|
|
|
/* 259 */ array(),
|
|
|
|
/* 260 */ array(),
|
2009-04-14 12:41:07 +00:00
|
|
|
/* 261 */ array(),
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 262 */ array(),
|
|
|
|
/* 263 */ array(),
|
|
|
|
/* 264 */ array(),
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
static public $yy_default = array(
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 0 */ 410, 410, 410, 410, 410, 410, 410, 410, 410, 410,
|
|
|
|
/* 10 */ 410, 410, 395, 357, 410, 357, 357, 357, 410, 410,
|
|
|
|
/* 20 */ 410, 410, 410, 410, 410, 410, 410, 410, 410, 410,
|
|
|
|
/* 30 */ 410, 410, 410, 410, 410, 410, 410, 410, 410, 410,
|
|
|
|
/* 40 */ 410, 410, 294, 410, 325, 410, 280, 294, 294, 410,
|
|
|
|
/* 50 */ 294, 265, 367, 367, 333, 410, 333, 410, 410, 294,
|
|
|
|
/* 60 */ 410, 410, 410, 410, 410, 410, 320, 321, 294, 410,
|
|
|
|
/* 70 */ 410, 410, 376, 373, 372, 380, 371, 381, 377, 365,
|
|
|
|
/* 80 */ 410, 410, 362, 410, 410, 410, 410, 410, 300, 410,
|
|
|
|
/* 90 */ 410, 396, 348, 410, 410, 351, 410, 410, 410, 410,
|
|
|
|
/* 100 */ 350, 410, 410, 410, 333, 356, 410, 349, 368, 333,
|
|
|
|
/* 110 */ 345, 326, 323, 298, 398, 288, 301, 295, 397, 322,
|
|
|
|
/* 120 */ 410, 333, 333, 361, 361, 333, 299, 410, 299, 299,
|
|
|
|
/* 130 */ 410, 410, 410, 410, 363, 410, 410, 410, 343, 410,
|
|
|
|
/* 140 */ 410, 327, 410, 410, 410, 410, 410, 310, 410, 410,
|
|
|
|
/* 150 */ 410, 410, 410, 410, 410, 410, 410, 410, 410, 410,
|
|
|
|
/* 160 */ 324, 410, 297, 289, 369, 370, 287, 296, 285, 266,
|
|
|
|
/* 170 */ 382, 284, 291, 290, 385, 375, 378, 374, 388, 364,
|
|
|
|
/* 180 */ 286, 387, 379, 386, 389, 366, 391, 383, 390, 384,
|
|
|
|
/* 190 */ 352, 311, 312, 313, 309, 304, 336, 302, 303, 314,
|
|
|
|
/* 200 */ 347, 399, 401, 402, 318, 317, 305, 316, 335, 334,
|
|
|
|
/* 210 */ 409, 407, 270, 408, 406, 267, 268, 269, 271, 272,
|
|
|
|
/* 220 */ 327, 329, 330, 332, 275, 273, 274, 403, 306, 343,
|
|
|
|
/* 230 */ 344, 331, 342, 328, 346, 315, 337, 341, 276, 279,
|
|
|
|
/* 240 */ 281, 282, 293, 292, 277, 278, 354, 340, 359, 392,
|
|
|
|
/* 250 */ 394, 358, 308, 360, 307, 393, 355, 400, 339, 338,
|
|
|
|
/* 260 */ 319, 405, 353, 404, 283,
|
2009-03-22 16:09:05 +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-04-14 09:04:15 +00:00
|
|
|
const YYNOCODE = 109;
|
2009-03-22 16:09:05 +00:00
|
|
|
const YYSTACKDEPTH = 100;
|
2009-04-18 14:46:29 +00:00
|
|
|
const YYNSTATE = 265;
|
|
|
|
const YYNRULE = 145;
|
2009-04-14 09:04:15 +00:00
|
|
|
const YYERRORSYMBOL = 68;
|
2009-03-22 16:09:05 +00:00
|
|
|
const YYERRSYMDT = 'yy0';
|
|
|
|
const YYFALLBACK = 1;
|
|
|
|
/** The next table maps tokens into fallback tokens. If a construct
|
|
|
|
* like the following:
|
|
|
|
*
|
|
|
|
* %fallback ID X Y Z.
|
|
|
|
*
|
|
|
|
* appears in the grammer, then ID becomes a fallback token for X, Y,
|
|
|
|
* and Z. Whenever one of the tokens X, Y, or Z is input to the parser
|
|
|
|
* but it does not parse, the type of the token is changed to ID and
|
|
|
|
* the parse is retried before an error is thrown.
|
|
|
|
*/
|
|
|
|
static public $yyFallback = array(
|
|
|
|
0, /* $ => nothing */
|
|
|
|
0, /* OTHER => nothing */
|
|
|
|
1, /* LDELSLASH => OTHER */
|
|
|
|
1, /* LDEL => OTHER */
|
|
|
|
1, /* RDEL => OTHER */
|
|
|
|
1, /* XML => OTHER */
|
|
|
|
1, /* PHP => OTHER */
|
|
|
|
1, /* SHORTTAGSTART => OTHER */
|
|
|
|
1, /* SHORTTAGEND => OTHER */
|
|
|
|
1, /* COMMENTEND => OTHER */
|
|
|
|
1, /* COMMENTSTART => OTHER */
|
2009-04-09 15:53:52 +00:00
|
|
|
1, /* INTEGER => OTHER */
|
2009-03-22 16:09:05 +00:00
|
|
|
1, /* MATH => OTHER */
|
|
|
|
1, /* UNIMATH => OTHER */
|
|
|
|
1, /* INCDEC => OTHER */
|
|
|
|
1, /* OPENP => OTHER */
|
|
|
|
1, /* CLOSEP => OTHER */
|
|
|
|
1, /* OPENB => OTHER */
|
|
|
|
1, /* CLOSEB => OTHER */
|
|
|
|
1, /* DOLLAR => OTHER */
|
|
|
|
1, /* DOT => OTHER */
|
|
|
|
1, /* COMMA => OTHER */
|
|
|
|
1, /* COLON => OTHER */
|
|
|
|
1, /* DOUBLECOLON => OTHER */
|
|
|
|
1, /* SEMICOLON => OTHER */
|
|
|
|
1, /* VERT => OTHER */
|
|
|
|
1, /* EQUAL => OTHER */
|
|
|
|
1, /* SPACE => OTHER */
|
|
|
|
1, /* PTR => OTHER */
|
|
|
|
1, /* APTR => OTHER */
|
|
|
|
1, /* ID => OTHER */
|
|
|
|
1, /* EQUALS => OTHER */
|
|
|
|
1, /* NOTEQUALS => OTHER */
|
|
|
|
1, /* GREATERTHAN => OTHER */
|
|
|
|
1, /* LESSTHAN => OTHER */
|
|
|
|
1, /* GREATEREQUAL => OTHER */
|
|
|
|
1, /* LESSEQUAL => OTHER */
|
|
|
|
1, /* IDENTITY => OTHER */
|
|
|
|
1, /* NONEIDENTITY => OTHER */
|
|
|
|
1, /* NOT => OTHER */
|
|
|
|
1, /* LAND => OTHER */
|
|
|
|
1, /* LOR => OTHER */
|
|
|
|
1, /* QUOTE => OTHER */
|
|
|
|
1, /* SINGLEQUOTE => OTHER */
|
|
|
|
1, /* BOOLEAN => OTHER */
|
|
|
|
1, /* NULL => OTHER */
|
|
|
|
1, /* IN => OTHER */
|
|
|
|
1, /* ANDSYM => OTHER */
|
|
|
|
1, /* BACKTICK => OTHER */
|
|
|
|
1, /* HATCH => OTHER */
|
|
|
|
1, /* AT => OTHER */
|
|
|
|
1, /* ISODD => OTHER */
|
|
|
|
1, /* ISNOTODD => OTHER */
|
|
|
|
1, /* ISEVEN => OTHER */
|
|
|
|
1, /* ISNOTEVEN => OTHER */
|
|
|
|
1, /* ISODDBY => OTHER */
|
|
|
|
1, /* ISNOTODDBY => OTHER */
|
|
|
|
1, /* ISEVENBY => OTHER */
|
|
|
|
1, /* ISNOTEVENBY => OTHER */
|
|
|
|
1, /* ISDIVBY => OTHER */
|
|
|
|
1, /* ISNOTDIVBY => OTHER */
|
2009-04-14 09:04:15 +00:00
|
|
|
1, /* ISIN => OTHER */
|
2009-03-22 16:09:05 +00:00
|
|
|
0, /* LITERALSTART => nothing */
|
|
|
|
0, /* LITERALEND => nothing */
|
|
|
|
0, /* LDELIMTAG => nothing */
|
|
|
|
0, /* RDELIMTAG => nothing */
|
|
|
|
0, /* PHPSTART => nothing */
|
|
|
|
0, /* PHPEND => nothing */
|
|
|
|
);
|
|
|
|
/**
|
|
|
|
* Turn parser tracing on by giving a stream to which to write the trace
|
|
|
|
* and a prompt to preface each trace message. Tracing is turned off
|
|
|
|
* by making either argument NULL
|
|
|
|
*
|
|
|
|
* Inputs:
|
|
|
|
*
|
|
|
|
* - A stream resource to which trace output should be written.
|
|
|
|
* If NULL, then tracing is turned off.
|
|
|
|
* - A prefix string written at the beginning of every
|
|
|
|
* line of trace output. If NULL, then tracing is
|
|
|
|
* turned off.
|
|
|
|
*
|
|
|
|
* Outputs:
|
|
|
|
*
|
|
|
|
* - None.
|
|
|
|
* @param resource
|
|
|
|
* @param string
|
|
|
|
*/
|
|
|
|
static function Trace($TraceFILE, $zTracePrompt)
|
|
|
|
{
|
|
|
|
if (!$TraceFILE) {
|
|
|
|
$zTracePrompt = 0;
|
|
|
|
} elseif (!$zTracePrompt) {
|
|
|
|
$TraceFILE = 0;
|
|
|
|
}
|
|
|
|
self::$yyTraceFILE = $TraceFILE;
|
|
|
|
self::$yyTracePrompt = $zTracePrompt;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Output debug information to output (php://output stream)
|
|
|
|
*/
|
|
|
|
static function PrintTrace()
|
|
|
|
{
|
|
|
|
self::$yyTraceFILE = fopen('php://output', 'w');
|
|
|
|
self::$yyTracePrompt = '<br>';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var resource|0
|
|
|
|
*/
|
|
|
|
static public $yyTraceFILE;
|
|
|
|
/**
|
|
|
|
* String to prepend to debug output
|
|
|
|
* @var string|0
|
|
|
|
*/
|
|
|
|
static public $yyTracePrompt;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $yyidx; /* Index of top element in stack */
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $yyerrcnt; /* Shifts left before out of the error */
|
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
public $yystack = array(); /* The parser's stack */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* For tracing shifts, the names of all terminals and nonterminals
|
|
|
|
* are required. The following table supplies these names
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
public $yyTokenName = array(
|
|
|
|
'$', 'OTHER', 'LDELSLASH', 'LDEL',
|
|
|
|
'RDEL', 'XML', 'PHP', 'SHORTTAGSTART',
|
2009-04-09 15:53:52 +00:00
|
|
|
'SHORTTAGEND', 'COMMENTEND', 'COMMENTSTART', 'INTEGER',
|
2009-03-22 16:09:05 +00:00
|
|
|
'MATH', 'UNIMATH', 'INCDEC', 'OPENP',
|
|
|
|
'CLOSEP', 'OPENB', 'CLOSEB', 'DOLLAR',
|
|
|
|
'DOT', 'COMMA', 'COLON', 'DOUBLECOLON',
|
|
|
|
'SEMICOLON', 'VERT', 'EQUAL', 'SPACE',
|
|
|
|
'PTR', 'APTR', 'ID', 'EQUALS',
|
|
|
|
'NOTEQUALS', 'GREATERTHAN', 'LESSTHAN', 'GREATEREQUAL',
|
|
|
|
'LESSEQUAL', 'IDENTITY', 'NONEIDENTITY', 'NOT',
|
|
|
|
'LAND', 'LOR', 'QUOTE', 'SINGLEQUOTE',
|
|
|
|
'BOOLEAN', 'NULL', 'IN', 'ANDSYM',
|
|
|
|
'BACKTICK', 'HATCH', 'AT', 'ISODD',
|
|
|
|
'ISNOTODD', 'ISEVEN', 'ISNOTEVEN', 'ISODDBY',
|
|
|
|
'ISNOTODDBY', 'ISEVENBY', 'ISNOTEVENBY', 'ISDIVBY',
|
2009-04-14 09:04:15 +00:00
|
|
|
'ISNOTDIVBY', 'ISIN', 'LITERALSTART', 'LITERALEND',
|
|
|
|
'LDELIMTAG', 'RDELIMTAG', 'PHPSTART', 'PHPEND',
|
|
|
|
'error', 'start', 'template', 'template_element',
|
|
|
|
'smartytag', 'text', 'variable', 'expr',
|
|
|
|
'attributes', 'varindexed', 'varvar', 'arrayindex',
|
|
|
|
'modifier', 'modparameters', 'ifexprs', 'statements',
|
|
|
|
'foraction', 'value', 'array', 'attribute',
|
|
|
|
'statement', 'exprs', 'math', 'function',
|
|
|
|
'doublequoted', 'method', 'params', 'objectchain',
|
|
|
|
'object', 'indexdef', 'varvarele', 'objectelement',
|
|
|
|
'modparameter', 'ifexpr', 'ifcond', 'lop',
|
|
|
|
'arrayelements', 'arrayelement', 'doublequotedcontent', 'textelement',
|
2009-03-22 16:09:05 +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",
|
|
|
|
/* 3 */ "template_element ::= smartytag",
|
|
|
|
/* 4 */ "template_element ::= COMMENTSTART text COMMENTEND",
|
|
|
|
/* 5 */ "template_element ::= LITERALSTART text LITERALEND",
|
|
|
|
/* 6 */ "template_element ::= LDELIMTAG",
|
|
|
|
/* 7 */ "template_element ::= RDELIMTAG",
|
|
|
|
/* 8 */ "template_element ::= PHP",
|
|
|
|
/* 9 */ "template_element ::= PHPSTART text PHPEND",
|
|
|
|
/* 10 */ "template_element ::= SHORTTAGSTART variable SHORTTAGEND",
|
|
|
|
/* 11 */ "template_element ::= XML",
|
|
|
|
/* 12 */ "template_element ::= OTHER",
|
|
|
|
/* 13 */ "smartytag ::= LDEL expr attributes RDEL",
|
2009-04-10 12:33:51 +00:00
|
|
|
/* 14 */ "smartytag ::= LDEL varindexed EQUAL expr attributes RDEL",
|
2009-04-05 14:49:27 +00:00
|
|
|
/* 15 */ "varindexed ::= DOLLAR varvar arrayindex",
|
|
|
|
/* 16 */ "smartytag ::= LDEL ID attributes RDEL",
|
|
|
|
/* 17 */ "smartytag ::= LDEL ID PTR ID attributes RDEL",
|
|
|
|
/* 18 */ "smartytag ::= LDEL ID modifier modparameters attributes RDEL",
|
|
|
|
/* 19 */ "smartytag ::= LDELSLASH ID attributes RDEL",
|
|
|
|
/* 20 */ "smartytag ::= LDELSLASH ID PTR ID RDEL",
|
|
|
|
/* 21 */ "smartytag ::= LDEL ID SPACE ifexprs RDEL",
|
|
|
|
/* 22 */ "smartytag ::= LDEL ID SPACE statements SEMICOLON ifexprs SEMICOLON DOLLAR varvar foraction RDEL",
|
|
|
|
/* 23 */ "foraction ::= EQUAL expr",
|
|
|
|
/* 24 */ "foraction ::= INCDEC",
|
|
|
|
/* 25 */ "smartytag ::= LDEL ID SPACE DOLLAR varvar IN value RDEL",
|
|
|
|
/* 26 */ "smartytag ::= LDEL ID SPACE DOLLAR varvar IN array RDEL",
|
|
|
|
/* 27 */ "attributes ::= attributes attribute",
|
|
|
|
/* 28 */ "attributes ::= attribute",
|
|
|
|
/* 29 */ "attributes ::=",
|
|
|
|
/* 30 */ "attribute ::= SPACE ID EQUAL expr",
|
|
|
|
/* 31 */ "statements ::= statement",
|
|
|
|
/* 32 */ "statements ::= statements COMMA statement",
|
|
|
|
/* 33 */ "statement ::= DOLLAR varvar EQUAL expr",
|
|
|
|
/* 34 */ "expr ::= ID",
|
|
|
|
/* 35 */ "expr ::= exprs",
|
|
|
|
/* 36 */ "expr ::= expr modifier modparameters",
|
|
|
|
/* 37 */ "exprs ::= array",
|
|
|
|
/* 38 */ "exprs ::= value",
|
|
|
|
/* 39 */ "exprs ::= UNIMATH value",
|
|
|
|
/* 40 */ "exprs ::= exprs math value",
|
|
|
|
/* 41 */ "exprs ::= exprs ANDSYM value",
|
|
|
|
/* 42 */ "math ::= UNIMATH",
|
|
|
|
/* 43 */ "math ::= MATH",
|
|
|
|
/* 44 */ "value ::= variable",
|
2009-04-09 15:53:52 +00:00
|
|
|
/* 45 */ "value ::= INTEGER",
|
|
|
|
/* 46 */ "value ::= INTEGER DOT INTEGER",
|
2009-04-05 14:49:27 +00:00
|
|
|
/* 47 */ "value ::= BOOLEAN",
|
|
|
|
/* 48 */ "value ::= NULL",
|
|
|
|
/* 49 */ "value ::= function",
|
|
|
|
/* 50 */ "value ::= OPENP expr CLOSEP",
|
|
|
|
/* 51 */ "value ::= SINGLEQUOTE text SINGLEQUOTE",
|
|
|
|
/* 52 */ "value ::= SINGLEQUOTE SINGLEQUOTE",
|
|
|
|
/* 53 */ "value ::= QUOTE doublequoted QUOTE",
|
|
|
|
/* 54 */ "value ::= QUOTE QUOTE",
|
|
|
|
/* 55 */ "value ::= ID DOUBLECOLON method",
|
|
|
|
/* 56 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP",
|
|
|
|
/* 57 */ "value ::= ID DOUBLECOLON method objectchain",
|
|
|
|
/* 58 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain",
|
|
|
|
/* 59 */ "value ::= ID DOUBLECOLON ID",
|
|
|
|
/* 60 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex",
|
|
|
|
/* 61 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain",
|
|
|
|
/* 62 */ "variable ::= varindexed",
|
|
|
|
/* 63 */ "variable ::= DOLLAR varvar AT ID",
|
|
|
|
/* 64 */ "variable ::= object",
|
2009-04-09 15:53:52 +00:00
|
|
|
/* 65 */ "variable ::= HATCH ID HATCH",
|
2009-04-18 14:46:29 +00:00
|
|
|
/* 66 */ "variable ::= DOLLAR ID COLON ID",
|
|
|
|
/* 67 */ "arrayindex ::= arrayindex indexdef",
|
|
|
|
/* 68 */ "arrayindex ::=",
|
|
|
|
/* 69 */ "indexdef ::= DOT ID",
|
|
|
|
/* 70 */ "indexdef ::= DOT INTEGER",
|
|
|
|
/* 71 */ "indexdef ::= DOT variable",
|
|
|
|
/* 72 */ "indexdef ::= DOT LDEL exprs RDEL",
|
|
|
|
/* 73 */ "indexdef ::= OPENB ID CLOSEB",
|
|
|
|
/* 74 */ "indexdef ::= OPENB exprs CLOSEB",
|
|
|
|
/* 75 */ "indexdef ::= OPENB CLOSEB",
|
|
|
|
/* 76 */ "varvar ::= varvarele",
|
|
|
|
/* 77 */ "varvar ::= varvar varvarele",
|
|
|
|
/* 78 */ "varvarele ::= ID",
|
|
|
|
/* 79 */ "varvarele ::= LDEL expr RDEL",
|
|
|
|
/* 80 */ "object ::= DOLLAR varvar arrayindex objectchain",
|
|
|
|
/* 81 */ "objectchain ::= objectelement",
|
|
|
|
/* 82 */ "objectchain ::= objectchain objectelement",
|
|
|
|
/* 83 */ "objectelement ::= PTR ID arrayindex",
|
|
|
|
/* 84 */ "objectelement ::= PTR variable arrayindex",
|
|
|
|
/* 85 */ "objectelement ::= PTR LDEL expr RDEL arrayindex",
|
|
|
|
/* 86 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex",
|
|
|
|
/* 87 */ "objectelement ::= PTR method",
|
|
|
|
/* 88 */ "function ::= ID OPENP params CLOSEP",
|
|
|
|
/* 89 */ "method ::= ID OPENP params CLOSEP",
|
|
|
|
/* 90 */ "params ::= expr COMMA params",
|
|
|
|
/* 91 */ "params ::= expr",
|
|
|
|
/* 92 */ "params ::=",
|
|
|
|
/* 93 */ "modifier ::= VERT AT ID",
|
|
|
|
/* 94 */ "modifier ::= VERT ID",
|
|
|
|
/* 95 */ "modparameters ::= modparameters modparameter",
|
|
|
|
/* 96 */ "modparameters ::=",
|
|
|
|
/* 97 */ "modparameter ::= COLON exprs",
|
|
|
|
/* 98 */ "modparameter ::= COLON ID",
|
|
|
|
/* 99 */ "ifexprs ::= ifexpr",
|
|
|
|
/* 100 */ "ifexprs ::= NOT ifexprs",
|
|
|
|
/* 101 */ "ifexprs ::= OPENP ifexprs CLOSEP",
|
|
|
|
/* 102 */ "ifexpr ::= expr",
|
|
|
|
/* 103 */ "ifexpr ::= expr ifcond expr",
|
|
|
|
/* 104 */ "ifexpr ::= expr ISIN array",
|
|
|
|
/* 105 */ "ifexpr ::= expr ISIN value",
|
|
|
|
/* 106 */ "ifexpr ::= ifexprs lop ifexprs",
|
|
|
|
/* 107 */ "ifexpr ::= ifexprs ISDIVBY ifexprs",
|
|
|
|
/* 108 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs",
|
|
|
|
/* 109 */ "ifexpr ::= ifexprs ISEVEN",
|
|
|
|
/* 110 */ "ifexpr ::= ifexprs ISNOTEVEN",
|
|
|
|
/* 111 */ "ifexpr ::= ifexprs ISEVENBY ifexprs",
|
|
|
|
/* 112 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs",
|
|
|
|
/* 113 */ "ifexpr ::= ifexprs ISODD",
|
|
|
|
/* 114 */ "ifexpr ::= ifexprs ISNOTODD",
|
|
|
|
/* 115 */ "ifexpr ::= ifexprs ISODDBY ifexprs",
|
|
|
|
/* 116 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs",
|
|
|
|
/* 117 */ "ifcond ::= EQUALS",
|
|
|
|
/* 118 */ "ifcond ::= NOTEQUALS",
|
|
|
|
/* 119 */ "ifcond ::= GREATERTHAN",
|
|
|
|
/* 120 */ "ifcond ::= LESSTHAN",
|
|
|
|
/* 121 */ "ifcond ::= GREATEREQUAL",
|
|
|
|
/* 122 */ "ifcond ::= LESSEQUAL",
|
|
|
|
/* 123 */ "ifcond ::= IDENTITY",
|
|
|
|
/* 124 */ "ifcond ::= NONEIDENTITY",
|
|
|
|
/* 125 */ "lop ::= LAND",
|
|
|
|
/* 126 */ "lop ::= LOR",
|
|
|
|
/* 127 */ "array ::= OPENB arrayelements CLOSEB",
|
|
|
|
/* 128 */ "arrayelements ::= arrayelement",
|
|
|
|
/* 129 */ "arrayelements ::= arrayelements COMMA arrayelement",
|
|
|
|
/* 130 */ "arrayelements ::=",
|
|
|
|
/* 131 */ "arrayelement ::= expr",
|
|
|
|
/* 132 */ "arrayelement ::= expr APTR expr",
|
|
|
|
/* 133 */ "arrayelement ::= ID APTR expr",
|
|
|
|
/* 134 */ "doublequoted ::= doublequoted doublequotedcontent",
|
|
|
|
/* 135 */ "doublequoted ::= doublequotedcontent",
|
|
|
|
/* 136 */ "doublequotedcontent ::= BACKTICK ID BACKTICK",
|
|
|
|
/* 137 */ "doublequotedcontent ::= BACKTICK variable BACKTICK",
|
|
|
|
/* 138 */ "doublequotedcontent ::= variable",
|
|
|
|
/* 139 */ "doublequotedcontent ::= LDEL expr RDEL",
|
|
|
|
/* 140 */ "doublequotedcontent ::= OTHER",
|
|
|
|
/* 141 */ "text ::= text textelement",
|
|
|
|
/* 142 */ "text ::= textelement",
|
|
|
|
/* 143 */ "textelement ::= OTHER",
|
|
|
|
/* 144 */ "textelement ::= LDEL",
|
2009-03-22 16:09:05 +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(
|
|
|
|
array( 'lhs' => 69, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 70, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 70, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 71, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 6 ),
|
|
|
|
array( 'lhs' => 77, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 6 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 6 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 5 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 5 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 11 ),
|
|
|
|
array( 'lhs' => 84, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 84, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 8 ),
|
|
|
|
array( 'lhs' => 72, 'rhs' => 8 ),
|
|
|
|
array( 'lhs' => 76, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 76, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 76, 'rhs' => 0 ),
|
|
|
|
array( 'lhs' => 87, 'rhs' => 4 ),
|
2009-04-05 14:49:27 +00:00
|
|
|
array( 'lhs' => 83, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 83, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 4 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
array( 'lhs' => 75, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 75, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 75, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 89, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 89, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 89, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 89, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 89, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 90, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 90, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 7 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 8 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 5 ),
|
|
|
|
array( 'lhs' => 85, 'rhs' => 6 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 4 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 74, 'rhs' => 3 ),
|
2009-04-18 14:46:29 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 4 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 79, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 79, 'rhs' => 0 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 78, 'rhs' => 1 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
array( 'lhs' => 78, 'rhs' => 2 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 98, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 98, 'rhs' => 3 ),
|
2009-04-08 14:47:28 +00:00
|
|
|
array( 'lhs' => 96, 'rhs' => 4 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 95, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 95, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 99, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 99, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 99, 'rhs' => 5 ),
|
|
|
|
array( 'lhs' => 99, 'rhs' => 6 ),
|
|
|
|
array( 'lhs' => 99, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 93, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 94, 'rhs' => 3 ),
|
2009-04-05 14:49:27 +00:00
|
|
|
array( 'lhs' => 94, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 94, 'rhs' => 0 ),
|
|
|
|
array( 'lhs' => 80, 'rhs' => 3 ),
|
2009-04-05 14:49:27 +00:00
|
|
|
array( 'lhs' => 80, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 81, 'rhs' => 2 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 81, 'rhs' => 0 ),
|
2009-04-05 14:49:27 +00:00
|
|
|
array( 'lhs' => 100, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 100, 'rhs' => 2 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 82, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 82, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 82, 'rhs' => 3 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
array( 'lhs' => 101, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +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 ),
|
2009-04-14 12:41:07 +00:00
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 101, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
2009-04-05 14:49:27 +00:00
|
|
|
array( 'lhs' => 102, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
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 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
array( 'lhs' => 103, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 86, 'rhs' => 3 ),
|
2009-03-22 16:09:05 +00:00
|
|
|
array( 'lhs' => 104, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 104, 'rhs' => 0 ),
|
2009-04-10 14:31:23 +00:00
|
|
|
array( 'lhs' => 105, 'rhs' => 1 ),
|
2009-04-05 14:49:27 +00:00
|
|
|
array( 'lhs' => 105, 'rhs' => 3 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 105, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 92, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 92, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 106, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 106, 'rhs' => 3 ),
|
2009-04-05 14:49:27 +00:00
|
|
|
array( 'lhs' => 106, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 106, 'rhs' => 3 ),
|
2009-04-05 14:49:27 +00:00
|
|
|
array( 'lhs' => 106, 'rhs' => 1 ),
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 73, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 73, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 1 ),
|
2009-03-22 16:09:05 +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-04-05 14:49:27 +00:00
|
|
|
38 => 0,
|
|
|
|
44 => 0,
|
2009-04-09 15:53:52 +00:00
|
|
|
45 => 0,
|
2009-03-22 16:09:05 +00:00
|
|
|
47 => 0,
|
|
|
|
48 => 0,
|
2009-04-05 14:49:27 +00:00
|
|
|
49 => 0,
|
|
|
|
64 => 0,
|
2009-04-18 14:46:29 +00:00
|
|
|
128 => 0,
|
2009-03-22 16:09:05 +00:00
|
|
|
1 => 1,
|
2009-04-05 14:49:27 +00:00
|
|
|
35 => 1,
|
|
|
|
37 => 1,
|
2009-03-22 16:09:05 +00:00
|
|
|
42 => 1,
|
2009-04-05 14:49:27 +00:00
|
|
|
43 => 1,
|
2009-04-18 14:46:29 +00:00
|
|
|
76 => 1,
|
|
|
|
99 => 1,
|
|
|
|
135 => 1,
|
2009-04-14 09:04:15 +00:00
|
|
|
142 => 1,
|
2009-04-14 12:41:07 +00:00
|
|
|
143 => 1,
|
2009-04-18 14:46:29 +00:00
|
|
|
144 => 1,
|
2009-03-22 16:09:05 +00:00
|
|
|
2 => 2,
|
2009-04-18 14:46:29 +00:00
|
|
|
67 => 2,
|
|
|
|
134 => 2,
|
|
|
|
141 => 2,
|
2009-03-22 16:09:05 +00:00
|
|
|
3 => 3,
|
|
|
|
4 => 4,
|
|
|
|
5 => 5,
|
|
|
|
6 => 6,
|
|
|
|
7 => 7,
|
|
|
|
8 => 8,
|
|
|
|
9 => 9,
|
|
|
|
10 => 10,
|
|
|
|
11 => 11,
|
|
|
|
12 => 12,
|
|
|
|
13 => 13,
|
|
|
|
14 => 14,
|
|
|
|
15 => 15,
|
|
|
|
16 => 16,
|
|
|
|
17 => 17,
|
|
|
|
18 => 18,
|
|
|
|
19 => 19,
|
|
|
|
20 => 20,
|
|
|
|
21 => 21,
|
|
|
|
22 => 22,
|
|
|
|
23 => 23,
|
|
|
|
24 => 24,
|
2009-04-05 14:49:27 +00:00
|
|
|
28 => 24,
|
2009-04-18 14:46:29 +00:00
|
|
|
91 => 24,
|
|
|
|
131 => 24,
|
2009-04-05 14:49:27 +00:00
|
|
|
25 => 25,
|
|
|
|
26 => 25,
|
|
|
|
27 => 27,
|
2009-03-22 16:09:05 +00:00
|
|
|
29 => 29,
|
|
|
|
30 => 30,
|
|
|
|
31 => 31,
|
|
|
|
32 => 32,
|
|
|
|
33 => 33,
|
2009-04-05 14:49:27 +00:00
|
|
|
34 => 34,
|
|
|
|
36 => 36,
|
2009-03-22 16:09:05 +00:00
|
|
|
39 => 39,
|
|
|
|
40 => 40,
|
2009-04-05 14:49:27 +00:00
|
|
|
41 => 41,
|
2009-04-09 15:53:52 +00:00
|
|
|
46 => 46,
|
2009-03-22 16:09:05 +00:00
|
|
|
50 => 50,
|
|
|
|
51 => 51,
|
|
|
|
52 => 52,
|
2009-04-05 14:49:27 +00:00
|
|
|
54 => 52,
|
|
|
|
53 => 53,
|
2009-03-22 16:09:05 +00:00
|
|
|
55 => 55,
|
|
|
|
56 => 56,
|
|
|
|
57 => 57,
|
|
|
|
58 => 58,
|
|
|
|
59 => 59,
|
|
|
|
60 => 60,
|
|
|
|
61 => 61,
|
|
|
|
62 => 62,
|
2009-04-05 14:49:27 +00:00
|
|
|
63 => 63,
|
2009-04-09 15:53:52 +00:00
|
|
|
65 => 65,
|
2009-04-18 14:46:29 +00:00
|
|
|
66 => 66,
|
2009-03-22 16:09:05 +00:00
|
|
|
68 => 68,
|
2009-04-18 14:46:29 +00:00
|
|
|
96 => 68,
|
2009-03-22 16:09:05 +00:00
|
|
|
69 => 69,
|
2009-04-03 15:59:40 +00:00
|
|
|
70 => 70,
|
2009-04-09 15:53:52 +00:00
|
|
|
71 => 71,
|
2009-04-08 14:47:28 +00:00
|
|
|
72 => 72,
|
2009-04-18 14:46:29 +00:00
|
|
|
74 => 72,
|
|
|
|
73 => 73,
|
|
|
|
75 => 75,
|
2009-03-22 16:09:05 +00:00
|
|
|
77 => 77,
|
|
|
|
78 => 78,
|
|
|
|
79 => 79,
|
2009-04-18 14:46:29 +00:00
|
|
|
101 => 79,
|
2009-03-22 16:09:05 +00:00
|
|
|
80 => 80,
|
|
|
|
81 => 81,
|
2009-04-03 15:59:40 +00:00
|
|
|
82 => 82,
|
2009-04-05 14:49:27 +00:00
|
|
|
83 => 83,
|
2009-04-08 14:47:28 +00:00
|
|
|
84 => 84,
|
2009-03-22 16:09:05 +00:00
|
|
|
85 => 85,
|
|
|
|
86 => 86,
|
2009-04-09 15:53:52 +00:00
|
|
|
87 => 87,
|
2009-04-05 14:49:27 +00:00
|
|
|
88 => 88,
|
2009-04-09 17:43:32 +00:00
|
|
|
89 => 89,
|
2009-04-18 14:46:29 +00:00
|
|
|
90 => 90,
|
2009-04-09 15:53:52 +00:00
|
|
|
92 => 92,
|
2009-04-05 14:49:27 +00:00
|
|
|
93 => 93,
|
2009-04-09 17:43:32 +00:00
|
|
|
94 => 94,
|
2009-04-18 14:46:29 +00:00
|
|
|
95 => 95,
|
2009-04-09 17:43:32 +00:00
|
|
|
97 => 97,
|
2009-04-18 14:46:29 +00:00
|
|
|
98 => 98,
|
|
|
|
100 => 100,
|
2009-04-09 17:43:32 +00:00
|
|
|
102 => 102,
|
2009-04-14 09:04:15 +00:00
|
|
|
103 => 103,
|
2009-04-18 14:46:29 +00:00
|
|
|
106 => 103,
|
2009-04-14 12:41:07 +00:00
|
|
|
104 => 104,
|
2009-04-18 14:46:29 +00:00
|
|
|
105 => 105,
|
2009-04-09 15:53:52 +00:00
|
|
|
107 => 107,
|
|
|
|
108 => 108,
|
2009-04-09 17:43:32 +00:00
|
|
|
109 => 109,
|
2009-04-18 14:46:29 +00:00
|
|
|
114 => 109,
|
2009-04-14 09:04:15 +00:00
|
|
|
110 => 110,
|
2009-04-18 14:46:29 +00:00
|
|
|
113 => 110,
|
2009-04-14 12:41:07 +00:00
|
|
|
111 => 111,
|
2009-04-18 14:46:29 +00:00
|
|
|
116 => 111,
|
|
|
|
112 => 112,
|
|
|
|
115 => 112,
|
2009-04-03 15:59:40 +00:00
|
|
|
117 => 117,
|
2009-04-05 14:49:27 +00:00
|
|
|
118 => 118,
|
2009-04-08 14:47:28 +00:00
|
|
|
119 => 119,
|
2009-04-03 15:59:40 +00:00
|
|
|
120 => 120,
|
2009-04-05 14:49:27 +00:00
|
|
|
121 => 121,
|
2009-04-09 15:53:52 +00:00
|
|
|
122 => 122,
|
2009-04-03 15:59:40 +00:00
|
|
|
123 => 123,
|
2009-04-09 17:43:32 +00:00
|
|
|
124 => 124,
|
2009-04-14 09:04:15 +00:00
|
|
|
125 => 125,
|
2009-04-14 12:41:07 +00:00
|
|
|
126 => 126,
|
2009-04-18 14:46:29 +00:00
|
|
|
127 => 127,
|
2009-04-14 12:41:07 +00:00
|
|
|
129 => 129,
|
2009-04-18 14:46:29 +00:00
|
|
|
130 => 130,
|
2009-04-14 12:41:07 +00:00
|
|
|
132 => 132,
|
2009-04-18 14:46:29 +00:00
|
|
|
133 => 133,
|
2009-04-09 15:53:52 +00:00
|
|
|
136 => 136,
|
2009-04-09 17:43:32 +00:00
|
|
|
137 => 137,
|
2009-04-14 09:04:15 +00:00
|
|
|
138 => 138,
|
2009-04-14 12:41:07 +00:00
|
|
|
139 => 139,
|
2009-04-18 14:46:29 +00:00
|
|
|
140 => 140,
|
2009-03-22 16:09:05 +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 73 "internal.templateparser.y"
|
|
|
|
function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1819 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 79 "internal.templateparser.y"
|
|
|
|
function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1822 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 81 "internal.templateparser.y"
|
|
|
|
function yy_r2(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1825 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 87 "internal.templateparser.y"
|
|
|
|
function yy_r3(){if ($this->compiler->has_code) {
|
|
|
|
$tmp =''; foreach ($this->prefix_code as $code) {$tmp.=$code;} $this->prefix_code=array();
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode($tmp.$this->yystack[$this->yyidx + 0]->minor, $this->compiler,$this->nocache,true);
|
|
|
|
} $this->nocache=false; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1831 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 100 "internal.templateparser.y"
|
|
|
|
function yy_r4(){ $this->_retvalue = ''; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1834 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 103 "internal.templateparser.y"
|
|
|
|
function yy_r5(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + -1]->minor, $this->compiler,false,false); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1837 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 105 "internal.templateparser.y"
|
|
|
|
function yy_r6(){$this->_retvalue = $this->cacher->processNocacheCode($this->smarty->left_delimiter, $this->compiler,false,false); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1840 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 107 "internal.templateparser.y"
|
|
|
|
function yy_r7(){$this->_retvalue = $this->cacher->processNocacheCode($this->smarty->right_delimiter, $this->compiler,false,false); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1843 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 109 "internal.templateparser.y"
|
|
|
|
function yy_r8(){if (!$this->template->security) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler, false,true);
|
|
|
|
} elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_QUOTE) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars($this->yystack[$this->yyidx + 0]->minor, ENT_QUOTES), $this->compiler, false, false);
|
|
|
|
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_PASSTHRU || $this->smarty->security_policy->php_handling == SMARTY_PHP_ALLOW) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '".$this->yystack[$this->yyidx + 0]->minor."';?>\n", $this->compiler, false, false);
|
|
|
|
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_REMOVE) {
|
|
|
|
$this->_retvalue = '';
|
|
|
|
} }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1854 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 119 "internal.templateparser.y"
|
|
|
|
function yy_r9(){if (!$this->template->security) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode('<?php '.$this->yystack[$this->yyidx + -1]->minor.' ?>', $this->compiler, false,true);
|
|
|
|
} elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_QUOTE) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('<?php '.$this->yystack[$this->yyidx + -1]->minor.' ?>', ENT_QUOTES), $this->compiler, false, false);
|
|
|
|
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_PASSTHRU || $this->smarty->security_policy->php_handling == SMARTY_PHP_ALLOW) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '<?php ".$this->yystack[$this->yyidx + -1]->minor." ?>';?>\n", $this->compiler, false, false);
|
|
|
|
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_REMOVE) {
|
|
|
|
$this->_retvalue = '';
|
|
|
|
} }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1865 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 129 "internal.templateparser.y"
|
|
|
|
function yy_r10(){if (!$this->template->security) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode($this->compiler->compileTag('print_expression',array('value'=>$this->yystack[$this->yyidx + -1]->minor)), $this->compiler, false,true);
|
|
|
|
} elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_QUOTE) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('<?php '.t.' ?>', ENT_QUOTES), $this->compiler, false, false);
|
|
|
|
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_PASSTHRU || $this->smarty->security_policy->php_handling == SMARTY_PHP_ALLOW) {
|
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '<?php ".t." ?>';?>\n", $this->compiler, false, false);
|
|
|
|
}elseif ($this->smarty->security_policy->php_handling == SMARTY_PHP_REMOVE) {
|
|
|
|
$this->_retvalue = '';
|
|
|
|
} }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1876 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 139 "internal.templateparser.y"
|
|
|
|
function yy_r11(){$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '".$this->yystack[$this->yyidx + 0]->minor."';?>\n", $this->compiler, true, true); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1879 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 141 "internal.templateparser.y"
|
|
|
|
function yy_r12(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false,false); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1882 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
#line 149 "internal.templateparser.y"
|
|
|
|
function yy_r13(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1885 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 151 "internal.templateparser.y"
|
2009-04-10 12:33:51 +00:00
|
|
|
function yy_r14(){ $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-04-18 14:46:29 +00:00
|
|
|
#line 1888 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 152 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r15(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1891 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 155 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r16(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,$this->yystack[$this->yyidx + -1]->minor); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1894 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 157 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
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-04-18 14:46:29 +00:00
|
|
|
#line 1897 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 159 "internal.templateparser.y"
|
2009-04-05 14:49:27 +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-03-22 16:09:05 +00:00
|
|
|
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -3]->minor[0],'modifier')) {
|
|
|
|
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->".$this->yystack[$this->yyidx + -3]->minor[0] . "(array(ob_get_clean()". $this->yystack[$this->yyidx + -2]->minor ."),'modifier');?>";
|
|
|
|
} else {
|
|
|
|
if ($this->yystack[$this->yyidx + -3]->minor[0] == 'isset' || $this->yystack[$this->yyidx + -3]->minor[0] == 'empty' || 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 .= $this->yystack[$this->yyidx + -3]->minor[0] . "(ob_get_clean()". $this->yystack[$this->yyidx + -2]->minor .");?>";
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -3]->minor[0] . "\"");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1912 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 173 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r19(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',$this->yystack[$this->yyidx + -1]->minor); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1915 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 175 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r20(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1918 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 177 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r21(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1921 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 179 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r22(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -9]->minor,array('start'=>$this->yystack[$this->yyidx + -7]->minor,'ifexp'=>$this->yystack[$this->yyidx + -5]->minor,'varloop'=>$this->yystack[$this->yyidx + -2]->minor,'loop'=>$this->yystack[$this->yyidx + -1]->minor)); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1924 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 180 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r23(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1927 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 181 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r24(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1930 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 184 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r25(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array('from'=>$this->yystack[$this->yyidx + -1]->minor,'item'=>$this->yystack[$this->yyidx + -3]->minor)); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1933 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 191 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r27(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1936 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 195 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r29(){ $this->_retvalue = array(); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1939 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 199 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r30(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1942 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 204 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r31(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1945 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 205 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r32(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1948 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 207 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r33(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1951 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 214 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r34(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1954 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 218 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r36(){
|
2009-03-22 16:09:05 +00:00
|
|
|
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -1]->minor[0],'modifier')) {
|
|
|
|
$this->_retvalue = "\$_smarty_tpl->smarty->plugin_handler->".$this->yystack[$this->yyidx + -1]->minor[0] . "(array(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor ."),'modifier')";
|
|
|
|
} else {
|
|
|
|
if ($this->yystack[$this->yyidx + -1]->minor[0] == 'isset' || $this->yystack[$this->yyidx + -1]->minor[0] == 'empty' || 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 = $this->yystack[$this->yyidx + -1]->minor[0] . "(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor .")";
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -1]->minor[0] . "\"");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1969 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 236 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r39(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1972 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 238 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r40(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1975 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 240 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r41(){ $this->_retvalue = '('. $this->yystack[$this->yyidx + -2]->minor . ').(' . $this->yystack[$this->yyidx + 0]->minor. ')'; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1978 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 257 "internal.templateparser.y"
|
2009-04-09 15:53:52 +00:00
|
|
|
function yy_r46(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1981 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 266 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r50(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1984 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 269 "internal.templateparser.y"
|
2009-04-09 15:53:52 +00:00
|
|
|
function yy_r51(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1987 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 270 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r52(){ $this->_retvalue = "''"; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1990 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 272 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r53(){ $this->_retvalue = "'".str_replace('\"','"',$this->yystack[$this->yyidx + -1]->minor)."'"; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1993 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 278 "internal.templateparser.y"
|
2009-04-09 15:53:52 +00:00
|
|
|
function yy_r55(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1996 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 279 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r56(){ $this->prefix_number++; $this->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -3]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -1]->minor .')'; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 1999 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 281 "internal.templateparser.y"
|
2009-04-09 15:53:52 +00:00
|
|
|
function yy_r57(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 2002 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 282 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r58(){ $this->prefix_number++; $this->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -4]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -7]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -2]->minor .')'.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 2005 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 284 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r59(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 2008 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 286 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r60(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 2011 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 288 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r61(){ $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; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 2014 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 297 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r62(){ if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag(trim($this->yystack[$this->yyidx + 0]->minor['var'],"'"),$this->yystack[$this->yyidx + 0]->minor['index']);} else {
|
|
|
|
$this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor['var'] .')->value'.$this->yystack[$this->yyidx + 0]->minor['index']; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor['var'],"'"))->nocache;} }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 2018 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 300 "internal.templateparser.y"
|
2009-04-05 14:49:27 +00:00
|
|
|
function yy_r63(){ $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"))->nocache; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 2021 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 304 "internal.templateparser.y"
|
2009-04-09 15:53:52 +00:00
|
|
|
function yy_r65(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; }
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 2024 "internal.templateparser.php"
|
|
|
|
#line 306 "internal.templateparser.y"
|
|
|
|
function yy_r66(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor. '\')'; }
|
|
|
|
#line 2027 "internal.templateparser.php"
|
|
|
|
#line 314 "internal.templateparser.y"
|
|
|
|
function yy_r68(){return; }
|
|
|
|
#line 2030 "internal.templateparser.php"
|
|
|
|
#line 318 "internal.templateparser.y"
|
|
|
|
function yy_r69(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; }
|
|
|
|
#line 2033 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 319 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r70(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; }
|
|
|
|
#line 2036 "internal.templateparser.php"
|
|
|
|
#line 321 "internal.templateparser.y"
|
|
|
|
function yy_r71(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; }
|
|
|
|
#line 2039 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 322 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r72(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; }
|
|
|
|
#line 2042 "internal.templateparser.php"
|
|
|
|
#line 324 "internal.templateparser.y"
|
|
|
|
function yy_r73(){ $this->_retvalue = '['.$this->compiler->compileTag('smarty','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; }
|
|
|
|
#line 2045 "internal.templateparser.php"
|
|
|
|
#line 328 "internal.templateparser.y"
|
|
|
|
function yy_r75(){$this->_retvalue = ''; }
|
|
|
|
#line 2048 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 336 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r77(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2051 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 338 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r78(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
|
|
|
|
#line 2054 "internal.templateparser.php"
|
|
|
|
#line 340 "internal.templateparser.y"
|
|
|
|
function yy_r79(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2057 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 345 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r80(){ $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->value'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"))->nocache; }
|
|
|
|
#line 2060 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 347 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r81(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2063 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 349 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r82(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2066 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 351 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r83(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2069 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 352 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r84(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
|
|
|
|
#line 2072 "internal.templateparser.php"
|
|
|
|
#line 353 "internal.templateparser.y"
|
|
|
|
function yy_r85(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
|
|
|
|
#line 2075 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 354 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r86(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
|
|
|
|
#line 2078 "internal.templateparser.php"
|
|
|
|
#line 356 "internal.templateparser.y"
|
|
|
|
function yy_r87(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2081 "internal.templateparser.php"
|
|
|
|
#line 362 "internal.templateparser.y"
|
|
|
|
function yy_r88(){if (!$this->template->security || $this->smarty->security_handler->isTrustedPhpFunction($this->yystack[$this->yyidx + -3]->minor, $this->compiler)) {
|
2009-03-26 14:08:43 +00:00
|
|
|
if ($this->yystack[$this->yyidx + -3]->minor == 'isset' || $this->yystack[$this->yyidx + -3]->minor == 'empty' || $this->yystack[$this->yyidx + -3]->minor == 'array' || is_callable($this->yystack[$this->yyidx + -3]->minor)) {
|
2009-03-22 16:09:05 +00:00
|
|
|
$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-04-18 14:46:29 +00:00
|
|
|
#line 2090 "internal.templateparser.php"
|
|
|
|
#line 373 "internal.templateparser.y"
|
|
|
|
function yy_r89(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
|
|
|
|
#line 2093 "internal.templateparser.php"
|
|
|
|
#line 377 "internal.templateparser.y"
|
|
|
|
function yy_r90(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2096 "internal.templateparser.php"
|
|
|
|
#line 381 "internal.templateparser.y"
|
|
|
|
function yy_r92(){ return; }
|
|
|
|
#line 2099 "internal.templateparser.php"
|
|
|
|
#line 386 "internal.templateparser.y"
|
|
|
|
function yy_r93(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,true); }
|
|
|
|
#line 2102 "internal.templateparser.php"
|
|
|
|
#line 387 "internal.templateparser.y"
|
|
|
|
function yy_r94(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,false); }
|
|
|
|
#line 2105 "internal.templateparser.php"
|
|
|
|
#line 394 "internal.templateparser.y"
|
|
|
|
function yy_r95(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2108 "internal.templateparser.php"
|
|
|
|
#line 398 "internal.templateparser.y"
|
|
|
|
function yy_r97(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2111 "internal.templateparser.php"
|
|
|
|
#line 399 "internal.templateparser.y"
|
|
|
|
function yy_r98(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
|
|
|
|
#line 2114 "internal.templateparser.php"
|
|
|
|
#line 406 "internal.templateparser.y"
|
|
|
|
function yy_r100(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2117 "internal.templateparser.php"
|
2009-04-14 09:04:15 +00:00
|
|
|
#line 411 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r102(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2120 "internal.templateparser.php"
|
2009-04-14 12:41:07 +00:00
|
|
|
#line 412 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r103(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2123 "internal.templateparser.php"
|
|
|
|
#line 413 "internal.templateparser.y"
|
|
|
|
function yy_r104(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2126 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 414 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r105(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2129 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 416 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r107(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2132 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 417 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r108(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2135 "internal.templateparser.php"
|
2009-04-14 09:04:15 +00:00
|
|
|
#line 418 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r109(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2138 "internal.templateparser.php"
|
2009-04-14 12:41:07 +00:00
|
|
|
#line 419 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r110(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2141 "internal.templateparser.php"
|
|
|
|
#line 420 "internal.templateparser.y"
|
|
|
|
function yy_r111(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2144 "internal.templateparser.php"
|
|
|
|
#line 421 "internal.templateparser.y"
|
|
|
|
function yy_r112(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2147 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 427 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r117(){$this->_retvalue = '=='; }
|
|
|
|
#line 2150 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 428 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r118(){$this->_retvalue = '!='; }
|
|
|
|
#line 2153 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 429 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r119(){$this->_retvalue = '>'; }
|
|
|
|
#line 2156 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 430 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r120(){$this->_retvalue = '<'; }
|
|
|
|
#line 2159 "internal.templateparser.php"
|
2009-04-14 09:04:15 +00:00
|
|
|
#line 431 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r121(){$this->_retvalue = '>='; }
|
|
|
|
#line 2162 "internal.templateparser.php"
|
2009-04-14 12:41:07 +00:00
|
|
|
#line 432 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r122(){$this->_retvalue = '<='; }
|
|
|
|
#line 2165 "internal.templateparser.php"
|
|
|
|
#line 433 "internal.templateparser.y"
|
|
|
|
function yy_r123(){$this->_retvalue = '==='; }
|
|
|
|
#line 2168 "internal.templateparser.php"
|
2009-04-14 09:04:15 +00:00
|
|
|
#line 434 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r124(){$this->_retvalue = '!=='; }
|
|
|
|
#line 2171 "internal.templateparser.php"
|
|
|
|
#line 436 "internal.templateparser.y"
|
|
|
|
function yy_r125(){$this->_retvalue = '&&'; }
|
|
|
|
#line 2174 "internal.templateparser.php"
|
|
|
|
#line 437 "internal.templateparser.y"
|
|
|
|
function yy_r126(){$this->_retvalue = '||'; }
|
|
|
|
#line 2177 "internal.templateparser.php"
|
2009-04-14 09:04:15 +00:00
|
|
|
#line 442 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r127(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2180 "internal.templateparser.php"
|
|
|
|
#line 444 "internal.templateparser.y"
|
|
|
|
function yy_r129(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2183 "internal.templateparser.php"
|
2009-04-14 09:04:15 +00:00
|
|
|
#line 445 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r130(){ return; }
|
|
|
|
#line 2186 "internal.templateparser.php"
|
|
|
|
#line 447 "internal.templateparser.y"
|
|
|
|
function yy_r132(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2189 "internal.templateparser.php"
|
|
|
|
#line 448 "internal.templateparser.y"
|
|
|
|
function yy_r133(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2192 "internal.templateparser.php"
|
2009-04-10 14:31:23 +00:00
|
|
|
#line 455 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r136(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; }
|
|
|
|
#line 2195 "internal.templateparser.php"
|
2009-04-14 09:04:15 +00:00
|
|
|
#line 456 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r137(){$this->_retvalue = "'.".$this->yystack[$this->yyidx + -1]->minor.".'"; }
|
|
|
|
#line 2198 "internal.templateparser.php"
|
2009-04-14 12:41:07 +00:00
|
|
|
#line 457 "internal.templateparser.y"
|
2009-04-18 14:46:29 +00:00
|
|
|
function yy_r138(){$this->_retvalue = "'.".$this->yystack[$this->yyidx + 0]->minor.".'"; }
|
|
|
|
#line 2201 "internal.templateparser.php"
|
|
|
|
#line 458 "internal.templateparser.y"
|
|
|
|
function yy_r139(){$this->_retvalue = "'.(".$this->yystack[$this->yyidx + -1]->minor.").'"; }
|
|
|
|
#line 2204 "internal.templateparser.php"
|
|
|
|
#line 459 "internal.templateparser.y"
|
|
|
|
function yy_r140(){$this->_retvalue = addcslashes($this->yystack[$this->yyidx + 0]->minor,"'"); }
|
|
|
|
#line 2207 "internal.templateparser.php"
|
2009-03-22 16:09:05 +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 55 "internal.templateparser.y"
|
|
|
|
|
|
|
|
$this->internalError = true;
|
|
|
|
$this->yymajor = $yymajor;
|
|
|
|
$this->compiler->trigger_template_error();
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 2325 "internal.templateparser.php"
|
2009-03-22 16:09:05 +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 47 "internal.templateparser.y"
|
|
|
|
|
|
|
|
$this->successful = !$this->internalError;
|
|
|
|
$this->internalError = false;
|
|
|
|
$this->retvalue = $this->_retvalue;
|
|
|
|
//echo $this->retvalue."\n\n";
|
2009-04-18 14:46:29 +00:00
|
|
|
#line 2350 "internal.templateparser.php"
|
2009-03-22 16:09:05 +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);
|
|
|
|
}
|
|
|
|
}
|