<?php
/* Driver template for the PHP_Haanga_rGenerator parser generator. (PHP port of LEMON)
*/

/**
 * 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 Haanga_yyToken implements ArrayAccess
{
    public $string = '';
    public $metadata = array();

    function __construct($s, $m = array())
    {
        if ($s instanceof Haanga_yyToken) {
            $this->string = $s->string;
            $this->metadata = $s->metadata;
        } else {
            $this->string = (string) $s;
            if ($m instanceof Haanga_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 Haanga_yyToken) ?
                    $value->metadata : $value;
                $this->metadata = array_merge($this->metadata, $x);
                return;
            }
            $offset = count($this->metadata);
        }
        if ($value === null) {
            return;
        }
        if ($value instanceof Haanga_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 Haanga_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
#line 2 "lib/Haanga/Compiler/Parser.y"

/*
  +---------------------------------------------------------------------------------+
  | Copyright (c) 2010 César Rodas and Menéame Comunicacions S.L.                   |
  +---------------------------------------------------------------------------------+
  | Redistribution and use in source and binary forms, with or without              |
  | modification, are permitted provided that the following conditions are met:     |
  | 1. Redistributions of source code must retain the above copyright               |
  |    notice, this list of conditions and the following disclaimer.                |
  |                                                                                 |
  | 2. Redistributions in binary form must reproduce the above copyright            |
  |    notice, this list of conditions and the following disclaimer in the          |
  |    documentation and/or other materials provided with the distribution.         |
  |                                                                                 |
  | 3. All advertising materials mentioning features or use of this software        |
  |    must display the following acknowledgement:                                  |
  |    This product includes software developed by César D. Rodas.                  |
  |                                                                                 |
  | 4. Neither the name of the César D. Rodas nor the                               |
  |    names of its contributors may be used to endorse or promote products         |
  |    derived from this software without specific prior written permission.        |
  |                                                                                 |
  | THIS SOFTWARE IS PROVIDED BY CÉSAR D. RODAS ''AS IS'' AND ANY                   |
  | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED       |
  | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE          |
  | DISCLAIMED. IN NO EVENT SHALL CÉSAR D. RODAS BE LIABLE FOR ANY                  |
  | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES      |
  | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;    |
  | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND     |
  | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT      |
  | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS   |
  | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE                     |
  +---------------------------------------------------------------------------------+
  | Authors: César Rodas <crodas@php.net>                                           |
  +---------------------------------------------------------------------------------+
*/
#line 136 "lib/Haanga/Compiler/Parser.php"

// declare_class is output here
#line 39 "lib/Haanga/Compiler/Parser.y"
 class Haanga_Compiler_Parser #line 141 "lib/Haanga/Compiler/Parser.php"
{
/* First off, code is included which follows the "include_class" declaration
** in the input file. */
#line 40 "lib/Haanga/Compiler/Parser.y"

    protected $lex;
    protected $file;

    function __construct($lex, $file='')
    {
        $this->lex  = $lex;
        $this->file = $file;
    }

    function Error($text)
    {
        throw new Haanga_Compiler_Exception($text.' in '.$this->file.':'.$this->lex->getLine());
    }

#line 162 "lib/Haanga/Compiler/Parser.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 T_TAG_OPEN                     =  1;
    const T_NOT                          =  2;
    const T_AND                          =  3;
    const T_OR                           =  4;
    const T_QUESTION                     =  5;
    const T_COLON                        =  6;
    const T_EQ                           =  7;
    const T_NE                           =  8;
    const T_GT                           =  9;
    const T_GE                           = 10;
    const T_LT                           = 11;
    const T_LE                           = 12;
    const T_IN                           = 13;
    const T_PLUS                         = 14;
    const T_MINUS                        = 15;
    const T_CONCAT                       = 16;
    const T_TIMES                        = 17;
    const T_DIV                          = 18;
    const T_MOD                          = 19;
    const T_PIPE                         = 20;
    const T_BITWISE                      = 21;
    const T_FILTER_PIPE                  = 22;
    const T_HTML                         = 23;
    const T_COMMENT                      = 24;
    const T_PRINT_OPEN                   = 25;
    const T_PRINT_CLOSE                  = 26;
    const T_EXTENDS                      = 27;
    const T_TAG_CLOSE                    = 28;
    const T_INCLUDE                      = 29;
    const T_AUTOESCAPE                   = 30;
    const T_CUSTOM_END                   = 31;
    const T_CUSTOM_TAG                   = 32;
    const T_AS                           = 33;
    const T_CUSTOM_BLOCK                 = 34;
    const T_SPACEFULL                    = 35;
    const T_WITH                         = 36;
    const T_SET                          = 37;
    const T_ASSIGN                       = 38;
    const T_LOAD                         = 39;
    const T_FOR                          = 40;
    const T_COMMA                        = 41;
    const T_STEP                         = 42;
    const T_EMPTY                        = 43;
    const T_IF                           = 44;
    const T_ELSE                         = 45;
    const T_IFCHANGED                    = 46;
    const T_IFEQUAL                      = 47;
    const T_IFNOTEQUAL                   = 48;
    const T_BLOCK                        = 49;
    const T_FILTER                       = 50;
    const T_REGROUP                      = 51;
    const T_BY                           = 52;
    const T_TRUE                         = 53;
    const T_FALSE                        = 54;
    const T_STRING                       = 55;
    const T_INTL                         = 56;
    const T_RPARENT                      = 57;
    const T_LPARENT                      = 58;
    const T_OBJ                          = 59;
    const T_DOT                          = 60;
    const T_CLASS                        = 61;
    const T_BRACKETS_OPEN                = 62;
    const T_BRACKETS_CLOSE               = 63;
    const T_ALPHA                        = 64;
    const T_DOTDOT                       = 65;
    const T_NUMERIC                      = 66;
    const YY_NO_ACTION = 374;
    const YY_ACCEPT_ACTION = 373;
    const YY_ERROR_ACTION = 372;

/* 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 = 1683;
static public $yy_action = array(
 /*     0 */    31,   36,   32,  245,   30,   30,   30,   30,   30,   30,
 /*    10 */    30,   33,   33,   33,   24,   24,   24,   28,   29,   54,
 /*    20 */   212,   53,   74,  195,   43,  110,   44,  188,   72,   68,
 /*    30 */   105,  101,   66,  225,  162,  111,   27,  193,   45,   39,
 /*    40 */    42,   61,   58,   56,   31,   36,   32,   34,   30,   30,
 /*    50 */    30,   30,   30,   30,   30,   33,   33,   33,   24,   24,
 /*    60 */    24,   28,   29,   31,   36,   32,   63,   30,   30,   30,
 /*    70 */    30,   30,   30,   30,   33,   33,   33,   24,   24,   24,
 /*    80 */    28,   29,   51,   28,   29,   54,  258,   53,   74,  160,
 /*    90 */    43,   38,   44,  188,   72,   68,   70,  101,   66,  236,
 /*   100 */   174,  277,   27,  159,   45,   39,   42,   61,   58,   56,
 /*   110 */   227,  135,  232,   54,   60,   53,   74,  146,   43,   67,
 /*   120 */    44,  188,   72,   68,  231,  101,   66,  373,   95,  250,
 /*   130 */    27,  150,   45,   39,   42,   61,   58,   56,   31,   36,
 /*   140 */    32,  369,   30,   30,   30,   30,   30,   30,   30,   33,
 /*   150 */    33,   33,   24,   24,   24,   28,   29,  246,   54,   62,
 /*   160 */    53,   74,  187,   43,  113,   44,  188,   72,   68,  200,
 /*   170 */   101,   66,  116,  174,  114,   27,  191,   45,   39,   42,
 /*   180 */    61,   58,   56,  247,  135,  232,   54,   71,   53,   74,
 /*   190 */   179,   43,  201,   44,  188,   72,   68,  238,  101,   66,
 /*   200 */   176,  109,  180,   27,   57,   45,   39,   42,   61,   58,
 /*   210 */    56,  135,  232,  254,   54,  156,   53,   74,  149,   43,
 /*   220 */   229,   44,  188,   72,   68,  117,  101,   66,  190,   69,
 /*   230 */   249,   27,  148,   45,   39,   42,   61,   58,   56,  135,
 /*   240 */   232,  107,   54,   37,   53,   74,  171,   43,  270,   44,
 /*   250 */   188,   72,   68,  104,  101,   66,  199,  183,  208,   27,
 /*   260 */   271,   45,   39,   42,   61,   58,   56,   59,  135,  232,
 /*   270 */    54,   51,   53,   74,  170,   43,  259,   44,  188,   72,
 /*   280 */    68,  123,  101,   66,  185,  243,   63,   27,  226,   45,
 /*   290 */    39,   42,   61,   58,   56,  135,  232,  255,   54,  265,
 /*   300 */    53,   74,  172,   43,  112,   44,  188,   72,   68,  103,
 /*   310 */   101,   66,  189,  267,  264,   27,  253,   45,   39,   42,
 /*   320 */    61,   58,   56,  135,  232,  120,   54,  163,   53,   74,
 /*   330 */   161,   43,  121,   44,  188,   72,   68,  213,  101,   66,
 /*   340 */   239,  169,   93,   27,  266,   45,   39,   42,   61,   58,
 /*   350 */    56,  222,  135,  232,   54,  192,   53,   74,  151,   43,
 /*   360 */   273,   44,  188,   72,   68,  248,  101,   66,  263,  118,
 /*   370 */    99,   27,   89,   45,   39,   42,   61,   58,   56,  135,
 /*   380 */   232,  256,   54,   85,   53,   74,  182,   43,   82,   44,
 /*   390 */   188,   72,   68,   86,  101,   66,  144,  272,   90,   27,
 /*   400 */    80,   45,   39,   42,   61,   58,   56,  135,  232,   91,
 /*   410 */    54,  209,   53,   74,  178,   43,   92,   44,  188,   72,
 /*   420 */    68,   97,  101,   66,  192,  141,   77,   27,   84,   45,
 /*   430 */    39,   42,   61,   58,   56,   83,  135,  232,   54,  275,
 /*   440 */    53,   74,  152,   43,   88,   44,  188,   72,   68,   87,
 /*   450 */   101,   66,  184,   79,   96,   27,   81,   45,   39,   42,
 /*   460 */    61,   58,   56,  135,  232,   78,   54,   94,   53,   74,
 /*   470 */   100,   43,   98,   44,  188,   72,   68,  192,  101,   66,
 /*   480 */   173,  192,  192,   27,  192,   45,   39,   42,   61,   58,
 /*   490 */    56,  135,  232,  192,   54,  192,   53,   74,  192,   43,
 /*   500 */   192,   44,  188,   72,   68,  192,  101,   66,  192,  192,
 /*   510 */   192,   27,  192,   45,   39,   42,   61,   58,   56,   31,
 /*   520 */    36,   32,  192,   30,   30,   30,   30,   30,   30,   30,
 /*   530 */    33,   33,   33,   24,   24,   24,   28,   29,  192,   54,
 /*   540 */   192,   53,   74,   64,   43,  192,   44,  188,   72,   68,
 /*   550 */   192,  101,   66,  192,  192,  192,   27,  192,   45,   39,
 /*   560 */    42,   61,   58,   56,   54,  192,   53,   74,  196,   43,
 /*   570 */   192,   44,  188,   72,   68,  192,  101,   66,  192,  192,
 /*   580 */   192,   27,  192,   45,   39,   42,   61,   58,   56,   54,
 /*   590 */   192,   53,   74,  186,   43,  192,   44,  188,   72,   68,
 /*   600 */   192,  101,   66,  192,  192,  192,   27,  192,   45,   39,
 /*   610 */    42,   61,   58,   56,   54,  192,   53,   74,  177,   43,
 /*   620 */   192,   44,  188,   72,   68,  192,  101,   66,  192,  192,
 /*   630 */   192,   27,  192,   45,   39,   42,   61,   58,   56,   54,
 /*   640 */   168,   53,   74,  154,   43,  192,   44,  188,   72,   68,
 /*   650 */   192,  101,   66,  210,  192,  192,   27,  192,   45,   39,
 /*   660 */    42,   61,   58,   56,   54,  192,   53,   74,  181,   43,
 /*   670 */   192,   44,  188,   72,   68,  192,  101,   66,  192,  192,
 /*   680 */   192,   27,  192,   45,   39,   42,   61,   58,   56,   36,
 /*   690 */    32,  260,   30,   30,   30,   30,   30,   30,   30,   33,
 /*   700 */    33,   33,   24,   24,   24,   28,   29,  192,  192,   54,
 /*   710 */   192,   53,   74,  192,   43,  192,   44,  188,   72,   68,
 /*   720 */   192,  101,   66,  192,  192,  192,   27,  192,   45,   39,
 /*   730 */    42,   61,   58,   56,   32,  192,   30,   30,   30,   30,
 /*   740 */    30,   30,   30,   33,   33,   33,   24,   24,   24,   28,
 /*   750 */    29,   30,   30,   30,   30,   30,   30,   30,   33,   33,
 /*   760 */    33,   24,   24,   24,   28,   29,  168,   26,  192,  234,
 /*   770 */   234,  192,  234,   24,   24,   24,   28,   29,  192,  276,
 /*   780 */   168,  192,  234,  234,   65,  234,  192,  234,  192,   10,
 /*   790 */   192,  192,   55,  225,  162,   63,  234,  234,  192,  234,
 /*   800 */   234,  211,  234,   63,  224,  224,  225,  162,  168,  108,
 /*   810 */   192,  233,  261,   35,  234,  234,  192,  260,  217,  217,
 /*   820 */   225,  162,  168,   25,  234,  234,   63,  234,  192,  234,
 /*   830 */   192,  260,  228,  268,  192,  122,  192,  192,  234,  234,
 /*   840 */   192,  234,  234,  215,   48,  192,  223,  192,   55,  192,
 /*   850 */   192,  168,  220,  192,  135,  232,  234,  234,  192,  260,
 /*   860 */   224,  224,  225,  162,  119,  192,  192,  234,  234,  192,
 /*   870 */   234,  234,  192,  260,  192,  192,  192,   55,  192,  192,
 /*   880 */   168,  192,  192,  192,  192,  234,  192,   22,  192,  224,
 /*   890 */   224,  225,  162,  242,  268,  192,  234,  234,   73,  234,
 /*   900 */   234,  192,  260,  192,  215,   47,  168,  223,  192,  233,
 /*   910 */   261,   35,  192,  220,  234,  135,  232,  268,  224,  224,
 /*   920 */   225,  162,  234,  234,  192,  234,  192,  215,   49,  234,
 /*   930 */   223,  260,   55,  192,  168,  192,  220,  192,  135,  232,
 /*   940 */   234,  192,  192,  192,  224,  224,  225,  162,  257,  192,
 /*   950 */   234,  234,  192,  234,  157,  234,  192,  260,  274,  192,
 /*   960 */   192,  234,  234,  158,  234,  135,  232,  192,  234,  192,
 /*   970 */   192,  168,  224,  224,  225,  162,  269,  192,  192,  234,
 /*   980 */   192,  192,  192,  234,  115,  260,  192,  234,  234,  192,
 /*   990 */   234,  192,  202,  192,  234,  155,  237,  240,  241,  235,
 /*  1000 */   244,  251,  252,  262,  192,  234,  205,  218,  106,  224,
 /*  1010 */   224,  225,  162,  168,  198,  192,  219,  214,  135,  232,
 /*  1020 */   234,  192,  260,  192,  192,  192,  102,  168,  174,  234,
 /*  1030 */   234,  194,  234,  197,  192,  192,  204,  216,  221,  135,
 /*  1040 */   232,  192,  192,  234,  234,  174,  234,  234,  167,  192,
 /*  1050 */   136,  224,  224,  225,  162,  221,  135,  232,  192,  192,
 /*  1060 */   192,  234,  234,  168,  260,  224,  224,  225,  162,  192,
 /*  1070 */   192,  192,  124,  192,  192,  192,  234,  192,  260,  234,
 /*  1080 */   234,  192,  234,  174,  192,  192,  194,  192,  197,  192,
 /*  1090 */   192,  204,  216,  221,  135,  232,  192,  234,  192,  142,
 /*  1100 */   192,  217,  217,  225,  162,   46,   76,   76,   75,   52,
 /*  1110 */   174,  192,  234,  194,  260,  197,  134,  192,  204,  216,
 /*  1120 */   221,  135,  232,  192,  192,  234,  234,  174,  234,  192,
 /*  1130 */   194,  192,  197,  192,  133,  204,  216,  221,  135,  232,
 /*  1140 */   192,  192,  192,  234,  192,  174,  192,  192,  194,  130,
 /*  1150 */   197,  192,  192,  204,  216,  221,  135,  232,  234,  192,
 /*  1160 */   174,  192,  192,  194,  127,  197,  192,  192,  204,  216,
 /*  1170 */   221,  135,  232,  192,  192,  174,  192,  132,  194,  192,
 /*  1180 */   197,  192,  192,  204,  216,  221,  135,  232,  174,  192,
 /*  1190 */   192,  194,  131,  197,  192,  192,  204,  216,  221,  135,
 /*  1200 */   232,  168,  192,  174,  192,  129,  194,  192,  197,  192,
 /*  1210 */   192,  204,  216,  221,  135,  232,  174,  234,  234,  194,
 /*  1220 */   234,  197,  192,  192,  204,  216,  221,  135,  232,  192,
 /*  1230 */   192,  192,  192,  174,  192,  234,  167,  230,  140,  192,
 /*  1240 */   192,  225,  162,  221,  135,  232,  192,  192,  174,  192,
 /*  1250 */   234,  194,  260,  197,  192,  192,  204,  216,  221,  135,
 /*  1260 */   232,  139,  192,  192,  167,  128,  143,  137,  145,  192,
 /*  1270 */   219,  221,  135,  232,  192,  192,  174,  192,  126,  194,
 /*  1280 */   192,  197,  192,  192,  204,  216,  221,  135,  232,  174,
 /*  1290 */   192,  125,  194,  192,  197,  192,  192,  204,  216,  221,
 /*  1300 */   135,  232,  174,  192,  192,  194,  192,  197,  192,  218,
 /*  1310 */   204,  216,  221,  135,  232,  192,  165,  192,  219,  174,
 /*  1320 */   135,  232,  194,  192,  197,  192,  192,   40,  216,  221,
 /*  1330 */   135,  232,  174,  192,  192,  194,  192,  197,  192,  192,
 /*  1340 */   147,  216,  221,  135,  232,  174,  192,  192,  194,  192,
 /*  1350 */   197,  192,  192,  164,  216,  221,  135,  232,  192,  192,
 /*  1360 */   174,  192,  192,  194,  192,  197,  268,   19,   41,  216,
 /*  1370 */   221,  135,  232,  207,  192,  192,  215,   50,   12,  223,
 /*  1380 */   192,  192,  192,  215,  192,  220,  223,  135,  232,  233,
 /*  1390 */   261,   35,  220,  203,  135,  232,  192,  192,  153,  192,
 /*  1400 */   233,  261,   35,  215,  192,  192,  223,  192,  215,  192,
 /*  1410 */   192,  223,  220,  192,  135,  232,  175,  220,  192,  135,
 /*  1420 */   232,  192,  192,  192,  192,  192,  215,  192,  192,  223,
 /*  1430 */   166,  192,  192,  192,  206,  220,  192,  135,  232,   15,
 /*  1440 */   215,  192,  192,  223,  215,    3,  192,  223,  192,  220,
 /*  1450 */   192,  135,  232,  220,  174,  135,  232,  167,    8,  138,
 /*  1460 */   192,  233,  261,   35,  221,  135,  232,  233,  261,   35,
 /*  1470 */     6,  192,  192,  192,  192,  192,  192,  192,  192,  192,
 /*  1480 */   233,  261,   35,    5,  192,  192,  192,  192,  192,  192,
 /*  1490 */   192,  192,  233,  261,   35,    2,  192,  192,  192,  192,
 /*  1500 */   192,  192,  192,  192,  192,  233,  261,   35,    1,  192,
 /*  1510 */   192,  192,  192,  192,  192,  192,  192,  233,  261,   35,
 /*  1520 */    23,  192,  192,  192,  192,  192,  192,  192,  192,  192,
 /*  1530 */   233,  261,   35,   18,  192,  192,  192,  192,  192,  192,
 /*  1540 */   192,  192,  233,  261,   35,   11,  192,  192,  192,  192,
 /*  1550 */   192,  192,  192,  192,  192,  233,  261,   35,    7,  192,
 /*  1560 */   192,  192,  192,  192,  192,  192,  192,  233,  261,   35,
 /*  1570 */    17,  192,  192,  192,  192,  192,  192,  192,  192,  192,
 /*  1580 */   233,  261,   35,    9,  192,  192,  192,  192,  192,  192,
 /*  1590 */   192,  192,  233,  261,   35,   13,  192,  192,  192,  192,
 /*  1600 */   192,  192,  192,  192,  192,  233,  261,   35,   21,  192,
 /*  1610 */   192,  192,  192,  192,  192,  192,  192,  233,  261,   35,
 /*  1620 */    14,  192,  192,  192,  192,  192,  192,  192,  192,  192,
 /*  1630 */   233,  261,   35,   16,  192,  192,  192,  192,  192,  192,
 /*  1640 */   192,  192,  233,  261,   35,    4,  192,  192,  192,  192,
 /*  1650 */   192,  192,  192,  192,  192,  233,  261,   35,   20,  192,
 /*  1660 */   192,  192,  192,  192,  192,  192,  192,  233,  261,   35,
 /*  1670 */   192,  192,  192,  192,  192,  192,  192,  192,  192,  192,
 /*  1680 */   233,  261,   35,
    );
    static public $yy_lookahead = array(
 /*     0 */     3,    4,    5,   28,    7,    8,    9,   10,   11,   12,
 /*    10 */    13,   14,   15,   16,   17,   18,   19,   20,   21,   27,
 /*    20 */    57,   29,   30,   31,   32,   28,   34,   35,   36,   37,
 /*    30 */    28,   39,   40,   55,   56,   28,   44,   45,   46,   47,
 /*    40 */    48,   49,   50,   51,    3,    4,    5,    6,    7,    8,
 /*    50 */     9,   10,   11,   12,   13,   14,   15,   16,   17,   18,
 /*    60 */    19,   20,   21,    3,    4,    5,   22,    7,    8,    9,
 /*    70 */    10,   11,   12,   13,   14,   15,   16,   17,   18,   19,
 /*    80 */    20,   21,    6,   20,   21,   27,   26,   29,   30,   31,
 /*    90 */    32,   13,   34,   35,   36,   37,   52,   39,   40,   28,
 /*   100 */    83,   28,   44,   45,   46,   47,   48,   49,   50,   51,
 /*   110 */    93,   94,   95,   27,   65,   29,   30,   31,   32,   41,
 /*   120 */    34,   35,   36,   37,   28,   39,   40,   68,   69,   28,
 /*   130 */    44,   45,   46,   47,   48,   49,   50,   51,    3,    4,
 /*   140 */     5,   65,    7,    8,    9,   10,   11,   12,   13,   14,
 /*   150 */    15,   16,   17,   18,   19,   20,   21,   28,   27,   22,
 /*   160 */    29,   30,   31,   32,   28,   34,   35,   36,   37,   28,
 /*   170 */    39,   40,   28,   83,   28,   44,   45,   46,   47,   48,
 /*   180 */    49,   50,   51,   93,   94,   95,   27,   33,   29,   30,
 /*   190 */    31,   32,   57,   34,   35,   36,   37,   28,   39,   40,
 /*   200 */    83,   28,   43,   44,   13,   46,   47,   48,   49,   50,
 /*   210 */    51,   94,   95,   28,   27,   55,   29,   30,   31,   32,
 /*   220 */    28,   34,   35,   36,   37,   28,   39,   40,   83,   33,
 /*   230 */    28,   44,   45,   46,   47,   48,   49,   50,   51,   94,
 /*   240 */    95,   28,   27,   38,   29,   30,   31,   32,   28,   34,
 /*   250 */    35,   36,   37,   28,   39,   40,   28,   83,   28,   44,
 /*   260 */    28,   46,   47,   48,   49,   50,   51,   42,   94,   95,
 /*   270 */    27,    6,   29,   30,   31,   32,   28,   34,   35,   36,
 /*   280 */    37,   28,   39,   40,   83,   28,   22,   44,   28,   46,
 /*   290 */    47,   48,   49,   50,   51,   94,   95,   28,   27,   66,
 /*   300 */    29,   30,   31,   32,   28,   34,   35,   36,   37,   28,
 /*   310 */    39,   40,   83,   63,   28,   44,   28,   46,   47,   48,
 /*   320 */    49,   50,   51,   94,   95,   28,   27,   92,   29,   30,
 /*   330 */    31,   32,   28,   34,   35,   36,   37,   28,   39,   40,
 /*   340 */    28,   83,   69,   44,   28,   46,   47,   48,   49,   50,
 /*   350 */    51,   28,   94,   95,   27,   96,   29,   30,   31,   32,
 /*   360 */    28,   34,   35,   36,   37,   28,   39,   40,   83,   28,
 /*   370 */    69,   44,   69,   46,   47,   48,   49,   50,   51,   94,
 /*   380 */    95,   70,   27,   69,   29,   30,   31,   32,   69,   34,
 /*   390 */    35,   36,   37,   69,   39,   40,   83,   95,   69,   44,
 /*   400 */    69,   46,   47,   48,   49,   50,   51,   94,   95,   69,
 /*   410 */    27,   86,   29,   30,   31,   32,   69,   34,   35,   36,
 /*   420 */    37,   69,   39,   40,   96,   83,   69,   44,   69,   46,
 /*   430 */    47,   48,   49,   50,   51,   69,   94,   95,   27,   95,
 /*   440 */    29,   30,   31,   32,   69,   34,   35,   36,   37,   69,
 /*   450 */    39,   40,   83,   69,   69,   44,   69,   46,   47,   48,
 /*   460 */    49,   50,   51,   94,   95,   69,   27,   69,   29,   30,
 /*   470 */    31,   32,   69,   34,   35,   36,   37,   96,   39,   40,
 /*   480 */    83,   96,   96,   44,   96,   46,   47,   48,   49,   50,
 /*   490 */    51,   94,   95,   96,   27,   96,   29,   30,   31,   32,
 /*   500 */    96,   34,   35,   36,   37,   96,   39,   40,   96,   96,
 /*   510 */    96,   44,   96,   46,   47,   48,   49,   50,   51,    3,
 /*   520 */     4,    5,   96,    7,    8,    9,   10,   11,   12,   13,
 /*   530 */    14,   15,   16,   17,   18,   19,   20,   21,   96,   27,
 /*   540 */    96,   29,   30,   31,   32,   96,   34,   35,   36,   37,
 /*   550 */    96,   39,   40,   96,   96,   96,   44,   96,   46,   47,
 /*   560 */    48,   49,   50,   51,   27,   96,   29,   30,   31,   32,
 /*   570 */    96,   34,   35,   36,   37,   96,   39,   40,   96,   96,
 /*   580 */    96,   44,   96,   46,   47,   48,   49,   50,   51,   27,
 /*   590 */    96,   29,   30,   31,   32,   96,   34,   35,   36,   37,
 /*   600 */    96,   39,   40,   96,   96,   96,   44,   96,   46,   47,
 /*   610 */    48,   49,   50,   51,   27,   96,   29,   30,   31,   32,
 /*   620 */    96,   34,   35,   36,   37,   96,   39,   40,   96,   96,
 /*   630 */    96,   44,   96,   46,   47,   48,   49,   50,   51,   27,
 /*   640 */    15,   29,   30,   31,   32,   96,   34,   35,   36,   37,
 /*   650 */    96,   39,   40,   28,   96,   96,   44,   96,   46,   47,
 /*   660 */    48,   49,   50,   51,   27,   96,   29,   30,   31,   32,
 /*   670 */    96,   34,   35,   36,   37,   96,   39,   40,   96,   96,
 /*   680 */    96,   44,   96,   46,   47,   48,   49,   50,   51,    4,
 /*   690 */     5,   66,    7,    8,    9,   10,   11,   12,   13,   14,
 /*   700 */    15,   16,   17,   18,   19,   20,   21,   96,   96,   27,
 /*   710 */    96,   29,   30,   96,   32,   96,   34,   35,   36,   37,
 /*   720 */    96,   39,   40,   96,   96,   96,   44,   96,   46,   47,
 /*   730 */    48,   49,   50,   51,    5,   96,    7,    8,    9,   10,
 /*   740 */    11,   12,   13,   14,   15,   16,   17,   18,   19,   20,
 /*   750 */    21,    7,    8,    9,   10,   11,   12,   13,   14,   15,
 /*   760 */    16,   17,   18,   19,   20,   21,   15,    2,   96,   31,
 /*   770 */    32,   96,   34,   17,   18,   19,   20,   21,   96,   28,
 /*   780 */    15,   96,   31,   32,   33,   34,   96,   49,   96,    1,
 /*   790 */    96,   96,   41,   55,   56,   22,   31,   32,   96,   34,
 /*   800 */    49,   28,   64,   22,   53,   54,   55,   56,   15,   28,
 /*   810 */    96,   23,   24,   25,   49,   64,   96,   66,   53,   54,
 /*   820 */    55,   56,   15,   58,   31,   32,   22,   34,   96,   64,
 /*   830 */    96,   66,   28,   73,   96,   28,   96,   96,   31,   32,
 /*   840 */    96,   34,   49,   83,   84,   96,   86,   96,   41,   96,
 /*   850 */    96,   15,   92,   96,   94,   95,   49,   64,   96,   66,
 /*   860 */    53,   54,   55,   56,   28,   96,   96,   31,   32,   96,
 /*   870 */    34,   64,   96,   66,   96,   96,   96,   41,   96,   96,
 /*   880 */    15,   96,   96,   96,   96,   49,   96,    1,   96,   53,
 /*   890 */    54,   55,   56,   28,   73,   96,   31,   32,   33,   34,
 /*   900 */    64,   96,   66,   96,   83,   84,   15,   86,   96,   23,
 /*   910 */    24,   25,   96,   92,   49,   94,   95,   73,   53,   54,
 /*   920 */    55,   56,   31,   32,   96,   34,   96,   83,   84,   64,
 /*   930 */    86,   66,   41,   96,   15,   96,   92,   96,   94,   95,
 /*   940 */    49,   96,   96,   96,   53,   54,   55,   56,   57,   96,
 /*   950 */    31,   32,   96,   34,   83,   64,   96,   66,   28,   96,
 /*   960 */    96,   31,   32,   92,   34,   94,   95,   96,   49,   96,
 /*   970 */    96,   15,   53,   54,   55,   56,   57,   96,   96,   49,
 /*   980 */    96,   96,   96,   64,   28,   66,   96,   31,   32,   96,
 /*   990 */    34,   96,   71,   96,   64,   74,   75,   76,   77,   78,
 /*  1000 */    79,   80,   81,   82,   96,   49,   85,   83,   87,   53,
 /*  1010 */    54,   55,   56,   15,   90,   96,   92,   72,   94,   95,
 /*  1020 */    64,   96,   66,   96,   96,   96,   28,   15,   83,   31,
 /*  1030 */    32,   86,   34,   88,   96,   96,   91,   92,   93,   94,
 /*  1040 */    95,   96,   96,   31,   32,   83,   34,   49,   86,   96,
 /*  1050 */    88,   53,   54,   55,   56,   93,   94,   95,   96,   96,
 /*  1060 */    96,   49,   64,   15,   66,   53,   54,   55,   56,   96,
 /*  1070 */    96,   96,   72,   96,   96,   96,   64,   96,   66,   31,
 /*  1080 */    32,   96,   34,   83,   96,   96,   86,   96,   88,   96,
 /*  1090 */    96,   91,   92,   93,   94,   95,   96,   49,   96,   72,
 /*  1100 */    96,   53,   54,   55,   56,   58,   59,   60,   61,   62,
 /*  1110 */    83,   96,   64,   86,   66,   88,   72,   96,   91,   92,
 /*  1120 */    93,   94,   95,   96,   96,   31,   32,   83,   34,   96,
 /*  1130 */    86,   96,   88,   96,   72,   91,   92,   93,   94,   95,
 /*  1140 */    96,   96,   96,   49,   96,   83,   96,   96,   86,   72,
 /*  1150 */    88,   96,   96,   91,   92,   93,   94,   95,   64,   96,
 /*  1160 */    83,   96,   96,   86,   72,   88,   96,   96,   91,   92,
 /*  1170 */    93,   94,   95,   96,   96,   83,   96,   72,   86,   96,
 /*  1180 */    88,   96,   96,   91,   92,   93,   94,   95,   83,   96,
 /*  1190 */    96,   86,   72,   88,   96,   96,   91,   92,   93,   94,
 /*  1200 */    95,   15,   96,   83,   96,   72,   86,   96,   88,   96,
 /*  1210 */    96,   91,   92,   93,   94,   95,   83,   31,   32,   86,
 /*  1220 */    34,   88,   96,   96,   91,   92,   93,   94,   95,   96,
 /*  1230 */    96,   96,   96,   83,   96,   49,   86,   72,   88,   96,
 /*  1240 */    96,   55,   56,   93,   94,   95,   96,   96,   83,   96,
 /*  1250 */    64,   86,   66,   88,   96,   96,   91,   92,   93,   94,
 /*  1260 */    95,   83,   96,   96,   86,   72,   88,   89,   90,   96,
 /*  1270 */    92,   93,   94,   95,   96,   96,   83,   96,   72,   86,
 /*  1280 */    96,   88,   96,   96,   91,   92,   93,   94,   95,   83,
 /*  1290 */    96,   72,   86,   96,   88,   96,   96,   91,   92,   93,
 /*  1300 */    94,   95,   83,   96,   96,   86,   96,   88,   96,   83,
 /*  1310 */    91,   92,   93,   94,   95,   96,   90,   96,   92,   83,
 /*  1320 */    94,   95,   86,   96,   88,   96,   96,   91,   92,   93,
 /*  1330 */    94,   95,   83,   96,   96,   86,   96,   88,   96,   96,
 /*  1340 */    91,   92,   93,   94,   95,   83,   96,   96,   86,   96,
 /*  1350 */    88,   96,   96,   91,   92,   93,   94,   95,   96,   96,
 /*  1360 */    83,   96,   96,   86,   96,   88,   73,    1,   91,   92,
 /*  1370 */    93,   94,   95,   73,   96,   96,   83,   84,    1,   86,
 /*  1380 */    96,   96,   96,   83,   96,   92,   86,   94,   95,   23,
 /*  1390 */    24,   25,   92,   73,   94,   95,   96,   96,   73,   96,
 /*  1400 */    23,   24,   25,   83,   96,   96,   86,   96,   83,   96,
 /*  1410 */    96,   86,   92,   96,   94,   95,   73,   92,   96,   94,
 /*  1420 */    95,   96,   96,   96,   96,   96,   83,   96,   96,   86,
 /*  1430 */    73,   96,   96,   96,   73,   92,   96,   94,   95,    1,
 /*  1440 */    83,   96,   96,   86,   83,    1,   96,   86,   96,   92,
 /*  1450 */    96,   94,   95,   92,   83,   94,   95,   86,    1,   88,
 /*  1460 */    96,   23,   24,   25,   93,   94,   95,   23,   24,   25,
 /*  1470 */     1,   96,   96,   96,   96,   96,   96,   96,   96,   96,
 /*  1480 */    23,   24,   25,    1,   96,   96,   96,   96,   96,   96,
 /*  1490 */    96,   96,   23,   24,   25,    1,   96,   96,   96,   96,
 /*  1500 */    96,   96,   96,   96,   96,   23,   24,   25,    1,   96,
 /*  1510 */    96,   96,   96,   96,   96,   96,   96,   23,   24,   25,
 /*  1520 */     1,   96,   96,   96,   96,   96,   96,   96,   96,   96,
 /*  1530 */    23,   24,   25,    1,   96,   96,   96,   96,   96,   96,
 /*  1540 */    96,   96,   23,   24,   25,    1,   96,   96,   96,   96,
 /*  1550 */    96,   96,   96,   96,   96,   23,   24,   25,    1,   96,
 /*  1560 */    96,   96,   96,   96,   96,   96,   96,   23,   24,   25,
 /*  1570 */     1,   96,   96,   96,   96,   96,   96,   96,   96,   96,
 /*  1580 */    23,   24,   25,    1,   96,   96,   96,   96,   96,   96,
 /*  1590 */    96,   96,   23,   24,   25,    1,   96,   96,   96,   96,
 /*  1600 */    96,   96,   96,   96,   96,   23,   24,   25,    1,   96,
 /*  1610 */    96,   96,   96,   96,   96,   96,   96,   23,   24,   25,
 /*  1620 */     1,   96,   96,   96,   96,   96,   96,   96,   96,   96,
 /*  1630 */    23,   24,   25,    1,   96,   96,   96,   96,   96,   96,
 /*  1640 */    96,   96,   23,   24,   25,    1,   96,   96,   96,   96,
 /*  1650 */    96,   96,   96,   96,   96,   23,   24,   25,    1,   96,
 /*  1660 */    96,   96,   96,   96,   96,   96,   96,   23,   24,   25,
 /*  1670 */    96,   96,   96,   96,   96,   96,   96,   96,   96,   96,
 /*  1680 */    23,   24,   25,
);
    const YY_SHIFT_USE_DFLT = -38;
    const YY_SHIFT_MAX = 197;
    static public $yy_shift_ofst = array(
 /*     0 */   -38,  187,  159,  131,   -8,   86,   58,  562,  512,  439,
 /*    10 */   411,  355,  327,  299,  243,  537,  271,  383,  467,  637,
 /*    20 */   587,  612,  215,  682,  765,  765,  765,  765,  765,  765,
 /*    30 */   765,  765,  765,  765,  765,  765,  765,  765, 1186, 1048,
 /*    40 */  1048, 1048, 1048,  865,  998,  956,  919,  751,  807,  836,
 /*    50 */   891, 1012, 1012, 1012, 1012, 1012,  738,  738,  738,  793,
 /*    60 */   793,  793, 1094, 1094,  930, 1094, 1094, 1094, 1094, 1094,
 /*    70 */  1094, 1094, 1094, 1094, 1094, 1094, 1094, 1594, 1644, 1607,
 /*    80 */  1657, 1632, 1619, 1469, 1582,  886, 1366, 1377, 1438, 1444,
 /*    90 */  1457,  788, 1482, 1494, 1507, 1519, 1532, 1544, 1557, 1569,
 /*   100 */   625,  -22,  -38,  -38,  -38,  -38,  -38,  -38,  -38,  -38,
 /*   110 */   -38,  -38,  -38,  -38,  -38,  -38,  -38,  -38,  -38,  -38,
 /*   120 */   -38,  -38,  -38,  -38,   41,  135,   -3,   60,  516,  516,
 /*   130 */   685,  729,  744,  744,  756, 1047,  804,  225,  781,   76,
 /*   140 */    44,   78,   63,  773,  191,   49,  169,  146,  144,  101,
 /*   150 */   136,  129,  -25,   96,   73,   71,  -37,    7,    2,  173,
 /*   160 */   141,  192,  160,  230,  297,  304,  250,  137,  233,  196,
 /*   170 */   309,  316,  323,  332,  265,  337,  341,  312,  248,  286,
 /*   180 */   213,  220,  228,  154,  232,  253,  260,  269,  281,  205,
 /*   190 */   185,  276,  257,  197,  137,  202,  288,  264,
);
    const YY_REDUCE_USE_DFLT = -1;
    const YY_REDUCE_MAX = 123;
    static public $yy_reduce_ofst = array(
 /*     0 */    59,  921,  921,  921,  921,  921,  921,  921,  921,  921,
 /*    10 */   921,  921,  921,  921,  921,  921,  921,  921,  921,  921,
 /*    20 */   921,  921,  921,  921, 1027, 1219, 1193, 1206,  945, 1165,
 /*    30 */  1105, 1077, 1000, 1044, 1062, 1092, 1120, 1133, 1178, 1236,
 /*    40 */  1262, 1249, 1277,  821,  760,  844, 1293, 1320, 1320, 1320,
 /*    50 */  1320, 1361, 1357, 1343, 1325, 1300, 1150,  962, 1371, 1226,
 /*    60 */   924,  871,   17,   90,  397,  369,  342,  313,  229,  285,
 /*    70 */   258,  201,  174,  145,  117,  344,  302,  311,  311,  311,
 /*    80 */   311,  311,  311,  311,  311,  311,  311,  311,  311,  311,
 /*    90 */   311,  311,  311,  311,  311,  311,  311,  311,  311,  311,
 /*   100 */   235,  325,  301,  352,  357,  359,  273,  324,  314,  319,
 /*   110 */   303,  329,  331,  340,  347,  396,  380,  375,  385,  366,
 /*   120 */   398,  387,  384,  403,
);
    static public $yyExpectedTokens = array(
        /* 0 */ array(),
        /* 1 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 45, 46, 47, 48, 49, 50, 51, ),
        /* 2 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 43, 44, 46, 47, 48, 49, 50, 51, ),
        /* 3 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 45, 46, 47, 48, 49, 50, 51, ),
        /* 4 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 45, 46, 47, 48, 49, 50, 51, ),
        /* 5 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 45, 46, 47, 48, 49, 50, 51, ),
        /* 6 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 45, 46, 47, 48, 49, 50, 51, ),
        /* 7 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 8 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 9 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 10 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 11 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 12 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 13 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 14 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 15 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 16 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 17 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 18 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 19 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 20 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 21 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 22 */ array(27, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 23 */ array(27, 29, 30, 32, 34, 35, 36, 37, 39, 40, 44, 46, 47, 48, 49, 50, 51, ),
        /* 24 */ array(2, 15, 31, 32, 34, 49, 53, 54, 55, 56, 58, 64, 66, ),
        /* 25 */ array(2, 15, 31, 32, 34, 49, 53, 54, 55, 56, 58, 64, 66, ),
        /* 26 */ array(2, 15, 31, 32, 34, 49, 53, 54, 55, 56, 58, 64, 66, ),
        /* 27 */ array(2, 15, 31, 32, 34, 49, 53, 54, 55, 56, 58, 64, 66, ),
        /* 28 */ array(2, 15, 31, 32, 34, 49, 53, 54, 55, 56, 58, 64, 66, ),
        /* 29 */ array(2, 15, 31, 32, 34, 49, 53, 54, 55, 56, 58, 64, 66, ),
        /* 30 */ array(2, 15, 31, 32, 34, 49, 53, 54, 55, 56, 58, 64, 66, ),
        /* 31 */ array(2, 15, 31, 32, 34, 49, 53, 54, 55, 56, 58, 64, 66, ),
        /* 32 */ array(2, 15, 31, 32, 34, 49, 53, 54, 55, 56, 58, 64, 66, ),
        /* 33 */ array(2, 15, 31, 32, 34, 49, 53, 54, 55, 56, 58, 64, 66, ),
        /* 34 */ array(2, 15, 31, 32, 34, 49, 53, 54, 55, 56, 58, 64, 66, ),
        /* 35 */ array(2, 15, 31, 32, 34, 49, 53, 54, 55, 56, 58, 64, 66, ),
        /* 36 */ array(2, 15, 31, 32, 34, 49, 53, 54, 55, 56, 58, 64, 66, ),
        /* 37 */ array(2, 15, 31, 32, 34, 49, 53, 54, 55, 56, 58, 64, 66, ),
        /* 38 */ array(15, 31, 32, 34, 49, 55, 56, 64, 66, ),
        /* 39 */ array(15, 31, 32, 34, 49, 53, 54, 55, 56, 64, 66, ),
        /* 40 */ array(15, 31, 32, 34, 49, 53, 54, 55, 56, 64, 66, ),
        /* 41 */ array(15, 31, 32, 34, 49, 53, 54, 55, 56, 64, 66, ),
        /* 42 */ array(15, 31, 32, 34, 49, 53, 54, 55, 56, 64, 66, ),
        /* 43 */ array(15, 28, 31, 32, 33, 34, 49, 53, 54, 55, 56, 64, 66, ),
        /* 44 */ array(15, 28, 31, 32, 34, 49, 53, 54, 55, 56, 64, 66, ),
        /* 45 */ array(15, 28, 31, 32, 34, 49, 53, 54, 55, 56, 64, 66, ),
        /* 46 */ array(15, 31, 32, 34, 49, 53, 54, 55, 56, 57, 64, 66, ),
        /* 47 */ array(15, 28, 31, 32, 33, 34, 41, 49, 53, 54, 55, 56, 64, 66, ),
        /* 48 */ array(15, 28, 31, 32, 34, 41, 49, 53, 54, 55, 56, 64, 66, ),
        /* 49 */ array(15, 28, 31, 32, 34, 41, 49, 53, 54, 55, 56, 64, 66, ),
        /* 50 */ array(15, 31, 32, 34, 41, 49, 53, 54, 55, 56, 57, 64, 66, ),
        /* 51 */ array(15, 31, 32, 34, 49, 53, 54, 55, 56, 64, 66, ),
        /* 52 */ array(15, 31, 32, 34, 49, 53, 54, 55, 56, 64, 66, ),
        /* 53 */ array(15, 31, 32, 34, 49, 53, 54, 55, 56, 64, 66, ),
        /* 54 */ array(15, 31, 32, 34, 49, 53, 54, 55, 56, 64, 66, ),
        /* 55 */ array(15, 31, 32, 34, 49, 53, 54, 55, 56, 64, 66, ),
        /* 56 */ array(31, 32, 34, 49, 55, 56, 64, ),
        /* 57 */ array(31, 32, 34, 49, 55, 56, 64, ),
        /* 58 */ array(31, 32, 34, 49, 55, 56, 64, ),
        /* 59 */ array(15, 31, 32, 34, 49, 64, 66, ),
        /* 60 */ array(15, 31, 32, 34, 49, 64, 66, ),
        /* 61 */ array(15, 31, 32, 34, 49, 64, 66, ),
        /* 62 */ array(31, 32, 34, 49, 64, ),
        /* 63 */ array(31, 32, 34, 49, 64, ),
        /* 64 */ array(28, 31, 32, 34, 49, 64, ),
        /* 65 */ array(31, 32, 34, 49, 64, ),
        /* 66 */ array(31, 32, 34, 49, 64, ),
        /* 67 */ array(31, 32, 34, 49, 64, ),
        /* 68 */ array(31, 32, 34, 49, 64, ),
        /* 69 */ array(31, 32, 34, 49, 64, ),
        /* 70 */ array(31, 32, 34, 49, 64, ),
        /* 71 */ array(31, 32, 34, 49, 64, ),
        /* 72 */ array(31, 32, 34, 49, 64, ),
        /* 73 */ array(31, 32, 34, 49, 64, ),
        /* 74 */ array(31, 32, 34, 49, 64, ),
        /* 75 */ array(31, 32, 34, 49, 64, ),
        /* 76 */ array(31, 32, 34, 49, 64, ),
        /* 77 */ array(1, 23, 24, 25, ),
        /* 78 */ array(1, 23, 24, 25, ),
        /* 79 */ array(1, 23, 24, 25, ),
        /* 80 */ array(1, 23, 24, 25, ),
        /* 81 */ array(1, 23, 24, 25, ),
        /* 82 */ array(1, 23, 24, 25, ),
        /* 83 */ array(1, 23, 24, 25, ),
        /* 84 */ array(1, 23, 24, 25, ),
        /* 85 */ array(1, 23, 24, 25, ),
        /* 86 */ array(1, 23, 24, 25, ),
        /* 87 */ array(1, 23, 24, 25, ),
        /* 88 */ array(1, 23, 24, 25, ),
        /* 89 */ array(1, 23, 24, 25, ),
        /* 90 */ array(1, 23, 24, 25, ),
        /* 91 */ array(1, 23, 24, 25, ),
        /* 92 */ array(1, 23, 24, 25, ),
        /* 93 */ array(1, 23, 24, 25, ),
        /* 94 */ array(1, 23, 24, 25, ),
        /* 95 */ array(1, 23, 24, 25, ),
        /* 96 */ array(1, 23, 24, 25, ),
        /* 97 */ array(1, 23, 24, 25, ),
        /* 98 */ array(1, 23, 24, 25, ),
        /* 99 */ array(1, 23, 24, 25, ),
        /* 100 */ array(15, 28, 66, ),
        /* 101 */ array(55, 56, ),
        /* 102 */ array(),
        /* 103 */ array(),
        /* 104 */ array(),
        /* 105 */ array(),
        /* 106 */ array(),
        /* 107 */ array(),
        /* 108 */ array(),
        /* 109 */ array(),
        /* 110 */ array(),
        /* 111 */ array(),
        /* 112 */ array(),
        /* 113 */ array(),
        /* 114 */ array(),
        /* 115 */ array(),
        /* 116 */ array(),
        /* 117 */ array(),
        /* 118 */ array(),
        /* 119 */ array(),
        /* 120 */ array(),
        /* 121 */ array(),
        /* 122 */ array(),
        /* 123 */ array(),
        /* 124 */ array(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, ),
        /* 125 */ array(3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 57, ),
        /* 126 */ array(3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 28, ),
        /* 127 */ array(3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 26, ),
        /* 128 */ array(3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, ),
        /* 129 */ array(3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, ),
        /* 130 */ array(4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, ),
        /* 131 */ array(5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, ),
        /* 132 */ array(7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, ),
        /* 133 */ array(7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, ),
        /* 134 */ array(17, 18, 19, 20, 21, ),
        /* 135 */ array(58, 59, 60, 61, 62, ),
        /* 136 */ array(22, 28, ),
        /* 137 */ array(28, 42, ),
        /* 138 */ array(22, 28, ),
        /* 139 */ array(6, 65, ),
        /* 140 */ array(22, 52, ),
        /* 141 */ array(13, 41, ),
        /* 142 */ array(20, 21, ),
        /* 143 */ array(22, 28, ),
        /* 144 */ array(13, ),
        /* 145 */ array(65, ),
        /* 146 */ array(28, ),
        /* 147 */ array(28, ),
        /* 148 */ array(28, ),
        /* 149 */ array(28, ),
        /* 150 */ array(28, ),
        /* 151 */ array(28, ),
        /* 152 */ array(28, ),
        /* 153 */ array(28, ),
        /* 154 */ array(28, ),
        /* 155 */ array(28, ),
        /* 156 */ array(57, ),
        /* 157 */ array(28, ),
        /* 158 */ array(28, ),
        /* 159 */ array(28, ),
        /* 160 */ array(28, ),
        /* 161 */ array(28, ),
        /* 162 */ array(55, ),
        /* 163 */ array(28, ),
        /* 164 */ array(28, ),
        /* 165 */ array(28, ),
        /* 166 */ array(63, ),
        /* 167 */ array(22, ),
        /* 168 */ array(66, ),
        /* 169 */ array(33, ),
        /* 170 */ array(28, ),
        /* 171 */ array(28, ),
        /* 172 */ array(28, ),
        /* 173 */ array(28, ),
        /* 174 */ array(6, ),
        /* 175 */ array(28, ),
        /* 176 */ array(28, ),
        /* 177 */ array(28, ),
        /* 178 */ array(28, ),
        /* 179 */ array(28, ),
        /* 180 */ array(28, ),
        /* 181 */ array(28, ),
        /* 182 */ array(28, ),
        /* 183 */ array(33, ),
        /* 184 */ array(28, ),
        /* 185 */ array(28, ),
        /* 186 */ array(28, ),
        /* 187 */ array(28, ),
        /* 188 */ array(28, ),
        /* 189 */ array(38, ),
        /* 190 */ array(28, ),
        /* 191 */ array(28, ),
        /* 192 */ array(28, ),
        /* 193 */ array(28, ),
        /* 194 */ array(22, ),
        /* 195 */ array(28, ),
        /* 196 */ array(28, ),
        /* 197 */ array(22, ),
        /* 198 */ array(),
        /* 199 */ array(),
        /* 200 */ array(),
        /* 201 */ array(),
        /* 202 */ array(),
        /* 203 */ array(),
        /* 204 */ array(),
        /* 205 */ array(),
        /* 206 */ array(),
        /* 207 */ array(),
        /* 208 */ array(),
        /* 209 */ array(),
        /* 210 */ array(),
        /* 211 */ array(),
        /* 212 */ array(),
        /* 213 */ array(),
        /* 214 */ array(),
        /* 215 */ array(),
        /* 216 */ array(),
        /* 217 */ array(),
        /* 218 */ array(),
        /* 219 */ array(),
        /* 220 */ array(),
        /* 221 */ array(),
        /* 222 */ array(),
        /* 223 */ array(),
        /* 224 */ array(),
        /* 225 */ array(),
        /* 226 */ array(),
        /* 227 */ array(),
        /* 228 */ array(),
        /* 229 */ array(),
        /* 230 */ array(),
        /* 231 */ array(),
        /* 232 */ array(),
        /* 233 */ array(),
        /* 234 */ array(),
        /* 235 */ array(),
        /* 236 */ array(),
        /* 237 */ array(),
        /* 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(),
);
    static public $yy_default = array(
 /*     0 */   280,  372,  372,  372,  372,  372,  372,  372,  372,  372,
 /*    10 */   372,  372,  372,  372,  372,  372,  372,  372,  372,  372,
 /*    20 */   372,  372,  372,  372,  372,  372,  372,  372,  372,  372,
 /*    30 */   372,  372,  372,  372,  372,  372,  372,  372,  372,  372,
 /*    40 */   372,  372,  372,  372,  372,  372,  372,  372,  372,  372,
 /*    50 */   372,  372,  372,  372,  372,  372,  372,  372,  372,  372,
 /*    60 */   372,  372,  372,  372,  372,  372,  372,  372,  372,  372,
 /*    70 */   372,  372,  372,  372,  372,  372,  372,  372,  372,  372,
 /*    80 */   372,  372,  372,  372,  372,  372,  372,  372,  372,  372,
 /*    90 */   372,  372,  372,  372,  372,  278,  372,  372,  372,  372,
 /*   100 */   372,  372,  280,  280,  280,  280,  280,  280,  280,  280,
 /*   110 */   280,  280,  280,  280,  280,  280,  280,  280,  280,  280,
 /*   120 */   280,  280,  280,  280,  372,  372,  372,  372,  349,  305,
 /*   130 */   350,  351,  353,  348,  352,  361,  372,  372,  372,  334,
 /*   140 */   372,  372,  354,  372,  372,  372,  372,  372,  372,  372,
 /*   150 */   372,  372,  372,  372,  372,  372,  372,  372,  372,  372,
 /*   160 */   372,  372,  372,  372,  372,  372,  372,  372,  372,  372,
 /*   170 */   372,  372,  372,  372,  334,  372,  372,  372,  372,  372,
 /*   180 */   372,  372,  372,  372,  372,  372,  372,  372,  372,  372,
 /*   190 */   372,  372,  372,  372,  345,  372,  372,  342,  367,  303,
 /*   200 */   317,  357,  281,  335,  358,  306,  333,  336,  327,  307,
 /*   210 */   326,  308,  347,  319,  356,  338,  343,  344,  369,  368,
 /*   220 */   339,  332,  312,  341,  340,  346,  304,  331,  309,  311,
 /*   230 */   355,  285,  365,  282,  366,  290,  286,  287,  322,  315,
 /*   240 */   288,  289,  297,  296,  291,  323,  321,  330,  292,  316,
 /*   250 */   320,  293,  294,  318,  298,  314,  279,  360,  284,  301,
 /*   260 */   370,  283,  295,  329,  310,  371,  328,  364,  337,  359,
 /*   270 */   313,  300,  362,  325,  324,  363,  299,  302,
);
/* 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 = 97;
    const YYSTACKDEPTH = 100;
    const YYNSTATE = 278;
    const YYNRULE = 94;
    const YYERRORSYMBOL = 67;
    const YYERRSYMDT = 'yy0';
    const YYFALLBACK = 0;
    /** The next table maps tokens into fallback tokens.  If a construct
     * like the following:
     * 
     *      %fallback ID X Y Z.
     *
     * appears in the grammer, then ID becomes a fallback token for X, Y,
     * and Z.  Whenever one of the tokens X, Y, or Z is input to the parser
     * but it does not parse, the type of the token is changed to ID and
     * the parse is retried before an error is thrown.
     */
    static public $yyFallback = array(
    );
    /**
     * Turn parser tracing on by giving a stream to which to write the trace
     * and a prompt to preface each trace message.  Tracing is turned off
     * by making either argument NULL 
     *
     * Inputs:
     * 
     * - A stream resource to which trace output should be written.
     *   If NULL, then tracing is turned off.
     * - A prefix string written at the beginning of every
     *   line of trace output.  If NULL, then tracing is
     *   turned off.
     *
     * Outputs:
     * 
     * - None.
     * @param resource
     * @param string
     */
    static function Trace($TraceFILE, $zTracePrompt)
    {
        if (!$TraceFILE) {
            $zTracePrompt = 0;
        } elseif (!$zTracePrompt) {
            $TraceFILE = 0;
        }
        self::$yyTraceFILE = $TraceFILE;
        self::$yyTracePrompt = $zTracePrompt;
    }

    /**
     * Output debug information to output (php://output stream)
     */
    static function PrintTrace()
    {
        self::$yyTraceFILE = fopen('php://output', 'w');
        self::$yyTracePrompt = '';
    }

    /**
     * @var resource|0
     */
    static public $yyTraceFILE;
    /**
     * String to prepend to debug output
     * @var string|0
     */
    static public $yyTracePrompt;
    /**
     * @var int
     */
    public $yyidx = -1;                    /* 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
     */
    static public $yyTokenName = array( 
  '$',             'T_TAG_OPEN',    'T_NOT',         'T_AND',       
  'T_OR',          'T_QUESTION',    'T_COLON',       'T_EQ',        
  'T_NE',          'T_GT',          'T_GE',          'T_LT',        
  'T_LE',          'T_IN',          'T_PLUS',        'T_MINUS',     
  'T_CONCAT',      'T_TIMES',       'T_DIV',         'T_MOD',       
  'T_PIPE',        'T_BITWISE',     'T_FILTER_PIPE',  'T_HTML',      
  'T_COMMENT',     'T_PRINT_OPEN',  'T_PRINT_CLOSE',  'T_EXTENDS',   
  'T_TAG_CLOSE',   'T_INCLUDE',     'T_AUTOESCAPE',  'T_CUSTOM_END',
  'T_CUSTOM_TAG',  'T_AS',          'T_CUSTOM_BLOCK',  'T_SPACEFULL', 
  'T_WITH',        'T_SET',         'T_ASSIGN',      'T_LOAD',      
  'T_FOR',         'T_COMMA',       'T_STEP',        'T_EMPTY',     
  'T_IF',          'T_ELSE',        'T_IFCHANGED',   'T_IFEQUAL',   
  'T_IFNOTEQUAL',  'T_BLOCK',       'T_FILTER',      'T_REGROUP',   
  'T_BY',          'T_TRUE',        'T_FALSE',       'T_STRING',    
  'T_INTL',        'T_RPARENT',     'T_LPARENT',     'T_OBJ',       
  'T_DOT',         'T_CLASS',       'T_BRACKETS_OPEN',  'T_BRACKETS_CLOSE',
  'T_ALPHA',       'T_DOTDOT',      'T_NUMERIC',     'error',       
  'start',         'body',          'code',          'stmts',       
  'expr',          'var_or_string',  'stmt',          'for_stmt',    
  'ifchanged_stmt',  'block_stmt',    'filter_stmt',   'if_stmt',     
  'custom_tag',    'alias',         'ifequal',       'varname',     
  'params',        'regroup',       'string',        'for_def',     
  'filtered_var',  'range',         'numvar',        'fvar_or_string',
  'number',        'varname_args',  'varpart',       'varpart_single',
    );

    /**
     * For tracing reduce actions, the names of all rules are required.
     * @var array
     */
    static public $yyRuleName = array(
 /*   0 */ "start ::= body",
 /*   1 */ "body ::= body code",
 /*   2 */ "body ::=",
 /*   3 */ "code ::= T_TAG_OPEN stmts",
 /*   4 */ "code ::= T_HTML",
 /*   5 */ "code ::= T_COMMENT",
 /*   6 */ "code ::= T_PRINT_OPEN expr T_PRINT_CLOSE",
 /*   7 */ "stmts ::= T_EXTENDS var_or_string T_TAG_CLOSE",
 /*   8 */ "stmts ::= stmt T_TAG_CLOSE",
 /*   9 */ "stmts ::= for_stmt",
 /*  10 */ "stmts ::= ifchanged_stmt",
 /*  11 */ "stmts ::= block_stmt",
 /*  12 */ "stmts ::= filter_stmt",
 /*  13 */ "stmts ::= if_stmt",
 /*  14 */ "stmts ::= T_INCLUDE var_or_string T_TAG_CLOSE",
 /*  15 */ "stmts ::= custom_tag",
 /*  16 */ "stmts ::= alias",
 /*  17 */ "stmts ::= ifequal",
 /*  18 */ "stmts ::= T_AUTOESCAPE varname T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  19 */ "custom_tag ::= T_CUSTOM_TAG T_TAG_CLOSE",
 /*  20 */ "custom_tag ::= T_CUSTOM_TAG T_AS varname T_TAG_CLOSE",
 /*  21 */ "custom_tag ::= T_CUSTOM_TAG params T_TAG_CLOSE",
 /*  22 */ "custom_tag ::= T_CUSTOM_TAG params T_AS varname T_TAG_CLOSE",
 /*  23 */ "custom_tag ::= T_CUSTOM_BLOCK T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  24 */ "custom_tag ::= T_CUSTOM_BLOCK params T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  25 */ "custom_tag ::= T_SPACEFULL T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  26 */ "alias ::= T_WITH varname T_AS varname T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  27 */ "stmt ::= T_SET varname T_ASSIGN expr",
 /*  28 */ "stmt ::= regroup",
 /*  29 */ "stmt ::= T_LOAD string",
 /*  30 */ "for_def ::= T_FOR varname T_IN filtered_var T_TAG_CLOSE",
 /*  31 */ "for_def ::= T_FOR varname T_COMMA varname T_IN filtered_var T_TAG_CLOSE",
 /*  32 */ "for_stmt ::= for_def body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  33 */ "for_stmt ::= T_FOR varname T_IN range T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  34 */ "for_stmt ::= T_FOR varname T_IN range T_STEP numvar T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  35 */ "for_stmt ::= for_def body T_TAG_OPEN T_EMPTY T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  36 */ "if_stmt ::= T_IF expr T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  37 */ "if_stmt ::= T_IF expr T_TAG_CLOSE body T_TAG_OPEN T_ELSE T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  38 */ "ifchanged_stmt ::= T_IFCHANGED T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  39 */ "ifchanged_stmt ::= T_IFCHANGED params T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  40 */ "ifchanged_stmt ::= T_IFCHANGED T_TAG_CLOSE body T_TAG_OPEN T_ELSE T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  41 */ "ifchanged_stmt ::= T_IFCHANGED params T_TAG_CLOSE body T_TAG_OPEN T_ELSE T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  42 */ "ifequal ::= T_IFEQUAL fvar_or_string fvar_or_string T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  43 */ "ifequal ::= T_IFEQUAL fvar_or_string fvar_or_string T_TAG_CLOSE body T_TAG_OPEN T_ELSE T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  44 */ "ifequal ::= T_IFNOTEQUAL fvar_or_string fvar_or_string T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  45 */ "ifequal ::= T_IFNOTEQUAL fvar_or_string fvar_or_string T_TAG_CLOSE body T_TAG_OPEN T_ELSE T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  46 */ "block_stmt ::= T_BLOCK varname T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  47 */ "block_stmt ::= T_BLOCK varname T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END varname T_TAG_CLOSE",
 /*  48 */ "block_stmt ::= T_BLOCK number T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  49 */ "block_stmt ::= T_BLOCK number T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END number T_TAG_CLOSE",
 /*  50 */ "filter_stmt ::= T_FILTER filtered_var T_TAG_CLOSE body T_TAG_OPEN T_CUSTOM_END T_TAG_CLOSE",
 /*  51 */ "regroup ::= T_REGROUP filtered_var T_BY varname T_AS varname",
 /*  52 */ "filtered_var ::= filtered_var T_FILTER_PIPE varname_args",
 /*  53 */ "filtered_var ::= string T_FILTER_PIPE varname_args",
 /*  54 */ "filtered_var ::= varname_args",
 /*  55 */ "varname_args ::= varname T_COLON var_or_string",
 /*  56 */ "varname_args ::= varname",
 /*  57 */ "params ::= params var_or_string",
 /*  58 */ "params ::= params T_COMMA var_or_string",
 /*  59 */ "params ::= var_or_string",
 /*  60 */ "var_or_string ::= varname",
 /*  61 */ "var_or_string ::= number",
 /*  62 */ "var_or_string ::= T_TRUE|T_FALSE",
 /*  63 */ "var_or_string ::= string",
 /*  64 */ "fvar_or_string ::= filtered_var",
 /*  65 */ "fvar_or_string ::= number",
 /*  66 */ "fvar_or_string ::= T_TRUE|T_FALSE",
 /*  67 */ "fvar_or_string ::= string",
 /*  68 */ "string ::= T_STRING",
 /*  69 */ "string ::= T_INTL T_STRING T_RPARENT",
 /*  70 */ "expr ::= expr T_QUESTION expr T_COLON expr",
 /*  71 */ "expr ::= T_NOT expr",
 /*  72 */ "expr ::= expr T_AND expr",
 /*  73 */ "expr ::= expr T_OR expr",
 /*  74 */ "expr ::= expr T_PLUS|T_MINUS|T_CONCAT expr",
 /*  75 */ "expr ::= expr T_EQ|T_NE|T_GT|T_GE|T_LT|T_LE|T_IN expr",
 /*  76 */ "expr ::= expr T_TIMES|T_DIV|T_MOD expr",
 /*  77 */ "expr ::= expr T_BITWISE expr",
 /*  78 */ "expr ::= expr T_PIPE expr",
 /*  79 */ "expr ::= T_LPARENT expr T_RPARENT",
 /*  80 */ "expr ::= fvar_or_string",
 /*  81 */ "varname ::= varpart T_LPARENT T_RPARENT",
 /*  82 */ "varname ::= varpart T_LPARENT params T_RPARENT",
 /*  83 */ "varname ::= varpart",
 /*  84 */ "varpart ::= varpart T_OBJ|T_DOT varpart_single",
 /*  85 */ "varpart ::= varpart T_CLASS varpart_single",
 /*  86 */ "varpart ::= varpart T_BRACKETS_OPEN var_or_string T_BRACKETS_CLOSE",
 /*  87 */ "varpart ::= varpart_single",
 /*  88 */ "varpart_single ::= T_ALPHA|T_BLOCK|T_CUSTOM_TAG|T_CUSTOM_END|T_CUSTOM_BLOCK",
 /*  89 */ "range ::= numvar T_DOTDOT numvar",
 /*  90 */ "numvar ::= number",
 /*  91 */ "numvar ::= varname",
 /*  92 */ "number ::= T_NUMERIC",
 /*  93 */ "number ::= T_MINUS T_NUMERIC",
    );

    /**
     * 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(self::$yyTokenName)) {
            return self::$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 Haanga_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 ' . self::$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 Haanga_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 Haanga_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 " .
                        self::$yyTokenName[$iLookAhead] . " => " .
                        self::$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 Haanga_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",
                    self::$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' => 68, 'rhs' => 1 ),
  array( 'lhs' => 69, 'rhs' => 2 ),
  array( 'lhs' => 69, 'rhs' => 0 ),
  array( 'lhs' => 70, 'rhs' => 2 ),
  array( 'lhs' => 70, 'rhs' => 1 ),
  array( 'lhs' => 70, 'rhs' => 1 ),
  array( 'lhs' => 70, 'rhs' => 3 ),
  array( 'lhs' => 71, 'rhs' => 3 ),
  array( 'lhs' => 71, 'rhs' => 2 ),
  array( 'lhs' => 71, 'rhs' => 1 ),
  array( 'lhs' => 71, 'rhs' => 1 ),
  array( 'lhs' => 71, 'rhs' => 1 ),
  array( 'lhs' => 71, 'rhs' => 1 ),
  array( 'lhs' => 71, 'rhs' => 1 ),
  array( 'lhs' => 71, 'rhs' => 3 ),
  array( 'lhs' => 71, 'rhs' => 1 ),
  array( 'lhs' => 71, 'rhs' => 1 ),
  array( 'lhs' => 71, 'rhs' => 1 ),
  array( 'lhs' => 71, 'rhs' => 7 ),
  array( 'lhs' => 80, 'rhs' => 2 ),
  array( 'lhs' => 80, 'rhs' => 4 ),
  array( 'lhs' => 80, 'rhs' => 3 ),
  array( 'lhs' => 80, 'rhs' => 5 ),
  array( 'lhs' => 80, 'rhs' => 6 ),
  array( 'lhs' => 80, 'rhs' => 7 ),
  array( 'lhs' => 80, 'rhs' => 6 ),
  array( 'lhs' => 81, 'rhs' => 9 ),
  array( 'lhs' => 74, 'rhs' => 4 ),
  array( 'lhs' => 74, 'rhs' => 1 ),
  array( 'lhs' => 74, 'rhs' => 2 ),
  array( 'lhs' => 87, 'rhs' => 5 ),
  array( 'lhs' => 87, 'rhs' => 7 ),
  array( 'lhs' => 75, 'rhs' => 5 ),
  array( 'lhs' => 75, 'rhs' => 9 ),
  array( 'lhs' => 75, 'rhs' => 11 ),
  array( 'lhs' => 75, 'rhs' => 9 ),
  array( 'lhs' => 79, 'rhs' => 7 ),
  array( 'lhs' => 79, 'rhs' => 11 ),
  array( 'lhs' => 76, 'rhs' => 6 ),
  array( 'lhs' => 76, 'rhs' => 7 ),
  array( 'lhs' => 76, 'rhs' => 10 ),
  array( 'lhs' => 76, 'rhs' => 11 ),
  array( 'lhs' => 82, 'rhs' => 8 ),
  array( 'lhs' => 82, 'rhs' => 12 ),
  array( 'lhs' => 82, 'rhs' => 8 ),
  array( 'lhs' => 82, 'rhs' => 12 ),
  array( 'lhs' => 77, 'rhs' => 7 ),
  array( 'lhs' => 77, 'rhs' => 8 ),
  array( 'lhs' => 77, 'rhs' => 7 ),
  array( 'lhs' => 77, 'rhs' => 8 ),
  array( 'lhs' => 78, 'rhs' => 7 ),
  array( 'lhs' => 85, 'rhs' => 6 ),
  array( 'lhs' => 88, 'rhs' => 3 ),
  array( 'lhs' => 88, 'rhs' => 3 ),
  array( 'lhs' => 88, 'rhs' => 1 ),
  array( 'lhs' => 93, 'rhs' => 3 ),
  array( 'lhs' => 93, 'rhs' => 1 ),
  array( 'lhs' => 84, 'rhs' => 2 ),
  array( 'lhs' => 84, 'rhs' => 3 ),
  array( 'lhs' => 84, 'rhs' => 1 ),
  array( 'lhs' => 73, 'rhs' => 1 ),
  array( 'lhs' => 73, 'rhs' => 1 ),
  array( 'lhs' => 73, 'rhs' => 1 ),
  array( 'lhs' => 73, 'rhs' => 1 ),
  array( 'lhs' => 91, 'rhs' => 1 ),
  array( 'lhs' => 91, 'rhs' => 1 ),
  array( 'lhs' => 91, 'rhs' => 1 ),
  array( 'lhs' => 91, 'rhs' => 1 ),
  array( 'lhs' => 86, 'rhs' => 1 ),
  array( 'lhs' => 86, 'rhs' => 3 ),
  array( 'lhs' => 72, 'rhs' => 5 ),
  array( 'lhs' => 72, 'rhs' => 2 ),
  array( 'lhs' => 72, 'rhs' => 3 ),
  array( 'lhs' => 72, 'rhs' => 3 ),
  array( 'lhs' => 72, 'rhs' => 3 ),
  array( 'lhs' => 72, 'rhs' => 3 ),
  array( 'lhs' => 72, 'rhs' => 3 ),
  array( 'lhs' => 72, 'rhs' => 3 ),
  array( 'lhs' => 72, 'rhs' => 3 ),
  array( 'lhs' => 72, 'rhs' => 3 ),
  array( 'lhs' => 72, 'rhs' => 1 ),
  array( 'lhs' => 83, 'rhs' => 3 ),
  array( 'lhs' => 83, 'rhs' => 4 ),
  array( 'lhs' => 83, 'rhs' => 1 ),
  array( 'lhs' => 94, 'rhs' => 3 ),
  array( 'lhs' => 94, 'rhs' => 3 ),
  array( 'lhs' => 94, 'rhs' => 4 ),
  array( 'lhs' => 94, 'rhs' => 1 ),
  array( 'lhs' => 95, 'rhs' => 1 ),
  array( 'lhs' => 89, 'rhs' => 3 ),
  array( 'lhs' => 90, 'rhs' => 1 ),
  array( 'lhs' => 90, 'rhs' => 1 ),
  array( 'lhs' => 92, 'rhs' => 1 ),
  array( 'lhs' => 92, 'rhs' => 2 ),
    );

    /**
     * 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,
        1 => 1,
        2 => 2,
        3 => 3,
        4 => 4,
        5 => 5,
        6 => 6,
        7 => 7,
        8 => 8,
        69 => 8,
        9 => 9,
        10 => 9,
        11 => 9,
        12 => 9,
        13 => 9,
        15 => 9,
        16 => 9,
        17 => 9,
        28 => 9,
        56 => 9,
        68 => 9,
        80 => 9,
        87 => 9,
        88 => 9,
        90 => 9,
        92 => 9,
        14 => 14,
        18 => 18,
        19 => 19,
        20 => 20,
        21 => 21,
        22 => 22,
        23 => 23,
        24 => 24,
        25 => 25,
        26 => 26,
        27 => 27,
        29 => 29,
        30 => 30,
        31 => 31,
        32 => 32,
        33 => 33,
        34 => 34,
        35 => 35,
        36 => 36,
        37 => 37,
        38 => 38,
        39 => 39,
        40 => 40,
        41 => 41,
        42 => 42,
        43 => 43,
        44 => 44,
        45 => 45,
        46 => 46,
        47 => 47,
        49 => 47,
        48 => 48,
        50 => 50,
        51 => 51,
        52 => 52,
        58 => 52,
        53 => 53,
        54 => 54,
        59 => 54,
        55 => 55,
        57 => 57,
        60 => 60,
        91 => 60,
        61 => 61,
        65 => 61,
        62 => 62,
        66 => 62,
        63 => 63,
        67 => 63,
        64 => 64,
        70 => 70,
        71 => 71,
        72 => 72,
        73 => 72,
        74 => 72,
        76 => 72,
        75 => 75,
        77 => 77,
        78 => 78,
        79 => 79,
        81 => 81,
        82 => 82,
        83 => 83,
        84 => 84,
        85 => 85,
        86 => 86,
        89 => 89,
        93 => 93,
    );
    /* Beginning here are the reduction cases.  A typical example
    ** follows:
    **  #line <lineno> <grammarfile>
    **   function yy_r0($yymsp){ ... }           // User supplied code
    **  #line <lineno> <thisfile>
    */
#line 81 "lib/Haanga/Compiler/Parser.y"
    function yy_r0(){ $this->body = $this->yystack[$this->yyidx + 0]->minor;     }
#line 1785 "lib/Haanga/Compiler/Parser.php"
#line 83 "lib/Haanga/Compiler/Parser.y"
    function yy_r1(){ $this->_retvalue=$this->yystack[$this->yyidx + -1]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor;     }
#line 1788 "lib/Haanga/Compiler/Parser.php"
#line 84 "lib/Haanga/Compiler/Parser.y"
    function yy_r2(){ $this->_retvalue = array();     }
#line 1791 "lib/Haanga/Compiler/Parser.php"
#line 87 "lib/Haanga/Compiler/Parser.y"
    function yy_r3(){ if (is_array($this->yystack[$this->yyidx + 0]->minor) && count($this->yystack[$this->yyidx + 0]->minor)) $this->yystack[$this->yyidx + 0]->minor['line'] = $this->lex->getLine();  $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;     }
#line 1794 "lib/Haanga/Compiler/Parser.php"
#line 89 "lib/Haanga/Compiler/Parser.y"
    function yy_r4(){
    $this->_retvalue = array('operation' => 'html', 'html' => $this->yystack[$this->yyidx + 0]->minor, 'line' => $this->lex->getLine() ); 
    }
#line 1799 "lib/Haanga/Compiler/Parser.php"
#line 93 "lib/Haanga/Compiler/Parser.y"
    function yy_r5(){
    $this->yystack[$this->yyidx + 0]->minor=rtrim($this->yystack[$this->yyidx + 0]->minor); $this->_retvalue = array('operation' => 'comment', 'comment' => $this->yystack[$this->yyidx + 0]->minor); 
    }
#line 1804 "lib/Haanga/Compiler/Parser.php"
#line 97 "lib/Haanga/Compiler/Parser.y"
    function yy_r6(){
    $this->_retvalue = array('operation' => 'print_var', 'expr' => $this->yystack[$this->yyidx + -1]->minor, 'line' => $this->lex->getLine() ); 
    }
#line 1809 "lib/Haanga/Compiler/Parser.php"
#line 101 "lib/Haanga/Compiler/Parser.y"
    function yy_r7(){ $this->_retvalue = array('operation' => 'base', $this->yystack[$this->yyidx + -1]->minor);     }
#line 1812 "lib/Haanga/Compiler/Parser.php"
#line 102 "lib/Haanga/Compiler/Parser.y"
    function yy_r8(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor;     }
#line 1815 "lib/Haanga/Compiler/Parser.php"
#line 103 "lib/Haanga/Compiler/Parser.y"
    function yy_r9(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor;     }
#line 1818 "lib/Haanga/Compiler/Parser.php"
#line 108 "lib/Haanga/Compiler/Parser.y"
    function yy_r14(){ $this->_retvalue = array('operation' => 'include', $this->yystack[$this->yyidx + -1]->minor);     }
#line 1821 "lib/Haanga/Compiler/Parser.php"
#line 112 "lib/Haanga/Compiler/Parser.y"
    function yy_r18(){ 
    $this->yystack[$this->yyidx + -5]->minor = strtolower($this->yystack[$this->yyidx + -5]->minor);
    if ($this->yystack[$this->yyidx + -5]->minor != 'on' && $this->yystack[$this->yyidx + -5]->minor != 'off') {
        $this->Error("Invalid autoescape param (".$this->yystack[$this->yyidx + -5]->minor."), it must be on or off");
    }
    if ($this->yystack[$this->yyidx + -1]->minor != "endautoescape") {
        $this->Error("Invalid close tag ".$this->yystack[$this->yyidx + -1]->minor.", it must be endautoescape");
    }
    $this->_retvalue = array('operation' => 'autoescape', 'value' => $this->yystack[$this->yyidx + -5]->minor, 'body' => $this->yystack[$this->yyidx + -3]->minor); 
    }
#line 1833 "lib/Haanga/Compiler/Parser.php"
#line 126 "lib/Haanga/Compiler/Parser.y"
    function yy_r19(){
    $this->_retvalue = array('operation' => 'custom_tag', 'name' => $this->yystack[$this->yyidx + -1]->minor, 'list'=>array()); 
    }
#line 1838 "lib/Haanga/Compiler/Parser.php"
#line 129 "lib/Haanga/Compiler/Parser.y"
    function yy_r20(){
    $this->_retvalue = array('operation' => 'custom_tag', 'name' => $this->yystack[$this->yyidx + -3]->minor, 'as' => $this->yystack[$this->yyidx + -1]->minor, 'list'=>array()); 
    }
#line 1843 "lib/Haanga/Compiler/Parser.php"
#line 132 "lib/Haanga/Compiler/Parser.y"
    function yy_r21(){ 
    $this->_retvalue = array('operation' => 'custom_tag', 'name' => $this->yystack[$this->yyidx + -2]->minor, 'list' => $this->yystack[$this->yyidx + -1]->minor); 
    }
#line 1848 "lib/Haanga/Compiler/Parser.php"
#line 135 "lib/Haanga/Compiler/Parser.y"
    function yy_r22(){
    $this->_retvalue = array('operation' => 'custom_tag', 'name' => $this->yystack[$this->yyidx + -4]->minor, 'as' => $this->yystack[$this->yyidx + -1]->minor, 'list' => $this->yystack[$this->yyidx + -3]->minor);
    }
#line 1853 "lib/Haanga/Compiler/Parser.php"
#line 140 "lib/Haanga/Compiler/Parser.y"
    function yy_r23(){
    if ('end'.$this->yystack[$this->yyidx + -5]->minor != $this->yystack[$this->yyidx + -1]->minor) { 
        $this->error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor); 
    } 
    $this->_retvalue = array('operation' => 'custom_tag', 'name' => $this->yystack[$this->yyidx + -5]->minor, 'body' => $this->yystack[$this->yyidx + -3]->minor, 'list' => array());
    }
#line 1861 "lib/Haanga/Compiler/Parser.php"
#line 146 "lib/Haanga/Compiler/Parser.y"
    function yy_r24(){
    if ('end'.$this->yystack[$this->yyidx + -6]->minor != $this->yystack[$this->yyidx + -1]->minor) { 
        $this->error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor); 
    } 
    $this->_retvalue = array('operation' => 'custom_tag', 'name' => $this->yystack[$this->yyidx + -6]->minor, 'body' => $this->yystack[$this->yyidx + -3]->minor, 'list' => $this->yystack[$this->yyidx + -5]->minor);
    }
#line 1869 "lib/Haanga/Compiler/Parser.php"
#line 154 "lib/Haanga/Compiler/Parser.y"
    function yy_r25(){
    if ('endspacefull' != $this->yystack[$this->yyidx + -1]->minor) {
        $this->error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor);
    } 
    $this->_retvalue = array('operation' => 'spacefull', 'body' => $this->yystack[$this->yyidx + -3]->minor);
    }
#line 1877 "lib/Haanga/Compiler/Parser.php"
#line 162 "lib/Haanga/Compiler/Parser.y"
    function yy_r26(){
    if ($this->yystack[$this->yyidx + -1]->minor != "endwith") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endwith");
    }
    $this->_retvalue = array('operation' => 'alias', 'var' => $this->yystack[$this->yyidx + -7]->minor, 'as' => $this->yystack[$this->yyidx + -5]->minor, 'body' => $this->yystack[$this->yyidx + -3]->minor); 
    }
#line 1885 "lib/Haanga/Compiler/Parser.php"
#line 170 "lib/Haanga/Compiler/Parser.y"
    function yy_r27(){ $this->_retvalue = array('operation' => 'set', 'var' => $this->yystack[$this->yyidx + -2]->minor,'expr' => $this->yystack[$this->yyidx + 0]->minor);     }
#line 1888 "lib/Haanga/Compiler/Parser.php"
#line 172 "lib/Haanga/Compiler/Parser.y"
    function yy_r29(){
    if (is_file(dirname($this->file) . '/' . $this->yystack[$this->yyidx + 0]->minor)) {
        $this->yystack[$this->yyidx + 0]->minor = dirname($this->file) . '/' . $this->yystack[$this->yyidx + 0]->minor;
    } else if (is_file(getcwd() . '/' . $this->yystack[$this->yyidx + 0]->minor)) {
        $this->yystack[$this->yyidx + 0]->minor = getcwd() . '/' . $this->yystack[$this->yyidx + 0]->minor;
    }
    if (!is_file($this->yystack[$this->yyidx + 0]->minor) || !Haanga_Compiler::getOption('enable_load')) {
        $this->error($this->yystack[$this->yyidx + 0]->minor." is not a valid file"); 
    } 
    require_once $this->yystack[$this->yyidx + 0]->minor;
    }
#line 1901 "lib/Haanga/Compiler/Parser.php"
#line 186 "lib/Haanga/Compiler/Parser.y"
    function yy_r30(){
    $var = $this->compiler->get_context($this->yystack[$this->yyidx + -1]->minor[0]);
    if (is_array($var) || $var instanceof Iterator) {
        /* let's check if it is an object or array */
        $this->compiler->set_context($this->yystack[$this->yyidx + -3]->minor, current($var));
    }
    $this->_retvalue = array('operation' => 'loop', 'variable' => $this->yystack[$this->yyidx + -3]->minor, 'index' => NULL, 'array' => $this->yystack[$this->yyidx + -1]->minor);
    }
#line 1911 "lib/Haanga/Compiler/Parser.php"
#line 194 "lib/Haanga/Compiler/Parser.y"
    function yy_r31(){
    $var = $this->compiler->get_context($this->yystack[$this->yyidx + -1]->minor[0]);
    if (is_array($var) || $var instanceof Iterator) {
        /* let's check if it is an object or array */
        $this->compiler->set_context($this->yystack[$this->yyidx + -3]->minor, current($var));
    }
    $this->_retvalue = array('operation' => 'loop', 'variable' => $this->yystack[$this->yyidx + -3]->minor, 'index' => $this->yystack[$this->yyidx + -5]->minor, 'array' => $this->yystack[$this->yyidx + -1]->minor);

    }
#line 1922 "lib/Haanga/Compiler/Parser.php"
#line 204 "lib/Haanga/Compiler/Parser.y"
    function yy_r32(){ 
    if ($this->yystack[$this->yyidx + -1]->minor != "endfor") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endfor");
    }
    $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor;
    $this->_retvalue['body'] = $this->yystack[$this->yyidx + -3]->minor;
    }
#line 1931 "lib/Haanga/Compiler/Parser.php"
#line 212 "lib/Haanga/Compiler/Parser.y"
    function yy_r33(){
    if ($this->yystack[$this->yyidx + -1]->minor != "endfor") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endfor");
    }
    $this->_retvalue = array('operation' => 'loop', 'variable' => $this->yystack[$this->yyidx + -7]->minor, 'range' => $this->yystack[$this->yyidx + -5]->minor, 'body' => $this->yystack[$this->yyidx + -3]->minor, 'variable' => $this->yystack[$this->yyidx + -7]->minor, 'step' => 1);
    }
#line 1939 "lib/Haanga/Compiler/Parser.php"
#line 219 "lib/Haanga/Compiler/Parser.y"
    function yy_r34(){
    if ($this->yystack[$this->yyidx + -1]->minor != "endfor") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endfor");
    }
    $this->_retvalue = array('operation' => 'loop', 'variable' => $this->yystack[$this->yyidx + -9]->minor, 'range' => $this->yystack[$this->yyidx + -7]->minor, 'body' => $this->yystack[$this->yyidx + -3]->minor, 'variable' => $this->yystack[$this->yyidx + -9]->minor, 'step' => $this->yystack[$this->yyidx + -5]->minor);
    }
#line 1947 "lib/Haanga/Compiler/Parser.php"
#line 226 "lib/Haanga/Compiler/Parser.y"
    function yy_r35(){ 
    if ($this->yystack[$this->yyidx + -1]->minor != "endfor") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endfor");
    }
    $this->_retvalue = $this->yystack[$this->yyidx + -8]->minor;
    $this->_retvalue['body']  = $this->yystack[$this->yyidx + -7]->minor;
    $this->_retvalue['empty'] = $this->yystack[$this->yyidx + -3]->minor;
    }
#line 1957 "lib/Haanga/Compiler/Parser.php"
#line 235 "lib/Haanga/Compiler/Parser.y"
    function yy_r36(){
    if ($this->yystack[$this->yyidx + -1]->minor != "endif") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endif");
    }
    $this->_retvalue = array('operation' => 'if', 'expr' => $this->yystack[$this->yyidx + -5]->minor, 'body' => $this->yystack[$this->yyidx + -3]->minor);
    }
#line 1965 "lib/Haanga/Compiler/Parser.php"
#line 241 "lib/Haanga/Compiler/Parser.y"
    function yy_r37(){
    if ($this->yystack[$this->yyidx + -1]->minor != "endif") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endif");
    }
    $this->_retvalue = array('operation' => 'if', 'expr' => $this->yystack[$this->yyidx + -9]->minor, 'body' => $this->yystack[$this->yyidx + -7]->minor, 'else' => $this->yystack[$this->yyidx + -3]->minor);
    }
#line 1973 "lib/Haanga/Compiler/Parser.php"
#line 249 "lib/Haanga/Compiler/Parser.y"
    function yy_r38(){ 
    if ($this->yystack[$this->yyidx + -1]->minor != "endifchanged") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endifchanged");
    }
    $this->_retvalue = array('operation' => 'ifchanged', 'body' => $this->yystack[$this->yyidx + -3]->minor); 
    }
#line 1981 "lib/Haanga/Compiler/Parser.php"
#line 256 "lib/Haanga/Compiler/Parser.y"
    function yy_r39(){ 
    if ($this->yystack[$this->yyidx + -1]->minor != "endifchanged") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endifchanged");
    }
    $this->_retvalue = array('operation' => 'ifchanged', 'body' => $this->yystack[$this->yyidx + -3]->minor, 'check' => $this->yystack[$this->yyidx + -5]->minor);
    }
#line 1989 "lib/Haanga/Compiler/Parser.php"
#line 262 "lib/Haanga/Compiler/Parser.y"
    function yy_r40(){ 
    if ($this->yystack[$this->yyidx + -1]->minor != "endifchanged") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endifchanged");
    }
    $this->_retvalue = array('operation' => 'ifchanged', 'body' => $this->yystack[$this->yyidx + -7]->minor, 'else' => $this->yystack[$this->yyidx + -3]->minor); 
    }
#line 1997 "lib/Haanga/Compiler/Parser.php"
#line 269 "lib/Haanga/Compiler/Parser.y"
    function yy_r41(){ 
    if ($this->yystack[$this->yyidx + -1]->minor != "endifchanged") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endifchanged");
    }
    $this->_retvalue = array('operation' => 'ifchanged', 'body' => $this->yystack[$this->yyidx + -7]->minor, 'check' => $this->yystack[$this->yyidx + -9]->minor, 'else' => $this->yystack[$this->yyidx + -3]->minor);
    }
#line 2005 "lib/Haanga/Compiler/Parser.php"
#line 277 "lib/Haanga/Compiler/Parser.y"
    function yy_r42(){
    if ($this->yystack[$this->yyidx + -1]->minor != "endifequal") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endifequal");
    }
    $this->_retvalue = array('operation' => 'ifequal', 'cmp' => '==', 1 => $this->yystack[$this->yyidx + -6]->minor, 2 => $this->yystack[$this->yyidx + -5]->minor, 'body' => $this->yystack[$this->yyidx + -3]->minor); 
    }
#line 2013 "lib/Haanga/Compiler/Parser.php"
#line 283 "lib/Haanga/Compiler/Parser.y"
    function yy_r43(){
    if ($this->yystack[$this->yyidx + -1]->minor != "endifequal") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endifequal");
    }
    $this->_retvalue = array('operation' => 'ifequal', 'cmp' => '==', 1 => $this->yystack[$this->yyidx + -10]->minor, 2 => $this->yystack[$this->yyidx + -9]->minor, 'body' => $this->yystack[$this->yyidx + -7]->minor, 'else' => $this->yystack[$this->yyidx + -3]->minor); 
    }
#line 2021 "lib/Haanga/Compiler/Parser.php"
#line 289 "lib/Haanga/Compiler/Parser.y"
    function yy_r44(){
    if ($this->yystack[$this->yyidx + -1]->minor != "endifnotequal") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endifnotequal");
    }
    $this->_retvalue = array('operation' => 'ifequal', 'cmp' => '!=', 1 => $this->yystack[$this->yyidx + -6]->minor, 2 => $this->yystack[$this->yyidx + -5]->minor, 'body' => $this->yystack[$this->yyidx + -3]->minor);
    }
#line 2029 "lib/Haanga/Compiler/Parser.php"
#line 295 "lib/Haanga/Compiler/Parser.y"
    function yy_r45(){
    if ($this->yystack[$this->yyidx + -1]->minor != "endifnotequal") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endifnotequal");
    }
    $this->_retvalue = array('operation' => 'ifequal', 'cmp' => '!=', 1 => $this->yystack[$this->yyidx + -10]->minor, 2 => $this->yystack[$this->yyidx + -9]->minor, 'body' => $this->yystack[$this->yyidx + -7]->minor, 'else' => $this->yystack[$this->yyidx + -3]->minor); 
    }
#line 2037 "lib/Haanga/Compiler/Parser.php"
#line 303 "lib/Haanga/Compiler/Parser.y"
    function yy_r46(){ 
    if ($this->yystack[$this->yyidx + -1]->minor != "endblock") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endblock");
    }
    $this->_retvalue = array('operation' => 'block', 'name' => $this->yystack[$this->yyidx + -5]->minor, 'body' => $this->yystack[$this->yyidx + -3]->minor); 
    }
#line 2045 "lib/Haanga/Compiler/Parser.php"
#line 310 "lib/Haanga/Compiler/Parser.y"
    function yy_r47(){
    if ($this->yystack[$this->yyidx + -2]->minor != "endblock") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -2]->minor.", expecting endblock");
    }
    $this->_retvalue = array('operation' => 'block', 'name' => $this->yystack[$this->yyidx + -6]->minor, 'body' => $this->yystack[$this->yyidx + -4]->minor); 
    }
#line 2053 "lib/Haanga/Compiler/Parser.php"
#line 317 "lib/Haanga/Compiler/Parser.y"
    function yy_r48(){
    if ($this->yystack[$this->yyidx + -1]->minor != "endblock") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endblock");
    }
    $this->_retvalue = array('operation' => 'block', 'name' => $this->yystack[$this->yyidx + -5]->minor, 'body' => $this->yystack[$this->yyidx + -3]->minor); 
    }
#line 2061 "lib/Haanga/Compiler/Parser.php"
#line 332 "lib/Haanga/Compiler/Parser.y"
    function yy_r50(){
    if ($this->yystack[$this->yyidx + -1]->minor != "endfilter") {
        $this->Error("Unexpected ".$this->yystack[$this->yyidx + -1]->minor.", expecting endfilter");
    }
    $this->_retvalue = array('operation' => 'filter', 'functions' => $this->yystack[$this->yyidx + -5]->minor, 'body' => $this->yystack[$this->yyidx + -3]->minor);
    }
#line 2069 "lib/Haanga/Compiler/Parser.php"
#line 340 "lib/Haanga/Compiler/Parser.y"
    function yy_r51(){ $this->_retvalue=array('operation' => 'regroup', 'array' => $this->yystack[$this->yyidx + -4]->minor, 'row' => $this->yystack[$this->yyidx + -2]->minor, 'as' => $this->yystack[$this->yyidx + 0]->minor);     }
#line 2072 "lib/Haanga/Compiler/Parser.php"
#line 343 "lib/Haanga/Compiler/Parser.y"
    function yy_r52(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor;     }
#line 2075 "lib/Haanga/Compiler/Parser.php"
#line 344 "lib/Haanga/Compiler/Parser.y"
    function yy_r53(){ $this->_retvalue = array(array('string' => $this->yystack[$this->yyidx + -2]->minor)); $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor;     }
#line 2078 "lib/Haanga/Compiler/Parser.php"
#line 345 "lib/Haanga/Compiler/Parser.y"
    function yy_r54(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor);     }
#line 2081 "lib/Haanga/Compiler/Parser.php"
#line 347 "lib/Haanga/Compiler/Parser.y"
    function yy_r55(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor, 'args'=>array($this->yystack[$this->yyidx + 0]->minor));     }
#line 2084 "lib/Haanga/Compiler/Parser.php"
#line 351 "lib/Haanga/Compiler/Parser.y"
    function yy_r57(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor;     }
#line 2087 "lib/Haanga/Compiler/Parser.php"
#line 357 "lib/Haanga/Compiler/Parser.y"
    function yy_r60(){ $this->_retvalue = array('var' => $this->yystack[$this->yyidx + 0]->minor);     }
#line 2090 "lib/Haanga/Compiler/Parser.php"
#line 358 "lib/Haanga/Compiler/Parser.y"
    function yy_r61(){ $this->_retvalue = array('number' => $this->yystack[$this->yyidx + 0]->minor);     }
#line 2093 "lib/Haanga/Compiler/Parser.php"
#line 359 "lib/Haanga/Compiler/Parser.y"
    function yy_r62(){ $this->_retvalue = trim(@$this->yystack[$this->yyidx + 0]->minor);     }
#line 2096 "lib/Haanga/Compiler/Parser.php"
#line 360 "lib/Haanga/Compiler/Parser.y"
    function yy_r63(){ $this->_retvalue = array('string' => $this->yystack[$this->yyidx + 0]->minor);     }
#line 2099 "lib/Haanga/Compiler/Parser.php"
#line 363 "lib/Haanga/Compiler/Parser.y"
    function yy_r64(){
    $this->_retvalue = array('var_filter' => $this->yystack[$this->yyidx + 0]->minor); 
    }
#line 2104 "lib/Haanga/Compiler/Parser.php"
#line 375 "lib/Haanga/Compiler/Parser.y"
    function yy_r70(){
    $this->_retvalue = array('expr_cond' => $this->yystack[$this->yyidx + -4]->minor, 'true' => $this->yystack[$this->yyidx + -2]->minor, 'false' => $this->yystack[$this->yyidx + 0]->minor);
    }
#line 2109 "lib/Haanga/Compiler/Parser.php"
#line 378 "lib/Haanga/Compiler/Parser.y"
    function yy_r71(){ $this->_retvalue = array('op_expr' => 'not', $this->yystack[$this->yyidx + 0]->minor);     }
#line 2112 "lib/Haanga/Compiler/Parser.php"
#line 379 "lib/Haanga/Compiler/Parser.y"
    function yy_r72(){ $this->_retvalue = array('op_expr' => @$this->yystack[$this->yyidx + -1]->minor, $this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + 0]->minor);     }
#line 2115 "lib/Haanga/Compiler/Parser.php"
#line 382 "lib/Haanga/Compiler/Parser.y"
    function yy_r75(){ $this->_retvalue = array('op_expr' => trim(@$this->yystack[$this->yyidx + -1]->minor), $this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + 0]->minor);     }
#line 2118 "lib/Haanga/Compiler/Parser.php"
#line 384 "lib/Haanga/Compiler/Parser.y"
    function yy_r77(){ $this->_retvalue = array('op_expr' => 'expr', array('op_expr' => @$this->yystack[$this->yyidx + -1]->minor, $this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + 0]->minor));     }
#line 2121 "lib/Haanga/Compiler/Parser.php"
#line 385 "lib/Haanga/Compiler/Parser.y"
    function yy_r78(){ $this->_retvalue = array('op_expr' => 'expr', array('op_expr' => '|', $this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + 0]->minor));     }
#line 2124 "lib/Haanga/Compiler/Parser.php"
#line 386 "lib/Haanga/Compiler/Parser.y"
    function yy_r79(){ $this->_retvalue = array('op_expr' => 'expr', $this->yystack[$this->yyidx + -1]->minor);     }
#line 2127 "lib/Haanga/Compiler/Parser.php"
#line 391 "lib/Haanga/Compiler/Parser.y"
    function yy_r81(){
    $this->_retvalue = hexec($this->yystack[$this->yyidx + -2]->minor)->getArray();
    }
#line 2132 "lib/Haanga/Compiler/Parser.php"
#line 395 "lib/Haanga/Compiler/Parser.y"
    function yy_r82(){
    $tmp  = hcode();
    $args = array_merge(array($this->yystack[$this->yyidx + -3]->minor),  $this->yystack[$this->yyidx + -1]->minor);
    $this->_retvalue =  call_user_func_array(array($tmp, 'exec'), $args);
    }
#line 2139 "lib/Haanga/Compiler/Parser.php"
#line 401 "lib/Haanga/Compiler/Parser.y"
    function yy_r83(){ $this->_retvalue = current($this->compiler->generate_variable_name($this->yystack[$this->yyidx + 0]->minor, false));     }
#line 2142 "lib/Haanga/Compiler/Parser.php"
#line 403 "lib/Haanga/Compiler/Parser.y"
    function yy_r84(){ 
    if (!is_array($this->yystack[$this->yyidx + -2]->minor)) { $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor); } 
    else { $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; }  $this->_retvalue[]=array('object' => $this->yystack[$this->yyidx + 0]->minor);
    }
#line 2148 "lib/Haanga/Compiler/Parser.php"
#line 408 "lib/Haanga/Compiler/Parser.y"
    function yy_r85(){ 
    if (!is_array($this->yystack[$this->yyidx + -2]->minor)) { $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor); } 
    else { $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; }  $this->_retvalue[]=array('class' => '$'.$this->yystack[$this->yyidx + 0]->minor);
    }
#line 2154 "lib/Haanga/Compiler/Parser.php"
#line 413 "lib/Haanga/Compiler/Parser.y"
    function yy_r86(){
    if (!is_array($this->yystack[$this->yyidx + -3]->minor)) { $this->_retvalue = array($this->yystack[$this->yyidx + -3]->minor); } 
    else { $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor; }  $this->_retvalue[]=$this->yystack[$this->yyidx + -1]->minor;
    }
#line 2160 "lib/Haanga/Compiler/Parser.php"
#line 422 "lib/Haanga/Compiler/Parser.y"
    function yy_r89(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + 0]->minor);     }
#line 2163 "lib/Haanga/Compiler/Parser.php"
#line 428 "lib/Haanga/Compiler/Parser.y"
    function yy_r93(){ $this->_retvalue = -1 * ($this->yystack[$this->yyidx + 0]->minor);     }
#line 2166 "lib/Haanga/Compiler/Parser.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 */
        //Haanga_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 Haanga_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 72 "lib/Haanga/Compiler/Parser.y"

    $expect = array();
    foreach ($this->yy_get_expected_tokens($yymajor) as $token) {
        $expect[] = self::$yyTokenName[$token];
    }
    $this->Error('Unexpected ' . $this->tokenName($yymajor) . '(' . $TOKEN. ')');
#line 2286 "lib/Haanga/Compiler/Parser.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 57 "lib/Haanga/Compiler/Parser.y"

#line 2307 "lib/Haanga/Compiler/Parser.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   $yymajor      the token number
     * @param mixed $yytokenvalue the token value
     * @param mixed ...           any extra arguments that should be passed to handlers
     *
     * @return void
     */
    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 Haanga_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,
                self::$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,
                                self::$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);
    }
}
