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->compiler = $compiler;
|
2009-08-08 17:28:23 +00:00
|
|
|
$this->smarty = $this->compiler->smarty;
|
2009-03-22 16:09:05 +00:00
|
|
|
$this->template = $this->compiler->template;
|
2009-09-29 16:23:35 +00:00
|
|
|
if ($this->template->security && isset($this->smarty->security_handler)) {
|
|
|
|
$this->sec_obj = $this->smarty->security_policy;
|
|
|
|
} else {
|
|
|
|
$this->sec_obj = $this->smarty;
|
|
|
|
}
|
2009-03-22 16:09:05 +00:00
|
|
|
$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;
|
|
|
|
}
|
|
|
|
|
2009-09-29 16:23:35 +00:00
|
|
|
#line 147 "internal.templateparser.php"
|
2009-03-22 16:09:05 +00:00
|
|
|
|
|
|
|
/* 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;
|
2009-09-26 23:06:57 +00:00
|
|
|
const TP_XML = 2;
|
|
|
|
const TP_PHP = 3;
|
|
|
|
const TP_SHORTTAGSTART = 4;
|
|
|
|
const TP_SHORTTAGEND = 5;
|
|
|
|
const TP_PHPSTART = 6;
|
|
|
|
const TP_PHPEND = 7;
|
2009-06-14 13:08:13 +00:00
|
|
|
const TP_COMMENTEND = 8;
|
|
|
|
const TP_COMMENTSTART = 9;
|
2009-09-26 23:06:57 +00:00
|
|
|
const TP_SINGLEQUOTE = 10;
|
|
|
|
const TP_LITERALSTART = 11;
|
|
|
|
const TP_LITERALEND = 12;
|
|
|
|
const TP_LDELIMTAG = 13;
|
|
|
|
const TP_RDELIMTAG = 14;
|
|
|
|
const TP_LDELSLASH = 15;
|
|
|
|
const TP_LDEL = 16;
|
|
|
|
const TP_RDEL = 17;
|
|
|
|
const TP_ISIN = 18;
|
|
|
|
const TP_AS = 19;
|
|
|
|
const TP_BOOLEAN = 20;
|
|
|
|
const TP_NULL = 21;
|
|
|
|
const TP_IDENTITY = 22;
|
|
|
|
const TP_NONEIDENTITY = 23;
|
|
|
|
const TP_EQUALS = 24;
|
|
|
|
const TP_NOTEQUALS = 25;
|
|
|
|
const TP_GREATEREQUAL = 26;
|
|
|
|
const TP_LESSEQUAL = 27;
|
|
|
|
const TP_GREATERTHAN = 28;
|
|
|
|
const TP_LESSTHAN = 29;
|
|
|
|
const TP_NOT = 30;
|
|
|
|
const TP_LAND = 31;
|
|
|
|
const TP_LOR = 32;
|
|
|
|
const TP_LXOR = 33;
|
|
|
|
const TP_ISODDBY = 34;
|
|
|
|
const TP_ISNOTODDBY = 35;
|
|
|
|
const TP_ISODD = 36;
|
|
|
|
const TP_ISNOTODD = 37;
|
|
|
|
const TP_ISEVENBY = 38;
|
|
|
|
const TP_ISNOTEVENBY = 39;
|
|
|
|
const TP_ISEVEN = 40;
|
|
|
|
const TP_ISNOTEVEN = 41;
|
|
|
|
const TP_ISDIVBY = 42;
|
|
|
|
const TP_ISNOTDIVBY = 43;
|
|
|
|
const TP_OPENP = 44;
|
|
|
|
const TP_CLOSEP = 45;
|
|
|
|
const TP_OPENB = 46;
|
|
|
|
const TP_CLOSEB = 47;
|
|
|
|
const TP_PTR = 48;
|
|
|
|
const TP_APTR = 49;
|
|
|
|
const TP_EQUAL = 50;
|
|
|
|
const TP_INTEGER = 51;
|
|
|
|
const TP_INCDEC = 52;
|
|
|
|
const TP_UNIMATH = 53;
|
|
|
|
const TP_MATH = 54;
|
|
|
|
const TP_DOLLAR = 55;
|
|
|
|
const TP_COLON = 56;
|
|
|
|
const TP_DOUBLECOLON = 57;
|
|
|
|
const TP_SEMICOLON = 58;
|
|
|
|
const TP_AT = 59;
|
|
|
|
const TP_HATCH = 60;
|
|
|
|
const TP_QUOTE = 61;
|
|
|
|
const TP_BACKTICK = 62;
|
|
|
|
const TP_VERT = 63;
|
|
|
|
const TP_DOT = 64;
|
|
|
|
const TP_COMMA = 65;
|
|
|
|
const TP_ANDSYM = 66;
|
|
|
|
const TP_ID = 67;
|
|
|
|
const TP_SPACE = 68;
|
2009-10-05 18:55:22 +00:00
|
|
|
const TP_INSTANCEOF = 69;
|
|
|
|
const YY_NO_ACTION = 448;
|
|
|
|
const YY_ACCEPT_ACTION = 447;
|
|
|
|
const YY_ERROR_ACTION = 446;
|
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-10-13 19:44:38 +00:00
|
|
|
const YY_SZ_ACTTAB = 933;
|
2009-03-22 16:09:05 +00:00
|
|
|
static public $yy_action = array(
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 0 */ 252, 258, 259, 3, 4, 250, 251, 5, 2, 254,
|
|
|
|
/* 10 */ 253, 11, 10, 27, 252, 258, 259, 3, 4, 250,
|
|
|
|
/* 20 */ 251, 5, 2, 254, 253, 11, 10, 165, 265, 56,
|
|
|
|
/* 30 */ 261, 218, 56, 27, 71, 20, 55, 27, 20, 239,
|
|
|
|
/* 40 */ 240, 171, 239, 240, 189, 185, 57, 155, 187, 6,
|
|
|
|
/* 50 */ 58, 272, 66, 242, 59, 44, 200, 201, 113, 19,
|
|
|
|
/* 60 */ 32, 181, 176, 8, 260, 12, 24, 21, 12, 199,
|
|
|
|
/* 70 */ 164, 21, 37, 164, 61, 37, 178, 58, 42, 44,
|
|
|
|
/* 80 */ 52, 56, 44, 52, 260, 153, 144, 20, 260, 139,
|
|
|
|
/* 90 */ 182, 239, 240, 71, 135, 252, 258, 259, 3, 4,
|
|
|
|
/* 100 */ 250, 251, 5, 2, 254, 253, 11, 10, 202, 447,
|
|
|
|
/* 110 */ 85, 186, 242, 67, 56, 24, 15, 56, 27, 28,
|
|
|
|
/* 120 */ 20, 30, 164, 20, 239, 240, 58, 239, 240, 105,
|
|
|
|
/* 130 */ 212, 44, 52, 147, 6, 36, 56, 193, 145, 274,
|
|
|
|
/* 140 */ 147, 194, 20, 184, 210, 213, 239, 240, 8, 238,
|
|
|
|
/* 150 */ 12, 24, 29, 12, 264, 164, 38, 37, 164, 63,
|
|
|
|
/* 160 */ 37, 225, 61, 111, 44, 52, 136, 44, 52, 260,
|
|
|
|
/* 170 */ 24, 138, 12, 169, 41, 224, 71, 164, 56, 37,
|
|
|
|
/* 180 */ 232, 61, 103, 71, 20, 147, 44, 52, 239, 240,
|
|
|
|
/* 190 */ 181, 234, 270, 144, 93, 242, 246, 56, 269, 175,
|
|
|
|
/* 200 */ 56, 212, 242, 20, 256, 206, 20, 239, 240, 212,
|
|
|
|
/* 210 */ 239, 240, 24, 15, 12, 58, 213, 159, 216, 164,
|
|
|
|
/* 220 */ 44, 37, 147, 61, 213, 181, 105, 183, 44, 52,
|
|
|
|
/* 230 */ 207, 24, 147, 12, 24, 41, 12, 1, 164, 15,
|
|
|
|
/* 240 */ 37, 164, 58, 37, 147, 58, 212, 44, 52, 56,
|
|
|
|
/* 250 */ 44, 52, 105, 319, 148, 20, 9, 146, 26, 239,
|
|
|
|
/* 260 */ 240, 213, 232, 128, 51, 71, 184, 210, 79, 166,
|
|
|
|
/* 270 */ 143, 56, 317, 142, 167, 152, 93, 20, 246, 38,
|
|
|
|
/* 280 */ 15, 239, 240, 24, 242, 12, 25, 168, 15, 257,
|
|
|
|
/* 290 */ 164, 191, 37, 105, 61, 134, 212, 58, 71, 44,
|
|
|
|
/* 300 */ 52, 105, 44, 190, 319, 24, 140, 12, 174, 102,
|
|
|
|
/* 310 */ 31, 213, 164, 197, 27, 131, 58, 242, 136, 271,
|
|
|
|
/* 320 */ 133, 44, 52, 181, 372, 35, 223, 224, 148, 211,
|
|
|
|
/* 330 */ 267, 282, 281, 280, 268, 278, 279, 14, 17, 32,
|
|
|
|
/* 340 */ 35, 40, 184, 210, 211, 267, 282, 281, 280, 268,
|
|
|
|
/* 350 */ 278, 279, 256, 117, 118, 38, 244, 42, 241, 241,
|
|
|
|
/* 360 */ 232, 151, 97, 71, 266, 137, 147, 372, 33, 249,
|
|
|
|
/* 370 */ 147, 234, 270, 147, 93, 372, 246, 232, 263, 147,
|
|
|
|
/* 380 */ 71, 16, 242, 125, 104, 147, 132, 205, 284, 283,
|
|
|
|
/* 390 */ 150, 277, 222, 246, 232, 224, 51, 71, 65, 242,
|
|
|
|
/* 400 */ 81, 123, 13, 217, 108, 170, 270, 58, 93, 27,
|
|
|
|
/* 410 */ 246, 232, 44, 51, 71, 92, 242, 84, 98, 229,
|
|
|
|
/* 420 */ 121, 257, 170, 270, 56, 93, 106, 246, 232, 263,
|
|
|
|
/* 430 */ 20, 71, 224, 242, 239, 240, 48, 136, 257, 275,
|
|
|
|
/* 440 */ 232, 149, 51, 71, 246, 27, 76, 209, 43, 220,
|
|
|
|
/* 450 */ 242, 170, 270, 136, 93, 230, 246, 101, 24, 147,
|
|
|
|
/* 460 */ 141, 86, 242, 36, 181, 164, 127, 257, 232, 58,
|
|
|
|
/* 470 */ 103, 71, 272, 226, 44, 52, 208, 22, 224, 234,
|
|
|
|
/* 480 */ 270, 148, 93, 232, 246, 51, 71, 285, 178, 77,
|
|
|
|
/* 490 */ 242, 235, 212, 91, 170, 270, 260, 93, 96, 246,
|
|
|
|
/* 500 */ 232, 214, 51, 71, 53, 242, 83, 213, 272, 94,
|
|
|
|
/* 510 */ 257, 170, 270, 272, 93, 40, 246, 23, 232, 272,
|
|
|
|
/* 520 */ 51, 71, 242, 119, 80, 126, 90, 257, 241, 170,
|
|
|
|
/* 530 */ 270, 196, 93, 156, 246, 177, 232, 224, 50, 71,
|
|
|
|
/* 540 */ 242, 17, 75, 220, 95, 257, 232, 170, 270, 71,
|
|
|
|
/* 550 */ 93, 54, 246, 232, 192, 51, 71, 231, 242, 78,
|
|
|
|
/* 560 */ 220, 34, 246, 257, 170, 270, 272, 93, 242, 246,
|
|
|
|
/* 570 */ 120, 262, 116, 181, 62, 242, 188, 241, 220, 180,
|
|
|
|
/* 580 */ 257, 232, 224, 51, 71, 245, 198, 74, 232, 195,
|
|
|
|
/* 590 */ 51, 71, 170, 270, 82, 93, 307, 246, 68, 170,
|
|
|
|
/* 600 */ 270, 162, 93, 242, 246, 25, 73, 233, 257, 243,
|
|
|
|
/* 610 */ 242, 160, 248, 237, 64, 257, 46, 60, 122, 273,
|
|
|
|
/* 620 */ 72, 157, 204, 215, 228, 234, 270, 203, 93, 263,
|
|
|
|
/* 630 */ 246, 39, 161, 244, 163, 70, 242, 64, 7, 47,
|
|
|
|
/* 640 */ 60, 232, 100, 40, 71, 227, 236, 18, 234, 270,
|
|
|
|
/* 650 */ 247, 93, 255, 246, 34, 173, 45, 246, 232, 242,
|
|
|
|
/* 660 */ 97, 71, 235, 242, 69, 232, 273, 103, 71, 234,
|
|
|
|
/* 670 */ 270, 273, 93, 273, 246, 273, 234, 270, 273, 93,
|
|
|
|
/* 680 */ 242, 246, 273, 273, 179, 172, 372, 242, 64, 276,
|
|
|
|
/* 690 */ 47, 60, 273, 273, 273, 232, 273, 103, 71, 234,
|
|
|
|
/* 700 */ 270, 273, 93, 273, 246, 273, 234, 270, 205, 93,
|
|
|
|
/* 710 */ 242, 246, 273, 273, 154, 273, 372, 242, 372, 232,
|
|
|
|
/* 720 */ 372, 273, 71, 13, 273, 273, 158, 273, 273, 372,
|
|
|
|
/* 730 */ 219, 273, 273, 273, 372, 246, 232, 372, 129, 71,
|
|
|
|
/* 740 */ 273, 242, 273, 232, 273, 130, 71, 234, 270, 273,
|
|
|
|
/* 750 */ 93, 273, 246, 273, 234, 270, 273, 93, 242, 246,
|
|
|
|
/* 760 */ 273, 273, 149, 273, 232, 242, 49, 71, 221, 43,
|
|
|
|
/* 770 */ 273, 273, 273, 273, 273, 234, 270, 273, 93, 273,
|
|
|
|
/* 780 */ 246, 273, 232, 273, 112, 71, 242, 273, 273, 232,
|
|
|
|
/* 790 */ 273, 114, 71, 234, 270, 273, 93, 273, 246, 273,
|
|
|
|
/* 800 */ 234, 270, 273, 93, 242, 246, 273, 232, 273, 99,
|
|
|
|
/* 810 */ 71, 242, 273, 273, 232, 273, 124, 71, 234, 270,
|
|
|
|
/* 820 */ 273, 93, 273, 246, 273, 234, 270, 273, 93, 242,
|
|
|
|
/* 830 */ 246, 273, 232, 273, 115, 71, 242, 273, 273, 273,
|
|
|
|
/* 840 */ 273, 273, 273, 234, 270, 273, 93, 273, 246, 273,
|
|
|
|
/* 850 */ 273, 273, 273, 232, 242, 109, 71, 273, 273, 273,
|
|
|
|
/* 860 */ 232, 273, 110, 71, 234, 270, 273, 93, 273, 246,
|
|
|
|
/* 870 */ 273, 234, 270, 273, 93, 242, 246, 273, 232, 273,
|
|
|
|
/* 880 */ 107, 71, 242, 273, 273, 232, 273, 273, 71, 234,
|
|
|
|
/* 890 */ 270, 273, 93, 273, 246, 273, 234, 270, 273, 87,
|
|
|
|
/* 900 */ 242, 246, 273, 232, 273, 273, 71, 242, 273, 273,
|
|
|
|
/* 910 */ 232, 273, 273, 71, 234, 270, 273, 88, 273, 246,
|
|
|
|
/* 920 */ 273, 234, 270, 273, 89, 242, 246, 273, 273, 273,
|
|
|
|
/* 930 */ 273, 273, 242,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
static public $yy_lookahead = array(
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 0 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
|
|
|
|
/* 10 */ 41, 42, 43, 16, 31, 32, 33, 34, 35, 36,
|
|
|
|
/* 20 */ 37, 38, 39, 40, 41, 42, 43, 58, 45, 10,
|
|
|
|
/* 30 */ 84, 77, 10, 16, 80, 16, 86, 16, 16, 20,
|
|
|
|
/* 40 */ 21, 48, 20, 21, 1, 2, 3, 4, 5, 30,
|
|
|
|
/* 50 */ 55, 101, 9, 99, 11, 60, 13, 14, 15, 16,
|
|
|
|
/* 60 */ 46, 68, 67, 44, 67, 46, 44, 50, 46, 47,
|
|
|
|
/* 70 */ 51, 50, 53, 51, 55, 53, 59, 55, 64, 60,
|
|
|
|
/* 80 */ 61, 10, 60, 61, 67, 19, 67, 16, 67, 67,
|
|
|
|
/* 90 */ 77, 20, 21, 80, 17, 31, 32, 33, 34, 35,
|
|
|
|
/* 100 */ 36, 37, 38, 39, 40, 41, 42, 43, 1, 71,
|
|
|
|
/* 110 */ 72, 73, 99, 55, 10, 44, 44, 10, 16, 49,
|
|
|
|
/* 120 */ 16, 49, 51, 16, 20, 21, 55, 20, 21, 57,
|
|
|
|
/* 130 */ 1, 60, 61, 63, 30, 69, 10, 47, 67, 17,
|
|
|
|
/* 140 */ 63, 12, 16, 53, 54, 16, 20, 21, 44, 90,
|
|
|
|
/* 150 */ 46, 44, 50, 46, 52, 51, 66, 53, 51, 55,
|
|
|
|
/* 160 */ 53, 1, 55, 78, 60, 61, 81, 60, 61, 67,
|
|
|
|
/* 170 */ 44, 67, 46, 77, 67, 90, 80, 51, 10, 53,
|
|
|
|
/* 180 */ 77, 55, 79, 80, 16, 63, 60, 61, 20, 21,
|
|
|
|
/* 190 */ 68, 88, 89, 67, 91, 99, 93, 10, 17, 96,
|
|
|
|
/* 200 */ 10, 1, 99, 16, 45, 5, 16, 20, 21, 1,
|
|
|
|
/* 210 */ 20, 21, 44, 44, 46, 55, 16, 48, 10, 51,
|
|
|
|
/* 220 */ 60, 53, 63, 55, 16, 68, 57, 67, 60, 61,
|
|
|
|
/* 230 */ 17, 44, 63, 46, 44, 67, 46, 68, 51, 44,
|
|
|
|
/* 240 */ 53, 51, 55, 53, 63, 55, 1, 60, 61, 10,
|
|
|
|
/* 250 */ 60, 61, 57, 17, 67, 16, 58, 67, 16, 20,
|
|
|
|
/* 260 */ 21, 16, 77, 65, 79, 80, 53, 54, 83, 84,
|
|
|
|
/* 270 */ 85, 10, 17, 88, 89, 55, 91, 16, 93, 66,
|
|
|
|
/* 280 */ 44, 20, 21, 44, 99, 46, 50, 67, 44, 104,
|
|
|
|
/* 290 */ 51, 47, 53, 57, 55, 77, 1, 55, 80, 60,
|
|
|
|
/* 300 */ 61, 57, 60, 8, 68, 44, 67, 46, 64, 67,
|
|
|
|
/* 310 */ 16, 16, 51, 95, 16, 78, 55, 99, 81, 47,
|
|
|
|
/* 320 */ 17, 60, 61, 68, 16, 18, 1, 90, 67, 22,
|
|
|
|
/* 330 */ 23, 24, 25, 26, 27, 28, 29, 65, 44, 46,
|
|
|
|
/* 340 */ 18, 48, 53, 54, 22, 23, 24, 25, 26, 27,
|
|
|
|
/* 350 */ 28, 29, 45, 97, 97, 66, 100, 64, 102, 102,
|
|
|
|
/* 360 */ 77, 59, 79, 80, 87, 67, 63, 59, 16, 67,
|
|
|
|
/* 370 */ 63, 88, 89, 63, 91, 67, 93, 77, 101, 63,
|
|
|
|
/* 380 */ 80, 65, 99, 78, 98, 63, 81, 1, 88, 89,
|
|
|
|
/* 390 */ 107, 108, 67, 93, 77, 90, 79, 80, 55, 99,
|
|
|
|
/* 400 */ 83, 82, 16, 51, 98, 88, 89, 55, 91, 16,
|
|
|
|
/* 410 */ 93, 77, 60, 79, 80, 76, 99, 83, 98, 67,
|
|
|
|
/* 420 */ 78, 104, 88, 89, 10, 91, 98, 93, 77, 101,
|
|
|
|
/* 430 */ 16, 80, 90, 99, 20, 21, 82, 81, 104, 88,
|
|
|
|
/* 440 */ 77, 55, 79, 80, 93, 16, 83, 61, 62, 110,
|
|
|
|
/* 450 */ 99, 88, 89, 81, 91, 60, 93, 86, 44, 63,
|
|
|
|
/* 460 */ 67, 94, 99, 69, 68, 51, 78, 104, 77, 55,
|
|
|
|
/* 470 */ 79, 80, 101, 62, 60, 61, 109, 105, 90, 88,
|
|
|
|
/* 480 */ 89, 67, 91, 77, 93, 79, 80, 96, 59, 83,
|
|
|
|
/* 490 */ 99, 103, 1, 86, 88, 89, 67, 91, 86, 93,
|
|
|
|
/* 500 */ 77, 10, 79, 80, 86, 99, 83, 16, 101, 76,
|
|
|
|
/* 510 */ 104, 88, 89, 101, 91, 48, 93, 50, 77, 101,
|
|
|
|
/* 520 */ 79, 80, 99, 97, 83, 78, 76, 104, 102, 88,
|
|
|
|
/* 530 */ 89, 47, 91, 67, 93, 19, 77, 90, 79, 80,
|
|
|
|
/* 540 */ 99, 44, 83, 110, 76, 104, 77, 88, 89, 80,
|
|
|
|
/* 550 */ 91, 86, 93, 77, 67, 79, 80, 88, 99, 83,
|
|
|
|
/* 560 */ 110, 56, 93, 104, 88, 89, 101, 91, 99, 93,
|
|
|
|
/* 570 */ 78, 17, 97, 68, 55, 99, 45, 102, 110, 67,
|
|
|
|
/* 580 */ 104, 77, 90, 79, 80, 67, 45, 83, 77, 17,
|
|
|
|
/* 590 */ 79, 80, 88, 89, 83, 91, 17, 93, 55, 88,
|
|
|
|
/* 600 */ 89, 55, 91, 99, 93, 50, 45, 51, 104, 60,
|
|
|
|
/* 610 */ 99, 74, 67, 17, 77, 104, 79, 80, 67, 67,
|
|
|
|
/* 620 */ 67, 64, 17, 110, 62, 88, 89, 5, 91, 101,
|
|
|
|
/* 630 */ 93, 92, 67, 100, 74, 95, 99, 77, 106, 79,
|
|
|
|
/* 640 */ 80, 77, 98, 48, 80, 109, 73, 44, 88, 89,
|
|
|
|
/* 650 */ 102, 91, 88, 93, 56, 75, 98, 93, 77, 99,
|
|
|
|
/* 660 */ 79, 80, 103, 99, 67, 77, 111, 79, 80, 88,
|
|
|
|
/* 670 */ 89, 111, 91, 111, 93, 111, 88, 89, 111, 91,
|
|
|
|
/* 680 */ 99, 93, 111, 111, 96, 74, 16, 99, 77, 108,
|
|
|
|
/* 690 */ 79, 80, 111, 111, 111, 77, 111, 79, 80, 88,
|
|
|
|
/* 700 */ 89, 111, 91, 111, 93, 111, 88, 89, 1, 91,
|
|
|
|
/* 710 */ 99, 93, 111, 111, 96, 111, 46, 99, 48, 77,
|
|
|
|
/* 720 */ 50, 111, 80, 16, 111, 111, 56, 111, 111, 59,
|
|
|
|
/* 730 */ 88, 111, 111, 111, 64, 93, 77, 67, 79, 80,
|
|
|
|
/* 740 */ 111, 99, 111, 77, 111, 79, 80, 88, 89, 111,
|
|
|
|
/* 750 */ 91, 111, 93, 111, 88, 89, 111, 91, 99, 93,
|
|
|
|
/* 760 */ 111, 111, 55, 111, 77, 99, 79, 80, 61, 62,
|
|
|
|
/* 770 */ 111, 111, 111, 111, 111, 88, 89, 111, 91, 111,
|
|
|
|
/* 780 */ 93, 111, 77, 111, 79, 80, 99, 111, 111, 77,
|
|
|
|
/* 790 */ 111, 79, 80, 88, 89, 111, 91, 111, 93, 111,
|
|
|
|
/* 800 */ 88, 89, 111, 91, 99, 93, 111, 77, 111, 79,
|
|
|
|
/* 810 */ 80, 99, 111, 111, 77, 111, 79, 80, 88, 89,
|
|
|
|
/* 820 */ 111, 91, 111, 93, 111, 88, 89, 111, 91, 99,
|
|
|
|
/* 830 */ 93, 111, 77, 111, 79, 80, 99, 111, 111, 111,
|
|
|
|
/* 840 */ 111, 111, 111, 88, 89, 111, 91, 111, 93, 111,
|
|
|
|
/* 850 */ 111, 111, 111, 77, 99, 79, 80, 111, 111, 111,
|
|
|
|
/* 860 */ 77, 111, 79, 80, 88, 89, 111, 91, 111, 93,
|
|
|
|
/* 870 */ 111, 88, 89, 111, 91, 99, 93, 111, 77, 111,
|
|
|
|
/* 880 */ 79, 80, 99, 111, 111, 77, 111, 111, 80, 88,
|
|
|
|
/* 890 */ 89, 111, 91, 111, 93, 111, 88, 89, 111, 91,
|
|
|
|
/* 900 */ 99, 93, 111, 77, 111, 111, 80, 99, 111, 111,
|
|
|
|
/* 910 */ 77, 111, 111, 80, 88, 89, 111, 91, 111, 93,
|
|
|
|
/* 920 */ 111, 88, 89, 111, 91, 99, 93, 111, 111, 111,
|
|
|
|
/* 930 */ 111, 111, 99,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
2009-10-13 19:44:38 +00:00
|
|
|
const YY_SHIFT_USE_DFLT = -32;
|
|
|
|
const YY_SHIFT_MAX = 183;
|
2009-03-22 16:09:05 +00:00
|
|
|
static public $yy_shift_ofst = array(
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 0 */ 43, 104, 19, 19, 19, 19, 19, 19, 19, 19,
|
|
|
|
/* 10 */ 19, 19, 239, 107, 239, 126, 126, 126, 126, 168,
|
|
|
|
/* 20 */ 168, 126, 126, 126, 126, 126, 126, 126, 126, 126,
|
|
|
|
/* 30 */ 126, 126, 22, 187, 190, 261, 71, 414, 414, 414,
|
|
|
|
/* 40 */ 242, 169, 352, 160, -5, 293, 122, 396, 505, 396,
|
|
|
|
/* 50 */ 307, 322, 386, 17, 102, 429, 491, 245, 393, 245,
|
|
|
|
/* 60 */ 467, 298, -3, 298, 255, -3, 245, -3, -3, -7,
|
|
|
|
/* 70 */ 595, 595, 157, 595, -31, -17, 64, 64, 64, 64,
|
|
|
|
/* 80 */ 64, 64, 64, 64, 64, 43, 707, 90, 213, 289,
|
|
|
|
/* 90 */ 208, 21, 295, 289, 129, 200, -3, 70, 14, 303,
|
|
|
|
/* 100 */ 14, -3, 294, 316, 14, 220, 14, 159, 14, 77,
|
|
|
|
/* 110 */ 181, 157, 310, 597, 310, 310, 595, 595, 595, 595,
|
|
|
|
/* 120 */ 157, 157, 603, 598, 310, 157, 157, 157, 58, 310,
|
|
|
|
/* 130 */ 310, 157, -32, -32, -32, -32, -32, 670, 236, 244,
|
|
|
|
/* 140 */ 72, 308, 66, 198, 195, 195, 195, 302, 195, 325,
|
|
|
|
/* 150 */ 272, 545, 551, 343, 561, 546, 555, 556, 552, 553,
|
|
|
|
/* 160 */ 605, 622, 565, 596, 557, 543, 579, 516, 497, 395,
|
|
|
|
/* 170 */ 394, 487, 554, 572, 512, 531, 549, 519, 518, 541,
|
|
|
|
/* 180 */ 484, 466, 411, 562,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
2009-10-13 19:44:38 +00:00
|
|
|
const YY_REDUCE_USE_DFLT = -55;
|
|
|
|
const YY_REDUCE_MAX = 136;
|
2009-03-22 16:09:05 +00:00
|
|
|
static public $yy_reduce_ofst = array(
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 0 */ 38, 185, 334, 363, 476, 441, 423, 406, 459, 504,
|
|
|
|
/* 10 */ 511, 317, 283, 537, 581, 103, 391, 588, 618, 560,
|
|
|
|
/* 20 */ 611, 659, 666, 687, 801, 705, 776, 783, 755, 737,
|
|
|
|
/* 30 */ 712, 730, 808, 826, 833, 300, 564, 469, 351, 642,
|
|
|
|
/* 40 */ 218, 305, -46, 13, 96, 256, 85, 85, 388, 237,
|
|
|
|
/* 50 */ 372, 372, 367, 328, 277, 328, 450, 468, -50, 433,
|
|
|
|
/* 60 */ 257, -50, 412, 418, 342, 371, 339, 407, 465, 492,
|
|
|
|
/* 70 */ 475, 257, 447, 426, 532, 532, 532, 532, 532, 532,
|
|
|
|
/* 80 */ 532, 532, 532, 532, 532, 573, 536, 539, 539, 539,
|
|
|
|
/* 90 */ 513, 528, 513, 539, 513, 513, 528, 356, 533, 356,
|
|
|
|
/* 100 */ 533, 528, 544, 356, 533, 540, 533, 356, 533, 356,
|
|
|
|
/* 110 */ 356, 59, 356, 580, 356, 356, 548, 548, 548, 548,
|
|
|
|
/* 120 */ 59, 59, 558, 559, 356, 59, 59, 59, -54, 356,
|
|
|
|
/* 130 */ 356, 59, 354, 320, 286, 306, 319,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
static public $yyExpectedTokens = array(
|
2009-09-29 16:23:35 +00:00
|
|
|
/* 0 */ array(1, 2, 3, 4, 5, 9, 11, 13, 14, 15, 16, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 1 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 2 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 3 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 4 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 5 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 6 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 7 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 8 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 9 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 10 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 11 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 12 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 13 */ array(1, 10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 14 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 15 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 16 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 17 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 18 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 19 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 20 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 21 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 22 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 23 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 24 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 25 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 26 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 27 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 28 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 29 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 30 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 31 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 32 */ array(10, 16, 20, 21, 44, 46, 47, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 33 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 34 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 35 */ array(10, 16, 20, 21, 44, 46, 51, 55, 60, 61, 67, ),
|
|
|
|
/* 36 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ),
|
|
|
|
/* 37 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ),
|
|
|
|
/* 38 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ),
|
|
|
|
/* 39 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ),
|
|
|
|
/* 40 */ array(16, 55, 60, 67, ),
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 41 */ array(44, 48, 57, 63, 68, ),
|
|
|
|
/* 42 */ array(16, 51, 55, 60, 67, ),
|
|
|
|
/* 43 */ array(1, 55, 60, 67, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 44 */ array(55, 60, 67, ),
|
|
|
|
/* 45 */ array(46, 48, 64, ),
|
|
|
|
/* 46 */ array(17, 63, 68, ),
|
2009-10-04 18:12:30 +00:00
|
|
|
/* 47 */ array(63, 68, ),
|
|
|
|
/* 48 */ array(56, 68, ),
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 49 */ array(63, 68, ),
|
|
|
|
/* 50 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 51 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 63, ),
|
|
|
|
/* 52 */ array(1, 16, 55, 61, 62, ),
|
|
|
|
/* 53 */ array(16, 50, 59, 67, ),
|
|
|
|
/* 54 */ array(16, 50, 52, 67, ),
|
|
|
|
/* 55 */ array(16, 59, 67, ),
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 56 */ array(1, 10, 16, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 57 */ array(1, 16, ),
|
2009-10-04 18:12:30 +00:00
|
|
|
/* 58 */ array(16, 67, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 59 */ array(1, 16, ),
|
|
|
|
/* 60 */ array(48, 50, ),
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 61 */ array(16, 67, ),
|
|
|
|
/* 62 */ array(16, 67, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 63 */ array(16, 67, ),
|
|
|
|
/* 64 */ array(17, 68, ),
|
2009-09-27 17:58:33 +00:00
|
|
|
/* 65 */ array(16, 67, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 66 */ array(1, 16, ),
|
|
|
|
/* 67 */ array(16, 67, ),
|
2009-09-29 18:52:58 +00:00
|
|
|
/* 68 */ array(16, 67, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 69 */ array(48, 68, ),
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 70 */ array(48, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 71 */ array(48, ),
|
|
|
|
/* 72 */ array(68, ),
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 73 */ array(48, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 74 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 58, ),
|
2009-10-04 18:12:30 +00:00
|
|
|
/* 75 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 76 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
2009-09-26 23:06:57 +00:00
|
|
|
/* 77 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
|
|
|
/* 78 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
|
|
|
/* 79 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
|
|
|
/* 80 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
|
|
|
/* 81 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
|
|
|
/* 82 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
2009-09-29 18:52:58 +00:00
|
|
|
/* 83 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 84 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 85 */ array(1, 2, 3, 4, 5, 9, 11, 13, 14, 15, 16, ),
|
|
|
|
/* 86 */ array(1, 16, 55, 61, 62, ),
|
|
|
|
/* 87 */ array(47, 53, 54, 66, ),
|
|
|
|
/* 88 */ array(17, 53, 54, 66, ),
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 89 */ array(53, 54, 66, ),
|
|
|
|
/* 90 */ array(1, 10, 16, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 91 */ array(16, 50, 67, ),
|
|
|
|
/* 92 */ array(1, 8, 16, ),
|
|
|
|
/* 93 */ array(53, 54, 66, ),
|
|
|
|
/* 94 */ array(1, 12, 16, ),
|
|
|
|
/* 95 */ array(1, 5, 16, ),
|
|
|
|
/* 96 */ array(16, 67, ),
|
|
|
|
/* 97 */ array(49, 63, ),
|
|
|
|
/* 98 */ array(46, 64, ),
|
|
|
|
/* 99 */ array(17, 63, ),
|
|
|
|
/* 100 */ array(46, 64, ),
|
|
|
|
/* 101 */ array(16, 67, ),
|
|
|
|
/* 102 */ array(16, 44, ),
|
|
|
|
/* 103 */ array(63, 65, ),
|
|
|
|
/* 104 */ array(46, 64, ),
|
|
|
|
/* 105 */ array(55, 67, ),
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 106 */ array(46, 64, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 107 */ array(45, 63, ),
|
|
|
|
/* 108 */ array(46, 64, ),
|
|
|
|
/* 109 */ array(17, 63, ),
|
|
|
|
/* 110 */ array(17, 63, ),
|
|
|
|
/* 111 */ array(68, ),
|
|
|
|
/* 112 */ array(63, ),
|
|
|
|
/* 113 */ array(67, ),
|
|
|
|
/* 114 */ array(63, ),
|
2009-10-04 18:12:30 +00:00
|
|
|
/* 115 */ array(63, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 116 */ array(48, ),
|
|
|
|
/* 117 */ array(48, ),
|
|
|
|
/* 118 */ array(48, ),
|
|
|
|
/* 119 */ array(48, ),
|
|
|
|
/* 120 */ array(68, ),
|
|
|
|
/* 121 */ array(68, ),
|
|
|
|
/* 122 */ array(44, ),
|
|
|
|
/* 123 */ array(56, ),
|
|
|
|
/* 124 */ array(63, ),
|
|
|
|
/* 125 */ array(68, ),
|
|
|
|
/* 126 */ array(68, ),
|
|
|
|
/* 127 */ array(68, ),
|
|
|
|
/* 128 */ array(55, ),
|
|
|
|
/* 129 */ array(63, ),
|
|
|
|
/* 130 */ array(63, ),
|
|
|
|
/* 131 */ array(68, ),
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 132 */ array(),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 133 */ array(),
|
|
|
|
/* 134 */ array(),
|
|
|
|
/* 135 */ array(),
|
|
|
|
/* 136 */ array(),
|
|
|
|
/* 137 */ array(16, 46, 48, 50, 56, 59, 64, 67, ),
|
|
|
|
/* 138 */ array(17, 44, 50, 57, 68, ),
|
|
|
|
/* 139 */ array(44, 47, 57, 64, ),
|
|
|
|
/* 140 */ array(44, 49, 57, ),
|
|
|
|
/* 141 */ array(16, 59, 67, ),
|
|
|
|
/* 142 */ array(19, 69, ),
|
|
|
|
/* 143 */ array(58, 65, ),
|
|
|
|
/* 144 */ array(44, 57, ),
|
|
|
|
/* 145 */ array(44, 57, ),
|
|
|
|
/* 146 */ array(44, 57, ),
|
|
|
|
/* 147 */ array(59, 67, ),
|
|
|
|
/* 148 */ array(44, 57, ),
|
|
|
|
/* 149 */ array(1, 67, ),
|
|
|
|
/* 150 */ array(47, 65, ),
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 151 */ array(67, ),
|
|
|
|
/* 152 */ array(67, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 153 */ array(55, ),
|
|
|
|
/* 154 */ array(45, ),
|
|
|
|
/* 155 */ array(55, ),
|
|
|
|
/* 156 */ array(50, ),
|
|
|
|
/* 157 */ array(51, ),
|
|
|
|
/* 158 */ array(67, ),
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 159 */ array(67, ),
|
|
|
|
/* 160 */ array(17, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 161 */ array(5, ),
|
|
|
|
/* 162 */ array(67, ),
|
|
|
|
/* 163 */ array(17, ),
|
|
|
|
/* 164 */ array(64, ),
|
|
|
|
/* 165 */ array(55, ),
|
|
|
|
/* 166 */ array(17, ),
|
|
|
|
/* 167 */ array(19, ),
|
|
|
|
/* 168 */ array(44, ),
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 169 */ array(60, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 170 */ array(69, ),
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 171 */ array(67, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 172 */ array(17, ),
|
|
|
|
/* 173 */ array(17, ),
|
|
|
|
/* 174 */ array(67, ),
|
|
|
|
/* 175 */ array(45, ),
|
|
|
|
/* 176 */ array(60, ),
|
|
|
|
/* 177 */ array(55, ),
|
|
|
|
/* 178 */ array(67, ),
|
|
|
|
/* 179 */ array(45, ),
|
|
|
|
/* 180 */ array(47, ),
|
|
|
|
/* 181 */ array(67, ),
|
|
|
|
/* 182 */ array(62, ),
|
|
|
|
/* 183 */ array(62, ),
|
2009-03-22 16:09:05 +00:00
|
|
|
/* 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-04-20 20:33:14 +00:00
|
|
|
/* 265 */ array(),
|
2009-04-21 18:02:34 +00:00
|
|
|
/* 266 */ array(),
|
|
|
|
/* 267 */ array(),
|
|
|
|
/* 268 */ array(),
|
|
|
|
/* 269 */ array(),
|
|
|
|
/* 270 */ array(),
|
2009-05-14 10:53:28 +00:00
|
|
|
/* 271 */ array(),
|
|
|
|
/* 272 */ array(),
|
2009-06-14 13:08:13 +00:00
|
|
|
/* 273 */ array(),
|
2009-07-22 16:22:24 +00:00
|
|
|
/* 274 */ array(),
|
|
|
|
/* 275 */ array(),
|
|
|
|
/* 276 */ array(),
|
2009-07-29 16:43:54 +00:00
|
|
|
/* 277 */ array(),
|
|
|
|
/* 278 */ array(),
|
2009-08-11 18:53:23 +00:00
|
|
|
/* 279 */ array(),
|
|
|
|
/* 280 */ array(),
|
2009-09-19 13:22:32 +00:00
|
|
|
/* 281 */ array(),
|
2009-09-27 17:58:33 +00:00
|
|
|
/* 282 */ array(),
|
2009-09-29 18:52:58 +00:00
|
|
|
/* 283 */ array(),
|
|
|
|
/* 284 */ array(),
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 285 */ array(),
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
static public $yy_default = array(
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 0 */ 446, 446, 446, 446, 446, 446, 446, 446, 446, 446,
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 10 */ 446, 446, 427, 446, 446, 386, 386, 386, 386, 446,
|
2009-10-05 18:55:22 +00:00
|
|
|
/* 20 */ 446, 446, 446, 446, 446, 446, 446, 446, 446, 446,
|
|
|
|
/* 30 */ 446, 446, 446, 446, 446, 446, 446, 446, 446, 446,
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 40 */ 446, 317, 446, 446, 446, 350, 446, 317, 317, 317,
|
|
|
|
/* 50 */ 396, 396, 446, 361, 446, 361, 446, 446, 446, 446,
|
|
|
|
/* 60 */ 354, 446, 446, 446, 334, 446, 446, 446, 446, 317,
|
|
|
|
/* 70 */ 345, 354, 317, 346, 446, 446, 409, 400, 410, 306,
|
|
|
|
/* 80 */ 405, 401, 402, 394, 406, 286, 446, 446, 446, 391,
|
|
|
|
/* 90 */ 446, 446, 446, 324, 446, 446, 312, 430, 380, 446,
|
|
|
|
/* 100 */ 377, 311, 361, 385, 378, 446, 359, 446, 379, 446,
|
|
|
|
/* 110 */ 446, 301, 318, 446, 429, 428, 347, 351, 374, 348,
|
|
|
|
/* 120 */ 313, 300, 361, 326, 309, 303, 304, 305, 446, 322,
|
|
|
|
/* 130 */ 397, 302, 390, 361, 361, 361, 390, 353, 323, 446,
|
|
|
|
/* 140 */ 323, 353, 327, 446, 323, 411, 392, 446, 446, 446,
|
|
|
|
/* 150 */ 446, 446, 446, 446, 446, 446, 319, 446, 446, 446,
|
|
|
|
/* 160 */ 446, 446, 446, 446, 335, 446, 320, 331, 349, 446,
|
|
|
|
/* 170 */ 327, 446, 446, 446, 446, 446, 446, 446, 446, 446,
|
|
|
|
/* 180 */ 446, 446, 446, 446, 332, 297, 287, 298, 382, 299,
|
|
|
|
/* 190 */ 291, 366, 314, 368, 292, 290, 367, 381, 383, 369,
|
|
|
|
/* 200 */ 293, 294, 439, 296, 437, 441, 295, 365, 432, 344,
|
|
|
|
/* 210 */ 333, 419, 444, 445, 342, 442, 341, 363, 364, 329,
|
|
|
|
/* 220 */ 443, 343, 435, 438, 316, 440, 434, 431, 433, 362,
|
|
|
|
/* 230 */ 358, 328, 334, 336, 327, 389, 288, 289, 315, 337,
|
|
|
|
/* 240 */ 338, 375, 356, 357, 360, 355, 339, 376, 387, 388,
|
|
|
|
/* 250 */ 407, 408, 421, 404, 403, 412, 340, 393, 422, 423,
|
|
|
|
/* 260 */ 372, 321, 352, 371, 310, 395, 308, 420, 418, 373,
|
|
|
|
/* 270 */ 331, 424, 370, 325, 436, 330, 426, 425, 415, 416,
|
|
|
|
/* 280 */ 417, 414, 413, 398, 399, 384,
|
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-10-13 19:44:38 +00:00
|
|
|
const YYNOCODE = 112;
|
2009-03-22 16:09:05 +00:00
|
|
|
const YYSTACKDEPTH = 100;
|
2009-10-13 19:44:38 +00:00
|
|
|
const YYNSTATE = 286;
|
|
|
|
const YYNRULE = 160;
|
2009-10-05 18:55:22 +00:00
|
|
|
const YYERRORSYMBOL = 70;
|
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 */
|
2009-09-26 23:06:57 +00:00
|
|
|
1, /* XML => OTHER */
|
2009-03-22 16:09:05 +00:00
|
|
|
1, /* PHP => OTHER */
|
|
|
|
1, /* SHORTTAGSTART => OTHER */
|
|
|
|
1, /* SHORTTAGEND => OTHER */
|
2009-09-26 23:06:57 +00:00
|
|
|
1, /* PHPSTART => OTHER */
|
|
|
|
1, /* PHPEND => OTHER */
|
2009-03-22 16:09:05 +00:00
|
|
|
1, /* COMMENTEND => OTHER */
|
|
|
|
1, /* COMMENTSTART => OTHER */
|
2009-09-26 23:06:57 +00:00
|
|
|
1, /* SINGLEQUOTE => OTHER */
|
|
|
|
1, /* LITERALSTART => OTHER */
|
|
|
|
1, /* LITERALEND => OTHER */
|
|
|
|
1, /* LDELIMTAG => OTHER */
|
|
|
|
1, /* RDELIMTAG => OTHER */
|
|
|
|
1, /* LDELSLASH => OTHER */
|
|
|
|
1, /* LDEL => OTHER */
|
|
|
|
1, /* RDEL => OTHER */
|
|
|
|
1, /* ISIN => OTHER */
|
|
|
|
1, /* AS => OTHER */
|
|
|
|
1, /* BOOLEAN => OTHER */
|
|
|
|
1, /* NULL => OTHER */
|
|
|
|
1, /* IDENTITY => OTHER */
|
|
|
|
1, /* NONEIDENTITY => OTHER */
|
2009-03-22 16:09:05 +00:00
|
|
|
1, /* EQUALS => OTHER */
|
|
|
|
1, /* NOTEQUALS => OTHER */
|
|
|
|
1, /* GREATEREQUAL => OTHER */
|
|
|
|
1, /* LESSEQUAL => OTHER */
|
2009-09-26 23:06:57 +00:00
|
|
|
1, /* GREATERTHAN => OTHER */
|
|
|
|
1, /* LESSTHAN => OTHER */
|
2009-03-22 16:09:05 +00:00
|
|
|
1, /* NOT => OTHER */
|
|
|
|
1, /* LAND => OTHER */
|
|
|
|
1, /* LOR => OTHER */
|
2009-09-19 13:22:32 +00:00
|
|
|
1, /* LXOR => OTHER */
|
2009-03-22 16:09:05 +00:00
|
|
|
1, /* ISODDBY => OTHER */
|
|
|
|
1, /* ISNOTODDBY => OTHER */
|
2009-09-26 23:06:57 +00:00
|
|
|
1, /* ISODD => OTHER */
|
|
|
|
1, /* ISNOTODD => OTHER */
|
2009-03-22 16:09:05 +00:00
|
|
|
1, /* ISEVENBY => OTHER */
|
|
|
|
1, /* ISNOTEVENBY => OTHER */
|
2009-09-26 23:06:57 +00:00
|
|
|
1, /* ISEVEN => OTHER */
|
|
|
|
1, /* ISNOTEVEN => OTHER */
|
2009-03-22 16:09:05 +00:00
|
|
|
1, /* ISDIVBY => OTHER */
|
|
|
|
1, /* ISNOTDIVBY => OTHER */
|
2009-09-26 23:06:57 +00:00
|
|
|
1, /* OPENP => OTHER */
|
|
|
|
1, /* CLOSEP => OTHER */
|
|
|
|
1, /* OPENB => OTHER */
|
|
|
|
1, /* CLOSEB => OTHER */
|
|
|
|
1, /* PTR => OTHER */
|
|
|
|
1, /* APTR => OTHER */
|
|
|
|
1, /* EQUAL => OTHER */
|
|
|
|
1, /* INTEGER => OTHER */
|
|
|
|
1, /* INCDEC => OTHER */
|
|
|
|
1, /* UNIMATH => OTHER */
|
|
|
|
1, /* MATH => OTHER */
|
|
|
|
1, /* DOLLAR => OTHER */
|
|
|
|
1, /* COLON => OTHER */
|
|
|
|
1, /* DOUBLECOLON => OTHER */
|
|
|
|
1, /* SEMICOLON => OTHER */
|
|
|
|
1, /* AT => OTHER */
|
|
|
|
1, /* HATCH => OTHER */
|
|
|
|
1, /* QUOTE => OTHER */
|
|
|
|
1, /* BACKTICK => OTHER */
|
|
|
|
1, /* VERT => OTHER */
|
|
|
|
1, /* DOT => OTHER */
|
|
|
|
1, /* COMMA => OTHER */
|
|
|
|
1, /* ANDSYM => OTHER */
|
|
|
|
1, /* ID => OTHER */
|
|
|
|
1, /* SPACE => OTHER */
|
2009-10-05 18:55:22 +00:00
|
|
|
1, /* INSTANCEOF => OTHER */
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
/**
|
|
|
|
* Turn parser tracing on by giving a stream to which to write the trace
|
|
|
|
* and a prompt to preface each trace message. Tracing is turned off
|
|
|
|
* by making either argument NULL
|
|
|
|
*
|
|
|
|
* Inputs:
|
|
|
|
*
|
|
|
|
* - A stream resource to which trace output should be written.
|
|
|
|
* If NULL, then tracing is turned off.
|
|
|
|
* - A prefix string written at the beginning of every
|
|
|
|
* line of trace output. If NULL, then tracing is
|
|
|
|
* turned off.
|
|
|
|
*
|
|
|
|
* Outputs:
|
|
|
|
*
|
|
|
|
* - None.
|
|
|
|
* @param resource
|
|
|
|
* @param string
|
|
|
|
*/
|
|
|
|
static function Trace($TraceFILE, $zTracePrompt)
|
|
|
|
{
|
|
|
|
if (!$TraceFILE) {
|
|
|
|
$zTracePrompt = 0;
|
|
|
|
} elseif (!$zTracePrompt) {
|
|
|
|
$TraceFILE = 0;
|
|
|
|
}
|
|
|
|
self::$yyTraceFILE = $TraceFILE;
|
|
|
|
self::$yyTracePrompt = $zTracePrompt;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Output debug information to output (php://output stream)
|
|
|
|
*/
|
|
|
|
static function PrintTrace()
|
|
|
|
{
|
|
|
|
self::$yyTraceFILE = fopen('php://output', 'w');
|
|
|
|
self::$yyTracePrompt = '<br>';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var resource|0
|
|
|
|
*/
|
|
|
|
static public $yyTraceFILE;
|
|
|
|
/**
|
|
|
|
* String to prepend to debug output
|
|
|
|
* @var string|0
|
|
|
|
*/
|
|
|
|
static public $yyTracePrompt;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $yyidx; /* Index of top element in stack */
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
public $yyerrcnt; /* Shifts left before out of the error */
|
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
public $yystack = array(); /* The parser's stack */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* For tracing shifts, the names of all terminals and nonterminals
|
|
|
|
* are required. The following table supplies these names
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
public $yyTokenName = array(
|
2009-09-26 23:06:57 +00:00
|
|
|
'$', 'OTHER', 'XML', 'PHP',
|
|
|
|
'SHORTTAGSTART', 'SHORTTAGEND', 'PHPSTART', 'PHPEND',
|
|
|
|
'COMMENTEND', 'COMMENTSTART', 'SINGLEQUOTE', 'LITERALSTART',
|
|
|
|
'LITERALEND', 'LDELIMTAG', 'RDELIMTAG', 'LDELSLASH',
|
|
|
|
'LDEL', 'RDEL', 'ISIN', 'AS',
|
|
|
|
'BOOLEAN', 'NULL', 'IDENTITY', 'NONEIDENTITY',
|
|
|
|
'EQUALS', 'NOTEQUALS', 'GREATEREQUAL', 'LESSEQUAL',
|
|
|
|
'GREATERTHAN', 'LESSTHAN', 'NOT', 'LAND',
|
|
|
|
'LOR', 'LXOR', 'ISODDBY', 'ISNOTODDBY',
|
|
|
|
'ISODD', 'ISNOTODD', 'ISEVENBY', 'ISNOTEVENBY',
|
|
|
|
'ISEVEN', 'ISNOTEVEN', 'ISDIVBY', 'ISNOTDIVBY',
|
|
|
|
'OPENP', 'CLOSEP', 'OPENB', 'CLOSEB',
|
|
|
|
'PTR', 'APTR', 'EQUAL', 'INTEGER',
|
|
|
|
'INCDEC', 'UNIMATH', 'MATH', 'DOLLAR',
|
|
|
|
'COLON', 'DOUBLECOLON', 'SEMICOLON', 'AT',
|
|
|
|
'HATCH', 'QUOTE', 'BACKTICK', 'VERT',
|
|
|
|
'DOT', 'COMMA', 'ANDSYM', 'ID',
|
2009-10-05 18:55:22 +00:00
|
|
|
'SPACE', 'INSTANCEOF', 'error', 'start',
|
2009-10-13 19:44:38 +00:00
|
|
|
'template', 'template_element', 'smartytag', 'smartyclosetag',
|
|
|
|
'text', 'variable', 'attributes', 'expr',
|
|
|
|
'varindexed', 'modifier', 'modparameters', 'ifexprs',
|
|
|
|
'statement', 'statements', 'varvar', 'foraction',
|
|
|
|
'value', 'array', 'attribute', 'exprs',
|
|
|
|
'math', 'function', 'doublequoted', 'method',
|
|
|
|
'params', 'objectchain', 'arrayindex', 'object',
|
|
|
|
'indexdef', 'varvarele', 'objectelement', 'modparameter',
|
|
|
|
'ifexpr', 'ifcond', 'lop', 'arrayelements',
|
|
|
|
'arrayelement', 'doublequotedcontent', 'textelement',
|
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",
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 3 */ "template_element ::= LDEL smartytag RDEL",
|
|
|
|
/* 4 */ "template_element ::= LDELSLASH smartyclosetag RDEL",
|
|
|
|
/* 5 */ "template_element ::= COMMENTSTART text COMMENTEND",
|
|
|
|
/* 6 */ "template_element ::= LITERALSTART text LITERALEND",
|
|
|
|
/* 7 */ "template_element ::= LDELIMTAG",
|
|
|
|
/* 8 */ "template_element ::= RDELIMTAG",
|
|
|
|
/* 9 */ "template_element ::= PHP text SHORTTAGEND",
|
|
|
|
/* 10 */ "template_element ::= SHORTTAGSTART DOLLAR ID SHORTTAGEND",
|
|
|
|
/* 11 */ "template_element ::= XML",
|
|
|
|
/* 12 */ "template_element ::= SHORTTAGEND",
|
|
|
|
/* 13 */ "template_element ::= OTHER",
|
|
|
|
/* 14 */ "smartytag ::= variable attributes",
|
|
|
|
/* 15 */ "smartytag ::= expr attributes",
|
|
|
|
/* 16 */ "smartytag ::= varindexed EQUAL expr attributes",
|
|
|
|
/* 17 */ "smartytag ::= ID attributes",
|
|
|
|
/* 18 */ "smartytag ::= ID PTR ID attributes",
|
|
|
|
/* 19 */ "smartytag ::= ID modifier modparameters attributes",
|
|
|
|
/* 20 */ "smartytag ::= ID SPACE ifexprs",
|
|
|
|
/* 21 */ "smartytag ::= ID SPACE statement",
|
|
|
|
/* 22 */ "smartytag ::= ID SPACE statements SEMICOLON ifexprs SEMICOLON DOLLAR varvar foraction",
|
|
|
|
/* 23 */ "foraction ::= EQUAL expr",
|
|
|
|
/* 24 */ "foraction ::= INCDEC",
|
|
|
|
/* 25 */ "smartytag ::= ID SPACE value AS DOLLAR varvar",
|
|
|
|
/* 26 */ "smartytag ::= ID SPACE array AS DOLLAR varvar",
|
|
|
|
/* 27 */ "smartyclosetag ::= ID attributes",
|
|
|
|
/* 28 */ "smartyclosetag ::= ID PTR ID",
|
|
|
|
/* 29 */ "attributes ::= attributes attribute",
|
|
|
|
/* 30 */ "attributes ::= attribute",
|
|
|
|
/* 31 */ "attributes ::=",
|
|
|
|
/* 32 */ "attribute ::= SPACE ID EQUAL expr",
|
|
|
|
/* 33 */ "attribute ::= SPACE ID",
|
|
|
|
/* 34 */ "statements ::= statement",
|
|
|
|
/* 35 */ "statements ::= statements COMMA statement",
|
|
|
|
/* 36 */ "statement ::= DOLLAR varvar EQUAL expr",
|
|
|
|
/* 37 */ "expr ::= ID",
|
|
|
|
/* 38 */ "expr ::= exprs",
|
|
|
|
/* 39 */ "expr ::= DOLLAR ID COLON ID",
|
|
|
|
/* 40 */ "expr ::= expr modifier modparameters",
|
|
|
|
/* 41 */ "exprs ::= value",
|
|
|
|
/* 42 */ "exprs ::= UNIMATH value",
|
|
|
|
/* 43 */ "exprs ::= exprs math value",
|
|
|
|
/* 44 */ "exprs ::= exprs ANDSYM value",
|
|
|
|
/* 45 */ "exprs ::= array",
|
|
|
|
/* 46 */ "math ::= UNIMATH",
|
|
|
|
/* 47 */ "math ::= MATH",
|
|
|
|
/* 48 */ "value ::= variable",
|
|
|
|
/* 49 */ "value ::= INTEGER",
|
|
|
|
/* 50 */ "value ::= INTEGER DOT INTEGER",
|
|
|
|
/* 51 */ "value ::= BOOLEAN",
|
|
|
|
/* 52 */ "value ::= NULL",
|
|
|
|
/* 53 */ "value ::= function",
|
|
|
|
/* 54 */ "value ::= OPENP expr CLOSEP",
|
|
|
|
/* 55 */ "value ::= SINGLEQUOTE text SINGLEQUOTE",
|
|
|
|
/* 56 */ "value ::= SINGLEQUOTE SINGLEQUOTE",
|
|
|
|
/* 57 */ "value ::= QUOTE doublequoted QUOTE",
|
|
|
|
/* 58 */ "value ::= QUOTE QUOTE",
|
|
|
|
/* 59 */ "value ::= ID DOUBLECOLON method",
|
|
|
|
/* 60 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP",
|
|
|
|
/* 61 */ "value ::= ID DOUBLECOLON method objectchain",
|
|
|
|
/* 62 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain",
|
|
|
|
/* 63 */ "value ::= ID DOUBLECOLON ID",
|
|
|
|
/* 64 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex",
|
|
|
|
/* 65 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain",
|
|
|
|
/* 66 */ "value ::= LDEL smartytag RDEL",
|
|
|
|
/* 67 */ "variable ::= DOLLAR ID",
|
|
|
|
/* 68 */ "variable ::= varindexed",
|
|
|
|
/* 69 */ "variable ::= DOLLAR varvar AT ID",
|
|
|
|
/* 70 */ "variable ::= object",
|
|
|
|
/* 71 */ "variable ::= HATCH ID HATCH",
|
|
|
|
/* 72 */ "variable ::= HATCH variable HATCH",
|
|
|
|
/* 73 */ "varindexed ::= DOLLAR varvar arrayindex",
|
|
|
|
/* 74 */ "arrayindex ::= arrayindex indexdef",
|
|
|
|
/* 75 */ "arrayindex ::=",
|
|
|
|
/* 76 */ "indexdef ::= DOT ID",
|
|
|
|
/* 77 */ "indexdef ::= DOT INTEGER",
|
|
|
|
/* 78 */ "indexdef ::= DOT variable",
|
|
|
|
/* 79 */ "indexdef ::= DOT LDEL exprs RDEL",
|
|
|
|
/* 80 */ "indexdef ::= OPENB ID CLOSEB",
|
|
|
|
/* 81 */ "indexdef ::= OPENB ID DOT ID CLOSEB",
|
|
|
|
/* 82 */ "indexdef ::= OPENB exprs CLOSEB",
|
|
|
|
/* 83 */ "indexdef ::= OPENB CLOSEB",
|
|
|
|
/* 84 */ "varvar ::= varvarele",
|
|
|
|
/* 85 */ "varvar ::= varvar varvarele",
|
|
|
|
/* 86 */ "varvarele ::= ID",
|
|
|
|
/* 87 */ "varvarele ::= LDEL expr RDEL",
|
|
|
|
/* 88 */ "object ::= varindexed objectchain",
|
|
|
|
/* 89 */ "objectchain ::= objectelement",
|
|
|
|
/* 90 */ "objectchain ::= objectchain objectelement",
|
|
|
|
/* 91 */ "objectelement ::= PTR ID arrayindex",
|
|
|
|
/* 92 */ "objectelement ::= PTR variable arrayindex",
|
|
|
|
/* 93 */ "objectelement ::= PTR LDEL expr RDEL arrayindex",
|
|
|
|
/* 94 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex",
|
|
|
|
/* 95 */ "objectelement ::= PTR method",
|
|
|
|
/* 96 */ "function ::= ID OPENP params CLOSEP",
|
|
|
|
/* 97 */ "method ::= ID OPENP params CLOSEP",
|
|
|
|
/* 98 */ "params ::= expr COMMA params",
|
|
|
|
/* 99 */ "params ::= expr",
|
|
|
|
/* 100 */ "params ::=",
|
|
|
|
/* 101 */ "modifier ::= VERT AT ID",
|
|
|
|
/* 102 */ "modifier ::= VERT ID",
|
|
|
|
/* 103 */ "modparameters ::= modparameters modparameter",
|
|
|
|
/* 104 */ "modparameters ::=",
|
|
|
|
/* 105 */ "modparameter ::= COLON exprs",
|
|
|
|
/* 106 */ "modparameter ::= COLON ID",
|
|
|
|
/* 107 */ "ifexprs ::= ifexpr",
|
|
|
|
/* 108 */ "ifexprs ::= NOT ifexprs",
|
|
|
|
/* 109 */ "ifexprs ::= OPENP ifexprs CLOSEP",
|
|
|
|
/* 110 */ "ifexpr ::= expr",
|
|
|
|
/* 111 */ "ifexpr ::= expr ifcond expr",
|
|
|
|
/* 112 */ "ifexpr ::= expr ISIN array",
|
|
|
|
/* 113 */ "ifexpr ::= expr ISIN value",
|
|
|
|
/* 114 */ "ifexpr ::= ifexprs lop ifexprs",
|
|
|
|
/* 115 */ "ifexpr ::= ifexprs ISDIVBY ifexprs",
|
|
|
|
/* 116 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs",
|
|
|
|
/* 117 */ "ifexpr ::= ifexprs ISEVEN",
|
|
|
|
/* 118 */ "ifexpr ::= ifexprs ISNOTEVEN",
|
|
|
|
/* 119 */ "ifexpr ::= ifexprs ISEVENBY ifexprs",
|
|
|
|
/* 120 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs",
|
|
|
|
/* 121 */ "ifexpr ::= ifexprs ISODD",
|
|
|
|
/* 122 */ "ifexpr ::= ifexprs ISNOTODD",
|
|
|
|
/* 123 */ "ifexpr ::= ifexprs ISODDBY ifexprs",
|
|
|
|
/* 124 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs",
|
|
|
|
/* 125 */ "ifexpr ::= value INSTANCEOF ID",
|
|
|
|
/* 126 */ "ifexpr ::= value INSTANCEOF value",
|
|
|
|
/* 127 */ "ifcond ::= EQUALS",
|
|
|
|
/* 128 */ "ifcond ::= NOTEQUALS",
|
|
|
|
/* 129 */ "ifcond ::= GREATERTHAN",
|
|
|
|
/* 130 */ "ifcond ::= LESSTHAN",
|
|
|
|
/* 131 */ "ifcond ::= GREATEREQUAL",
|
|
|
|
/* 132 */ "ifcond ::= LESSEQUAL",
|
|
|
|
/* 133 */ "ifcond ::= IDENTITY",
|
|
|
|
/* 134 */ "ifcond ::= NONEIDENTITY",
|
|
|
|
/* 135 */ "lop ::= LAND",
|
|
|
|
/* 136 */ "lop ::= LOR",
|
|
|
|
/* 137 */ "lop ::= LXOR",
|
|
|
|
/* 138 */ "array ::= OPENB arrayelements CLOSEB",
|
|
|
|
/* 139 */ "arrayelements ::= arrayelement",
|
|
|
|
/* 140 */ "arrayelements ::= arrayelements COMMA arrayelement",
|
|
|
|
/* 141 */ "arrayelements ::=",
|
|
|
|
/* 142 */ "arrayelement ::= expr APTR expr",
|
|
|
|
/* 143 */ "arrayelement ::= ID APTR expr",
|
|
|
|
/* 144 */ "arrayelement ::= expr",
|
|
|
|
/* 145 */ "doublequoted ::= doublequoted doublequotedcontent",
|
|
|
|
/* 146 */ "doublequoted ::= doublequotedcontent",
|
|
|
|
/* 147 */ "doublequotedcontent ::= BACKTICK ID BACKTICK",
|
|
|
|
/* 148 */ "doublequotedcontent ::= BACKTICK variable BACKTICK",
|
|
|
|
/* 149 */ "doublequotedcontent ::= DOLLAR ID",
|
|
|
|
/* 150 */ "doublequotedcontent ::= LDEL expr RDEL",
|
|
|
|
/* 151 */ "doublequotedcontent ::= LDEL smartytag RDEL",
|
|
|
|
/* 152 */ "doublequotedcontent ::= DOLLAR OTHER",
|
|
|
|
/* 153 */ "doublequotedcontent ::= LDEL OTHER",
|
|
|
|
/* 154 */ "doublequotedcontent ::= BACKTICK OTHER",
|
|
|
|
/* 155 */ "doublequotedcontent ::= OTHER",
|
|
|
|
/* 156 */ "text ::= text textelement",
|
|
|
|
/* 157 */ "text ::= textelement",
|
|
|
|
/* 158 */ "textelement ::= OTHER",
|
|
|
|
/* 159 */ "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(
|
2009-04-14 09:04:15 +00:00
|
|
|
array( 'lhs' => 71, 'rhs' => 1 ),
|
2009-09-19 13:22:32 +00:00
|
|
|
array( 'lhs' => 72, 'rhs' => 1 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 72, 'rhs' => 2 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 73, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 73, 'rhs' => 3 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 73, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 73, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 73, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 73, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 73, 'rhs' => 3 ),
|
2009-10-04 18:12:30 +00:00
|
|
|
array( 'lhs' => 73, 'rhs' => 4 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 73, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 73, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 73, 'rhs' => 1 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 74, 'rhs' => 2 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 4 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 2 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 4 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 74, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 74, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 74, 'rhs' => 9 ),
|
|
|
|
array( 'lhs' => 87, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 87, 'rhs' => 1 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 6 ),
|
|
|
|
array( 'lhs' => 74, 'rhs' => 6 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 75, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 75, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 78, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 78, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 78, 'rhs' => 0 ),
|
|
|
|
array( 'lhs' => 90, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 90, 'rhs' => 2 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 85, 'rhs' => 1 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 85, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 84, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 79, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 79, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 79, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 79, 'rhs' => 3 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 91, 'rhs' => 1 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 91, 'rhs' => 2 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 91, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 3 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 91, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 92, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 92, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 7 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 8 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 5 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 6 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 77, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 77, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 77, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 77, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 77, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 77, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 80, 'rhs' => 3 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 98, 'rhs' => 2 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 98, 'rhs' => 0 ),
|
|
|
|
array( 'lhs' => 100, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 100, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 100, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 100, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 100, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 100, 'rhs' => 5 ),
|
|
|
|
array( 'lhs' => 100, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 100, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 86, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 86, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 101, 'rhs' => 1 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 101, 'rhs' => 3 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 99, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 102, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 102, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 102, 'rhs' => 5 ),
|
|
|
|
array( 'lhs' => 102, 'rhs' => 6 ),
|
2009-09-19 13:22:32 +00:00
|
|
|
array( 'lhs' => 102, 'rhs' => 2 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 93, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 95, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 96, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 96, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 96, 'rhs' => 0 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 81, 'rhs' => 3 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 81, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 82, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 82, 'rhs' => 0 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 103, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 103, 'rhs' => 2 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 83, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 83, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 83, 'rhs' => 3 ),
|
2009-09-19 13:22:32 +00:00
|
|
|
array( 'lhs' => 104, 'rhs' => 1 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 105, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 105, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 105, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 105, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 105, 'rhs' => 1 ),
|
2009-08-21 14:50:34 +00:00
|
|
|
array( 'lhs' => 105, 'rhs' => 1 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 105, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 105, 'rhs' => 1 ),
|
2009-08-21 14:50:34 +00:00
|
|
|
array( 'lhs' => 106, 'rhs' => 1 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 106, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 106, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 89, 'rhs' => 3 ),
|
2009-08-21 14:50:34 +00:00
|
|
|
array( 'lhs' => 107, 'rhs' => 1 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 107, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 0 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 108, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 108, 'rhs' => 3 ),
|
2009-09-19 13:22:32 +00:00
|
|
|
array( 'lhs' => 108, 'rhs' => 1 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 94, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 94, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 109, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 109, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 109, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 109, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 109, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 109, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 109, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 109, 'rhs' => 2 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 109, 'rhs' => 1 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 76, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 76, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 110, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 110, '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-10-13 19:44:38 +00:00
|
|
|
41 => 0,
|
|
|
|
48 => 0,
|
2009-09-29 16:23:35 +00:00
|
|
|
49 => 0,
|
2009-06-14 13:08:13 +00:00
|
|
|
51 => 0,
|
2009-10-13 19:44:38 +00:00
|
|
|
52 => 0,
|
|
|
|
53 => 0,
|
|
|
|
70 => 0,
|
|
|
|
139 => 0,
|
2009-03-22 16:09:05 +00:00
|
|
|
1 => 1,
|
2009-10-13 19:44:38 +00:00
|
|
|
38 => 1,
|
2009-06-14 13:08:13 +00:00
|
|
|
45 => 1,
|
2009-10-13 19:44:38 +00:00
|
|
|
46 => 1,
|
|
|
|
47 => 1,
|
|
|
|
84 => 1,
|
|
|
|
107 => 1,
|
|
|
|
146 => 1,
|
2009-10-05 18:55:22 +00:00
|
|
|
155 => 1,
|
2009-10-13 19:44:38 +00:00
|
|
|
157 => 1,
|
|
|
|
158 => 1,
|
|
|
|
159 => 1,
|
2009-03-22 16:09:05 +00:00
|
|
|
2 => 2,
|
2009-10-13 19:44:38 +00:00
|
|
|
74 => 2,
|
|
|
|
145 => 2,
|
2009-10-05 18:55:22 +00:00
|
|
|
153 => 2,
|
2009-10-13 19:44:38 +00:00
|
|
|
156 => 2,
|
2009-03-22 16:09:05 +00:00
|
|
|
3 => 3,
|
2009-10-13 19:44:38 +00:00
|
|
|
4 => 3,
|
2009-03-22 16:09:05 +00:00
|
|
|
5 => 5,
|
|
|
|
6 => 6,
|
|
|
|
7 => 7,
|
|
|
|
8 => 8,
|
|
|
|
9 => 9,
|
|
|
|
10 => 10,
|
|
|
|
11 => 11,
|
|
|
|
12 => 12,
|
|
|
|
13 => 13,
|
|
|
|
14 => 14,
|
2009-10-13 19:44:38 +00:00
|
|
|
15 => 14,
|
2009-03-22 16:09:05 +00:00
|
|
|
16 => 16,
|
|
|
|
17 => 17,
|
|
|
|
18 => 18,
|
|
|
|
19 => 19,
|
|
|
|
20 => 20,
|
|
|
|
21 => 21,
|
2009-05-05 17:19:33 +00:00
|
|
|
22 => 22,
|
2009-03-22 16:09:05 +00:00
|
|
|
23 => 23,
|
|
|
|
24 => 24,
|
2009-10-13 19:44:38 +00:00
|
|
|
30 => 24,
|
|
|
|
99 => 24,
|
|
|
|
144 => 24,
|
2009-04-05 14:49:27 +00:00
|
|
|
25 => 25,
|
2009-04-28 15:37:13 +00:00
|
|
|
26 => 26,
|
2009-05-05 17:19:33 +00:00
|
|
|
27 => 27,
|
2009-10-13 19:44:38 +00:00
|
|
|
28 => 28,
|
2009-09-29 16:23:35 +00:00
|
|
|
29 => 29,
|
2009-03-22 16:09:05 +00:00
|
|
|
31 => 31,
|
|
|
|
32 => 32,
|
|
|
|
33 => 33,
|
2009-04-05 14:49:27 +00:00
|
|
|
34 => 34,
|
2009-06-14 13:08:13 +00:00
|
|
|
35 => 35,
|
2009-10-13 19:44:38 +00:00
|
|
|
36 => 36,
|
2009-09-29 16:23:35 +00:00
|
|
|
37 => 37,
|
2009-10-13 19:44:38 +00:00
|
|
|
39 => 39,
|
2009-09-29 16:23:35 +00:00
|
|
|
40 => 40,
|
2009-05-09 12:44:43 +00:00
|
|
|
42 => 42,
|
2009-10-13 19:44:38 +00:00
|
|
|
43 => 43,
|
|
|
|
44 => 44,
|
|
|
|
50 => 50,
|
2009-05-09 12:44:43 +00:00
|
|
|
54 => 54,
|
2009-06-14 13:08:13 +00:00
|
|
|
55 => 55,
|
2009-10-13 19:44:38 +00:00
|
|
|
56 => 56,
|
|
|
|
58 => 56,
|
2009-09-29 16:23:35 +00:00
|
|
|
57 => 57,
|
2009-03-22 16:09:05 +00:00
|
|
|
59 => 59,
|
|
|
|
60 => 60,
|
|
|
|
61 => 61,
|
|
|
|
62 => 62,
|
2009-04-05 14:49:27 +00:00
|
|
|
63 => 63,
|
2009-05-09 12:44:43 +00:00
|
|
|
64 => 64,
|
2009-06-14 13:08:13 +00:00
|
|
|
65 => 65,
|
2009-08-21 14:50:34 +00:00
|
|
|
66 => 66,
|
2009-10-13 19:44:38 +00:00
|
|
|
67 => 67,
|
2009-09-29 16:23:35 +00:00
|
|
|
68 => 68,
|
2009-07-29 16:43:54 +00:00
|
|
|
69 => 69,
|
2009-10-13 19:44:38 +00:00
|
|
|
71 => 71,
|
2009-09-29 16:23:35 +00:00
|
|
|
72 => 72,
|
2009-04-18 14:46:29 +00:00
|
|
|
73 => 73,
|
2009-06-14 13:08:13 +00:00
|
|
|
75 => 75,
|
2009-10-13 19:44:38 +00:00
|
|
|
104 => 75,
|
2009-07-29 16:43:54 +00:00
|
|
|
76 => 76,
|
2009-08-21 14:50:34 +00:00
|
|
|
77 => 77,
|
2009-09-27 17:58:33 +00:00
|
|
|
78 => 78,
|
2009-10-13 19:44:38 +00:00
|
|
|
79 => 79,
|
|
|
|
82 => 79,
|
2009-09-29 16:23:35 +00:00
|
|
|
80 => 80,
|
2009-10-13 19:44:38 +00:00
|
|
|
81 => 81,
|
2009-04-05 14:49:27 +00:00
|
|
|
83 => 83,
|
2009-03-22 16:09:05 +00:00
|
|
|
85 => 85,
|
|
|
|
86 => 86,
|
2009-04-09 15:53:52 +00:00
|
|
|
87 => 87,
|
2009-10-13 19:44:38 +00:00
|
|
|
109 => 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-28 15:37:13 +00:00
|
|
|
91 => 91,
|
2009-06-14 13:08:13 +00:00
|
|
|
92 => 92,
|
2009-07-29 16:43:54 +00:00
|
|
|
93 => 93,
|
2009-08-21 14:50:34 +00:00
|
|
|
94 => 94,
|
2009-09-27 17:58:33 +00:00
|
|
|
95 => 95,
|
2009-10-13 19:44:38 +00:00
|
|
|
96 => 96,
|
2009-09-29 16:23:35 +00:00
|
|
|
97 => 97,
|
2009-07-29 16:43:54 +00:00
|
|
|
98 => 98,
|
2009-09-27 17:58:33 +00:00
|
|
|
100 => 100,
|
2009-10-13 19:44:38 +00:00
|
|
|
101 => 101,
|
2009-09-29 16:23:35 +00:00
|
|
|
102 => 102,
|
2009-09-27 17:58:33 +00:00
|
|
|
103 => 103,
|
2009-09-29 16:23:35 +00:00
|
|
|
105 => 105,
|
2009-10-13 19:44:38 +00:00
|
|
|
106 => 106,
|
2009-07-29 16:43:54 +00:00
|
|
|
108 => 108,
|
2009-09-27 17:58:33 +00:00
|
|
|
110 => 110,
|
2009-10-13 19:44:38 +00:00
|
|
|
111 => 111,
|
|
|
|
114 => 111,
|
|
|
|
125 => 111,
|
2009-09-29 16:23:35 +00:00
|
|
|
112 => 112,
|
2009-04-28 15:37:13 +00:00
|
|
|
113 => 113,
|
2009-07-29 16:43:54 +00:00
|
|
|
115 => 115,
|
2009-08-12 16:43:37 +00:00
|
|
|
116 => 116,
|
2009-09-27 17:58:33 +00:00
|
|
|
117 => 117,
|
2009-10-13 19:44:38 +00:00
|
|
|
122 => 117,
|
|
|
|
118 => 118,
|
|
|
|
121 => 118,
|
|
|
|
119 => 119,
|
|
|
|
124 => 119,
|
|
|
|
120 => 120,
|
|
|
|
123 => 120,
|
2009-04-14 12:41:07 +00:00
|
|
|
126 => 126,
|
2009-04-18 14:46:29 +00:00
|
|
|
127 => 127,
|
2009-04-28 15:37:13 +00:00
|
|
|
128 => 128,
|
2009-06-14 13:08:13 +00:00
|
|
|
129 => 129,
|
2009-08-12 16:43:37 +00:00
|
|
|
130 => 130,
|
2009-08-21 14:50:34 +00:00
|
|
|
131 => 131,
|
2009-09-19 13:22:32 +00:00
|
|
|
132 => 132,
|
2009-09-27 17:58:33 +00:00
|
|
|
133 => 133,
|
2009-10-05 18:55:22 +00:00
|
|
|
134 => 134,
|
2009-09-29 16:23:35 +00:00
|
|
|
135 => 135,
|
2009-10-13 19:44:38 +00:00
|
|
|
136 => 136,
|
2009-09-19 13:22:32 +00:00
|
|
|
137 => 137,
|
2009-09-27 17:58:33 +00:00
|
|
|
138 => 138,
|
2009-10-05 18:55:22 +00:00
|
|
|
140 => 140,
|
2009-10-13 19:44:38 +00:00
|
|
|
141 => 141,
|
|
|
|
142 => 142,
|
|
|
|
143 => 143,
|
2009-09-27 17:58:33 +00:00
|
|
|
147 => 147,
|
2009-10-05 18:55:22 +00:00
|
|
|
148 => 148,
|
2009-09-29 16:23:35 +00:00
|
|
|
149 => 149,
|
2009-10-13 19:44:38 +00:00
|
|
|
150 => 150,
|
2009-10-05 18:55:22 +00:00
|
|
|
151 => 151,
|
2009-10-13 19:44:38 +00:00
|
|
|
152 => 152,
|
|
|
|
154 => 154,
|
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>
|
|
|
|
*/
|
2009-09-29 16:23:35 +00:00
|
|
|
#line 79 "internal.templateparser.y"
|
2009-03-22 16:09:05 +00:00
|
|
|
function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
2009-10-13 19:44:38 +00:00
|
|
|
#line 1904 "internal.templateparser.php"
|
2009-09-29 16:23:35 +00:00
|
|
|
#line 85 "internal.templateparser.y"
|
|
|
|
function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
2009-10-13 19:44:38 +00:00
|
|
|
#line 1907 "internal.templateparser.php"
|
2009-09-29 16:23:35 +00:00
|
|
|
#line 87 "internal.templateparser.y"
|
|
|
|
function yy_r2(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-10-13 19:44:38 +00:00
|
|
|
#line 1910 "internal.templateparser.php"
|
2009-09-29 16:23:35 +00:00
|
|
|
#line 93 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r3(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s);
|
|
|
|
if ($this->compiler->has_code) {
|
2009-03-22 16:09:05 +00:00
|
|
|
$tmp =''; foreach ($this->prefix_code as $code) {$tmp.=$code;} $this->prefix_code=array();
|
2009-10-13 19:44:38 +00:00
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode($tmp.$s[0].$this->yystack[$this->yyidx + -1]->minor, $this->compiler,$this->nocache,true);
|
|
|
|
} else { $this->_retvalue = $s[0].$this->yystack[$this->yyidx + -1]->minor;} $this->nocache=false; }
|
|
|
|
#line 1917 "internal.templateparser.php"
|
2009-09-29 16:23:35 +00:00
|
|
|
#line 105 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r5(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0]; }
|
|
|
|
#line 1920 "internal.templateparser.php"
|
|
|
|
#line 108 "internal.templateparser.y"
|
|
|
|
function yy_r6(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s2); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->yystack[$this->yyidx + -1]->minor.$s2[0], $this->compiler,false,false); }
|
|
|
|
#line 1923 "internal.templateparser.php"
|
|
|
|
#line 110 "internal.templateparser.y"
|
|
|
|
function yy_r7(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->smarty->left_delimiter, $this->compiler,false,false); }
|
|
|
|
#line 1926 "internal.templateparser.php"
|
|
|
|
#line 112 "internal.templateparser.y"
|
|
|
|
function yy_r8(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->smarty->right_delimiter, $this->compiler,false,false); }
|
|
|
|
#line 1929 "internal.templateparser.php"
|
|
|
|
#line 114 "internal.templateparser.y"
|
|
|
|
function yy_r9(){if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU) {
|
2009-09-29 18:52:58 +00:00
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '<?php".str_replace("'","\'",$this->yystack[$this->yyidx + -1]->minor)."?>';?>\n", $this->compiler, false, false);
|
2009-09-29 16:23:35 +00:00
|
|
|
} elseif ($this->sec_obj->php_handling == SMARTY_PHP_QUOTE) {
|
2009-09-29 18:52:58 +00:00
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode(htmlspecialchars('<?php'.$this->yystack[$this->yyidx + -1]->minor.'?>', ENT_QUOTES), $this->compiler, false, false);
|
2009-09-29 16:23:35 +00:00
|
|
|
}elseif ($this->sec_obj->php_handling == SMARTY_PHP_ALLOW) {
|
2009-09-29 18:52:58 +00:00
|
|
|
$this->_retvalue = $this->cacher->processNocacheCode('<?php'.$this->yystack[$this->yyidx + -1]->minor.'?>', $this->compiler, false,true);
|
2009-09-29 16:23:35 +00:00
|
|
|
}elseif ($this->sec_obj->php_handling == SMARTY_PHP_REMOVE) {
|
2009-03-22 16:09:05 +00:00
|
|
|
$this->_retvalue = '';
|
2009-09-29 16:23:35 +00:00
|
|
|
}
|
|
|
|
}
|
2009-10-13 19:44:38 +00:00
|
|
|
#line 1941 "internal.templateparser.php"
|
|
|
|
#line 125 "internal.templateparser.y"
|
|
|
|
function yy_r10(){preg_match('/\s*/',$this->yystack[$this->yyidx + -3]->minor,$s); $this->_retvalue = $s[0];
|
2009-09-29 16:23:35 +00:00
|
|
|
if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU || $this->sec_obj->php_handling == SMARTY_PHP_ALLOW) {
|
|
|
|
$this->_retvalue .= $this->cacher->processNocacheCode("<?php echo '<?=$".$this->yystack[$this->yyidx + -1]->minor."?>'?>\n", $this->compiler, false, false);
|
|
|
|
} elseif ($this->sec_obj->php_handling == SMARTY_PHP_QUOTE) {
|
|
|
|
$this->_retvalue .= $this->cacher->processNocacheCode(htmlspecialchars('<?=$'.$this->yystack[$this->yyidx + -1]->minor.'?>', ENT_QUOTES), $this->compiler, false, false);
|
|
|
|
}elseif ($this->sec_obj == SMARTY_PHP_REMOVE) {
|
|
|
|
$this->_retvalue .= '';
|
|
|
|
}
|
|
|
|
}
|
2009-10-13 19:44:38 +00:00
|
|
|
#line 1952 "internal.templateparser.php"
|
|
|
|
#line 136 "internal.templateparser.y"
|
|
|
|
function yy_r11(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode("<?php echo '<?xml';?>", $this->compiler, true, true); }
|
|
|
|
#line 1955 "internal.templateparser.php"
|
|
|
|
#line 137 "internal.templateparser.y"
|
|
|
|
function yy_r12(){$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '?>';?>\n", $this->compiler, true, true); }
|
|
|
|
#line 1958 "internal.templateparser.php"
|
2009-09-29 16:23:35 +00:00
|
|
|
#line 139 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r13(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false,false); }
|
|
|
|
#line 1961 "internal.templateparser.php"
|
|
|
|
#line 146 "internal.templateparser.y"
|
|
|
|
function yy_r14(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); }
|
|
|
|
#line 1964 "internal.templateparser.php"
|
|
|
|
#line 150 "internal.templateparser.y"
|
|
|
|
function yy_r16(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor)); }
|
|
|
|
#line 1967 "internal.templateparser.php"
|
|
|
|
#line 152 "internal.templateparser.y"
|
|
|
|
function yy_r17(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
|
|
|
|
#line 1970 "internal.templateparser.php"
|
|
|
|
#line 154 "internal.templateparser.y"
|
|
|
|
function yy_r18(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); }
|
|
|
|
#line 1973 "internal.templateparser.php"
|
|
|
|
#line 156 "internal.templateparser.y"
|
|
|
|
function yy_r19(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor).'<?php echo ';
|
|
|
|
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -2]->minor[0],'modifier')) {
|
|
|
|
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>";
|
2009-03-22 16:09:05 +00:00
|
|
|
} else {
|
2009-10-13 19:44:38 +00:00
|
|
|
if (is_callable($this->yystack[$this->yyidx + -2]->minor[0])) {
|
|
|
|
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -2]->minor[0], $this->compiler)) {
|
|
|
|
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>";
|
2009-03-22 16:09:05 +00:00
|
|
|
}
|
|
|
|
} else {
|
2009-10-13 19:44:38 +00:00
|
|
|
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -2]->minor[0] . "\"");
|
2009-03-22 16:09:05 +00:00
|
|
|
}
|
|
|
|
}
|
2009-08-27 14:59:28 +00:00
|
|
|
}
|
2009-10-13 19:44:38 +00:00
|
|
|
#line 1988 "internal.templateparser.php"
|
2009-10-04 18:12:30 +00:00
|
|
|
#line 170 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r20(){if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) {
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -2]->minor . "\"");
|
2009-05-05 17:19:33 +00:00
|
|
|
}
|
2009-10-13 19:44:38 +00:00
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); }
|
|
|
|
#line 1994 "internal.templateparser.php"
|
|
|
|
#line 174 "internal.templateparser.y"
|
|
|
|
function yy_r21(){ if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) {
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -2]->minor . "\"");
|
2009-05-05 17:19:33 +00:00
|
|
|
}
|
2009-10-13 19:44:38 +00:00
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,array('if condition'=>$this->yystack[$this->yyidx + 0]->minor)); }
|
|
|
|
#line 2000 "internal.templateparser.php"
|
|
|
|
#line 179 "internal.templateparser.y"
|
|
|
|
function yy_r22(){
|
|
|
|
if ($this->yystack[$this->yyidx + -8]->minor != 'for') {
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -8]->minor . "\"");
|
2009-05-05 17:19:33 +00:00
|
|
|
}
|
2009-10-13 19:44:38 +00:00
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -8]->minor,array('start'=>$this->yystack[$this->yyidx + -6]->minor,'ifexp'=>$this->yystack[$this->yyidx + -4]->minor,'varloop'=>$this->yystack[$this->yyidx + -1]->minor,'loop'=>$this->yystack[$this->yyidx + 0]->minor)); }
|
|
|
|
#line 2007 "internal.templateparser.php"
|
|
|
|
#line 184 "internal.templateparser.y"
|
|
|
|
function yy_r23(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2010 "internal.templateparser.php"
|
|
|
|
#line 185 "internal.templateparser.y"
|
|
|
|
function yy_r24(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2013 "internal.templateparser.php"
|
|
|
|
#line 187 "internal.templateparser.y"
|
|
|
|
function yy_r25(){
|
|
|
|
if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') {
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\"");
|
|
|
|
}
|
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor)); }
|
|
|
|
#line 2020 "internal.templateparser.php"
|
2009-10-04 18:12:30 +00:00
|
|
|
#line 192 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r26(){
|
|
|
|
if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') {
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\"");
|
|
|
|
}
|
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor)); }
|
|
|
|
#line 2027 "internal.templateparser.php"
|
2009-10-04 18:12:30 +00:00
|
|
|
#line 199 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r27(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',$this->yystack[$this->yyidx + 0]->minor); }
|
|
|
|
#line 2030 "internal.templateparser.php"
|
|
|
|
#line 201 "internal.templateparser.y"
|
|
|
|
function yy_r28(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + 0]->minor)); }
|
|
|
|
#line 2033 "internal.templateparser.php"
|
|
|
|
#line 208 "internal.templateparser.y"
|
|
|
|
function yy_r29(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
|
|
|
|
#line 2036 "internal.templateparser.php"
|
2009-10-04 18:12:30 +00:00
|
|
|
#line 212 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r31(){ $this->_retvalue = array(); }
|
|
|
|
#line 2039 "internal.templateparser.php"
|
2009-10-04 18:12:30 +00:00
|
|
|
#line 215 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r32(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); }
|
|
|
|
#line 2042 "internal.templateparser.php"
|
|
|
|
#line 216 "internal.templateparser.y"
|
|
|
|
function yy_r33(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); }
|
|
|
|
#line 2045 "internal.templateparser.php"
|
2009-10-04 18:12:30 +00:00
|
|
|
#line 221 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r34(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); }
|
|
|
|
#line 2048 "internal.templateparser.php"
|
|
|
|
#line 222 "internal.templateparser.y"
|
|
|
|
function yy_r35(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; }
|
|
|
|
#line 2051 "internal.templateparser.php"
|
|
|
|
#line 224 "internal.templateparser.y"
|
|
|
|
function yy_r36(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); }
|
|
|
|
#line 2054 "internal.templateparser.php"
|
|
|
|
#line 230 "internal.templateparser.y"
|
|
|
|
function yy_r37(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
|
|
|
|
#line 2057 "internal.templateparser.php"
|
|
|
|
#line 234 "internal.templateparser.y"
|
|
|
|
function yy_r39(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; }
|
|
|
|
#line 2060 "internal.templateparser.php"
|
|
|
|
#line 235 "internal.templateparser.y"
|
|
|
|
function yy_r40(){
|
2009-03-22 16:09:05 +00:00
|
|
|
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -1]->minor[0],'modifier')) {
|
2009-08-27 14:59:28 +00:00
|
|
|
$this->_retvalue = "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -1]->minor[0] . "',array(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor. "),".$this->yystack[$this->yyidx + -1]->minor[1].")";
|
2009-03-22 16:09:05 +00:00
|
|
|
} else {
|
2009-08-27 14:59:28 +00:00
|
|
|
if (is_callable($this->yystack[$this->yyidx + -1]->minor[0])) {
|
2009-03-22 16:09:05 +00:00
|
|
|
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -1]->minor[0], $this->compiler)) {
|
2009-08-27 14:59:28 +00:00
|
|
|
$this->_retvalue = "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -1]->minor[0] . "',array(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor. "),".$this->yystack[$this->yyidx + -1]->minor[1].")";
|
2009-03-22 16:09:05 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -1]->minor[0] . "\"");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2009-10-13 19:44:38 +00:00
|
|
|
#line 2075 "internal.templateparser.php"
|
|
|
|
#line 252 "internal.templateparser.y"
|
|
|
|
function yy_r42(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2078 "internal.templateparser.php"
|
|
|
|
#line 254 "internal.templateparser.y"
|
|
|
|
function yy_r43(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2081 "internal.templateparser.php"
|
|
|
|
#line 256 "internal.templateparser.y"
|
|
|
|
function yy_r44(){ $this->_retvalue = '('. $this->yystack[$this->yyidx + -2]->minor . ').(' . $this->yystack[$this->yyidx + 0]->minor. ')'; }
|
|
|
|
#line 2084 "internal.templateparser.php"
|
|
|
|
#line 276 "internal.templateparser.y"
|
|
|
|
function yy_r50(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2087 "internal.templateparser.php"
|
2009-09-29 16:23:35 +00:00
|
|
|
#line 284 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r54(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
|
|
|
|
#line 2090 "internal.templateparser.php"
|
2009-10-04 18:12:30 +00:00
|
|
|
#line 286 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r55(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; }
|
|
|
|
#line 2093 "internal.templateparser.php"
|
2009-09-27 17:58:33 +00:00
|
|
|
#line 287 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r56(){ $this->_retvalue = "''"; }
|
|
|
|
#line 2096 "internal.templateparser.php"
|
2009-09-26 23:06:57 +00:00
|
|
|
#line 289 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r57(){ $this->_retvalue = '"'.$this->yystack[$this->yyidx + -1]->minor.'"'; }
|
|
|
|
#line 2099 "internal.templateparser.php"
|
|
|
|
#line 292 "internal.templateparser.y"
|
|
|
|
function yy_r59(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2102 "internal.templateparser.php"
|
2009-09-29 16:23:35 +00:00
|
|
|
#line 293 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r60(){ $this->prefix_number++; $this->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -3]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -1]->minor .')'; }
|
|
|
|
#line 2105 "internal.templateparser.php"
|
2009-10-04 18:12:30 +00:00
|
|
|
#line 295 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r61(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2108 "internal.templateparser.php"
|
|
|
|
#line 296 "internal.templateparser.y"
|
|
|
|
function yy_r62(){ $this->prefix_number++; $this->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -4]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -7]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -2]->minor .')'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2111 "internal.templateparser.php"
|
|
|
|
#line 298 "internal.templateparser.y"
|
|
|
|
function yy_r63(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2114 "internal.templateparser.php"
|
|
|
|
#line 300 "internal.templateparser.y"
|
|
|
|
function yy_r64(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2117 "internal.templateparser.php"
|
|
|
|
#line 302 "internal.templateparser.y"
|
|
|
|
function yy_r65(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.'::$'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2120 "internal.templateparser.php"
|
2009-10-04 18:12:30 +00:00
|
|
|
#line 304 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r66(){ $this->prefix_number++; $this->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + -1]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; }
|
|
|
|
#line 2123 "internal.templateparser.php"
|
|
|
|
#line 310 "internal.templateparser.y"
|
|
|
|
function yy_r67(){ $this->_retvalue = '$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + 0]->minor .'\')->value'; $this->nocache=$this->template->getVariable('$this->yystack[$this->yyidx + 0]->minor')->nocache; }
|
|
|
|
#line 2126 "internal.templateparser.php"
|
2009-10-04 18:12:30 +00:00
|
|
|
#line 312 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r68(){if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('internal_smarty_var',$this->yystack[$this->yyidx + 0]->minor['index']);} else {
|
|
|
|
$this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + 0]->minor['var'] .')->value'.$this->yystack[$this->yyidx + 0]->minor['index']; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor['var'],"'"))->nocache;} }
|
|
|
|
#line 2130 "internal.templateparser.php"
|
|
|
|
#line 315 "internal.templateparser.y"
|
|
|
|
function yy_r69(){ $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + -2]->minor,"'"))->nocache; }
|
|
|
|
#line 2133 "internal.templateparser.php"
|
|
|
|
#line 319 "internal.templateparser.y"
|
|
|
|
function yy_r71(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; }
|
|
|
|
#line 2136 "internal.templateparser.php"
|
2009-10-04 18:12:30 +00:00
|
|
|
#line 320 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r72(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; }
|
|
|
|
#line 2139 "internal.templateparser.php"
|
|
|
|
#line 323 "internal.templateparser.y"
|
|
|
|
function yy_r73(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); }
|
|
|
|
#line 2142 "internal.templateparser.php"
|
|
|
|
#line 331 "internal.templateparser.y"
|
|
|
|
function yy_r75(){return; }
|
|
|
|
#line 2145 "internal.templateparser.php"
|
|
|
|
#line 335 "internal.templateparser.y"
|
|
|
|
function yy_r76(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; }
|
|
|
|
#line 2148 "internal.templateparser.php"
|
|
|
|
#line 336 "internal.templateparser.y"
|
|
|
|
function yy_r77(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; }
|
|
|
|
#line 2151 "internal.templateparser.php"
|
|
|
|
#line 337 "internal.templateparser.y"
|
|
|
|
function yy_r78(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; }
|
|
|
|
#line 2154 "internal.templateparser.php"
|
|
|
|
#line 338 "internal.templateparser.y"
|
|
|
|
function yy_r79(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; }
|
|
|
|
#line 2157 "internal.templateparser.php"
|
|
|
|
#line 340 "internal.templateparser.y"
|
|
|
|
function yy_r80(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; }
|
|
|
|
#line 2160 "internal.templateparser.php"
|
|
|
|
#line 341 "internal.templateparser.y"
|
|
|
|
function yy_r81(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; }
|
|
|
|
#line 2163 "internal.templateparser.php"
|
|
|
|
#line 345 "internal.templateparser.y"
|
|
|
|
function yy_r83(){$this->_retvalue = ''; }
|
|
|
|
#line 2166 "internal.templateparser.php"
|
|
|
|
#line 353 "internal.templateparser.y"
|
|
|
|
function yy_r85(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2169 "internal.templateparser.php"
|
|
|
|
#line 355 "internal.templateparser.y"
|
|
|
|
function yy_r86(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
|
|
|
|
#line 2172 "internal.templateparser.php"
|
|
|
|
#line 357 "internal.templateparser.y"
|
|
|
|
function yy_r87(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2175 "internal.templateparser.php"
|
|
|
|
#line 362 "internal.templateparser.y"
|
|
|
|
function yy_r88(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('internal_smarty_var',$this->yystack[$this->yyidx + -1]->minor['index']).$this->yystack[$this->yyidx + 0]->minor;} else {
|
2009-09-26 10:32:36 +00:00
|
|
|
$this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -1]->minor['var'] .')->value'.$this->yystack[$this->yyidx + -1]->minor['index'].$this->yystack[$this->yyidx + 0]->minor; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"))->nocache;} }
|
2009-10-13 19:44:38 +00:00
|
|
|
#line 2179 "internal.templateparser.php"
|
|
|
|
#line 365 "internal.templateparser.y"
|
|
|
|
function yy_r89(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2182 "internal.templateparser.php"
|
|
|
|
#line 367 "internal.templateparser.y"
|
|
|
|
function yy_r90(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2185 "internal.templateparser.php"
|
2009-10-04 18:12:30 +00:00
|
|
|
#line 369 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r91(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2188 "internal.templateparser.php"
|
|
|
|
#line 370 "internal.templateparser.y"
|
|
|
|
function yy_r92(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
|
|
|
|
#line 2191 "internal.templateparser.php"
|
|
|
|
#line 371 "internal.templateparser.y"
|
|
|
|
function yy_r93(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
|
|
|
|
#line 2194 "internal.templateparser.php"
|
|
|
|
#line 372 "internal.templateparser.y"
|
|
|
|
function yy_r94(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
|
|
|
|
#line 2197 "internal.templateparser.php"
|
|
|
|
#line 374 "internal.templateparser.y"
|
|
|
|
function yy_r95(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2200 "internal.templateparser.php"
|
|
|
|
#line 380 "internal.templateparser.y"
|
|
|
|
function yy_r96(){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-10-13 19:44:38 +00:00
|
|
|
#line 2209 "internal.templateparser.php"
|
|
|
|
#line 391 "internal.templateparser.y"
|
|
|
|
function yy_r97(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
|
|
|
|
#line 2212 "internal.templateparser.php"
|
|
|
|
#line 395 "internal.templateparser.y"
|
|
|
|
function yy_r98(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2215 "internal.templateparser.php"
|
|
|
|
#line 399 "internal.templateparser.y"
|
|
|
|
function yy_r100(){ return; }
|
|
|
|
#line 2218 "internal.templateparser.php"
|
|
|
|
#line 404 "internal.templateparser.y"
|
|
|
|
function yy_r101(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); }
|
|
|
|
#line 2221 "internal.templateparser.php"
|
2009-10-04 18:12:30 +00:00
|
|
|
#line 405 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r102(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); }
|
|
|
|
#line 2224 "internal.templateparser.php"
|
|
|
|
#line 417 "internal.templateparser.y"
|
|
|
|
function yy_r103(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2227 "internal.templateparser.php"
|
2009-09-29 16:23:35 +00:00
|
|
|
#line 421 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r105(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2230 "internal.templateparser.php"
|
|
|
|
#line 422 "internal.templateparser.y"
|
|
|
|
function yy_r106(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
|
|
|
|
#line 2233 "internal.templateparser.php"
|
|
|
|
#line 429 "internal.templateparser.y"
|
|
|
|
function yy_r108(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2236 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 434 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r110(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2239 "internal.templateparser.php"
|
|
|
|
#line 435 "internal.templateparser.y"
|
|
|
|
function yy_r111(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2242 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 436 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r112(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2245 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 437 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r113(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2248 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 439 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r115(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2251 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 440 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r116(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2254 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 441 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r117(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2257 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 442 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r118(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2260 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 443 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r119(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2263 "internal.templateparser.php"
|
|
|
|
#line 444 "internal.templateparser.y"
|
|
|
|
function yy_r120(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2266 "internal.templateparser.php"
|
|
|
|
#line 450 "internal.templateparser.y"
|
|
|
|
function yy_r126(){$this->prefix_number++; $this->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'='.$this->yystack[$this->yyidx + 0]->minor.';?>'; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.'$_tmp'.$this->prefix_number; }
|
|
|
|
#line 2269 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 452 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r127(){$this->_retvalue = '=='; }
|
|
|
|
#line 2272 "internal.templateparser.php"
|
|
|
|
#line 453 "internal.templateparser.y"
|
|
|
|
function yy_r128(){$this->_retvalue = '!='; }
|
|
|
|
#line 2275 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 454 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r129(){$this->_retvalue = '>'; }
|
|
|
|
#line 2278 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 455 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r130(){$this->_retvalue = '<'; }
|
|
|
|
#line 2281 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 456 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r131(){$this->_retvalue = '>='; }
|
|
|
|
#line 2284 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 457 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r132(){$this->_retvalue = '<='; }
|
|
|
|
#line 2287 "internal.templateparser.php"
|
|
|
|
#line 458 "internal.templateparser.y"
|
|
|
|
function yy_r133(){$this->_retvalue = '==='; }
|
|
|
|
#line 2290 "internal.templateparser.php"
|
|
|
|
#line 459 "internal.templateparser.y"
|
|
|
|
function yy_r134(){$this->_retvalue = '!=='; }
|
|
|
|
#line 2293 "internal.templateparser.php"
|
|
|
|
#line 461 "internal.templateparser.y"
|
|
|
|
function yy_r135(){$this->_retvalue = '&&'; }
|
|
|
|
#line 2296 "internal.templateparser.php"
|
|
|
|
#line 462 "internal.templateparser.y"
|
|
|
|
function yy_r136(){$this->_retvalue = '||'; }
|
|
|
|
#line 2299 "internal.templateparser.php"
|
|
|
|
#line 463 "internal.templateparser.y"
|
|
|
|
function yy_r137(){$this->_retvalue = ' XOR '; }
|
|
|
|
#line 2302 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 468 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r138(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2305 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 470 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r140(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2308 "internal.templateparser.php"
|
|
|
|
#line 471 "internal.templateparser.y"
|
|
|
|
function yy_r141(){ return; }
|
|
|
|
#line 2311 "internal.templateparser.php"
|
2009-10-05 18:55:22 +00:00
|
|
|
#line 472 "internal.templateparser.y"
|
2009-10-13 19:44:38 +00:00
|
|
|
function yy_r142(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2314 "internal.templateparser.php"
|
|
|
|
#line 473 "internal.templateparser.y"
|
|
|
|
function yy_r143(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2317 "internal.templateparser.php"
|
|
|
|
#line 481 "internal.templateparser.y"
|
|
|
|
function yy_r147(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; }
|
|
|
|
#line 2320 "internal.templateparser.php"
|
|
|
|
#line 482 "internal.templateparser.y"
|
|
|
|
function yy_r148(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; }
|
|
|
|
#line 2323 "internal.templateparser.php"
|
|
|
|
#line 483 "internal.templateparser.y"
|
|
|
|
function yy_r149(){$this->_retvalue = '".'.'$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + 0]->minor .'\')->value'.'."'; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"))->nocache; }
|
|
|
|
#line 2326 "internal.templateparser.php"
|
|
|
|
#line 484 "internal.templateparser.y"
|
|
|
|
function yy_r150(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0].'".('.$this->yystack[$this->yyidx + -1]->minor.')."'; }
|
|
|
|
#line 2329 "internal.templateparser.php"
|
|
|
|
#line 485 "internal.templateparser.y"
|
|
|
|
function yy_r151(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->prefix_number++; $this->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + -1]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = $s[0].'".$_tmp'.$this->prefix_number.'."'; }
|
|
|
|
#line 2332 "internal.templateparser.php"
|
|
|
|
#line 486 "internal.templateparser.y"
|
|
|
|
function yy_r152(){$this->_retvalue = '$'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2335 "internal.templateparser.php"
|
|
|
|
#line 488 "internal.templateparser.y"
|
|
|
|
function yy_r154(){$this->_retvalue = '`'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2338 "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)
|
|
|
|
{
|
2009-09-29 16:23:35 +00:00
|
|
|
#line 60 "internal.templateparser.y"
|
2009-03-22 16:09:05 +00:00
|
|
|
|
|
|
|
$this->internalError = true;
|
|
|
|
$this->yymajor = $yymajor;
|
|
|
|
$this->compiler->trigger_template_error();
|
2009-10-13 19:44:38 +00:00
|
|
|
#line 2456 "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 */
|
2009-09-29 16:23:35 +00:00
|
|
|
#line 52 "internal.templateparser.y"
|
2009-03-22 16:09:05 +00:00
|
|
|
|
|
|
|
$this->successful = !$this->internalError;
|
|
|
|
$this->internalError = false;
|
|
|
|
$this->retvalue = $this->_retvalue;
|
|
|
|
//echo $this->retvalue."\n\n";
|
2009-10-13 19:44:38 +00:00
|
|
|
#line 2481 "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);
|
|
|
|
}
|
|
|
|
}
|