/* ex: set ro ft=c:
 * !!!!!!!   DO NOT EDIT THIS FILE   !!!!!!!
 *
 * This file is generated automatically from 'compilers/imcc/imcc.y'
 * by tools/build/fixup_gen_file.pl.
 *
 * Any changes made here will be lost!
 *
 */
/* HEADERIZER HFILE: none */
/* HEADERIZER STOP */
/* A Bison parser, made by GNU Bison 2.4.3.  */

/* Skeleton implementation for Bison's Yacc-like parsers in C
   
      Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
   2009, 2010 Free Software Foundation, Inc.
   
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.
   
   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

/* C LALR(1) parser skeleton written by Richard Stallman, by
   simplifying the original so-called "semantic" parser.  */

/* All symbols defined below should begin with yy or YY, to avoid
   infringing on user name space.  This should be done even for local
   variables, as they might otherwise be expanded by user macros.
   There are some unavoidable exceptions within include files to
   define necessary library symbols; they are noted "INFRINGES ON
   USER NAME SPACE" below.  */

/* Identify Bison output.  */
#define YYBISON 1

/* Bison version.  */
#define YYBISON_VERSION "2.4.3"

/* Skeleton name.  */
#define YYSKELETON_NAME "yacc.c"

/* Pure parsers.  */
#define YYPURE 1

/* Push parsers.  */
#define YYPUSH 0

/* Pull parsers.  */
#define YYPULL 1

/* Using locations.  */
#define YYLSP_NEEDED 0



/* Copy the first part of user declarations.  */

/* Line 189 of yacc.c  */
#line 1 "compilers/imcc/imcc.y"

/*
 * imcc.y
 *
 * Intermediate Code Compiler for Parrot.
 *
 * Copyright (C) 2002 Melvin Smith <melvin.smith@mindspring.com>
 * Copyright (C) 2002-2010, Parrot Foundation.
 *
 * Grammar of the PIR language parser.
 *
 * $Id: imcparser.c 49255 2010-09-23 04:02:50Z plobsing $
 *
 */

#include <string.h>
#include <stdio.h>
#include <stdlib.h>

#define _PARSER
#define PARSER_MAIN
#include "imc.h"
#include "parrot/dynext.h"
#include "pmc/pmc_callcontext.h"
#include "pbc.h"
#include "parser.h"
#include "optimizer.h"

/* prevent declarations of malloc() and free() in the generated parser. */
#define YYMALLOC
#define YYFREE(Ptr) do { /* empty */; } while (YYID (0))

#ifndef YYENABLE_NLS
#  define YYENABLE_NLS 0
#endif

#ifndef YYLTYPE_IS_TRIVIAL
#  define YYLTYPE_IS_TRIVIAL 0
#endif

/* HEADERIZER HFILE: compilers/imcc/imc.h */

/* HEADERIZER BEGIN: static */
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will be lost. */

static void add_pcc_named_arg(PARROT_INTERP,
    ARGMOD(SymReg *cur_call),
    ARGMOD(SymReg *name),
    ARGMOD(SymReg *value))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        __attribute__nonnull__(3)
        __attribute__nonnull__(4)
        FUNC_MODIFIES(*cur_call)
        FUNC_MODIFIES(*name)
        FUNC_MODIFIES(*value);

static void add_pcc_named_arg_var(PARROT_INTERP,
    ARGMOD(SymReg *cur_call),
    ARGMOD(SymReg *name),
    ARGMOD(SymReg *value))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        __attribute__nonnull__(3)
        __attribute__nonnull__(4)
        FUNC_MODIFIES(*cur_call)
        FUNC_MODIFIES(*name)
        FUNC_MODIFIES(*value);

static void add_pcc_named_param(PARROT_INTERP,
    ARGMOD(SymReg *cur_call),
    ARGMOD(SymReg *name),
    ARGMOD(SymReg *value))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        __attribute__nonnull__(3)
        __attribute__nonnull__(4)
        FUNC_MODIFIES(*cur_call)
        FUNC_MODIFIES(*name)
        FUNC_MODIFIES(*value);

static void add_pcc_named_result(PARROT_INTERP,
    ARGMOD(SymReg *cur_call),
    ARGMOD(SymReg *name),
    ARGMOD(SymReg *value))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        __attribute__nonnull__(3)
        __attribute__nonnull__(4)
        FUNC_MODIFIES(*cur_call)
        FUNC_MODIFIES(*name)
        FUNC_MODIFIES(*value);

static void add_pcc_named_return(PARROT_INTERP,
    ARGMOD(SymReg *cur_call),
    ARGMOD(SymReg *name),
    ARGMOD(SymReg *value))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        __attribute__nonnull__(3)
        __attribute__nonnull__(4)
        FUNC_MODIFIES(*cur_call)
        FUNC_MODIFIES(*name)
        FUNC_MODIFIES(*value);

static void adv_named_set(PARROT_INTERP, ARGIN(const char *name))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2);

static void adv_named_set_u(PARROT_INTERP, ARGIN(const char *name))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2);

static void begin_return_or_yield(PARROT_INTERP, int yield)
        __attribute__nonnull__(1);

static void clear_state(PARROT_INTERP)
        __attribute__nonnull__(1);

static void do_loadlib(PARROT_INTERP, ARGIN(const char *lib))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2);

PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
static Instruction* func_ins(PARROT_INTERP,
    ARGMOD(IMC_Unit *unit),
    ARGIN(SymReg *lhs),
    ARGIN(const char *op),
    ARGMOD(SymReg **r),
    int n,
    int keyv,
    int emit)
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        __attribute__nonnull__(3)
        __attribute__nonnull__(4)
        __attribute__nonnull__(5)
        FUNC_MODIFIES(*unit)
        FUNC_MODIFIES(*r);

PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
static Instruction * iINDEXFETCH(PARROT_INTERP,
    ARGMOD(IMC_Unit *unit),
    ARGIN(SymReg *r0),
    ARGIN(SymReg *r1),
    ARGIN(SymReg *r2))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        __attribute__nonnull__(3)
        __attribute__nonnull__(4)
        __attribute__nonnull__(5)
        FUNC_MODIFIES(*unit);

PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
static Instruction * iINDEXSET(PARROT_INTERP,
    ARGMOD(IMC_Unit *unit),
    ARGIN(SymReg *r0),
    ARGIN(SymReg *r1),
    ARGIN(SymReg *r2))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        __attribute__nonnull__(3)
        __attribute__nonnull__(4)
        __attribute__nonnull__(5)
        FUNC_MODIFIES(*unit);

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
static Instruction * iLABEL(PARROT_INTERP,
    ARGMOD_NULLOK(IMC_Unit *unit),
    ARGMOD(SymReg *r0))
        __attribute__nonnull__(1)
        __attribute__nonnull__(3)
        FUNC_MODIFIES(*unit)
        FUNC_MODIFIES(*r0);

PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
static const char * inv_op(ARGIN(const char *op))
        __attribute__nonnull__(1);

PARROT_IGNORABLE_RESULT
PARROT_CANNOT_RETURN_NULL
static Instruction * iSUBROUTINE(PARROT_INTERP,
    ARGMOD_NULLOK(IMC_Unit *unit),
    ARGMOD(SymReg *r))
        __attribute__nonnull__(1)
        __attribute__nonnull__(3)
        FUNC_MODIFIES(*unit)
        FUNC_MODIFIES(*r);

PARROT_IGNORABLE_RESULT
PARROT_CAN_RETURN_NULL
static Instruction * MK_I(PARROT_INTERP,
    ARGMOD(IMC_Unit *unit),
    ARGIN(const char *fmt),
    int n,
    ...)
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        __attribute__nonnull__(3)
        FUNC_MODIFIES(*unit);

PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
static Instruction* mk_pmc_const_named(PARROT_INTERP,
    ARGMOD(IMC_Unit *unit),
    ARGIN(const char *name),
    ARGMOD(SymReg *left),
    ARGIN(const char *constant))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        __attribute__nonnull__(3)
        __attribute__nonnull__(4)
        __attribute__nonnull__(5)
        FUNC_MODIFIES(*unit)
        FUNC_MODIFIES(*left);

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
static SymReg * mk_sub_address_fromc(PARROT_INTERP, ARGIN(const char *name))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2);

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
static SymReg * mk_sub_address_u(PARROT_INTERP, ARGIN(const char *name))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2);

static void set_lexical(PARROT_INTERP,
    ARGMOD(SymReg *r),
    ARGMOD(SymReg *name))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        __attribute__nonnull__(3)
        FUNC_MODIFIES(*r)
        FUNC_MODIFIES(*name);

#define ASSERT_ARGS_add_pcc_named_arg __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(cur_call) \
    , PARROT_ASSERT_ARG(name) \
    , PARROT_ASSERT_ARG(value))
#define ASSERT_ARGS_add_pcc_named_arg_var __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(cur_call) \
    , PARROT_ASSERT_ARG(name) \
    , PARROT_ASSERT_ARG(value))
#define ASSERT_ARGS_add_pcc_named_param __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(cur_call) \
    , PARROT_ASSERT_ARG(name) \
    , PARROT_ASSERT_ARG(value))
#define ASSERT_ARGS_add_pcc_named_result __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(cur_call) \
    , PARROT_ASSERT_ARG(name) \
    , PARROT_ASSERT_ARG(value))
#define ASSERT_ARGS_add_pcc_named_return __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(cur_call) \
    , PARROT_ASSERT_ARG(name) \
    , PARROT_ASSERT_ARG(value))
#define ASSERT_ARGS_adv_named_set __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(name))
#define ASSERT_ARGS_adv_named_set_u __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(name))
#define ASSERT_ARGS_begin_return_or_yield __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_clear_state __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_do_loadlib __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(lib))
#define ASSERT_ARGS_func_ins __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(unit) \
    , PARROT_ASSERT_ARG(lhs) \
    , PARROT_ASSERT_ARG(op) \
    , PARROT_ASSERT_ARG(r))
#define ASSERT_ARGS_iINDEXFETCH __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(unit) \
    , PARROT_ASSERT_ARG(r0) \
    , PARROT_ASSERT_ARG(r1) \
    , PARROT_ASSERT_ARG(r2))
#define ASSERT_ARGS_iINDEXSET __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(unit) \
    , PARROT_ASSERT_ARG(r0) \
    , PARROT_ASSERT_ARG(r1) \
    , PARROT_ASSERT_ARG(r2))
#define ASSERT_ARGS_iLABEL __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(r0))
#define ASSERT_ARGS_inv_op __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(op))
#define ASSERT_ARGS_iSUBROUTINE __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(r))
#define ASSERT_ARGS_MK_I __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(unit) \
    , PARROT_ASSERT_ARG(fmt))
#define ASSERT_ARGS_mk_pmc_const_named __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(unit) \
    , PARROT_ASSERT_ARG(name) \
    , PARROT_ASSERT_ARG(left) \
    , PARROT_ASSERT_ARG(constant))
#define ASSERT_ARGS_mk_sub_address_fromc __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(name))
#define ASSERT_ARGS_mk_sub_address_u __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(name))
#define ASSERT_ARGS_set_lexical __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(interp) \
    , PARROT_ASSERT_ARG(r) \
    , PARROT_ASSERT_ARG(name))
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will be lost. */
/* HEADERIZER END: static */


#define YYDEBUG 1
#define YYERROR_VERBOSE 1

/*
 * We use a pure parser with the interpreter as a parameter. However this still
 * doesn't make the parser reentrant, as there are too many globals around.
 */

/*
 * Choosing instructions for Parrot is pretty easy since many are
 * polymorphic.
 */


/*

=over 4

=item C<static Instruction * MK_I(PARROT_INTERP, IMC_Unit *unit, const char
*fmt, int n, ...)>

build and emitb instruction by INS. fmt may contain:

  op %s, %s # comment

or just

  op

NOTE: Most usage of this function is with
IMCC_INFO(interp)->cur_unit, but there are some
exceptions. Thus, we can't easily factorize that piece of
code.

=cut

 */

PARROT_IGNORABLE_RESULT
PARROT_CAN_RETURN_NULL
static Instruction *
MK_I(PARROT_INTERP, ARGMOD(IMC_Unit *unit), ARGIN(const char *fmt), int n, ...)
{
    ASSERT_ARGS(MK_I)
    char opname[64];
    char *p;
    const char *q;
    va_list ap;
    SymReg *r[IMCC_MAX_FIX_REGS];
    int i;

    for (p = opname, q = fmt; *q && *q != ' ';)
        *p++ = *q++;
    *p = '\0';
    if (!*q)
        fmt = NULL;
    else
        fmt = ++q;
#ifdef OPDEBUG
    fprintf(stderr, "op '%s' format '%s' (%d)\n", opname, fmt?:"", n);
#endif
    va_start(ap, n);
    i = 0;
    for (i = 0; i < n; ++i) {
        r[i] = va_arg(ap, SymReg *);
    }
    va_end(ap);
    return INS(interp, unit, opname, fmt, r, n,
               IMCC_INFO(interp)->keyvec, 1);
}

/*

=item C<static Instruction* mk_pmc_const_named(PARROT_INTERP, IMC_Unit *unit,
const char *name, SymReg *left, const char *constant)>

=cut

*/

PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
static Instruction*
mk_pmc_const_named(PARROT_INTERP, ARGMOD(IMC_Unit *unit),
    ARGIN(const char *name), ARGMOD(SymReg *left), ARGIN(const char *constant))
{
    ASSERT_ARGS(mk_pmc_const_named)
    SymReg *rhs;
    SymReg *r[3];
    char   *const_name;
    const int ascii       = (*constant == '\'' || *constant == '"');
    char   *unquoted_name = mem_sys_strdup(name + 1);
    size_t  name_length   = strlen(unquoted_name) - 1;

    unquoted_name[name_length] = 0;

    if (left->type == VTADDRESS) {      /* IDENTIFIER */
        if (IMCC_INFO(interp)->state->pasm_file) {
            IMCC_fataly(interp, EXCEPTION_SYNTAX_ERROR,
                        "Ident as PMC constant",
                        " %s\n", left->name);
        }
        left->type = VTIDENTIFIER;
        left->set = 'P';
    }
    r[0] = left;
    if (ascii) {
        /* strip delimiters */
        const_name                         = mem_sys_strdup(constant + 1);
        const_name[strlen(const_name) - 1] = 0;
    }
    else {
        const_name = mem_sys_strdup(constant);
    }

    if ((strncmp(unquoted_name, "Sub",       name_length) == 0)
    ||  (strncmp(unquoted_name, "Coroutine", name_length) == 0)) {
        rhs = mk_const(interp, const_name, 'p');

        if (!ascii)
            rhs->type |= VT_ENCODED;

        rhs->usage    |= U_FIXUP | U_SUBID_LOOKUP;
    }
    else {
        rhs = mk_const(interp, const_name, 'P');
    }

    r[1]          = rhs;
    rhs->pmc_type = Parrot_pmc_get_type_str(interp,
        Parrot_str_new(interp, unquoted_name, name_length));

    mem_sys_free(unquoted_name);
    mem_sys_free(const_name);

    return INS(interp, unit, "set_p_pc", "", r, 2, 0, 1);
}

/*

=item C<static Instruction* func_ins(PARROT_INTERP, IMC_Unit *unit, SymReg *lhs,
const char *op, SymReg **r, int n, int keyv, int emit)>

=cut

*/

PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
static Instruction*
func_ins(PARROT_INTERP, ARGMOD(IMC_Unit *unit), ARGIN(SymReg *lhs), ARGIN(const char *op),
         ARGMOD(SymReg **r), int n, int keyv, int emit)
{
    ASSERT_ARGS(func_ins)
    int i;
    /* shift regs up by 1 */
    for (i = n - 1; i >= 0; --i)
        r[i+1] = r[i];
    r[0] = lhs;
    /* shift keyvec */
    keyv <<= 1;
    return INS(interp, unit, op, "", r, n+1, keyv, emit);
}

/*

=item C<static void clear_state(PARROT_INTERP)>

=cut

*/

static void
clear_state(PARROT_INTERP)
{
    ASSERT_ARGS(clear_state)
    IMCC_INFO(interp) -> nargs = 0;
    IMCC_INFO(interp) -> keyvec = 0;
}

/*

=item C<Instruction * INS_LABEL(PARROT_INTERP, IMC_Unit *unit, SymReg *r0, int
emit)>

=cut

*/

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
Instruction *
INS_LABEL(PARROT_INTERP, ARGMOD_NULLOK(IMC_Unit *unit), ARGMOD(SymReg *r0), int emit)
{
    ASSERT_ARGS(INS_LABEL)

    Instruction * const ins = _mk_instruction("", "%s:", 1, &r0, 0);
    ins->type               = ITLABEL;
    r0->first_ins           = ins;

    if (emit)
        emitb(interp, unit, ins);

    return ins;
}

/*

=item C<static Instruction * iLABEL(PARROT_INTERP, IMC_Unit *unit, SymReg *r0)>

=cut

*/

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
static Instruction *
iLABEL(PARROT_INTERP, ARGMOD_NULLOK(IMC_Unit *unit), ARGMOD(SymReg *r0))
{
    ASSERT_ARGS(iLABEL)
    Instruction * const i = INS_LABEL(interp, unit, r0, 1);
    i->line               = IMCC_INFO(interp)->line;

    clear_state(interp);
    return i;
}

/*

=item C<static Instruction * iSUBROUTINE(PARROT_INTERP, IMC_Unit *unit, SymReg
*r)>

=cut

*/

PARROT_IGNORABLE_RESULT
PARROT_CANNOT_RETURN_NULL
static Instruction *
iSUBROUTINE(PARROT_INTERP, ARGMOD_NULLOK(IMC_Unit *unit), ARGMOD(SymReg *r))
{
    ASSERT_ARGS(iSUBROUTINE)
    Instruction * const i = iLABEL(interp, unit, r);

    r->type    = (r->type & VT_ENCODED) ? VT_PCC_SUB|VT_ENCODED : VT_PCC_SUB;
    r->pcc_sub = mem_gc_allocate_zeroed_typed(interp, pcc_sub_t);

    IMCC_INFO(interp)->cur_call = r;
    i->line                     = IMCC_INFO(interp)->line;

    add_namespace(interp, unit);
    return i;
}

/*

=item C<static Instruction * iINDEXFETCH(PARROT_INTERP, IMC_Unit *unit, SymReg
*r0, SymReg *r1, SymReg *r2)>

substr or X = P[key]

=cut

*/

PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
static Instruction *
iINDEXFETCH(PARROT_INTERP, ARGMOD(IMC_Unit *unit), ARGIN(SymReg *r0), ARGIN(SymReg *r1),
        ARGIN(SymReg *r2))
{
    ASSERT_ARGS(iINDEXFETCH)
    IMCC_INFO(interp) -> keyvec |= KEY_BIT(2);
    return MK_I(interp, unit, "set %s, %s[%s]", 3, r0, r1, r2);
}

/*

=item C<static Instruction * iINDEXSET(PARROT_INTERP, IMC_Unit *unit, SymReg
*r0, SymReg *r1, SymReg *r2)>

substr or P[key] = X

=cut

*/

PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
static Instruction *
iINDEXSET(PARROT_INTERP, ARGMOD(IMC_Unit *unit), ARGIN(SymReg *r0), ARGIN(SymReg *r1),
        ARGIN(SymReg *r2))
{
    ASSERT_ARGS(iINDEXSET)
    if (r0->set == 'P') {
        IMCC_INFO(interp)->keyvec |= KEY_BIT(1);
        MK_I(interp, unit, "set %s[%s], %s", 3, r0, r1, r2);
    }
    else
        IMCC_fataly(interp, EXCEPTION_SYNTAX_ERROR,
            "unsupported indexed set op\n");

    return NULL;
}

/*

=item C<static const char * inv_op(const char *op)>

=cut

*/

PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
static const char *
inv_op(ARGIN(const char *op))
{
    ASSERT_ARGS(inv_op)
    int n;
    return get_neg_op(op, &n);
}

/*

=item C<Instruction * IMCC_create_itcall_label(PARROT_INTERP)>

=cut

*/

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
Instruction *
IMCC_create_itcall_label(PARROT_INTERP)
{
    ASSERT_ARGS(IMCC_create_itcall_label)
    char         name[128];
    SymReg      *r;
    Instruction *i;

    snprintf(name, sizeof (name), "%cpcc_sub_call_%d", IMCC_INTERNAL_CHAR,
        IMCC_INFO(interp)->cnr++);

    r       = mk_pcc_sub(interp, name, 0);
    i       = iLABEL(interp, IMCC_INFO(interp)->cur_unit, r);
    i->type = ITCALL | ITPCCSUB;

    IMCC_INFO(interp)->cur_call = r;

    return i;
}

/*

=item C<static SymReg * mk_sub_address_fromc(PARROT_INTERP, const char *name)>

=cut

*/

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
static SymReg *
mk_sub_address_fromc(PARROT_INTERP, ARGIN(const char *name))
{
    ASSERT_ARGS(mk_sub_address_fromc)
    /* name is a quoted sub name */
    SymReg *r;
    char   *name_copy;

    /* interpolate only if the first character is a double-quote */
    if (*name == '"') {
        STRING *unescaped = Parrot_str_unescape(interp, name, '"', NULL);
        name_copy         = Parrot_str_to_cstring(interp, unescaped);
    }
    else {
        name_copy = mem_sys_strdup(name);
        name_copy[ strlen(name) - 1 ] = 0;
    }

    r = mk_sub_address(interp, name_copy + 1);
    mem_sys_free(name_copy);

    return r;
}

/*

=item C<static SymReg * mk_sub_address_u(PARROT_INTERP, const char *name)>

=cut

*/

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
static SymReg *
mk_sub_address_u(PARROT_INTERP, ARGIN(const char *name))
{
    ASSERT_ARGS(mk_sub_address_u)
    SymReg * const r = mk_sub_address(interp, name);
    r->type         |= VT_ENCODED;

    return r;
}

/*

=item C<void IMCC_itcall_sub(PARROT_INTERP, SymReg *sub)>

=cut

*/

void
IMCC_itcall_sub(PARROT_INTERP, ARGIN(SymReg *sub))
{
    ASSERT_ARGS(IMCC_itcall_sub)
    IMCC_INFO(interp)->cur_call->pcc_sub->sub = sub;

    if (IMCC_INFO(interp)->cur_obj) {
        if (IMCC_INFO(interp)->cur_obj->set != 'P')
            IMCC_fataly(interp, EXCEPTION_SYNTAX_ERROR, "object isn't a PMC");

        IMCC_INFO(interp)->cur_call->pcc_sub->object =
            IMCC_INFO(interp)->cur_obj;
        IMCC_INFO(interp)->cur_obj = NULL;
    }
}


/*

=item C<static void begin_return_or_yield(PARROT_INTERP, int yield)>

=cut

*/

static void
begin_return_or_yield(PARROT_INTERP, int yield)
{
    ASSERT_ARGS(begin_return_or_yield)
    Instruction *i;
    Instruction * const ins = IMCC_INFO(interp)->cur_unit->instructions;
    char                name[128];

    if (!ins || !ins->symregs[0] || !(ins->symregs[0]->type & VT_PCC_SUB))
        IMCC_fataly(interp, EXCEPTION_SYNTAX_ERROR,
                    "yield or return directive outside pcc subroutine\n");
    ins->symregs[0]->pcc_sub->yield = yield;
    snprintf(name, sizeof (name), yield ? "%cpcc_sub_yield_%d" : "%cpcc_sub_ret_%d",
            IMCC_INTERNAL_CHAR, IMCC_INFO(interp)->cnr++);
    interp->imc_info->sr_return = mk_pcc_sub(interp, name, 0);
    i = iLABEL(interp, IMCC_INFO(interp)->cur_unit, interp->imc_info->sr_return);
    i->type = yield ? ITPCCSUB | ITLABEL | ITPCCYIELD : ITPCCSUB | ITLABEL ;
    interp->imc_info->asm_state = yield ? AsmInYield : AsmInReturn;
}

/*

=item C<static void set_lexical(PARROT_INTERP, SymReg *r, SymReg *name)>

=cut

*/

static void
set_lexical(PARROT_INTERP, ARGMOD(SymReg *r), ARGMOD(SymReg *name))
{
    ASSERT_ARGS(set_lexical)

    r->usage |= U_LEXICAL;

    if (name == r->reg)
        IMCC_fataly(interp, EXCEPTION_SYNTAX_ERROR,
            "register %s already declared as lexical %s", r->name, name->name);

    /* chain all names in r->reg */
    name->reg    = r->reg;
    r->reg       = name;
    name->usage |= U_LEXICAL;
    r->use_count++;
}


/*

=item C<static void add_pcc_named_arg(PARROT_INTERP, SymReg *cur_call, SymReg
*name, SymReg *value)>

=cut

*/

static void
add_pcc_named_arg(PARROT_INTERP,
        ARGMOD(SymReg *cur_call),
        ARGMOD(SymReg *name),
        ARGMOD(SymReg *value))
{
    ASSERT_ARGS(add_pcc_named_arg)
    name->type  |= VT_NAMED;

    add_pcc_arg(interp, cur_call, name);
    add_pcc_arg(interp, cur_call, value);
}

/*

=item C<static void add_pcc_named_arg_var(PARROT_INTERP, SymReg *cur_call,
SymReg *name, SymReg *value)>

=cut

*/

static void
add_pcc_named_arg_var(PARROT_INTERP,
        ARGMOD(SymReg *cur_call),
        ARGMOD(SymReg *name),
        ARGMOD(SymReg *value))
{
    ASSERT_ARGS(add_pcc_named_arg_var)
    name->type |= VT_NAMED;
    add_pcc_arg(interp, cur_call, name);
    add_pcc_arg(interp, cur_call, value);
}

/*

=item C<static void add_pcc_named_result(PARROT_INTERP, SymReg *cur_call, SymReg
*name, SymReg *value)>

=cut

*/

static void
add_pcc_named_result(PARROT_INTERP,
        ARGMOD(SymReg *cur_call),
        ARGMOD(SymReg *name),
        ARGMOD(SymReg *value))
{
    ASSERT_ARGS(add_pcc_named_result)
    name->type         |= VT_NAMED;

    add_pcc_result(interp, cur_call, name);
    add_pcc_result(interp, cur_call, value);
}

/*

=item C<static void add_pcc_named_param(PARROT_INTERP, SymReg *cur_call, SymReg
*name, SymReg *value)>

=cut

*/

static void
add_pcc_named_param(PARROT_INTERP,
        ARGMOD(SymReg *cur_call),
        ARGMOD(SymReg *name),
        ARGMOD(SymReg *value))
{
    ASSERT_ARGS(add_pcc_named_param)
    name->type         |= VT_NAMED;

    add_pcc_arg(interp, cur_call, name);
    add_pcc_arg(interp, cur_call, value);
}

/*

=item C<static void add_pcc_named_return(PARROT_INTERP, SymReg *cur_call, SymReg
*name, SymReg *value)>

=cut

*/

static void
add_pcc_named_return(PARROT_INTERP,
        ARGMOD(SymReg *cur_call),
        ARGMOD(SymReg *name),
        ARGMOD(SymReg *value))
{
    ASSERT_ARGS(add_pcc_named_return)
    name->type         |= VT_NAMED;

    add_pcc_result(interp, cur_call, name);
    add_pcc_result(interp, cur_call, value);
}

/*

=item C<static void adv_named_set(PARROT_INTERP, const char *name)>

Sets the name of the current named argument.

C<adv_named_set_u> is the Unicode version of this function.

=cut

*/

static void
adv_named_set(PARROT_INTERP, ARGIN(const char *name))
{
    ASSERT_ARGS(adv_named_set)
    if (IMCC_INFO(interp)->adv_named_id)
        IMCC_fataly(interp, EXCEPTION_SYNTAX_ERROR,
                    "Named parameter with more than one name.\n");

    IMCC_INFO(interp)->adv_named_id = mk_const(interp, name, 'S');
}

static void
adv_named_set_u(PARROT_INTERP, ARGIN(const char *name))
{
    ASSERT_ARGS(adv_named_set_u)
    if (IMCC_INFO(interp)->adv_named_id)
        IMCC_fataly(interp, EXCEPTION_SYNTAX_ERROR,
                    "Named parameter with more than one name.\n");

    IMCC_INFO(interp)->adv_named_id = mk_const(interp, name, 'U');
}

/*

=item C<static void do_loadlib(PARROT_INTERP, const char *lib)>

=cut

*/

static void
do_loadlib(PARROT_INTERP, ARGIN(const char *lib))
{
    ASSERT_ARGS(do_loadlib)
    STRING * const s       = Parrot_str_unescape(interp, lib + 1, '"', NULL);
    PMC    * const lib_pmc = Parrot_load_lib(interp, s, NULL);
    if (PMC_IS_NULL(lib_pmc) || !VTABLE_get_bool(interp, lib_pmc)) {
        IMCC_fataly(interp, EXCEPTION_LIBRARY_ERROR,
            "loadlib directive could not find library `%S'", s);
    }
    Parrot_register_HLL_lib(interp, s);
}

/* HEADERIZER STOP */



/* Line 189 of yacc.c  */
#line 1058 "compilers/imcc/imcparser.c"

/* Enabling traces.  */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif

/* Enabling verbose error messages.  */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
#endif

/* Enabling the token table.  */
#ifndef YYTOKEN_TABLE
# define YYTOKEN_TABLE 0
#endif


/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     LOW_PREC = 258,
     PARAM = 259,
     SOL = 260,
     HLL = 261,
     TK_LINE = 262,
     TK_FILE = 263,
     GOTO = 264,
     ARG = 265,
     IF = 266,
     UNLESS = 267,
     PNULL = 268,
     SET_RETURN = 269,
     SET_YIELD = 270,
     ADV_FLAT = 271,
     ADV_SLURPY = 272,
     ADV_OPTIONAL = 273,
     ADV_OPT_FLAG = 274,
     ADV_NAMED = 275,
     ADV_ARROW = 276,
     ADV_INVOCANT = 277,
     ADV_CALL_SIG = 278,
     NAMESPACE = 279,
     DOT_METHOD = 280,
     SUB = 281,
     SYM = 282,
     LOCAL = 283,
     LEXICAL = 284,
     CONST = 285,
     ANNOTATE = 286,
     GLOBAL_CONST = 287,
     PLUS_ASSIGN = 288,
     MINUS_ASSIGN = 289,
     MUL_ASSIGN = 290,
     DIV_ASSIGN = 291,
     CONCAT_ASSIGN = 292,
     BAND_ASSIGN = 293,
     BOR_ASSIGN = 294,
     BXOR_ASSIGN = 295,
     FDIV = 296,
     FDIV_ASSIGN = 297,
     MOD_ASSIGN = 298,
     SHR_ASSIGN = 299,
     SHL_ASSIGN = 300,
     SHR_U_ASSIGN = 301,
     SHIFT_LEFT = 302,
     SHIFT_RIGHT = 303,
     INTV = 304,
     FLOATV = 305,
     STRINGV = 306,
     PMCV = 307,
     LOG_XOR = 308,
     RELOP_EQ = 309,
     RELOP_NE = 310,
     RELOP_GT = 311,
     RELOP_GTE = 312,
     RELOP_LT = 313,
     RELOP_LTE = 314,
     RESULT = 315,
     RETURN = 316,
     TAILCALL = 317,
     YIELDT = 318,
     GET_RESULTS = 319,
     POW = 320,
     SHIFT_RIGHT_U = 321,
     LOG_AND = 322,
     LOG_OR = 323,
     COMMA = 324,
     ESUB = 325,
     DOTDOT = 326,
     PCC_BEGIN = 327,
     PCC_END = 328,
     PCC_CALL = 329,
     PCC_SUB = 330,
     PCC_BEGIN_RETURN = 331,
     PCC_END_RETURN = 332,
     PCC_BEGIN_YIELD = 333,
     PCC_END_YIELD = 334,
     NCI_CALL = 335,
     METH_CALL = 336,
     INVOCANT = 337,
     MAIN = 338,
     LOAD = 339,
     INIT = 340,
     IMMEDIATE = 341,
     POSTCOMP = 342,
     METHOD = 343,
     ANON = 344,
     OUTER = 345,
     NEED_LEX = 346,
     MULTI = 347,
     VTABLE_METHOD = 348,
     LOADLIB = 349,
     SUB_INSTANCE_OF = 350,
     SUBID = 351,
     NS_ENTRY = 352,
     UNIQUE_REG = 353,
     LABEL = 354,
     EMIT = 355,
     EOM = 356,
     IREG = 357,
     NREG = 358,
     SREG = 359,
     PREG = 360,
     IDENTIFIER = 361,
     REG = 362,
     MACRO = 363,
     ENDM = 364,
     STRINGC = 365,
     INTC = 366,
     FLOATC = 367,
     USTRINGC = 368,
     PARROT_OP = 369,
     VAR = 370,
     LINECOMMENT = 371,
     FILECOMMENT = 372,
     DOT = 373,
     CONCAT = 374
   };
#endif
/* Tokens.  */
#define LOW_PREC 258
#define PARAM 259
#define SOL 260
#define HLL 261
#define TK_LINE 262
#define TK_FILE 263
#define GOTO 264
#define ARG 265
#define IF 266
#define UNLESS 267
#define PNULL 268
#define SET_RETURN 269
#define SET_YIELD 270
#define ADV_FLAT 271
#define ADV_SLURPY 272
#define ADV_OPTIONAL 273
#define ADV_OPT_FLAG 274
#define ADV_NAMED 275
#define ADV_ARROW 276
#define ADV_INVOCANT 277
#define ADV_CALL_SIG 278
#define NAMESPACE 279
#define DOT_METHOD 280
#define SUB 281
#define SYM 282
#define LOCAL 283
#define LEXICAL 284
#define CONST 285
#define ANNOTATE 286
#define GLOBAL_CONST 287
#define PLUS_ASSIGN 288
#define MINUS_ASSIGN 289
#define MUL_ASSIGN 290
#define DIV_ASSIGN 291
#define CONCAT_ASSIGN 292
#define BAND_ASSIGN 293
#define BOR_ASSIGN 294
#define BXOR_ASSIGN 295
#define FDIV 296
#define FDIV_ASSIGN 297
#define MOD_ASSIGN 298
#define SHR_ASSIGN 299
#define SHL_ASSIGN 300
#define SHR_U_ASSIGN 301
#define SHIFT_LEFT 302
#define SHIFT_RIGHT 303
#define INTV 304
#define FLOATV 305
#define STRINGV 306
#define PMCV 307
#define LOG_XOR 308
#define RELOP_EQ 309
#define RELOP_NE 310
#define RELOP_GT 311
#define RELOP_GTE 312
#define RELOP_LT 313
#define RELOP_LTE 314
#define RESULT 315
#define RETURN 316
#define TAILCALL 317
#define YIELDT 318
#define GET_RESULTS 319
#define POW 320
#define SHIFT_RIGHT_U 321
#define LOG_AND 322
#define LOG_OR 323
#define COMMA 324
#define ESUB 325
#define DOTDOT 326
#define PCC_BEGIN 327
#define PCC_END 328
#define PCC_CALL 329
#define PCC_SUB 330
#define PCC_BEGIN_RETURN 331
#define PCC_END_RETURN 332
#define PCC_BEGIN_YIELD 333
#define PCC_END_YIELD 334
#define NCI_CALL 335
#define METH_CALL 336
#define INVOCANT 337
#define MAIN 338
#define LOAD 339
#define INIT 340
#define IMMEDIATE 341
#define POSTCOMP 342
#define METHOD 343
#define ANON 344
#define OUTER 345
#define NEED_LEX 346
#define MULTI 347
#define VTABLE_METHOD 348
#define LOADLIB 349
#define SUB_INSTANCE_OF 350
#define SUBID 351
#define NS_ENTRY 352
#define UNIQUE_REG 353
#define LABEL 354
#define EMIT 355
#define EOM 356
#define IREG 357
#define NREG 358
#define SREG 359
#define PREG 360
#define IDENTIFIER 361
#define REG 362
#define MACRO 363
#define ENDM 364
#define STRINGC 365
#define INTC 366
#define FLOATC 367
#define USTRINGC 368
#define PARROT_OP 369
#define VAR 370
#define LINECOMMENT 371
#define FILECOMMENT 372
#define DOT 373
#define CONCAT 374




#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{

/* Line 214 of yacc.c  */
#line 986 "compilers/imcc/imcc.y"

    IdList * idlist;
    int t;
    char * s;
    SymReg * sr;
    Instruction *i;



/* Line 214 of yacc.c  */
#line 1342 "compilers/imcc/imcparser.c"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif


/* Copy the second part of user declarations.  */


/* Line 264 of yacc.c  */
#line 1354 "compilers/imcc/imcparser.c"

#ifdef short
# undef short
#endif

#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else
typedef unsigned char yytype_uint8;
#endif

#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
#elif (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
typedef signed char yytype_int8;
#else
typedef short int yytype_int8;
#endif

#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short int yytype_uint16;
#endif

#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short int yytype_int16;
#endif

#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
#  define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
#  define YYSIZE_T size_t
# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
# else
#  define YYSIZE_T unsigned int
# endif
#endif

#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)

#ifndef YY_
# if defined YYENABLE_NLS && YYENABLE_NLS
#  if ENABLE_NLS
#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
#   define YY_(msgid) dgettext ("bison-runtime", msgid)
#  endif
# endif
# ifndef YY_
#  define YY_(msgid) msgid
# endif
#endif

/* Suppress unused-variable warnings by "using" E.  */
#if ! defined lint || defined __GNUC__
# define YYUSE(e) ((void) (e))
#else
# define YYUSE(e) /* empty */
#endif

/* Identity function, used to suppress warnings about constant conditions.  */
#ifndef lint
# define YYID(n) (n)
#else
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static int
YYID (int yyi)
#else
static int
YYID (yyi)
    int yyi;
#endif
{
  return yyi;
}
#endif

#if ! defined yyoverflow || YYERROR_VERBOSE

/* The parser invokes alloca or malloc; define the necessary symbols.  */

# ifdef YYSTACK_USE_ALLOCA
#  if YYSTACK_USE_ALLOCA
#   ifdef __GNUC__
#    define YYSTACK_ALLOC __builtin_alloca
#   elif defined __BUILTIN_VA_ARG_INCR
#    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
#   elif defined _AIX
#    define YYSTACK_ALLOC __alloca
#   elif defined _MSC_VER
#    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
#    define alloca _alloca
#   else
#    define YYSTACK_ALLOC alloca
#    if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#     ifndef _STDLIB_H
#      define _STDLIB_H 1
#     endif
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's `empty if-body' warning.  */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
#  ifndef YYSTACK_ALLOC_MAXIMUM
    /* The OS might guarantee only one guard page at the bottom of the stack,
       and a page size can be as small as 4096 bytes.  So we cannot safely
       invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
       to allow for a few compiler-allocated temporary stack slots.  */
#   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
#  endif
# else
#  define YYSTACK_ALLOC YYMALLOC
#  define YYSTACK_FREE YYFREE
#  ifndef YYSTACK_ALLOC_MAXIMUM
#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
#  endif
#  if (defined __cplusplus && ! defined _STDLIB_H \
       && ! ((defined YYMALLOC || defined malloc) \
	     && (defined YYFREE || defined free)))
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   ifndef _STDLIB_H
#    define _STDLIB_H 1
#   endif
#  endif
#  ifndef YYMALLOC
#   define YYMALLOC malloc
#   if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
#  ifndef YYFREE
#   define YYFREE free
#   if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
void free (void *); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */


#if (! defined yyoverflow \
     && (! defined __cplusplus \
	 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
  yytype_int16 yyss_alloc;
  YYSTYPE yyvs_alloc;
};

/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)

/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
# define YYSTACK_BYTES(N) \
     ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

/* Copy COUNT objects from FROM to TO.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if defined __GNUC__ && 1 < __GNUC__
#   define YYCOPY(To, From, Count) \
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
#  else
#   define YYCOPY(To, From, Count)		\
      do					\
	{					\
	  YYSIZE_T yyi;				\
	  for (yyi = 0; yyi < (Count); yyi++)	\
	    (To)[yyi] = (From)[yyi];		\
	}					\
      while (YYID (0))
#  endif
# endif

/* Relocate STACK from its old location to the new one.  The
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   elements in the stack, and YYPTR gives the new location of the
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  */
# define YYSTACK_RELOCATE(Stack_alloc, Stack)				\
    do									\
      {									\
	YYSIZE_T yynewbytes;						\
	YYCOPY (&yyptr->Stack_alloc, Stack, yysize);			\
	Stack = &yyptr->Stack_alloc;					\
	yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
	yyptr += yynewbytes / sizeof (*yyptr);				\
      }									\
    while (YYID (0))

#endif

/* YYFINAL -- State number of the termination state.  */
#define YYFINAL  31
/* YYLAST -- Last index in YYTABLE.  */
#define YYLAST   664

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  136
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  128
/* YYNRULES -- Number of rules.  */
#define YYNRULES  340
/* YYNRULES -- Number of states.  */
#define YYNSTATES  540

/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
#define YYUNDEFTOK  2
#define YYMAXUTOK   374

#define YYTRANSLATE(YYX)						\
  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
static const yytype_uint8 yytranslate[] =
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       4,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,   127,     2,     2,     2,   133,   134,     2,
     125,   126,   131,   130,     2,   129,     2,   132,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,   124,
       2,   121,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,   122,     2,   123,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,   135,     2,   128,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     5,
       6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
      16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
      26,    27,    28,    29,    30,    31,    32,    33,    34,    35,
      36,    37,    38,    39,    40,    41,    42,    43,    44,    45,
      46,    47,    48,    49,    50,    51,    52,    53,    54,    55,
      56,    57,    58,    59,    60,    61,    62,    63,    64,    65,
      66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
      76,    77,    78,    79,    80,    81,    82,    83,    84,    85,
      86,    87,    88,    89,    90,    91,    92,    93,    94,    95,
      96,    97,    98,    99,   100,   101,   102,   103,   104,   105,
     106,   107,   108,   109,   110,   111,   112,   113,   114,   115,
     116,   117,   118,   119,   120
};

#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
static const yytype_uint16 yyprhs[] =
{
       0,     0,     3,     5,     7,    10,    12,    14,    16,    18,
      21,    23,    25,    27,    30,    34,    40,    44,    49,    52,
      53,    60,    61,    68,    70,    72,    74,    77,    81,    84,
      86,    88,    90,    92,    94,    95,    99,   100,   105,   108,
     113,   114,   116,   117,   122,   123,   125,   129,   133,   136,
     137,   140,   142,   146,   147,   148,   149,   160,   161,   164,
     168,   169,   173,   177,   182,   187,   192,   194,   199,   201,
     206,   208,   213,   218,   220,   225,   226,   230,   232,   234,
     236,   238,   240,   242,   244,   248,   249,   251,   252,   262,
     263,   266,   267,   271,   272,   274,   276,   279,   281,   283,
     285,   287,   289,   291,   293,   295,   297,   299,   301,   303,
     305,   307,   313,   317,   321,   325,   329,   335,   341,   342,
     346,   349,   350,   354,   358,   359,   364,   365,   368,   370,
     372,   374,   376,   381,   386,   388,   390,   391,   397,   399,
     400,   406,   407,   410,   414,   415,   418,   422,   426,   430,
     431,   437,   439,   441,   442,   444,   448,   452,   458,   460,
     463,   464,   467,   470,   472,   474,   476,   478,   479,   481,
     484,   486,   488,   492,   495,   497,   501,   504,   505,   507,
     509,   511,   512,   517,   522,   527,   528,   535,   537,   538,
     545,   548,   551,   554,   557,   559,   561,   563,   565,   566,
     568,   570,   572,   574,   578,   583,   589,   596,   603,   607,
     608,   618,   620,   622,   624,   628,   630,   632,   634,   636,
     638,   640,   642,   644,   646,   648,   650,   652,   654,   656,
     658,   660,   662,   664,   666,   668,   670,   672,   674,   676,
     678,   680,   681,   687,   691,   693,   695,   697,   699,   701,
     703,   705,   707,   709,   711,   713,   715,   717,   722,   724,
     726,   728,   730,   734,   738,   742,   746,   747,   753,   754,
     758,   760,   766,   770,   774,   777,   778,   781,   783,   785,
     787,   792,   797,   800,   804,   810,   812,   816,   817,   819,
     821,   828,   834,   839,   844,   851,   857,   859,   861,   863,
     865,   867,   869,   871,   873,   875,   877,   878,   880,   884,
     886,   888,   893,   897,   899,   901,   903,   905,   907,   909,
     911,   913,   915,   917,   919,   920,   923,   924,   927,   929,
     933,   935,   937,   939,   941,   943,   945,   947,   949,   951,
     953
};

/* YYRHS -- A `-1'-separated list of the rules' RHS.  */
static const yytype_int16 yyrhs[] =
{
     137,     0,    -1,   138,    -1,   139,    -1,   138,   139,    -1,
     158,    -1,   144,    -1,   163,    -1,   155,    -1,   109,     4,
      -1,   140,    -1,   141,    -1,     4,    -1,   143,     4,    -1,
      95,   111,     4,    -1,     8,   112,    70,   111,     4,    -1,
       9,   111,     4,    -1,    32,   111,    70,   263,    -1,     7,
     111,    -1,    -1,    31,   145,   222,   107,   121,   263,    -1,
      -1,    31,   147,   111,   253,   121,   148,    -1,   111,    -1,
     114,    -1,   150,    -1,   149,   150,    -1,   211,   151,     4,
      -1,   109,     4,    -1,   118,    -1,   117,    -1,   158,    -1,
     146,    -1,   140,    -1,    -1,   152,   115,   154,    -1,    -1,
      76,   153,   185,   100,    -1,    14,   254,    -1,    30,   111,
      70,   108,    -1,    -1,   247,    -1,    -1,   101,   156,   157,
     102,    -1,    -1,   149,    -1,    25,   159,     4,    -1,   122,
     160,   123,    -1,   122,   123,    -1,    -1,   161,   162,    -1,
     262,    -1,   162,   124,   262,    -1,    -1,    -1,    -1,    27,
     164,   250,   165,   185,     4,   166,   167,   180,    71,    -1,
      -1,   167,     4,    -1,   167,   168,     4,    -1,    -1,     5,
     169,   170,    -1,   222,   107,   194,    -1,    93,   125,   178,
     126,    -1,    91,   125,   111,   126,    -1,    91,   125,   107,
     126,    -1,    94,    -1,    94,   125,   111,   126,    -1,    89,
      -1,    89,   125,   148,   126,    -1,    98,    -1,    98,   125,
     148,   126,    -1,    96,   125,   111,   126,    -1,    97,    -1,
      97,   125,   148,   126,    -1,    -1,   178,    70,   179,    -1,
     179,    -1,    50,    -1,    51,    -1,    53,    -1,    52,    -1,
     107,    -1,   111,    -1,   122,   255,   123,    -1,    -1,   208,
      -1,    -1,    73,     4,   182,   189,   184,   188,   183,   191,
      74,    -1,    -1,   213,     4,    -1,    -1,    83,   254,     4,
      -1,    -1,   186,    -1,   187,    -1,   186,   187,    -1,    85,
      -1,    86,    -1,    84,    -1,    87,    -1,    88,    -1,    90,
      -1,    92,    -1,   171,    -1,   172,    -1,   173,    -1,   174,
      -1,   175,    -1,   176,    -1,   177,    -1,    75,   254,    70,
     254,     4,    -1,    75,   254,     4,    -1,    81,   254,     4,
      -1,    82,   246,     4,    -1,    82,   111,     4,    -1,    82,
     246,    70,   254,     4,    -1,    82,   111,    70,   254,     4,
      -1,    -1,   189,   190,     4,    -1,    11,   236,    -1,    -1,
     191,   192,     4,    -1,    61,   246,   194,    -1,    -1,    29,
     193,   222,   216,    -1,    -1,   194,   195,    -1,    18,    -1,
      19,    -1,    20,    -1,    21,    -1,    21,   125,   111,   126,
      -1,    21,   125,   114,   126,    -1,    99,    -1,    24,    -1,
      -1,    77,     4,   197,   200,    78,    -1,   204,    -1,    -1,
      79,     4,   199,   201,    80,    -1,    -1,   200,     4,    -1,
     200,   202,     4,    -1,    -1,   201,     4,    -1,   201,   203,
       4,    -1,    15,   254,   237,    -1,    16,   254,   237,    -1,
      -1,   206,   125,   205,   207,   126,    -1,    62,    -1,    64,
      -1,    -1,   236,    -1,   111,    22,   254,    -1,   207,    70,
     236,    -1,   207,    70,   111,    22,   254,    -1,   210,    -1,
     208,   210,    -1,    -1,   209,   214,    -1,   109,     4,    -1,
     118,    -1,   117,    -1,   141,    -1,   142,    -1,    -1,   212,
      -1,   212,   213,    -1,   213,    -1,   100,    -1,   211,   218,
       4,    -1,     1,     4,    -1,   216,    -1,   215,    70,   216,
      -1,   107,   217,    -1,    -1,    99,    -1,   223,    -1,   241,
      -1,    -1,    29,   219,   222,   215,    -1,    30,   111,    70,
     246,    -1,    30,   114,    70,   246,    -1,    -1,    31,   220,
     222,   107,   121,   263,    -1,   146,    -1,    -1,    33,   221,
     222,   107,   121,   263,    -1,    63,   233,    -1,    10,   252,
      -1,   115,   247,    -1,    14,   254,    -1,   233,    -1,   181,
      -1,   196,    -1,   198,    -1,    -1,    50,    -1,    51,    -1,
      52,    -1,    53,    -1,   246,   121,   254,    -1,   246,   121,
     225,   254,    -1,   246,   121,   254,   226,   254,    -1,   246,
     121,   254,   122,   255,   123,    -1,   246,   122,   255,   123,
     121,   254,    -1,   246,   121,   233,    -1,    -1,   125,   224,
     240,   126,   121,   232,   125,   235,   126,    -1,   227,    -1,
     229,    -1,   231,    -1,   246,   121,    14,    -1,   127,    -1,
     128,    -1,   129,    -1,   129,    -1,   130,    -1,   131,    -1,
     132,    -1,   133,    -1,    42,    -1,    66,    -1,   120,    -1,
      55,    -1,    56,    -1,    57,    -1,    58,    -1,    59,    -1,
      60,    -1,    48,    -1,    49,    -1,    67,    -1,    68,    -1,
      69,    -1,    54,    -1,   134,    -1,   135,    -1,   128,    -1,
      -1,    65,   228,   125,   240,   126,    -1,   246,   230,   254,
      -1,    34,    -1,    35,    -1,    36,    -1,    37,    -1,    44,
      -1,    43,    -1,    38,    -1,    39,    -1,    40,    -1,    41,
      -1,    45,    -1,    46,    -1,    47,    -1,   246,   121,   115,
     154,    -1,   107,    -1,   111,    -1,   114,    -1,   246,    -1,
     246,   119,   251,    -1,   246,   119,   114,    -1,   246,   119,
     111,    -1,   246,   119,   246,    -1,    -1,   232,   234,   125,
     235,   126,    -1,    -1,   235,    70,   236,    -1,   236,    -1,
     235,    70,   111,    22,   254,    -1,   254,    22,   254,    -1,
     111,    22,   254,    -1,   254,   237,    -1,    -1,   237,   238,
      -1,    17,    -1,    21,    -1,    24,    -1,    21,   125,   114,
     126,    -1,    21,   125,   111,   126,    -1,   246,   194,    -1,
     240,    70,   239,    -1,   240,    70,   111,    22,   246,    -1,
     239,    -1,   111,    22,   246,    -1,    -1,   243,    -1,   242,
      -1,    13,   254,   245,   254,    10,   252,    -1,    13,    14,
     254,    10,   252,    -1,    13,   254,   244,   252,    -1,    12,
     254,   244,   252,    -1,    12,   254,   245,   254,    10,   252,
      -1,    12,    14,   254,    10,   252,    -1,    70,    -1,    10,
      -1,    55,    -1,    56,    -1,    57,    -1,    58,    -1,    59,
      -1,    60,    -1,   116,    -1,   261,    -1,    -1,   248,    -1,
     248,    70,   249,    -1,   249,    -1,   253,    -1,   246,   122,
     255,   123,    -1,   122,   257,   123,    -1,   251,    -1,   111,
      -1,   114,    -1,   107,    -1,   115,    -1,   107,    -1,   115,
      -1,   252,    -1,   254,    -1,   246,    -1,   263,    -1,    -1,
     256,   259,    -1,    -1,   258,   259,    -1,   260,    -1,   259,
     124,   260,    -1,   254,    -1,   103,    -1,   104,    -1,   105,
      -1,   106,    -1,   108,    -1,   111,    -1,   114,    -1,   112,
      -1,   113,    -1,   262,    -1
};

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const yytype_uint16 yyrline[] =
{
       0,  1081,  1081,  1085,  1086,  1090,  1091,  1092,  1098,  1104,
    1105,  1106,  1107,  1111,  1112,  1121,  1127,  1135,  1147,  1160,
    1160,  1169,  1169,  1178,  1179,  1183,  1184,  1188,  1189,  1190,
    1191,  1192,  1193,  1194,  1197,  1197,  1206,  1205,  1218,  1222,
    1235,  1239,  1243,  1243,  1255,  1257,  1261,  1276,  1277,  1281,
    1281,  1293,  1294,  1303,  1307,  1311,  1302,  1323,  1324,  1325,
    1338,  1338,  1342,  1367,  1371,  1377,  1386,  1392,  1401,  1407,
    1416,  1422,  1431,  1439,  1444,  1455,  1458,  1463,  1471,  1472,
    1473,  1474,  1475,  1486,  1497,  1500,  1502,  1507,  1506,  1537,
    1538,  1542,  1543,  1547,  1548,  1552,  1553,  1557,  1558,  1559,
    1560,  1561,  1562,  1563,  1564,  1565,  1566,  1567,  1568,  1569,
    1570,  1574,  1579,  1583,  1587,  1591,  1595,  1600,  1609,  1610,
    1622,  1627,  1628,  1636,  1637,  1637,  1649,  1650,  1654,  1655,
    1656,  1657,  1658,  1659,  1660,  1661,  1666,  1666,  1669,  1677,
    1677,  1683,  1684,  1689,  1697,  1698,  1703,  1711,  1715,  1720,
    1719,  1732,  1733,  1737,  1738,  1748,  1753,  1763,  1772,  1773,
    1785,  1789,  1791,  1792,  1793,  1794,  1795,  1799,  1800,  1804,
    1805,  1809,  1820,  1821,  1832,  1839,  1848,  1856,  1858,  1863,
    1864,  1865,  1865,  1878,  1895,  1908,  1908,  1915,  1916,  1916,
    1922,  1928,  1932,  1944,  1945,  1946,  1947,  1948,  1949,  1953,
    1954,  1955,  1956,  1960,  1962,  1964,  1966,  1968,  1971,  1978,
    1977,  1986,  1987,  1988,  1989,  1997,  1998,  1999,  2003,  2004,
    2005,  2006,  2007,  2008,  2009,  2010,  2011,  2012,  2013,  2014,
    2015,  2016,  2017,  2018,  2019,  2020,  2021,  2022,  2023,  2024,
    2025,  2031,  2030,  2042,  2047,  2048,  2049,  2050,  2051,  2052,
    2053,  2054,  2055,  2056,  2057,  2058,  2059,  2064,  2075,  2076,
    2077,  2078,  2084,  2098,  2104,  2110,  2116,  2115,  2124,  2125,
    2135,  2145,  2152,  2157,  2167,  2171,  2172,  2176,  2177,  2178,
    2180,  2181,  2185,  2189,  2199,  2205,  2215,  2220,  2224,  2225,
    2229,  2233,  2237,  2244,  2248,  2252,  2259,  2260,  2264,  2265,
    2266,  2267,  2268,  2269,  2273,  2274,  2278,  2279,  2283,  2284,
    2288,  2289,  2296,  2303,  2304,  2305,  2309,  2310,  2314,  2315,
    2319,  2320,  2324,  2325,  2329,  2329,  2341,  2341,  2353,  2354,
    2362,  2369,  2370,  2371,  2372,  2373,  2377,  2378,  2382,  2383,
    2384
};
#endif

#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
static const char *const yytname[] =
{
  "$end", "error", "$undefined", "LOW_PREC", "'\\n'", "PARAM", "SOL",
  "HLL", "TK_LINE", "TK_FILE", "GOTO", "ARG", "IF", "UNLESS", "PNULL",
  "SET_RETURN", "SET_YIELD", "ADV_FLAT", "ADV_SLURPY", "ADV_OPTIONAL",
  "ADV_OPT_FLAG", "ADV_NAMED", "ADV_ARROW", "ADV_INVOCANT", "ADV_CALL_SIG",
  "NAMESPACE", "DOT_METHOD", "SUB", "SYM", "LOCAL", "LEXICAL", "CONST",
  "ANNOTATE", "GLOBAL_CONST", "PLUS_ASSIGN", "MINUS_ASSIGN", "MUL_ASSIGN",
  "DIV_ASSIGN", "CONCAT_ASSIGN", "BAND_ASSIGN", "BOR_ASSIGN",
  "BXOR_ASSIGN", "FDIV", "FDIV_ASSIGN", "MOD_ASSIGN", "SHR_ASSIGN",
  "SHL_ASSIGN", "SHR_U_ASSIGN", "SHIFT_LEFT", "SHIFT_RIGHT", "INTV",
  "FLOATV", "STRINGV", "PMCV", "LOG_XOR", "RELOP_EQ", "RELOP_NE",
  "RELOP_GT", "RELOP_GTE", "RELOP_LT", "RELOP_LTE", "RESULT", "RETURN",
  "TAILCALL", "YIELDT", "GET_RESULTS", "POW", "SHIFT_RIGHT_U", "LOG_AND",
  "LOG_OR", "COMMA", "ESUB", "DOTDOT", "PCC_BEGIN", "PCC_END", "PCC_CALL",
  "PCC_SUB", "PCC_BEGIN_RETURN", "PCC_END_RETURN", "PCC_BEGIN_YIELD",
  "PCC_END_YIELD", "NCI_CALL", "METH_CALL", "INVOCANT", "MAIN", "LOAD",
  "INIT", "IMMEDIATE", "POSTCOMP", "METHOD", "ANON", "OUTER", "NEED_LEX",
  "MULTI", "VTABLE_METHOD", "LOADLIB", "SUB_INSTANCE_OF", "SUBID",
  "NS_ENTRY", "UNIQUE_REG", "LABEL", "EMIT", "EOM", "IREG", "NREG", "SREG",
  "PREG", "IDENTIFIER", "REG", "MACRO", "ENDM", "STRINGC", "INTC",
  "FLOATC", "USTRINGC", "PARROT_OP", "VAR", "LINECOMMENT", "FILECOMMENT",
  "DOT", "CONCAT", "'='", "'['", "']'", "';'", "'('", "')'", "'!'", "'~'",
  "'-'", "'+'", "'*'", "'/'", "'%'", "'&'", "'|'", "$accept", "program",
  "compilation_units", "compilation_unit", "pragma", "location_directive",
  "annotate_directive", "hll_def", "constdef", "$@1", "pmc_const", "$@2",
  "any_string", "pasmcode", "pasmline", "pasm_inst", "$@3", "$@4",
  "pasm_args", "emit", "$@5", "opt_pasmcode", "class_namespace",
  "maybe_ns", "nslist", "$@6", "_nslist", "sub", "$@7", "$@8", "$@9",
  "sub_params", "sub_param", "$@10", "sub_param_type_def", "multi",
  "outer", "vtable", "method", "ns_entry_name", "instanceof", "subid",
  "multi_types", "multi_type", "sub_body", "pcc_sub_call", "@11",
  "opt_label", "opt_invocant", "sub_proto", "sub_proto_list", "proto",
  "pcc_call", "pcc_args", "pcc_arg", "pcc_results", "pcc_result", "$@12",
  "paramtype_list", "paramtype", "pcc_ret", "$@13", "pcc_yield", "$@14",
  "pcc_returns", "pcc_yields", "pcc_return", "pcc_set_yield",
  "pcc_return_many", "$@15", "return_or_yield", "var_returns",
  "statements", "helper_clear_state", "statement", "labels", "_labels",
  "label", "instruction", "id_list", "id_list_id", "opt_unique_reg",
  "labeled_inst", "$@16", "$@17", "$@18", "type", "assignment", "@19",
  "un_op", "bin_op", "get_results", "@20", "op_assign", "assign_op",
  "func_assign", "the_sub", "sub_call", "@21", "arglist", "arg",
  "argtype_list", "argtype", "result", "targetlist",
  "conditional_statement", "unless_statement", "if_statement",
  "comma_or_goto", "relop", "target", "vars", "_vars", "_var_or_i",
  "sub_label_op_c", "sub_label_op", "label_op", "var_or_i", "var",
  "keylist", "$@22", "keylist_force", "$@23", "_keylist", "key", "reg",
  "stringc", "const", 0
};
#endif

# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
   token YYLEX-NUM.  */
static const yytype_uint16 yytoknum[] =
{
       0,   256,   257,   258,    10,   259,   260,   261,   262,   263,
     264,   265,   266,   267,   268,   269,   270,   271,   272,   273,
     274,   275,   276,   277,   278,   279,   280,   281,   282,   283,
     284,   285,   286,   287,   288,   289,   290,   291,   292,   293,
     294,   295,   296,   297,   298,   299,   300,   301,   302,   303,
     304,   305,   306,   307,   308,   309,   310,   311,   312,   313,
     314,   315,   316,   317,   318,   319,   320,   321,   322,   323,
     324,   325,   326,   327,   328,   329,   330,   331,   332,   333,
     334,   335,   336,   337,   338,   339,   340,   341,   342,   343,
     344,   345,   346,   347,   348,   349,   350,   351,   352,   353,
     354,   355,   356,   357,   358,   359,   360,   361,   362,   363,
     364,   365,   366,   367,   368,   369,   370,   371,   372,   373,
     374,    61,    91,    93,    59,    40,    41,    33,   126,    45,
      43,    42,    47,    37,    38,   124
};
# endif

/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
static const yytype_uint16 yyr1[] =
{
       0,   136,   137,   138,   138,   139,   139,   139,   139,   139,
     139,   139,   139,   140,   140,   141,   141,   142,   143,   145,
     144,   147,   146,   148,   148,   149,   149,   150,   150,   150,
     150,   150,   150,   150,   152,   151,   153,   151,   151,   151,
     151,   154,   156,   155,   157,   157,   158,   159,   159,   161,
     160,   162,   162,   164,   165,   166,   163,   167,   167,   167,
     169,   168,   170,   171,   172,   172,   173,   173,   174,   174,
     175,   175,   176,   177,   177,   178,   178,   178,   179,   179,
     179,   179,   179,   179,   179,   180,   180,   182,   181,   183,
     183,   184,   184,   185,   185,   186,   186,   187,   187,   187,
     187,   187,   187,   187,   187,   187,   187,   187,   187,   187,
     187,   188,   188,   188,   188,   188,   188,   188,   189,   189,
     190,   191,   191,   192,   193,   192,   194,   194,   195,   195,
     195,   195,   195,   195,   195,   195,   197,   196,   196,   199,
     198,   200,   200,   200,   201,   201,   201,   202,   203,   205,
     204,   206,   206,   207,   207,   207,   207,   207,   208,   208,
     209,   210,   210,   210,   210,   210,   210,   211,   211,   212,
     212,   213,   214,   214,   215,   215,   216,   217,   217,   218,
     218,   219,   218,   218,   218,   220,   218,   218,   221,   218,
     218,   218,   218,   218,   218,   218,   218,   218,   218,   222,
     222,   222,   222,   223,   223,   223,   223,   223,   223,   224,
     223,   223,   223,   223,   223,   225,   225,   225,   226,   226,
     226,   226,   226,   226,   226,   226,   226,   226,   226,   226,
     226,   226,   226,   226,   226,   226,   226,   226,   226,   226,
     226,   228,   227,   229,   230,   230,   230,   230,   230,   230,
     230,   230,   230,   230,   230,   230,   230,   231,   232,   232,
     232,   232,   232,   232,   232,   232,   234,   233,   235,   235,
     235,   235,   235,   235,   236,   237,   237,   238,   238,   238,
     238,   238,   239,   240,   240,   240,   240,   240,   241,   241,
     242,   242,   242,   243,   243,   243,   244,   244,   245,   245,
     245,   245,   245,   245,   246,   246,   247,   247,   248,   248,
     249,   249,   249,   250,   250,   250,   251,   251,   252,   252,
     253,   253,   254,   254,   256,   255,   258,   257,   259,   259,
     260,   261,   261,   261,   261,   261,   262,   262,   263,   263,
     263
};

/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
static const yytype_uint8 yyr2[] =
{
       0,     2,     1,     1,     2,     1,     1,     1,     1,     2,
       1,     1,     1,     2,     3,     5,     3,     4,     2,     0,
       6,     0,     6,     1,     1,     1,     2,     3,     2,     1,
       1,     1,     1,     1,     0,     3,     0,     4,     2,     4,
       0,     1,     0,     4,     0,     1,     3,     3,     2,     0,
       2,     1,     3,     0,     0,     0,    10,     0,     2,     3,
       0,     3,     3,     4,     4,     4,     1,     4,     1,     4,
       1,     4,     4,     1,     4,     0,     3,     1,     1,     1,
       1,     1,     1,     1,     3,     0,     1,     0,     9,     0,
       2,     0,     3,     0,     1,     1,     2,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     5,     3,     3,     3,     3,     5,     5,     0,     3,
       2,     0,     3,     3,     0,     4,     0,     2,     1,     1,
       1,     1,     4,     4,     1,     1,     0,     5,     1,     0,
       5,     0,     2,     3,     0,     2,     3,     3,     3,     0,
       5,     1,     1,     0,     1,     3,     3,     5,     1,     2,
       0,     2,     2,     1,     1,     1,     1,     0,     1,     2,
       1,     1,     3,     2,     1,     3,     2,     0,     1,     1,
       1,     0,     4,     4,     4,     0,     6,     1,     0,     6,
       2,     2,     2,     2,     1,     1,     1,     1,     0,     1,
       1,     1,     1,     3,     4,     5,     6,     6,     3,     0,
       9,     1,     1,     1,     3,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     0,     5,     3,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     4,     1,     1,
       1,     1,     3,     3,     3,     3,     0,     5,     0,     3,
       1,     5,     3,     3,     2,     0,     2,     1,     1,     1,
       4,     4,     2,     3,     5,     1,     3,     0,     1,     1,
       6,     5,     4,     4,     6,     5,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     0,     1,     3,     1,
       1,     4,     3,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     0,     2,     0,     2,     1,     3,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1
};

/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
   STATE-NUM when YYTABLE doesn't specify something else to do.  Zero
   means the default is an error.  */
static const yytype_uint16 yydefact[] =
{
       0,    12,     0,     0,     0,     0,    53,    19,     0,    42,
       0,     0,     2,     3,    10,    11,     0,     6,     8,     5,
       7,    18,     0,     0,    49,     0,     0,     0,     0,   167,
       9,     1,     4,    13,     0,    16,    48,     0,     0,    46,
     316,   314,   315,   317,    54,   313,   199,   200,   201,   202,
       0,    14,    21,   171,     0,    30,    29,    33,    32,   167,
      25,     0,    31,    34,   168,   170,     0,    47,   336,   337,
      50,    51,    93,     0,     0,    28,    26,    43,     0,     0,
      36,     0,     0,   169,    15,     0,    99,    97,    98,   100,
     101,    68,   102,     0,   103,     0,    66,     0,    73,    70,
     104,   105,   106,   107,   108,   109,   110,     0,    94,    95,
       0,     0,   331,   332,   333,   334,   335,   338,   339,   304,
     322,    38,   305,   340,   323,     0,    93,    27,   306,    52,
       0,     0,    75,     0,     0,     0,     0,    55,    96,    20,
     318,   319,   320,     0,   321,     0,     0,   326,    35,   322,
      41,   307,   309,   310,    23,    24,     0,     0,     0,    78,
      79,    81,    80,    82,    83,   324,     0,    77,     0,     0,
       0,     0,    57,     0,    39,    37,     0,     0,   324,     0,
      69,    65,    64,     0,     0,     0,    63,    67,    72,    74,
      71,   160,    22,   312,   330,   327,   328,     0,   308,    84,
     325,    76,    58,    60,     0,     0,   164,   163,   165,   166,
       0,     0,   160,     0,   158,     0,   311,     0,     0,   162,
      59,    56,   159,     0,   198,   161,   329,    61,     0,     0,
     173,     0,     0,     0,     0,   181,     0,   185,   188,   151,
       0,   152,   241,     0,     0,     0,   258,   259,   260,   306,
     209,   187,   195,   196,   197,   138,     0,     0,   179,   211,
     212,   213,   266,   194,   180,   289,   288,   261,   126,    17,
     191,     0,     0,     0,     0,   193,     0,     0,     0,     0,
       0,   190,   261,     0,    87,   136,   139,   192,   287,   149,
     172,     0,   244,   245,   246,   247,   250,   251,   252,   253,
     249,   248,   254,   255,   256,     0,     0,   324,     0,    62,
       0,   297,   298,   299,   300,   301,   302,   303,   296,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   287,
     118,   141,   144,     0,   285,     0,   126,   153,   268,   264,
     263,   265,   262,   214,   336,   337,   306,   215,   216,   217,
       0,   208,   322,   203,     0,   243,   128,   129,   130,   131,
     135,   134,   127,     0,   293,     0,     0,   292,     0,   177,
     182,   174,   183,   184,     0,     0,     0,    91,     0,     0,
       0,     0,     0,   282,   336,     0,   154,   275,   336,     0,
     270,   275,   257,   204,   223,   232,   233,   237,   226,   227,
     228,   229,   230,   231,   224,   234,   235,   236,   225,   324,
     240,   218,   219,   220,   221,   222,   238,   239,     0,     0,
       0,   295,     0,   291,     0,   178,   176,     0,     0,     0,
     242,     0,     0,     0,     0,   142,     0,   137,     0,   145,
       0,   140,     0,   286,     0,   283,     0,     0,     0,   150,
     274,     0,     0,   267,     0,     0,   205,     0,     0,     0,
     294,   290,   175,   186,   189,   120,     0,     0,     0,     0,
      89,   119,   275,   143,   275,   146,     0,     0,   155,   336,
     156,   277,   278,   279,   276,   273,   336,   269,   272,   206,
     207,   132,   133,    92,     0,     0,     0,     0,   121,     0,
     147,   148,   284,   268,     0,     0,     0,   112,     0,   113,
     115,     0,   114,     0,     0,    90,     0,   157,     0,     0,
     271,     0,     0,     0,   124,     0,    88,     0,   210,   281,
     280,   111,   117,   116,     0,   126,   122,     0,   123,   125
};

/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
      -1,    11,    12,    13,    14,    15,   209,    16,    17,    27,
      58,    74,   156,    59,    60,    81,    82,   126,   148,    18,
      29,    61,    19,    25,    37,    38,    70,    20,    26,    72,
     172,   191,   210,   217,   227,   100,   101,   102,   103,   104,
     105,   106,   166,   167,   211,   252,   330,   498,   433,   107,
     108,   109,   470,   377,   434,   514,   527,   534,   309,   362,
     253,   331,   254,   332,   378,   379,   438,   442,   255,   337,
     256,   385,   212,   213,   214,    63,    64,    65,   225,   370,
     371,   426,   257,   276,   279,   280,    50,   258,   288,   350,
     418,   259,   283,   260,   308,   261,   262,   263,   291,   389,
     390,   450,   484,   334,   335,   264,   265,   266,   319,   320,
     120,   150,   151,   152,    44,    45,   142,   153,   144,   183,
     184,   176,   177,   195,   196,   122,   123,   124
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -413
static const yytype_int16 yypact[] =
{
     320,  -413,  -102,   -90,   -60,   -61,  -413,  -413,   -39,  -413,
      70,    89,   320,  -413,  -413,  -413,    93,  -413,  -413,  -413,
    -413,  -413,    41,   121,   -30,   135,   -44,   139,   144,    57,
    -413,  -413,  -413,  -413,    50,  -413,  -413,    42,    72,  -413,
    -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,
      65,  -413,  -413,  -413,   172,  -413,  -413,  -413,  -413,   156,
    -413,    75,  -413,    24,    78,  -413,   178,  -413,  -413,  -413,
      60,  -413,   427,    80,    91,  -413,  -413,  -413,   455,    95,
    -413,   208,   103,  -413,  -413,    72,  -413,  -413,  -413,  -413,
    -413,   125,  -413,   137,  -413,   150,   151,   152,   153,   154,
    -413,  -413,  -413,  -413,  -413,  -413,  -413,   233,   427,  -413,
      97,   440,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,
    -413,  -413,  -413,  -413,  -413,   173,   427,  -413,   388,  -413,
     108,   -26,   118,   141,   142,   108,   108,  -413,  -413,  -413,
    -413,  -413,  -413,   159,  -413,   174,   164,  -413,  -413,   161,
    -413,   215,  -413,  -413,  -413,  -413,   160,   167,   168,  -413,
    -413,  -413,  -413,  -413,  -413,  -413,   -53,  -413,   170,   171,
     175,   176,  -413,   108,  -413,  -413,   181,   455,  -413,   388,
    -413,  -413,  -413,   188,   455,   118,  -413,  -413,  -413,  -413,
    -413,    25,  -413,  -413,  -413,   193,  -413,   189,  -413,  -413,
     193,  -413,  -413,  -413,   214,   315,  -413,  -413,  -413,  -413,
     322,   259,    23,   184,  -413,   455,  -413,   139,   267,  -413,
    -413,  -413,  -413,   337,    13,  -413,  -413,  -413,   231,    97,
    -413,   -49,   202,   334,   455,  -413,   112,   235,  -413,  -413,
     228,  -413,  -413,   345,   348,   351,  -413,  -413,  -413,   388,
    -413,  -413,  -413,  -413,  -413,  -413,   232,   352,  -413,  -413,
    -413,  -413,  -413,  -413,  -413,  -413,  -413,   443,  -413,  -413,
    -413,   455,   211,   455,   211,  -413,   139,   290,   291,   139,
     139,  -413,   240,   238,  -413,  -413,  -413,  -413,   128,  -413,
    -413,   239,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,
    -413,  -413,  -413,  -413,  -413,   469,   289,  -413,   455,    -8,
     355,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,   -49,
     455,   356,   -49,   455,   260,   306,   306,   261,   264,   128,
    -413,  -413,  -413,   350,  -413,   -31,  -413,   483,   497,  -413,
    -413,  -413,  -413,  -413,   250,   252,   388,  -413,  -413,  -413,
     455,  -413,    28,   407,   255,  -413,  -413,  -413,  -413,   256,
    -413,  -413,  -413,   -49,  -413,   370,   -49,  -413,   372,   284,
     314,  -413,  -413,  -413,   265,   266,   -22,    -3,    32,     3,
     306,   539,   270,    -8,   363,   -18,  -413,  -413,   366,   -14,
    -413,   376,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,
    -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,
    -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,   455,   285,
     113,  -413,   -49,  -413,   -49,  -413,  -413,   260,    97,    97,
    -413,   455,   455,    69,   404,  -413,   455,  -413,   409,  -413,
     455,  -413,   415,  -413,   398,  -413,   228,   455,   511,  -413,
     143,   455,   525,  -413,   455,   300,  -413,   455,   298,   301,
    -413,  -413,  -413,  -413,  -413,  -413,   428,   455,   455,   548,
      78,  -413,  -413,  -413,  -413,  -413,   306,   309,  -413,   414,
    -413,  -413,   316,  -413,  -413,  -413,   421,  -413,  -413,  -413,
    -413,  -413,  -413,  -413,    14,   447,    31,    33,  -413,   448,
     143,   143,  -413,   497,   455,   127,   455,  -413,   455,  -413,
    -413,   455,  -413,   455,    84,  -413,   -11,  -413,   305,   318,
    -413,   449,   450,   453,  -413,   306,  -413,   454,  -413,  -413,
    -413,  -413,  -413,  -413,   139,  -413,  -413,   260,    -8,  -413
};

/* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -413,  -413,  -413,   456,    -9,  -167,  -413,  -413,  -413,  -413,
     236,  -413,     0,  -413,   400,  -413,  -413,  -413,   123,  -413,
    -413,  -413,    20,  -413,  -413,  -413,  -413,  -413,  -413,  -413,
    -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,
    -413,  -413,  -413,   286,  -413,  -413,  -413,  -413,  -413,   344,
    -413,   364,  -413,  -413,  -413,  -413,  -413,  -413,  -331,  -413,
    -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,  -413,
    -413,  -413,  -413,  -413,   273,   292,  -413,   -63,  -413,  -413,
    -406,  -413,  -413,  -413,  -413,  -413,  -211,  -413,  -413,  -413,
    -413,  -413,  -413,  -413,  -413,  -413,    51,  -199,  -413,    -5,
    -322,  -412,  -413,   126,   177,  -413,  -413,  -413,   234,   248,
    -126,   277,  -413,   330,  -413,   223,  -217,   419,   -78,  -174,
    -413,  -413,  -413,   347,   317,  -413,     2,  -107
};

/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
   positive, shift that token.  If negative, reduce the rule which
   number is the opposite.  If zero, do what YYDEFACT says.
   If YYTABLE_NINF, syntax error.  */
#define YYTABLE_NINF -262
static const yytype_int16 yytable[] =
{
     121,    83,   149,   139,   197,   383,   228,   439,   431,    21,
     356,   357,   358,   359,   270,   386,   360,   185,   507,   440,
      57,   462,    22,   231,   208,   232,   233,   234,   -40,   202,
     203,     3,     4,     3,     4,   510,   435,   512,    78,   381,
      71,   281,   235,   236,   237,   208,   238,   436,   381,    62,
      57,    23,   448,   149,    79,   204,   452,   204,   140,   452,
     500,    24,   501,    40,     2,   324,   141,    41,   327,   328,
      42,    43,    28,   186,    30,   239,   240,   241,   242,    62,
     432,   157,     5,   441,   508,   158,   243,   129,    52,    31,
     244,   361,   245,    36,   -86,   382,   -85,    33,   267,   194,
      80,   511,   364,   513,   430,   367,   194,   351,   449,   465,
     437,    34,   453,   524,   282,   528,   112,   113,   114,   115,
     246,   116,   269,   149,   247,    35,   480,   248,   249,   119,
     487,   539,   205,   354,   205,   170,   171,   194,   250,    39,
     206,   207,   206,   207,   467,   525,   421,   305,    51,   423,
     468,   469,     8,  -261,   272,   274,   275,    53,   526,   -44,
     481,    66,   336,     2,   482,    67,    54,   483,   159,   160,
     161,   162,    73,   192,    55,    56,    75,    77,    53,   341,
     352,     5,    84,    68,    85,   223,    69,    52,  -167,    46,
      47,    48,    49,   310,  -167,   321,  -167,  -167,  -167,   372,
     373,   110,   111,   336,   538,   460,   125,   461,    68,   117,
     118,    69,   127,  -167,  -167,  -167,   271,  -167,   128,   154,
     149,   311,   155,   277,   458,   163,   278,   459,   353,   164,
     355,   112,   113,   114,   115,   455,   116,   137,   518,   333,
     165,   519,   365,   145,   119,   368,  -167,  -167,  -167,  -167,
     130,     8,   168,   169,   443,   336,    53,  -167,   -45,   387,
     391,  -167,   131,  -167,   175,    54,   312,   313,   314,   315,
     316,   317,   393,    55,    56,   132,   133,   134,   135,   136,
     173,   318,   174,   178,    53,   179,   180,  -167,  -167,  -167,
    -167,  -167,  -167,   181,   182,  -167,   187,   188,  -167,  -167,
    -167,   189,   190,   343,   193,   112,   113,   114,   115,  -167,
     116,   199,   216,    68,   117,   118,    69,   215,   119,   219,
     282,   463,   464,   537,     1,   218,   220,     2,     3,     4,
     221,   112,   113,   114,   115,   246,   116,   229,   268,   247,
     456,   230,   248,   497,   119,     5,   -21,     6,   273,   284,
     502,     7,   285,   387,   466,   286,   290,   289,   472,   305,
     325,   326,   474,   329,   338,   363,   366,   369,   374,   478,
     387,   375,   380,   485,   387,  -259,   488,  -260,   419,   490,
     422,   420,   424,   425,   427,   447,   428,   429,   451,   494,
     495,   446,   112,   113,   114,   115,   246,   116,   454,   535,
     344,   117,   118,   345,   346,   119,   457,   499,   471,   112,
     113,   114,   115,   473,   116,     8,   347,   348,   349,   475,
     476,     9,   119,   489,   491,   391,   517,   492,   520,    10,
     521,   529,   493,   522,   503,   523,   504,   112,   113,   114,
     115,   505,   116,   506,   530,    68,   117,   118,    69,   394,
     119,   509,   515,   531,   532,   395,   396,   533,   536,    76,
     251,   397,   398,   399,   400,   401,   402,   403,    32,   392,
     146,   201,   138,   404,   405,   406,   407,   292,   293,   294,
     295,   296,   297,   298,   299,   222,   300,   301,   302,   303,
     304,   112,   113,   114,   115,   140,   116,   477,   516,    68,
     117,   118,    69,   141,   119,   224,   376,   445,   322,   198,
     147,    86,    87,    88,    89,    90,    91,    92,    93,    94,
      95,    96,   323,    97,    98,    99,   287,   408,   342,   409,
     143,   200,   226,     0,     0,   410,   411,   412,   413,   414,
     415,   416,   417,   112,   113,   114,   115,   140,   116,     0,
       0,    68,   117,   118,    69,   141,   119,     0,   112,   113,
     114,   115,   305,   116,   306,   307,    68,   117,   118,    69,
       0,   119,   112,   113,   114,   115,    40,   116,     0,     0,
     339,     0,     0,   340,    43,   119,   112,   113,   114,   115,
       0,   116,     0,     0,   384,   117,   118,    69,     0,   119,
     112,   113,   114,   115,     0,   116,     0,     0,   388,   117,
     118,    69,     0,   119,   112,   113,   114,   115,     0,   116,
       0,     0,   479,   117,   118,    69,     0,   119,   112,   113,
     114,   115,     0,   116,     0,     0,   486,   117,   118,    69,
       0,   119,   112,   113,   114,   115,     0,   116,     0,     0,
     444,   112,   113,   114,   115,   119,   116,     0,     0,   496,
       0,     0,     0,     0,   119
};

static const yytype_int16 yycheck[] =
{
      78,    64,   128,   110,   178,   336,   217,     4,    11,   111,
      18,    19,    20,    21,   231,   337,    24,    70,     4,    16,
      29,   427,   112,    10,   191,    12,    13,    14,     4,     4,
       5,     8,     9,     8,     9,     4,     4,     4,    14,    70,
      38,   240,    29,    30,    31,   212,    33,    15,    70,    29,
      59,   111,    70,   179,    30,    32,    70,    32,   107,    70,
     472,   122,   474,   107,     7,   276,   115,   111,   279,   280,
     114,   115,   111,   126,     4,    62,    63,    64,    65,    59,
      83,   107,    25,    80,    70,   111,    73,    85,    31,     0,
      77,    99,    79,   123,    71,   126,    71,     4,   224,   177,
      76,    70,   319,    70,   126,   322,   184,   306,   126,   431,
      78,    70,   126,    29,   240,   126,   103,   104,   105,   106,
     107,   108,   229,   249,   111,     4,   448,   114,   115,   116,
     452,   537,   109,   307,   109,   135,   136,   215,   125,     4,
     117,   118,   117,   118,    75,    61,   363,   119,     4,   366,
      81,    82,    95,   125,   232,   233,   234,   100,    74,   102,
      17,   111,   288,     7,    21,   123,   109,    24,    50,    51,
      52,    53,   107,   173,   117,   118,     4,   102,   100,   305,
     306,    25,     4,   111,   124,     1,   114,    31,     4,    50,
      51,    52,    53,   271,    10,   273,    12,    13,    14,   325,
     326,   121,   111,   329,   535,   422,   111,   424,   111,   112,
     113,   114,     4,    29,    30,    31,    14,    33,   115,   111,
     346,    10,   114,   111,   111,   107,   114,   114,   306,   111,
     308,   103,   104,   105,   106,   409,   108,     4,   111,   111,
     122,   114,   320,    70,   116,   323,    62,    63,    64,    65,
     125,    95,   111,   111,   380,   381,   100,    73,   102,   337,
     338,    77,   125,    79,   100,   109,    55,    56,    57,    58,
      59,    60,   350,   117,   118,   125,   125,   125,   125,   125,
     121,    70,   108,   122,   100,    70,   126,   103,   104,   105,
     106,   107,   108,   126,   126,   111,   126,   126,   114,   115,
     116,   126,   126,    14,   123,   103,   104,   105,   106,   125,
     108,   123,   123,   111,   112,   113,   114,   124,   116,     4,
     446,   428,   429,   534,     4,   111,     4,     7,     8,     9,
      71,   103,   104,   105,   106,   107,   108,    70,   107,   111,
     418,     4,   114,   469,   116,    25,   111,    27,    14,     4,
     476,    31,     4,   431,   432,     4,     4,   125,   436,   119,
      70,    70,   440,   125,   125,    10,    10,   107,   107,   447,
     448,   107,    22,   451,   452,   125,   454,   125,   123,   457,
      10,   125,    10,    99,    70,    22,   121,   121,    22,   467,
     468,   121,   103,   104,   105,   106,   107,   108,    22,   525,
     111,   112,   113,   114,   115,   116,   121,   470,     4,   103,
     104,   105,   106,     4,   108,    95,   127,   128,   129,     4,
      22,   101,   116,   123,   126,   503,   504,   126,   506,   109,
     508,   126,     4,   511,   125,   513,    22,   103,   104,   105,
     106,   125,   108,    22,   126,   111,   112,   113,   114,    42,
     116,     4,     4,     4,     4,    48,    49,     4,     4,    59,
     224,    54,    55,    56,    57,    58,    59,    60,    12,   346,
     126,   185,   108,    66,    67,    68,    69,    34,    35,    36,
      37,    38,    39,    40,    41,   212,    43,    44,    45,    46,
      47,   103,   104,   105,   106,   107,   108,   446,   503,   111,
     112,   113,   114,   115,   116,   213,   329,   381,   274,   179,
     122,    84,    85,    86,    87,    88,    89,    90,    91,    92,
      93,    94,   274,    96,    97,    98,   249,   120,   305,   122,
     111,   184,   215,    -1,    -1,   128,   129,   130,   131,   132,
     133,   134,   135,   103,   104,   105,   106,   107,   108,    -1,
      -1,   111,   112,   113,   114,   115,   116,    -1,   103,   104,
     105,   106,   119,   108,   121,   122,   111,   112,   113,   114,
      -1,   116,   103,   104,   105,   106,   107,   108,    -1,    -1,
     111,    -1,    -1,   114,   115,   116,   103,   104,   105,   106,
      -1,   108,    -1,    -1,   111,   112,   113,   114,    -1,   116,
     103,   104,   105,   106,    -1,   108,    -1,    -1,   111,   112,
     113,   114,    -1,   116,   103,   104,   105,   106,    -1,   108,
      -1,    -1,   111,   112,   113,   114,    -1,   116,   103,   104,
     105,   106,    -1,   108,    -1,    -1,   111,   112,   113,   114,
      -1,   116,   103,   104,   105,   106,    -1,   108,    -1,    -1,
     111,   103,   104,   105,   106,   116,   108,    -1,    -1,   111,
      -1,    -1,    -1,    -1,   116
};

/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
   symbol of state STATE-NUM.  */
static const yytype_uint16 yystos[] =
{
       0,     4,     7,     8,     9,    25,    27,    31,    95,   101,
     109,   137,   138,   139,   140,   141,   143,   144,   155,   158,
     163,   111,   112,   111,   122,   159,   164,   145,   111,   156,
       4,     0,   139,     4,    70,     4,   123,   160,   161,     4,
     107,   111,   114,   115,   250,   251,    50,    51,    52,    53,
     222,     4,    31,   100,   109,   117,   118,   140,   146,   149,
     150,   157,   158,   211,   212,   213,   111,   123,   111,   114,
     162,   262,   165,   107,   147,     4,   150,   102,    14,    30,
      76,   151,   152,   213,     4,   124,    84,    85,    86,    87,
      88,    89,    90,    91,    92,    93,    94,    96,    97,    98,
     171,   172,   173,   174,   175,   176,   177,   185,   186,   187,
     121,   111,   103,   104,   105,   106,   108,   112,   113,   116,
     246,   254,   261,   262,   263,   111,   153,     4,   115,   262,
     125,   125,   125,   125,   125,   125,   125,     4,   187,   263,
     107,   115,   252,   253,   254,    70,   185,   122,   154,   246,
     247,   248,   249,   253,   111,   114,   148,   107,   111,    50,
      51,    52,    53,   107,   111,   122,   178,   179,   111,   111,
     148,   148,   166,   121,   108,   100,   257,   258,   122,    70,
     126,   126,   126,   255,   256,    70,   126,   126,   126,   126,
     126,   167,   148,   123,   254,   259,   260,   255,   249,   123,
     259,   179,     4,     5,    32,   109,   117,   118,   141,   142,
     168,   180,   208,   209,   210,   124,   123,   169,   111,     4,
       4,    71,   210,     1,   211,   214,   260,   170,   222,    70,
       4,    10,    12,    13,    14,    29,    30,    31,    33,    62,
      63,    64,    65,    73,    77,    79,   107,   111,   114,   115,
     125,   146,   181,   196,   198,   204,   206,   218,   223,   227,
     229,   231,   232,   233,   241,   242,   243,   246,   107,   263,
     252,    14,   254,    14,   254,   254,   219,   111,   114,   220,
     221,   233,   246,   228,     4,     4,     4,   247,   224,   125,
       4,   234,    34,    35,    36,    37,    38,    39,    40,    41,
      43,    44,    45,    46,    47,   119,   121,   122,   230,   194,
     254,    10,    55,    56,    57,    58,    59,    60,    70,   244,
     245,   254,   244,   245,   222,    70,    70,   222,   222,   125,
     182,   197,   199,   111,   239,   240,   246,   205,   125,   111,
     114,   246,   251,    14,   111,   114,   115,   127,   128,   129,
     225,   233,   246,   254,   255,   254,    18,    19,    20,    21,
      24,    99,   195,    10,   252,   254,    10,   252,   254,   107,
     215,   216,   246,   246,   107,   107,   240,   189,   200,   201,
      22,    70,   126,   194,   111,   207,   236,   254,   111,   235,
     236,   254,   154,   254,    42,    48,    49,    54,    55,    56,
      57,    58,    59,    60,    66,    67,    68,    69,   120,   122,
     128,   129,   130,   131,   132,   133,   134,   135,   226,   123,
     125,   252,    10,   252,    10,    99,   217,    70,   121,   121,
     126,    11,    83,   184,   190,     4,    15,    78,   202,     4,
      16,    80,   203,   246,   111,   239,   121,    22,    70,   126,
     237,    22,    70,   126,    22,   255,   254,   121,   111,   114,
     252,   252,   216,   263,   263,   236,   254,    75,    81,    82,
     188,     4,   254,     4,   254,     4,    22,   232,   254,   111,
     236,    17,    21,    24,   238,   254,   111,   236,   254,   123,
     254,   126,   126,     4,   254,   254,   111,   246,   183,   213,
     237,   237,   246,   125,    22,   125,    22,     4,    70,     4,
       4,    70,     4,    70,   191,     4,   235,   254,   111,   114,
     254,   254,   254,   254,    29,    61,    74,   192,   126,   126,
     126,     4,     4,     4,   193,   246,     4,   222,   194,   216
};

#define yyerrok		(yyerrstatus = 0)
#define yyclearin	(yychar = YYEMPTY)
#define YYEMPTY		(-2)
#define YYEOF		0

#define YYACCEPT	goto yyacceptlab
#define YYABORT		goto yyabortlab
#define YYERROR		goto yyerrorlab


/* Like YYERROR except do call yyerror.  This remains here temporarily
   to ease the transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  However,
   YYFAIL appears to be in use.  Nevertheless, it is formally deprecated
   in Bison 2.4.2's NEWS entry, where a plan to phase it out is
   discussed.  */

#define YYFAIL		goto yyerrlab
#if defined YYFAIL
  /* This is here to suppress warnings from the GCC cpp's
     -Wunused-macros.  Normally we don't worry about that warning, but
     some users do, and we want to make it easy for users to remove
     YYFAIL uses, which will produce warnings from Bison 2.5.  */
#endif

#define YYRECOVERING()  (!!yyerrstatus)

#define YYBACKUP(Token, Value)					\
do								\
  if (yychar == YYEMPTY && yylen == 1)				\
    {								\
      yychar = (Token);						\
      yylval = (Value);						\
      yytoken = YYTRANSLATE (yychar);				\
      YYPOPSTACK (1);						\
      goto yybackup;						\
    }								\
  else								\
    {								\
      yyerror (yyscanner, interp, YY_("syntax error: cannot back up")); \
      YYERROR;							\
    }								\
while (YYID (0))


#define YYTERROR	1
#define YYERRCODE	256


/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
   If N is 0, then set CURRENT to the empty location which ends
   the previous symbol: RHS[0] (always defined).  */

#define YYRHSLOC(Rhs, K) ((Rhs)[K])
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)				\
    do									\
      if (YYID (N))                                                    \
	{								\
	  (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;	\
	  (Current).first_column = YYRHSLOC (Rhs, 1).first_column;	\
	  (Current).last_line    = YYRHSLOC (Rhs, N).last_line;		\
	  (Current).last_column  = YYRHSLOC (Rhs, N).last_column;	\
	}								\
      else								\
	{								\
	  (Current).first_line   = (Current).last_line   =		\
	    YYRHSLOC (Rhs, 0).last_line;				\
	  (Current).first_column = (Current).last_column =		\
	    YYRHSLOC (Rhs, 0).last_column;				\
	}								\
    while (YYID (0))
#endif


/* YY_LOCATION_PRINT -- Print the location on the stream.
   This macro was not mandated originally: define only if we know
   we won't break user code: when these are the locations we know.  */

#ifndef YY_LOCATION_PRINT
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
#  define YY_LOCATION_PRINT(File, Loc)			\
     fprintf (File, "%d.%d-%d.%d",			\
	      (Loc).first_line, (Loc).first_column,	\
	      (Loc).last_line,  (Loc).last_column)
# else
#  define YY_LOCATION_PRINT(File, Loc) ((void) 0)
# endif
#endif


/* YYLEX -- calling `yylex' with the right arguments.  */

#ifdef YYLEX_PARAM
# define YYLEX yylex (&yylval, YYLEX_PARAM)
#else
# define YYLEX yylex (&yylval, yyscanner, interp)
#endif

/* Enable debugging if requested.  */
#if YYDEBUG

# ifndef YYFPRINTF
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#  define YYFPRINTF fprintf
# endif

# define YYDPRINTF(Args)			\
do {						\
  if (yydebug)					\
    YYFPRINTF Args;				\
} while (YYID (0))

# define YY_SYMBOL_PRINT(Title, Type, Value, Location)			  \
do {									  \
  if (yydebug)								  \
    {									  \
      YYFPRINTF (stderr, "%s ", Title);					  \
      yy_symbol_print (stderr,						  \
		  Type, Value, yyscanner, interp); \
      YYFPRINTF (stderr, "\n");						  \
    }									  \
} while (YYID (0))


/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, void *yyscanner, Parrot_Interp interp)
#else
static void
yy_symbol_value_print (yyoutput, yytype, yyvaluep, yyscanner, interp)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
    void *yyscanner;
    Parrot_Interp interp;
#endif
{
  if (!yyvaluep)
    return;
  YYUSE (yyscanner);
  YYUSE (interp);
# ifdef YYPRINT
  if (yytype < YYNTOKENS)
    YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# else
  YYUSE (yyoutput);
# endif
  switch (yytype)
    {
      default:
	break;
    }
}


/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, void *yyscanner, Parrot_Interp interp)
#else
static void
yy_symbol_print (yyoutput, yytype, yyvaluep, yyscanner, interp)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
    void *yyscanner;
    Parrot_Interp interp;
#endif
{
  if (yytype < YYNTOKENS)
    YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  else
    YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);

  yy_symbol_value_print (yyoutput, yytype, yyvaluep, yyscanner, interp);
  YYFPRINTF (yyoutput, ")");
}

/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included).                                                   |
`------------------------------------------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
#else
static void
yy_stack_print (yybottom, yytop)
    yytype_int16 *yybottom;
    yytype_int16 *yytop;
#endif
{
  YYFPRINTF (stderr, "Stack now");
  for (; yybottom <= yytop; yybottom++)
    {
      int yybot = *yybottom;
      YYFPRINTF (stderr, " %d", yybot);
    }
  YYFPRINTF (stderr, "\n");
}

# define YY_STACK_PRINT(Bottom, Top)				\
do {								\
  if (yydebug)							\
    yy_stack_print ((Bottom), (Top));				\
} while (YYID (0))


/*------------------------------------------------.
| Report that the YYRULE is going to be reduced.  |
`------------------------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_reduce_print (YYSTYPE *yyvsp, int yyrule, void *yyscanner, Parrot_Interp interp)
#else
static void
yy_reduce_print (yyvsp, yyrule, yyscanner, interp)
    YYSTYPE *yyvsp;
    int yyrule;
    void *yyscanner;
    Parrot_Interp interp;
#endif
{
  int yynrhs = yyr2[yyrule];
  int yyi;
  unsigned long int yylno = yyrline[yyrule];
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
	     yyrule - 1, yylno);
  /* The symbols being reduced.  */
  for (yyi = 0; yyi < yynrhs; yyi++)
    {
      YYFPRINTF (stderr, "   $%d = ", yyi + 1);
      yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
		       &(yyvsp[(yyi + 1) - (yynrhs)])
		       		       , yyscanner, interp);
      YYFPRINTF (stderr, "\n");
    }
}

# define YY_REDUCE_PRINT(Rule)		\
do {					\
  if (yydebug)				\
    yy_reduce_print (yyvsp, Rule, yyscanner, interp); \
} while (YYID (0))

/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */


/* YYINITDEPTH -- initial size of the parser's stacks.  */
#ifndef	YYINITDEPTH
# define YYINITDEPTH 200
#endif

/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
   if the built-in stack extension method is used).

   Do not make this value too large; the results are undefined if
   YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
   evaluated with infinite-precision integer arithmetic.  */

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif



#if YYERROR_VERBOSE

# ifndef yystrlen
#  if defined __GLIBC__ && defined _STRING_H
#   define yystrlen strlen
#  else
/* Return the length of YYSTR.  */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static YYSIZE_T
yystrlen (const char *yystr)
#else
static YYSIZE_T
yystrlen (yystr)
    const char *yystr;
#endif
{
  YYSIZE_T yylen;
  for (yylen = 0; yystr[yylen]; yylen++)
    continue;
  return yylen;
}
#  endif
# endif

# ifndef yystpcpy
#  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
#   define yystpcpy stpcpy
#  else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
   YYDEST.  */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static char *
yystpcpy (char *yydest, const char *yysrc)
#else
static char *
yystpcpy (yydest, yysrc)
    char *yydest;
    const char *yysrc;
#endif
{
  char *yyd = yydest;
  const char *yys = yysrc;

  while ((*yyd++ = *yys++) != '\0')
    continue;

  return yyd - 1;
}
#  endif
# endif

# ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
   quotes and backslashes, so that it's suitable for yyerror.  The
   heuristic is that double-quoting is unnecessary unless the string
   contains an apostrophe, a comma, or backslash (other than
   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
   null, do not copy; instead, return the length of what the result
   would have been.  */
static YYSIZE_T
yytnamerr (char *yyres, const char *yystr)
{
  if (*yystr == '"')
    {
      YYSIZE_T yyn = 0;
      char const *yyp = yystr;

      for (;;)
	switch (*++yyp)
	  {
	  case '\'':
	  case ',':
	    goto do_not_strip_quotes;

	  case '\\':
	    if (*++yyp != '\\')
	      goto do_not_strip_quotes;
	    /* Fall through.  */
	  default:
	    if (yyres)
	      yyres[yyn] = *yyp;
	    yyn++;
	    break;

	  case '"':
	    if (yyres)
	      yyres[yyn] = '\0';
	    return yyn;
	  }
    do_not_strip_quotes: ;
    }

  if (! yyres)
    return yystrlen (yystr);

  return yystpcpy (yyres, yystr) - yyres;
}
# endif

/* Copy into YYRESULT an error message about the unexpected token
   YYCHAR while in state YYSTATE.  Return the number of bytes copied,
   including the terminating null byte.  If YYRESULT is null, do not
   copy anything; just return the number of bytes that would be
   copied.  As a special case, return 0 if an ordinary "syntax error"
   message will do.  Return YYSIZE_MAXIMUM if overflow occurs during
   size calculation.  */
static YYSIZE_T
yysyntax_error (char *yyresult, int yystate, int yychar)
{
  int yyn = yypact[yystate];

  if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
    return 0;
  else
    {
      int yytype = YYTRANSLATE (yychar);
      YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
      YYSIZE_T yysize = yysize0;
      YYSIZE_T yysize1;
      int yysize_overflow = 0;
      enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
      char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
      int yyx;

# if 0
      /* This is so xgettext sees the translatable formats that are
	 constructed on the fly.  */
      YY_("syntax error, unexpected %s");
      YY_("syntax error, unexpected %s, expecting %s");
      YY_("syntax error, unexpected %s, expecting %s or %s");
      YY_("syntax error, unexpected %s, expecting %s or %s or %s");
      YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
# endif
      char *yyfmt;
      char const *yyf;
      static char const yyunexpected[] = "syntax error, unexpected %s";
      static char const yyexpecting[] = ", expecting %s";
      static char const yyor[] = " or %s";
      char yyformat[sizeof yyunexpected
		    + sizeof yyexpecting - 1
		    + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
		       * (sizeof yyor - 1))];
      char const *yyprefix = yyexpecting;

      /* Start YYX at -YYN if negative to avoid negative indexes in
	 YYCHECK.  */
      int yyxbegin = yyn < 0 ? -yyn : 0;

      /* Stay within bounds of both yycheck and yytname.  */
      int yychecklim = YYLAST - yyn + 1;
      int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
      int yycount = 1;

      yyarg[0] = yytname[yytype];
      yyfmt = yystpcpy (yyformat, yyunexpected);

      for (yyx = yyxbegin; yyx < yyxend; ++yyx)
	if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
	  {
	    if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
	      {
		yycount = 1;
		yysize = yysize0;
		yyformat[sizeof yyunexpected - 1] = '\0';
		break;
	      }
	    yyarg[yycount++] = yytname[yyx];
	    yysize1 = yysize + yytnamerr (0, yytname[yyx]);
	    yysize_overflow |= (yysize1 < yysize);
	    yysize = yysize1;
	    yyfmt = yystpcpy (yyfmt, yyprefix);
	    yyprefix = yyor;
	  }

      yyf = YY_(yyformat);
      yysize1 = yysize + yystrlen (yyf);
      yysize_overflow |= (yysize1 < yysize);
      yysize = yysize1;

      if (yysize_overflow)
	return YYSIZE_MAXIMUM;

      if (yyresult)
	{
	  /* Avoid sprintf, as that infringes on the user's name space.
	     Don't have undefined behavior even if the translation
	     produced a string with the wrong number of "%s"s.  */
	  char *yyp = yyresult;
	  int yyi = 0;
	  while ((*yyp = *yyf) != '\0')
	    {
	      if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
		{
		  yyp += yytnamerr (yyp, yyarg[yyi++]);
		  yyf += 2;
		}
	      else
		{
		  yyp++;
		  yyf++;
		}
	    }
	}
      return yysize;
    }
}
#endif /* YYERROR_VERBOSE */


/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/

/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, void *yyscanner, Parrot_Interp interp)
#else
static void
yydestruct (yymsg, yytype, yyvaluep, yyscanner, interp)
    const char *yymsg;
    int yytype;
    YYSTYPE *yyvaluep;
    void *yyscanner;
    Parrot_Interp interp;
#endif
{
  YYUSE (yyvaluep);
  YYUSE (yyscanner);
  YYUSE (interp);

  if (!yymsg)
    yymsg = "Deleting";
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);

  switch (yytype)
    {

      default:
	break;
    }
}

/* Prevent warnings from -Wmissing-prototypes.  */
#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int yyparse (void *YYPARSE_PARAM);
#else
int yyparse ();
#endif
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int yyparse (void *yyscanner, Parrot_Interp interp);
#else
int yyparse ();
#endif
#endif /* ! YYPARSE_PARAM */





/*-------------------------.
| yyparse or yypush_parse.  |
`-------------------------*/

#ifdef YYPARSE_PARAM
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
int
yyparse (void *YYPARSE_PARAM)
#else
int
yyparse (YYPARSE_PARAM)
    void *YYPARSE_PARAM;
#endif
#else /* ! YYPARSE_PARAM */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
int
yyparse (void *yyscanner, Parrot_Interp interp)
#else
int
yyparse (yyscanner, interp)
    void *yyscanner;
    Parrot_Interp interp;
#endif
#endif
{
/* The lookahead symbol.  */
int yychar;

/* The semantic value of the lookahead symbol.  */
YYSTYPE yylval;

    /* Number of syntax errors so far.  */
    int yynerrs;

    int yystate;
    /* Number of tokens to shift before error messages enabled.  */
    int yyerrstatus;

    /* The stacks and their tools:
       `yyss': related to states.
       `yyvs': related to semantic values.

       Refer to the stacks thru separate pointers, to allow yyoverflow
       to reallocate them elsewhere.  */

    /* The state stack.  */
    yytype_int16 yyssa[YYINITDEPTH];
    yytype_int16 *yyss;
    yytype_int16 *yyssp;

    /* The semantic value stack.  */
    YYSTYPE yyvsa[YYINITDEPTH];
    YYSTYPE *yyvs;
    YYSTYPE *yyvsp;

    YYSIZE_T yystacksize;

  int yyn;
  int yyresult;
  /* Lookahead token as an internal (translated) token number.  */
  int yytoken;
  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;

#if YYERROR_VERBOSE
  /* Buffer for error messages, and its allocated size.  */
  char yymsgbuf[128];
  char *yymsg = yymsgbuf;
  YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif

#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))

  /* The number of symbols on the RHS of the reduced rule.
     Keep to zero when no symbol should be popped.  */
  int yylen = 0;

  yytoken = 0;
  yyss = yyssa;
  yyvs = yyvsa;
  yystacksize = YYINITDEPTH;

  YYDPRINTF ((stderr, "Starting parse\n"));

  yystate = 0;
  yyerrstatus = 0;
  yynerrs = 0;
  yychar = YYEMPTY; /* Cause a token to be read.  */

  /* Initialize stack pointers.
     Waste one element of value and location stack
     so that they stay on the same level as the state stack.
     The wasted elements are never initialized.  */
  yyssp = yyss;
  yyvsp = yyvs;

  goto yysetstate;

/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate.  |
`------------------------------------------------------------*/
 yynewstate:
  /* In all cases, when you get here, the value and location stacks
     have just been pushed.  So pushing a state here evens the stacks.  */
  yyssp++;

 yysetstate:
  *yyssp = yystate;

  if (yyss + yystacksize - 1 <= yyssp)
    {
      /* Get the current used size of the three stacks, in elements.  */
      YYSIZE_T yysize = yyssp - yyss + 1;

#ifdef yyoverflow
      {
	/* Give user a chance to reallocate the stack.  Use copies of
	   these so that the &'s don't force the real ones into
	   memory.  */
	YYSTYPE *yyvs1 = yyvs;
	yytype_int16 *yyss1 = yyss;

	/* Each stack pointer address is followed by the size of the
	   data in use in that stack, in bytes.  This used to be a
	   conditional around just the two extra args, but that might
	   be undefined if yyoverflow is a macro.  */
	yyoverflow (YY_("memory exhausted"),
		    &yyss1, yysize * sizeof (*yyssp),
		    &yyvs1, yysize * sizeof (*yyvsp),
		    &yystacksize);

	yyss = yyss1;
	yyvs = yyvs1;
      }
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
      goto yyexhaustedlab;
# else
      /* Extend the stack our own way.  */
      if (YYMAXDEPTH <= yystacksize)
	goto yyexhaustedlab;
      yystacksize *= 2;
      if (YYMAXDEPTH < yystacksize)
	yystacksize = YYMAXDEPTH;

      {
	yytype_int16 *yyss1 = yyss;
	union yyalloc *yyptr =
	  (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
	if (! yyptr)
	  goto yyexhaustedlab;
	YYSTACK_RELOCATE (yyss_alloc, yyss);
	YYSTACK_RELOCATE (yyvs_alloc, yyvs);
#  undef YYSTACK_RELOCATE
	if (yyss1 != yyssa)
	  YYSTACK_FREE (yyss1);
      }
# endif
#endif /* no yyoverflow */

      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;

      YYDPRINTF ((stderr, "Stack size increased to %lu\n",
		  (unsigned long int) yystacksize));

      if (yyss + yystacksize - 1 <= yyssp)
	YYABORT;
    }

  YYDPRINTF ((stderr, "Entering state %d\n", yystate));

  if (yystate == YYFINAL)
    YYACCEPT;

  goto yybackup;

/*-----------.
| yybackup.  |
`-----------*/
yybackup:

  /* Do appropriate processing given the current state.  Read a
     lookahead token if we need one and don't already have one.  */

  /* First try to decide what to do without reference to lookahead token.  */
  yyn = yypact[yystate];
  if (yyn == YYPACT_NINF)
    goto yydefault;

  /* Not known => get a lookahead token if don't already have one.  */

  /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol.  */
  if (yychar == YYEMPTY)
    {
      YYDPRINTF ((stderr, "Reading a token: "));
      yychar = YYLEX;
    }

  if (yychar <= YYEOF)
    {
      yychar = yytoken = YYEOF;
      YYDPRINTF ((stderr, "Now at end of input.\n"));
    }
  else
    {
      yytoken = YYTRANSLATE (yychar);
      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
    }

  /* If the proper action on seeing token YYTOKEN is to reduce or to
     detect an error, take that action.  */
  yyn += yytoken;
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    goto yydefault;
  yyn = yytable[yyn];
  if (yyn <= 0)
    {
      if (yyn == 0 || yyn == YYTABLE_NINF)
	goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }

  /* Count tokens shifted since error; after three, turn off error
     status.  */
  if (yyerrstatus)
    yyerrstatus--;

  /* Shift the lookahead token.  */
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);

  /* Discard the shifted token.  */
  yychar = YYEMPTY;

  yystate = yyn;
  *++yyvsp = yylval;

  goto yynewstate;


/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state.  |
`-----------------------------------------------------------*/
yydefault:
  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;
  goto yyreduce;


/*-----------------------------.
| yyreduce -- Do a reduction.  |
`-----------------------------*/
yyreduce:
  /* yyn is the number of a rule to reduce with.  */
  yylen = yyr2[yyn];

  /* If YYLEN is nonzero, implement the default value of the action:
     `$$ = $1'.

     Otherwise, the following line sets YYVAL to garbage.
     This behavior is undocumented and Bison
     users should not rely upon it.  Assigning to YYVAL
     unconditionally makes the parser a bit smaller, and it avoids a
     GCC warning that YYVAL may be used uninitialized.  */
  yyval = yyvsp[1-yylen];


  YY_REDUCE_PRINT (yyn);
  switch (yyn)
    {
        case 2:

/* Line 1464 of yacc.c  */
#line 1081 "compilers/imcc/imcc.y"
    { if (yynerrs) YYABORT; (yyval.i) = 0; }
    break;

  case 5:

/* Line 1464 of yacc.c  */
#line 1090 "compilers/imcc/imcc.y"
    { (yyval.i) = (yyvsp[(1) - (1)].i); }
    break;

  case 6:

/* Line 1464 of yacc.c  */
#line 1091 "compilers/imcc/imcc.y"
    { (yyval.i) = (yyvsp[(1) - (1)].i); }
    break;

  case 7:

/* Line 1464 of yacc.c  */
#line 1093 "compilers/imcc/imcc.y"
    {
           (yyval.i) = (yyvsp[(1) - (1)].i);
           imc_close_unit(interp, IMCC_INFO(interp)->cur_unit);
           IMCC_INFO(interp)->cur_unit = 0;
         }
    break;

  case 8:

/* Line 1464 of yacc.c  */
#line 1099 "compilers/imcc/imcc.y"
    {
           (yyval.i) = (yyvsp[(1) - (1)].i);
           imc_close_unit(interp, IMCC_INFO(interp)->cur_unit);
           IMCC_INFO(interp)->cur_unit = 0;
         }
    break;

  case 9:

/* Line 1464 of yacc.c  */
#line 1104 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; }
    break;

  case 10:

/* Line 1464 of yacc.c  */
#line 1105 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; }
    break;

  case 11:

/* Line 1464 of yacc.c  */
#line 1106 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; }
    break;

  case 12:

/* Line 1464 of yacc.c  */
#line 1107 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; }
    break;

  case 13:

/* Line 1464 of yacc.c  */
#line 1111 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; }
    break;

  case 14:

/* Line 1464 of yacc.c  */
#line 1113 "compilers/imcc/imcc.y"
    {
           (yyval.i) = 0;
           do_loadlib(interp, (yyvsp[(2) - (3)].s));
           mem_sys_free((yyvsp[(2) - (3)].s));
         }
    break;

  case 15:

/* Line 1464 of yacc.c  */
#line 1122 "compilers/imcc/imcc.y"
    {
           IMCC_INFO(interp)->line = atoi((yyvsp[(2) - (5)].s));
           /* set_filename() frees the STRINGC */
           set_filename(interp, (yyvsp[(4) - (5)].s));
         }
    break;

  case 16:

/* Line 1464 of yacc.c  */
#line 1128 "compilers/imcc/imcc.y"
    {
           /* set_filename() frees the STRINGC */
           set_filename(interp, (yyvsp[(2) - (3)].s));
         }
    break;

  case 17:

/* Line 1464 of yacc.c  */
#line 1136 "compilers/imcc/imcc.y"
    {
          /* We'll want to store an entry while emitting instructions, so just
           * store annotation like it's an instruction. */
          SymReg * const key = mk_const(interp, (yyvsp[(2) - (4)].s), 'S');
          (yyval.i) = MK_I(interp, IMCC_INFO(interp)->cur_unit, ".annotate", 2, key, (yyvsp[(4) - (4)].sr));
          mem_sys_free((yyvsp[(2) - (4)].s));
        }
    break;

  case 18:

/* Line 1464 of yacc.c  */
#line 1148 "compilers/imcc/imcc.y"
    {
            STRING * const hll_name = Parrot_str_unescape(interp, (yyvsp[(2) - (2)].s) + 1, '"', NULL);
            Parrot_pcc_set_HLL(interp, CURRENT_CONTEXT(interp),
                Parrot_register_HLL(interp, hll_name));

            IMCC_INFO(interp)->cur_namespace = NULL;
            mem_sys_free((yyvsp[(2) - (2)].s));
            (yyval.t) = 0;
         }
    break;

  case 19:

/* Line 1464 of yacc.c  */
#line 1160 "compilers/imcc/imcc.y"
    { IMCC_INFO(interp)->is_def = 1; }
    break;

  case 20:

/* Line 1464 of yacc.c  */
#line 1161 "compilers/imcc/imcc.y"
    {
             mk_const_ident(interp, (yyvsp[(4) - (6)].s), (yyvsp[(3) - (6)].t), (yyvsp[(6) - (6)].sr), 1);
             mem_sys_free((yyvsp[(4) - (6)].s));
             IMCC_INFO(interp)->is_def = 0;
         }
    break;

  case 21:

/* Line 1464 of yacc.c  */
#line 1169 "compilers/imcc/imcc.y"
    { IMCC_INFO(interp)->is_def = 1; }
    break;

  case 22:

/* Line 1464 of yacc.c  */
#line 1170 "compilers/imcc/imcc.y"
    {
           (yyval.i) = mk_pmc_const_named(interp, IMCC_INFO(interp)->cur_unit, (yyvsp[(3) - (6)].s), (yyvsp[(4) - (6)].sr), (yyvsp[(6) - (6)].s));
           mem_sys_free((yyvsp[(3) - (6)].s));
           mem_sys_free((yyvsp[(6) - (6)].s));
           IMCC_INFO(interp)->is_def = 0;
         }
    break;

  case 27:

/* Line 1464 of yacc.c  */
#line 1188 "compilers/imcc/imcc.y"
    { (yyval.i) = 0;  }
    break;

  case 28:

/* Line 1464 of yacc.c  */
#line 1189 "compilers/imcc/imcc.y"
    { (yyval.i) = 0;  }
    break;

  case 29:

/* Line 1464 of yacc.c  */
#line 1190 "compilers/imcc/imcc.y"
    { (yyval.i) = 0;  }
    break;

  case 30:

/* Line 1464 of yacc.c  */
#line 1191 "compilers/imcc/imcc.y"
    { (yyval.i) = 0;  }
    break;

  case 31:

/* Line 1464 of yacc.c  */
#line 1192 "compilers/imcc/imcc.y"
    { (yyval.i) = (yyvsp[(1) - (1)].i); }
    break;

  case 34:

/* Line 1464 of yacc.c  */
#line 1197 "compilers/imcc/imcc.y"
    { clear_state(interp); }
    break;

  case 35:

/* Line 1464 of yacc.c  */
#line 1199 "compilers/imcc/imcc.y"
    {
           (yyval.i) = INS(interp, IMCC_INFO(interp)->cur_unit,
                    (yyvsp[(2) - (3)].s), 0, IMCC_INFO(interp)->regs,
                    IMCC_INFO(interp)->nargs, IMCC_INFO(interp) -> keyvec, 1);
            mem_sys_free((yyvsp[(2) - (3)].s));
         }
    break;

  case 36:

/* Line 1464 of yacc.c  */
#line 1206 "compilers/imcc/imcc.y"
    {
           imc_close_unit(interp, IMCC_INFO(interp)->cur_unit);
           IMCC_INFO(interp)->cur_unit = imc_open_unit(interp, IMC_PASM);
         }
    break;

  case 37:

/* Line 1464 of yacc.c  */
#line 1211 "compilers/imcc/imcc.y"
    {
           (yyval.i) = iSUBROUTINE(interp,
                    IMCC_INFO(interp)->cur_unit,
                    mk_sub_label(interp, (yyvsp[(4) - (4)].s)));
           IMCC_INFO(interp)->cur_call->pcc_sub->pragma = (yyvsp[(3) - (4)].t);
           mem_sys_free((yyvsp[(4) - (4)].s));
         }
    break;

  case 38:

/* Line 1464 of yacc.c  */
#line 1219 "compilers/imcc/imcc.y"
    {
           (yyval.i) = MK_I(interp, IMCC_INFO(interp)->cur_unit, "null", 1, (yyvsp[(2) - (2)].sr));
         }
    break;

  case 39:

/* Line 1464 of yacc.c  */
#line 1223 "compilers/imcc/imcc.y"
    {
           char   *name = mem_sys_strdup((yyvsp[(2) - (4)].s) + 1);
           SymReg *r    = mk_pasm_reg(interp, (yyvsp[(4) - (4)].s));
           SymReg *n;
           name[strlen(name) - 1] = 0;
           n = mk_const(interp, name, 'S');
           set_lexical(interp, r, n);
           (yyval.i) = 0;
           mem_sys_free(name);
           mem_sys_free((yyvsp[(2) - (4)].s));
           mem_sys_free((yyvsp[(4) - (4)].s));
         }
    break;

  case 40:

/* Line 1464 of yacc.c  */
#line 1235 "compilers/imcc/imcc.y"
    { (yyval.i) = 0;}
    break;

  case 42:

/* Line 1464 of yacc.c  */
#line 1243 "compilers/imcc/imcc.y"
    { IMCC_INFO(interp)->cur_unit = imc_open_unit(interp, IMC_PASM); }
    break;

  case 43:

/* Line 1464 of yacc.c  */
#line 1246 "compilers/imcc/imcc.y"
    {
           /* if (optimizer_level & OPT_PASM)
                         imc_compile_unit(interp, IMCC_INFO(interp)->cur_unit);
                         emit_flush(interp);
           */
           (yyval.i) = 0;
         }
    break;

  case 46:

/* Line 1464 of yacc.c  */
#line 1262 "compilers/imcc/imcc.y"
    {
           int re_open = 0;
           (yyval.i) = 0;
           if (IMCC_INFO(interp)->state->pasm_file && IMCC_INFO(interp)->cur_namespace) {
               imc_close_unit(interp, IMCC_INFO(interp)->cur_unit);
               re_open = 1;
           }
           IMCC_INFO(interp)->cur_namespace = (yyvsp[(2) - (3)].sr);
           if (re_open)
               IMCC_INFO(interp)->cur_unit = imc_open_unit(interp, IMC_PASM);
         }
    break;

  case 47:

/* Line 1464 of yacc.c  */
#line 1276 "compilers/imcc/imcc.y"
    { (yyval.sr) = (yyvsp[(2) - (3)].sr); }
    break;

  case 48:

/* Line 1464 of yacc.c  */
#line 1277 "compilers/imcc/imcc.y"
    { (yyval.sr) = NULL; }
    break;

  case 49:

/* Line 1464 of yacc.c  */
#line 1281 "compilers/imcc/imcc.y"
    {
           IMCC_INFO(interp)->nkeys    = 0;
         }
    break;

  case 50:

/* Line 1464 of yacc.c  */
#line 1285 "compilers/imcc/imcc.y"
    {
           (yyval.sr) = link_keys(interp,
                          IMCC_INFO(interp)->nkeys,
                          IMCC_INFO(interp)->keys, 0);
         }
    break;

  case 51:

/* Line 1464 of yacc.c  */
#line 1293 "compilers/imcc/imcc.y"
    { IMCC_INFO(interp)->keys[IMCC_INFO(interp)->nkeys++] = (yyvsp[(1) - (1)].sr); }
    break;

  case 52:

/* Line 1464 of yacc.c  */
#line 1295 "compilers/imcc/imcc.y"
    {
           IMCC_INFO(interp)->keys[IMCC_INFO(interp)->nkeys++] = (yyvsp[(3) - (3)].sr);
           (yyval.sr) = IMCC_INFO(interp)->keys[0];
         }
    break;

  case 53:

/* Line 1464 of yacc.c  */
#line 1303 "compilers/imcc/imcc.y"
    {
           IMCC_INFO(interp)->cur_unit = imc_open_unit(interp, IMC_PCCSUB);
         }
    break;

  case 54:

/* Line 1464 of yacc.c  */
#line 1307 "compilers/imcc/imcc.y"
    {
           iSUBROUTINE(interp, IMCC_INFO(interp)->cur_unit, (yyvsp[(3) - (3)].sr));
         }
    break;

  case 55:

/* Line 1464 of yacc.c  */
#line 1311 "compilers/imcc/imcc.y"
    {
          IMCC_INFO(interp)->cur_call->pcc_sub->pragma = (yyvsp[(5) - (6)].t);
          if (!IMCC_INFO(interp)->cur_unit->instructions->symregs[0]->subid) {
            IMCC_INFO(interp)->cur_unit->instructions->symregs[0]->subid = mem_sys_strdup(
            IMCC_INFO(interp)->cur_unit->instructions->symregs[0]->name);
          }
        }
    break;

  case 56:

/* Line 1464 of yacc.c  */
#line 1319 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; IMCC_INFO(interp)->cur_call = NULL; }
    break;

  case 57:

/* Line 1464 of yacc.c  */
#line 1323 "compilers/imcc/imcc.y"
    { (yyval.sr) = 0; }
    break;

  case 58:

/* Line 1464 of yacc.c  */
#line 1324 "compilers/imcc/imcc.y"
    { (yyval.sr) = 0; }
    break;

  case 59:

/* Line 1464 of yacc.c  */
#line 1326 "compilers/imcc/imcc.y"
    {
           if (IMCC_INFO(interp)->adv_named_id) {
                 add_pcc_named_param(interp, IMCC_INFO(interp)->cur_call,
                                     IMCC_INFO(interp)->adv_named_id, (yyvsp[(2) - (3)].sr));
                 IMCC_INFO(interp)->adv_named_id = NULL;
           }
           else
               add_pcc_arg(interp, IMCC_INFO(interp)->cur_call, (yyvsp[(2) - (3)].sr));
         }
    break;

  case 60:

/* Line 1464 of yacc.c  */
#line 1338 "compilers/imcc/imcc.y"
    { IMCC_INFO(interp)->is_def = 1; }
    break;

  case 61:

/* Line 1464 of yacc.c  */
#line 1338 "compilers/imcc/imcc.y"
    { (yyval.sr) = (yyvsp[(3) - (3)].sr); IMCC_INFO(interp)->is_def = 0; }
    break;

  case 62:

/* Line 1464 of yacc.c  */
#line 1343 "compilers/imcc/imcc.y"
    {
           if ((yyvsp[(3) - (3)].t) & VT_OPT_FLAG && (yyvsp[(1) - (3)].t) != 'I') {
               const char *type;
               switch ((yyvsp[(1) - (3)].t)) {
                    case 'N': type = "num";     break;
                    case 'S': type = "string";  break;
                    case 'P': type = "pmc";     break;
                    default:  type = "strange"; break;
               }

               IMCC_fataly(interp, EXCEPTION_SYNTAX_ERROR,
                   ":opt_flag parameter must be of type 'int', not '%s'", type);
           }
           if ((yyvsp[(3) - (3)].t) & VT_NAMED && !((yyvsp[(3) - (3)].t) & VT_FLAT) && !IMCC_INFO(interp)->adv_named_id)
               adv_named_set(interp, (yyvsp[(2) - (3)].s));
           (yyval.sr) = mk_ident(interp, (yyvsp[(2) - (3)].s), (yyvsp[(1) - (3)].t), VTIDENTIFIER);
           (yyval.sr)->type |= (yyvsp[(3) - (3)].t);
           mem_sys_free((yyvsp[(2) - (3)].s));
          }
    break;

  case 63:

/* Line 1464 of yacc.c  */
#line 1367 "compilers/imcc/imcc.y"
    { (yyval.t) = 0; }
    break;

  case 64:

/* Line 1464 of yacc.c  */
#line 1372 "compilers/imcc/imcc.y"
    {
           (yyval.t) = 0;
           IMCC_INFO(interp)->cur_unit->outer = mk_sub_address_fromc(interp, (yyvsp[(3) - (4)].s));
           mem_sys_free((yyvsp[(3) - (4)].s));
         }
    break;

  case 65:

/* Line 1464 of yacc.c  */
#line 1378 "compilers/imcc/imcc.y"
    {
           (yyval.t) = 0;
           IMCC_INFO(interp)->cur_unit->outer = mk_const(interp, (yyvsp[(3) - (4)].s), 'S');
           mem_sys_free((yyvsp[(3) - (4)].s));
         }
    break;

  case 66:

/* Line 1464 of yacc.c  */
#line 1387 "compilers/imcc/imcc.y"
    {
           (yyval.t) = P_VTABLE;
           IMCC_INFO(interp)->cur_unit->vtable_name      = NULL;
           IMCC_INFO(interp)->cur_unit->is_vtable_method = 1;
         }
    break;

  case 67:

/* Line 1464 of yacc.c  */
#line 1393 "compilers/imcc/imcc.y"
    {
           (yyval.t) = P_VTABLE;
           IMCC_INFO(interp)->cur_unit->vtable_name      = (yyvsp[(3) - (4)].s);
           IMCC_INFO(interp)->cur_unit->is_vtable_method = 1;
         }
    break;

  case 68:

/* Line 1464 of yacc.c  */
#line 1402 "compilers/imcc/imcc.y"
    {
           (yyval.t) = P_METHOD;
           IMCC_INFO(interp)->cur_unit->method_name = NULL;
           IMCC_INFO(interp)->cur_unit->is_method   = 1;
         }
    break;

  case 69:

/* Line 1464 of yacc.c  */
#line 1408 "compilers/imcc/imcc.y"
    {
           (yyval.t) = P_METHOD;
           IMCC_INFO(interp)->cur_unit->method_name = (yyvsp[(3) - (4)].s);
           IMCC_INFO(interp)->cur_unit->is_method   = 1;
         }
    break;

  case 70:

/* Line 1464 of yacc.c  */
#line 1417 "compilers/imcc/imcc.y"
    {
           (yyval.t) = P_NSENTRY;
           IMCC_INFO(interp)->cur_unit->ns_entry_name     = NULL;
           IMCC_INFO(interp)->cur_unit->has_ns_entry_name = 1;
         }
    break;

  case 71:

/* Line 1464 of yacc.c  */
#line 1423 "compilers/imcc/imcc.y"
    {
           (yyval.t) = P_NSENTRY;
           IMCC_INFO(interp)->cur_unit->ns_entry_name = (yyvsp[(3) - (4)].s);
           IMCC_INFO(interp)->cur_unit->has_ns_entry_name = 1;
         }
    break;

  case 72:

/* Line 1464 of yacc.c  */
#line 1432 "compilers/imcc/imcc.y"
    {
           (yyval.t) = 0;
           IMCC_INFO(interp)->cur_unit->instance_of = (yyvsp[(3) - (4)].s);
         }
    break;

  case 73:

/* Line 1464 of yacc.c  */
#line 1440 "compilers/imcc/imcc.y"
    {
           (yyval.t) = 0;
           IMCC_INFO(interp)->cur_unit->subid = NULL;
         }
    break;

  case 74:

/* Line 1464 of yacc.c  */
#line 1445 "compilers/imcc/imcc.y"
    {
           (yyval.t) = 0;
           IMCC_INFO(interp)->cur_unit->subid = mk_const(interp, (yyvsp[(3) - (4)].s), 'S');
           IMCC_INFO(interp)->cur_unit->instructions->symregs[0]->subid = str_dup_remove_quotes((yyvsp[(3) - (4)].s));
           mem_sys_free((yyvsp[(3) - (4)].s));
         }
    break;

  case 75:

/* Line 1464 of yacc.c  */
#line 1455 "compilers/imcc/imcc.y"
    {
           add_pcc_multi(interp, IMCC_INFO(interp)->cur_call, NULL);
         }
    break;

  case 76:

/* Line 1464 of yacc.c  */
#line 1459 "compilers/imcc/imcc.y"
    {
           (yyval.t) = 0;
           add_pcc_multi(interp, IMCC_INFO(interp)->cur_call, (yyvsp[(3) - (3)].sr));
         }
    break;

  case 77:

/* Line 1464 of yacc.c  */
#line 1464 "compilers/imcc/imcc.y"
    {
           (yyval.t) = 0;
           add_pcc_multi(interp, IMCC_INFO(interp)->cur_call, (yyvsp[(1) - (1)].sr));
         }
    break;

  case 78:

/* Line 1464 of yacc.c  */
#line 1471 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_const(interp, "INTVAL",   'S'); }
    break;

  case 79:

/* Line 1464 of yacc.c  */
#line 1472 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_const(interp, "FLOATVAL", 'S'); }
    break;

  case 80:

/* Line 1464 of yacc.c  */
#line 1473 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_const(interp, "PMC",      'S'); }
    break;

  case 81:

/* Line 1464 of yacc.c  */
#line 1474 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_const(interp, "STRING",   'S'); }
    break;

  case 82:

/* Line 1464 of yacc.c  */
#line 1476 "compilers/imcc/imcc.y"
    {
           SymReg *r;
           if (strcmp((yyvsp[(1) - (1)].s), "_") != 0)
               r = mk_const(interp, (yyvsp[(1) - (1)].s), 'S');
           else {
               r = mk_const(interp, "PMC", 'S');
           }
           mem_sys_free((yyvsp[(1) - (1)].s));
           (yyval.sr) = r;
         }
    break;

  case 83:

/* Line 1464 of yacc.c  */
#line 1487 "compilers/imcc/imcc.y"
    {
           SymReg *r;
           if (strcmp((yyvsp[(1) - (1)].s), "_") != 0)
               r = mk_const(interp, (yyvsp[(1) - (1)].s), 'S');
           else {
               r = mk_const(interp, "PMC", 'S');
           }
           mem_sys_free((yyvsp[(1) - (1)].s));
           (yyval.sr) = r;
         }
    break;

  case 84:

/* Line 1464 of yacc.c  */
#line 1497 "compilers/imcc/imcc.y"
    { (yyval.sr) = (yyvsp[(2) - (3)].sr); }
    break;

  case 87:

/* Line 1464 of yacc.c  */
#line 1507 "compilers/imcc/imcc.y"
    {
           char name[128];
           SymReg *r, *r1;
           Instruction *i;

           snprintf(name, sizeof (name), "%cpcc_sub_call_%d",
                   IMCC_INTERNAL_CHAR, IMCC_INFO(interp)->cnr++);
           (yyval.sr) = r = mk_pcc_sub(interp, name, 0);
           /* this mid rule action has the semantic value of the
            * sub SymReg.
            * This is used below to append args & results
            */
           i = iLABEL(interp, IMCC_INFO(interp)->cur_unit, r);
           IMCC_INFO(interp)->cur_call = r;
           i->type = ITPCCSUB;
           /*
            * if we are inside a pcc_sub mark the sub as doing a
            * sub call; the sub is in r[0] of the first ins
            */
           r1 = IMCC_INFO(interp)->cur_unit->instructions->symregs[0];
         }
    break;

  case 88:

/* Line 1464 of yacc.c  */
#line 1533 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; IMCC_INFO(interp)->cur_call = NULL; }
    break;

  case 89:

/* Line 1464 of yacc.c  */
#line 1537 "compilers/imcc/imcc.y"
    { (yyval.i) = NULL; IMCC_INFO(interp)->cur_call->pcc_sub->label = 0; }
    break;

  case 90:

/* Line 1464 of yacc.c  */
#line 1538 "compilers/imcc/imcc.y"
    { (yyval.i) = NULL; IMCC_INFO(interp)->cur_call->pcc_sub->label = 1; }
    break;

  case 91:

/* Line 1464 of yacc.c  */
#line 1542 "compilers/imcc/imcc.y"
    { (yyval.i) = NULL; }
    break;

  case 92:

/* Line 1464 of yacc.c  */
#line 1543 "compilers/imcc/imcc.y"
    { (yyval.i) = NULL;  IMCC_INFO(interp)->cur_call->pcc_sub->object = (yyvsp[(2) - (3)].sr); }
    break;

  case 93:

/* Line 1464 of yacc.c  */
#line 1547 "compilers/imcc/imcc.y"
    { (yyval.t) = 0; }
    break;

  case 95:

/* Line 1464 of yacc.c  */
#line 1552 "compilers/imcc/imcc.y"
    { (yyval.t) = (yyvsp[(1) - (1)].t); }
    break;

  case 96:

/* Line 1464 of yacc.c  */
#line 1553 "compilers/imcc/imcc.y"
    { (yyval.t) = (yyvsp[(1) - (2)].t) | (yyvsp[(2) - (2)].t); }
    break;

  case 97:

/* Line 1464 of yacc.c  */
#line 1557 "compilers/imcc/imcc.y"
    { (yyval.t) = P_LOAD; }
    break;

  case 98:

/* Line 1464 of yacc.c  */
#line 1558 "compilers/imcc/imcc.y"
    { (yyval.t) = P_INIT; }
    break;

  case 99:

/* Line 1464 of yacc.c  */
#line 1559 "compilers/imcc/imcc.y"
    { (yyval.t) = P_MAIN; }
    break;

  case 100:

/* Line 1464 of yacc.c  */
#line 1560 "compilers/imcc/imcc.y"
    { (yyval.t) = P_IMMEDIATE; }
    break;

  case 101:

/* Line 1464 of yacc.c  */
#line 1561 "compilers/imcc/imcc.y"
    { (yyval.t) = P_POSTCOMP; }
    break;

  case 102:

/* Line 1464 of yacc.c  */
#line 1562 "compilers/imcc/imcc.y"
    { (yyval.t) = P_ANON; }
    break;

  case 103:

/* Line 1464 of yacc.c  */
#line 1563 "compilers/imcc/imcc.y"
    { (yyval.t) = P_NEED_LEX; }
    break;

  case 111:

/* Line 1464 of yacc.c  */
#line 1575 "compilers/imcc/imcc.y"
    {
           add_pcc_sub(IMCC_INFO(interp)->cur_call, (yyvsp[(2) - (5)].sr));
           add_pcc_cc(IMCC_INFO(interp)->cur_call, (yyvsp[(4) - (5)].sr));
         }
    break;

  case 112:

/* Line 1464 of yacc.c  */
#line 1580 "compilers/imcc/imcc.y"
    {
           add_pcc_sub(IMCC_INFO(interp)->cur_call, (yyvsp[(2) - (3)].sr));
         }
    break;

  case 113:

/* Line 1464 of yacc.c  */
#line 1584 "compilers/imcc/imcc.y"
    {
           add_pcc_sub(IMCC_INFO(interp)->cur_call, (yyvsp[(2) - (3)].sr));
         }
    break;

  case 114:

/* Line 1464 of yacc.c  */
#line 1588 "compilers/imcc/imcc.y"
    {
           add_pcc_sub(IMCC_INFO(interp)->cur_call, (yyvsp[(2) - (3)].sr));
         }
    break;

  case 115:

/* Line 1464 of yacc.c  */
#line 1592 "compilers/imcc/imcc.y"
    {
           add_pcc_sub(IMCC_INFO(interp)->cur_call, mk_const(interp, (yyvsp[(2) - (3)].s), 'S'));
         }
    break;

  case 116:

/* Line 1464 of yacc.c  */
#line 1596 "compilers/imcc/imcc.y"
    {
           add_pcc_sub(IMCC_INFO(interp)->cur_call, (yyvsp[(2) - (5)].sr));
           add_pcc_cc(IMCC_INFO(interp)->cur_call, (yyvsp[(4) - (5)].sr));
         }
    break;

  case 117:

/* Line 1464 of yacc.c  */
#line 1601 "compilers/imcc/imcc.y"
    {
           add_pcc_sub(IMCC_INFO(interp)->cur_call, mk_const(interp, (yyvsp[(2) - (5)].s), 'S'));
           add_pcc_cc(IMCC_INFO(interp)->cur_call, (yyvsp[(4) - (5)].sr));
         }
    break;

  case 118:

/* Line 1464 of yacc.c  */
#line 1609 "compilers/imcc/imcc.y"
    { (yyval.sr) = 0; }
    break;

  case 119:

/* Line 1464 of yacc.c  */
#line 1610 "compilers/imcc/imcc.y"
    {
                                 if (IMCC_INFO(interp)->adv_named_id) {
                                     add_pcc_named_param(interp, IMCC_INFO(interp)->cur_call,
                                                    IMCC_INFO(interp)->adv_named_id, (yyvsp[(2) - (3)].sr));
                                     IMCC_INFO(interp)->adv_named_id = NULL;
                                 }
                                 else
                                     add_pcc_arg(interp, IMCC_INFO(interp)->cur_call, (yyvsp[(2) - (3)].sr));
                               }
    break;

  case 120:

/* Line 1464 of yacc.c  */
#line 1622 "compilers/imcc/imcc.y"
    { (yyval.sr) = (yyvsp[(2) - (2)].sr); }
    break;

  case 121:

/* Line 1464 of yacc.c  */
#line 1627 "compilers/imcc/imcc.y"
    { (yyval.sr) = 0; }
    break;

  case 122:

/* Line 1464 of yacc.c  */
#line 1629 "compilers/imcc/imcc.y"
    {
           if ((yyvsp[(2) - (3)].sr))
               add_pcc_result(interp, IMCC_INFO(interp)->cur_call, (yyvsp[(2) - (3)].sr));
         }
    break;

  case 123:

/* Line 1464 of yacc.c  */
#line 1636 "compilers/imcc/imcc.y"
    { (yyval.sr) = (yyvsp[(2) - (3)].sr); (yyval.sr)->type |= (yyvsp[(3) - (3)].t); }
    break;

  case 124:

/* Line 1464 of yacc.c  */
#line 1637 "compilers/imcc/imcc.y"
    { IMCC_INFO(interp)->is_def = 1; }
    break;

  case 125:

/* Line 1464 of yacc.c  */
#line 1638 "compilers/imcc/imcc.y"
    {
           IdList * const l = (yyvsp[(4) - (4)].idlist);
           SymReg *ignored;
           ignored = mk_ident(interp, l->id, (yyvsp[(3) - (4)].t), VTIDENTIFIER);
           UNUSED(ignored);
           IMCC_INFO(interp)->is_def = 0;
           (yyval.sr) = 0;
         }
    break;

  case 126:

/* Line 1464 of yacc.c  */
#line 1649 "compilers/imcc/imcc.y"
    { (yyval.t) = 0; }
    break;

  case 127:

/* Line 1464 of yacc.c  */
#line 1650 "compilers/imcc/imcc.y"
    { (yyval.t) = (yyvsp[(1) - (2)].t) | (yyvsp[(2) - (2)].t); }
    break;

  case 128:

/* Line 1464 of yacc.c  */
#line 1654 "compilers/imcc/imcc.y"
    { (yyval.t) = VT_FLAT;   }
    break;

  case 129:

/* Line 1464 of yacc.c  */
#line 1655 "compilers/imcc/imcc.y"
    { (yyval.t) = VT_OPTIONAL; }
    break;

  case 130:

/* Line 1464 of yacc.c  */
#line 1656 "compilers/imcc/imcc.y"
    { (yyval.t) = VT_OPT_FLAG; }
    break;

  case 131:

/* Line 1464 of yacc.c  */
#line 1657 "compilers/imcc/imcc.y"
    { (yyval.t) = VT_NAMED; }
    break;

  case 132:

/* Line 1464 of yacc.c  */
#line 1658 "compilers/imcc/imcc.y"
    { adv_named_set(interp, (yyvsp[(3) - (4)].s));   (yyval.t) = VT_NAMED; mem_sys_free((yyvsp[(3) - (4)].s)); }
    break;

  case 133:

/* Line 1464 of yacc.c  */
#line 1659 "compilers/imcc/imcc.y"
    { adv_named_set_u(interp, (yyvsp[(3) - (4)].s)); (yyval.t) = VT_NAMED; mem_sys_free((yyvsp[(3) - (4)].s)); }
    break;

  case 134:

/* Line 1464 of yacc.c  */
#line 1660 "compilers/imcc/imcc.y"
    { (yyval.t) = 0; }
    break;

  case 135:

/* Line 1464 of yacc.c  */
#line 1661 "compilers/imcc/imcc.y"
    { (yyval.t) = VT_CALL_SIG; }
    break;

  case 136:

/* Line 1464 of yacc.c  */
#line 1666 "compilers/imcc/imcc.y"
    { begin_return_or_yield(interp, 0); }
    break;

  case 137:

/* Line 1464 of yacc.c  */
#line 1668 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; IMCC_INFO(interp)->asm_state = AsmDefault; }
    break;

  case 138:

/* Line 1464 of yacc.c  */
#line 1670 "compilers/imcc/imcc.y"
    {
           IMCC_INFO(interp)->asm_state = AsmDefault;
           (yyval.i) = 0;
         }
    break;

  case 139:

/* Line 1464 of yacc.c  */
#line 1677 "compilers/imcc/imcc.y"
    { begin_return_or_yield(interp, 1); }
    break;

  case 140:

/* Line 1464 of yacc.c  */
#line 1679 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; IMCC_INFO(interp)->asm_state = AsmDefault; }
    break;

  case 141:

/* Line 1464 of yacc.c  */
#line 1683 "compilers/imcc/imcc.y"
    { (yyval.sr) = 0; }
    break;

  case 142:

/* Line 1464 of yacc.c  */
#line 1685 "compilers/imcc/imcc.y"
    {
           if ((yyvsp[(1) - (2)].sr))
               add_pcc_result(interp, IMCC_INFO(interp)->sr_return, (yyvsp[(1) - (2)].sr));
         }
    break;

  case 143:

/* Line 1464 of yacc.c  */
#line 1690 "compilers/imcc/imcc.y"
    {
           if ((yyvsp[(2) - (3)].sr))
               add_pcc_result(interp, IMCC_INFO(interp)->sr_return, (yyvsp[(2) - (3)].sr));
         }
    break;

  case 144:

/* Line 1464 of yacc.c  */
#line 1697 "compilers/imcc/imcc.y"
    { (yyval.sr) = 0; }
    break;

  case 145:

/* Line 1464 of yacc.c  */
#line 1699 "compilers/imcc/imcc.y"
    {
           if ((yyvsp[(1) - (2)].sr))
               add_pcc_result(interp, IMCC_INFO(interp)->sr_return, (yyvsp[(1) - (2)].sr));
         }
    break;

  case 146:

/* Line 1464 of yacc.c  */
#line 1704 "compilers/imcc/imcc.y"
    {
           if ((yyvsp[(2) - (3)].sr))
               add_pcc_result(interp, IMCC_INFO(interp)->sr_return, (yyvsp[(2) - (3)].sr));
         }
    break;

  case 147:

/* Line 1464 of yacc.c  */
#line 1711 "compilers/imcc/imcc.y"
    { (yyval.sr) = (yyvsp[(2) - (3)].sr); (yyval.sr)->type |= (yyvsp[(3) - (3)].t); }
    break;

  case 148:

/* Line 1464 of yacc.c  */
#line 1715 "compilers/imcc/imcc.y"
    { (yyval.sr) = (yyvsp[(2) - (3)].sr); (yyval.sr)->type |= (yyvsp[(3) - (3)].t); }
    break;

  case 149:

/* Line 1464 of yacc.c  */
#line 1720 "compilers/imcc/imcc.y"
    {
          if (IMCC_INFO(interp)->asm_state == AsmDefault)
              begin_return_or_yield(interp, (yyvsp[(1) - (2)].t));
        }
    break;

  case 150:

/* Line 1464 of yacc.c  */
#line 1725 "compilers/imcc/imcc.y"
    {
          IMCC_INFO(interp)->asm_state = AsmDefault;
          (yyval.t) = 0;
        }
    break;

  case 151:

/* Line 1464 of yacc.c  */
#line 1732 "compilers/imcc/imcc.y"
    { (yyval.t) = 0; }
    break;

  case 152:

/* Line 1464 of yacc.c  */
#line 1733 "compilers/imcc/imcc.y"
    { (yyval.t) = 1; }
    break;

  case 153:

/* Line 1464 of yacc.c  */
#line 1737 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; }
    break;

  case 154:

/* Line 1464 of yacc.c  */
#line 1739 "compilers/imcc/imcc.y"
    {
           if (IMCC_INFO(interp)->adv_named_id) {
               add_pcc_named_return(interp, IMCC_INFO(interp)->sr_return,
                                    IMCC_INFO(interp)->adv_named_id, (yyvsp[(1) - (1)].sr));
               IMCC_INFO(interp)->adv_named_id = NULL;
           }
           else
               add_pcc_result(interp, IMCC_INFO(interp)->sr_return, (yyvsp[(1) - (1)].sr));
         }
    break;

  case 155:

/* Line 1464 of yacc.c  */
#line 1749 "compilers/imcc/imcc.y"
    {
            SymReg * const name = mk_const(interp, (yyvsp[(1) - (3)].s), 'S');
            add_pcc_named_return(interp, IMCC_INFO(interp)->sr_return, name, (yyvsp[(3) - (3)].sr));
         }
    break;

  case 156:

/* Line 1464 of yacc.c  */
#line 1754 "compilers/imcc/imcc.y"
    {
           if (IMCC_INFO(interp)->adv_named_id) {
               add_pcc_named_return(interp, IMCC_INFO(interp)->sr_return,
                                    IMCC_INFO(interp)->adv_named_id, (yyvsp[(3) - (3)].sr));
               IMCC_INFO(interp)->adv_named_id = NULL;
             }
             else
                 add_pcc_result(interp, IMCC_INFO(interp)->sr_return, (yyvsp[(3) - (3)].sr));
         }
    break;

  case 157:

/* Line 1464 of yacc.c  */
#line 1764 "compilers/imcc/imcc.y"
    {
           SymReg * const name = mk_const(interp, (yyvsp[(3) - (5)].s), 'S');
           add_pcc_named_return(interp, IMCC_INFO(interp)->sr_return, name, (yyvsp[(5) - (5)].sr));
         }
    break;

  case 160:

/* Line 1464 of yacc.c  */
#line 1785 "compilers/imcc/imcc.y"
    { clear_state(interp); }
    break;

  case 161:

/* Line 1464 of yacc.c  */
#line 1790 "compilers/imcc/imcc.y"
    { (yyval.i) = (yyvsp[(2) - (2)].i); }
    break;

  case 162:

/* Line 1464 of yacc.c  */
#line 1791 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; }
    break;

  case 163:

/* Line 1464 of yacc.c  */
#line 1792 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; }
    break;

  case 164:

/* Line 1464 of yacc.c  */
#line 1793 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; }
    break;

  case 165:

/* Line 1464 of yacc.c  */
#line 1794 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; }
    break;

  case 166:

/* Line 1464 of yacc.c  */
#line 1795 "compilers/imcc/imcc.y"
    { (yyval.i) = (yyvsp[(1) - (1)].i); }
    break;

  case 167:

/* Line 1464 of yacc.c  */
#line 1799 "compilers/imcc/imcc.y"
    { (yyval.i) = NULL; }
    break;

  case 171:

/* Line 1464 of yacc.c  */
#line 1810 "compilers/imcc/imcc.y"
    {
             Instruction * const i = iLABEL(interp, IMCC_INFO(interp)->cur_unit, mk_local_label(interp, (yyvsp[(1) - (1)].s)));
             mem_sys_free((yyvsp[(1) - (1)].s));
             (yyval.i) = i;
         }
    break;

  case 172:

/* Line 1464 of yacc.c  */
#line 1820 "compilers/imcc/imcc.y"
    { (yyval.i) = (yyvsp[(2) - (3)].i); }
    break;

  case 173:

/* Line 1464 of yacc.c  */
#line 1822 "compilers/imcc/imcc.y"
    {
           if (yynerrs >= PARROT_MAX_RECOVER_ERRORS) {
               IMCC_warning(interp, "Too many errors. Correct some first.\n");
               YYABORT;
           }
           yyerrok;
         }
    break;

  case 174:

/* Line 1464 of yacc.c  */
#line 1833 "compilers/imcc/imcc.y"
    {
           IdList* const l = (yyvsp[(1) - (1)].idlist);
           l->next = NULL;
           (yyval.idlist) = l;
         }
    break;

  case 175:

/* Line 1464 of yacc.c  */
#line 1840 "compilers/imcc/imcc.y"
    {
           IdList* const l = (yyvsp[(3) - (3)].idlist);
           l->next = (yyvsp[(1) - (3)].idlist);
           (yyval.idlist) = l;
         }
    break;

  case 176:

/* Line 1464 of yacc.c  */
#line 1849 "compilers/imcc/imcc.y"
    {
           IdList* const l = mem_gc_allocate_n_zeroed_typed(interp, 1, IdList);
           l->id           = (yyvsp[(1) - (2)].s);
           (yyval.idlist) = l;
         }
    break;

  case 181:

/* Line 1464 of yacc.c  */
#line 1865 "compilers/imcc/imcc.y"
    { IMCC_INFO(interp)->is_def = 1; }
    break;

  case 182:

/* Line 1464 of yacc.c  */
#line 1866 "compilers/imcc/imcc.y"
    {
           IdList *l = (yyvsp[(4) - (4)].idlist);
           while (l) {
               IdList *l1;
               mk_ident(interp, l->id, (yyvsp[(3) - (4)].t), VTIDENTIFIER);
               l1 = l;
               l  = l->next;
               mem_sys_free(l1->id);
               mem_sys_free(l1);
           }
           IMCC_INFO(interp)->is_def = 0; (yyval.i) = 0;
         }
    break;

  case 183:

/* Line 1464 of yacc.c  */
#line 1879 "compilers/imcc/imcc.y"
    {
            if ((yyvsp[(4) - (4)].sr)->set != 'P') {
                mem_sys_free((yyvsp[(2) - (4)].s));
                IMCC_fataly(interp, EXCEPTION_SYNTAX_ERROR,
                    "Cannot use %c register with .lex", (yyvsp[(4) - (4)].sr)->set);
            }
            else {
               SymReg *n;
               char   *name = mem_sys_strdup((yyvsp[(2) - (4)].s) + 1);
               name[strlen(name) - 1] = 0;
               n = mk_const(interp, name, 'S');
               set_lexical(interp, (yyvsp[(4) - (4)].sr), n); (yyval.i) = 0;
               mem_sys_free((yyvsp[(2) - (4)].s));
               mem_sys_free(name);
            }
         }
    break;

  case 184:

/* Line 1464 of yacc.c  */
#line 1896 "compilers/imcc/imcc.y"
    {
            if ((yyvsp[(4) - (4)].sr)->set != 'P') {
                mem_sys_free((yyvsp[(2) - (4)].s));
                IMCC_fataly(interp, EXCEPTION_SYNTAX_ERROR,
                    "Cannot use %c register with .lex", (yyvsp[(4) - (4)].sr)->set);
            }
            else {
               SymReg *n = mk_const(interp, (yyvsp[(2) - (4)].s), 'U');
               set_lexical(interp, (yyvsp[(4) - (4)].sr), n); (yyval.i) = 0;
               mem_sys_free((yyvsp[(2) - (4)].s));
            }
         }
    break;

  case 185:

/* Line 1464 of yacc.c  */
#line 1908 "compilers/imcc/imcc.y"
    { IMCC_INFO(interp)->is_def = 1; }
    break;

  case 186:

/* Line 1464 of yacc.c  */
#line 1909 "compilers/imcc/imcc.y"
    {
           mk_const_ident(interp, (yyvsp[(4) - (6)].s), (yyvsp[(3) - (6)].t), (yyvsp[(6) - (6)].sr), 0);
           IMCC_INFO(interp)->is_def = 0;
           mem_sys_free((yyvsp[(4) - (6)].s));
         }
    break;

  case 188:

/* Line 1464 of yacc.c  */
#line 1916 "compilers/imcc/imcc.y"
    { IMCC_INFO(interp)->is_def = 1; }
    break;

  case 189:

/* Line 1464 of yacc.c  */
#line 1917 "compilers/imcc/imcc.y"
    {
           mk_const_ident(interp, (yyvsp[(4) - (6)].s), (yyvsp[(3) - (6)].t), (yyvsp[(6) - (6)].sr), 1);
           IMCC_INFO(interp)->is_def = 0;
           mem_sys_free((yyvsp[(4) - (6)].s));
         }
    break;

  case 190:

/* Line 1464 of yacc.c  */
#line 1923 "compilers/imcc/imcc.y"
    {
           (yyval.i) = NULL;
           IMCC_INFO(interp)->cur_call->pcc_sub->tailcall = 1;
           IMCC_INFO(interp)->cur_call = NULL;
         }
    break;

  case 191:

/* Line 1464 of yacc.c  */
#line 1929 "compilers/imcc/imcc.y"
    {
            (yyval.i) = MK_I(interp, IMCC_INFO(interp)->cur_unit, "branch", 1, (yyvsp[(2) - (2)].sr));
         }
    break;

  case 192:

/* Line 1464 of yacc.c  */
#line 1933 "compilers/imcc/imcc.y"
    {
           (yyval.i) = INS(interp,
                    IMCC_INFO(interp)->cur_unit,
                    (yyvsp[(1) - (2)].s),
                    0,
                    IMCC_INFO(interp)->regs,
                    IMCC_INFO(interp)->nargs,
                    IMCC_INFO(interp)->keyvec,
                    1);
           mem_sys_free((yyvsp[(1) - (2)].s));
         }
    break;

  case 193:

/* Line 1464 of yacc.c  */
#line 1944 "compilers/imcc/imcc.y"
    { (yyval.i) = MK_I(interp, IMCC_INFO(interp)->cur_unit, "null", 1, (yyvsp[(2) - (2)].sr)); }
    break;

  case 194:

/* Line 1464 of yacc.c  */
#line 1945 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; IMCC_INFO(interp)->cur_call = NULL; }
    break;

  case 195:

/* Line 1464 of yacc.c  */
#line 1946 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; }
    break;

  case 198:

/* Line 1464 of yacc.c  */
#line 1949 "compilers/imcc/imcc.y"
    { (yyval.i) = 0;}
    break;

  case 199:

/* Line 1464 of yacc.c  */
#line 1953 "compilers/imcc/imcc.y"
    { (yyval.t) = 'I'; }
    break;

  case 200:

/* Line 1464 of yacc.c  */
#line 1954 "compilers/imcc/imcc.y"
    { (yyval.t) = 'N'; }
    break;

  case 201:

/* Line 1464 of yacc.c  */
#line 1955 "compilers/imcc/imcc.y"
    { (yyval.t) = 'S'; }
    break;

  case 202:

/* Line 1464 of yacc.c  */
#line 1956 "compilers/imcc/imcc.y"
    { (yyval.t) = 'P'; }
    break;

  case 203:

/* Line 1464 of yacc.c  */
#line 1961 "compilers/imcc/imcc.y"
    { (yyval.i) = MK_I(interp, IMCC_INFO(interp)->cur_unit, "set", 2, (yyvsp[(1) - (3)].sr), (yyvsp[(3) - (3)].sr));  }
    break;

  case 204:

/* Line 1464 of yacc.c  */
#line 1963 "compilers/imcc/imcc.y"
    { (yyval.i) = MK_I(interp, IMCC_INFO(interp)->cur_unit, (yyvsp[(3) - (4)].s), 2, (yyvsp[(1) - (4)].sr), (yyvsp[(4) - (4)].sr));  }
    break;

  case 205:

/* Line 1464 of yacc.c  */
#line 1965 "compilers/imcc/imcc.y"
    { (yyval.i) = MK_I(interp, IMCC_INFO(interp)->cur_unit, (yyvsp[(4) - (5)].s), 3, (yyvsp[(1) - (5)].sr), (yyvsp[(3) - (5)].sr), (yyvsp[(5) - (5)].sr)); }
    break;

  case 206:

/* Line 1464 of yacc.c  */
#line 1967 "compilers/imcc/imcc.y"
    { (yyval.i) = iINDEXFETCH(interp, IMCC_INFO(interp)->cur_unit, (yyvsp[(1) - (6)].sr), (yyvsp[(3) - (6)].sr), (yyvsp[(5) - (6)].sr)); }
    break;

  case 207:

/* Line 1464 of yacc.c  */
#line 1969 "compilers/imcc/imcc.y"
    { (yyval.i) = iINDEXSET(interp, IMCC_INFO(interp)->cur_unit, (yyvsp[(1) - (6)].sr), (yyvsp[(3) - (6)].sr), (yyvsp[(6) - (6)].sr)); }
    break;

  case 208:

/* Line 1464 of yacc.c  */
#line 1972 "compilers/imcc/imcc.y"
    {
           add_pcc_result(interp, (yyvsp[(3) - (3)].i)->symregs[0], (yyvsp[(1) - (3)].sr));
           IMCC_INFO(interp)->cur_call = NULL;
           (yyval.i) = 0;
         }
    break;

  case 209:

/* Line 1464 of yacc.c  */
#line 1978 "compilers/imcc/imcc.y"
    {
           (yyval.i) = IMCC_create_itcall_label(interp);
         }
    break;

  case 210:

/* Line 1464 of yacc.c  */
#line 1982 "compilers/imcc/imcc.y"
    {
           IMCC_itcall_sub(interp, (yyvsp[(6) - (9)].sr));
           IMCC_INFO(interp)->cur_call = NULL;
         }
    break;

  case 214:

/* Line 1464 of yacc.c  */
#line 1990 "compilers/imcc/imcc.y"
    {
           (yyval.i) = MK_I(interp, IMCC_INFO(interp)->cur_unit, "null", 1, (yyvsp[(1) - (3)].sr));
         }
    break;

  case 215:

/* Line 1464 of yacc.c  */
#line 1997 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"not"; }
    break;

  case 216:

/* Line 1464 of yacc.c  */
#line 1998 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"bnot"; }
    break;

  case 217:

/* Line 1464 of yacc.c  */
#line 1999 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"neg"; }
    break;

  case 218:

/* Line 1464 of yacc.c  */
#line 2003 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"sub"; }
    break;

  case 219:

/* Line 1464 of yacc.c  */
#line 2004 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"add"; }
    break;

  case 220:

/* Line 1464 of yacc.c  */
#line 2005 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"mul"; }
    break;

  case 221:

/* Line 1464 of yacc.c  */
#line 2006 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"div"; }
    break;

  case 222:

/* Line 1464 of yacc.c  */
#line 2007 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"mod"; }
    break;

  case 223:

/* Line 1464 of yacc.c  */
#line 2008 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"fdiv"; }
    break;

  case 224:

/* Line 1464 of yacc.c  */
#line 2009 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"pow"; }
    break;

  case 225:

/* Line 1464 of yacc.c  */
#line 2010 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"concat"; }
    break;

  case 226:

/* Line 1464 of yacc.c  */
#line 2011 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"iseq"; }
    break;

  case 227:

/* Line 1464 of yacc.c  */
#line 2012 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"isne"; }
    break;

  case 228:

/* Line 1464 of yacc.c  */
#line 2013 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"isgt"; }
    break;

  case 229:

/* Line 1464 of yacc.c  */
#line 2014 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"isge"; }
    break;

  case 230:

/* Line 1464 of yacc.c  */
#line 2015 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"islt"; }
    break;

  case 231:

/* Line 1464 of yacc.c  */
#line 2016 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"isle"; }
    break;

  case 232:

/* Line 1464 of yacc.c  */
#line 2017 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"shl"; }
    break;

  case 233:

/* Line 1464 of yacc.c  */
#line 2018 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"shr"; }
    break;

  case 234:

/* Line 1464 of yacc.c  */
#line 2019 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"lsr"; }
    break;

  case 235:

/* Line 1464 of yacc.c  */
#line 2020 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"and"; }
    break;

  case 236:

/* Line 1464 of yacc.c  */
#line 2021 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"or"; }
    break;

  case 237:

/* Line 1464 of yacc.c  */
#line 2022 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"xor"; }
    break;

  case 238:

/* Line 1464 of yacc.c  */
#line 2023 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"band"; }
    break;

  case 239:

/* Line 1464 of yacc.c  */
#line 2024 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"bor"; }
    break;

  case 240:

/* Line 1464 of yacc.c  */
#line 2025 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"bxor"; }
    break;

  case 241:

/* Line 1464 of yacc.c  */
#line 2031 "compilers/imcc/imcc.y"
    {
           (yyval.i) = IMCC_create_itcall_label(interp);
           (yyval.i)->type &= ~ITCALL;
           (yyval.i)->type |= ITRESULT;
         }
    break;

  case 242:

/* Line 1464 of yacc.c  */
#line 2036 "compilers/imcc/imcc.y"
    {  (yyval.i) = 0; }
    break;

  case 243:

/* Line 1464 of yacc.c  */
#line 2043 "compilers/imcc/imcc.y"
    { (yyval.i) = MK_I(interp, IMCC_INFO(interp)->cur_unit, (yyvsp[(2) - (3)].s), 2, (yyvsp[(1) - (3)].sr), (yyvsp[(3) - (3)].sr)); }
    break;

  case 244:

/* Line 1464 of yacc.c  */
#line 2047 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"add"; }
    break;

  case 245:

/* Line 1464 of yacc.c  */
#line 2048 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"sub"; }
    break;

  case 246:

/* Line 1464 of yacc.c  */
#line 2049 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"mul"; }
    break;

  case 247:

/* Line 1464 of yacc.c  */
#line 2050 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"div"; }
    break;

  case 248:

/* Line 1464 of yacc.c  */
#line 2051 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"mod"; }
    break;

  case 249:

/* Line 1464 of yacc.c  */
#line 2052 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"fdiv"; }
    break;

  case 250:

/* Line 1464 of yacc.c  */
#line 2053 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"concat"; }
    break;

  case 251:

/* Line 1464 of yacc.c  */
#line 2054 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"band"; }
    break;

  case 252:

/* Line 1464 of yacc.c  */
#line 2055 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"bor"; }
    break;

  case 253:

/* Line 1464 of yacc.c  */
#line 2056 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"bxor"; }
    break;

  case 254:

/* Line 1464 of yacc.c  */
#line 2057 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"shr"; }
    break;

  case 255:

/* Line 1464 of yacc.c  */
#line 2058 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"shl"; }
    break;

  case 256:

/* Line 1464 of yacc.c  */
#line 2059 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"lsr"; }
    break;

  case 257:

/* Line 1464 of yacc.c  */
#line 2065 "compilers/imcc/imcc.y"
    {
        (yyval.i) = func_ins(interp, IMCC_INFO(interp)->cur_unit, (yyvsp[(1) - (4)].sr), (yyvsp[(3) - (4)].s),
                      IMCC_INFO(interp) -> regs,
                      IMCC_INFO(interp) -> nargs,
                      IMCC_INFO(interp) -> keyvec, 1);
         mem_sys_free((yyvsp[(3) - (4)].s));
       }
    break;

  case 258:

/* Line 1464 of yacc.c  */
#line 2075 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_sub_address(interp, (yyvsp[(1) - (1)].s));       mem_sys_free((yyvsp[(1) - (1)].s)); }
    break;

  case 259:

/* Line 1464 of yacc.c  */
#line 2076 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_sub_address_fromc(interp, (yyvsp[(1) - (1)].s)); mem_sys_free((yyvsp[(1) - (1)].s)); }
    break;

  case 260:

/* Line 1464 of yacc.c  */
#line 2077 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_sub_address_u(interp, (yyvsp[(1) - (1)].s));     mem_sys_free((yyvsp[(1) - (1)].s)); }
    break;

  case 261:

/* Line 1464 of yacc.c  */
#line 2079 "compilers/imcc/imcc.y"
    {
           (yyval.sr) = (yyvsp[(1) - (1)].sr);
           if ((yyvsp[(1) - (1)].sr)->set != 'P')
               IMCC_fataly(interp, EXCEPTION_SYNTAX_ERROR, "Sub isn't a PMC");
         }
    break;

  case 262:

/* Line 1464 of yacc.c  */
#line 2085 "compilers/imcc/imcc.y"
    {
            /* disallow bareword method names; SREG name constants are fine */
            const char * const name = (yyvsp[(3) - (3)].sr)->name;
            if (!((yyvsp[(3) - (3)].sr)->type & VTREG)) {
                if (*name != '\'' || *name != '\"')
                    IMCC_fataly(interp, EXCEPTION_SYNTAX_ERROR,
                        "Bareword method name '%s' not allowed in PIR",
                        (yyvsp[(3) - (3)].sr)->name);
            }

            IMCC_INFO(interp)->cur_obj = (yyvsp[(1) - (3)].sr);
            (yyval.sr)                         = (yyvsp[(3) - (3)].sr);
        }
    break;

  case 263:

/* Line 1464 of yacc.c  */
#line 2099 "compilers/imcc/imcc.y"
    {
            IMCC_INFO(interp)->cur_obj = (yyvsp[(1) - (3)].sr);
            (yyval.sr)                         = mk_const(interp, (yyvsp[(3) - (3)].s), 'U');
            mem_sys_free((yyvsp[(3) - (3)].s));
         }
    break;

  case 264:

/* Line 1464 of yacc.c  */
#line 2105 "compilers/imcc/imcc.y"
    {
            IMCC_INFO(interp)->cur_obj = (yyvsp[(1) - (3)].sr);
            (yyval.sr)                         = mk_const(interp, (yyvsp[(3) - (3)].s), 'S');
            mem_sys_free((yyvsp[(3) - (3)].s));
         }
    break;

  case 265:

/* Line 1464 of yacc.c  */
#line 2110 "compilers/imcc/imcc.y"
    { IMCC_INFO(interp)->cur_obj = (yyvsp[(1) - (3)].sr); (yyval.sr) = (yyvsp[(3) - (3)].sr); }
    break;

  case 266:

/* Line 1464 of yacc.c  */
#line 2116 "compilers/imcc/imcc.y"
    {
           (yyval.i) = IMCC_create_itcall_label(interp);
           IMCC_itcall_sub(interp, (yyvsp[(1) - (1)].sr));
         }
    break;

  case 267:

/* Line 1464 of yacc.c  */
#line 2120 "compilers/imcc/imcc.y"
    { (yyval.i) = (yyvsp[(2) - (5)].i); }
    break;

  case 268:

/* Line 1464 of yacc.c  */
#line 2124 "compilers/imcc/imcc.y"
    { (yyval.sr) = 0; }
    break;

  case 269:

/* Line 1464 of yacc.c  */
#line 2126 "compilers/imcc/imcc.y"
    {
           (yyval.sr) = 0;
           if (IMCC_INFO(interp)->adv_named_id) {
               add_pcc_named_arg(interp, IMCC_INFO(interp)->cur_call, IMCC_INFO(interp)->adv_named_id, (yyvsp[(3) - (3)].sr));
               IMCC_INFO(interp)->adv_named_id = NULL;
           }
           else
               add_pcc_arg(interp, IMCC_INFO(interp)->cur_call, (yyvsp[(3) - (3)].sr));
         }
    break;

  case 270:

/* Line 1464 of yacc.c  */
#line 2136 "compilers/imcc/imcc.y"
    {
           (yyval.sr) = 0;
           if (IMCC_INFO(interp)->adv_named_id) {
               add_pcc_named_arg(interp, IMCC_INFO(interp)->cur_call, IMCC_INFO(interp)->adv_named_id, (yyvsp[(1) - (1)].sr));
               IMCC_INFO(interp)->adv_named_id = NULL;
           }
           else
               add_pcc_arg(interp, IMCC_INFO(interp)->cur_call, (yyvsp[(1) - (1)].sr));
         }
    break;

  case 271:

/* Line 1464 of yacc.c  */
#line 2146 "compilers/imcc/imcc.y"
    {
           (yyval.sr) = 0;
           add_pcc_named_arg(interp, IMCC_INFO(interp)->cur_call,
                mk_const(interp, (yyvsp[(3) - (5)].s), 'S'), (yyvsp[(5) - (5)].sr));
           mem_sys_free((yyvsp[(3) - (5)].s));
         }
    break;

  case 272:

/* Line 1464 of yacc.c  */
#line 2153 "compilers/imcc/imcc.y"
    {
           (yyval.sr) = 0;
           add_pcc_named_arg_var(interp, IMCC_INFO(interp)->cur_call, (yyvsp[(1) - (3)].sr), (yyvsp[(3) - (3)].sr));
         }
    break;

  case 273:

/* Line 1464 of yacc.c  */
#line 2158 "compilers/imcc/imcc.y"
    {
           (yyval.sr) = 0;
           add_pcc_named_arg(interp, IMCC_INFO(interp)->cur_call,
                mk_const(interp, (yyvsp[(1) - (3)].s), 'S'), (yyvsp[(3) - (3)].sr));
           mem_sys_free((yyvsp[(1) - (3)].s));
         }
    break;

  case 274:

/* Line 1464 of yacc.c  */
#line 2167 "compilers/imcc/imcc.y"
    { (yyval.sr) = (yyvsp[(1) - (2)].sr); (yyval.sr)->type |= (yyvsp[(2) - (2)].t); }
    break;

  case 275:

/* Line 1464 of yacc.c  */
#line 2171 "compilers/imcc/imcc.y"
    { (yyval.t) = 0; }
    break;

  case 276:

/* Line 1464 of yacc.c  */
#line 2172 "compilers/imcc/imcc.y"
    { (yyval.t) = (yyvsp[(1) - (2)].t) | (yyvsp[(2) - (2)].t); }
    break;

  case 277:

/* Line 1464 of yacc.c  */
#line 2176 "compilers/imcc/imcc.y"
    { (yyval.t) = VT_FLAT;     }
    break;

  case 278:

/* Line 1464 of yacc.c  */
#line 2177 "compilers/imcc/imcc.y"
    { (yyval.t) = VT_NAMED;    }
    break;

  case 279:

/* Line 1464 of yacc.c  */
#line 2178 "compilers/imcc/imcc.y"
    { (yyval.t) = VT_CALL_SIG; }
    break;

  case 280:

/* Line 1464 of yacc.c  */
#line 2180 "compilers/imcc/imcc.y"
    { adv_named_set_u(interp, (yyvsp[(3) - (4)].s)); mem_sys_free((yyvsp[(3) - (4)].s)); (yyval.t) = 0; }
    break;

  case 281:

/* Line 1464 of yacc.c  */
#line 2181 "compilers/imcc/imcc.y"
    { adv_named_set(interp, (yyvsp[(3) - (4)].s));   mem_sys_free((yyvsp[(3) - (4)].s)); (yyval.t) = 0; }
    break;

  case 282:

/* Line 1464 of yacc.c  */
#line 2185 "compilers/imcc/imcc.y"
    { (yyval.sr) = (yyvsp[(1) - (2)].sr); (yyval.sr)->type |= (yyvsp[(2) - (2)].t); }
    break;

  case 283:

/* Line 1464 of yacc.c  */
#line 2190 "compilers/imcc/imcc.y"
    {
           (yyval.sr) = 0;
           if (IMCC_INFO(interp)->adv_named_id) {
               add_pcc_named_result(interp, IMCC_INFO(interp)->cur_call, IMCC_INFO(interp)->adv_named_id, (yyvsp[(3) - (3)].sr));
               IMCC_INFO(interp)->adv_named_id = NULL;
           }
           else
               add_pcc_result(interp, IMCC_INFO(interp)->cur_call, (yyvsp[(3) - (3)].sr));
         }
    break;

  case 284:

/* Line 1464 of yacc.c  */
#line 2200 "compilers/imcc/imcc.y"
    {
            add_pcc_named_result(interp, IMCC_INFO(interp)->cur_call,
                    mk_const(interp, (yyvsp[(3) - (5)].s), 'S'), (yyvsp[(5) - (5)].sr));
            mem_sys_free((yyvsp[(3) - (5)].s));
         }
    break;

  case 285:

/* Line 1464 of yacc.c  */
#line 2206 "compilers/imcc/imcc.y"
    {
           (yyval.sr) = 0;
           if (IMCC_INFO(interp)->adv_named_id) {
               add_pcc_named_result(interp, IMCC_INFO(interp)->cur_call, IMCC_INFO(interp)->adv_named_id, (yyvsp[(1) - (1)].sr));
               IMCC_INFO(interp)->adv_named_id = NULL;
           }
           else
               add_pcc_result(interp, IMCC_INFO(interp)->cur_call, (yyvsp[(1) - (1)].sr));
         }
    break;

  case 286:

/* Line 1464 of yacc.c  */
#line 2216 "compilers/imcc/imcc.y"
    {
           add_pcc_named_result(interp, IMCC_INFO(interp)->cur_call, mk_const(interp, (yyvsp[(1) - (3)].s), 'S'), (yyvsp[(3) - (3)].sr));
           mem_sys_free((yyvsp[(1) - (3)].s));
         }
    break;

  case 287:

/* Line 1464 of yacc.c  */
#line 2220 "compilers/imcc/imcc.y"
    { (yyval.sr) = 0; }
    break;

  case 288:

/* Line 1464 of yacc.c  */
#line 2224 "compilers/imcc/imcc.y"
    { (yyval.i) = (yyvsp[(1) - (1)].i); }
    break;

  case 289:

/* Line 1464 of yacc.c  */
#line 2225 "compilers/imcc/imcc.y"
    { (yyval.i) = (yyvsp[(1) - (1)].i); }
    break;

  case 290:

/* Line 1464 of yacc.c  */
#line 2230 "compilers/imcc/imcc.y"
    {
           (yyval.i) =MK_I(interp, IMCC_INFO(interp)->cur_unit, inv_op((yyvsp[(3) - (6)].s)), 3, (yyvsp[(2) - (6)].sr), (yyvsp[(4) - (6)].sr), (yyvsp[(6) - (6)].sr));
         }
    break;

  case 291:

/* Line 1464 of yacc.c  */
#line 2234 "compilers/imcc/imcc.y"
    {
           (yyval.i) = MK_I(interp, IMCC_INFO(interp)->cur_unit, "unless_null", 2, (yyvsp[(3) - (5)].sr), (yyvsp[(5) - (5)].sr));
         }
    break;

  case 292:

/* Line 1464 of yacc.c  */
#line 2238 "compilers/imcc/imcc.y"
    {
           (yyval.i) = MK_I(interp, IMCC_INFO(interp)->cur_unit, "unless", 2, (yyvsp[(2) - (4)].sr), (yyvsp[(4) - (4)].sr));
         }
    break;

  case 293:

/* Line 1464 of yacc.c  */
#line 2245 "compilers/imcc/imcc.y"
    {
           (yyval.i) = MK_I(interp, IMCC_INFO(interp)->cur_unit, "if", 2, (yyvsp[(2) - (4)].sr), (yyvsp[(4) - (4)].sr));
         }
    break;

  case 294:

/* Line 1464 of yacc.c  */
#line 2249 "compilers/imcc/imcc.y"
    {
           (yyval.i) =MK_I(interp, IMCC_INFO(interp)->cur_unit, (yyvsp[(3) - (6)].s), 3, (yyvsp[(2) - (6)].sr), (yyvsp[(4) - (6)].sr), (yyvsp[(6) - (6)].sr));
         }
    break;

  case 295:

/* Line 1464 of yacc.c  */
#line 2253 "compilers/imcc/imcc.y"
    {
           (yyval.i) = MK_I(interp, IMCC_INFO(interp)->cur_unit, "if_null", 2, (yyvsp[(3) - (5)].sr), (yyvsp[(5) - (5)].sr));
         }
    break;

  case 296:

/* Line 1464 of yacc.c  */
#line 2259 "compilers/imcc/imcc.y"
    { (yyval.t) = 0; }
    break;

  case 297:

/* Line 1464 of yacc.c  */
#line 2260 "compilers/imcc/imcc.y"
    { (yyval.t) = 0; }
    break;

  case 298:

/* Line 1464 of yacc.c  */
#line 2264 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"eq"; }
    break;

  case 299:

/* Line 1464 of yacc.c  */
#line 2265 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"ne"; }
    break;

  case 300:

/* Line 1464 of yacc.c  */
#line 2266 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"gt"; }
    break;

  case 301:

/* Line 1464 of yacc.c  */
#line 2267 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"ge"; }
    break;

  case 302:

/* Line 1464 of yacc.c  */
#line 2268 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"lt"; }
    break;

  case 303:

/* Line 1464 of yacc.c  */
#line 2269 "compilers/imcc/imcc.y"
    { (yyval.s) = (char *)"le"; }
    break;

  case 306:

/* Line 1464 of yacc.c  */
#line 2278 "compilers/imcc/imcc.y"
    { (yyval.sr) = NULL; }
    break;

  case 307:

/* Line 1464 of yacc.c  */
#line 2279 "compilers/imcc/imcc.y"
    { (yyval.sr) = (yyvsp[(1) - (1)].sr); }
    break;

  case 308:

/* Line 1464 of yacc.c  */
#line 2283 "compilers/imcc/imcc.y"
    { (yyval.sr) = IMCC_INFO(interp)->regs[0]; }
    break;

  case 310:

/* Line 1464 of yacc.c  */
#line 2288 "compilers/imcc/imcc.y"
    { IMCC_INFO(interp)->regs[IMCC_INFO(interp)->nargs++] = (yyvsp[(1) - (1)].sr); }
    break;

  case 311:

/* Line 1464 of yacc.c  */
#line 2290 "compilers/imcc/imcc.y"
    {
           IMCC_INFO(interp) -> regs[IMCC_INFO(interp)->nargs++] = (yyvsp[(1) - (4)].sr);
           IMCC_INFO(interp) -> keyvec |= KEY_BIT(IMCC_INFO(interp)->nargs);
           IMCC_INFO(interp) -> regs[IMCC_INFO(interp)->nargs++] = (yyvsp[(3) - (4)].sr);
           (yyval.sr) = (yyvsp[(1) - (4)].sr);
         }
    break;

  case 312:

/* Line 1464 of yacc.c  */
#line 2297 "compilers/imcc/imcc.y"
    {
           IMCC_INFO(interp) -> regs[IMCC_INFO(interp)->nargs++] = (yyvsp[(2) - (3)].sr);
           (yyval.sr) = (yyvsp[(2) - (3)].sr);
         }
    break;

  case 314:

/* Line 1464 of yacc.c  */
#line 2304 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_sub_address_fromc(interp, (yyvsp[(1) - (1)].s)); mem_sys_free((yyvsp[(1) - (1)].s)); }
    break;

  case 315:

/* Line 1464 of yacc.c  */
#line 2305 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_sub_address_u(interp, (yyvsp[(1) - (1)].s));  mem_sys_free((yyvsp[(1) - (1)].s)); }
    break;

  case 316:

/* Line 1464 of yacc.c  */
#line 2309 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_sub_address(interp, (yyvsp[(1) - (1)].s)); mem_sys_free((yyvsp[(1) - (1)].s)); }
    break;

  case 317:

/* Line 1464 of yacc.c  */
#line 2310 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_sub_address(interp, (yyvsp[(1) - (1)].s)); mem_sys_free((yyvsp[(1) - (1)].s)); }
    break;

  case 318:

/* Line 1464 of yacc.c  */
#line 2314 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_label_address(interp, (yyvsp[(1) - (1)].s)); mem_sys_free((yyvsp[(1) - (1)].s)); }
    break;

  case 319:

/* Line 1464 of yacc.c  */
#line 2315 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_label_address(interp, (yyvsp[(1) - (1)].s)); mem_sys_free((yyvsp[(1) - (1)].s)); }
    break;

  case 324:

/* Line 1464 of yacc.c  */
#line 2329 "compilers/imcc/imcc.y"
    {
           IMCC_INFO(interp)->nkeys    = 0;
         }
    break;

  case 325:

/* Line 1464 of yacc.c  */
#line 2333 "compilers/imcc/imcc.y"
    {
           (yyval.sr) = link_keys(interp,
                          IMCC_INFO(interp)->nkeys,
                          IMCC_INFO(interp)->keys, 0);
         }
    break;

  case 326:

/* Line 1464 of yacc.c  */
#line 2341 "compilers/imcc/imcc.y"
    {
           IMCC_INFO(interp)->nkeys = 0;
         }
    break;

  case 327:

/* Line 1464 of yacc.c  */
#line 2345 "compilers/imcc/imcc.y"
    {
           (yyval.sr) = link_keys(interp,
                          IMCC_INFO(interp)->nkeys,
                          IMCC_INFO(interp)->keys, 1);
         }
    break;

  case 328:

/* Line 1464 of yacc.c  */
#line 2353 "compilers/imcc/imcc.y"
    { IMCC_INFO(interp)->keys[IMCC_INFO(interp)->nkeys++] = (yyvsp[(1) - (1)].sr); }
    break;

  case 329:

/* Line 1464 of yacc.c  */
#line 2355 "compilers/imcc/imcc.y"
    {
           IMCC_INFO(interp)->keys[IMCC_INFO(interp)->nkeys++] = (yyvsp[(3) - (3)].sr);
           (yyval.sr) = IMCC_INFO(interp)->keys[0];
         }
    break;

  case 330:

/* Line 1464 of yacc.c  */
#line 2363 "compilers/imcc/imcc.y"
    {
           (yyval.sr) = (yyvsp[(1) - (1)].sr);
         }
    break;

  case 331:

/* Line 1464 of yacc.c  */
#line 2369 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_symreg(interp, (yyvsp[(1) - (1)].s), 'I'); }
    break;

  case 332:

/* Line 1464 of yacc.c  */
#line 2370 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_symreg(interp, (yyvsp[(1) - (1)].s), 'N'); }
    break;

  case 333:

/* Line 1464 of yacc.c  */
#line 2371 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_symreg(interp, (yyvsp[(1) - (1)].s), 'S'); }
    break;

  case 334:

/* Line 1464 of yacc.c  */
#line 2372 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_symreg(interp, (yyvsp[(1) - (1)].s), 'P'); }
    break;

  case 335:

/* Line 1464 of yacc.c  */
#line 2373 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_pasm_reg(interp, (yyvsp[(1) - (1)].s)); mem_sys_free((yyvsp[(1) - (1)].s)); }
    break;

  case 336:

/* Line 1464 of yacc.c  */
#line 2377 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_const(interp, (yyvsp[(1) - (1)].s), 'S'); mem_sys_free((yyvsp[(1) - (1)].s)); }
    break;

  case 337:

/* Line 1464 of yacc.c  */
#line 2378 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_const(interp, (yyvsp[(1) - (1)].s), 'U'); mem_sys_free((yyvsp[(1) - (1)].s)); }
    break;

  case 338:

/* Line 1464 of yacc.c  */
#line 2382 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_const(interp, (yyvsp[(1) - (1)].s), 'I'); mem_sys_free((yyvsp[(1) - (1)].s)); }
    break;

  case 339:

/* Line 1464 of yacc.c  */
#line 2383 "compilers/imcc/imcc.y"
    { (yyval.sr) = mk_const(interp, (yyvsp[(1) - (1)].s), 'N'); mem_sys_free((yyvsp[(1) - (1)].s)); }
    break;

  case 340:

/* Line 1464 of yacc.c  */
#line 2384 "compilers/imcc/imcc.y"
    { (yyval.sr) = (yyvsp[(1) - (1)].sr); }
    break;



/* Line 1464 of yacc.c  */
#line 5749 "compilers/imcc/imcparser.c"
      default: break;
    }
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);

  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);

  *++yyvsp = yyval;

  /* Now `shift' the result of the reduction.  Determine what state
     that goes to, based on the state we popped back to and the rule
     number reduced by.  */

  yyn = yyr1[yyn];

  yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    yystate = yytable[yystate];
  else
    yystate = yydefgoto[yyn - YYNTOKENS];

  goto yynewstate;


/*------------------------------------.
| yyerrlab -- here on detecting error |
`------------------------------------*/
yyerrlab:
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
#if ! YYERROR_VERBOSE
      yyerror (yyscanner, interp, YY_("syntax error"));
#else
      {
	YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
	if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
	  {
	    YYSIZE_T yyalloc = 2 * yysize;
	    if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
	      yyalloc = YYSTACK_ALLOC_MAXIMUM;
	    if (yymsg != yymsgbuf)
	      YYSTACK_FREE (yymsg);
	    yymsg = (char *) YYSTACK_ALLOC (yyalloc);
	    if (yymsg)
	      yymsg_alloc = yyalloc;
	    else
	      {
		yymsg = yymsgbuf;
		yymsg_alloc = sizeof yymsgbuf;
	      }
	  }

	if (0 < yysize && yysize <= yymsg_alloc)
	  {
	    (void) yysyntax_error (yymsg, yystate, yychar);
	    yyerror (yyscanner, interp, yymsg);
	  }
	else
	  {
	    yyerror (yyscanner, interp, YY_("syntax error"));
	    if (yysize != 0)
	      goto yyexhaustedlab;
	  }
      }
#endif
    }



  if (yyerrstatus == 3)
    {
      /* If just tried and failed to reuse lookahead token after an
	 error, discard it.  */

      if (yychar <= YYEOF)
	{
	  /* Return failure if at end of input.  */
	  if (yychar == YYEOF)
	    YYABORT;
	}
      else
	{
	  yydestruct ("Error: discarding",
		      yytoken, &yylval, yyscanner, interp);
	  yychar = YYEMPTY;
	}
    }

  /* Else will try to reuse lookahead token after shifting the error
     token.  */
  goto yyerrlab1;


/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR.  |
`---------------------------------------------------*/
yyerrorlab:

  /* Pacify compilers like GCC when the user code never invokes
     YYERROR and the label yyerrorlab therefore never appears in user
     code.  */
  if (/*CONSTCOND*/ 0)
     goto yyerrorlab;

  /* Do not reclaim the symbols of the rule which action triggered
     this YYERROR.  */
  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);
  yystate = *yyssp;
  goto yyerrlab1;


/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
`-------------------------------------------------------------*/
yyerrlab1:
  yyerrstatus = 3;	/* Each real token shifted decrements this.  */

  for (;;)
    {
      yyn = yypact[yystate];
      if (yyn != YYPACT_NINF)
	{
	  yyn += YYTERROR;
	  if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
	    {
	      yyn = yytable[yyn];
	      if (0 < yyn)
		break;
	    }
	}

      /* Pop the current state because it cannot handle the error token.  */
      if (yyssp == yyss)
	YYABORT;


      yydestruct ("Error: popping",
		  yystos[yystate], yyvsp, yyscanner, interp);
      YYPOPSTACK (1);
      yystate = *yyssp;
      YY_STACK_PRINT (yyss, yyssp);
    }

  *++yyvsp = yylval;


  /* Shift the error token.  */
  YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);

  yystate = yyn;
  goto yynewstate;


/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here.  |
`-------------------------------------*/
yyacceptlab:
  yyresult = 0;
  goto yyreturn;

/*-----------------------------------.
| yyabortlab -- YYABORT comes here.  |
`-----------------------------------*/
yyabortlab:
  yyresult = 1;
  goto yyreturn;

#if !defined(yyoverflow) || YYERROR_VERBOSE
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here.  |
`-------------------------------------------------*/
yyexhaustedlab:
  yyerror (yyscanner, interp, YY_("memory exhausted"));
  yyresult = 2;
  /* Fall through.  */
#endif

yyreturn:
  if (yychar != YYEMPTY)
     yydestruct ("Cleanup: discarding lookahead",
		 yytoken, &yylval, yyscanner, interp);
  /* Do not reclaim the symbols of the rule which action triggered
     this YYABORT or YYACCEPT.  */
  YYPOPSTACK (yylen);
  YY_STACK_PRINT (yyss, yyssp);
  while (yyssp != yyss)
    {
      yydestruct ("Cleanup: popping",
		  yystos[*yyssp], yyvsp, yyscanner, interp);
      YYPOPSTACK (1);
    }
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
#endif
#if YYERROR_VERBOSE
  if (yymsg != yymsgbuf)
    YYSTACK_FREE (yymsg);
#endif
  /* Make sure YYID is used.  */
  return YYID (yyresult);
}



/* Line 1684 of yacc.c  */
#line 2390 "compilers/imcc/imcc.y"


/* I need this prototype somewhere... */
char *yyget_text(yyscan_t yyscanner);

/* I do not like this function, but, atm, it is the only way I can
 * make the code in yyerror work without segfault on some specific
 * cases.
 */
/* int yyholds_char(yyscan_t yyscanner); */

int yyerror(void *yyscanner, PARROT_INTERP, const char *s)
{
    /* If the error occurr in the end of the buffer (I mean, the last
     * token was already read), yyget_text will return a pointer
     * outside the bison buffer, and thus, not "accessible" by
     * us. This means it may segfault. */
    const char * const chr = yyget_text((yyscan_t)yyscanner);

    /* IMCC_fataly(interp, EXCEPTION_SYNTAX_ERROR, s); */
    /* --- This was called before, not sure if I should call some
           similar function that does not die like this one. */

    /* Basically, if current token is a newline, it mean the error was
     * before the newline, and thus, line is the line *after* the
     * error. Instead of duplicating code for both cases (the 'newline' and
     * non-newline case, do the test twice; efficiency is not important when
     * we have an error anyway. */
    if (!at_eof(yyscanner)) {
        IMCC_warning(interp, "error:imcc:%s", s);

        /* don't print the current token if it is a newline */
        if (*chr != '\n')
            IMCC_warning(interp, " ('%s')", chr);

        IMCC_print_inc(interp);
    }

    /* scanner is at EOF; just to be sure, don't print "current" token */
    else {
        IMCC_warning(interp, "error:imcc:%s", s);
        IMCC_print_inc(interp);
    }

    return 0;
}

/*

=back

 */
/*
 * Local variables:
 *   c-file-style: "parrot"
 * End:
 * vim: expandtab shiftwidth=4:
 */

