mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-10-30 20:01:37 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			2682 lines
		
	
	
		
			127 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			2682 lines
		
	
	
		
			127 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?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;
 | |
|         $this->smarty = $this->compiler->smarty;
 | |
|         $this->template = $this->compiler->template;
 | |
|         if ($this->template->security && isset($this->smarty->security_handler)) {
 | |
|               $this->sec_obj = $this->smarty->security_policy;
 | |
|         } else {
 | |
|               $this->sec_obj = $this->smarty;
 | |
|         }
 | |
|         $this->cacher = $this->template->cacher_object; 
 | |
| 				$this->nocache = false;
 | |
| 				$this->prefix_code = array();
 | |
| 				$this->prefix_number = 0;
 | |
|     }
 | |
|     public static function &instance($new_instance = null)
 | |
|     {
 | |
|         static $instance = null;
 | |
|         if (isset($new_instance) && is_object($new_instance))
 | |
|             $instance = $new_instance;
 | |
|         return $instance;
 | |
|     }
 | |
|     
 | |
| #line 147 "internal.templateparser.php"
 | |
| 
 | |
| /* Next is all token values, as class constants
 | |
| */
 | |
| /* 
 | |
| ** These constants (all generated automatically by the parser generator)
 | |
| ** specify the various kinds of tokens (terminals) that the parser
 | |
| ** understands. 
 | |
| **
 | |
| ** Each symbol here is a terminal symbol in the grammar.
 | |
| */
 | |
|     const TP_OTHER                          =  1;
 | |
|     const TP_XML                            =  2;
 | |
|     const TP_PHP                            =  3;
 | |
|     const TP_SHORTTAGSTART                  =  4;
 | |
|     const TP_SHORTTAGEND                    =  5;
 | |
|     const TP_PHPSTART                       =  6;
 | |
|     const TP_PHPEND                         =  7;
 | |
|     const TP_COMMENTEND                     =  8;
 | |
|     const TP_COMMENTSTART                   =  9;
 | |
|     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;
 | |
|     const TP_INSTANCEOF                     = 69;
 | |
|     const TP_QMARK                          = 70;
 | |
|     const YY_NO_ACTION = 468;
 | |
|     const YY_ACCEPT_ACTION = 467;
 | |
|     const YY_ERROR_ACTION = 466;
 | |
| 
 | |
| /* Next are that tables used to determine what action to take based on the
 | |
| ** current state and lookahead token.  These tables are used to implement
 | |
| ** functions that take a state number and lookahead value and return an
 | |
| ** action integer.  
 | |
| **
 | |
| ** Suppose the action integer is N.  Then the action is determined as
 | |
| ** follows
 | |
| **
 | |
| **   0 <= N < self::YYNSTATE                              Shift N.  That is,
 | |
| **                                                        push the lookahead
 | |
| **                                                        token onto the stack
 | |
| **                                                        and goto state N.
 | |
| **
 | |
| **   self::YYNSTATE <= N < self::YYNSTATE+self::YYNRULE   Reduce by rule N-YYNSTATE.
 | |
| **
 | |
| **   N == self::YYNSTATE+self::YYNRULE                    A syntax error has occurred.
 | |
| **
 | |
| **   N == self::YYNSTATE+self::YYNRULE+1                  The parser accepts its
 | |
| **                                                        input. (and concludes parsing)
 | |
| **
 | |
| **   N == self::YYNSTATE+self::YYNRULE+2                  No such action.  Denotes unused
 | |
| **                                                        slots in the yy_action[] table.
 | |
| **
 | |
| ** The action table is constructed as a single large static array $yy_action.
 | |
| ** Given state S and lookahead X, the action is computed as
 | |
| **
 | |
| **      self::$yy_action[self::$yy_shift_ofst[S] + X ]
 | |
| **
 | |
| ** If the index value self::$yy_shift_ofst[S]+X is out of range or if the value
 | |
| ** self::$yy_lookahead[self::$yy_shift_ofst[S]+X] is not equal to X or if
 | |
| ** self::$yy_shift_ofst[S] is equal to self::YY_SHIFT_USE_DFLT, it means that
 | |
| ** the action is not in the table and that self::$yy_default[S] should be used instead.  
 | |
| **
 | |
| ** The formula above is for computing the action when the lookahead is
 | |
| ** a terminal symbol.  If the lookahead is a non-terminal (as occurs after
 | |
| ** a reduce action) then the static $yy_reduce_ofst array is used in place of
 | |
| ** the static $yy_shift_ofst array and self::YY_REDUCE_USE_DFLT is used in place of
 | |
| ** self::YY_SHIFT_USE_DFLT.
 | |
| **
 | |
| ** The following are the tables generated in this section:
 | |
| **
 | |
| **  self::$yy_action        A single table containing all actions.
 | |
| **  self::$yy_lookahead     A table containing the lookahead for each entry in
 | |
| **                          yy_action.  Used to detect hash collisions.
 | |
| **  self::$yy_shift_ofst    For each state, the offset into self::$yy_action for
 | |
| **                          shifting terminals.
 | |
| **  self::$yy_reduce_ofst   For each state, the offset into self::$yy_action for
 | |
| **                          shifting non-terminals after a reduce.
 | |
| **  self::$yy_default       Default action for each state.
 | |
| */
 | |
|     const YY_SZ_ACTTAB = 1114;
 | |
| static public $yy_action = array(
 | |
|  /*     0 */   274,  280,  281,    8,    6,  267,  273,    9,    3,  265,
 | |
|  /*    10 */   266,   13,   11,  214,  279,  274,  280,  281,    8,    6,
 | |
|  /*    20 */   267,  273,    9,    3,  265,  266,   13,   11,  146,  274,
 | |
|  /*    30 */   280,  281,    8,    6,  267,  273,    9,    3,  265,  266,
 | |
|  /*    40 */    13,   11,  169,  164,  199,  289,  290,  122,  178,  289,
 | |
|  /*    50 */   290,  146,   36,   60,  114,  338,  263,  276,  291,   16,
 | |
|  /*    60 */   237,   37,  291,  254,  255,  274,  280,  281,    8,    6,
 | |
|  /*    70 */   267,  273,    9,    3,  265,  266,   13,   11,  208,   46,
 | |
|  /*    80 */    60,   27,   22,  166,  289,  290,   16,    5,   23,   14,
 | |
|  /*    90 */   254,  255,  240,   27,  189,  109,   41,  291,   74,   98,
 | |
|  /*   100 */    12,  269,   60,   50,   57,  247,  338,  121,   16,   78,
 | |
|  /*   110 */    45,  201,  254,  255,    4,   24,   14,  249,  285,  155,
 | |
|  /*   120 */   101,  189,  261,   41,  181,   74,   10,   26,  257,  275,
 | |
|  /*   130 */    50,   57,  277,   43,  234,  284,   34,  160,   14,  217,
 | |
|  /*   140 */   467,   93,  205,  189,  277,   41,   67,   67,  150,  201,
 | |
|  /*   150 */    60,   50,   50,   57,  136,   35,   16,  118,  191,  152,
 | |
|  /*   160 */   254,  255,  155,   60,   10,  156,  149,  237,   32,   16,
 | |
|  /*   170 */    12,  203,   47,  254,  255,  206,  210,   63,  182,  207,
 | |
|  /*   180 */   250,  155,   27,   62,    4,   69,   14,  220,  224,  128,
 | |
|  /*   190 */    15,  189,   29,   41,  155,   73,   17,   34,   28,   14,
 | |
|  /*   200 */    50,   57,   38,  156,  189,  155,   41,  151,   67,  235,
 | |
|  /*   210 */    47,   60,  155,   50,   57,  247,   24,   16,  236,   78,
 | |
|  /*   220 */   157,  254,  255,  155,   60,  174,   27,  297,  298,   78,
 | |
|  /*   230 */    16,   67,  261,  277,  254,  255,   50,  231,  257,  146,
 | |
|  /*   240 */   148,   67,  226,  115,   78,   34,   50,   14,  257,  222,
 | |
|  /*   250 */   253,   27,  189,  244,   41,  226,   74,  227,   34,  219,
 | |
|  /*   260 */    14,   50,   57,  257,  190,  189,  221,   41,  160,   74,
 | |
|  /*   270 */   227,   37,   60,   44,   50,   57,  177,  277,   16,  184,
 | |
|  /*   280 */    39,  153,  254,  255,  239,   60,  247,  264,   56,   46,
 | |
|  /*   290 */    78,   16,   67,   92,  181,  254,  255,   50,  194,  285,
 | |
|  /*   300 */   293,  101,  277,  261,  175,    2,    5,   22,   14,  257,
 | |
|  /*   310 */   200,   22,  129,  189,  268,   41,  226,   74,   20,   34,
 | |
|  /*   320 */   109,   14,   50,   57,  109,  230,  189,  195,   41,  160,
 | |
|  /*   330 */    67,  227,  155,  155,   21,   50,   57,  247,  184,   56,
 | |
|  /*   340 */   262,   78,  158,   22,   84,  168,  161,   60,   33,  154,
 | |
|  /*   350 */   167,  226,  101,   16,  261,  209,  109,  254,  255,  173,
 | |
|  /*   360 */   257,  250,   61,  133,   40,  268,  227,  146,  270,  271,
 | |
|  /*   370 */   294,  295,  282,  225,  296,  283,  237,  287,  141,  184,
 | |
|  /*   380 */   232,    5,  247,   14,   78,   51,   78,   30,  189,  107,
 | |
|  /*   390 */    41,  163,   74,  226,  233,  226,  180,   50,   57,  261,
 | |
|  /*   400 */    78,  155,  228,  257,   45,  257,   23,   40,  227,  155,
 | |
|  /*   410 */   227,  270,  271,  294,  295,  282,  225,  296,  283,  257,
 | |
|  /*   420 */    60,   27,  138,  142,  155,  216,   16,  147,  292,  184,
 | |
|  /*   430 */   254,  255,   94,   40,  269,  237,  237,  270,  271,  294,
 | |
|  /*   440 */   295,  282,  225,  296,  283,  127,  193,  204,  132,   60,
 | |
|  /*   450 */    97,  256,  155,  260,   34,   16,   14,  102,  237,  254,
 | |
|  /*   460 */   255,  189,   22,   60,   59,   67,  172,  137,  183,   16,
 | |
|  /*   470 */    50,   57,  198,  254,  255,  109,  145,  158,  155,  287,
 | |
|  /*   480 */   237,  155,  144,   34,  247,  234,    1,  103,   78,  237,
 | |
|  /*   490 */   189,   39,  234,   99,   67,  237,  272,   34,  278,   50,
 | |
|  /*   500 */    57,  261,  287,  184,  189,  288,  162,  257,   67,  119,
 | |
|  /*   510 */   126,  108,  276,   50,   57,  260,  170,  187,  335,   71,
 | |
|  /*   520 */   158,   49,   76,   66,  287,   44,  287,   18,  234,  243,
 | |
|  /*   530 */   259,  249,  285,  247,  101,   56,  261,   78,   43,  134,
 | |
|  /*   540 */    91,  252,  257,  188,  260,  194,  285,   58,  101,  135,
 | |
|  /*   550 */   261,  215,  125,  247,  260,   56,  257,   78,  248,  223,
 | |
|  /*   560 */    86,  268,  287,  202,  186,  194,  285,  247,  101,  184,
 | |
|  /*   570 */   261,   78,   79,  171,   68,  238,  257,  325,   64,  246,
 | |
|  /*   580 */   185,  268,  242,   71,  261,   52,   76,   66,   31,  211,
 | |
|  /*   590 */   257,   65,   25,  213,   17,  249,  285,  197,  101,  247,
 | |
|  /*   600 */   261,  104,  258,   78,  245,   75,  257,  218,   42,   44,
 | |
|  /*   610 */   116,  249,  285,  256,  101,  229,  261,  106,  276,  251,
 | |
|  /*   620 */   241,  247,  257,   56,    7,   78,   77,  176,   87,   72,
 | |
|  /*   630 */   159,  300,  301,  194,  285,  247,  101,   56,  261,   78,
 | |
|  /*   640 */    70,  279,   89,   19,  257,  279,  279,  194,  285,  268,
 | |
|  /*   650 */   101,  279,  261,   48,  279,  247,  279,   56,  257,   78,
 | |
|  /*   660 */   279,  279,   90,  268,  279,  279,  279,  194,  285,  279,
 | |
|  /*   670 */   101,  279,  261,  279,  279,  247,  279,   56,  257,   78,
 | |
|  /*   680 */   279,  279,   83,  268,  279,  279,  279,  194,  285,  279,
 | |
|  /*   690 */   101,  279,  261,  247,  279,   54,  279,   78,  257,  279,
 | |
|  /*   700 */    81,  279,  279,  268,  279,  194,  285,  247,  101,   55,
 | |
|  /*   710 */   261,   78,  279,  279,   82,  279,  257,  279,  279,  194,
 | |
|  /*   720 */   285,  268,  101,  279,  261,  279,  279,  247,  279,   56,
 | |
|  /*   730 */   257,   78,  279,  279,   88,  268,  279,  279,  279,  194,
 | |
|  /*   740 */   285,  279,  101,  279,  261,  279,  165,  279,  279,   71,
 | |
|  /*   750 */   257,   52,   76,   66,  279,  268,  247,  279,   56,  279,
 | |
|  /*   760 */    78,  249,  285,   85,  101,  279,  261,  279,  194,  285,
 | |
|  /*   770 */   279,  101,  257,  261,  247,  279,  110,  279,   78,  257,
 | |
|  /*   780 */   279,  279,  279,  279,  268,  279,  249,  285,  279,  101,
 | |
|  /*   790 */   279,  261,  279,  279,  179,  279,  279,  257,  247,  279,
 | |
|  /*   800 */   140,  212,   78,  279,  279,  279,  279,  279,  279,  279,
 | |
|  /*   810 */   249,  285,  279,  101,  247,  261,  110,  279,   78,  279,
 | |
|  /*   820 */   279,  257,  279,  279,  279,  279,  249,  285,  247,  101,
 | |
|  /*   830 */   104,  261,   78,  279,  192,  279,  279,  257,  279,  279,
 | |
|  /*   840 */   249,  285,  279,  101,  279,  261,  279,  279,  279,  279,
 | |
|  /*   850 */   247,  257,   53,   80,   78,  279,  279,  247,  279,  110,
 | |
|  /*   860 */   299,   78,  249,  285,  279,  101,  279,  261,  279,  249,
 | |
|  /*   870 */   285,  279,  101,  257,  261,  279,  279,  196,  279,  247,
 | |
|  /*   880 */   257,  110,  279,   78,  279,  279,  279,  279,  279,  279,
 | |
|  /*   890 */   279,  249,  285,  247,  101,  113,  261,   78,  279,  286,
 | |
|  /*   900 */   247,  279,  257,  279,   78,  249,  285,  247,  101,  105,
 | |
|  /*   910 */   261,   78,  249,  285,  279,   96,  257,  261,  279,  249,
 | |
|  /*   920 */   285,  279,  101,  257,  261,  279,  279,  279,  279,  247,
 | |
|  /*   930 */   257,  143,  279,   78,  279,  279,  247,  279,  117,  279,
 | |
|  /*   940 */    78,  249,  285,  279,  101,  279,  261,  279,  249,  285,
 | |
|  /*   950 */   279,  101,  257,  261,  279,  279,  247,  279,  131,  257,
 | |
|  /*   960 */    78,  279,  279,  279,  279,  279,  279,  279,  249,  285,
 | |
|  /*   970 */   247,  101,  123,  261,   78,  279,  279,  279,  279,  257,
 | |
|  /*   980 */   279,  279,  249,  285,  247,  101,  111,  261,   78,  279,
 | |
|  /*   990 */   279,  279,  279,  257,  279,  279,  249,  285,  247,  101,
 | |
|  /*  1000 */   124,  261,   78,  279,  279,  279,  279,  257,  279,  279,
 | |
|  /*  1010 */   249,  285,  247,  101,  139,  261,   78,  279,  279,  279,
 | |
|  /*  1020 */   279,  257,  279,  279,  249,  285,  279,  101,  247,  261,
 | |
|  /*  1030 */   120,  279,   78,  279,  279,  257,  279,  279,  279,  279,
 | |
|  /*  1040 */   249,  285,  279,  101,  279,  261,  279,  279,  247,  279,
 | |
|  /*  1050 */   130,  257,   78,  279,  279,  279,  279,  279,  279,  279,
 | |
|  /*  1060 */   249,  285,  247,  101,  112,  261,   78,  279,  279,  279,
 | |
|  /*  1070 */   279,  257,  279,  279,  249,  285,  247,  101,  279,  261,
 | |
|  /*  1080 */    78,  279,  279,  279,  279,  257,  279,  279,  249,  285,
 | |
|  /*  1090 */   247,  100,  279,  261,   78,  279,  279,  279,  279,  257,
 | |
|  /*  1100 */   279,  279,  249,  285,  279,   95,  279,  261,  279,  279,
 | |
|  /*  1110 */   279,  279,  279,  257,
 | |
|     );
 | |
|     static public $yy_lookahead = array(
 | |
|  /*     0 */    31,   32,   33,   34,   35,   36,   37,   38,   39,   40,
 | |
|  /*    10 */    41,   42,   43,   17,   45,   31,   32,   33,   34,   35,
 | |
|  /*    20 */    36,   37,   38,   39,   40,   41,   42,   43,   83,   31,
 | |
|  /*    30 */    32,   33,   34,   35,   36,   37,   38,   39,   40,   41,
 | |
|  /*    40 */    42,   43,   58,   45,    1,   53,   54,   79,   59,   53,
 | |
|  /*    50 */    54,   83,  107,   10,  100,   17,   67,  103,   66,   16,
 | |
|  /*    60 */    92,   46,   66,   20,   21,   31,   32,   33,   34,   35,
 | |
|  /*    70 */    36,   37,   38,   39,   40,   41,   42,   43,   47,   64,
 | |
|  /*    80 */    10,   16,   44,   19,   53,   54,   16,   44,   50,   46,
 | |
|  /*    90 */    20,   21,    1,   16,   51,   57,   53,   66,   55,   77,
 | |
|  /*   100 */    30,   45,   10,   60,   61,   78,   68,   80,   16,   82,
 | |
|  /*   110 */    67,    1,   20,   21,   44,   50,   46,   90,   91,   63,
 | |
|  /*   120 */    93,   51,   95,   53,   59,   55,   16,   50,  101,   52,
 | |
|  /*   130 */    60,   61,   67,   69,  112,   17,   44,   67,   46,   47,
 | |
|  /*   140 */    72,   73,   74,   51,   67,   53,   55,   55,   17,    1,
 | |
|  /*   150 */    10,   60,   60,   61,   79,   56,   16,  100,   67,   67,
 | |
|  /*   160 */    20,   21,   63,   10,   16,   55,   17,   92,   16,   16,
 | |
|  /*   170 */    30,   61,   62,   20,   21,    1,    2,    3,    4,    5,
 | |
|  /*   180 */   105,   63,   16,    9,   44,   11,   46,   13,   14,   15,
 | |
|  /*   190 */    16,   51,   16,   53,   63,   55,   44,   44,   56,   46,
 | |
|  /*   200 */    60,   61,   16,   55,   51,   63,   53,   67,   55,   61,
 | |
|  /*   210 */    62,   10,   63,   60,   61,   78,   50,   16,    1,   82,
 | |
|  /*   220 */    67,   20,   21,   63,   10,   78,   16,   90,   91,   82,
 | |
|  /*   230 */    16,   55,   95,   67,   20,   21,   60,   51,  101,   83,
 | |
|  /*   240 */    78,   55,    1,   67,   82,   44,   60,   46,  101,    8,
 | |
|  /*   250 */    92,   16,   51,   67,   53,    1,   55,   16,   44,   97,
 | |
|  /*   260 */    46,   60,   61,  101,   55,   51,   12,   53,   67,   55,
 | |
|  /*   270 */    16,   46,   10,   48,   60,   61,   67,   67,   16,   68,
 | |
|  /*   280 */    56,   67,   20,   21,   67,   10,   78,   17,   80,   64,
 | |
|  /*   290 */    82,   16,   55,   85,   59,   20,   21,   60,   90,   91,
 | |
|  /*   300 */    47,   93,   67,   95,   67,   58,   44,   44,   46,  101,
 | |
|  /*   310 */    47,   44,   65,   51,  106,   53,    1,   55,   65,   44,
 | |
|  /*   320 */    57,   46,   60,   61,   57,   10,   51,   64,   53,   67,
 | |
|  /*   330 */    55,   16,   63,   63,   65,   60,   61,   78,   68,   80,
 | |
|  /*   340 */   104,   82,   67,   44,   85,   86,   87,   10,   49,   90,
 | |
|  /*   350 */    91,    1,   93,   16,   95,    5,   57,   20,   21,   48,
 | |
|  /*   360 */   101,  105,   88,   79,   18,  106,   16,   83,   22,   23,
 | |
|  /*   370 */    24,   25,   26,   27,   28,   29,   92,  103,   84,   68,
 | |
|  /*   380 */    78,   44,   78,   46,   82,   84,   82,   49,   51,  100,
 | |
|  /*   390 */    53,   45,   55,    1,   90,    1,   78,   60,   61,   95,
 | |
|  /*   400 */    82,   63,   10,  101,   67,  101,   50,   18,   16,   63,
 | |
|  /*   410 */    16,   22,   23,   24,   25,   26,   27,   28,   29,  101,
 | |
|  /*   420 */    10,   16,   79,   79,   63,   17,   16,   83,   45,   68,
 | |
|  /*   430 */    20,   21,   96,   18,   45,   92,   92,   22,   23,   24,
 | |
|  /*   440 */    25,   26,   27,   28,   29,   79,   67,  111,   99,   10,
 | |
|  /*   450 */    77,  102,   63,  104,   44,   16,   46,   77,   92,   20,
 | |
|  /*   460 */    21,   51,   44,   10,   88,   55,   48,   79,   67,   16,
 | |
|  /*   470 */    60,   61,   67,   20,   21,   57,   79,   67,   63,  103,
 | |
|  /*   480 */    92,   63,   79,   44,   78,  112,   68,   88,   82,   92,
 | |
|  /*   490 */    51,   56,  112,   77,   55,   92,   90,   44,   89,   60,
 | |
|  /*   500 */    61,   95,  103,   68,   51,   67,   67,  101,   55,   88,
 | |
|  /*   510 */    99,   88,  103,   60,   61,  104,   75,   55,   17,   78,
 | |
|  /*   520 */    67,   80,   81,   82,  103,   48,  103,   50,  112,   62,
 | |
|  /*   530 */    67,   90,   91,   78,   93,   80,   95,   82,   69,   99,
 | |
|  /*   540 */    85,   17,  101,   64,  104,   90,   91,   88,   93,   99,
 | |
|  /*   550 */    95,   45,   67,   78,  104,   80,  101,   82,   51,   47,
 | |
|  /*   560 */    85,  106,  103,    5,   67,   90,   91,   78,   93,   68,
 | |
|  /*   570 */    95,   82,   45,   19,   55,   67,  101,   17,   55,   90,
 | |
|  /*   580 */    75,  106,   62,   78,   95,   80,   81,   82,   70,   17,
 | |
|  /*   590 */   101,   55,   70,   17,   44,   90,   91,   56,   93,   78,
 | |
|  /*   600 */    95,   80,   60,   82,   60,   67,  101,   67,   94,   48,
 | |
|  /*   610 */   100,   90,   91,  102,   93,  112,   95,  100,  103,   74,
 | |
|  /*   620 */   111,   78,  101,   80,  108,   82,   97,   76,   85,   55,
 | |
|  /*   630 */   109,  110,   86,   90,   91,   78,   93,   80,   95,   82,
 | |
|  /*   640 */    67,  113,   85,   44,  101,  113,  113,   90,   91,  106,
 | |
|  /*   650 */    93,  113,   95,  100,  113,   78,  113,   80,  101,   82,
 | |
|  /*   660 */   113,  113,   85,  106,  113,  113,  113,   90,   91,  113,
 | |
|  /*   670 */    93,  113,   95,  113,  113,   78,  113,   80,  101,   82,
 | |
|  /*   680 */   113,  113,   85,  106,  113,  113,  113,   90,   91,  113,
 | |
|  /*   690 */    93,  113,   95,   78,  113,   80,  113,   82,  101,  113,
 | |
|  /*   700 */    85,  113,  113,  106,  113,   90,   91,   78,   93,   80,
 | |
|  /*   710 */    95,   82,  113,  113,   85,  113,  101,  113,  113,   90,
 | |
|  /*   720 */    91,  106,   93,  113,   95,  113,  113,   78,  113,   80,
 | |
|  /*   730 */   101,   82,  113,  113,   85,  106,  113,  113,  113,   90,
 | |
|  /*   740 */    91,  113,   93,  113,   95,  113,   75,  113,  113,   78,
 | |
|  /*   750 */   101,   80,   81,   82,  113,  106,   78,  113,   80,  113,
 | |
|  /*   760 */    82,   90,   91,   85,   93,  113,   95,  113,   90,   91,
 | |
|  /*   770 */   113,   93,  101,   95,   78,  113,   80,  113,   82,  101,
 | |
|  /*   780 */   113,  113,  113,  113,  106,  113,   90,   91,  113,   93,
 | |
|  /*   790 */   113,   95,  113,  113,   98,  113,  113,  101,   78,  113,
 | |
|  /*   800 */    80,   81,   82,  113,  113,  113,  113,  113,  113,  113,
 | |
|  /*   810 */    90,   91,  113,   93,   78,   95,   80,  113,   82,  113,
 | |
|  /*   820 */   113,  101,  113,  113,  113,  113,   90,   91,   78,   93,
 | |
|  /*   830 */    80,   95,   82,  113,   98,  113,  113,  101,  113,  113,
 | |
|  /*   840 */    90,   91,  113,   93,  113,   95,  113,  113,  113,  113,
 | |
|  /*   850 */    78,  101,   80,   81,   82,  113,  113,   78,  113,   80,
 | |
|  /*   860 */   110,   82,   90,   91,  113,   93,  113,   95,  113,   90,
 | |
|  /*   870 */    91,  113,   93,  101,   95,  113,  113,   98,  113,   78,
 | |
|  /*   880 */   101,   80,  113,   82,  113,  113,  113,  113,  113,  113,
 | |
|  /*   890 */   113,   90,   91,   78,   93,   80,   95,   82,  113,   98,
 | |
|  /*   900 */    78,  113,  101,  113,   82,   90,   91,   78,   93,   80,
 | |
|  /*   910 */    95,   82,   90,   91,  113,   93,  101,   95,  113,   90,
 | |
|  /*   920 */    91,  113,   93,  101,   95,  113,  113,  113,  113,   78,
 | |
|  /*   930 */   101,   80,  113,   82,  113,  113,   78,  113,   80,  113,
 | |
|  /*   940 */    82,   90,   91,  113,   93,  113,   95,  113,   90,   91,
 | |
|  /*   950 */   113,   93,  101,   95,  113,  113,   78,  113,   80,  101,
 | |
|  /*   960 */    82,  113,  113,  113,  113,  113,  113,  113,   90,   91,
 | |
|  /*   970 */    78,   93,   80,   95,   82,  113,  113,  113,  113,  101,
 | |
|  /*   980 */   113,  113,   90,   91,   78,   93,   80,   95,   82,  113,
 | |
|  /*   990 */   113,  113,  113,  101,  113,  113,   90,   91,   78,   93,
 | |
|  /*  1000 */    80,   95,   82,  113,  113,  113,  113,  101,  113,  113,
 | |
|  /*  1010 */    90,   91,   78,   93,   80,   95,   82,  113,  113,  113,
 | |
|  /*  1020 */   113,  101,  113,  113,   90,   91,  113,   93,   78,   95,
 | |
|  /*  1030 */    80,  113,   82,  113,  113,  101,  113,  113,  113,  113,
 | |
|  /*  1040 */    90,   91,  113,   93,  113,   95,  113,  113,   78,  113,
 | |
|  /*  1050 */    80,  101,   82,  113,  113,  113,  113,  113,  113,  113,
 | |
|  /*  1060 */    90,   91,   78,   93,   80,   95,   82,  113,  113,  113,
 | |
|  /*  1070 */   113,  101,  113,  113,   90,   91,   78,   93,  113,   95,
 | |
|  /*  1080 */    82,  113,  113,  113,  113,  101,  113,  113,   90,   91,
 | |
|  /*  1090 */    78,   93,  113,   95,   82,  113,  113,  113,  113,  101,
 | |
|  /*  1100 */   113,  113,   90,   91,  113,   93,  113,   95,  113,  113,
 | |
|  /*  1110 */   113,  113,  113,  101,
 | |
| );
 | |
|     const YY_SHIFT_USE_DFLT = -32;
 | |
|     const YY_SHIFT_MAX = 198;
 | |
|     static public $yy_shift_ofst = array(
 | |
|  /*     0 */   174,  140,   70,   70,   70,   70,   70,   70,   70,   70,
 | |
|  /*    10 */    43,   70,   70,   70,  214,  337,  337,  201,  262,  201,
 | |
|  /*    20 */   214,  201,  201,  262,  201,  201,  201,  201,  201,  201,
 | |
|  /*    30 */   201,  201,  201,  201,  201,  201,  201,   92,  275,  153,
 | |
|  /*    40 */   410,  453,  453,  439,  176,  418,  186,   91,  225,  270,
 | |
|  /*    50 */   237,  435,  361,  361,  389,  346,  415,  110,   77,   65,
 | |
|  /*    60 */   392,  235,  394,  394,  210,  210,  477,  210,  210,  394,
 | |
|  /*    70 */   311,  501,  210,  405,  405,  211,  211,  561,  561,  561,
 | |
|  /*    80 */   211,  -31,   -2,  -16,   34,   34,   34,   34,   34,   34,
 | |
|  /*    90 */    34,   34,   34,  174,  148,   -4,   31,  241,  254,  315,
 | |
|  /*   100 */    -8,   -8,  350,  166,  338,  149,   15,   15,  210,  209,
 | |
|  /*   110 */   269,  142,  131,  118,   15,  152,   15,   56,   15,  210,
 | |
|  /*   120 */    99,  160,  211,  160,  160,  599,  561,  211,  573,  574,
 | |
|  /*   130 */   160,  160,  561,  211,  561,  561,  211,  211,  211,  160,
 | |
|  /*   140 */   160,  224,  211,  160,  211,  211,  -32,  -32,  -32,  -32,
 | |
|  /*   150 */   -32,   38,  263,  299,   64,  -11,  217,  267,  267,  253,
 | |
|  /*   160 */   267,  247,  267,  518,  522,  408,  523,  554,  560,  519,
 | |
|  /*   170 */   572,  536,  538,  540,  544,  542,  576,  550,  508,  527,
 | |
|  /*   180 */   467,  463,  462,  356,  401,  524,  558,  497,  507,  479,
 | |
|  /*   190 */   485,  520,  506,  512,  469,  379,  383,  438,  541,
 | |
| );
 | |
|     const YY_REDUCE_USE_DFLT = -56;
 | |
|     const YY_REDUCE_MAX = 150;
 | |
|     static public $yy_reduce_ofst = array(
 | |
|  /*     0 */    68,  259,  597,  577,  615,  629,  649,  557,  543,  208,
 | |
|  /*    10 */   441,  455,  475,  678,  521,  505,  671,  736,  772,  696,
 | |
|  /*    20 */   750,  801,  779,  720,  920,  950,   27,  815,  851,  984,
 | |
|  /*    30 */   892,  906,  829,  970,  858,  878,  934,  822, 1012,  998,
 | |
|  /*    40 */   137,  489,  304,  406,  162,  344,  302,  318,  349,  -32,
 | |
|  /*    50 */   147,   75,  -32,  284,  -55,  -55,  -55,  336,  409,  -46,
 | |
|  /*    60 */   416,  -46,  373,  380,  421,  423,  440,  274,  459,   22,
 | |
|  /*    70 */   366,  388,  399,  376,  274,  343,  397,  450,  440,  411,
 | |
|  /*    80 */   403,  516,  516,  516,  516,  516,  516,  516,  516,  516,
 | |
|  /*    90 */   516,  516,  516,  545,  509,  514,  514,  503,  503,  503,
 | |
|  /*   100 */   514,  514,  503,  515,  156,  156,  511,  511,  515,  529,
 | |
|  /*   110 */   156,  156,  156,  156,  511,  517,  511,  156,  511,  515,
 | |
|  /*   120 */   156,  156,  158,  156,  156,  553,  236,  158,  551,  546,
 | |
|  /*   130 */   156,  156,  236,  158,  236,  236,  158,  158,  158,  156,
 | |
|  /*   140 */   156,  256,  158,  156,  158,  158,  294,  301,   57,  289,
 | |
|  /*   150 */   510,
 | |
| );
 | |
|     static public $yyExpectedTokens = array(
 | |
|         /* 0 */ array(1, 2, 3, 4, 5, 9, 11, 13, 14, 15, 16, ),
 | |
|         /* 1 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 2 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 3 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 4 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 5 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 6 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 7 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 8 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 9 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 10 */ array(1, 10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 11 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 12 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 13 */ array(10, 16, 20, 21, 30, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 14 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 15 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 16 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 17 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 18 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 19 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 20 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 21 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 22 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 23 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 24 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 25 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 26 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 27 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 28 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 29 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 30 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 31 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 32 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 33 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 34 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 35 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 36 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 37 */ array(10, 16, 20, 21, 44, 46, 47, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 38 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 39 */ array(10, 16, 20, 21, 44, 46, 51, 53, 55, 60, 61, 67, ),
 | |
|         /* 40 */ array(10, 16, 20, 21, 44, 46, 51, 55, 60, 61, 67, ),
 | |
|         /* 41 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ),
 | |
|         /* 42 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ),
 | |
|         /* 43 */ array(10, 16, 20, 21, 44, 51, 55, 60, 61, 67, ),
 | |
|         /* 44 */ array(16, 55, 60, 67, ),
 | |
|         /* 45 */ array(44, 48, 57, 63, 68, ),
 | |
|         /* 46 */ array(16, 51, 55, 60, 67, ),
 | |
|         /* 47 */ array(1, 55, 60, 67, ),
 | |
|         /* 48 */ array(46, 48, 64, ),
 | |
|         /* 49 */ array(17, 63, 68, ),
 | |
|         /* 50 */ array(55, 60, 67, ),
 | |
|         /* 51 */ array(56, 68, ),
 | |
|         /* 52 */ array(63, 68, ),
 | |
|         /* 53 */ array(63, 68, ),
 | |
|         /* 54 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ),
 | |
|         /* 55 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 45, 63, ),
 | |
|         /* 56 */ array(18, 22, 23, 24, 25, 26, 27, 28, 29, 63, ),
 | |
|         /* 57 */ array(1, 16, 55, 61, 62, ),
 | |
|         /* 58 */ array(16, 50, 52, 67, ),
 | |
|         /* 59 */ array(16, 50, 59, 67, ),
 | |
|         /* 60 */ array(1, 10, 16, ),
 | |
|         /* 61 */ array(16, 59, 67, ),
 | |
|         /* 62 */ array(1, 16, ),
 | |
|         /* 63 */ array(1, 16, ),
 | |
|         /* 64 */ array(16, 67, ),
 | |
|         /* 65 */ array(16, 67, ),
 | |
|         /* 66 */ array(48, 50, ),
 | |
|         /* 67 */ array(16, 67, ),
 | |
|         /* 68 */ array(16, 67, ),
 | |
|         /* 69 */ array(1, 16, ),
 | |
|         /* 70 */ array(48, 68, ),
 | |
|         /* 71 */ array(17, 68, ),
 | |
|         /* 72 */ array(16, 67, ),
 | |
|         /* 73 */ array(16, 67, ),
 | |
|         /* 74 */ array(16, 67, ),
 | |
|         /* 75 */ array(68, ),
 | |
|         /* 76 */ array(68, ),
 | |
|         /* 77 */ array(48, ),
 | |
|         /* 78 */ array(48, ),
 | |
|         /* 79 */ array(48, ),
 | |
|         /* 80 */ array(68, ),
 | |
|         /* 81 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ),
 | |
|         /* 82 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, ),
 | |
|         /* 83 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 58, ),
 | |
|         /* 84 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
 | |
|         /* 85 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
 | |
|         /* 86 */ array(31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, ),
 | |
|         /* 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, ),
 | |
|         /* 93 */ array(1, 2, 3, 4, 5, 9, 11, 13, 14, 15, 16, ),
 | |
|         /* 94 */ array(1, 16, 55, 61, 62, ),
 | |
|         /* 95 */ array(17, 53, 54, 66, ),
 | |
|         /* 96 */ array(47, 53, 54, 66, ),
 | |
|         /* 97 */ array(1, 8, 16, ),
 | |
|         /* 98 */ array(1, 12, 16, ),
 | |
|         /* 99 */ array(1, 10, 16, ),
 | |
|         /* 100 */ array(53, 54, 66, ),
 | |
|         /* 101 */ array(53, 54, 66, ),
 | |
|         /* 102 */ array(1, 5, 16, ),
 | |
|         /* 103 */ array(16, 50, 67, ),
 | |
|         /* 104 */ array(49, 63, ),
 | |
|         /* 105 */ array(17, 63, ),
 | |
|         /* 106 */ array(46, 64, ),
 | |
|         /* 107 */ array(46, 64, ),
 | |
|         /* 108 */ array(16, 67, ),
 | |
|         /* 109 */ array(55, 67, ),
 | |
|         /* 110 */ array(63, 65, ),
 | |
|         /* 111 */ array(56, 63, ),
 | |
|         /* 112 */ array(17, 63, ),
 | |
|         /* 113 */ array(17, 63, ),
 | |
|         /* 114 */ array(46, 64, ),
 | |
|         /* 115 */ array(16, 44, ),
 | |
|         /* 116 */ array(46, 64, ),
 | |
|         /* 117 */ array(45, 63, ),
 | |
|         /* 118 */ array(46, 64, ),
 | |
|         /* 119 */ array(16, 67, ),
 | |
|         /* 120 */ array(56, 63, ),
 | |
|         /* 121 */ array(63, ),
 | |
|         /* 122 */ array(68, ),
 | |
|         /* 123 */ array(63, ),
 | |
|         /* 124 */ array(63, ),
 | |
|         /* 125 */ array(44, ),
 | |
|         /* 126 */ array(48, ),
 | |
|         /* 127 */ array(68, ),
 | |
|         /* 128 */ array(67, ),
 | |
|         /* 129 */ array(55, ),
 | |
|         /* 130 */ array(63, ),
 | |
|         /* 131 */ array(63, ),
 | |
|         /* 132 */ array(48, ),
 | |
|         /* 133 */ array(68, ),
 | |
|         /* 134 */ array(48, ),
 | |
|         /* 135 */ array(48, ),
 | |
|         /* 136 */ array(68, ),
 | |
|         /* 137 */ array(68, ),
 | |
|         /* 138 */ array(68, ),
 | |
|         /* 139 */ array(63, ),
 | |
|         /* 140 */ array(63, ),
 | |
|         /* 141 */ array(56, ),
 | |
|         /* 142 */ array(68, ),
 | |
|         /* 143 */ array(63, ),
 | |
|         /* 144 */ array(68, ),
 | |
|         /* 145 */ array(68, ),
 | |
|         /* 146 */ array(),
 | |
|         /* 147 */ array(),
 | |
|         /* 148 */ array(),
 | |
|         /* 149 */ array(),
 | |
|         /* 150 */ array(),
 | |
|         /* 151 */ array(17, 44, 50, 57, 68, ),
 | |
|         /* 152 */ array(44, 47, 57, 64, ),
 | |
|         /* 153 */ array(44, 49, 57, ),
 | |
|         /* 154 */ array(19, 69, ),
 | |
|         /* 155 */ array(59, 67, ),
 | |
|         /* 156 */ array(1, 67, ),
 | |
|         /* 157 */ array(44, 57, ),
 | |
|         /* 158 */ array(44, 57, ),
 | |
|         /* 159 */ array(47, 65, ),
 | |
|         /* 160 */ array(44, 57, ),
 | |
|         /* 161 */ array(58, 65, ),
 | |
|         /* 162 */ array(44, 57, ),
 | |
|         /* 163 */ array(70, ),
 | |
|         /* 164 */ array(70, ),
 | |
|         /* 165 */ array(17, ),
 | |
|         /* 166 */ array(55, ),
 | |
|         /* 167 */ array(19, ),
 | |
|         /* 168 */ array(17, ),
 | |
|         /* 169 */ array(55, ),
 | |
|         /* 170 */ array(17, ),
 | |
|         /* 171 */ array(55, ),
 | |
|         /* 172 */ array(67, ),
 | |
|         /* 173 */ array(67, ),
 | |
|         /* 174 */ array(60, ),
 | |
|         /* 175 */ array(60, ),
 | |
|         /* 176 */ array(17, ),
 | |
|         /* 177 */ array(44, ),
 | |
|         /* 178 */ array(67, ),
 | |
|         /* 179 */ array(45, ),
 | |
|         /* 180 */ array(62, ),
 | |
|         /* 181 */ array(67, ),
 | |
|         /* 182 */ array(55, ),
 | |
|         /* 183 */ array(50, ),
 | |
|         /* 184 */ array(67, ),
 | |
|         /* 185 */ array(17, ),
 | |
|         /* 186 */ array(5, ),
 | |
|         /* 187 */ array(67, ),
 | |
|         /* 188 */ array(51, ),
 | |
|         /* 189 */ array(64, ),
 | |
|         /* 190 */ array(67, ),
 | |
|         /* 191 */ array(62, ),
 | |
|         /* 192 */ array(45, ),
 | |
|         /* 193 */ array(47, ),
 | |
|         /* 194 */ array(69, ),
 | |
|         /* 195 */ array(67, ),
 | |
|         /* 196 */ array(45, ),
 | |
|         /* 197 */ array(67, ),
 | |
|         /* 198 */ array(56, ),
 | |
|         /* 199 */ array(),
 | |
|         /* 200 */ array(),
 | |
|         /* 201 */ array(),
 | |
|         /* 202 */ array(),
 | |
|         /* 203 */ array(),
 | |
|         /* 204 */ array(),
 | |
|         /* 205 */ array(),
 | |
|         /* 206 */ array(),
 | |
|         /* 207 */ array(),
 | |
|         /* 208 */ array(),
 | |
|         /* 209 */ array(),
 | |
|         /* 210 */ array(),
 | |
|         /* 211 */ array(),
 | |
|         /* 212 */ array(),
 | |
|         /* 213 */ array(),
 | |
|         /* 214 */ array(),
 | |
|         /* 215 */ array(),
 | |
|         /* 216 */ array(),
 | |
|         /* 217 */ array(),
 | |
|         /* 218 */ array(),
 | |
|         /* 219 */ array(),
 | |
|         /* 220 */ array(),
 | |
|         /* 221 */ array(),
 | |
|         /* 222 */ array(),
 | |
|         /* 223 */ array(),
 | |
|         /* 224 */ array(),
 | |
|         /* 225 */ array(),
 | |
|         /* 226 */ array(),
 | |
|         /* 227 */ array(),
 | |
|         /* 228 */ array(),
 | |
|         /* 229 */ array(),
 | |
|         /* 230 */ array(),
 | |
|         /* 231 */ array(),
 | |
|         /* 232 */ array(),
 | |
|         /* 233 */ array(),
 | |
|         /* 234 */ array(),
 | |
|         /* 235 */ array(),
 | |
|         /* 236 */ array(),
 | |
|         /* 237 */ array(),
 | |
|         /* 238 */ array(),
 | |
|         /* 239 */ array(),
 | |
|         /* 240 */ array(),
 | |
|         /* 241 */ array(),
 | |
|         /* 242 */ array(),
 | |
|         /* 243 */ array(),
 | |
|         /* 244 */ array(),
 | |
|         /* 245 */ array(),
 | |
|         /* 246 */ array(),
 | |
|         /* 247 */ array(),
 | |
|         /* 248 */ array(),
 | |
|         /* 249 */ array(),
 | |
|         /* 250 */ array(),
 | |
|         /* 251 */ array(),
 | |
|         /* 252 */ array(),
 | |
|         /* 253 */ array(),
 | |
|         /* 254 */ array(),
 | |
|         /* 255 */ array(),
 | |
|         /* 256 */ array(),
 | |
|         /* 257 */ array(),
 | |
|         /* 258 */ array(),
 | |
|         /* 259 */ array(),
 | |
|         /* 260 */ array(),
 | |
|         /* 261 */ array(),
 | |
|         /* 262 */ array(),
 | |
|         /* 263 */ array(),
 | |
|         /* 264 */ array(),
 | |
|         /* 265 */ array(),
 | |
|         /* 266 */ array(),
 | |
|         /* 267 */ array(),
 | |
|         /* 268 */ array(),
 | |
|         /* 269 */ array(),
 | |
|         /* 270 */ array(),
 | |
|         /* 271 */ array(),
 | |
|         /* 272 */ array(),
 | |
|         /* 273 */ array(),
 | |
|         /* 274 */ array(),
 | |
|         /* 275 */ array(),
 | |
|         /* 276 */ array(),
 | |
|         /* 277 */ array(),
 | |
|         /* 278 */ array(),
 | |
|         /* 279 */ array(),
 | |
|         /* 280 */ array(),
 | |
|         /* 281 */ array(),
 | |
|         /* 282 */ array(),
 | |
|         /* 283 */ array(),
 | |
|         /* 284 */ array(),
 | |
|         /* 285 */ array(),
 | |
|         /* 286 */ array(),
 | |
|         /* 287 */ array(),
 | |
|         /* 288 */ array(),
 | |
|         /* 289 */ array(),
 | |
|         /* 290 */ array(),
 | |
|         /* 291 */ array(),
 | |
|         /* 292 */ array(),
 | |
|         /* 293 */ array(),
 | |
|         /* 294 */ array(),
 | |
|         /* 295 */ array(),
 | |
|         /* 296 */ array(),
 | |
|         /* 297 */ array(),
 | |
|         /* 298 */ array(),
 | |
|         /* 299 */ array(),
 | |
|         /* 300 */ array(),
 | |
|         /* 301 */ array(),
 | |
| );
 | |
|     static public $yy_default = array(
 | |
|  /*     0 */   466,  466,  466,  466,  466,  466,  466,  466,  466,  466,
 | |
|  /*    10 */   466,  466,  466,  466,  447,  466,  466,  406,  466,  406,
 | |
|  /*    20 */   466,  406,  406,  466,  466,  466,  466,  466,  466,  466,
 | |
|  /*    30 */   466,  466,  466,  466,  466,  466,  466,  466,  466,  466,
 | |
|  /*    40 */   466,  466,  466,  466,  466,  335,  466,  466,  371,  466,
 | |
|  /*    50 */   466,  335,  335,  335,  416,  416,  416,  466,  466,  381,
 | |
|  /*    60 */   466,  381,  466,  466,  466,  466,  374,  466,  466,  466,
 | |
|  /*    70 */   335,  355,  466,  466,  466,  335,  335,  366,  374,  367,
 | |
|  /*    80 */   335,  466,  466,  466,  324,  421,  414,  429,  430,  420,
 | |
|  /*    90 */   426,  422,  425,  302,  466,  466,  466,  466,  466,  466,
 | |
|  /*   100 */   411,  343,  466,  466,  450,  466,  397,  400,  330,  466,
 | |
|  /*   110 */   405,  466,  466,  466,  379,  381,  399,  466,  398,  329,
 | |
|  /*   120 */   466,  327,  317,  448,  341,  381,  369,  331,  466,  466,
 | |
|  /*   130 */   449,  350,  372,  319,  394,  368,  323,  316,  322,  417,
 | |
|  /*   140 */   336,  345,  321,  351,  320,  318,  410,  410,  381,  381,
 | |
|  /*   150 */   381,  342,  466,  342,  346,  466,  466,  412,  466,  466,
 | |
|  /*   160 */   342,  466,  431,  361,  466,  466,  466,  349,  339,  466,
 | |
|  /*   170 */   466,  466,  466,  466,  466,  466,  466,  370,  466,  466,
 | |
|  /*   180 */   466,  466,  466,  338,  466,  466,  466,  466,  466,  356,
 | |
|  /*   190 */   466,  466,  466,  466,  346,  466,  466,  466,  392,  459,
 | |
|  /*   200 */   386,  461,  312,  365,  452,  303,  315,  314,  388,  311,
 | |
|  /*   210 */   313,  457,  337,  306,  385,  403,  373,  389,  332,  401,
 | |
|  /*   220 */   309,  308,  307,  387,  310,  438,  464,  465,  363,  462,
 | |
|  /*   230 */   362,  383,  384,  348,  463,  364,  458,  334,  407,  455,
 | |
|  /*   240 */   460,  451,  453,  454,  382,  378,  347,  355,  357,  346,
 | |
|  /*   250 */   409,  304,  305,  333,  358,  359,  380,  376,  377,  375,
 | |
|  /*   260 */   395,  360,  396,  408,  456,  423,  424,  427,  413,  361,
 | |
|  /*   270 */   439,  440,  432,  428,  441,  328,  391,  392,  326,  415,
 | |
|  /*   280 */   442,  443,  437,  436,  393,  349,  404,  390,  344,  352,
 | |
|  /*   290 */   353,  354,  402,  444,  433,  434,  435,  419,  418,  446,
 | |
|  /*   300 */   445,  340,
 | |
| );
 | |
| /* The next thing included is series of defines which control
 | |
| ** various aspects of the generated parser.
 | |
| **    self::YYNOCODE      is a number which corresponds
 | |
| **                        to no legal terminal or nonterminal number.  This
 | |
| **                        number is used to fill in empty slots of the hash 
 | |
| **                        table.
 | |
| **    self::YYFALLBACK    If defined, this indicates that one or more tokens
 | |
| **                        have fall-back values which should be used if the
 | |
| **                        original value of the token will not parse.
 | |
| **    self::YYSTACKDEPTH  is the maximum depth of the parser's stack.
 | |
| **    self::YYNSTATE      the combined number of states.
 | |
| **    self::YYNRULE       the number of rules in the grammar
 | |
| **    self::YYERRORSYMBOL is the code number of the error symbol.  If not
 | |
| **                        defined, then do no error processing.
 | |
| */
 | |
|     const YYNOCODE = 114;
 | |
|     const YYSTACKDEPTH = 100;
 | |
|     const YYNSTATE = 302;
 | |
|     const YYNRULE = 164;
 | |
|     const YYERRORSYMBOL = 71;
 | |
|     const YYERRSYMDT = 'yy0';
 | |
|     const YYFALLBACK = 1;
 | |
|     /** The next table maps tokens into fallback tokens.  If a construct
 | |
|      * like the following:
 | |
|      * 
 | |
|      *      %fallback ID X Y Z.
 | |
|      *
 | |
|      * appears in the grammer, then ID becomes a fallback token for X, Y,
 | |
|      * and Z.  Whenever one of the tokens X, Y, or Z is input to the parser
 | |
|      * but it does not parse, the type of the token is changed to ID and
 | |
|      * the parse is retried before an error is thrown.
 | |
|      */
 | |
|     static public $yyFallback = array(
 | |
|     0,  /*          $ => nothing */
 | |
|     0,  /*      OTHER => nothing */
 | |
|     1,  /*        XML => OTHER */
 | |
|     1,  /*        PHP => OTHER */
 | |
|     1,  /* SHORTTAGSTART => OTHER */
 | |
|     1,  /* SHORTTAGEND => OTHER */
 | |
|     1,  /*   PHPSTART => OTHER */
 | |
|     1,  /*     PHPEND => OTHER */
 | |
|     1,  /* COMMENTEND => OTHER */
 | |
|     1,  /* COMMENTSTART => OTHER */
 | |
|     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 */
 | |
|     1,  /*     EQUALS => OTHER */
 | |
|     1,  /*  NOTEQUALS => OTHER */
 | |
|     1,  /* GREATEREQUAL => OTHER */
 | |
|     1,  /*  LESSEQUAL => OTHER */
 | |
|     1,  /* GREATERTHAN => OTHER */
 | |
|     1,  /*   LESSTHAN => OTHER */
 | |
|     1,  /*        NOT => OTHER */
 | |
|     1,  /*       LAND => OTHER */
 | |
|     1,  /*        LOR => OTHER */
 | |
|     1,  /*       LXOR => OTHER */
 | |
|     1,  /*    ISODDBY => OTHER */
 | |
|     1,  /* ISNOTODDBY => OTHER */
 | |
|     1,  /*      ISODD => OTHER */
 | |
|     1,  /*   ISNOTODD => OTHER */
 | |
|     1,  /*   ISEVENBY => OTHER */
 | |
|     1,  /* ISNOTEVENBY => OTHER */
 | |
|     1,  /*     ISEVEN => OTHER */
 | |
|     1,  /*  ISNOTEVEN => OTHER */
 | |
|     1,  /*    ISDIVBY => OTHER */
 | |
|     1,  /* ISNOTDIVBY => OTHER */
 | |
|     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 */
 | |
|     1,  /* INSTANCEOF => OTHER */
 | |
|     1,  /*      QMARK => OTHER */
 | |
|     );
 | |
|     /**
 | |
|      * Turn parser tracing on by giving a stream to which to write the trace
 | |
|      * and a prompt to preface each trace message.  Tracing is turned off
 | |
|      * by making either argument NULL 
 | |
|      *
 | |
|      * Inputs:
 | |
|      * 
 | |
|      * - A stream resource to which trace output should be written.
 | |
|      *   If NULL, then tracing is turned off.
 | |
|      * - A prefix string written at the beginning of every
 | |
|      *   line of trace output.  If NULL, then tracing is
 | |
|      *   turned off.
 | |
|      *
 | |
|      * Outputs:
 | |
|      * 
 | |
|      * - None.
 | |
|      * @param resource
 | |
|      * @param string
 | |
|      */
 | |
|     static function Trace($TraceFILE, $zTracePrompt)
 | |
|     {
 | |
|         if (!$TraceFILE) {
 | |
|             $zTracePrompt = 0;
 | |
|         } elseif (!$zTracePrompt) {
 | |
|             $TraceFILE = 0;
 | |
|         }
 | |
|         self::$yyTraceFILE = $TraceFILE;
 | |
|         self::$yyTracePrompt = $zTracePrompt;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Output debug information to output (php://output stream)
 | |
|      */
 | |
|     static function PrintTrace()
 | |
|     {
 | |
|         self::$yyTraceFILE = fopen('php://output', 'w');
 | |
|         self::$yyTracePrompt = '<br>';
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @var resource|0
 | |
|      */
 | |
|     static public $yyTraceFILE;
 | |
|     /**
 | |
|      * String to prepend to debug output
 | |
|      * @var string|0
 | |
|      */
 | |
|     static public $yyTracePrompt;
 | |
|     /**
 | |
|      * @var int
 | |
|      */
 | |
|     public $yyidx;                    /* Index of top element in stack */
 | |
|     /**
 | |
|      * @var int
 | |
|      */
 | |
|     public $yyerrcnt;                 /* Shifts left before out of the error */
 | |
|     /**
 | |
|      * @var array
 | |
|      */
 | |
|     public $yystack = array();  /* The parser's stack */
 | |
| 
 | |
|     /**
 | |
|      * For tracing shifts, the names of all terminals and nonterminals
 | |
|      * are required.  The following table supplies these names
 | |
|      * @var array
 | |
|      */
 | |
|     public $yyTokenName = array( 
 | |
|   '$',             'OTHER',         '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',          
 | |
|   'SPACE',         'INSTANCEOF',    'QMARK',         'error',       
 | |
|   'start',         'template',      'template_element',  'smartytag',   
 | |
|   'smartyclosetag',  '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', 
 | |
|     );
 | |
| 
 | |
|     /**
 | |
|      * For tracing reduce actions, the names of all rules are required.
 | |
|      * @var array
 | |
|      */
 | |
|     static public $yyRuleName = array(
 | |
|  /*   0 */ "start ::= template",
 | |
|  /*   1 */ "template ::= template_element",
 | |
|  /*   2 */ "template ::= template template_element",
 | |
|  /*   3 */ "template_element ::= LDEL smartytag RDEL",
 | |
|  /*   4 */ "template_element ::= LDELSLASH smartyclosetag RDEL",
 | |
|  /*   5 */ "template_element ::= COMMENTSTART text COMMENTEND",
 | |
|  /*   6 */ "template_element ::= LITERALSTART text LITERALEND",
 | |
|  /*   7 */ "template_element ::= LDELIMTAG",
 | |
|  /*   8 */ "template_element ::= RDELIMTAG",
 | |
|  /*   9 */ "template_element ::= PHP text SHORTTAGEND",
 | |
|  /*  10 */ "template_element ::= SHORTTAGSTART DOLLAR ID SHORTTAGEND",
 | |
|  /*  11 */ "template_element ::= XML",
 | |
|  /*  12 */ "template_element ::= SHORTTAGEND",
 | |
|  /*  13 */ "template_element ::= OTHER",
 | |
|  /*  14 */ "smartytag ::= variable attributes",
 | |
|  /*  15 */ "smartytag ::= expr attributes",
 | |
|  /*  16 */ "smartytag ::= ternary attributes",
 | |
|  /*  17 */ "smartytag ::= varindexed EQUAL expr attributes",
 | |
|  /*  18 */ "smartytag ::= varindexed EQUAL ternary attributes",
 | |
|  /*  19 */ "smartytag ::= ID attributes",
 | |
|  /*  20 */ "smartytag ::= ID PTR ID attributes",
 | |
|  /*  21 */ "smartytag ::= ID modifier modparameters attributes",
 | |
|  /*  22 */ "smartytag ::= ID SPACE ifexprs",
 | |
|  /*  23 */ "smartytag ::= ID SPACE statement",
 | |
|  /*  24 */ "smartytag ::= ID SPACE statements SEMICOLON ifexprs SEMICOLON DOLLAR varvar foraction",
 | |
|  /*  25 */ "foraction ::= EQUAL expr",
 | |
|  /*  26 */ "foraction ::= INCDEC",
 | |
|  /*  27 */ "smartytag ::= ID SPACE value AS DOLLAR varvar",
 | |
|  /*  28 */ "smartytag ::= ID SPACE array AS DOLLAR varvar",
 | |
|  /*  29 */ "smartyclosetag ::= ID attributes",
 | |
|  /*  30 */ "smartyclosetag ::= ID PTR ID",
 | |
|  /*  31 */ "attributes ::= attributes attribute",
 | |
|  /*  32 */ "attributes ::= attribute",
 | |
|  /*  33 */ "attributes ::=",
 | |
|  /*  34 */ "attribute ::= SPACE ID EQUAL expr",
 | |
|  /*  35 */ "attribute ::= SPACE ID EQUAL ternary",
 | |
|  /*  36 */ "attribute ::= SPACE ID",
 | |
|  /*  37 */ "statements ::= statement",
 | |
|  /*  38 */ "statements ::= statements COMMA statement",
 | |
|  /*  39 */ "statement ::= DOLLAR varvar EQUAL expr",
 | |
|  /*  40 */ "expr ::= ID",
 | |
|  /*  41 */ "expr ::= exprs",
 | |
|  /*  42 */ "expr ::= DOLLAR ID COLON ID",
 | |
|  /*  43 */ "expr ::= expr modifier modparameters",
 | |
|  /*  44 */ "exprs ::= value",
 | |
|  /*  45 */ "exprs ::= UNIMATH value",
 | |
|  /*  46 */ "exprs ::= exprs math value",
 | |
|  /*  47 */ "exprs ::= array",
 | |
|  /*  48 */ "ternary ::= OPENP ifexprs CLOSEP QMARK expr COLON expr",
 | |
|  /*  49 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr",
 | |
|  /*  50 */ "math ::= UNIMATH",
 | |
|  /*  51 */ "math ::= MATH",
 | |
|  /*  52 */ "math ::= ANDSYM",
 | |
|  /*  53 */ "value ::= variable",
 | |
|  /*  54 */ "value ::= INTEGER",
 | |
|  /*  55 */ "value ::= INTEGER DOT INTEGER",
 | |
|  /*  56 */ "value ::= BOOLEAN",
 | |
|  /*  57 */ "value ::= NULL",
 | |
|  /*  58 */ "value ::= function",
 | |
|  /*  59 */ "value ::= OPENP expr CLOSEP",
 | |
|  /*  60 */ "value ::= SINGLEQUOTE text SINGLEQUOTE",
 | |
|  /*  61 */ "value ::= SINGLEQUOTE SINGLEQUOTE",
 | |
|  /*  62 */ "value ::= QUOTE doublequoted QUOTE",
 | |
|  /*  63 */ "value ::= QUOTE QUOTE",
 | |
|  /*  64 */ "value ::= ID DOUBLECOLON method",
 | |
|  /*  65 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP",
 | |
|  /*  66 */ "value ::= ID DOUBLECOLON method objectchain",
 | |
|  /*  67 */ "value ::= ID DOUBLECOLON DOLLAR ID OPENP params CLOSEP objectchain",
 | |
|  /*  68 */ "value ::= ID DOUBLECOLON ID",
 | |
|  /*  69 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex",
 | |
|  /*  70 */ "value ::= ID DOUBLECOLON DOLLAR ID arrayindex objectchain",
 | |
|  /*  71 */ "value ::= LDEL smartytag RDEL",
 | |
|  /*  72 */ "variable ::= varindexed",
 | |
|  /*  73 */ "variable ::= DOLLAR varvar AT ID",
 | |
|  /*  74 */ "variable ::= object",
 | |
|  /*  75 */ "variable ::= HATCH ID HATCH",
 | |
|  /*  76 */ "variable ::= HATCH variable HATCH",
 | |
|  /*  77 */ "varindexed ::= DOLLAR varvar arrayindex",
 | |
|  /*  78 */ "arrayindex ::= arrayindex indexdef",
 | |
|  /*  79 */ "arrayindex ::=",
 | |
|  /*  80 */ "indexdef ::= DOT ID",
 | |
|  /*  81 */ "indexdef ::= DOT INTEGER",
 | |
|  /*  82 */ "indexdef ::= DOT variable",
 | |
|  /*  83 */ "indexdef ::= DOT LDEL exprs RDEL",
 | |
|  /*  84 */ "indexdef ::= OPENB ID CLOSEB",
 | |
|  /*  85 */ "indexdef ::= OPENB ID DOT ID CLOSEB",
 | |
|  /*  86 */ "indexdef ::= OPENB exprs CLOSEB",
 | |
|  /*  87 */ "indexdef ::= OPENB CLOSEB",
 | |
|  /*  88 */ "varvar ::= varvarele",
 | |
|  /*  89 */ "varvar ::= varvar varvarele",
 | |
|  /*  90 */ "varvarele ::= ID",
 | |
|  /*  91 */ "varvarele ::= LDEL expr RDEL",
 | |
|  /*  92 */ "object ::= varindexed objectchain",
 | |
|  /*  93 */ "objectchain ::= objectelement",
 | |
|  /*  94 */ "objectchain ::= objectchain objectelement",
 | |
|  /*  95 */ "objectelement ::= PTR ID arrayindex",
 | |
|  /*  96 */ "objectelement ::= PTR variable arrayindex",
 | |
|  /*  97 */ "objectelement ::= PTR LDEL expr RDEL arrayindex",
 | |
|  /*  98 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex",
 | |
|  /*  99 */ "objectelement ::= PTR method",
 | |
|  /* 100 */ "function ::= ID OPENP params CLOSEP",
 | |
|  /* 101 */ "method ::= ID OPENP params CLOSEP",
 | |
|  /* 102 */ "params ::= expr COMMA params",
 | |
|  /* 103 */ "params ::= expr",
 | |
|  /* 104 */ "params ::=",
 | |
|  /* 105 */ "modifier ::= VERT AT ID",
 | |
|  /* 106 */ "modifier ::= VERT ID",
 | |
|  /* 107 */ "modparameters ::= modparameters modparameter",
 | |
|  /* 108 */ "modparameters ::=",
 | |
|  /* 109 */ "modparameter ::= COLON exprs",
 | |
|  /* 110 */ "modparameter ::= COLON ID",
 | |
|  /* 111 */ "ifexprs ::= ifexpr",
 | |
|  /* 112 */ "ifexprs ::= NOT ifexprs",
 | |
|  /* 113 */ "ifexprs ::= OPENP ifexprs CLOSEP",
 | |
|  /* 114 */ "ifexpr ::= expr",
 | |
|  /* 115 */ "ifexpr ::= expr ifcond expr",
 | |
|  /* 116 */ "ifexpr ::= expr ISIN array",
 | |
|  /* 117 */ "ifexpr ::= expr ISIN value",
 | |
|  /* 118 */ "ifexpr ::= ifexprs lop ifexprs",
 | |
|  /* 119 */ "ifexpr ::= ifexprs ISDIVBY ifexprs",
 | |
|  /* 120 */ "ifexpr ::= ifexprs ISNOTDIVBY ifexprs",
 | |
|  /* 121 */ "ifexpr ::= ifexprs ISEVEN",
 | |
|  /* 122 */ "ifexpr ::= ifexprs ISNOTEVEN",
 | |
|  /* 123 */ "ifexpr ::= ifexprs ISEVENBY ifexprs",
 | |
|  /* 124 */ "ifexpr ::= ifexprs ISNOTEVENBY ifexprs",
 | |
|  /* 125 */ "ifexpr ::= ifexprs ISODD",
 | |
|  /* 126 */ "ifexpr ::= ifexprs ISNOTODD",
 | |
|  /* 127 */ "ifexpr ::= ifexprs ISODDBY ifexprs",
 | |
|  /* 128 */ "ifexpr ::= ifexprs ISNOTODDBY ifexprs",
 | |
|  /* 129 */ "ifexpr ::= value INSTANCEOF ID",
 | |
|  /* 130 */ "ifexpr ::= value INSTANCEOF value",
 | |
|  /* 131 */ "ifcond ::= EQUALS",
 | |
|  /* 132 */ "ifcond ::= NOTEQUALS",
 | |
|  /* 133 */ "ifcond ::= GREATERTHAN",
 | |
|  /* 134 */ "ifcond ::= LESSTHAN",
 | |
|  /* 135 */ "ifcond ::= GREATEREQUAL",
 | |
|  /* 136 */ "ifcond ::= LESSEQUAL",
 | |
|  /* 137 */ "ifcond ::= IDENTITY",
 | |
|  /* 138 */ "ifcond ::= NONEIDENTITY",
 | |
|  /* 139 */ "lop ::= LAND",
 | |
|  /* 140 */ "lop ::= LOR",
 | |
|  /* 141 */ "lop ::= LXOR",
 | |
|  /* 142 */ "array ::= OPENB arrayelements CLOSEB",
 | |
|  /* 143 */ "arrayelements ::= arrayelement",
 | |
|  /* 144 */ "arrayelements ::= arrayelements COMMA arrayelement",
 | |
|  /* 145 */ "arrayelements ::=",
 | |
|  /* 146 */ "arrayelement ::= expr APTR expr",
 | |
|  /* 147 */ "arrayelement ::= ID APTR expr",
 | |
|  /* 148 */ "arrayelement ::= expr",
 | |
|  /* 149 */ "doublequoted ::= doublequoted doublequotedcontent",
 | |
|  /* 150 */ "doublequoted ::= doublequotedcontent",
 | |
|  /* 151 */ "doublequotedcontent ::= BACKTICK ID BACKTICK",
 | |
|  /* 152 */ "doublequotedcontent ::= BACKTICK variable BACKTICK",
 | |
|  /* 153 */ "doublequotedcontent ::= DOLLAR ID",
 | |
|  /* 154 */ "doublequotedcontent ::= LDEL expr RDEL",
 | |
|  /* 155 */ "doublequotedcontent ::= LDEL smartytag RDEL",
 | |
|  /* 156 */ "doublequotedcontent ::= DOLLAR OTHER",
 | |
|  /* 157 */ "doublequotedcontent ::= LDEL OTHER",
 | |
|  /* 158 */ "doublequotedcontent ::= BACKTICK OTHER",
 | |
|  /* 159 */ "doublequotedcontent ::= OTHER",
 | |
|  /* 160 */ "text ::= text textelement",
 | |
|  /* 161 */ "text ::= textelement",
 | |
|  /* 162 */ "textelement ::= OTHER",
 | |
|  /* 163 */ "textelement ::= LDEL",
 | |
|     );
 | |
| 
 | |
|     /**
 | |
|      * This function returns the symbolic name associated with a token
 | |
|      * value.
 | |
|      * @param int
 | |
|      * @return string
 | |
|      */
 | |
|     function tokenName($tokenType)
 | |
|     {
 | |
|         if ($tokenType === 0) {
 | |
|             return 'End of Input';
 | |
|         }
 | |
|         if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) {
 | |
|             return $this->yyTokenName[$tokenType];
 | |
|         } else {
 | |
|             return "Unknown";
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * The following function deletes the value associated with a
 | |
|      * symbol.  The symbol can be either a terminal or nonterminal.
 | |
|      * @param int the symbol code
 | |
|      * @param mixed the symbol's value
 | |
|      */
 | |
|     static function yy_destructor($yymajor, $yypminor)
 | |
|     {
 | |
|         switch ($yymajor) {
 | |
|         /* Here is inserted the actions which take place when a
 | |
|         ** terminal or non-terminal is destroyed.  This can happen
 | |
|         ** when the symbol is popped from the stack during a
 | |
|         ** reduce or during error processing or when a parser is 
 | |
|         ** being destroyed before it is finished parsing.
 | |
|         **
 | |
|         ** Note: during a reduce, the only symbols destroyed are those
 | |
|         ** which appear on the RHS of the rule, but which are not used
 | |
|         ** inside the C code.
 | |
|         */
 | |
|             default:  break;   /* If no destructor action specified: do nothing */
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Pop the parser's stack once.
 | |
|      *
 | |
|      * If there is a destructor routine associated with the token which
 | |
|      * is popped from the stack, then call it.
 | |
|      *
 | |
|      * Return the major token number for the symbol popped.
 | |
|      * @param TP_yyParser
 | |
|      * @return int
 | |
|      */
 | |
|     function yy_pop_parser_stack()
 | |
|     {
 | |
|         if (!count($this->yystack)) {
 | |
|             return;
 | |
|         }
 | |
|         $yytos = array_pop($this->yystack);
 | |
|         if (self::$yyTraceFILE && $this->yyidx >= 0) {
 | |
|             fwrite(self::$yyTraceFILE,
 | |
|                 self::$yyTracePrompt . 'Popping ' . $this->yyTokenName[$yytos->major] .
 | |
|                     "\n");
 | |
|         }
 | |
|         $yymajor = $yytos->major;
 | |
|         self::yy_destructor($yymajor, $yytos->minor);
 | |
|         $this->yyidx--;
 | |
|         return $yymajor;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Deallocate and destroy a parser.  Destructors are all called for
 | |
|      * all stack elements before shutting the parser down.
 | |
|      */
 | |
|     function __destruct()
 | |
|     {
 | |
|         while ($this->yyidx >= 0) {
 | |
|             $this->yy_pop_parser_stack();
 | |
|         }
 | |
|         if (is_resource(self::$yyTraceFILE)) {
 | |
|             fclose(self::$yyTraceFILE);
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Based on the current state and parser stack, get a list of all
 | |
|      * possible lookahead tokens
 | |
|      * @param int
 | |
|      * @return array
 | |
|      */
 | |
|     function yy_get_expected_tokens($token)
 | |
|     {
 | |
|         $state = $this->yystack[$this->yyidx]->stateno;
 | |
|         $expected = self::$yyExpectedTokens[$state];
 | |
|         if (in_array($token, self::$yyExpectedTokens[$state], true)) {
 | |
|             return $expected;
 | |
|         }
 | |
|         $stack = $this->yystack;
 | |
|         $yyidx = $this->yyidx;
 | |
|         do {
 | |
|             $yyact = $this->yy_find_shift_action($token);
 | |
|             if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
 | |
|                 // reduce action
 | |
|                 $done = 0;
 | |
|                 do {
 | |
|                     if ($done++ == 100) {
 | |
|                         $this->yyidx = $yyidx;
 | |
|                         $this->yystack = $stack;
 | |
|                         // too much recursion prevents proper detection
 | |
|                         // so give up
 | |
|                         return array_unique($expected);
 | |
|                     }
 | |
|                     $yyruleno = $yyact - self::YYNSTATE;
 | |
|                     $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs'];
 | |
|                     $nextstate = $this->yy_find_reduce_action(
 | |
|                         $this->yystack[$this->yyidx]->stateno,
 | |
|                         self::$yyRuleInfo[$yyruleno]['lhs']);
 | |
|                     if (isset(self::$yyExpectedTokens[$nextstate])) {
 | |
|                         $expected += self::$yyExpectedTokens[$nextstate];
 | |
|                             if (in_array($token,
 | |
|                                   self::$yyExpectedTokens[$nextstate], true)) {
 | |
|                             $this->yyidx = $yyidx;
 | |
|                             $this->yystack = $stack;
 | |
|                             return array_unique($expected);
 | |
|                         }
 | |
|                     }
 | |
|                     if ($nextstate < self::YYNSTATE) {
 | |
|                         // we need to shift a non-terminal
 | |
|                         $this->yyidx++;
 | |
|                         $x = new TP_yyStackEntry;
 | |
|                         $x->stateno = $nextstate;
 | |
|                         $x->major = self::$yyRuleInfo[$yyruleno]['lhs'];
 | |
|                         $this->yystack[$this->yyidx] = $x;
 | |
|                         continue 2;
 | |
|                     } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) {
 | |
|                         $this->yyidx = $yyidx;
 | |
|                         $this->yystack = $stack;
 | |
|                         // the last token was just ignored, we can't accept
 | |
|                         // by ignoring input, this is in essence ignoring a
 | |
|                         // syntax error!
 | |
|                         return array_unique($expected);
 | |
|                     } elseif ($nextstate === self::YY_NO_ACTION) {
 | |
|                         $this->yyidx = $yyidx;
 | |
|                         $this->yystack = $stack;
 | |
|                         // input accepted, but not shifted (I guess)
 | |
|                         return $expected;
 | |
|                     } else {
 | |
|                         $yyact = $nextstate;
 | |
|                     }
 | |
|                 } while (true);
 | |
|             }
 | |
|             break;
 | |
|         } while (true);
 | |
|         return array_unique($expected);
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Based on the parser state and current parser stack, determine whether
 | |
|      * the lookahead token is possible.
 | |
|      * 
 | |
|      * The parser will convert the token value to an error token if not.  This
 | |
|      * catches some unusual edge cases where the parser would fail.
 | |
|      * @param int
 | |
|      * @return bool
 | |
|      */
 | |
|     function yy_is_expected_token($token)
 | |
|     {
 | |
|         if ($token === 0) {
 | |
|             return true; // 0 is not part of this
 | |
|         }
 | |
|         $state = $this->yystack[$this->yyidx]->stateno;
 | |
|         if (in_array($token, self::$yyExpectedTokens[$state], true)) {
 | |
|             return true;
 | |
|         }
 | |
|         $stack = $this->yystack;
 | |
|         $yyidx = $this->yyidx;
 | |
|         do {
 | |
|             $yyact = $this->yy_find_shift_action($token);
 | |
|             if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) {
 | |
|                 // reduce action
 | |
|                 $done = 0;
 | |
|                 do {
 | |
|                     if ($done++ == 100) {
 | |
|                         $this->yyidx = $yyidx;
 | |
|                         $this->yystack = $stack;
 | |
|                         // too much recursion prevents proper detection
 | |
|                         // so give up
 | |
|                         return true;
 | |
|                     }
 | |
|                     $yyruleno = $yyact - self::YYNSTATE;
 | |
|                     $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs'];
 | |
|                     $nextstate = $this->yy_find_reduce_action(
 | |
|                         $this->yystack[$this->yyidx]->stateno,
 | |
|                         self::$yyRuleInfo[$yyruleno]['lhs']);
 | |
|                     if (isset(self::$yyExpectedTokens[$nextstate]) &&
 | |
|                           in_array($token, self::$yyExpectedTokens[$nextstate], true)) {
 | |
|                         $this->yyidx = $yyidx;
 | |
|                         $this->yystack = $stack;
 | |
|                         return true;
 | |
|                     }
 | |
|                     if ($nextstate < self::YYNSTATE) {
 | |
|                         // we need to shift a non-terminal
 | |
|                         $this->yyidx++;
 | |
|                         $x = new TP_yyStackEntry;
 | |
|                         $x->stateno = $nextstate;
 | |
|                         $x->major = self::$yyRuleInfo[$yyruleno]['lhs'];
 | |
|                         $this->yystack[$this->yyidx] = $x;
 | |
|                         continue 2;
 | |
|                     } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) {
 | |
|                         $this->yyidx = $yyidx;
 | |
|                         $this->yystack = $stack;
 | |
|                         if (!$token) {
 | |
|                             // end of input: this is valid
 | |
|                             return true;
 | |
|                         }
 | |
|                         // the last token was just ignored, we can't accept
 | |
|                         // by ignoring input, this is in essence ignoring a
 | |
|                         // syntax error!
 | |
|                         return false;
 | |
|                     } elseif ($nextstate === self::YY_NO_ACTION) {
 | |
|                         $this->yyidx = $yyidx;
 | |
|                         $this->yystack = $stack;
 | |
|                         // input accepted, but not shifted (I guess)
 | |
|                         return true;
 | |
|                     } else {
 | |
|                         $yyact = $nextstate;
 | |
|                     }
 | |
|                 } while (true);
 | |
|             }
 | |
|             break;
 | |
|         } while (true);
 | |
|         $this->yyidx = $yyidx;
 | |
|         $this->yystack = $stack;
 | |
|         return true;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Find the appropriate action for a parser given the terminal
 | |
|      * look-ahead token iLookAhead.
 | |
|      *
 | |
|      * If the look-ahead token is YYNOCODE, then check to see if the action is
 | |
|      * independent of the look-ahead.  If it is, return the action, otherwise
 | |
|      * return YY_NO_ACTION.
 | |
|      * @param int The look-ahead token
 | |
|      */
 | |
|     function yy_find_shift_action($iLookAhead)
 | |
|     {
 | |
|         $stateno = $this->yystack[$this->yyidx]->stateno;
 | |
|      
 | |
|         /* if ($this->yyidx < 0) return self::YY_NO_ACTION;  */
 | |
|         if (!isset(self::$yy_shift_ofst[$stateno])) {
 | |
|             // no shift actions
 | |
|             return self::$yy_default[$stateno];
 | |
|         }
 | |
|         $i = self::$yy_shift_ofst[$stateno];
 | |
|         if ($i === self::YY_SHIFT_USE_DFLT) {
 | |
|             return self::$yy_default[$stateno];
 | |
|         }
 | |
|         if ($iLookAhead == self::YYNOCODE) {
 | |
|             return self::YY_NO_ACTION;
 | |
|         }
 | |
|         $i += $iLookAhead;
 | |
|         if ($i < 0 || $i >= self::YY_SZ_ACTTAB ||
 | |
|               self::$yy_lookahead[$i] != $iLookAhead) {
 | |
|             if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback)
 | |
|                    && ($iFallback = self::$yyFallback[$iLookAhead]) != 0) {
 | |
|                 if (self::$yyTraceFILE) {
 | |
|                     fwrite(self::$yyTraceFILE, self::$yyTracePrompt . "FALLBACK " .
 | |
|                         $this->yyTokenName[$iLookAhead] . " => " .
 | |
|                         $this->yyTokenName[$iFallback] . "\n");
 | |
|                 }
 | |
|                 return $this->yy_find_shift_action($iFallback);
 | |
|             }
 | |
|             return self::$yy_default[$stateno];
 | |
|         } else {
 | |
|             return self::$yy_action[$i];
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Find the appropriate action for a parser given the non-terminal
 | |
|      * look-ahead token $iLookAhead.
 | |
|      *
 | |
|      * If the look-ahead token is self::YYNOCODE, then check to see if the action is
 | |
|      * independent of the look-ahead.  If it is, return the action, otherwise
 | |
|      * return self::YY_NO_ACTION.
 | |
|      * @param int Current state number
 | |
|      * @param int The look-ahead token
 | |
|      */
 | |
|     function yy_find_reduce_action($stateno, $iLookAhead)
 | |
|     {
 | |
|         /* $stateno = $this->yystack[$this->yyidx]->stateno; */
 | |
| 
 | |
|         if (!isset(self::$yy_reduce_ofst[$stateno])) {
 | |
|             return self::$yy_default[$stateno];
 | |
|         }
 | |
|         $i = self::$yy_reduce_ofst[$stateno];
 | |
|         if ($i == self::YY_REDUCE_USE_DFLT) {
 | |
|             return self::$yy_default[$stateno];
 | |
|         }
 | |
|         if ($iLookAhead == self::YYNOCODE) {
 | |
|             return self::YY_NO_ACTION;
 | |
|         }
 | |
|         $i += $iLookAhead;
 | |
|         if ($i < 0 || $i >= self::YY_SZ_ACTTAB ||
 | |
|               self::$yy_lookahead[$i] != $iLookAhead) {
 | |
|             return self::$yy_default[$stateno];
 | |
|         } else {
 | |
|             return self::$yy_action[$i];
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Perform a shift action.
 | |
|      * @param int The new state to shift in
 | |
|      * @param int The major token to shift in
 | |
|      * @param mixed the minor token to shift in
 | |
|      */
 | |
|     function yy_shift($yyNewState, $yyMajor, $yypMinor)
 | |
|     {
 | |
|         $this->yyidx++;
 | |
|         if ($this->yyidx >= self::YYSTACKDEPTH) {
 | |
|             $this->yyidx--;
 | |
|             if (self::$yyTraceFILE) {
 | |
|                 fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt);
 | |
|             }
 | |
|             while ($this->yyidx >= 0) {
 | |
|                 $this->yy_pop_parser_stack();
 | |
|             }
 | |
|             /* Here code is inserted which will execute if the parser
 | |
|             ** stack ever overflows */
 | |
|             return;
 | |
|         }
 | |
|         $yytos = new TP_yyStackEntry;
 | |
|         $yytos->stateno = $yyNewState;
 | |
|         $yytos->major = $yyMajor;
 | |
|         $yytos->minor = $yypMinor;
 | |
|         array_push($this->yystack, $yytos);
 | |
|         if (self::$yyTraceFILE && $this->yyidx > 0) {
 | |
|             fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt,
 | |
|                 $yyNewState);
 | |
|             fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt);
 | |
|             for($i = 1; $i <= $this->yyidx; $i++) {
 | |
|                 fprintf(self::$yyTraceFILE, " %s",
 | |
|                     $this->yyTokenName[$this->yystack[$i]->major]);
 | |
|             }
 | |
|             fwrite(self::$yyTraceFILE,"\n");
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * The following table contains information about every rule that
 | |
|      * is used during the reduce.
 | |
|      *
 | |
|      * <pre>
 | |
|      * array(
 | |
|      *  array(
 | |
|      *   int $lhs;         Symbol on the left-hand side of the rule
 | |
|      *   int $nrhs;     Number of right-hand side symbols in the rule
 | |
|      *  ),...
 | |
|      * );
 | |
|      * </pre>
 | |
|      */
 | |
|     static public $yyRuleInfo = array(
 | |
|   array( 'lhs' => 72, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 73, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 73, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 74, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 74, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 74, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 74, 'rhs' => 3 ),
 | |
|   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 ),
 | |
|   array( 'lhs' => 75, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 75, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 75, 'rhs' => 2 ),
 | |
|   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 ),
 | |
|   array( 'lhs' => 75, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 75, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 75, 'rhs' => 9 ),
 | |
|   array( 'lhs' => 89, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 89, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 75, 'rhs' => 6 ),
 | |
|   array( 'lhs' => 75, 'rhs' => 6 ),
 | |
|   array( 'lhs' => 76, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 76, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 79, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 79, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 79, 'rhs' => 0 ),
 | |
|   array( 'lhs' => 92, 'rhs' => 4 ),
 | |
|   array( 'lhs' => 92, 'rhs' => 4 ),
 | |
|   array( 'lhs' => 92, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 87, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 87, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 86, 'rhs' => 4 ),
 | |
|   array( 'lhs' => 80, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 80, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 80, 'rhs' => 4 ),
 | |
|   array( 'lhs' => 80, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 93, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 93, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 93, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 93, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 81, 'rhs' => 7 ),
 | |
|   array( 'lhs' => 81, 'rhs' => 7 ),
 | |
|   array( 'lhs' => 94, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 94, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 94, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 7 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 4 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 8 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 5 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 6 ),
 | |
|   array( 'lhs' => 90, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 78, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 78, 'rhs' => 4 ),
 | |
|   array( 'lhs' => 78, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 78, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 78, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 82, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 100, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 100, 'rhs' => 0 ),
 | |
|   array( 'lhs' => 102, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 102, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 102, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 102, 'rhs' => 4 ),
 | |
|   array( 'lhs' => 102, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 102, 'rhs' => 5 ),
 | |
|   array( 'lhs' => 102, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 102, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 88, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 88, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 103, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 103, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 101, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 99, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 99, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 104, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 104, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 104, 'rhs' => 5 ),
 | |
|   array( 'lhs' => 104, 'rhs' => 6 ),
 | |
|   array( 'lhs' => 104, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 95, 'rhs' => 4 ),
 | |
|   array( 'lhs' => 97, 'rhs' => 4 ),
 | |
|   array( 'lhs' => 98, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 98, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 98, 'rhs' => 0 ),
 | |
|   array( 'lhs' => 83, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 83, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 84, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 84, 'rhs' => 0 ),
 | |
|   array( 'lhs' => 105, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 105, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 85, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 85, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 85, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 106, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 107, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 107, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 107, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 107, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 107, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 107, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 107, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 107, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 108, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 108, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 108, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 91, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 109, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 109, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 109, 'rhs' => 0 ),
 | |
|   array( 'lhs' => 110, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 110, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 110, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 96, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 96, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 111, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 111, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 111, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 111, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 111, 'rhs' => 3 ),
 | |
|   array( 'lhs' => 111, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 111, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 111, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 111, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 77, 'rhs' => 2 ),
 | |
|   array( 'lhs' => 77, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 112, 'rhs' => 1 ),
 | |
|   array( 'lhs' => 112, 'rhs' => 1 ),
 | |
|     );
 | |
| 
 | |
|     /**
 | |
|      * 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,
 | |
|         44 => 0,
 | |
|         53 => 0,
 | |
|         54 => 0,
 | |
|         56 => 0,
 | |
|         57 => 0,
 | |
|         58 => 0,
 | |
|         74 => 0,
 | |
|         143 => 0,
 | |
|         1 => 1,
 | |
|         41 => 1,
 | |
|         47 => 1,
 | |
|         50 => 1,
 | |
|         51 => 1,
 | |
|         88 => 1,
 | |
|         111 => 1,
 | |
|         150 => 1,
 | |
|         159 => 1,
 | |
|         161 => 1,
 | |
|         162 => 1,
 | |
|         163 => 1,
 | |
|         2 => 2,
 | |
|         78 => 2,
 | |
|         149 => 2,
 | |
|         157 => 2,
 | |
|         160 => 2,
 | |
|         3 => 3,
 | |
|         4 => 3,
 | |
|         5 => 5,
 | |
|         6 => 6,
 | |
|         7 => 7,
 | |
|         8 => 8,
 | |
|         9 => 9,
 | |
|         10 => 10,
 | |
|         11 => 11,
 | |
|         12 => 12,
 | |
|         13 => 13,
 | |
|         14 => 14,
 | |
|         15 => 14,
 | |
|         16 => 14,
 | |
|         17 => 17,
 | |
|         18 => 17,
 | |
|         19 => 19,
 | |
|         20 => 20,
 | |
|         21 => 21,
 | |
|         22 => 22,
 | |
|         23 => 23,
 | |
|         24 => 24,
 | |
|         25 => 25,
 | |
|         26 => 26,
 | |
|         32 => 26,
 | |
|         103 => 26,
 | |
|         148 => 26,
 | |
|         27 => 27,
 | |
|         28 => 28,
 | |
|         29 => 29,
 | |
|         30 => 30,
 | |
|         31 => 31,
 | |
|         33 => 33,
 | |
|         34 => 34,
 | |
|         35 => 34,
 | |
|         36 => 36,
 | |
|         37 => 37,
 | |
|         38 => 38,
 | |
|         39 => 39,
 | |
|         40 => 40,
 | |
|         42 => 42,
 | |
|         43 => 43,
 | |
|         45 => 45,
 | |
|         46 => 46,
 | |
|         48 => 48,
 | |
|         49 => 48,
 | |
|         52 => 52,
 | |
|         55 => 55,
 | |
|         59 => 59,
 | |
|         60 => 60,
 | |
|         61 => 61,
 | |
|         63 => 61,
 | |
|         62 => 62,
 | |
|         64 => 64,
 | |
|         65 => 65,
 | |
|         66 => 66,
 | |
|         67 => 67,
 | |
|         68 => 68,
 | |
|         69 => 69,
 | |
|         70 => 70,
 | |
|         71 => 71,
 | |
|         72 => 72,
 | |
|         73 => 73,
 | |
|         75 => 75,
 | |
|         76 => 76,
 | |
|         77 => 77,
 | |
|         79 => 79,
 | |
|         108 => 79,
 | |
|         80 => 80,
 | |
|         81 => 81,
 | |
|         82 => 82,
 | |
|         83 => 83,
 | |
|         86 => 83,
 | |
|         84 => 84,
 | |
|         85 => 85,
 | |
|         87 => 87,
 | |
|         89 => 89,
 | |
|         90 => 90,
 | |
|         91 => 91,
 | |
|         113 => 91,
 | |
|         92 => 92,
 | |
|         93 => 93,
 | |
|         94 => 94,
 | |
|         95 => 95,
 | |
|         96 => 96,
 | |
|         97 => 97,
 | |
|         98 => 98,
 | |
|         99 => 99,
 | |
|         100 => 100,
 | |
|         101 => 101,
 | |
|         102 => 102,
 | |
|         104 => 104,
 | |
|         105 => 105,
 | |
|         106 => 106,
 | |
|         107 => 107,
 | |
|         109 => 109,
 | |
|         110 => 110,
 | |
|         112 => 112,
 | |
|         114 => 114,
 | |
|         115 => 115,
 | |
|         118 => 115,
 | |
|         129 => 115,
 | |
|         116 => 116,
 | |
|         117 => 117,
 | |
|         119 => 119,
 | |
|         120 => 120,
 | |
|         121 => 121,
 | |
|         126 => 121,
 | |
|         122 => 122,
 | |
|         125 => 122,
 | |
|         123 => 123,
 | |
|         128 => 123,
 | |
|         124 => 124,
 | |
|         127 => 124,
 | |
|         130 => 130,
 | |
|         131 => 131,
 | |
|         132 => 132,
 | |
|         133 => 133,
 | |
|         134 => 134,
 | |
|         135 => 135,
 | |
|         136 => 136,
 | |
|         137 => 137,
 | |
|         138 => 138,
 | |
|         139 => 139,
 | |
|         140 => 140,
 | |
|         141 => 141,
 | |
|         142 => 142,
 | |
|         144 => 144,
 | |
|         145 => 145,
 | |
|         146 => 146,
 | |
|         147 => 147,
 | |
|         151 => 151,
 | |
|         152 => 152,
 | |
|         153 => 153,
 | |
|         154 => 154,
 | |
|         155 => 155,
 | |
|         156 => 156,
 | |
|         158 => 158,
 | |
|     );
 | |
|     /* Beginning here are the reduction cases.  A typical example
 | |
|     ** follows:
 | |
|     **  #line <lineno> <grammarfile>
 | |
|     **   function yy_r0($yymsp){ ... }           // User supplied code
 | |
|     **  #line <lineno> <thisfile>
 | |
|     */
 | |
| #line 79 "internal.templateparser.y"
 | |
|     function yy_r0(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;     }
 | |
| #line 1976 "internal.templateparser.php"
 | |
| #line 85 "internal.templateparser.y"
 | |
|     function yy_r1(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 1979 "internal.templateparser.php"
 | |
| #line 87 "internal.templateparser.y"
 | |
|     function yy_r2(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 1982 "internal.templateparser.php"
 | |
| #line 93 "internal.templateparser.y"
 | |
|     function yy_r3(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); 
 | |
|                                           if ($this->compiler->has_code) {
 | |
|                                             $tmp =''; foreach ($this->prefix_code as $code) {$tmp.=$code;} $this->prefix_code=array();
 | |
|                                             $this->_retvalue = $this->cacher->processNocacheCode($tmp.$s[0].$this->yystack[$this->yyidx + -1]->minor, $this->compiler,$this->nocache,true);
 | |
|                                          } else { $this->_retvalue = $s[0].$this->yystack[$this->yyidx + -1]->minor;} $this->nocache=false;    }
 | |
| #line 1989 "internal.templateparser.php"
 | |
| #line 105 "internal.templateparser.y"
 | |
|     function yy_r5(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0];    }
 | |
| #line 1992 "internal.templateparser.php"
 | |
| #line 108 "internal.templateparser.y"
 | |
|     function yy_r6(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s2); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->yystack[$this->yyidx + -1]->minor.$s2[0], $this->compiler,false,false);    }
 | |
| #line 1995 "internal.templateparser.php"
 | |
| #line 110 "internal.templateparser.y"
 | |
|     function yy_r7(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->smarty->left_delimiter, $this->compiler,false,false);    }
 | |
| #line 1998 "internal.templateparser.php"
 | |
| #line 112 "internal.templateparser.y"
 | |
|     function yy_r8(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode($this->smarty->right_delimiter, $this->compiler,false,false);    }
 | |
| #line 2001 "internal.templateparser.php"
 | |
| #line 114 "internal.templateparser.y"
 | |
|     function yy_r9(){if ($this->sec_obj->php_handling == SMARTY_PHP_PASSTHRU) {
 | |
|                                        $this->_retvalue = $this->cacher->processNocacheCode("<?php echo '<?php".str_replace("'","\'",$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('<?php'.$this->yystack[$this->yyidx + -1]->minor.'?>', ENT_QUOTES), $this->compiler, false, false);
 | |
|                                       }elseif ($this->sec_obj->php_handling == SMARTY_PHP_ALLOW) {
 | |
|                                        $this->_retvalue = $this->cacher->processNocacheCode('<?php'.$this->yystack[$this->yyidx + -1]->minor.'?>', $this->compiler, false,true);
 | |
|                                       }elseif ($this->sec_obj->php_handling == SMARTY_PHP_REMOVE) {
 | |
|                                        $this->_retvalue = '';
 | |
|                                       }
 | |
|                                          }
 | |
| #line 2013 "internal.templateparser.php"
 | |
| #line 125 "internal.templateparser.y"
 | |
|     function yy_r10(){preg_match('/\s*/',$this->yystack[$this->yyidx + -3]->minor,$s); $this->_retvalue = $s[0];
 | |
|                                       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 .= '';
 | |
|                                       }
 | |
|                                          }
 | |
| #line 2024 "internal.templateparser.php"
 | |
| #line 136 "internal.templateparser.y"
 | |
|     function yy_r11(){preg_match('/\s*/',$this->yystack[$this->yyidx + 0]->minor,$s); $this->_retvalue = $s[0].$this->cacher->processNocacheCode("<?php echo '<?xml';?>", $this->compiler, true, true);    }
 | |
| #line 2027 "internal.templateparser.php"
 | |
| #line 137 "internal.templateparser.y"
 | |
|     function yy_r12(){$this->_retvalue = $this->cacher->processNocacheCode("<?php echo '?>';?>\n", $this->compiler, true, true);    }
 | |
| #line 2030 "internal.templateparser.php"
 | |
| #line 139 "internal.templateparser.y"
 | |
|     function yy_r13(){$this->_retvalue = $this->cacher->processNocacheCode($this->yystack[$this->yyidx + 0]->minor, $this->compiler,false,false);    }
 | |
| #line 2033 "internal.templateparser.php"
 | |
| #line 146 "internal.templateparser.y"
 | |
|     function yy_r14(){ $this->_retvalue = $this->compiler->compileTag('print_expression',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor));    }
 | |
| #line 2036 "internal.templateparser.php"
 | |
| #line 151 "internal.templateparser.y"
 | |
|     function yy_r17(){ $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array('value'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor));    }
 | |
| #line 2039 "internal.templateparser.php"
 | |
| #line 154 "internal.templateparser.y"
 | |
|     function yy_r19(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor);    }
 | |
| #line 2042 "internal.templateparser.php"
 | |
| #line 156 "internal.templateparser.y"
 | |
|     function yy_r20(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor),$this->yystack[$this->yyidx + 0]->minor));    }
 | |
| #line 2045 "internal.templateparser.php"
 | |
| #line 158 "internal.templateparser.y"
 | |
|     function yy_r21(){  $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + 0]->minor).'<?php echo ';
 | |
| 															                                   if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -2]->minor[0],'modifier')) {
 | |
|                                                                       $this->_retvalue .= "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -2]->minor[0] . "',array(ob_get_clean()" . $this->yystack[$this->yyidx + -1]->minor. "),".$this->yystack[$this->yyidx + -2]->minor[1].");?>";
 | |
|                                                                  } 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] . "\"");
 | |
|                                                                  }
 | |
|                                                               }
 | |
|                                                                         }
 | |
| #line 2060 "internal.templateparser.php"
 | |
| #line 172 "internal.templateparser.y"
 | |
|     function yy_r22(){if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) {
 | |
|                                                             $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -2]->minor . "\""); 
 | |
|                                                             }
 | |
|                                                             $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,array('if condition'=>$this->yystack[$this->yyidx + 0]->minor));    }
 | |
| #line 2066 "internal.templateparser.php"
 | |
| #line 176 "internal.templateparser.y"
 | |
|     function yy_r23(){ if (!in_array($this->yystack[$this->yyidx + -2]->minor,array('if','elseif','while'))) {
 | |
|                                                             $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -2]->minor . "\""); 
 | |
|                                                             }
 | |
|                                                             $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,array('if condition'=>$this->yystack[$this->yyidx + 0]->minor));    }
 | |
| #line 2072 "internal.templateparser.php"
 | |
| #line 181 "internal.templateparser.y"
 | |
|     function yy_r24(){
 | |
|                                                             if ($this->yystack[$this->yyidx + -8]->minor != 'for') {
 | |
|                                                                $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -8]->minor . "\""); 
 | |
|                                                             }
 | |
|                                                              $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -8]->minor,array('start'=>$this->yystack[$this->yyidx + -6]->minor,'ifexp'=>$this->yystack[$this->yyidx + -4]->minor,'varloop'=>$this->yystack[$this->yyidx + -1]->minor,'loop'=>$this->yystack[$this->yyidx + 0]->minor));    }
 | |
| #line 2079 "internal.templateparser.php"
 | |
| #line 186 "internal.templateparser.y"
 | |
|     function yy_r25(){ $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2082 "internal.templateparser.php"
 | |
| #line 187 "internal.templateparser.y"
 | |
|     function yy_r26(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2085 "internal.templateparser.php"
 | |
| #line 189 "internal.templateparser.y"
 | |
|     function yy_r27(){
 | |
|                                                             if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') {
 | |
|                                                                $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\""); 
 | |
|                                                             }
 | |
|                                                             $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor));    }
 | |
| #line 2092 "internal.templateparser.php"
 | |
| #line 194 "internal.templateparser.y"
 | |
|     function yy_r28(){ 
 | |
|                                                             if ($this->yystack[$this->yyidx + -5]->minor != 'foreach') {
 | |
|                                                                $this->compiler->trigger_template_error ("wrong syntax for tag \"" . $this->yystack[$this->yyidx + -5]->minor . "\""); 
 | |
|                                                             }
 | |
|                                                             $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,array('from'=>$this->yystack[$this->yyidx + -3]->minor,'item'=>$this->yystack[$this->yyidx + 0]->minor));    }
 | |
| #line 2099 "internal.templateparser.php"
 | |
| #line 201 "internal.templateparser.y"
 | |
|     function yy_r29(){ $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',$this->yystack[$this->yyidx + 0]->minor);    }
 | |
| #line 2102 "internal.templateparser.php"
 | |
| #line 203 "internal.templateparser.y"
 | |
|     function yy_r30(){  $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array('object_methode'=>$this->yystack[$this->yyidx + 0]->minor));    }
 | |
| #line 2105 "internal.templateparser.php"
 | |
| #line 210 "internal.templateparser.y"
 | |
|     function yy_r31(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor);    }
 | |
| #line 2108 "internal.templateparser.php"
 | |
| #line 214 "internal.templateparser.y"
 | |
|     function yy_r33(){ $this->_retvalue = array();    }
 | |
| #line 2111 "internal.templateparser.php"
 | |
| #line 217 "internal.templateparser.y"
 | |
|     function yy_r34(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor);    }
 | |
| #line 2114 "internal.templateparser.php"
 | |
| #line 219 "internal.templateparser.y"
 | |
|     function yy_r36(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor=>'true');    }
 | |
| #line 2117 "internal.templateparser.php"
 | |
| #line 224 "internal.templateparser.y"
 | |
|     function yy_r37(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor);    }
 | |
| #line 2120 "internal.templateparser.php"
 | |
| #line 225 "internal.templateparser.y"
 | |
|     function yy_r38(){ $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor;    }
 | |
| #line 2123 "internal.templateparser.php"
 | |
| #line 227 "internal.templateparser.y"
 | |
|     function yy_r39(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor);    }
 | |
| #line 2126 "internal.templateparser.php"
 | |
| #line 233 "internal.templateparser.y"
 | |
|     function yy_r40(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\'';     }
 | |
| #line 2129 "internal.templateparser.php"
 | |
| #line 236 "internal.templateparser.y"
 | |
|     function yy_r42(){$this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')';    }
 | |
| #line 2132 "internal.templateparser.php"
 | |
| #line 237 "internal.templateparser.y"
 | |
|     function yy_r43(){            
 | |
|                                                             if ($this->smarty->plugin_handler->loadSmartyPlugin($this->yystack[$this->yyidx + -1]->minor[0],'modifier')) {
 | |
|                                                                       $this->_retvalue = "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -1]->minor[0] . "',array(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor. "),".$this->yystack[$this->yyidx + -1]->minor[1].")";
 | |
|                                                                  } else {
 | |
|                                                                    if (is_callable($this->yystack[$this->yyidx + -1]->minor[0])) {
 | |
| 																					                            if (!$this->template->security || $this->smarty->security_handler->isTrustedModifier($this->yystack[$this->yyidx + -1]->minor[0], $this->compiler)) {
 | |
|                                                                          $this->_retvalue = "\$_smarty_tpl->smarty->plugin_handler->executeModifier('".$this->yystack[$this->yyidx + -1]->minor[0] . "',array(". $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + 0]->minor. "),".$this->yystack[$this->yyidx + -1]->minor[1].")";
 | |
| 																					                            }
 | |
| 																					                         } else {
 | |
|                                                                       $this->compiler->trigger_template_error ("unknown modifier \"" . $this->yystack[$this->yyidx + -1]->minor[0] . "\"");
 | |
|                                                                  }
 | |
|                                                               }
 | |
|                                                                 }
 | |
| #line 2147 "internal.templateparser.php"
 | |
| #line 254 "internal.templateparser.y"
 | |
|     function yy_r45(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor;     }
 | |
| #line 2150 "internal.templateparser.php"
 | |
| #line 256 "internal.templateparser.y"
 | |
|     function yy_r46(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor;     }
 | |
| #line 2153 "internal.templateparser.php"
 | |
| #line 263 "internal.templateparser.y"
 | |
|     function yy_r48(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2156 "internal.templateparser.php"
 | |
| #line 277 "internal.templateparser.y"
 | |
|     function yy_r52(){$this->_retvalue = ' & ';    }
 | |
| #line 2159 "internal.templateparser.php"
 | |
| #line 283 "internal.templateparser.y"
 | |
|     function yy_r55(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor;     }
 | |
| #line 2162 "internal.templateparser.php"
 | |
| #line 291 "internal.templateparser.y"
 | |
|     function yy_r59(){ $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")";     }
 | |
| #line 2165 "internal.templateparser.php"
 | |
| #line 293 "internal.templateparser.y"
 | |
|     function yy_r60(){ $this->_retvalue = "'".$this->yystack[$this->yyidx + -1]->minor."'";     }
 | |
| #line 2168 "internal.templateparser.php"
 | |
| #line 294 "internal.templateparser.y"
 | |
|     function yy_r61(){ $this->_retvalue = "''";     }
 | |
| #line 2171 "internal.templateparser.php"
 | |
| #line 296 "internal.templateparser.y"
 | |
|     function yy_r62(){ $this->_retvalue = '"'.$this->yystack[$this->yyidx + -1]->minor.'"';     }
 | |
| #line 2174 "internal.templateparser.php"
 | |
| #line 299 "internal.templateparser.y"
 | |
|     function yy_r64(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor;     }
 | |
| #line 2177 "internal.templateparser.php"
 | |
| #line 300 "internal.templateparser.y"
 | |
|     function yy_r65(){ $this->prefix_number++; $this->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -3]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -1]->minor .')';     }
 | |
| #line 2180 "internal.templateparser.php"
 | |
| #line 302 "internal.templateparser.y"
 | |
|     function yy_r66(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.'::'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor;     }
 | |
| #line 2183 "internal.templateparser.php"
 | |
| #line 303 "internal.templateparser.y"
 | |
|     function yy_r67(){ $this->prefix_number++; $this->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'=$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + -4]->minor .'\')->value;?>'; $this->_retvalue = $this->yystack[$this->yyidx + -7]->minor.'::$_tmp'.$this->prefix_number.'('. $this->yystack[$this->yyidx + -2]->minor .')'.$this->yystack[$this->yyidx + 0]->minor;     }
 | |
| #line 2186 "internal.templateparser.php"
 | |
| #line 305 "internal.templateparser.y"
 | |
|     function yy_r68(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2189 "internal.templateparser.php"
 | |
| #line 307 "internal.templateparser.y"
 | |
|     function yy_r69(){ $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.'::$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2192 "internal.templateparser.php"
 | |
| #line 309 "internal.templateparser.y"
 | |
|     function yy_r70(){ $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 2195 "internal.templateparser.php"
 | |
| #line 311 "internal.templateparser.y"
 | |
|     function yy_r71(){ $this->prefix_number++; $this->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + -1]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = '$_tmp'.$this->prefix_number;     }
 | |
| #line 2198 "internal.templateparser.php"
 | |
| #line 320 "internal.templateparser.y"
 | |
|     function yy_r72(){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 2202 "internal.templateparser.php"
 | |
| #line 323 "internal.templateparser.y"
 | |
|     function yy_r73(){ $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 2205 "internal.templateparser.php"
 | |
| #line 327 "internal.templateparser.y"
 | |
|     function yy_r75(){$this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')';    }
 | |
| #line 2208 "internal.templateparser.php"
 | |
| #line 328 "internal.templateparser.y"
 | |
|     function yy_r76(){$this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')';    }
 | |
| #line 2211 "internal.templateparser.php"
 | |
| #line 331 "internal.templateparser.y"
 | |
|     function yy_r77(){$this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'index'=>$this->yystack[$this->yyidx + 0]->minor);    }
 | |
| #line 2214 "internal.templateparser.php"
 | |
| #line 339 "internal.templateparser.y"
 | |
|     function yy_r79(){return;    }
 | |
| #line 2217 "internal.templateparser.php"
 | |
| #line 343 "internal.templateparser.y"
 | |
|     function yy_r80(){ $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']";    }
 | |
| #line 2220 "internal.templateparser.php"
 | |
| #line 344 "internal.templateparser.y"
 | |
|     function yy_r81(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]";    }
 | |
| #line 2223 "internal.templateparser.php"
 | |
| #line 345 "internal.templateparser.y"
 | |
|     function yy_r82(){ $this->_retvalue = "[".$this->yystack[$this->yyidx + 0]->minor."]";    }
 | |
| #line 2226 "internal.templateparser.php"
 | |
| #line 346 "internal.templateparser.y"
 | |
|     function yy_r83(){ $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]";    }
 | |
| #line 2229 "internal.templateparser.php"
 | |
| #line 348 "internal.templateparser.y"
 | |
|     function yy_r84(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']';    }
 | |
| #line 2232 "internal.templateparser.php"
 | |
| #line 349 "internal.templateparser.y"
 | |
|     function yy_r85(){ $this->_retvalue = '['.$this->compiler->compileTag('internal_smarty_var','[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']';    }
 | |
| #line 2235 "internal.templateparser.php"
 | |
| #line 353 "internal.templateparser.y"
 | |
|     function yy_r87(){$this->_retvalue = '';    }
 | |
| #line 2238 "internal.templateparser.php"
 | |
| #line 361 "internal.templateparser.y"
 | |
|     function yy_r89(){$this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2241 "internal.templateparser.php"
 | |
| #line 363 "internal.templateparser.y"
 | |
|     function yy_r90(){$this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\'';    }
 | |
| #line 2244 "internal.templateparser.php"
 | |
| #line 365 "internal.templateparser.y"
 | |
|     function yy_r91(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')';    }
 | |
| #line 2247 "internal.templateparser.php"
 | |
| #line 370 "internal.templateparser.y"
 | |
|     function yy_r92(){ 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 {
 | |
|                                                          $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;}    }
 | |
| #line 2251 "internal.templateparser.php"
 | |
| #line 373 "internal.templateparser.y"
 | |
|     function yy_r93(){$this->_retvalue  = $this->yystack[$this->yyidx + 0]->minor;     }
 | |
| #line 2254 "internal.templateparser.php"
 | |
| #line 375 "internal.templateparser.y"
 | |
|     function yy_r94(){$this->_retvalue  = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor;     }
 | |
| #line 2257 "internal.templateparser.php"
 | |
| #line 377 "internal.templateparser.y"
 | |
|     function yy_r95(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2260 "internal.templateparser.php"
 | |
| #line 378 "internal.templateparser.y"
 | |
|     function yy_r96(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor.'}';    }
 | |
| #line 2263 "internal.templateparser.php"
 | |
| #line 379 "internal.templateparser.y"
 | |
|     function yy_r97(){ $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}';    }
 | |
| #line 2266 "internal.templateparser.php"
 | |
| #line 380 "internal.templateparser.y"
 | |
|     function yy_r98(){ $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}';    }
 | |
| #line 2269 "internal.templateparser.php"
 | |
| #line 382 "internal.templateparser.y"
 | |
|     function yy_r99(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2272 "internal.templateparser.php"
 | |
| #line 388 "internal.templateparser.y"
 | |
|     function yy_r100(){if (!$this->template->security || $this->smarty->security_handler->isTrustedPhpFunction($this->yystack[$this->yyidx + -3]->minor, $this->compiler)) {
 | |
| 																					            if ($this->yystack[$this->yyidx + -3]->minor == 'isset' || $this->yystack[$this->yyidx + -3]->minor == 'empty' || $this->yystack[$this->yyidx + -3]->minor == 'array' || is_callable($this->yystack[$this->yyidx + -3]->minor)) {
 | |
| 																					                $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")";
 | |
| 																					            } else {
 | |
|                                                        $this->compiler->trigger_template_error ("unknown function \"" . $this->yystack[$this->yyidx + -3]->minor . "\"");
 | |
|                                                       }
 | |
|                                                     }    }
 | |
| #line 2281 "internal.templateparser.php"
 | |
| #line 399 "internal.templateparser.y"
 | |
|     function yy_r101(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $this->yystack[$this->yyidx + -1]->minor .")";    }
 | |
| #line 2284 "internal.templateparser.php"
 | |
| #line 403 "internal.templateparser.y"
 | |
|     function yy_r102(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.",".$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2287 "internal.templateparser.php"
 | |
| #line 407 "internal.templateparser.y"
 | |
|     function yy_r104(){ return;    }
 | |
| #line 2290 "internal.templateparser.php"
 | |
| #line 412 "internal.templateparser.y"
 | |
|     function yy_r105(){ $this->_retvalue =  array($this->yystack[$this->yyidx + 0]->minor,'false');    }
 | |
| #line 2293 "internal.templateparser.php"
 | |
| #line 413 "internal.templateparser.y"
 | |
|     function yy_r106(){ $this->_retvalue =  array($this->yystack[$this->yyidx + 0]->minor,'true');    }
 | |
| #line 2296 "internal.templateparser.php"
 | |
| #line 425 "internal.templateparser.y"
 | |
|     function yy_r107(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2299 "internal.templateparser.php"
 | |
| #line 429 "internal.templateparser.y"
 | |
|     function yy_r109(){$this->_retvalue = ','.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2302 "internal.templateparser.php"
 | |
| #line 430 "internal.templateparser.y"
 | |
|     function yy_r110(){$this->_retvalue = ',\''.$this->yystack[$this->yyidx + 0]->minor.'\'';    }
 | |
| #line 2305 "internal.templateparser.php"
 | |
| #line 437 "internal.templateparser.y"
 | |
|     function yy_r112(){$this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2308 "internal.templateparser.php"
 | |
| #line 442 "internal.templateparser.y"
 | |
|     function yy_r114(){$this->_retvalue =$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2311 "internal.templateparser.php"
 | |
| #line 444 "internal.templateparser.y"
 | |
|     function yy_r115(){$this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2314 "internal.templateparser.php"
 | |
| #line 445 "internal.templateparser.y"
 | |
|     function yy_r116(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')';    }
 | |
| #line 2317 "internal.templateparser.php"
 | |
| #line 446 "internal.templateparser.y"
 | |
|     function yy_r117(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')';    }
 | |
| #line 2320 "internal.templateparser.php"
 | |
| #line 448 "internal.templateparser.y"
 | |
|     function yy_r119(){$this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')';    }
 | |
| #line 2323 "internal.templateparser.php"
 | |
| #line 449 "internal.templateparser.y"
 | |
|     function yy_r120(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')';    }
 | |
| #line 2326 "internal.templateparser.php"
 | |
| #line 450 "internal.templateparser.y"
 | |
|     function yy_r121(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')';    }
 | |
| #line 2329 "internal.templateparser.php"
 | |
| #line 451 "internal.templateparser.y"
 | |
|     function yy_r122(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')';    }
 | |
| #line 2332 "internal.templateparser.php"
 | |
| #line 452 "internal.templateparser.y"
 | |
|     function yy_r123(){$this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')';    }
 | |
| #line 2335 "internal.templateparser.php"
 | |
| #line 453 "internal.templateparser.y"
 | |
|     function yy_r124(){$this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')';    }
 | |
| #line 2338 "internal.templateparser.php"
 | |
| #line 459 "internal.templateparser.y"
 | |
|     function yy_r130(){$this->prefix_number++; $this->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'='.$this->yystack[$this->yyidx + 0]->minor.';?>'; $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.'$_tmp'.$this->prefix_number;    }
 | |
| #line 2341 "internal.templateparser.php"
 | |
| #line 461 "internal.templateparser.y"
 | |
|     function yy_r131(){$this->_retvalue = '==';    }
 | |
| #line 2344 "internal.templateparser.php"
 | |
| #line 462 "internal.templateparser.y"
 | |
|     function yy_r132(){$this->_retvalue = '!=';    }
 | |
| #line 2347 "internal.templateparser.php"
 | |
| #line 463 "internal.templateparser.y"
 | |
|     function yy_r133(){$this->_retvalue = '>';    }
 | |
| #line 2350 "internal.templateparser.php"
 | |
| #line 464 "internal.templateparser.y"
 | |
|     function yy_r134(){$this->_retvalue = '<';    }
 | |
| #line 2353 "internal.templateparser.php"
 | |
| #line 465 "internal.templateparser.y"
 | |
|     function yy_r135(){$this->_retvalue = '>=';    }
 | |
| #line 2356 "internal.templateparser.php"
 | |
| #line 466 "internal.templateparser.y"
 | |
|     function yy_r136(){$this->_retvalue = '<=';    }
 | |
| #line 2359 "internal.templateparser.php"
 | |
| #line 467 "internal.templateparser.y"
 | |
|     function yy_r137(){$this->_retvalue = '===';    }
 | |
| #line 2362 "internal.templateparser.php"
 | |
| #line 468 "internal.templateparser.y"
 | |
|     function yy_r138(){$this->_retvalue = '!==';    }
 | |
| #line 2365 "internal.templateparser.php"
 | |
| #line 470 "internal.templateparser.y"
 | |
|     function yy_r139(){$this->_retvalue = '&&';    }
 | |
| #line 2368 "internal.templateparser.php"
 | |
| #line 471 "internal.templateparser.y"
 | |
|     function yy_r140(){$this->_retvalue = '||';    }
 | |
| #line 2371 "internal.templateparser.php"
 | |
| #line 472 "internal.templateparser.y"
 | |
|     function yy_r141(){$this->_retvalue = ' XOR ';    }
 | |
| #line 2374 "internal.templateparser.php"
 | |
| #line 477 "internal.templateparser.y"
 | |
|     function yy_r142(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')';    }
 | |
| #line 2377 "internal.templateparser.php"
 | |
| #line 479 "internal.templateparser.y"
 | |
|     function yy_r144(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor;     }
 | |
| #line 2380 "internal.templateparser.php"
 | |
| #line 480 "internal.templateparser.y"
 | |
|     function yy_r145(){ return;     }
 | |
| #line 2383 "internal.templateparser.php"
 | |
| #line 481 "internal.templateparser.y"
 | |
|     function yy_r146(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2386 "internal.templateparser.php"
 | |
| #line 482 "internal.templateparser.y"
 | |
|     function yy_r147(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2389 "internal.templateparser.php"
 | |
| #line 491 "internal.templateparser.y"
 | |
|     function yy_r151(){$this->_retvalue = "`".$this->yystack[$this->yyidx + -1]->minor."`";    }
 | |
| #line 2392 "internal.templateparser.php"
 | |
| #line 492 "internal.templateparser.y"
 | |
|     function yy_r152(){$this->_retvalue = '".'.$this->yystack[$this->yyidx + -1]->minor.'."';    }
 | |
| #line 2395 "internal.templateparser.php"
 | |
| #line 493 "internal.templateparser.y"
 | |
|     function yy_r153(){$this->_retvalue = '".'.'$_smarty_tpl->getVariable(\''. $this->yystack[$this->yyidx + 0]->minor .'\')->value'.'."'; $this->nocache=$this->template->getVariable(trim($this->yystack[$this->yyidx + 0]->minor,"'"))->nocache;    }
 | |
| #line 2398 "internal.templateparser.php"
 | |
| #line 494 "internal.templateparser.y"
 | |
|     function yy_r154(){preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->_retvalue = $s[0].'".('.$this->yystack[$this->yyidx + -1]->minor.')."';    }
 | |
| #line 2401 "internal.templateparser.php"
 | |
| #line 495 "internal.templateparser.y"
 | |
|     function yy_r155(){ preg_match('/\s*/',$this->yystack[$this->yyidx + -2]->minor,$s); $this->prefix_number++; $this->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + -1]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; $this->_retvalue = $s[0].'".$_tmp'.$this->prefix_number.'."';     }
 | |
| #line 2404 "internal.templateparser.php"
 | |
| #line 496 "internal.templateparser.y"
 | |
|     function yy_r156(){$this->_retvalue = '$'.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2407 "internal.templateparser.php"
 | |
| #line 498 "internal.templateparser.y"
 | |
|     function yy_r158(){$this->_retvalue = '`'.$this->yystack[$this->yyidx + 0]->minor;    }
 | |
| #line 2410 "internal.templateparser.php"
 | |
| 
 | |
|     /**
 | |
|      * placeholder for the left hand side in a reduce operation.
 | |
|      * 
 | |
|      * For a parser with a rule like this:
 | |
|      * <pre>
 | |
|      * rule(A) ::= B. { A = 1; }
 | |
|      * </pre>
 | |
|      * 
 | |
|      * The parser will translate to something like:
 | |
|      * 
 | |
|      * <code>
 | |
|      * function yy_r0(){$this->_retvalue = 1;}
 | |
|      * </code>
 | |
|      */
 | |
|     private $_retvalue;
 | |
| 
 | |
|     /**
 | |
|      * Perform a reduce action and the shift that must immediately
 | |
|      * follow the reduce.
 | |
|      * 
 | |
|      * For a rule such as:
 | |
|      * 
 | |
|      * <pre>
 | |
|      * A ::= B blah C. { dosomething(); }
 | |
|      * </pre>
 | |
|      * 
 | |
|      * This function will first call the action, if any, ("dosomething();" in our
 | |
|      * example), and then it will pop three states from the stack,
 | |
|      * one for each entry on the right-hand side of the expression
 | |
|      * (B, blah, and C in our example rule), and then push the result of the action
 | |
|      * back on to the stack with the resulting state reduced to (as described in the .out
 | |
|      * file)
 | |
|      * @param int Number of the rule by which to reduce
 | |
|      */
 | |
|     function yy_reduce($yyruleno)
 | |
|     {
 | |
|         //int $yygoto;                     /* The next state */
 | |
|         //int $yyact;                      /* The next action */
 | |
|         //mixed $yygotominor;        /* The LHS of the rule reduced */
 | |
|         //TP_yyStackEntry $yymsp;            /* The top of the parser's stack */
 | |
|         //int $yysize;                     /* Amount to pop the stack */
 | |
|         $yymsp = $this->yystack[$this->yyidx];
 | |
|         if (self::$yyTraceFILE && $yyruleno >= 0 
 | |
|               && $yyruleno < count(self::$yyRuleName)) {
 | |
|             fprintf(self::$yyTraceFILE, "%sReduce (%d) [%s].\n",
 | |
|                 self::$yyTracePrompt, $yyruleno,
 | |
|                 self::$yyRuleName[$yyruleno]);
 | |
|         }
 | |
| 
 | |
|         $this->_retvalue = $yy_lefthand_side = null;
 | |
|         if (array_key_exists($yyruleno, self::$yyReduceMap)) {
 | |
|             // call the action
 | |
|             $this->_retvalue = null;
 | |
|             $this->{'yy_r' . self::$yyReduceMap[$yyruleno]}();
 | |
|             $yy_lefthand_side = $this->_retvalue;
 | |
|         }
 | |
|         $yygoto = self::$yyRuleInfo[$yyruleno]['lhs'];
 | |
|         $yysize = self::$yyRuleInfo[$yyruleno]['rhs'];
 | |
|         $this->yyidx -= $yysize;
 | |
|         for($i = $yysize; $i; $i--) {
 | |
|             // pop all of the right-hand side parameters
 | |
|             array_pop($this->yystack);
 | |
|         }
 | |
|         $yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto);
 | |
|         if ($yyact < self::YYNSTATE) {
 | |
|             /* If we are not debugging and the reduce action popped at least
 | |
|             ** one element off the stack, then we can push the new element back
 | |
|             ** onto the stack here, and skip the stack overflow test in yy_shift().
 | |
|             ** That gives a significant speed improvement. */
 | |
|             if (!self::$yyTraceFILE && $yysize) {
 | |
|                 $this->yyidx++;
 | |
|                 $x = new TP_yyStackEntry;
 | |
|                 $x->stateno = $yyact;
 | |
|                 $x->major = $yygoto;
 | |
|                 $x->minor = $yy_lefthand_side;
 | |
|                 $this->yystack[$this->yyidx] = $x;
 | |
|             } else {
 | |
|                 $this->yy_shift($yyact, $yygoto, $yy_lefthand_side);
 | |
|             }
 | |
|         } elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) {
 | |
|             $this->yy_accept();
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * The following code executes when the parse fails
 | |
|      * 
 | |
|      * Code from %parse_fail is inserted here
 | |
|      */
 | |
|     function yy_parse_failed()
 | |
|     {
 | |
|         if (self::$yyTraceFILE) {
 | |
|             fprintf(self::$yyTraceFILE, "%sFail!\n", self::$yyTracePrompt);
 | |
|         }
 | |
|         while ($this->yyidx >= 0) {
 | |
|             $this->yy_pop_parser_stack();
 | |
|         }
 | |
|         /* Here code is inserted which will be executed whenever the
 | |
|         ** parser fails */
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * The following code executes when a syntax error first occurs.
 | |
|      * 
 | |
|      * %syntax_error code is inserted here
 | |
|      * @param int The major type of the error token
 | |
|      * @param mixed The minor type of the error token
 | |
|      */
 | |
|     function yy_syntax_error($yymajor, $TOKEN)
 | |
|     {
 | |
| #line 60 "internal.templateparser.y"
 | |
| 
 | |
|     $this->internalError = true;
 | |
|     $this->yymajor = $yymajor;
 | |
|     $this->compiler->trigger_template_error();
 | |
| #line 2528 "internal.templateparser.php"
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * The following is executed when the parser accepts
 | |
|      * 
 | |
|      * %parse_accept code is inserted here
 | |
|      */
 | |
|     function yy_accept()
 | |
|     {
 | |
|         if (self::$yyTraceFILE) {
 | |
|             fprintf(self::$yyTraceFILE, "%sAccept!\n", self::$yyTracePrompt);
 | |
|         }
 | |
|         while ($this->yyidx >= 0) {
 | |
|             $stack = $this->yy_pop_parser_stack();
 | |
|         }
 | |
|         /* Here code is inserted which will be executed whenever the
 | |
|         ** parser accepts */
 | |
| #line 52 "internal.templateparser.y"
 | |
| 
 | |
|     $this->successful = !$this->internalError;
 | |
|     $this->internalError = false;
 | |
|     $this->retvalue = $this->_retvalue;
 | |
|     //echo $this->retvalue."\n\n";
 | |
| #line 2553 "internal.templateparser.php"
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * The main parser program.
 | |
|      * 
 | |
|      * The first argument is the major token number.  The second is
 | |
|      * the token value string as scanned from the input.
 | |
|      *
 | |
|      * @param int the token number
 | |
|      * @param mixed the token value
 | |
|      * @param mixed any extra arguments that should be passed to handlers
 | |
|      */
 | |
|     function doParse($yymajor, $yytokenvalue)
 | |
|     {
 | |
| //        $yyact;            /* The parser action. */
 | |
| //        $yyendofinput;     /* True if we are at the end of input */
 | |
|         $yyerrorhit = 0;   /* True if yymajor has invoked an error */
 | |
|         
 | |
|         /* (re)initialize the parser, if necessary */
 | |
|         if ($this->yyidx === null || $this->yyidx < 0) {
 | |
|             /* if ($yymajor == 0) return; // not sure why this was here... */
 | |
|             $this->yyidx = 0;
 | |
|             $this->yyerrcnt = -1;
 | |
|             $x = new TP_yyStackEntry;
 | |
|             $x->stateno = 0;
 | |
|             $x->major = 0;
 | |
|             $this->yystack = array();
 | |
|             array_push($this->yystack, $x);
 | |
|         }
 | |
|         $yyendofinput = ($yymajor==0);
 | |
|         
 | |
|         if (self::$yyTraceFILE) {
 | |
|             fprintf(self::$yyTraceFILE, "%sInput %s\n",
 | |
|                 self::$yyTracePrompt, $this->yyTokenName[$yymajor]);
 | |
|         }
 | |
|         
 | |
|         do {
 | |
|             $yyact = $this->yy_find_shift_action($yymajor);
 | |
|             if ($yymajor < self::YYERRORSYMBOL &&
 | |
|                   !$this->yy_is_expected_token($yymajor)) {
 | |
|                 // force a syntax error
 | |
|                 $yyact = self::YY_ERROR_ACTION;
 | |
|             }
 | |
|             if ($yyact < self::YYNSTATE) {
 | |
|                 $this->yy_shift($yyact, $yymajor, $yytokenvalue);
 | |
|                 $this->yyerrcnt--;
 | |
|                 if ($yyendofinput && $this->yyidx >= 0) {
 | |
|                     $yymajor = 0;
 | |
|                 } else {
 | |
|                     $yymajor = self::YYNOCODE;
 | |
|                 }
 | |
|             } elseif ($yyact < self::YYNSTATE + self::YYNRULE) {
 | |
|                 $this->yy_reduce($yyact - self::YYNSTATE);
 | |
|             } elseif ($yyact == self::YY_ERROR_ACTION) {
 | |
|                 if (self::$yyTraceFILE) {
 | |
|                     fprintf(self::$yyTraceFILE, "%sSyntax Error!\n",
 | |
|                         self::$yyTracePrompt);
 | |
|                 }
 | |
|                 if (self::YYERRORSYMBOL) {
 | |
|                     /* A syntax error has occurred.
 | |
|                     ** The response to an error depends upon whether or not the
 | |
|                     ** grammar defines an error token "ERROR".  
 | |
|                     **
 | |
|                     ** This is what we do if the grammar does define ERROR:
 | |
|                     **
 | |
|                     **  * Call the %syntax_error function.
 | |
|                     **
 | |
|                     **  * Begin popping the stack until we enter a state where
 | |
|                     **    it is legal to shift the error symbol, then shift
 | |
|                     **    the error symbol.
 | |
|                     **
 | |
|                     **  * Set the error count to three.
 | |
|                     **
 | |
|                     **  * Begin accepting and shifting new tokens.  No new error
 | |
|                     **    processing will occur until three tokens have been
 | |
|                     **    shifted successfully.
 | |
|                     **
 | |
|                     */
 | |
|                     if ($this->yyerrcnt < 0) {
 | |
|                         $this->yy_syntax_error($yymajor, $yytokenvalue);
 | |
|                     }
 | |
|                     $yymx = $this->yystack[$this->yyidx]->major;
 | |
|                     if ($yymx == self::YYERRORSYMBOL || $yyerrorhit ){
 | |
|                         if (self::$yyTraceFILE) {
 | |
|                             fprintf(self::$yyTraceFILE, "%sDiscard input token %s\n",
 | |
|                                 self::$yyTracePrompt, $this->yyTokenName[$yymajor]);
 | |
|                         }
 | |
|                         $this->yy_destructor($yymajor, $yytokenvalue);
 | |
|                         $yymajor = self::YYNOCODE;
 | |
|                     } else {
 | |
|                         while ($this->yyidx >= 0 &&
 | |
|                                  $yymx != self::YYERRORSYMBOL &&
 | |
|         ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE
 | |
|                               ){
 | |
|                             $this->yy_pop_parser_stack();
 | |
|                         }
 | |
|                         if ($this->yyidx < 0 || $yymajor==0) {
 | |
|                             $this->yy_destructor($yymajor, $yytokenvalue);
 | |
|                             $this->yy_parse_failed();
 | |
|                             $yymajor = self::YYNOCODE;
 | |
|                         } elseif ($yymx != self::YYERRORSYMBOL) {
 | |
|                             $u2 = 0;
 | |
|                             $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2);
 | |
|                         }
 | |
|                     }
 | |
|                     $this->yyerrcnt = 3;
 | |
|                     $yyerrorhit = 1;
 | |
|                 } else {
 | |
|                     /* YYERRORSYMBOL is not defined */
 | |
|                     /* This is what we do if the grammar does not define ERROR:
 | |
|                     **
 | |
|                     **  * Report an error message, and throw away the input token.
 | |
|                     **
 | |
|                     **  * If the input token is $, then fail the parse.
 | |
|                     **
 | |
|                     ** As before, subsequent error messages are suppressed until
 | |
|                     ** three input tokens have been successfully shifted.
 | |
|                     */
 | |
|                     if ($this->yyerrcnt <= 0) {
 | |
|                         $this->yy_syntax_error($yymajor, $yytokenvalue);
 | |
|                     }
 | |
|                     $this->yyerrcnt = 3;
 | |
|                     $this->yy_destructor($yymajor, $yytokenvalue);
 | |
|                     if ($yyendofinput) {
 | |
|                         $this->yy_parse_failed();
 | |
|                     }
 | |
|                     $yymajor = self::YYNOCODE;
 | |
|                 }
 | |
|             } else {
 | |
|                 $this->yy_accept();
 | |
|                 $yymajor = self::YYNOCODE;
 | |
|             }            
 | |
|         } while ($yymajor != self::YYNOCODE && $this->yyidx >= 0);
 | |
|     }
 | |
| }
 |