/* 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.5.  */

/* Bison implementation for Yacc-like parsers in C
   
      Copyright (C) 1984, 1989-1990, 2000-2011 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.5"

/* 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 268 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.
 *
 *
 */

#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"
#include "instructions.h"
#include "symreg.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(
    ARGMOD(imc_info_t *imcc),
    ARGMOD(SymReg *cur_call),
    ARGMOD(SymReg *name),
    ARGMOD(SymReg *value))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        __attribute__nonnull__(3)
        __attribute__nonnull__(4)
        FUNC_MODIFIES(*imcc)
        FUNC_MODIFIES(*cur_call)
        FUNC_MODIFIES(*name)
        FUNC_MODIFIES(*value);

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

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

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

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

static void adv_named_set(ARGMOD(imc_info_t *imcc), ARGIN(const char *name))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        FUNC_MODIFIES(*imcc);

static void adv_named_set_u(
    ARGMOD(imc_info_t *imcc),
    ARGIN(const char *name))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        FUNC_MODIFIES(*imcc);

static void begin_return_or_yield(ARGMOD(imc_info_t *imcc), int yield)
        __attribute__nonnull__(1)
        FUNC_MODIFIES(*imcc);

static void clear_state(ARGMOD(imc_info_t *imcc))
        __attribute__nonnull__(1)
        FUNC_MODIFIES(*imcc);

static void do_loadlib(ARGMOD(imc_info_t *imcc), ARGIN(const char *lib))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        FUNC_MODIFIES(*imcc);

PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
static Instruction* func_ins(
    ARGMOD(imc_info_t *imcc),
    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(*imcc)
        FUNC_MODIFIES(*unit)
        FUNC_MODIFIES(*r);

PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
static Instruction * iINDEXFETCH(
    ARGMOD(imc_info_t *imcc),
    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(*imcc)
        FUNC_MODIFIES(*unit);

PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
static Instruction * iINDEXSET(
    ARGMOD(imc_info_t *imcc),
    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(*imcc)
        FUNC_MODIFIES(*unit);

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
static Instruction * iLABEL(
    ARGMOD(imc_info_t *imcc),
    ARGMOD_NULLOK(IMC_Unit *unit),
    ARGMOD(SymReg *r0))
        __attribute__nonnull__(1)
        __attribute__nonnull__(3)
        FUNC_MODIFIES(*imcc)
        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(
    ARGMOD(imc_info_t *imcc),
    ARGMOD_NULLOK(IMC_Unit *unit),
    ARGMOD(SymReg *r))
        __attribute__nonnull__(1)
        __attribute__nonnull__(3)
        FUNC_MODIFIES(*imcc)
        FUNC_MODIFIES(*unit)
        FUNC_MODIFIES(*r);

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

PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
static Instruction* mk_pmc_const_named(
    ARGMOD(imc_info_t *imcc),
    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(*imcc)
        FUNC_MODIFIES(*unit)
        FUNC_MODIFIES(*left);

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
static SymReg * mk_sub_address_fromc(
    ARGMOD(imc_info_t *imcc),
    ARGIN(const char *name))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        FUNC_MODIFIES(*imcc);

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
static SymReg * mk_sub_address_u(
    ARGMOD(imc_info_t *imcc),
    ARGIN(const char *name))
        __attribute__nonnull__(1)
        __attribute__nonnull__(2)
        FUNC_MODIFIES(*imcc);

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

#define ASSERT_ARGS_add_pcc_named_arg __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(imcc) \
    , 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(imcc) \
    , 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(imcc) \
    , 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(imcc) \
    , 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(imcc) \
    , 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(imcc) \
    , PARROT_ASSERT_ARG(name))
#define ASSERT_ARGS_adv_named_set_u __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(imcc) \
    , PARROT_ASSERT_ARG(name))
#define ASSERT_ARGS_begin_return_or_yield __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(imcc))
#define ASSERT_ARGS_clear_state __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(imcc))
#define ASSERT_ARGS_do_loadlib __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(imcc) \
    , PARROT_ASSERT_ARG(lib))
#define ASSERT_ARGS_func_ins __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(imcc) \
    , 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(imcc) \
    , 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(imcc) \
    , 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(imcc) \
    , 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(imcc) \
    , PARROT_ASSERT_ARG(r))
#define ASSERT_ARGS_MK_I __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(imcc) \
    , PARROT_ASSERT_ARG(unit) \
    , PARROT_ASSERT_ARG(fmt))
#define ASSERT_ARGS_mk_pmc_const_named __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(imcc) \
    , 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(imcc) \
    , PARROT_ASSERT_ARG(name))
#define ASSERT_ARGS_mk_sub_address_u __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(imcc) \
    , PARROT_ASSERT_ARG(name))
#define ASSERT_ARGS_set_lexical __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
       PARROT_ASSERT_ARG(imcc) \
    , 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

/* Warning: parser is probably not reentrant */

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


/*

=over 4

=item C<static Instruction * MK_I(imc_info_t *imcc, 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->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(ARGMOD(imc_info_t *imcc), 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(imcc, unit, opname, fmt, r, n, imcc->keyvec, 1);
}

/*

=item C<static Instruction* mk_pmc_const_named(imc_info_t *imcc, 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(ARGMOD(imc_info_t *imcc), 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->state->pasm_file) {
            IMCC_fataly(imcc, 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(imcc, const_name, 'p');

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

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

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

    mem_sys_free(unquoted_name);
    mem_sys_free(const_name);

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

/*

=item C<static Instruction* func_ins(imc_info_t *imcc, 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(ARGMOD(imc_info_t *imcc), 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(imcc, unit, op, "", r, n+1, keyv, emit);
}

/*

=item C<static void clear_state(imc_info_t *imcc)>

=cut

*/

static void
clear_state(ARGMOD(imc_info_t *imcc))
{
    ASSERT_ARGS(clear_state)
    imcc -> nargs = 0;
    imcc -> keyvec = 0;
}

/*

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

=cut

*/

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
Instruction *
INS_LABEL(ARGMOD(imc_info_t *imcc), 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(imcc, unit, ins);

    return ins;
}

/*

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

=cut

*/

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

    clear_state(imcc);
    return i;
}

/*

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

=cut

*/

PARROT_IGNORABLE_RESULT
PARROT_CANNOT_RETURN_NULL
static Instruction *
iSUBROUTINE(ARGMOD(imc_info_t *imcc), ARGMOD_NULLOK(IMC_Unit *unit), ARGMOD(SymReg *r))
{
    ASSERT_ARGS(iSUBROUTINE)
    Instruction * const i = iLABEL(imcc, unit, r);
    i->type              |= ITPCCPARAM;

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

    imcc->cur_call = r;
    i->line = imcc->line;

    add_namespace(imcc, unit);
    return i;
}

/*

=item C<static Instruction * iINDEXFETCH(imc_info_t *imcc, 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(ARGMOD(imc_info_t *imcc), ARGMOD(IMC_Unit *unit), ARGIN(SymReg *r0),
        ARGIN(SymReg *r1), ARGIN(SymReg *r2))
{
    ASSERT_ARGS(iINDEXFETCH)
    imcc -> keyvec |= KEY_BIT(2);
    return MK_I(imcc, unit, "set %s, %s[%s]", 3, r0, r1, r2);
}

/*

=item C<static Instruction * iINDEXSET(imc_info_t *imcc, 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(ARGMOD(imc_info_t *imcc), ARGMOD(IMC_Unit *unit), ARGIN(SymReg *r0),
        ARGIN(SymReg *r1), ARGIN(SymReg *r2))
{
    ASSERT_ARGS(iINDEXSET)
    if (r0->set == 'P') {
        imcc->keyvec |= KEY_BIT(1);
        MK_I(imcc, unit, "set %s[%s], %s", 3, r0, r1, r2);
    }
    else
        IMCC_fataly(imcc, 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(imc_info_t *imcc)>

=cut

*/

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
Instruction *
IMCC_create_itcall_label(ARGMOD(imc_info_t *imcc))
{
    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->cnr++);

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

    imcc->cur_call = r;

    return i;
}

/*

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

=cut

*/

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
static SymReg *
mk_sub_address_fromc(ARGMOD(imc_info_t *imcc), 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(imcc->interp, name, '"', NULL);
        name_copy         = Parrot_str_to_cstring(imcc->interp, unescaped);
    }
    else {
        name_copy = mem_sys_strdup(name);
        name_copy[strlen(name) - 1] = 0;
    }

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

    return r;
}

/*

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

=cut

*/

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

    return r;
}

/*

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

=cut

*/

void
IMCC_itcall_sub(ARGMOD(imc_info_t *imcc), ARGIN(SymReg *sub))
{
    ASSERT_ARGS(IMCC_itcall_sub)
    imcc->cur_call->pcc_sub->sub = sub;

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

        imcc->cur_call->pcc_sub->object = imcc->cur_obj;
        imcc->cur_obj = NULL;
    }
}


/*

=item C<static void begin_return_or_yield(imc_info_t *imcc, int yield)>

=cut

*/

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

    if (!ins || !ins->symregs[0] || !(ins->symregs[0]->type & VT_PCC_SUB))
        IMCC_fataly(imcc, 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->cnr++);
    imcc->sr_return = mk_pcc_sub(imcc, name, 0);
    i = iLABEL(imcc, imcc->cur_unit, imcc->sr_return);
    i->type = yield ? ITPCCSUB | ITLABEL | ITPCCYIELD : ITPCCSUB | ITLABEL ;
    imcc->asm_state = yield ? AsmInYield : AsmInReturn;
}

/*

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

=cut

*/

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

    r->usage |= U_LEXICAL;

    if (name == r->reg)
        IMCC_fataly(imcc, 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(imc_info_t *imcc, SymReg *cur_call, SymReg
*name, SymReg *value)>

=cut

*/

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

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

/*

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

=cut

*/

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

/*

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

=cut

*/

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

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

/*

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

=cut

*/

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

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

/*

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

=cut

*/

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

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

/*

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

=item C<static void adv_named_set_u(imc_info_t *imcc, 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(ARGMOD(imc_info_t *imcc), ARGIN(const char *name))
{
    ASSERT_ARGS(adv_named_set)
    if (imcc->adv_named_id)
        IMCC_fataly(imcc, EXCEPTION_SYNTAX_ERROR,
                    "Named parameter with more than one name.\n");

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

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

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

/*

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

=cut

*/

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

    /* store non-dynoplib library deps here, dynoplibs are treated separately for now */
    /* TODO: This is very ugly and heavily nested. Can we avoid this? */
    if (!STRING_equal(imcc->interp,
            VTABLE_get_string(imcc->interp,
                VTABLE_getprop(imcc->interp, lib_pmc,
                    Parrot_str_new_constant(imcc->interp, "_type"))),
            Parrot_str_new_constant(imcc->interp, "Ops")))
        imcc_pbc_add_libdep(imcc, s);
}

/* HEADERIZER STOP */



/* Line 268 of yacc.c  */
#line 1097 "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,
     INVOCANT = 335,
     MAIN = 336,
     LOAD = 337,
     INIT = 338,
     IMMEDIATE = 339,
     POSTCOMP = 340,
     METHOD = 341,
     ANON = 342,
     OUTER = 343,
     NEED_LEX = 344,
     MULTI = 345,
     SUBTAG = 346,
     VTABLE_METHOD = 347,
     LOADLIB = 348,
     SUB_INSTANCE_OF = 349,
     SUBID = 350,
     NS_ENTRY = 351,
     LABEL = 352,
     EMIT = 353,
     EOM = 354,
     IREG = 355,
     NREG = 356,
     SREG = 357,
     PREG = 358,
     IDENTIFIER = 359,
     REG = 360,
     MACRO = 361,
     ENDM = 362,
     STRINGC = 363,
     INTC = 364,
     FLOATC = 365,
     USTRINGC = 366,
     PARROT_OP = 367,
     VAR = 368,
     LINECOMMENT = 369,
     FILECOMMENT = 370,
     DOT = 371,
     CONCAT = 372
   };
#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 INVOCANT 335
#define MAIN 336
#define LOAD 337
#define INIT 338
#define IMMEDIATE 339
#define POSTCOMP 340
#define METHOD 341
#define ANON 342
#define OUTER 343
#define NEED_LEX 344
#define MULTI 345
#define SUBTAG 346
#define VTABLE_METHOD 347
#define LOADLIB 348
#define SUB_INSTANCE_OF 349
#define SUBID 350
#define NS_ENTRY 351
#define LABEL 352
#define EMIT 353
#define EOM 354
#define IREG 355
#define NREG 356
#define SREG 357
#define PREG 358
#define IDENTIFIER 359
#define REG 360
#define MACRO 361
#define ENDM 362
#define STRINGC 363
#define INTC 364
#define FLOATC 365
#define USTRINGC 366
#define PARROT_OP 367
#define VAR 368
#define LINECOMMENT 369
#define FILECOMMENT 370
#define DOT 371
#define CONCAT 372




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

/* Line 293 of yacc.c  */
#line 1026 "compilers/imcc/imcc.y"

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



/* Line 293 of yacc.c  */
#line 1377 "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 343 of yacc.c  */
#line 1389 "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 EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#     ifndef EXIT_SUCCESS
#      define EXIT_SUCCESS 0
#     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 EXIT_SUCCESS \
       && ! ((defined YYMALLOC || defined malloc) \
	     && (defined YYFREE || defined free)))
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   ifndef EXIT_SUCCESS
#    define EXIT_SUCCESS 0
#   endif
#  endif
#  ifndef YYMALLOC
#   define YYMALLOC malloc
#   if ! defined malloc && ! defined EXIT_SUCCESS && (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 EXIT_SUCCESS && (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)

# define YYCOPY_NEEDED 1

/* 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

#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* 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
#endif /* !YYCOPY_NEEDED */

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

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  134
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  129
/* YYNRULES -- Number of rules.  */
#define YYNRULES  335
/* YYNRULES -- Number of states.  */
#define YYNSTATES  531

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

#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,   125,     2,     2,     2,   131,   132,     2,
     123,   124,   129,   128,     2,   127,     2,   130,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,   122,
       2,   119,     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,   120,     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,     2,   133,     2,   126,     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
};

#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,   159,   160,   161,
     167,   171,   176,   177,   181,   183,   185,   187,   189,   191,
     193,   195,   199,   204,   208,   210,   215,   220,   222,   227,
     229,   234,   236,   241,   246,   248,   253,   254,   256,   257,
     267,   268,   271,   272,   276,   277,   279,   281,   284,   286,
     288,   290,   292,   294,   296,   298,   300,   302,   304,   306,
     308,   310,   312,   314,   320,   324,   325,   329,   332,   333,
     337,   341,   342,   347,   348,   351,   353,   355,   357,   359,
     364,   369,   371,   372,   378,   380,   381,   387,   388,   391,
     395,   396,   399,   403,   407,   411,   412,   418,   420,   422,
     423,   425,   429,   433,   439,   441,   444,   445,   447,   450,
     453,   455,   457,   459,   461,   462,   464,   467,   469,   471,
     475,   478,   480,   484,   486,   488,   490,   491,   496,   501,
     506,   507,   514,   516,   517,   524,   527,   530,   533,   536,
     538,   540,   542,   544,   545,   547,   549,   551,   553,   557,
     562,   568,   575,   582,   586,   587,   597,   599,   601,   603,
     607,   609,   611,   613,   615,   617,   619,   621,   623,   625,
     627,   629,   631,   633,   635,   637,   639,   641,   643,   645,
     647,   649,   651,   653,   655,   657,   659,   660,   666,   670,
     674,   676,   678,   680,   682,   684,   686,   688,   690,   692,
     694,   696,   698,   703,   705,   707,   709,   711,   715,   719,
     723,   727,   728,   734,   735,   739,   741,   747,   751,   755,
     758,   759,   762,   764,   766,   768,   773,   778,   781,   785,
     791,   793,   797,   798,   800,   802,   809,   815,   820,   825,
     832,   838,   840,   842,   844,   846,   848,   850,   852,   854,
     856,   858,   859,   861,   865,   867,   869,   874,   878,   880,
     882,   884,   886,   888,   890,   892,   894,   896,   898,   900,
     901,   904,   905,   908,   910,   914,   916,   918,   920,   922,
     924,   926,   928,   930,   932,   934
};

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

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const yytype_uint16 yyrline[] =
{
       0,  1117,  1117,  1121,  1122,  1126,  1127,  1128,  1134,  1140,
    1141,  1142,  1143,  1147,  1148,  1157,  1163,  1171,  1183,  1196,
    1196,  1205,  1205,  1214,  1215,  1219,  1220,  1224,  1225,  1226,
    1227,  1228,  1229,  1230,  1233,  1233,  1241,  1240,  1251,  1255,
    1268,  1272,  1276,  1276,  1288,  1290,  1294,  1309,  1310,  1314,
    1314,  1324,  1325,  1334,  1338,  1342,  1333,  1354,  1356,  1353,
    1383,  1408,  1413,  1416,  1421,  1429,  1430,  1431,  1432,  1433,
    1444,  1455,  1460,  1464,  1471,  1482,  1488,  1497,  1503,  1512,
    1518,  1527,  1533,  1542,  1550,  1555,  1565,  1567,  1572,  1571,
    1597,  1598,  1602,  1603,  1607,  1608,  1612,  1613,  1617,  1625,
    1633,  1634,  1635,  1636,  1637,  1638,  1639,  1640,  1641,  1642,
    1643,  1644,  1645,  1649,  1654,  1661,  1662,  1675,  1680,  1681,
    1689,  1690,  1690,  1702,  1703,  1707,  1708,  1709,  1710,  1711,
    1712,  1713,  1718,  1718,  1721,  1729,  1729,  1735,  1736,  1741,
    1749,  1750,  1755,  1763,  1767,  1772,  1771,  1784,  1785,  1789,
    1790,  1800,  1805,  1815,  1824,  1825,  1837,  1841,  1842,  1844,
    1845,  1846,  1847,  1848,  1852,  1853,  1857,  1858,  1862,  1874,
    1875,  1886,  1893,  1902,  1911,  1912,  1913,  1913,  1926,  1936,
    1942,  1942,  1949,  1950,  1950,  1956,  1962,  1966,  1972,  1973,
    1974,  1975,  1976,  1977,  1981,  1982,  1983,  1984,  1988,  1990,
    1992,  1994,  1996,  1999,  2006,  2005,  2014,  2015,  2016,  2017,
    2025,  2026,  2027,  2031,  2032,  2033,  2034,  2035,  2036,  2037,
    2038,  2039,  2040,  2041,  2042,  2043,  2044,  2045,  2046,  2047,
    2048,  2049,  2050,  2051,  2052,  2053,  2059,  2058,  2070,  2072,
    2082,  2083,  2084,  2085,  2086,  2087,  2088,  2089,  2090,  2091,
    2092,  2093,  2098,  2107,  2108,  2109,  2110,  2116,  2130,  2136,
    2142,  2152,  2151,  2160,  2161,  2171,  2181,  2187,  2192,  2202,
    2206,  2207,  2211,  2212,  2213,  2215,  2221,  2230,  2234,  2244,
    2250,  2260,  2265,  2269,  2270,  2274,  2278,  2282,  2289,  2293,
    2297,  2304,  2305,  2309,  2310,  2311,  2312,  2313,  2314,  2318,
    2319,  2323,  2324,  2328,  2329,  2333,  2334,  2341,  2348,  2349,
    2350,  2354,  2355,  2359,  2360,  2364,  2365,  2369,  2370,  2374,
    2374,  2384,  2384,  2396,  2397,  2405,  2412,  2413,  2414,  2415,
    2416,  2420,  2421,  2425,  2426,  2427
};
#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", "INVOCANT", "MAIN", "LOAD", "INIT", "IMMEDIATE",
  "POSTCOMP", "METHOD", "ANON", "OUTER", "NEED_LEX", "MULTI", "SUBTAG",
  "VTABLE_METHOD", "LOADLIB", "SUB_INSTANCE_OF", "SUBID", "NS_ENTRY",
  "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_param", "$@10", "$@11",
  "sub_param_type_def", "multi", "multi_types", "multi_type", "subtag",
  "subtags", "outer", "vtable", "method", "ns_entry_name", "instanceof",
  "subid", "sub_body", "pcc_sub_call", "@12", "opt_label", "opt_invocant",
  "sub_proto", "sub_proto_list", "proto", "pcc_call", "pcc_args",
  "pcc_arg", "pcc_results", "pcc_result", "$@13", "paramtype_list",
  "paramtype", "pcc_ret", "$@14", "pcc_yield", "$@15", "pcc_returns",
  "pcc_yields", "pcc_return", "pcc_set_yield", "pcc_return_many", "$@16",
  "return_or_yield", "var_returns", "statements", "helper_clear_state",
  "statement", "labels", "_labels", "label", "instruction", "id_list",
  "id_list_id", "labeled_inst", "$@17", "$@18", "$@19", "type",
  "assignment", "@20", "un_op", "bin_op", "get_results", "@21",
  "op_assign", "assign_op", "func_assign", "the_sub", "sub_call", "@22",
  "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", "$@23", "keylist_force", "$@24", "_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,    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,   134,   135,   136,   136,   137,   137,   137,   137,   137,
     137,   137,   137,   138,   138,   139,   139,   140,   141,   143,
     142,   145,   144,   146,   146,   147,   147,   148,   148,   148,
     148,   148,   148,   148,   150,   149,   151,   149,   149,   149,
     149,   152,   154,   153,   155,   155,   156,   157,   157,   159,
     158,   160,   160,   162,   163,   164,   161,   166,   167,   165,
     168,   169,   170,   170,   170,   171,   171,   171,   171,   171,
     171,   171,   172,   173,   173,   174,   174,   175,   175,   176,
     176,   177,   177,   178,   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,   187,   188,   188,   189,   189,   190,   191,   191,
     192,   193,   192,   194,   194,   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,   210,   211,   211,   212,   212,   213,   214,
     214,   215,   215,   216,   217,   217,   218,   217,   217,   217,
     219,   217,   217,   220,   217,   217,   217,   217,   217,   217,
     217,   217,   217,   217,   221,   221,   221,   221,   222,   222,
     222,   222,   222,   222,   223,   222,   222,   222,   222,   222,
     224,   224,   224,   225,   225,   225,   225,   225,   225,   225,
     225,   225,   225,   225,   225,   225,   225,   225,   225,   225,
     225,   225,   225,   225,   225,   225,   227,   226,   228,   228,
     229,   229,   229,   229,   229,   229,   229,   229,   229,   229,
     229,   229,   230,   231,   231,   231,   231,   231,   231,   231,
     231,   233,   232,   234,   234,   234,   234,   234,   234,   235,
     236,   236,   237,   237,   237,   237,   237,   238,   239,   239,
     239,   239,   239,   240,   240,   241,   241,   241,   242,   242,
     242,   243,   243,   244,   244,   244,   244,   244,   244,   245,
     245,   246,   246,   247,   247,   248,   248,   248,   249,   249,
     249,   250,   250,   251,   251,   252,   252,   253,   253,   255,
     254,   257,   256,   258,   258,   259,   260,   260,   260,   260,
     260,   261,   261,   262,   262,   262
};

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

/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
      -1,    11,    12,    13,    14,    15,   204,    16,    17,    27,
      58,    74,   159,    59,    60,    81,    82,   128,   151,    18,
      29,    61,    19,    25,    37,    38,    70,    20,    26,    72,
     177,   205,   221,   315,   231,   101,   169,   170,   102,   172,
     103,   104,   105,   106,   107,   108,   206,   256,   337,   498,
     438,   109,   110,   111,   473,   384,   439,   509,   520,   525,
     316,   369,   257,   338,   258,   339,   385,   386,   443,   447,
     259,   344,   260,   392,   207,   208,   209,    63,    64,    65,
     228,   377,   378,   261,   282,   285,   286,    50,   262,   294,
     358,   425,   263,   289,   264,   314,   265,   266,   267,   297,
     396,   397,   455,   487,   341,   342,   268,   269,   270,   326,
     327,   122,   153,   154,   155,    44,    45,   145,   156,   147,
     188,   189,   181,   182,   213,   214,   124,   125,   126
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -442
static const yytype_int16 yypact[] =
{
     208,  -442,   -66,   -43,   -34,   -61,  -442,  -442,   -32,  -442,
      85,    93,   208,  -442,  -442,  -442,   105,  -442,  -442,  -442,
    -442,  -442,    44,   123,    21,   124,    52,   177,   139,    81,
    -442,  -442,  -442,  -442,    40,  -442,  -442,    41,   -52,  -442,
    -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,
      58,  -442,  -442,  -442,   163,  -442,  -442,  -442,  -442,   125,
    -442,    76,  -442,    19,    70,  -442,   174,  -442,  -442,  -442,
      64,  -442,   457,    74,    94,  -442,  -442,  -442,   461,    97,
    -442,   205,   100,  -442,  -442,   -52,  -442,  -442,  -442,  -442,
    -442,    87,  -442,    91,  -442,    95,    98,   108,   114,   127,
     128,  -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,   216,
     457,  -442,   144,   408,  -442,  -442,  -442,  -442,  -442,  -442,
    -442,  -442,  -442,  -442,  -442,  -442,  -442,   178,   457,  -442,
     388,  -442,     1,   -33,   102,   138,   148,   149,     1,     1,
    -442,  -442,  -442,  -442,  -442,  -442,   145,  -442,   166,   203,
    -442,  -442,   184,  -442,   236,  -442,  -442,  -442,  -442,   186,
     188,   189,  -442,  -442,  -442,  -442,  -442,  -442,  -442,   -58,
    -442,  -442,   -54,   190,   193,   194,   195,    30,     1,  -442,
    -442,   199,   461,  -442,   388,  -442,  -442,  -442,   200,   461,
     102,  -442,   213,  -442,  -442,  -442,  -442,  -442,  -442,   221,
     327,  -442,  -442,  -442,  -442,  -442,   268,    32,    17,  -442,
    -442,  -442,  -442,   218,  -442,   222,  -442,  -442,   218,  -442,
    -442,   177,   272,  -442,  -442,  -442,   345,   232,  -442,   461,
    -442,   346,   247,   144,  -442,   -50,   302,   334,   461,  -442,
      24,   244,  -442,  -442,    68,  -442,  -442,   350,   352,   353,
    -442,  -442,  -442,   388,  -442,  -442,  -442,  -442,  -442,  -442,
     237,   357,  -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,
    -442,   441,  -442,  -442,  -442,  -442,  -442,   461,   233,   461,
     233,  -442,   177,   292,   294,   177,   177,  -442,   248,   243,
    -442,  -442,  -442,  -442,   318,  -442,  -442,   245,  -442,  -442,
    -442,  -442,   461,  -442,  -442,  -442,  -442,  -442,  -442,  -442,
    -442,   475,   173,  -442,   461,  -442,   308,   359,  -442,  -442,
    -442,  -442,  -442,  -442,  -442,  -442,   -50,   461,   360,   -50,
     461,   266,   167,   167,   267,   271,   318,  -442,  -442,  -442,
     351,  -442,   -53,  -442,   489,   503,  -442,  -442,  -442,  -442,
    -442,  -442,   254,   257,   388,  -442,  -442,  -442,   461,  -442,
     -15,   405,   261,  -442,  -442,  -442,  -442,   260,  -442,  -442,
     -50,  -442,   375,   -50,  -442,   376,  -442,   317,  -442,  -442,
    -442,   269,   270,   -51,     2,     7,     4,   167,   545,   273,
     308,   369,   -38,  -442,  -442,   371,   -26,  -442,   373,  -442,
    -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,
    -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,
    -442,  -442,  -442,  -442,  -442,   461,   277,    82,  -442,   -50,
    -442,   -50,   266,   144,   144,  -442,   461,   461,   322,   394,
    -442,   461,  -442,   395,  -442,   461,  -442,   396,  -442,   379,
    -442,    68,   461,   517,  -442,   168,   461,   531,  -442,   461,
     281,  -442,   461,   283,   285,  -442,  -442,  -442,  -442,  -442,
    -442,   411,   461,    70,  -442,  -442,  -442,  -442,  -442,   167,
     295,  -442,   401,  -442,  -442,   306,  -442,  -442,  -442,   409,
    -442,  -442,  -442,  -442,  -442,  -442,  -442,    22,  -442,   413,
     168,   168,  -442,   503,   461,    86,   461,  -442,   461,    13,
    -442,   -17,  -442,   309,   310,  -442,   435,  -442,   167,  -442,
     437,  -442,  -442,  -442,  -442,   177,  -442,  -442,   266,   308,
    -442
};

/* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -442,  -442,  -442,   430,   -14,  -153,  -442,  -442,  -442,  -442,
     223,  -442,   -87,  -442,   390,  -442,  -442,  -442,   101,  -442,
    -442,  -442,    -1,  -442,  -442,  -442,  -442,  -442,  -442,  -442,
    -442,  -442,  -442,  -442,  -442,  -442,  -442,   262,  -442,  -442,
    -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,
    -442,   323,  -442,   347,  -442,  -442,  -442,  -442,  -442,  -442,
    -336,  -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,  -442,
    -442,  -442,  -442,  -442,  -442,  -442,   249,   250,  -442,   -63,
    -442,  -442,  -423,  -442,  -442,  -442,  -442,  -217,  -442,  -442,
    -442,  -442,  -442,  -442,  -442,  -442,  -442,    15,  -234,  -442,
     -36,  -319,  -441,  -442,    80,   133,  -442,  -442,  -442,   215,
     224,  -128,   217,  -442,   299,  -442,   185,  -229,   392,   -78,
    -178,  -442,  -442,  -442,   314,   278,  -442,   -24,  -109
};

/* 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 YYTABLE_NINF, syntax error.  */
#define YYTABLE_NINF -257
static const yytype_int16 yytable[] =
{
     123,    83,   152,   142,   232,   215,   276,   390,   444,   467,
     287,   440,   190,   436,    71,    57,   192,   388,   226,   388,
     445,  -164,   441,   -40,   203,   393,   507,  -164,    62,  -164,
    -164,  -164,   453,    78,   500,   198,   501,   198,     3,     4,
       3,     4,   517,    21,   457,    57,  -164,  -164,  -164,    79,
    -164,   175,   176,   457,   203,   143,   152,    68,    62,    24,
      69,   131,   199,   144,   199,   331,   191,    22,   334,   335,
     193,   389,   160,   435,   518,    23,   161,    28,   359,  -164,
    -164,  -164,  -164,   437,   446,   442,   454,   519,     2,    30,
    -164,   210,   508,    31,  -164,    80,  -164,   371,   458,   271,
     374,   -86,   311,   -87,   212,   530,     5,   521,  -256,    33,
     157,   212,    52,   158,    34,    53,   288,   470,  -164,  -164,
    -164,  -164,  -164,  -164,   275,   152,  -164,    35,    39,  -164,
    -164,  -164,     2,   283,   483,   362,   284,   200,   490,   200,
    -164,   428,    36,    51,   430,   201,   202,   201,   202,    66,
       5,   212,   162,   163,   164,   165,    52,    40,   278,   280,
     281,    41,    67,    73,    42,    43,   343,    75,    53,   114,
     115,   116,   117,   250,   118,     8,    77,   251,    84,    53,
     252,   -44,   121,   349,   360,   484,    85,   351,    54,   485,
     529,   463,   486,   112,   464,   513,    55,    56,   514,   317,
     465,   328,   466,   113,   379,   380,   127,   166,   343,   129,
     132,   167,     1,   130,   133,     2,     3,     4,   134,     8,
     140,   135,   168,    53,   346,   -45,   152,    46,    47,    48,
      49,   136,    54,     5,   361,     6,   363,   137,   460,     7,
      55,    56,   235,   318,   236,   237,   238,   171,   148,   372,
     138,   139,   375,    68,   119,   120,    69,   173,   174,   448,
     343,   239,   240,   241,   178,   242,   394,   398,   114,   115,
     116,   117,   179,   118,   114,   115,   116,   117,   250,   118,
     400,   121,   352,   119,   120,   353,   354,   121,   319,   320,
     321,   322,   323,   324,   243,   244,   245,   246,   355,   356,
     357,   180,     8,   325,   183,   247,   184,     9,   528,   248,
     185,   249,   186,   187,   194,    10,   277,   195,   196,   197,
     211,   217,   220,   288,   468,   469,   364,   365,   366,   367,
     222,   223,   368,   114,   115,   116,   117,   250,   118,   224,
     229,   251,   233,   230,   252,   253,   121,   461,   279,   234,
     273,   502,   274,   -21,   290,   254,   291,   292,   394,   471,
     295,   296,   332,   475,   333,   311,   336,   477,   345,   370,
     373,   376,   381,   387,   481,   394,   382,  -254,   488,   394,
    -255,   491,   426,   427,   493,   429,   431,   432,   433,   434,
     526,   452,   451,   456,   497,   459,   462,   472,   474,   476,
     478,   479,   492,   114,   115,   116,   117,   494,   118,   495,
     499,    68,   119,   120,    69,   496,   121,   510,   503,   114,
     115,   116,   117,   504,   118,   398,   512,   340,   515,   505,
     516,   506,   121,   522,   523,   114,   115,   116,   117,   524,
     118,   527,    32,    68,   119,   120,    69,   401,   121,    76,
     255,   149,   219,   402,   403,   399,   225,   141,   227,   404,
     405,   406,   407,   408,   409,   410,   480,   511,   450,   383,
     293,   411,   412,   413,   414,   298,   299,   300,   301,   302,
     303,   304,   305,   216,   306,   307,   308,   309,   310,   114,
     115,   116,   117,   143,   118,   329,   350,    68,   119,   120,
      69,   144,   121,   218,   330,   146,     0,   272,   150,   114,
     115,   116,   117,   143,   118,     0,     0,    68,   119,   120,
      69,   144,   121,   415,     0,   416,     0,     0,     0,     0,
       0,   417,   418,   419,   420,   421,   422,   423,   424,    86,
      87,    88,    89,    90,    91,    92,    93,    94,    95,    96,
      97,     0,    98,    99,   100,     0,     0,     0,   311,     0,
     312,   313,   114,   115,   116,   117,     0,   118,     0,     0,
      68,   119,   120,    69,     0,   121,   114,   115,   116,   117,
      40,   118,     0,     0,   347,     0,     0,   348,    43,   121,
     114,   115,   116,   117,     0,   118,     0,     0,   391,   119,
     120,    69,     0,   121,   114,   115,   116,   117,     0,   118,
       0,     0,   395,   119,   120,    69,     0,   121,   114,   115,
     116,   117,     0,   118,     0,     0,   482,   119,   120,    69,
       0,   121,   114,   115,   116,   117,     0,   118,     0,     0,
     489,   119,   120,    69,     0,   121,   114,   115,   116,   117,
       0,   118,     0,     0,   449,     0,     0,     0,     0,   121
};

#define yypact_value_is_default(yystate) \
  ((yystate) == (-442))

#define yytable_value_is_error(yytable_value) \
  YYID (0)

static const yytype_int16 yycheck[] =
{
      78,    64,   130,   112,   221,   183,   235,   343,     4,   432,
     244,     4,    70,    11,    38,    29,    70,    70,     1,    70,
      16,     4,    15,     4,   177,   344,     4,    10,    29,    12,
      13,    14,    70,    14,   475,     5,   477,     5,     8,     9,
       8,     9,    29,   109,    70,    59,    29,    30,    31,    30,
      33,   138,   139,    70,   207,   105,   184,   109,    59,   120,
     112,    85,    32,   113,    32,   282,   124,   110,   285,   286,
     124,   124,   105,   124,    61,   109,   109,   109,   312,    62,
      63,    64,    65,    81,    80,    78,   124,    74,     7,     4,
      73,   178,    70,     0,    77,    76,    79,   326,   124,   227,
     329,    71,   117,    71,   182,   528,    25,   124,   123,     4,
     109,   189,    31,   112,    70,    98,   244,   436,   101,   102,
     103,   104,   105,   106,   233,   253,   109,     4,     4,   112,
     113,   114,     7,   109,   453,   313,   112,   107,   457,   107,
     123,   370,   121,     4,   373,   115,   116,   115,   116,   109,
      25,   229,    50,    51,    52,    53,    31,   105,   236,   237,
     238,   109,   121,   105,   112,   113,   294,     4,    98,   101,
     102,   103,   104,   105,   106,    94,   100,   109,     4,    98,
     112,   100,   114,   311,   312,    17,   122,    14,   107,    21,
     526,   109,    24,   119,   112,   109,   115,   116,   112,   277,
     429,   279,   431,   109,   332,   333,   109,   105,   336,     4,
     123,   109,     4,   113,   123,     7,     8,     9,   123,    94,
       4,   123,   120,    98,   302,   100,   354,    50,    51,    52,
      53,   123,   107,    25,   312,    27,   314,   123,   416,    31,
     115,   116,    10,    10,    12,    13,    14,   109,    70,   327,
     123,   123,   330,   109,   110,   111,   112,   109,   109,   387,
     388,    29,    30,    31,   119,    33,   344,   345,   101,   102,
     103,   104,   106,   106,   101,   102,   103,   104,   105,   106,
     358,   114,   109,   110,   111,   112,   113,   114,    55,    56,
      57,    58,    59,    60,    62,    63,    64,    65,   125,   126,
     127,    98,    94,    70,   120,    73,    70,    99,   525,    77,
     124,    79,   124,   124,   124,   107,    14,   124,   124,   124,
     121,   121,   109,   451,   433,   434,    18,    19,    20,    21,
     109,     4,    24,   101,   102,   103,   104,   105,   106,    71,
     122,   109,    70,   121,   112,   113,   114,   425,    14,     4,
       4,   479,   105,   109,     4,   123,     4,     4,   436,   437,
     123,     4,    70,   441,    70,   117,   123,   445,   123,    10,
      10,   105,   105,    22,   452,   453,   105,   123,   456,   457,
     123,   459,   121,   123,   462,    10,    10,    70,   119,   119,
     518,    22,   119,    22,   472,    22,   119,    75,     4,     4,
       4,    22,   121,   101,   102,   103,   104,   124,   106,   124,
     473,   109,   110,   111,   112,     4,   114,     4,   123,   101,
     102,   103,   104,    22,   106,   503,   504,   109,   506,   123,
     508,    22,   114,   124,   124,   101,   102,   103,   104,     4,
     106,     4,    12,   109,   110,   111,   112,    42,   114,    59,
     227,   128,   190,    48,    49,   354,   207,   110,   208,    54,
      55,    56,    57,    58,    59,    60,   451,   503,   388,   336,
     253,    66,    67,    68,    69,    34,    35,    36,    37,    38,
      39,    40,    41,   184,    43,    44,    45,    46,    47,   101,
     102,   103,   104,   105,   106,   280,   311,   109,   110,   111,
     112,   113,   114,   189,   280,   113,    -1,   229,   120,   101,
     102,   103,   104,   105,   106,    -1,    -1,   109,   110,   111,
     112,   113,   114,   118,    -1,   120,    -1,    -1,    -1,    -1,
      -1,   126,   127,   128,   129,   130,   131,   132,   133,    82,
      83,    84,    85,    86,    87,    88,    89,    90,    91,    92,
      93,    -1,    95,    96,    97,    -1,    -1,    -1,   117,    -1,
     119,   120,   101,   102,   103,   104,    -1,   106,    -1,    -1,
     109,   110,   111,   112,    -1,   114,   101,   102,   103,   104,
     105,   106,    -1,    -1,   109,    -1,    -1,   112,   113,   114,
     101,   102,   103,   104,    -1,   106,    -1,    -1,   109,   110,
     111,   112,    -1,   114,   101,   102,   103,   104,    -1,   106,
      -1,    -1,   109,   110,   111,   112,    -1,   114,   101,   102,
     103,   104,    -1,   106,    -1,    -1,   109,   110,   111,   112,
      -1,   114,   101,   102,   103,   104,    -1,   106,    -1,    -1,
     109,   110,   111,   112,    -1,   114,   101,   102,   103,   104,
      -1,   106,    -1,    -1,   109,    -1,    -1,    -1,    -1,   114
};

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


/* This macro is provided for backward compatibility. */

#ifndef YY_LOCATION_PRINT
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
#endif


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

#ifdef YYLEX_PARAM
# define YYLEX yylex (&yylval, YYLEX_PARAM)
#else
# define YYLEX yylex (&yylval, yyscanner, imcc)
#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, imcc); \
      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, imc_info_t *imcc)
#else
static void
yy_symbol_value_print (yyoutput, yytype, yyvaluep, yyscanner, imcc)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
    void *yyscanner;
    imc_info_t *imcc;
#endif
{
  if (!yyvaluep)
    return;
  YYUSE (yyscanner);
  YYUSE (imcc);
# 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, imc_info_t *imcc)
#else
static void
yy_symbol_print (yyoutput, yytype, yyvaluep, yyscanner, imcc)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
    void *yyscanner;
    imc_info_t *imcc;
#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, imcc);
  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, imc_info_t *imcc)
#else
static void
yy_reduce_print (yyvsp, yyrule, yyscanner, imcc)
    YYSTYPE *yyvsp;
    int yyrule;
    void *yyscanner;
    imc_info_t *imcc;
#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, imcc);
      YYFPRINTF (stderr, "\n");
    }
}

# define YY_REDUCE_PRINT(Rule)		\
do {					\
  if (yydebug)				\
    yy_reduce_print (yyvsp, Rule, yyscanner, imcc); \
} 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 *YYMSG, which is of size *YYMSG_ALLOC, an error message
   about the unexpected token YYTOKEN for the state stack whose top is
   YYSSP.

   Return 0 if *YYMSG was successfully written.  Return 1 if *YYMSG is
   not large enough to hold the message.  In that case, also set
   *YYMSG_ALLOC to the required number of bytes.  Return 2 if the
   required number of bytes is too large to store.  */
static int
yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
                yytype_int16 *yyssp, int yytoken)
{
  YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]);
  YYSIZE_T yysize = yysize0;
  YYSIZE_T yysize1;
  enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
  /* Internationalized format string. */
  const char *yyformat = 0;
  /* Arguments of yyformat. */
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
  /* Number of reported tokens (one for the "unexpected", one per
     "expected"). */
  int yycount = 0;

  /* There are many possibilities here to consider:
     - Assume YYFAIL is not used.  It's too flawed to consider.  See
       <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html>
       for details.  YYERROR is fine as it does not invoke this
       function.
     - If this state is a consistent state with a default action, then
       the only way this function was invoked is if the default action
       is an error action.  In that case, don't check for expected
       tokens because there are none.
     - The only way there can be no lookahead present (in yychar) is if
       this state is a consistent state with a default action.  Thus,
       detecting the absence of a lookahead is sufficient to determine
       that there is no unexpected or expected token to report.  In that
       case, just report a simple "syntax error".
     - Don't assume there isn't a lookahead just because this state is a
       consistent state with a default action.  There might have been a
       previous inconsistent state, consistent state with a non-default
       action, or user semantic action that manipulated yychar.
     - Of course, the expected token list depends on states to have
       correct lookahead information, and it depends on the parser not
       to perform extra reductions after fetching a lookahead from the
       scanner and before detecting a syntax error.  Thus, state merging
       (from LALR or IELR) and default reductions corrupt the expected
       token list.  However, the list is correct for canonical LR with
       one exception: it will still contain any token that will not be
       accepted due to an error action in a later state.
  */
  if (yytoken != YYEMPTY)
    {
      int yyn = yypact[*yyssp];
      yyarg[yycount++] = yytname[yytoken];
      if (!yypact_value_is_default (yyn))
        {
          /* Start YYX at -YYN if negative to avoid negative indexes in
             YYCHECK.  In other words, skip the first -YYN actions for
             this state because they are default actions.  */
          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 yyx;

          for (yyx = yyxbegin; yyx < yyxend; ++yyx)
            if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
                && !yytable_value_is_error (yytable[yyx + yyn]))
              {
                if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
                  {
                    yycount = 1;
                    yysize = yysize0;
                    break;
                  }
                yyarg[yycount++] = yytname[yyx];
                yysize1 = yysize + yytnamerr (0, yytname[yyx]);
                if (! (yysize <= yysize1
                       && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
                  return 2;
                yysize = yysize1;
              }
        }
    }

  switch (yycount)
    {
# define YYCASE_(N, S)                      \
      case N:                               \
        yyformat = S;                       \
      break
      YYCASE_(0, YY_("syntax error"));
      YYCASE_(1, YY_("syntax error, unexpected %s"));
      YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
      YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
      YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
      YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
# undef YYCASE_
    }

  yysize1 = yysize + yystrlen (yyformat);
  if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
    return 2;
  yysize = yysize1;

  if (*yymsg_alloc < yysize)
    {
      *yymsg_alloc = 2 * yysize;
      if (! (yysize <= *yymsg_alloc
             && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
        *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
      return 1;
    }

  /* 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 = *yymsg;
    int yyi = 0;
    while ((*yyp = *yyformat) != '\0')
      if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
        {
          yyp += yytnamerr (yyp, yyarg[yyi++]);
          yyformat += 2;
        }
      else
        {
          yyp++;
          yyformat++;
        }
  }
  return 0;
}
#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, imc_info_t *imcc)
#else
static void
yydestruct (yymsg, yytype, yyvaluep, yyscanner, imcc)
    const char *yymsg;
    int yytype;
    YYSTYPE *yyvaluep;
    void *yyscanner;
    imc_info_t *imcc;
#endif
{
  YYUSE (yyvaluep);
  YYUSE (yyscanner);
  YYUSE (imcc);

  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, imc_info_t *imcc);
#else
int yyparse ();
#endif
#endif /* ! YYPARSE_PARAM */


/*----------.
| yyparse.  |
`----------*/

#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, imc_info_t *imcc)
#else
int
yyparse (yyscanner, imcc)
    void *yyscanner;
    imc_info_t *imcc;
#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 (yypact_value_is_default (yyn))
    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 (yytable_value_is_error (yyn))
        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 1806 of yacc.c  */
#line 1117 "compilers/imcc/imcc.y"
    { if (yynerrs) YYABORT; (yyval.i) = 0; }
    break;

  case 5:

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

  case 6:

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

  case 7:

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

  case 8:

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

  case 9:

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

  case 10:

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

  case 11:

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

  case 12:

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

  case 13:

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

  case 14:

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

  case 15:

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

  case 16:

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

  case 17:

/* Line 1806 of yacc.c  */
#line 1172 "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(imcc, (yyvsp[(2) - (4)].s), 'S');
          (yyval.i) = MK_I(imcc, imcc->cur_unit, ".annotate", 2, key, (yyvsp[(4) - (4)].sr));
          mem_sys_free((yyvsp[(2) - (4)].s));
        }
    break;

  case 18:

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

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

  case 19:

/* Line 1806 of yacc.c  */
#line 1196 "compilers/imcc/imcc.y"
    { imcc->is_def = 1; }
    break;

  case 20:

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

  case 21:

/* Line 1806 of yacc.c  */
#line 1205 "compilers/imcc/imcc.y"
    { imcc->is_def = 1; }
    break;

  case 22:

/* Line 1806 of yacc.c  */
#line 1206 "compilers/imcc/imcc.y"
    {
           (yyval.i) = mk_pmc_const_named(imcc, imcc->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->is_def = 0;
         }
    break;

  case 27:

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

  case 28:

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

  case 29:

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

  case 30:

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

  case 31:

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

  case 34:

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

  case 35:

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

  case 36:

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

  case 37:

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

  case 38:

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

  case 39:

/* Line 1806 of yacc.c  */
#line 1256 "compilers/imcc/imcc.y"
    {
           char   *name = mem_sys_strdup((yyvsp[(2) - (4)].s) + 1);
           SymReg *r    = mk_pasm_reg(imcc, (yyvsp[(4) - (4)].s));
           SymReg *n;
           name[strlen(name) - 1] = 0;
           n = mk_const(imcc, name, 'S');
           set_lexical(imcc, 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 1806 of yacc.c  */
#line 1268 "compilers/imcc/imcc.y"
    { (yyval.i) = 0;}
    break;

  case 42:

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

  case 43:

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

  case 46:

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

  case 47:

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

  case 48:

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

  case 49:

/* Line 1806 of yacc.c  */
#line 1314 "compilers/imcc/imcc.y"
    {
           imcc->nkeys    = 0;
         }
    break;

  case 50:

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

  case 51:

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

  case 52:

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

  case 53:

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

  case 54:

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

  case 55:

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

  case 56:

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

  case 57:

/* Line 1806 of yacc.c  */
#line 1354 "compilers/imcc/imcc.y"
    { imcc->is_def = 1; }
    break;

  case 58:

/* Line 1806 of yacc.c  */
#line 1356 "compilers/imcc/imcc.y"
    {
           if (/* IMCC_INFO(interp)->cur_unit->last_ins->op
           ||  */ !(imcc->cur_unit->last_ins->type & ITPCCPARAM)) {
               SymReg *r;
               Instruction *i;
               char name[128];
               snprintf(name, sizeof (name), "%cpcc_params_%d",
                        IMCC_INTERNAL_CHAR, imcc->cnr++);
               r = mk_symreg(imcc, name, 0);
               r->type    = VT_PCC_SUB;
               r->pcc_sub = mem_gc_allocate_zeroed_typed(imcc->interp, pcc_sub_t);
               i = iLABEL(imcc, imcc->cur_unit, r);
               imcc->cur_call = r;
               i->type = ITPCCPARAM;
           }
           if (imcc->adv_named_id) {
                 add_pcc_named_param(imcc, imcc->cur_call,
                                     imcc->adv_named_id, (yyvsp[(3) - (4)].sr));
                 imcc->adv_named_id = NULL;
           }
           else
               add_pcc_arg(imcc, imcc->cur_call, (yyvsp[(3) - (4)].sr));
         }
    break;

  case 59:

/* Line 1806 of yacc.c  */
#line 1379 "compilers/imcc/imcc.y"
    { imcc->is_def = 0; }
    break;

  case 60:

/* Line 1806 of yacc.c  */
#line 1384 "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(imcc, 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->adv_named_id)
               adv_named_set(imcc, (yyvsp[(2) - (3)].s));
           (yyval.sr) = mk_ident(imcc, (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 61:

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

  case 62:

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

  case 63:

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

  case 64:

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

  case 65:

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

  case 66:

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

  case 67:

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

  case 68:

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

  case 69:

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

  case 70:

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

  case 71:

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

  case 72:

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

  case 73:

/* Line 1806 of yacc.c  */
#line 1465 "compilers/imcc/imcc.y"
    {
           SymReg * const r = mk_const(imcc, (yyvsp[(3) - (3)].s), 'S');
           add_pcc_flag_str(imcc, imcc->cur_call, r);
           mem_sys_free((yyvsp[(3) - (3)].s));
           (yyval.sr) = r;
         }
    break;

  case 74:

/* Line 1806 of yacc.c  */
#line 1472 "compilers/imcc/imcc.y"
    {
           SymReg * const r = mk_const(imcc, (yyvsp[(1) - (1)].s), 'S');
           add_pcc_flag_str(imcc, imcc->cur_call, r);
           mem_sys_free((yyvsp[(1) - (1)].s));
           (yyval.sr) = r;
         }
    break;

  case 75:

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

  case 76:

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

  case 77:

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

  case 78:

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

  case 79:

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

  case 80:

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

  case 81:

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

  case 82:

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

  case 83:

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

  case 84:

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

  case 85:

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

  case 88:

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

           snprintf(name, sizeof (name), "%cpcc_sub_call_%d",
                   IMCC_INTERNAL_CHAR, imcc->cnr++);
           (yyval.sr) = r = mk_pcc_sub(imcc, name, 0);
           /* this mid rule action has the semantic value of the
            * sub SymReg.
            * This is used below to append args & results
            */
           i = iLABEL(imcc, imcc->cur_unit, r);
           imcc->cur_call = r;
           i->type = ITPCCSUB;
         }
    break;

  case 89:

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

  case 90:

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

  case 91:

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

  case 92:

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

  case 93:

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

  case 94:

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

  case 96:

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

  case 97:

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

  case 98:

/* Line 1806 of yacc.c  */
#line 1617 "compilers/imcc/imcc.y"
    {
                (yyval.t) = P_LOAD;
                /*
                SymReg * const r = mk_const(imcc, "load", 'S');
                add_pcc_flag_str(imcc, imcc->cur_call, r);
                $$ = r;
                */
            }
    break;

  case 99:

/* Line 1806 of yacc.c  */
#line 1625 "compilers/imcc/imcc.y"
    {
                (yyval.t) = P_INIT;
                /*
                SymReg * const r = mk_const(imcc, "load", 'S');
                add_pcc_flag_str(imcc, imcc->cur_call, r);
                $$ = r;
                */
            }
    break;

  case 100:

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

  case 101:

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

  case 102:

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

  case 103:

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

  case 104:

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

  case 113:

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

  case 114:

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

  case 115:

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

  case 116:

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

  case 117:

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

  case 118:

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

  case 119:

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

  case 120:

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

  case 121:

/* Line 1806 of yacc.c  */
#line 1690 "compilers/imcc/imcc.y"
    { imcc->is_def = 1; }
    break;

  case 122:

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

  case 123:

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

  case 124:

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

  case 125:

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

  case 126:

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

  case 127:

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

  case 128:

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

  case 129:

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

  case 130:

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

  case 131:

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

  case 132:

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

  case 133:

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

  case 134:

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

  case 135:

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

  case 136:

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

  case 137:

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

  case 138:

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

  case 139:

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

  case 140:

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

  case 141:

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

  case 142:

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

  case 143:

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

  case 144:

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

  case 145:

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

  case 146:

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

  case 147:

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

  case 148:

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

  case 149:

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

  case 150:

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

  case 151:

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

  case 152:

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

  case 153:

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

  case 156:

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

  case 157:

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

  case 158:

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

  case 159:

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

  case 160:

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

  case 161:

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

  case 162:

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

  case 163:

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

  case 164:

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

  case 168:

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

  case 169:

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

  case 170:

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

  case 171:

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

  case 172:

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

  case 173:

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

  case 176:

/* Line 1806 of yacc.c  */
#line 1913 "compilers/imcc/imcc.y"
    { imcc->is_def = 1; }
    break;

  case 177:

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

  case 178:

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

  case 179:

/* Line 1806 of yacc.c  */
#line 1937 "compilers/imcc/imcc.y"
    {
           SymReg *n = mk_const(imcc, (yyvsp[(2) - (4)].s), 'U');
           set_lexical(imcc, (yyvsp[(4) - (4)].sr), n); (yyval.i) = 0;
           mem_sys_free((yyvsp[(2) - (4)].s));
         }
    break;

  case 180:

/* Line 1806 of yacc.c  */
#line 1942 "compilers/imcc/imcc.y"
    { imcc->is_def = 1; }
    break;

  case 181:

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

  case 183:

/* Line 1806 of yacc.c  */
#line 1950 "compilers/imcc/imcc.y"
    { imcc->is_def = 1; }
    break;

  case 184:

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

  case 185:

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

  case 186:

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

  case 187:

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

  case 188:

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

  case 189:

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

  case 190:

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

  case 193:

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

  case 194:

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

  case 195:

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

  case 196:

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

  case 197:

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

  case 198:

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

  case 199:

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

  case 200:

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

  case 201:

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

  case 202:

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

  case 203:

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

  case 204:

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

  case 205:

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

  case 209:

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

  case 210:

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

  case 211:

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

  case 212:

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

  case 213:

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

  case 214:

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

  case 215:

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

  case 216:

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

  case 217:

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

  case 218:

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

  case 219:

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

  case 220:

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

  case 221:

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

  case 222:

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

  case 223:

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

  case 224:

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

  case 225:

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

  case 226:

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

  case 227:

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

  case 228:

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

  case 229:

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

  case 230:

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

  case 231:

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

  case 232:

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

  case 233:

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

  case 234:

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

  case 235:

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

  case 236:

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

  case 237:

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

  case 238:

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

  case 239:

/* Line 1806 of yacc.c  */
#line 2073 "compilers/imcc/imcc.y"
    {
             if ((yyvsp[(1) - (3)].sr)->set == 'P')
                 (yyval.i) = MK_I(imcc, imcc->cur_unit, "concat", 2, (yyvsp[(1) - (3)].sr), (yyvsp[(3) - (3)].sr));
             else
                 (yyval.i) = MK_I(imcc, imcc->cur_unit, "concat", 3, (yyvsp[(1) - (3)].sr), (yyvsp[(1) - (3)].sr), (yyvsp[(3) - (3)].sr));
         }
    break;

  case 240:

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

  case 241:

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

  case 242:

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

  case 243:

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

  case 244:

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

  case 245:

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

  case 246:

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

  case 247:

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

  case 248:

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

  case 249:

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

  case 250:

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

  case 251:

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

  case 252:

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

  case 253:

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

  case 254:

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

  case 255:

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

  case 256:

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

  case 257:

/* Line 1806 of yacc.c  */
#line 2117 "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(imcc, EXCEPTION_SYNTAX_ERROR,
                        "Bareword method name '%s' not allowed in PIR",
                        (yyvsp[(3) - (3)].sr)->name);
            }

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

  case 258:

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

  case 259:

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

  case 260:

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

  case 261:

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

  case 262:

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

  case 263:

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

  case 264:

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

  case 265:

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

  case 266:

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

  case 267:

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

  case 268:

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

  case 269:

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

  case 270:

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

  case 271:

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

  case 272:

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

  case 273:

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

  case 274:

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

  case 275:

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

  case 276:

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

  case 277:

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

  case 278:

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

  case 279:

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

  case 280:

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

  case 281:

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

  case 282:

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

  case 283:

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

  case 284:

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

  case 285:

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

  case 286:

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

  case 287:

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

  case 288:

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

  case 289:

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

  case 290:

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

  case 291:

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

  case 292:

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

  case 293:

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

  case 294:

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

  case 295:

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

  case 296:

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

  case 297:

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

  case 298:

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

  case 301:

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

  case 302:

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

  case 303:

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

  case 305:

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

  case 306:

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

  case 307:

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

  case 309:

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

  case 310:

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

  case 311:

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

  case 312:

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

  case 313:

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

  case 314:

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

  case 319:

/* Line 1806 of yacc.c  */
#line 2374 "compilers/imcc/imcc.y"
    {
           imcc->nkeys    = 0;
         }
    break;

  case 320:

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

  case 321:

/* Line 1806 of yacc.c  */
#line 2384 "compilers/imcc/imcc.y"
    {
           imcc->nkeys = 0;
         }
    break;

  case 322:

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

  case 323:

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

  case 324:

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

  case 325:

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

  case 326:

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

  case 327:

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

  case 328:

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

  case 329:

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

  case 330:

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

  case 331:

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

  case 332:

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

  case 333:

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

  case 334:

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

  case 335:

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



/* Line 1806 of yacc.c  */
#line 5779 "compilers/imcc/imcparser.c"
      default: break;
    }
  /* User semantic actions sometimes alter yychar, and that requires
     that yytoken be updated with the new translation.  We take the
     approach of translating immediately before every use of yytoken.
     One alternative is translating here after every semantic action,
     but that translation would be missed if the semantic action invokes
     YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
     if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
     incorrect destructor might then be invoked immediately.  In the
     case of YYERROR or YYBACKUP, subsequent parser actions might lead
     to an incorrect destructor call or verbose syntax error message
     before the lookahead is translated.  */
  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:
  /* Make sure we have latest lookahead translation.  See comments at
     user semantic actions for why this is necessary.  */
  yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);

  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
#if ! YYERROR_VERBOSE
      yyerror (yyscanner, imcc, YY_("syntax error"));
#else
# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
                                        yyssp, yytoken)
      {
        char const *yymsgp = YY_("syntax error");
        int yysyntax_error_status;
        yysyntax_error_status = YYSYNTAX_ERROR;
        if (yysyntax_error_status == 0)
          yymsgp = yymsg;
        else if (yysyntax_error_status == 1)
          {
            if (yymsg != yymsgbuf)
              YYSTACK_FREE (yymsg);
            yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
            if (!yymsg)
              {
                yymsg = yymsgbuf;
                yymsg_alloc = sizeof yymsgbuf;
                yysyntax_error_status = 2;
              }
            else
              {
                yysyntax_error_status = YYSYNTAX_ERROR;
                yymsgp = yymsg;
              }
          }
        yyerror (yyscanner, imcc, yymsgp);
        if (yysyntax_error_status == 2)
          goto yyexhaustedlab;
      }
# undef YYSYNTAX_ERROR
#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, imcc);
	  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 (!yypact_value_is_default (yyn))
	{
	  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, imcc);
      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, imcc, YY_("memory exhausted"));
  yyresult = 2;
  /* Fall through.  */
#endif

yyreturn:
  if (yychar != YYEMPTY)
    {
      /* Make sure we have latest lookahead translation.  See comments at
         user semantic actions for why this is necessary.  */
      yytoken = YYTRANSLATE (yychar);
      yydestruct ("Cleanup: discarding lookahead",
                  yytoken, &yylval, yyscanner, imcc);
    }
  /* 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, imcc);
      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 2067 of yacc.c  */
#line 2431 "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, ARGMOD(imc_info_t *imcc), 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(imcc, 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(imcc, "error:imcc:%s", s);

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

        IMCC_print_inc(imcc);
    }

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

    return 0;
}

/*

=back

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

