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;
|
2009-10-19 20:25:47 +00:00
|
|
|
$this->compiler->has_variable_string = false;
|
2009-03-22 16:09:05 +00:00
|
|
|
$this->nocache = false;
|
2009-10-20 17:09:22 +00:00
|
|
|
$this->compiler->prefix_code = array();
|
2009-03-22 16:09:05 +00:00
|
|
|
$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-10-19 20:25:47 +00:00
|
|
|
#line 148 "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;
|
2009-10-15 21:00:23 +00:00
|
|
|
const TP_QMARK = 70;
|
2009-10-21 15:19:00 +00:00
|
|
|
const YY_NO_ACTION = 481;
|
|
|
|
const YY_ACCEPT_ACTION = 480;
|
|
|
|
const YY_ERROR_ACTION = 479;
|
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-21 15:19:00 +00:00
|
|
|
const YY_SZ_ACTTAB = 1085;
|
2009-03-22 16:09:05 +00:00
|
|
|
static public $yy_action = array(
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 0 */ 276, 282, 283, 8, 11, 277, 274, 7, 12, 280,
|
|
|
|
/* 10 */ 281, 4, 3, 28, 276, 282, 283, 8, 11, 277,
|
|
|
|
/* 20 */ 274, 7, 12, 280, 281, 4, 3, 183, 173, 276,
|
|
|
|
/* 30 */ 282, 283, 8, 11, 277, 274, 7, 12, 280, 281,
|
|
|
|
/* 40 */ 4, 3, 62, 289, 124, 62, 28, 24, 73, 291,
|
|
|
|
/* 50 */ 170, 73, 254, 255, 78, 254, 255, 213, 210, 65,
|
|
|
|
/* 60 */ 178, 214, 5, 69, 287, 76, 297, 74, 50, 226,
|
|
|
|
/* 70 */ 227, 127, 2, 271, 182, 176, 13, 250, 14, 23,
|
|
|
|
/* 80 */ 25, 14, 220, 207, 17, 40, 207, 67, 40, 192,
|
|
|
|
/* 90 */ 69, 240, 50, 58, 62, 50, 58, 287, 228, 166,
|
|
|
|
/* 100 */ 73, 128, 158, 153, 254, 255, 241, 78, 276, 282,
|
|
|
|
/* 110 */ 283, 8, 11, 277, 274, 7, 12, 280, 281, 4,
|
|
|
|
/* 120 */ 3, 232, 222, 347, 42, 184, 271, 62, 23, 78,
|
|
|
|
/* 130 */ 62, 262, 161, 73, 18, 207, 73, 254, 255, 69,
|
|
|
|
/* 140 */ 254, 255, 311, 249, 50, 58, 10, 5, 271, 62,
|
|
|
|
/* 150 */ 217, 167, 28, 125, 38, 73, 244, 245, 258, 254,
|
|
|
|
/* 160 */ 255, 13, 150, 14, 23, 270, 14, 263, 207, 246,
|
|
|
|
/* 170 */ 40, 207, 64, 40, 171, 67, 131, 50, 58, 26,
|
|
|
|
/* 180 */ 50, 58, 350, 23, 157, 14, 25, 45, 161, 265,
|
|
|
|
/* 190 */ 207, 62, 40, 69, 67, 244, 245, 73, 50, 50,
|
|
|
|
/* 200 */ 58, 254, 255, 287, 16, 264, 166, 20, 246, 16,
|
|
|
|
/* 210 */ 62, 28, 122, 62, 28, 22, 73, 109, 51, 73,
|
|
|
|
/* 220 */ 254, 255, 109, 254, 255, 9, 16, 14, 240, 190,
|
|
|
|
/* 230 */ 206, 43, 207, 350, 40, 141, 67, 252, 33, 109,
|
|
|
|
/* 240 */ 263, 50, 58, 241, 23, 161, 14, 23, 166, 14,
|
|
|
|
/* 250 */ 1, 207, 161, 40, 207, 69, 40, 192, 69, 22,
|
|
|
|
/* 260 */ 50, 58, 287, 50, 58, 287, 62, 163, 336, 36,
|
|
|
|
/* 270 */ 167, 189, 73, 57, 230, 78, 254, 255, 89, 202,
|
|
|
|
/* 280 */ 162, 189, 240, 165, 180, 78, 105, 44, 256, 15,
|
|
|
|
/* 290 */ 43, 238, 19, 253, 271, 62, 35, 241, 256, 279,
|
|
|
|
/* 300 */ 9, 73, 14, 161, 271, 254, 255, 207, 16, 40,
|
|
|
|
/* 310 */ 189, 67, 16, 34, 78, 216, 50, 58, 480, 96,
|
|
|
|
/* 320 */ 211, 109, 293, 45, 206, 109, 240, 256, 160, 23,
|
|
|
|
/* 330 */ 155, 14, 198, 271, 234, 46, 207, 225, 40, 161,
|
|
|
|
/* 340 */ 67, 241, 32, 172, 1, 50, 58, 36, 151, 43,
|
|
|
|
/* 350 */ 39, 247, 159, 299, 305, 306, 303, 309, 307, 304,
|
|
|
|
/* 360 */ 310, 308, 243, 240, 39, 44, 292, 209, 305, 306,
|
|
|
|
/* 370 */ 303, 309, 307, 304, 310, 308, 161, 292, 241, 62,
|
|
|
|
/* 380 */ 30, 69, 100, 61, 161, 73, 50, 161, 266, 254,
|
|
|
|
/* 390 */ 255, 179, 78, 115, 161, 161, 39, 273, 273, 161,
|
|
|
|
/* 400 */ 305, 306, 303, 309, 307, 304, 310, 308, 223, 161,
|
|
|
|
/* 410 */ 140, 271, 186, 23, 156, 14, 69, 174, 152, 28,
|
|
|
|
/* 420 */ 207, 50, 197, 251, 69, 204, 52, 161, 177, 50,
|
|
|
|
/* 430 */ 58, 203, 171, 191, 188, 63, 167, 54, 82, 66,
|
|
|
|
/* 440 */ 118, 161, 29, 288, 244, 245, 208, 260, 300, 189,
|
|
|
|
/* 450 */ 105, 57, 256, 78, 138, 132, 93, 246, 271, 152,
|
|
|
|
/* 460 */ 240, 195, 300, 103, 105, 161, 256, 251, 251, 189,
|
|
|
|
/* 470 */ 201, 55, 271, 78, 146, 241, 85, 279, 152, 233,
|
|
|
|
/* 480 */ 259, 195, 300, 106, 105, 275, 256, 251, 72, 189,
|
|
|
|
/* 490 */ 68, 57, 271, 78, 142, 147, 95, 279, 237, 154,
|
|
|
|
/* 500 */ 47, 195, 300, 102, 105, 273, 256, 251, 251, 189,
|
|
|
|
/* 510 */ 60, 57, 271, 78, 161, 97, 90, 279, 237, 171,
|
|
|
|
/* 520 */ 259, 195, 300, 37, 105, 273, 256, 189, 171, 57,
|
|
|
|
/* 530 */ 224, 78, 271, 134, 88, 171, 230, 279, 237, 195,
|
|
|
|
/* 540 */ 300, 189, 105, 56, 256, 78, 251, 59, 84, 152,
|
|
|
|
/* 550 */ 271, 15, 101, 195, 300, 279, 105, 139, 256, 298,
|
|
|
|
/* 560 */ 268, 189, 273, 113, 271, 78, 290, 120, 112, 279,
|
|
|
|
/* 570 */ 251, 212, 143, 260, 300, 62, 105, 263, 256, 236,
|
|
|
|
/* 580 */ 288, 73, 273, 273, 271, 254, 255, 237, 130, 137,
|
|
|
|
/* 590 */ 160, 20, 164, 295, 145, 231, 215, 46, 205, 263,
|
|
|
|
/* 600 */ 285, 251, 251, 185, 27, 77, 189, 71, 57, 23,
|
|
|
|
/* 610 */ 78, 175, 75, 94, 181, 80, 207, 278, 195, 300,
|
|
|
|
/* 620 */ 69, 105, 229, 256, 189, 50, 58, 267, 78, 271,
|
|
|
|
/* 630 */ 31, 269, 168, 189, 279, 57, 261, 78, 83, 272,
|
|
|
|
/* 640 */ 87, 256, 19, 258, 42, 195, 300, 271, 105, 257,
|
|
|
|
/* 650 */ 256, 248, 200, 189, 169, 57, 271, 78, 219, 242,
|
|
|
|
/* 660 */ 91, 279, 221, 111, 239, 195, 300, 288, 105, 21,
|
|
|
|
/* 670 */ 256, 270, 41, 189, 110, 57, 271, 78, 6, 286,
|
|
|
|
/* 680 */ 86, 279, 49, 187, 81, 195, 300, 37, 105, 48,
|
|
|
|
/* 690 */ 256, 235, 70, 189, 259, 57, 271, 78, 283, 284,
|
|
|
|
/* 700 */ 92, 279, 283, 283, 283, 195, 300, 283, 105, 283,
|
|
|
|
/* 710 */ 256, 283, 283, 283, 283, 189, 271, 53, 79, 78,
|
|
|
|
/* 720 */ 283, 279, 283, 283, 283, 283, 283, 260, 300, 283,
|
|
|
|
/* 730 */ 105, 283, 256, 189, 283, 129, 218, 78, 271, 283,
|
|
|
|
/* 740 */ 283, 283, 283, 283, 283, 260, 300, 283, 105, 199,
|
|
|
|
/* 750 */ 256, 283, 283, 189, 283, 119, 271, 66, 283, 283,
|
|
|
|
/* 760 */ 189, 283, 108, 283, 78, 260, 300, 283, 105, 283,
|
|
|
|
/* 770 */ 256, 283, 260, 300, 283, 105, 271, 256, 283, 283,
|
|
|
|
/* 780 */ 196, 283, 283, 271, 283, 189, 283, 108, 283, 78,
|
|
|
|
/* 790 */ 283, 283, 283, 283, 283, 283, 283, 260, 300, 189,
|
|
|
|
/* 800 */ 105, 108, 256, 78, 283, 301, 283, 283, 271, 283,
|
|
|
|
/* 810 */ 283, 260, 300, 189, 105, 113, 256, 78, 283, 194,
|
|
|
|
/* 820 */ 283, 283, 271, 283, 283, 260, 300, 283, 105, 189,
|
|
|
|
/* 830 */ 256, 108, 283, 78, 283, 283, 271, 283, 283, 283,
|
|
|
|
/* 840 */ 283, 260, 300, 283, 105, 294, 256, 283, 283, 193,
|
|
|
|
/* 850 */ 283, 283, 271, 189, 283, 133, 283, 78, 283, 283,
|
|
|
|
/* 860 */ 189, 283, 117, 283, 78, 260, 300, 189, 105, 116,
|
|
|
|
/* 870 */ 256, 78, 260, 300, 283, 105, 271, 256, 283, 260,
|
|
|
|
/* 880 */ 300, 283, 105, 271, 256, 189, 283, 121, 283, 78,
|
|
|
|
/* 890 */ 271, 283, 189, 283, 148, 283, 78, 260, 300, 189,
|
|
|
|
/* 900 */ 105, 123, 256, 78, 260, 300, 283, 105, 271, 256,
|
|
|
|
/* 910 */ 283, 260, 300, 283, 105, 271, 256, 283, 283, 283,
|
|
|
|
/* 920 */ 283, 189, 271, 126, 283, 78, 283, 283, 283, 283,
|
|
|
|
/* 930 */ 283, 283, 283, 260, 300, 189, 105, 135, 256, 78,
|
|
|
|
/* 940 */ 283, 283, 283, 283, 271, 283, 283, 260, 300, 189,
|
|
|
|
/* 950 */ 105, 149, 256, 78, 283, 283, 283, 283, 271, 283,
|
|
|
|
/* 960 */ 283, 260, 300, 189, 105, 114, 256, 78, 283, 283,
|
|
|
|
/* 970 */ 283, 283, 271, 283, 283, 260, 300, 189, 105, 136,
|
|
|
|
/* 980 */ 256, 78, 283, 283, 283, 283, 271, 283, 283, 260,
|
|
|
|
/* 990 */ 300, 189, 105, 144, 256, 78, 283, 283, 283, 283,
|
|
|
|
/* 1000 */ 271, 283, 283, 260, 300, 189, 105, 107, 256, 78,
|
|
|
|
/* 1010 */ 283, 283, 283, 283, 271, 283, 283, 260, 300, 189,
|
|
|
|
/* 1020 */ 105, 283, 256, 78, 283, 283, 283, 283, 271, 283,
|
|
|
|
/* 1030 */ 283, 260, 300, 189, 104, 283, 256, 78, 283, 283,
|
|
|
|
/* 1040 */ 283, 283, 271, 283, 283, 260, 300, 189, 99, 283,
|
|
|
|
/* 1050 */ 256, 78, 283, 283, 283, 283, 271, 283, 283, 260,
|
|
|
|
/* 1060 */ 300, 189, 98, 283, 256, 78, 283, 283, 283, 283,
|
|
|
|
/* 1070 */ 271, 283, 283, 302, 296, 283, 283, 283, 256, 283,
|
|
|
|
/* 1080 */ 283, 283, 283, 283, 271,
|
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,
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 10 */ 41, 42, 43, 16, 31, 32, 33, 34, 35, 36,
|
|
|
|
/* 20 */ 37, 38, 39, 40, 41, 42, 43, 58, 45, 31,
|
2009-10-16 16:54:25 +00:00
|
|
|
/* 30 */ 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 40 */ 42, 43, 10, 45, 101, 10, 16, 50, 16, 52,
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 50 */ 79, 16, 20, 21, 83, 20, 21, 1, 2, 3,
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 60 */ 4, 5, 30, 55, 67, 9, 47, 11, 60, 13,
|
|
|
|
/* 70 */ 14, 15, 16, 102, 19, 67, 44, 1, 46, 44,
|
|
|
|
/* 80 */ 50, 46, 47, 51, 65, 53, 51, 55, 53, 59,
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 90 */ 55, 1, 60, 61, 10, 60, 61, 67, 8, 67,
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 100 */ 16, 67, 67, 79, 20, 21, 16, 83, 31, 32,
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 110 */ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 120 */ 43, 1, 98, 17, 69, 79, 102, 10, 44, 83,
|
|
|
|
/* 130 */ 10, 105, 63, 16, 65, 51, 16, 20, 21, 55,
|
|
|
|
/* 140 */ 20, 21, 17, 67, 60, 61, 58, 30, 102, 10,
|
|
|
|
/* 150 */ 47, 67, 16, 65, 16, 16, 53, 54, 52, 20,
|
|
|
|
/* 160 */ 21, 44, 100, 46, 44, 103, 46, 105, 51, 66,
|
|
|
|
/* 170 */ 53, 51, 55, 53, 68, 55, 85, 60, 61, 16,
|
|
|
|
/* 180 */ 60, 61, 17, 44, 67, 46, 50, 67, 63, 51,
|
|
|
|
/* 190 */ 51, 10, 53, 55, 55, 53, 54, 16, 60, 60,
|
|
|
|
/* 200 */ 61, 20, 21, 67, 44, 67, 67, 44, 66, 44,
|
|
|
|
/* 210 */ 10, 16, 101, 10, 16, 50, 16, 57, 85, 16,
|
|
|
|
/* 220 */ 20, 21, 57, 20, 21, 44, 44, 46, 1, 67,
|
|
|
|
/* 230 */ 48, 48, 51, 68, 53, 100, 55, 10, 49, 57,
|
|
|
|
/* 240 */ 105, 60, 61, 16, 44, 63, 46, 44, 67, 46,
|
|
|
|
/* 250 */ 68, 51, 63, 53, 51, 55, 53, 59, 55, 50,
|
|
|
|
/* 260 */ 60, 61, 67, 60, 61, 67, 10, 67, 17, 46,
|
|
|
|
/* 270 */ 67, 79, 16, 81, 1, 83, 20, 21, 86, 87,
|
|
|
|
/* 280 */ 88, 79, 1, 91, 92, 83, 94, 64, 96, 16,
|
|
|
|
/* 290 */ 48, 10, 50, 91, 102, 10, 56, 16, 96, 107,
|
|
|
|
/* 300 */ 44, 16, 46, 63, 102, 20, 21, 51, 44, 53,
|
|
|
|
/* 310 */ 79, 55, 44, 49, 83, 47, 60, 61, 72, 73,
|
|
|
|
/* 320 */ 74, 57, 91, 67, 48, 57, 1, 96, 55, 44,
|
|
|
|
/* 330 */ 17, 46, 64, 102, 61, 62, 51, 12, 53, 63,
|
|
|
|
/* 340 */ 55, 16, 16, 59, 68, 60, 61, 46, 17, 48,
|
|
|
|
/* 350 */ 18, 67, 67, 17, 22, 23, 24, 25, 26, 27,
|
|
|
|
/* 360 */ 28, 29, 1, 1, 18, 64, 45, 5, 22, 23,
|
|
|
|
/* 370 */ 24, 25, 26, 27, 28, 29, 63, 45, 16, 10,
|
|
|
|
/* 380 */ 56, 55, 89, 89, 63, 16, 60, 63, 79, 20,
|
|
|
|
/* 390 */ 21, 45, 83, 67, 63, 63, 18, 104, 104, 63,
|
|
|
|
/* 400 */ 22, 23, 24, 25, 26, 27, 28, 29, 17, 63,
|
|
|
|
/* 410 */ 80, 102, 48, 44, 84, 46, 55, 75, 84, 16,
|
|
|
|
/* 420 */ 51, 60, 55, 93, 55, 83, 85, 63, 67, 60,
|
|
|
|
/* 430 */ 61, 75, 68, 77, 67, 79, 67, 81, 82, 83,
|
|
|
|
/* 440 */ 101, 63, 108, 104, 53, 54, 17, 91, 92, 79,
|
|
|
|
/* 450 */ 94, 81, 96, 83, 80, 80, 86, 66, 102, 84,
|
|
|
|
/* 460 */ 1, 91, 92, 78, 94, 63, 96, 93, 93, 79,
|
|
|
|
/* 470 */ 67, 81, 102, 83, 80, 16, 86, 107, 84, 93,
|
|
|
|
/* 480 */ 106, 91, 92, 78, 94, 17, 96, 93, 55, 79,
|
|
|
|
/* 490 */ 89, 81, 102, 83, 80, 80, 86, 107, 113, 84,
|
|
|
|
/* 500 */ 67, 91, 92, 78, 94, 104, 96, 93, 93, 79,
|
|
|
|
/* 510 */ 89, 81, 102, 83, 63, 97, 86, 107, 113, 68,
|
|
|
|
/* 520 */ 106, 91, 92, 56, 94, 104, 96, 79, 68, 81,
|
|
|
|
/* 530 */ 112, 83, 102, 80, 86, 68, 1, 107, 113, 91,
|
|
|
|
/* 540 */ 92, 79, 94, 81, 96, 83, 93, 89, 86, 84,
|
|
|
|
/* 550 */ 102, 16, 78, 91, 92, 107, 94, 80, 96, 45,
|
|
|
|
/* 560 */ 60, 79, 104, 81, 102, 83, 90, 89, 89, 107,
|
|
|
|
/* 570 */ 93, 5, 100, 91, 92, 10, 94, 105, 96, 62,
|
|
|
|
/* 580 */ 104, 16, 104, 104, 102, 20, 21, 113, 80, 80,
|
|
|
|
/* 590 */ 55, 44, 110, 111, 100, 17, 61, 62, 56, 105,
|
|
|
|
/* 600 */ 17, 93, 93, 55, 70, 55, 79, 55, 81, 44,
|
|
|
|
/* 610 */ 83, 67, 55, 86, 19, 45, 51, 17, 91, 92,
|
|
|
|
/* 620 */ 55, 94, 67, 96, 79, 60, 61, 60, 83, 102,
|
|
|
|
/* 630 */ 70, 67, 67, 79, 107, 81, 91, 83, 67, 67,
|
|
|
|
/* 640 */ 86, 96, 50, 52, 69, 91, 92, 102, 94, 51,
|
|
|
|
/* 650 */ 96, 67, 67, 79, 64, 81, 102, 83, 47, 62,
|
|
|
|
/* 660 */ 86, 107, 45, 101, 113, 91, 92, 104, 94, 44,
|
|
|
|
/* 670 */ 96, 103, 95, 79, 101, 81, 102, 83, 109, 74,
|
|
|
|
/* 680 */ 86, 107, 101, 76, 98, 91, 92, 56, 94, 67,
|
|
|
|
/* 690 */ 96, 112, 55, 79, 106, 81, 102, 83, 114, 87,
|
|
|
|
/* 700 */ 86, 107, 114, 114, 114, 91, 92, 114, 94, 114,
|
|
|
|
/* 710 */ 96, 114, 114, 114, 114, 79, 102, 81, 82, 83,
|
|
|
|
/* 720 */ 114, 107, 114, 114, 114, 114, 114, 91, 92, 114,
|
|
|
|
/* 730 */ 94, 114, 96, 79, 114, 81, 82, 83, 102, 114,
|
|
|
|
/* 740 */ 114, 114, 114, 114, 114, 91, 92, 114, 94, 75,
|
|
|
|
/* 750 */ 96, 114, 114, 79, 114, 81, 102, 83, 114, 114,
|
|
|
|
/* 760 */ 79, 114, 81, 114, 83, 91, 92, 114, 94, 114,
|
|
|
|
/* 770 */ 96, 114, 91, 92, 114, 94, 102, 96, 114, 114,
|
|
|
|
/* 780 */ 99, 114, 114, 102, 114, 79, 114, 81, 114, 83,
|
|
|
|
/* 790 */ 114, 114, 114, 114, 114, 114, 114, 91, 92, 79,
|
|
|
|
/* 800 */ 94, 81, 96, 83, 114, 99, 114, 114, 102, 114,
|
|
|
|
/* 810 */ 114, 91, 92, 79, 94, 81, 96, 83, 114, 99,
|
|
|
|
/* 820 */ 114, 114, 102, 114, 114, 91, 92, 114, 94, 79,
|
|
|
|
/* 830 */ 96, 81, 114, 83, 114, 114, 102, 114, 114, 114,
|
|
|
|
/* 840 */ 114, 91, 92, 114, 94, 111, 96, 114, 114, 99,
|
|
|
|
/* 850 */ 114, 114, 102, 79, 114, 81, 114, 83, 114, 114,
|
|
|
|
/* 860 */ 79, 114, 81, 114, 83, 91, 92, 79, 94, 81,
|
|
|
|
/* 870 */ 96, 83, 91, 92, 114, 94, 102, 96, 114, 91,
|
|
|
|
/* 880 */ 92, 114, 94, 102, 96, 79, 114, 81, 114, 83,
|
|
|
|
/* 890 */ 102, 114, 79, 114, 81, 114, 83, 91, 92, 79,
|
|
|
|
/* 900 */ 94, 81, 96, 83, 91, 92, 114, 94, 102, 96,
|
|
|
|
/* 910 */ 114, 91, 92, 114, 94, 102, 96, 114, 114, 114,
|
|
|
|
/* 920 */ 114, 79, 102, 81, 114, 83, 114, 114, 114, 114,
|
|
|
|
/* 930 */ 114, 114, 114, 91, 92, 79, 94, 81, 96, 83,
|
|
|
|
/* 940 */ 114, 114, 114, 114, 102, 114, 114, 91, 92, 79,
|
|
|
|
/* 950 */ 94, 81, 96, 83, 114, 114, 114, 114, 102, 114,
|
|
|
|
/* 960 */ 114, 91, 92, 79, 94, 81, 96, 83, 114, 114,
|
|
|
|
/* 970 */ 114, 114, 102, 114, 114, 91, 92, 79, 94, 81,
|
|
|
|
/* 980 */ 96, 83, 114, 114, 114, 114, 102, 114, 114, 91,
|
|
|
|
/* 990 */ 92, 79, 94, 81, 96, 83, 114, 114, 114, 114,
|
|
|
|
/* 1000 */ 102, 114, 114, 91, 92, 79, 94, 81, 96, 83,
|
|
|
|
/* 1010 */ 114, 114, 114, 114, 102, 114, 114, 91, 92, 79,
|
|
|
|
/* 1020 */ 94, 114, 96, 83, 114, 114, 114, 114, 102, 114,
|
|
|
|
/* 1030 */ 114, 91, 92, 79, 94, 114, 96, 83, 114, 114,
|
|
|
|
/* 1040 */ 114, 114, 102, 114, 114, 91, 92, 79, 94, 114,
|
|
|
|
/* 1050 */ 96, 83, 114, 114, 114, 114, 102, 114, 114, 91,
|
|
|
|
/* 1060 */ 92, 79, 94, 114, 96, 83, 114, 114, 114, 114,
|
|
|
|
/* 1070 */ 102, 114, 114, 91, 92, 114, 114, 114, 96, 114,
|
|
|
|
/* 1080 */ 114, 114, 114, 114, 102,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
2009-10-13 19:44:38 +00:00
|
|
|
const YY_SHIFT_USE_DFLT = -32;
|
2009-10-21 15:19:00 +00:00
|
|
|
const YY_SHIFT_MAX = 207;
|
2009-03-22 16:09:05 +00:00
|
|
|
static public $yy_shift_ofst = array(
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 0 */ 56, 117, 256, 32, 32, 32, 32, 32, 32, 32,
|
|
|
|
/* 10 */ 32, 32, 32, 32, 285, 120, 139, 285, 139, 181,
|
|
|
|
/* 20 */ 139, 139, 181, 139, 139, 139, 139, 139, 139, 139,
|
|
|
|
/* 30 */ 139, 139, 139, 139, 139, 139, 35, 200, 203, 369,
|
|
|
|
/* 40 */ 84, 84, 565, 326, 138, 182, 361, 276, 364, 301,
|
|
|
|
/* 50 */ 8, 467, 467, 451, 451, 332, 346, 378, 535, 30,
|
|
|
|
/* 60 */ -3, 198, 281, 106, 403, 459, 242, 403, 195, 195,
|
|
|
|
/* 70 */ 195, 195, 195, 433, 459, 195, 459, 195, 183, 460,
|
|
|
|
/* 80 */ 183, 183, 460, 460, -17, -2, -31, 77, 77, 77,
|
|
|
|
/* 90 */ 77, 77, 77, 77, 77, 77, 56, 273, 103, 391,
|
|
|
|
/* 100 */ 136, 90, 227, 325, 142, 142, 362, 313, 69, 367,
|
|
|
|
/* 110 */ 223, 223, 195, 189, 240, 163, 336, 324, 223, 125,
|
|
|
|
/* 120 */ 195, 331, 223, 321, 223, 637, 402, 622, 625, 402,
|
|
|
|
/* 130 */ 460, 631, 460, 402, 460, 402, 402, 460, 460, 460,
|
|
|
|
/* 140 */ 460, 183, 460, 183, 402, 183, 460, 460, 402, 402,
|
|
|
|
/* 150 */ 183, -32, -32, -32, -32, -32, -32, 165, 268, 264,
|
|
|
|
/* 160 */ 76, 284, 88, 160, 19, 55, 160, 160, 160, 598,
|
|
|
|
/* 170 */ 597, 585, 584, 560, 583, 566, 500, 517, 548, 534,
|
|
|
|
/* 180 */ 595, 557, 550, 552, 567, 544, 555, 578, 547, 591,
|
|
|
|
/* 190 */ 611, 600, 564, 570, 514, 575, 617, 34, 162, 429,
|
|
|
|
/* 200 */ 209, 542, 251, 468, 592, 572, 571, 590,
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
2009-10-21 15:19:00 +00:00
|
|
|
const YY_REDUCE_USE_DFLT = -58;
|
|
|
|
const YY_REDUCE_MAX = 156;
|
2009-03-22 16:09:05 +00:00
|
|
|
static public $yy_reduce_ofst = array(
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 0 */ 246, 192, 356, 527, 574, 614, 554, 370, 430, 462,
|
|
|
|
/* 10 */ 594, 448, 410, 390, 482, 674, 720, 734, 706, 636,
|
|
|
|
/* 20 */ 681, 750, 654, 820, 842, 813, 806, 781, 788, 870,
|
|
|
|
/* 30 */ 856, 884, 926, 898, 912, 774, 968, 940, 954, 982,
|
|
|
|
/* 40 */ 545, 202, 231, 24, 309, 330, -29, 330, 415, 62,
|
|
|
|
/* 50 */ 46, 414, 374, 394, 375, 334, 334, 334, 418, 339,
|
|
|
|
/* 60 */ 476, 339, 425, 453, 458, 405, 135, 294, 339, 294,
|
|
|
|
/* 70 */ 293, 421, 401, 342, 385, 479, 474, 478, 135, 509,
|
|
|
|
/* 80 */ 494, 472, 508, 477, 569, 569, 569, 569, 569, 569,
|
|
|
|
/* 90 */ 569, 569, 569, 569, 569, 569, 605, 579, 577, 577,
|
|
|
|
/* 100 */ 563, 551, 551, 551, 577, 577, 551, 465, 465, 586,
|
|
|
|
/* 110 */ 568, 568, 563, 465, 465, 573, 465, 465, 568, 465,
|
|
|
|
/* 120 */ 563, 465, 568, 465, 568, 612, 465, 607, 581, 465,
|
|
|
|
/* 130 */ 386, 588, 386, 465, 386, 465, 465, 386, 386, 386,
|
|
|
|
/* 140 */ 386, 26, 386, 26, 465, 26, 386, 386, 465, 465,
|
|
|
|
/* 150 */ 26, 111, 91, -57, 133, 562, 341,
|
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, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 2 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 3 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 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, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 6 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 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, ),
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 10 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 11 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
2009-10-15 21:00:23 +00:00
|
|
|
/* 12 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
2009-10-16 16:54:25 +00:00
|
|
|
/* 13 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 14 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 15 */ array(1, 10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 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, ),
|
2009-10-15 21:00:23 +00:00
|
|
|
/* 32 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
2009-10-13 19:44:38 +00:00
|
|
|
/* 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, ),
|
2009-10-15 21:00:23 +00:00
|
|
|
/* 35 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 36 */ array(10, 16, 20, 21, 44, 46, 47, 51, 53, 55, 60, 61, 67, ),
|
|
|
|
/* 37 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
2009-10-15 21:00:23 +00:00
|
|
|
/* 38 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 39 */ array(10, 16, 20, 21, 44, 46, 51, 55, 60, 61, 67, ),
|
|
|
|
/* 40 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ),
|
2009-10-15 21:00:23 +00:00
|
|
|
/* 41 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ),
|
|
|
|
/* 42 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 43 */ array(16, 55, 60, 67, ),
|
|
|
|
/* 44 */ array(16, 51, 55, 60, 67, ),
|
2009-10-16 16:54:25 +00:00
|
|
|
/* 45 */ array(44, 48, 57, 63, 68, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 46 */ array(1, 55, 60, 67, ),
|
|
|
|
/* 47 */ array(48, 63, 68, ),
|
|
|
|
/* 48 */ array(48, 63, 68, ),
|
|
|
|
/* 49 */ array(46, 48, 64, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 50 */ array(55, 60, 67, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 51 */ array(56, 68, ),
|
|
|
|
/* 52 */ array(56, 68, ),
|
|
|
|
/* 53 */ array(63, 68, ),
|
|
|
|
/* 54 */ array(63, 68, ),
|
|
|
|
/* 55 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ),
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 56 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 57 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 63, ),
|
|
|
|
/* 58 */ array(1, 16, 55, 61, 62, ),
|
|
|
|
/* 59 */ array(16, 50, 59, 67, ),
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 60 */ array(16, 50, 52, 67, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 61 */ array(16, 59, 67, ),
|
|
|
|
/* 62 */ array(1, 10, 16, ),
|
|
|
|
/* 63 */ array(17, 52, 68, ),
|
|
|
|
/* 64 */ array(16, 67, ),
|
|
|
|
/* 65 */ array(1, 16, ),
|
|
|
|
/* 66 */ array(48, 50, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 67 */ array(16, 67, ),
|
|
|
|
/* 68 */ array(16, 67, ),
|
|
|
|
/* 69 */ array(16, 67, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 70 */ array(16, 67, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 71 */ array(16, 67, ),
|
2009-10-15 21:00:23 +00:00
|
|
|
/* 72 */ array(16, 67, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 73 */ array(55, 67, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 74 */ array(1, 16, ),
|
|
|
|
/* 75 */ array(16, 67, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 76 */ array(1, 16, ),
|
|
|
|
/* 77 */ array(16, 67, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 78 */ array(48, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 79 */ array(68, ),
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 80 */ array(48, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 81 */ array(48, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 82 */ array(68, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 83 */ array(68, ),
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 84 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 85 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 86 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 58, ),
|
2009-10-15 21:00:23 +00:00
|
|
|
/* 87 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
|
|
|
/* 88 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
|
|
|
/* 89 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
|
|
|
/* 90 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
|
|
|
/* 91 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
|
|
|
/* 92 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 93 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 94 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 95 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
|
|
|
|
/* 96 */ array(1, 2, 3, 4, 5, 9, 11, 13, 14, 15, 16, ),
|
|
|
|
/* 97 */ array(1, 16, 55, 61, 62, ),
|
|
|
|
/* 98 */ array(47, 53, 54, 66, ),
|
|
|
|
/* 99 */ array(17, 53, 54, 66, ),
|
|
|
|
/* 100 */ array(16, 50, 67, ),
|
|
|
|
/* 101 */ array(1, 8, 16, ),
|
|
|
|
/* 102 */ array(1, 10, 16, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 103 */ array(1, 12, 16, ),
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 104 */ array(53, 54, 66, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 105 */ array(53, 54, 66, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 106 */ array(1, 5, 16, ),
|
|
|
|
/* 107 */ array(17, 63, ),
|
|
|
|
/* 108 */ array(63, 65, ),
|
|
|
|
/* 109 */ array(55, 67, ),
|
|
|
|
/* 110 */ array(46, 64, ),
|
|
|
|
/* 111 */ array(46, 64, ),
|
|
|
|
/* 112 */ array(16, 67, ),
|
|
|
|
/* 113 */ array(49, 63, ),
|
|
|
|
/* 114 */ array(56, 63, ),
|
|
|
|
/* 115 */ array(16, 44, ),
|
|
|
|
/* 116 */ array(17, 63, ),
|
|
|
|
/* 117 */ array(56, 63, ),
|
|
|
|
/* 118 */ array(46, 64, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 119 */ array(17, 63, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 120 */ array(16, 67, ),
|
|
|
|
/* 121 */ array(17, 63, ),
|
|
|
|
/* 122 */ array(46, 64, ),
|
|
|
|
/* 123 */ array(45, 63, ),
|
|
|
|
/* 124 */ array(46, 64, ),
|
|
|
|
/* 125 */ array(55, ),
|
|
|
|
/* 126 */ array(63, ),
|
|
|
|
/* 127 */ array(67, ),
|
|
|
|
/* 128 */ array(44, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 129 */ array(63, ),
|
|
|
|
/* 130 */ array(68, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 131 */ array(56, ),
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 132 */ array(68, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 133 */ array(63, ),
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 134 */ array(68, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 135 */ array(63, ),
|
|
|
|
/* 136 */ array(63, ),
|
|
|
|
/* 137 */ array(68, ),
|
2009-10-15 21:00:23 +00:00
|
|
|
/* 138 */ array(68, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 139 */ array(68, ),
|
|
|
|
/* 140 */ array(68, ),
|
|
|
|
/* 141 */ array(48, ),
|
|
|
|
/* 142 */ array(68, ),
|
|
|
|
/* 143 */ array(48, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 144 */ array(63, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 145 */ array(48, ),
|
|
|
|
/* 146 */ array(68, ),
|
|
|
|
/* 147 */ array(68, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 148 */ array(63, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 149 */ array(63, ),
|
|
|
|
/* 150 */ array(48, ),
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 151 */ array(),
|
|
|
|
/* 152 */ array(),
|
|
|
|
/* 153 */ array(),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 154 */ array(),
|
|
|
|
/* 155 */ array(),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 156 */ array(),
|
|
|
|
/* 157 */ array(17, 44, 50, 57, 68, ),
|
|
|
|
/* 158 */ array(44, 47, 57, 64, ),
|
|
|
|
/* 159 */ array(44, 49, 57, ),
|
|
|
|
/* 160 */ array(1, 67, ),
|
|
|
|
/* 161 */ array(59, 67, ),
|
|
|
|
/* 162 */ array(58, 65, ),
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 163 */ array(44, 57, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 164 */ array(47, 65, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 165 */ array(19, 69, ),
|
|
|
|
/* 166 */ array(44, 57, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 167 */ array(44, 57, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 168 */ array(44, 57, ),
|
|
|
|
/* 169 */ array(51, ),
|
|
|
|
/* 170 */ array(62, ),
|
|
|
|
/* 171 */ array(67, ),
|
|
|
|
/* 172 */ array(67, ),
|
|
|
|
/* 173 */ array(70, ),
|
|
|
|
/* 174 */ array(17, ),
|
|
|
|
/* 175 */ array(5, ),
|
|
|
|
/* 176 */ array(60, ),
|
|
|
|
/* 177 */ array(62, ),
|
|
|
|
/* 178 */ array(55, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 179 */ array(70, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 180 */ array(19, ),
|
|
|
|
/* 181 */ array(55, ),
|
|
|
|
/* 182 */ array(55, ),
|
|
|
|
/* 183 */ array(55, ),
|
|
|
|
/* 184 */ array(60, ),
|
|
|
|
/* 185 */ array(67, ),
|
|
|
|
/* 186 */ array(67, ),
|
|
|
|
/* 187 */ array(17, ),
|
|
|
|
/* 188 */ array(44, ),
|
|
|
|
/* 189 */ array(52, ),
|
|
|
|
/* 190 */ array(47, ),
|
|
|
|
/* 191 */ array(17, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 192 */ array(67, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 193 */ array(45, ),
|
|
|
|
/* 194 */ array(45, ),
|
|
|
|
/* 195 */ array(69, ),
|
|
|
|
/* 196 */ array(45, ),
|
|
|
|
/* 197 */ array(67, ),
|
|
|
|
/* 198 */ array(67, ),
|
|
|
|
/* 199 */ array(17, ),
|
|
|
|
/* 200 */ array(50, ),
|
|
|
|
/* 201 */ array(56, ),
|
|
|
|
/* 202 */ array(17, ),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 203 */ array(17, ),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 204 */ array(50, ),
|
|
|
|
/* 205 */ array(67, ),
|
|
|
|
/* 206 */ array(67, ),
|
|
|
|
/* 207 */ array(64, ),
|
2009-03-22 16:09:05 +00:00
|
|
|
/* 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-10-15 21:00:23 +00:00
|
|
|
/* 286 */ array(),
|
|
|
|
/* 287 */ array(),
|
|
|
|
/* 288 */ array(),
|
|
|
|
/* 289 */ array(),
|
|
|
|
/* 290 */ array(),
|
|
|
|
/* 291 */ array(),
|
|
|
|
/* 292 */ array(),
|
|
|
|
/* 293 */ array(),
|
|
|
|
/* 294 */ array(),
|
|
|
|
/* 295 */ array(),
|
|
|
|
/* 296 */ array(),
|
|
|
|
/* 297 */ array(),
|
|
|
|
/* 298 */ array(),
|
|
|
|
/* 299 */ array(),
|
|
|
|
/* 300 */ array(),
|
|
|
|
/* 301 */ array(),
|
2009-10-19 14:36:57 +00:00
|
|
|
/* 302 */ array(),
|
|
|
|
/* 303 */ array(),
|
|
|
|
/* 304 */ array(),
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 305 */ array(),
|
|
|
|
/* 306 */ array(),
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 307 */ array(),
|
|
|
|
/* 308 */ array(),
|
|
|
|
/* 309 */ array(),
|
|
|
|
/* 310 */ array(),
|
|
|
|
/* 311 */ array(),
|
2009-03-22 16:09:05 +00:00
|
|
|
);
|
|
|
|
static public $yy_default = array(
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 0 */ 479, 479, 479, 479, 479, 479, 479, 479, 479, 479,
|
|
|
|
/* 10 */ 479, 479, 479, 479, 460, 479, 419, 479, 419, 479,
|
|
|
|
/* 20 */ 419, 419, 479, 479, 479, 479, 479, 479, 479, 479,
|
|
|
|
/* 30 */ 479, 479, 479, 479, 479, 479, 479, 479, 479, 479,
|
|
|
|
/* 40 */ 479, 479, 479, 479, 479, 347, 479, 347, 347, 384,
|
|
|
|
/* 50 */ 479, 347, 347, 347, 347, 429, 429, 429, 479, 394,
|
|
|
|
/* 60 */ 479, 394, 479, 367, 479, 479, 387, 479, 394, 479,
|
|
|
|
/* 70 */ 479, 479, 479, 479, 479, 479, 479, 479, 387, 347,
|
|
|
|
/* 80 */ 380, 379, 347, 347, 479, 479, 479, 433, 443, 335,
|
|
|
|
/* 90 */ 442, 434, 427, 438, 435, 439, 312, 479, 479, 479,
|
|
|
|
/* 100 */ 479, 479, 479, 479, 424, 355, 479, 479, 418, 479,
|
|
|
|
/* 110 */ 410, 412, 341, 463, 479, 394, 479, 479, 392, 479,
|
|
|
|
/* 120 */ 340, 479, 413, 479, 411, 479, 338, 479, 394, 348,
|
|
|
|
/* 130 */ 329, 357, 328, 362, 327, 363, 461, 331, 334, 333,
|
|
|
|
/* 140 */ 332, 407, 343, 381, 462, 382, 330, 342, 353, 430,
|
|
|
|
/* 150 */ 385, 394, 423, 394, 423, 394, 423, 354, 479, 354,
|
|
|
|
/* 160 */ 479, 479, 479, 425, 479, 358, 354, 479, 444, 479,
|
|
|
|
/* 170 */ 479, 479, 479, 479, 479, 479, 479, 479, 479, 374,
|
|
|
|
/* 180 */ 361, 479, 479, 479, 479, 479, 479, 479, 383, 367,
|
|
|
|
/* 190 */ 479, 479, 479, 479, 479, 358, 479, 479, 479, 479,
|
|
|
|
/* 200 */ 350, 405, 351, 479, 479, 479, 479, 369, 470, 322,
|
|
|
|
/* 210 */ 324, 313, 323, 326, 325, 378, 399, 401, 349, 400,
|
|
|
|
/* 220 */ 402, 416, 414, 398, 465, 319, 320, 321, 318, 344,
|
|
|
|
/* 230 */ 474, 316, 472, 345, 377, 464, 466, 476, 376, 475,
|
|
|
|
/* 240 */ 477, 478, 467, 473, 364, 365, 366, 421, 420, 468,
|
|
|
|
/* 250 */ 471, 346, 375, 360, 371, 372, 373, 370, 368, 422,
|
|
|
|
/* 260 */ 358, 359, 409, 408, 395, 396, 397, 391, 390, 388,
|
|
|
|
/* 270 */ 393, 389, 356, 403, 441, 315, 454, 440, 317, 426,
|
|
|
|
/* 280 */ 436, 437, 455, 456, 352, 386, 314, 405, 404, 428,
|
|
|
|
/* 290 */ 337, 339, 374, 445, 459, 458, 431, 457, 415, 406,
|
|
|
|
/* 300 */ 361, 417, 432, 446, 451, 452, 453, 450, 449, 447,
|
|
|
|
/* 310 */ 448, 469,
|
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-21 15:19:00 +00:00
|
|
|
const YYNOCODE = 115;
|
2009-03-22 16:09:05 +00:00
|
|
|
const YYSTACKDEPTH = 100;
|
2009-10-21 15:19:00 +00:00
|
|
|
const YYNSTATE = 312;
|
|
|
|
const YYNRULE = 167;
|
2009-10-15 21:00:23 +00:00
|
|
|
const YYERRORSYMBOL = 71;
|
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-10-15 21:00:23 +00:00
|
|
|
1, /* QMARK => 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-15 21:00:23 +00:00
|
|
|
'SPACE', 'INSTANCEOF', 'QMARK', 'error',
|
|
|
|
'start', 'template', 'template_element', 'smartytag',
|
2009-10-21 15:19:00 +00:00
|
|
|
'smartyclosetag', 'outputtag', 'text', 'variable',
|
|
|
|
'attributes', 'expr', 'ternary', '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",
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 5 */ "template_element ::= LDEL outputtag RDEL",
|
|
|
|
/* 6 */ "template_element ::= COMMENTSTART text COMMENTEND",
|
|
|
|
/* 7 */ "template_element ::= LITERALSTART text LITERALEND",
|
|
|
|
/* 8 */ "template_element ::= LDELIMTAG",
|
|
|
|
/* 9 */ "template_element ::= RDELIMTAG",
|
|
|
|
/* 10 */ "template_element ::= PHP text SHORTTAGEND",
|
|
|
|
/* 11 */ "template_element ::= SHORTTAGSTART DOLLAR ID SHORTTAGEND",
|
|
|
|
/* 12 */ "template_element ::= XML",
|
|
|
|
/* 13 */ "template_element ::= SHORTTAGEND",
|
|
|
|
/* 14 */ "template_element ::= OTHER",
|
|
|
|
/* 15 */ "outputtag ::= variable attributes",
|
|
|
|
/* 16 */ "outputtag ::= expr attributes",
|
|
|
|
/* 17 */ "outputtag ::= ternary attributes",
|
2009-10-21 09:49:43 +00:00
|
|
|
/* 18 */ "smartytag ::= varindexed EQUAL expr attributes",
|
|
|
|
/* 19 */ "smartytag ::= varindexed EQUAL ternary attributes",
|
|
|
|
/* 20 */ "smartytag ::= ID attributes",
|
|
|
|
/* 21 */ "smartytag ::= ID PTR ID attributes",
|
|
|
|
/* 22 */ "smartytag ::= ID modifier modparameters attributes",
|
|
|
|
/* 23 */ "smartytag ::= ID SPACE ifexprs",
|
|
|
|
/* 24 */ "smartytag ::= ID SPACE statement",
|
|
|
|
/* 25 */ "smartytag ::= ID SPACE statements SEMICOLON ifexprs SEMICOLON DOLLAR varvar foraction",
|
|
|
|
/* 26 */ "foraction ::= EQUAL expr",
|
|
|
|
/* 27 */ "foraction ::= INCDEC",
|
|
|
|
/* 28 */ "smartytag ::= ID SPACE value AS DOLLAR varvar",
|
|
|
|
/* 29 */ "smartytag ::= ID SPACE array AS DOLLAR varvar",
|
|
|
|
/* 30 */ "smartyclosetag ::= ID attributes",
|
|
|
|
/* 31 */ "smartyclosetag ::= ID modifier modparameters attributes",
|
|
|
|
/* 32 */ "smartyclosetag ::= ID PTR ID",
|
|
|
|
/* 33 */ "attributes ::= attributes attribute",
|
|
|
|
/* 34 */ "attributes ::= attribute",
|
|
|
|
/* 35 */ "attributes ::=",
|
|
|
|
/* 36 */ "attribute ::= SPACE ID EQUAL expr",
|
|
|
|
/* 37 */ "attribute ::= SPACE ID EQUAL ternary",
|
|
|
|
/* 38 */ "attribute ::= SPACE ID",
|
|
|
|
/* 39 */ "statements ::= statement",
|
|
|
|
/* 40 */ "statements ::= statements COMMA statement",
|
|
|
|
/* 41 */ "statement ::= DOLLAR varvar EQUAL expr",
|
|
|
|
/* 42 */ "expr ::= ID",
|
|
|
|
/* 43 */ "expr ::= exprs",
|
|
|
|
/* 44 */ "expr ::= DOLLAR ID COLON ID",
|
|
|
|
/* 45 */ "expr ::= expr modifier modparameters",
|
|
|
|
/* 46 */ "exprs ::= value",
|
|
|
|
/* 47 */ "exprs ::= UNIMATH value",
|
|
|
|
/* 48 */ "exprs ::= exprs math value",
|
|
|
|
/* 49 */ "exprs ::= array",
|
|
|
|
/* 50 */ "ternary ::= OPENP ifexprs CLOSEP QMARK expr COLON expr",
|
|
|
|
/* 51 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr",
|
|
|
|
/* 52 */ "math ::= UNIMATH",
|
|
|
|
/* 53 */ "math ::= MATH",
|
|
|
|
/* 54 */ "math ::= ANDSYM",
|
|
|
|
/* 55 */ "value ::= variable",
|
2009-10-21 15:19:00 +00:00
|
|
|
/* 56 */ "value ::= variable INCDEC",
|
|
|
|
/* 57 */ "value ::= INTEGER",
|
|
|
|
/* 58 */ "value ::= INTEGER DOT INTEGER",
|
|
|
|
/* 59 */ "value ::= BOOLEAN",
|
|
|
|
/* 60 */ "value ::= NULL",
|
|
|
|
/* 61 */ "value ::= function",
|
|
|
|
/* 62 */ "value ::= OPENP expr CLOSEP",
|
|
|
|
/* 63 */ "value ::= SINGLEQUOTE text SINGLEQUOTE",
|
|
|
|
/* 64 */ "value ::= SINGLEQUOTE SINGLEQUOTE",
|
|
|
|
/* 65 */ "value ::= QUOTE doublequoted QUOTE",
|
|
|
|
/* 66 */ "value ::= QUOTE QUOTE",
|
|
|
|
/* 67 */ "value ::= ID DOUBLECOLON method",
|
|
|
|
/* 68 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP",
|
|
|
|
/* 69 */ "value ::= ID DOUBLECOLON method objectchain",
|
|
|
|
/* 70 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain",
|
|
|
|
/* 71 */ "value ::= ID DOUBLECOLON ID",
|
|
|
|
/* 72 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex",
|
|
|
|
/* 73 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain",
|
|
|
|
/* 74 */ "value ::= LDEL smartytag RDEL",
|
|
|
|
/* 75 */ "variable ::= varindexed",
|
|
|
|
/* 76 */ "variable ::= DOLLAR varvar AT ID",
|
|
|
|
/* 77 */ "variable ::= object",
|
|
|
|
/* 78 */ "variable ::= HATCH ID HATCH",
|
|
|
|
/* 79 */ "variable ::= HATCH variable HATCH",
|
|
|
|
/* 80 */ "varindexed ::= DOLLAR varvar arrayindex",
|
|
|
|
/* 81 */ "arrayindex ::= arrayindex indexdef",
|
|
|
|
/* 82 */ "arrayindex ::=",
|
|
|
|
/* 83 */ "indexdef ::= DOT ID",
|
|
|
|
/* 84 */ "indexdef ::= DOT INTEGER",
|
|
|
|
/* 85 */ "indexdef ::= DOT variable",
|
|
|
|
/* 86 */ "indexdef ::= DOT LDEL exprs RDEL",
|
|
|
|
/* 87 */ "indexdef ::= OPENB ID CLOSEB",
|
|
|
|
/* 88 */ "indexdef ::= OPENB ID DOT ID CLOSEB",
|
|
|
|
/* 89 */ "indexdef ::= OPENB exprs CLOSEB",
|
|
|
|
/* 90 */ "indexdef ::= OPENB CLOSEB",
|
|
|
|
/* 91 */ "varvar ::= varvarele",
|
|
|
|
/* 92 */ "varvar ::= varvar varvarele",
|
|
|
|
/* 93 */ "varvarele ::= ID",
|
|
|
|
/* 94 */ "varvarele ::= LDEL expr RDEL",
|
|
|
|
/* 95 */ "object ::= varindexed objectchain",
|
|
|
|
/* 96 */ "objectchain ::= objectelement",
|
|
|
|
/* 97 */ "objectchain ::= objectchain objectelement",
|
|
|
|
/* 98 */ "objectelement ::= PTR ID arrayindex",
|
|
|
|
/* 99 */ "objectelement ::= PTR variable arrayindex",
|
|
|
|
/* 100 */ "objectelement ::= PTR LDEL expr RDEL arrayindex",
|
|
|
|
/* 101 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex",
|
|
|
|
/* 102 */ "objectelement ::= PTR method",
|
|
|
|
/* 103 */ "function ::= ID OPENP params CLOSEP",
|
|
|
|
/* 104 */ "method ::= ID OPENP params CLOSEP",
|
|
|
|
/* 105 */ "params ::= expr COMMA params",
|
|
|
|
/* 106 */ "params ::= expr",
|
|
|
|
/* 107 */ "params ::=",
|
|
|
|
/* 108 */ "modifier ::= VERT AT ID",
|
|
|
|
/* 109 */ "modifier ::= VERT ID",
|
|
|
|
/* 110 */ "modparameters ::= modparameters modparameter",
|
|
|
|
/* 111 */ "modparameters ::=",
|
|
|
|
/* 112 */ "modparameter ::= COLON exprs",
|
|
|
|
/* 113 */ "modparameter ::= COLON ID",
|
|
|
|
/* 114 */ "ifexprs ::= ifexpr",
|
|
|
|
/* 115 */ "ifexprs ::= NOT ifexprs",
|
|
|
|
/* 116 */ "ifexprs ::= OPENP ifexprs CLOSEP",
|
|
|
|
/* 117 */ "ifexpr ::= expr",
|
|
|
|
/* 118 */ "ifexpr ::= expr ifcond expr",
|
|
|
|
/* 119 */ "ifexpr ::= expr ISIN array",
|
|
|
|
/* 120 */ "ifexpr ::= expr ISIN value",
|
|
|
|
/* 121 */ "ifexpr ::= ifexprs lop ifexprs",
|
|
|
|
/* 122 */ "ifexpr ::= ifexprs ISDIVBY ifexprs",
|
|
|
|
/* 123 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs",
|
|
|
|
/* 124 */ "ifexpr ::= ifexprs ISEVEN",
|
|
|
|
/* 125 */ "ifexpr ::= ifexprs ISNOTEVEN",
|
|
|
|
/* 126 */ "ifexpr ::= ifexprs ISEVENBY ifexprs",
|
|
|
|
/* 127 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs",
|
|
|
|
/* 128 */ "ifexpr ::= ifexprs ISODD",
|
|
|
|
/* 129 */ "ifexpr ::= ifexprs ISNOTODD",
|
|
|
|
/* 130 */ "ifexpr ::= ifexprs ISODDBY ifexprs",
|
|
|
|
/* 131 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs",
|
|
|
|
/* 132 */ "ifexpr ::= value INSTANCEOF ID",
|
|
|
|
/* 133 */ "ifexpr ::= value INSTANCEOF value",
|
|
|
|
/* 134 */ "ifcond ::= EQUALS",
|
|
|
|
/* 135 */ "ifcond ::= NOTEQUALS",
|
|
|
|
/* 136 */ "ifcond ::= GREATERTHAN",
|
|
|
|
/* 137 */ "ifcond ::= LESSTHAN",
|
|
|
|
/* 138 */ "ifcond ::= GREATEREQUAL",
|
|
|
|
/* 139 */ "ifcond ::= LESSEQUAL",
|
|
|
|
/* 140 */ "ifcond ::= IDENTITY",
|
|
|
|
/* 141 */ "ifcond ::= NONEIDENTITY",
|
|
|
|
/* 142 */ "lop ::= LAND",
|
|
|
|
/* 143 */ "lop ::= LOR",
|
|
|
|
/* 144 */ "lop ::= LXOR",
|
|
|
|
/* 145 */ "array ::= OPENB arrayelements CLOSEB",
|
|
|
|
/* 146 */ "arrayelements ::= arrayelement",
|
|
|
|
/* 147 */ "arrayelements ::= arrayelements COMMA arrayelement",
|
|
|
|
/* 148 */ "arrayelements ::=",
|
|
|
|
/* 149 */ "arrayelement ::= expr APTR expr",
|
|
|
|
/* 150 */ "arrayelement ::= ID APTR expr",
|
|
|
|
/* 151 */ "arrayelement ::= expr",
|
|
|
|
/* 152 */ "doublequoted ::= doublequoted doublequotedcontent",
|
|
|
|
/* 153 */ "doublequoted ::= doublequotedcontent",
|
|
|
|
/* 154 */ "doublequotedcontent ::= BACKTICK ID BACKTICK",
|
|
|
|
/* 155 */ "doublequotedcontent ::= BACKTICK variable BACKTICK",
|
|
|
|
/* 156 */ "doublequotedcontent ::= DOLLAR ID",
|
|
|
|
/* 157 */ "doublequotedcontent ::= LDEL expr RDEL",
|
|
|
|
/* 158 */ "doublequotedcontent ::= LDEL smartytag RDEL",
|
|
|
|
/* 159 */ "doublequotedcontent ::= DOLLAR OTHER",
|
|
|
|
/* 160 */ "doublequotedcontent ::= LDEL OTHER",
|
|
|
|
/* 161 */ "doublequotedcontent ::= BACKTICK OTHER",
|
|
|
|
/* 162 */ "doublequotedcontent ::= OTHER",
|
|
|
|
/* 163 */ "text ::= text textelement",
|
|
|
|
/* 164 */ "text ::= textelement",
|
|
|
|
/* 165 */ "textelement ::= OTHER",
|
|
|
|
/* 166 */ "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-09-19 13:22:32 +00:00
|
|
|
array( 'lhs' => 72, 'rhs' => 1 ),
|
2009-10-05 18:55:22 +00:00
|
|
|
array( 'lhs' => 73, 'rhs' => 1 ),
|
2009-10-15 21:00:23 +00:00
|
|
|
array( 'lhs' => 73, 'rhs' => 2 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 74, 'rhs' => 3 ),
|
2009-10-15 21:00:23 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 74, 'rhs' => 3 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 3 ),
|
2009-10-15 21:00:23 +00:00
|
|
|
array( 'lhs' => 74, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 74, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 74, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 74, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 74, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 74, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 74, 'rhs' => 1 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 77, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 77, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 77, 'rhs' => 2 ),
|
2009-10-15 21:00:23 +00:00
|
|
|
array( 'lhs' => 75, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 75, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 75, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 75, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 75, 'rhs' => 4 ),
|
2009-10-13 19:44:38 +00:00
|
|
|
array( 'lhs' => 75, 'rhs' => 3 ),
|
2009-10-15 21:00:23 +00:00
|
|
|
array( 'lhs' => 75, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 75, 'rhs' => 9 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 90, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 90, 'rhs' => 1 ),
|
2009-10-15 21:00:23 +00:00
|
|
|
array( 'lhs' => 75, 'rhs' => 6 ),
|
|
|
|
array( 'lhs' => 75, 'rhs' => 6 ),
|
|
|
|
array( 'lhs' => 76, 'rhs' => 2 ),
|
2009-10-19 14:36:57 +00:00
|
|
|
array( 'lhs' => 76, 'rhs' => 4 ),
|
2009-10-15 21:00:23 +00:00
|
|
|
array( 'lhs' => 76, 'rhs' => 3 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 80, 'rhs' => 2 ),
|
2009-10-15 21:00:23 +00:00
|
|
|
array( 'lhs' => 80, 'rhs' => 1 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 80, 'rhs' => 0 ),
|
|
|
|
array( 'lhs' => 93, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 93, 'rhs' => 4 ),
|
2009-10-15 21:00:23 +00:00
|
|
|
array( 'lhs' => 93, 'rhs' => 2 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 88, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 88, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 87, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 81, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 81, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 81, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 81, 'rhs' => 3 ),
|
2009-10-15 21:00:23 +00:00
|
|
|
array( 'lhs' => 94, 'rhs' => 1 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 94, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 94, 'rhs' => 3 ),
|
2009-10-16 16:54:25 +00:00
|
|
|
array( 'lhs' => 94, 'rhs' => 1 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 82, 'rhs' => 7 ),
|
|
|
|
array( 'lhs' => 82, 'rhs' => 7 ),
|
|
|
|
array( 'lhs' => 95, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 95, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 95, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 7 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 8 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 5 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 6 ),
|
|
|
|
array( 'lhs' => 91, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 79, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 79, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 79, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 79, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 79, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 83, 'rhs' => 3 ),
|
2009-10-16 16:54:25 +00:00
|
|
|
array( 'lhs' => 101, 'rhs' => 2 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 101, 'rhs' => 0 ),
|
|
|
|
array( 'lhs' => 103, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 103, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 103, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 103, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 103, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 103, 'rhs' => 5 ),
|
|
|
|
array( 'lhs' => 103, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 103, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 89, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 89, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 104, 'rhs' => 1 ),
|
2009-10-16 16:54:25 +00:00
|
|
|
array( 'lhs' => 104, 'rhs' => 3 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 102, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 100, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 100, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 105, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 105, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 105, 'rhs' => 5 ),
|
|
|
|
array( 'lhs' => 105, 'rhs' => 6 ),
|
2009-10-16 16:54:25 +00:00
|
|
|
array( 'lhs' => 105, 'rhs' => 2 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 96, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 98, 'rhs' => 4 ),
|
|
|
|
array( 'lhs' => 99, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 99, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 99, 'rhs' => 0 ),
|
|
|
|
array( 'lhs' => 84, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 84, 'rhs' => 2 ),
|
2009-10-15 21:00:23 +00:00
|
|
|
array( 'lhs' => 85, 'rhs' => 2 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 85, 'rhs' => 0 ),
|
2009-10-16 16:54:25 +00:00
|
|
|
array( 'lhs' => 106, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 106, 'rhs' => 2 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 86, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 86, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 86, 'rhs' => 3 ),
|
2009-08-21 14:50:34 +00:00
|
|
|
array( 'lhs' => 107, 'rhs' => 1 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 107, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 107, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 108, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 108, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 108, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 108, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 108, 'rhs' => 1 ),
|
2009-10-15 21:00:23 +00:00
|
|
|
array( 'lhs' => 108, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 108, 'rhs' => 1 ),
|
2009-09-19 13:22:32 +00:00
|
|
|
array( 'lhs' => 108, 'rhs' => 1 ),
|
2009-10-16 16:54:25 +00:00
|
|
|
array( 'lhs' => 109, 'rhs' => 1 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 109, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 109, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 92, 'rhs' => 3 ),
|
2009-10-16 16:54:25 +00:00
|
|
|
array( 'lhs' => 110, 'rhs' => 1 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 110, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 110, 'rhs' => 0 ),
|
2009-10-15 21:00:23 +00:00
|
|
|
array( 'lhs' => 111, 'rhs' => 3 ),
|
2009-10-16 16:54:25 +00:00
|
|
|
array( 'lhs' => 111, 'rhs' => 3 ),
|
2009-10-15 21:00:23 +00:00
|
|
|
array( 'lhs' => 111, 'rhs' => 1 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 97, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 97, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 112, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 112, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 112, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 112, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 112, 'rhs' => 3 ),
|
|
|
|
array( 'lhs' => 112, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 112, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 112, 'rhs' => 2 ),
|
2009-10-16 16:54:25 +00:00
|
|
|
array( 'lhs' => 112, 'rhs' => 1 ),
|
2009-10-21 15:19:00 +00:00
|
|
|
array( 'lhs' => 78, 'rhs' => 2 ),
|
|
|
|
array( 'lhs' => 78, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 113, 'rhs' => 1 ),
|
|
|
|
array( 'lhs' => 113, '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-21 09:49:43 +00:00
|
|
|
46 => 0,
|
2009-10-19 14:36:57 +00:00
|
|
|
55 => 0,
|
2009-10-21 15:19:00 +00:00
|
|
|
57 => 0,
|
2009-10-19 14:36:57 +00:00
|
|
|
59 => 0,
|
2009-10-21 09:49:43 +00:00
|
|
|
60 => 0,
|
2009-10-21 15:19:00 +00:00
|
|
|
61 => 0,
|
|
|
|
77 => 0,
|
|
|
|
146 => 0,
|
2009-03-22 16:09:05 +00:00
|
|
|
1 => 1,
|
2009-10-21 09:49:43 +00:00
|
|
|
43 => 1,
|
|
|
|
49 => 1,
|
2009-10-19 14:36:57 +00:00
|
|
|
52 => 1,
|
2009-10-21 09:49:43 +00:00
|
|
|
53 => 1,
|
2009-10-21 15:19:00 +00:00
|
|
|
91 => 1,
|
|
|
|
114 => 1,
|
|
|
|
153 => 1,
|
|
|
|
162 => 1,
|
2009-10-19 14:36:57 +00:00
|
|
|
164 => 1,
|
2009-10-21 09:49:43 +00:00
|
|
|
165 => 1,
|
2009-10-21 15:19:00 +00:00
|
|
|
166 => 1,
|
2009-03-22 16:09:05 +00:00
|
|
|
2 => 2,
|
2009-10-21 15:19:00 +00:00
|
|
|
81 => 2,
|
|
|
|
152 => 2,
|
|
|
|
160 => 2,
|
|
|
|
163 => 2,
|
2009-03-22 16:09:05 +00:00
|
|
|
3 => 3,
|
2009-10-13 19:44:38 +00:00
|
|
|
4 => 3,
|
2009-10-21 15:19:00 +00:00
|
|
|
5 => 3,
|
2009-03-22 16:09:05 +00:00
|
|
|
6 => 6,
|
|
|
|
7 => 7,
|
|
|
|
8 => 8,
|
|
|
|
9 => 9,
|
|
|
|
10 => 10,
|
|
|
|
11 => 11,
|
|
|
|
12 => 12,
|
|
|
|
13 => 13,
|
|
|
|
14 => 14,
|
2009-10-21 09:49:43 +00:00
|
|
|
15 => 15,
|
2009-10-21 15:19:00 +00:00
|
|
|
16 => 15,
|
|
|
|
17 => 15,
|
2009-10-21 09:49:43 +00:00
|
|
|
18 => 18,
|
|
|
|
19 => 18,
|
2009-03-22 16:09:05 +00:00
|
|
|
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-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-21 09:49:43 +00:00
|
|
|
34 => 27,
|
2009-10-21 15:19:00 +00:00
|
|
|
106 => 27,
|
|
|
|
151 => 27,
|
2009-10-13 19:44:38 +00:00
|
|
|
28 => 28,
|
2009-09-29 16:23:35 +00:00
|
|
|
29 => 29,
|
2009-10-15 21:00:23 +00:00
|
|
|
30 => 30,
|
2009-03-22 16:09:05 +00:00
|
|
|
31 => 31,
|
2009-10-19 14:36:57 +00:00
|
|
|
32 => 32,
|
2009-10-21 09:49:43 +00:00
|
|
|
33 => 33,
|
2009-10-19 14:36:57 +00:00
|
|
|
35 => 35,
|
2009-10-21 09:49:43 +00:00
|
|
|
36 => 36,
|
|
|
|
37 => 36,
|
2009-10-15 21:00:23 +00:00
|
|
|
38 => 38,
|
2009-10-13 19:44:38 +00:00
|
|
|
39 => 39,
|
2009-09-29 16:23:35 +00:00
|
|
|
40 => 40,
|
2009-10-19 14:36:57 +00:00
|
|
|
41 => 41,
|
2009-10-21 09:49:43 +00:00
|
|
|
42 => 42,
|
2009-10-19 14:36:57 +00:00
|
|
|
44 => 44,
|
2009-10-21 09:49:43 +00:00
|
|
|
45 => 45,
|
2009-10-19 14:36:57 +00:00
|
|
|
47 => 47,
|
2009-10-21 15:19:00 +00:00
|
|
|
56 => 47,
|
2009-10-21 09:49:43 +00:00
|
|
|
48 => 48,
|
|
|
|
50 => 50,
|
|
|
|
51 => 50,
|
|
|
|
54 => 54,
|
2009-10-21 15:19:00 +00:00
|
|
|
58 => 58,
|
2009-03-22 16:09:05 +00:00
|
|
|
62 => 62,
|
2009-10-19 14:36:57 +00:00
|
|
|
63 => 63,
|
2009-10-21 09:49:43 +00:00
|
|
|
64 => 64,
|
2009-10-21 15:19:00 +00:00
|
|
|
66 => 64,
|
|
|
|
65 => 65,
|
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-15 21:00:23 +00:00
|
|
|
70 => 70,
|
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-10-19 14:36:57 +00:00
|
|
|
74 => 74,
|
2009-10-21 09:49:43 +00:00
|
|
|
75 => 75,
|
2009-10-21 15:19:00 +00:00
|
|
|
76 => 76,
|
2009-10-19 14:36:57 +00:00
|
|
|
78 => 78,
|
2009-10-21 09:49:43 +00:00
|
|
|
79 => 79,
|
2009-10-21 15:19:00 +00:00
|
|
|
80 => 80,
|
2009-10-15 21:00:23 +00:00
|
|
|
82 => 82,
|
2009-10-21 15:19:00 +00:00
|
|
|
111 => 82,
|
2009-04-05 14:49:27 +00:00
|
|
|
83 => 83,
|
2009-10-15 21:00:23 +00:00
|
|
|
84 => 84,
|
2009-03-22 16:09:05 +00:00
|
|
|
85 => 85,
|
2009-10-19 14:36:57 +00:00
|
|
|
86 => 86,
|
2009-10-21 15:19:00 +00:00
|
|
|
89 => 86,
|
2009-10-21 09:49:43 +00:00
|
|
|
87 => 87,
|
2009-10-21 15:19:00 +00:00
|
|
|
88 => 88,
|
|
|
|
90 => 90,
|
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-10-21 15:19:00 +00:00
|
|
|
116 => 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-10-15 21:00:23 +00:00
|
|
|
99 => 99,
|
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-10-19 14:36:57 +00:00
|
|
|
103 => 103,
|
2009-10-21 09:49:43 +00:00
|
|
|
104 => 104,
|
2009-10-21 15:19:00 +00:00
|
|
|
105 => 105,
|
2009-10-15 21:00:23 +00:00
|
|
|
107 => 107,
|
2009-10-19 14:36:57 +00:00
|
|
|
108 => 108,
|
2009-10-21 09:49:43 +00:00
|
|
|
109 => 109,
|
2009-10-21 15:19:00 +00:00
|
|
|
110 => 110,
|
2009-10-21 09:49:43 +00:00
|
|
|
112 => 112,
|
2009-10-21 15:19:00 +00:00
|
|
|
113 => 113,
|
|
|
|
115 => 115,
|
2009-09-27 17:58:33 +00:00
|
|
|
117 => 117,
|
2009-10-19 14:36:57 +00:00
|
|
|
118 => 118,
|
2009-10-21 15:19:00 +00:00
|
|
|
121 => 118,
|
|
|
|
132 => 118,
|
2009-10-21 09:49:43 +00:00
|
|
|
119 => 119,
|
2009-10-21 15:19:00 +00:00
|
|
|
120 => 120,
|
2009-10-15 21:00:23 +00:00
|
|
|
122 => 122,
|
|
|
|
123 => 123,
|
|
|
|
124 => 124,
|
2009-10-21 15:19:00 +00:00
|
|
|
129 => 124,
|
2009-10-19 14:36:57 +00:00
|
|
|
125 => 125,
|
2009-10-21 15:19:00 +00:00
|
|
|
128 => 125,
|
2009-10-21 09:49:43 +00:00
|
|
|
126 => 126,
|
2009-10-21 15:19:00 +00:00
|
|
|
131 => 126,
|
|
|
|
127 => 127,
|
|
|
|
130 => 127,
|
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-15 21:00:23 +00:00
|
|
|
139 => 139,
|
2009-10-05 18:55:22 +00:00
|
|
|
140 => 140,
|
2009-10-13 19:44:38 +00:00
|
|
|
141 => 141,
|
|
|
|
142 => 142,
|
2009-10-19 14:36:57 +00:00
|
|
|
143 => 143,
|
2009-10-21 09:49:43 +00:00
|
|
|
144 => 144,
|
2009-10-21 15:19:00 +00:00
|
|
|
145 => 145,
|
2009-09-27 17:58:33 +00:00
|
|
|
147 => 147,
|
2009-10-19 14:36:57 +00:00
|
|
|
148 => 148,
|
2009-10-21 09:49:43 +00:00
|
|
|
149 => 149,
|
2009-10-21 15:19:00 +00:00
|
|
|
150 => 150,
|
2009-10-13 19:44:38 +00:00
|
|
|
154 => 154,
|
2009-10-15 21:00:23 +00:00
|
|
|
155 => 155,
|
|
|
|
156 => 156,
|
2009-10-19 14:36:57 +00:00
|
|
|
157 => 157,
|
2009-10-21 09:49:43 +00:00
|
|
|
158 => 158,
|
2009-10-21 15:19:00 +00:00
|
|
|
159 => 159,
|
|
|
|
161 => 161,
|
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-10-19 20:25:47 +00:00
|
|
|
#line 80 "internal.templateparser.y"
|
2009-03-22 16:09:05 +00:00
|
|
|
function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 1992 "internal.templateparser.php"
|
2009-10-19 20:25:47 +00:00
|
|
|
#line 86 "internal.templateparser.y"
|
2009-09-29 16:23:35 +00:00
|
|
|
function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 1995 "internal.templateparser.php"
|
2009-10-19 20:25:47 +00:00
|
|
|
#line 88 "internal.templateparser.y"
|
2009-09-29 16:23:35 +00:00
|
|
|
function yy_r2(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 1998 "internal.templateparser.php"
|
2009-10-19 20:25:47 +00:00
|
|
|
#line 94 "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-10-20 17:09:22 +00:00
|
|
|
$tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->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);
|
2009-10-19 20:25:47 +00:00
|
|
|
} else { $this->_retvalue = $s[0].$this->yystack[$this->yyidx + -1]->minor;} $this->nocache=false; $this->compiler->has_variable_string = false; }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2005 "internal.templateparser.php"
|
|
|
|
#line 112 "internal.templateparser.y"
|
|
|
|
function yy_r6(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0]; }
|
|
|
|
#line 2008 "internal.templateparser.php"
|
2009-10-19 20:25:47 +00:00
|
|
|
#line 115 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r7(){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 2011 "internal.templateparser.php"
|
|
|
|
#line 117 "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->left_delimiter, $this->compiler,false,false); }
|
|
|
|
#line 2014 "internal.templateparser.php"
|
|
|
|
#line 119 "internal.templateparser.y"
|
|
|
|
function yy_r9(){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 2017 "internal.templateparser.php"
|
|
|
|
#line 121 "internal.templateparser.y"
|
|
|
|
function yy_r10(){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-21 15:19:00 +00:00
|
|
|
#line 2029 "internal.templateparser.php"
|
|
|
|
#line 132 "internal.templateparser.y"
|
|
|
|
function yy_r11(){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-21 15:19:00 +00:00
|
|
|
#line 2040 "internal.templateparser.php"
|
|
|
|
#line 143 "internal.templateparser.y"
|
|
|
|
function yy_r12(){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 2043 "internal.templateparser.php"
|
|
|
|
#line 144 "internal.templateparser.y"
|
|
|
|
function yy_r13(){$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '?>';?>\n", $this->compiler, true, true); }
|
|
|
|
#line 2046 "internal.templateparser.php"
|
|
|
|
#line 146 "internal.templateparser.y"
|
|
|
|
function yy_r14(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false,false); }
|
|
|
|
#line 2049 "internal.templateparser.php"
|
2009-10-21 09:49:43 +00:00
|
|
|
#line 153 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r15(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); }
|
|
|
|
#line 2052 "internal.templateparser.php"
|
|
|
|
#line 163 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r18(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor)); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2055 "internal.templateparser.php"
|
|
|
|
#line 166 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r20(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2058 "internal.templateparser.php"
|
|
|
|
#line 168 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r21(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor)); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2061 "internal.templateparser.php"
|
|
|
|
#line 170 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r22(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor).'<?php echo ';
|
2009-10-13 19:44:38 +00:00
|
|
|
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -2]->minor[0],'modifier')) {
|
|
|
|
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>";
|
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-21 15:19:00 +00:00
|
|
|
#line 2076 "internal.templateparser.php"
|
|
|
|
#line 184 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r23(){if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) {
|
2009-10-13 19:44:38 +00:00
|
|
|
$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)); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2082 "internal.templateparser.php"
|
|
|
|
#line 188 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r24(){ if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) {
|
2009-10-13 19:44:38 +00:00
|
|
|
$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)); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2088 "internal.templateparser.php"
|
|
|
|
#line 193 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r25(){
|
2009-10-13 19:44:38 +00:00
|
|
|
if ($this->yystack[$this->yyidx + -8]->minor != 'for') {
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -8]->minor . "\"");
|
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)); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2095 "internal.templateparser.php"
|
|
|
|
#line 198 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r26(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2098 "internal.templateparser.php"
|
|
|
|
#line 199 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r27(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2101 "internal.templateparser.php"
|
|
|
|
#line 201 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r28(){
|
2009-10-13 19:44:38 +00:00
|
|
|
if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') {
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\"");
|
|
|
|
}
|
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor)); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2108 "internal.templateparser.php"
|
|
|
|
#line 206 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r29(){
|
2009-10-13 19:44:38 +00:00
|
|
|
if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') {
|
|
|
|
$this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\"");
|
|
|
|
}
|
|
|
|
$this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor)); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2115 "internal.templateparser.php"
|
|
|
|
#line 213 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r30(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',$this->yystack[$this->yyidx + 0]->minor); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2118 "internal.templateparser.php"
|
|
|
|
#line 214 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r31(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',$this->yystack[$this->yyidx + 0]->minor).'<?php echo ';
|
2009-10-19 14:36:57 +00:00
|
|
|
if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -2]->minor[0],'modifier')) {
|
|
|
|
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>";
|
|
|
|
} else {
|
|
|
|
if (is_callable($this->yystack[$this->yyidx + -2]->minor[0])) {
|
|
|
|
if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -2]->minor[0], $this->compiler)) {
|
|
|
|
$this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>";
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -2]->minor[0] . "\"");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2133 "internal.templateparser.php"
|
|
|
|
#line 228 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r32(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + 0]->minor)); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2136 "internal.templateparser.php"
|
|
|
|
#line 235 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r33(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2139 "internal.templateparser.php"
|
|
|
|
#line 239 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r35(){ $this->_retvalue = array(); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2142 "internal.templateparser.php"
|
|
|
|
#line 242 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r36(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2145 "internal.templateparser.php"
|
|
|
|
#line 244 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r38(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true'); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2148 "internal.templateparser.php"
|
|
|
|
#line 249 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r39(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2151 "internal.templateparser.php"
|
|
|
|
#line 250 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r40(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2154 "internal.templateparser.php"
|
|
|
|
#line 252 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r41(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2157 "internal.templateparser.php"
|
|
|
|
#line 258 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r42(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2160 "internal.templateparser.php"
|
|
|
|
#line 261 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r44(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2163 "internal.templateparser.php"
|
|
|
|
#line 262 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r45(){
|
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-21 15:19:00 +00:00
|
|
|
#line 2178 "internal.templateparser.php"
|
|
|
|
#line 279 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r47(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2181 "internal.templateparser.php"
|
|
|
|
#line 281 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r48(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor; }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2184 "internal.templateparser.php"
|
|
|
|
#line 288 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r50(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2187 "internal.templateparser.php"
|
|
|
|
#line 302 "internal.templateparser.y"
|
2009-10-21 09:49:43 +00:00
|
|
|
function yy_r54(){$this->_retvalue = ' & '; }
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2190 "internal.templateparser.php"
|
2009-10-21 09:49:43 +00:00
|
|
|
#line 309 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r58(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2193 "internal.templateparser.php"
|
2009-10-19 20:25:47 +00:00
|
|
|
#line 317 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r62(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
|
|
|
|
#line 2196 "internal.templateparser.php"
|
|
|
|
#line 319 "internal.templateparser.y"
|
|
|
|
function yy_r63(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'"; }
|
|
|
|
#line 2199 "internal.templateparser.php"
|
2009-10-21 09:49:43 +00:00
|
|
|
#line 320 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r64(){ $this->_retvalue = "''"; }
|
|
|
|
#line 2202 "internal.templateparser.php"
|
2009-10-21 09:49:43 +00:00
|
|
|
#line 322 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r65(){ $this->_retvalue = '"'.$this->yystack[$this->yyidx + -1]->minor.'"'; }
|
|
|
|
#line 2205 "internal.templateparser.php"
|
|
|
|
#line 325 "internal.templateparser.y"
|
|
|
|
function yy_r67(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2208 "internal.templateparser.php"
|
2009-10-21 09:49:43 +00:00
|
|
|
#line 326 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r68(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -3]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -1]->minor .')'; }
|
|
|
|
#line 2211 "internal.templateparser.php"
|
|
|
|
#line 328 "internal.templateparser.y"
|
|
|
|
function yy_r69(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2214 "internal.templateparser.php"
|
|
|
|
#line 329 "internal.templateparser.y"
|
|
|
|
function yy_r70(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -4]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -7]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -2]->minor .')'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2217 "internal.templateparser.php"
|
|
|
|
#line 331 "internal.templateparser.y"
|
|
|
|
function yy_r71(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2220 "internal.templateparser.php"
|
|
|
|
#line 333 "internal.templateparser.y"
|
|
|
|
function yy_r72(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2223 "internal.templateparser.php"
|
2009-10-21 09:49:43 +00:00
|
|
|
#line 335 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r73(){ $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 2226 "internal.templateparser.php"
|
|
|
|
#line 337 "internal.templateparser.y"
|
|
|
|
function yy_r74(){ $this->prefix_number++; $this->compiler->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + -1]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number; }
|
|
|
|
#line 2229 "internal.templateparser.php"
|
2009-10-21 09:49:43 +00:00
|
|
|
#line 346 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r75(){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 2233 "internal.templateparser.php"
|
|
|
|
#line 349 "internal.templateparser.y"
|
|
|
|
function yy_r76(){ $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 2236 "internal.templateparser.php"
|
|
|
|
#line 353 "internal.templateparser.y"
|
|
|
|
function yy_r78(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; }
|
|
|
|
#line 2239 "internal.templateparser.php"
|
2009-10-21 09:49:43 +00:00
|
|
|
#line 354 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r79(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; }
|
|
|
|
#line 2242 "internal.templateparser.php"
|
|
|
|
#line 357 "internal.templateparser.y"
|
|
|
|
function yy_r80(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor); }
|
|
|
|
#line 2245 "internal.templateparser.php"
|
|
|
|
#line 365 "internal.templateparser.y"
|
|
|
|
function yy_r82(){return; }
|
|
|
|
#line 2248 "internal.templateparser.php"
|
|
|
|
#line 369 "internal.templateparser.y"
|
|
|
|
function yy_r83(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; }
|
|
|
|
#line 2251 "internal.templateparser.php"
|
|
|
|
#line 370 "internal.templateparser.y"
|
|
|
|
function yy_r84(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; }
|
|
|
|
#line 2254 "internal.templateparser.php"
|
|
|
|
#line 371 "internal.templateparser.y"
|
|
|
|
function yy_r85(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]"; }
|
|
|
|
#line 2257 "internal.templateparser.php"
|
|
|
|
#line 372 "internal.templateparser.y"
|
|
|
|
function yy_r86(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; }
|
|
|
|
#line 2260 "internal.templateparser.php"
|
|
|
|
#line 374 "internal.templateparser.y"
|
|
|
|
function yy_r87(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; }
|
|
|
|
#line 2263 "internal.templateparser.php"
|
|
|
|
#line 375 "internal.templateparser.y"
|
|
|
|
function yy_r88(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; }
|
|
|
|
#line 2266 "internal.templateparser.php"
|
|
|
|
#line 379 "internal.templateparser.y"
|
|
|
|
function yy_r90(){$this->_retvalue = ''; }
|
|
|
|
#line 2269 "internal.templateparser.php"
|
|
|
|
#line 387 "internal.templateparser.y"
|
|
|
|
function yy_r92(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2272 "internal.templateparser.php"
|
|
|
|
#line 389 "internal.templateparser.y"
|
|
|
|
function yy_r93(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
|
|
|
|
#line 2275 "internal.templateparser.php"
|
|
|
|
#line 391 "internal.templateparser.y"
|
|
|
|
function yy_r94(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2278 "internal.templateparser.php"
|
|
|
|
#line 396 "internal.templateparser.y"
|
|
|
|
function yy_r95(){ 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-10-19 14:36:57 +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-21 15:19:00 +00:00
|
|
|
#line 2282 "internal.templateparser.php"
|
|
|
|
#line 399 "internal.templateparser.y"
|
|
|
|
function yy_r96(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2285 "internal.templateparser.php"
|
|
|
|
#line 401 "internal.templateparser.y"
|
|
|
|
function yy_r97(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2288 "internal.templateparser.php"
|
2009-10-21 09:49:43 +00:00
|
|
|
#line 403 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r98(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2291 "internal.templateparser.php"
|
|
|
|
#line 404 "internal.templateparser.y"
|
|
|
|
function yy_r99(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
|
|
|
|
#line 2294 "internal.templateparser.php"
|
|
|
|
#line 405 "internal.templateparser.y"
|
|
|
|
function yy_r100(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
|
|
|
|
#line 2297 "internal.templateparser.php"
|
|
|
|
#line 406 "internal.templateparser.y"
|
|
|
|
function yy_r101(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; }
|
|
|
|
#line 2300 "internal.templateparser.php"
|
|
|
|
#line 408 "internal.templateparser.y"
|
|
|
|
function yy_r102(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2303 "internal.templateparser.php"
|
|
|
|
#line 414 "internal.templateparser.y"
|
|
|
|
function yy_r103(){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-21 15:19:00 +00:00
|
|
|
#line 2312 "internal.templateparser.php"
|
|
|
|
#line 425 "internal.templateparser.y"
|
|
|
|
function yy_r104(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")"; }
|
|
|
|
#line 2315 "internal.templateparser.php"
|
|
|
|
#line 429 "internal.templateparser.y"
|
|
|
|
function yy_r105(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2318 "internal.templateparser.php"
|
|
|
|
#line 433 "internal.templateparser.y"
|
|
|
|
function yy_r107(){ return; }
|
|
|
|
#line 2321 "internal.templateparser.php"
|
|
|
|
#line 438 "internal.templateparser.y"
|
|
|
|
function yy_r108(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'false'); }
|
|
|
|
#line 2324 "internal.templateparser.php"
|
|
|
|
#line 439 "internal.templateparser.y"
|
|
|
|
function yy_r109(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor,'true'); }
|
|
|
|
#line 2327 "internal.templateparser.php"
|
|
|
|
#line 451 "internal.templateparser.y"
|
|
|
|
function yy_r110(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2330 "internal.templateparser.php"
|
|
|
|
#line 455 "internal.templateparser.y"
|
|
|
|
function yy_r112(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2333 "internal.templateparser.php"
|
|
|
|
#line 456 "internal.templateparser.y"
|
|
|
|
function yy_r113(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\''; }
|
|
|
|
#line 2336 "internal.templateparser.php"
|
2009-10-13 19:44:38 +00:00
|
|
|
#line 463 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r115(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2339 "internal.templateparser.php"
|
2009-10-21 09:49:43 +00:00
|
|
|
#line 468 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r117(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2342 "internal.templateparser.php"
|
|
|
|
#line 470 "internal.templateparser.y"
|
|
|
|
function yy_r118(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2345 "internal.templateparser.php"
|
|
|
|
#line 471 "internal.templateparser.y"
|
|
|
|
function yy_r119(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2348 "internal.templateparser.php"
|
|
|
|
#line 472 "internal.templateparser.y"
|
|
|
|
function yy_r120(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2351 "internal.templateparser.php"
|
2009-10-21 09:49:43 +00:00
|
|
|
#line 474 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r122(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2354 "internal.templateparser.php"
|
|
|
|
#line 475 "internal.templateparser.y"
|
|
|
|
function yy_r123(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2357 "internal.templateparser.php"
|
2009-10-19 14:36:57 +00:00
|
|
|
#line 476 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r124(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2360 "internal.templateparser.php"
|
2009-10-19 14:36:57 +00:00
|
|
|
#line 477 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r125(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2363 "internal.templateparser.php"
|
2009-10-19 14:36:57 +00:00
|
|
|
#line 478 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r126(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2366 "internal.templateparser.php"
|
2009-10-15 21:00:23 +00:00
|
|
|
#line 479 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r127(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; }
|
|
|
|
#line 2369 "internal.templateparser.php"
|
2009-10-19 14:36:57 +00:00
|
|
|
#line 485 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r133(){$this->prefix_number++; $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'='.$this->yystack[$this->yyidx + 0]->minor.';?>'; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.'$_tmp'.$this->prefix_number; }
|
|
|
|
#line 2372 "internal.templateparser.php"
|
2009-10-21 09:49:43 +00:00
|
|
|
#line 487 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r134(){$this->_retvalue = '=='; }
|
|
|
|
#line 2375 "internal.templateparser.php"
|
|
|
|
#line 488 "internal.templateparser.y"
|
|
|
|
function yy_r135(){$this->_retvalue = '!='; }
|
|
|
|
#line 2378 "internal.templateparser.php"
|
|
|
|
#line 489 "internal.templateparser.y"
|
|
|
|
function yy_r136(){$this->_retvalue = '>'; }
|
|
|
|
#line 2381 "internal.templateparser.php"
|
|
|
|
#line 490 "internal.templateparser.y"
|
|
|
|
function yy_r137(){$this->_retvalue = '<'; }
|
|
|
|
#line 2384 "internal.templateparser.php"
|
|
|
|
#line 491 "internal.templateparser.y"
|
|
|
|
function yy_r138(){$this->_retvalue = '>='; }
|
|
|
|
#line 2387 "internal.templateparser.php"
|
2009-10-21 09:49:43 +00:00
|
|
|
#line 492 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r139(){$this->_retvalue = '<='; }
|
|
|
|
#line 2390 "internal.templateparser.php"
|
|
|
|
#line 493 "internal.templateparser.y"
|
|
|
|
function yy_r140(){$this->_retvalue = '==='; }
|
|
|
|
#line 2393 "internal.templateparser.php"
|
2009-10-19 14:36:57 +00:00
|
|
|
#line 494 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r141(){$this->_retvalue = '!=='; }
|
|
|
|
#line 2396 "internal.templateparser.php"
|
2009-10-19 20:25:47 +00:00
|
|
|
#line 496 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r142(){$this->_retvalue = '&&'; }
|
|
|
|
#line 2399 "internal.templateparser.php"
|
2009-10-21 09:49:43 +00:00
|
|
|
#line 497 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r143(){$this->_retvalue = '||'; }
|
|
|
|
#line 2402 "internal.templateparser.php"
|
|
|
|
#line 498 "internal.templateparser.y"
|
|
|
|
function yy_r144(){$this->_retvalue = ' XOR '; }
|
|
|
|
#line 2405 "internal.templateparser.php"
|
|
|
|
#line 503 "internal.templateparser.y"
|
|
|
|
function yy_r145(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; }
|
|
|
|
#line 2408 "internal.templateparser.php"
|
|
|
|
#line 505 "internal.templateparser.y"
|
|
|
|
function yy_r147(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2411 "internal.templateparser.php"
|
2009-10-19 14:36:57 +00:00
|
|
|
#line 506 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r148(){ return; }
|
|
|
|
#line 2414 "internal.templateparser.php"
|
2009-10-19 14:36:57 +00:00
|
|
|
#line 507 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r149(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2417 "internal.templateparser.php"
|
2009-10-19 14:36:57 +00:00
|
|
|
#line 508 "internal.templateparser.y"
|
2009-10-21 15:19:00 +00:00
|
|
|
function yy_r150(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2420 "internal.templateparser.php"
|
|
|
|
#line 517 "internal.templateparser.y"
|
|
|
|
function yy_r154(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`"; }
|
|
|
|
#line 2423 "internal.templateparser.php"
|
|
|
|
#line 518 "internal.templateparser.y"
|
|
|
|
function yy_r155(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."'; $this->compiler->has_variable_string = true; }
|
|
|
|
#line 2426 "internal.templateparser.php"
|
|
|
|
#line 519 "internal.templateparser.y"
|
|
|
|
function yy_r156(){$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; $this->compiler->has_variable_string = true; }
|
|
|
|
#line 2429 "internal.templateparser.php"
|
|
|
|
#line 520 "internal.templateparser.y"
|
|
|
|
function yy_r157(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0].'".('.$this->yystack[$this->yyidx + -1]->minor.')."'; $this->compiler->has_variable_string = true; }
|
|
|
|
#line 2432 "internal.templateparser.php"
|
|
|
|
#line 521 "internal.templateparser.y"
|
|
|
|
function yy_r158(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->prefix_number++; $this->compiler->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + -1]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = $s[0].'".$_tmp'.$this->prefix_number.'."'; $this->compiler->has_variable_string = true; }
|
|
|
|
#line 2435 "internal.templateparser.php"
|
|
|
|
#line 522 "internal.templateparser.y"
|
|
|
|
function yy_r159(){$this->_retvalue = '$'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2438 "internal.templateparser.php"
|
|
|
|
#line 524 "internal.templateparser.y"
|
|
|
|
function yy_r161(){$this->_retvalue = '`'.$this->yystack[$this->yyidx + 0]->minor; }
|
|
|
|
#line 2441 "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-10-19 20:25:47 +00:00
|
|
|
#line 61 "internal.templateparser.y"
|
2009-03-22 16:09:05 +00:00
|
|
|
|
|
|
|
$this->internalError = true;
|
|
|
|
$this->yymajor = $yymajor;
|
|
|
|
$this->compiler->trigger_template_error();
|
2009-10-21 15:19:00 +00:00
|
|
|
#line 2559 "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-10-19 20:25:47 +00:00
|
|
|
#line 53 "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-21 15:19:00 +00:00
|
|
|
#line 2584 "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);
|
|
|
|
}
|
|
|
|
}
|