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

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

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

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

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

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

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

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

/* Pure parsers.  */
#define YYPURE 1

/* Push parsers.  */
#define YYPUSH 0

/* Pull parsers.  */
#define YYPULL 1

/* Using locations.  */
#define YYLSP_NEEDED 0



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

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

/*
 * imcc.y
 *
 * Intermediate Code Compiler for Parrot.
 *
 * Copyright (C) 2002 Melvin Smith <melvin.smith@mindspring.com>
 * Copyright (C) 2002-2010, Parrot Foundation.
 *
 * Grammar of the PIR language parser.
 *
 *
 */

#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 189 of yacc.c  */
#line 1098 "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,
     VTABLE_METHOD = 346,
     LOADLIB = 347,
     SUB_INSTANCE_OF = 348,
     SUBID = 349,
     NS_ENTRY = 350,
     LABEL = 351,
     EMIT = 352,
     EOM = 353,
     IREG = 354,
     NREG = 355,
     SREG = 356,
     PREG = 357,
     IDENTIFIER = 358,
     REG = 359,
     MACRO = 360,
     ENDM = 361,
     STRINGC = 362,
     INTC = 363,
     FLOATC = 364,
     USTRINGC = 365,
     PARROT_OP = 366,
     VAR = 367,
     LINECOMMENT = 368,
     FILECOMMENT = 369,
     DOT = 370,
     CONCAT = 371
   };
#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 VTABLE_METHOD 346
#define LOADLIB 347
#define SUB_INSTANCE_OF 348
#define SUBID 349
#define NS_ENTRY 350
#define LABEL 351
#define EMIT 352
#define EOM 353
#define IREG 354
#define NREG 355
#define SREG 356
#define PREG 357
#define IDENTIFIER 358
#define REG 359
#define MACRO 360
#define ENDM 361
#define STRINGC 362
#define INTC 363
#define FLOATC 364
#define USTRINGC 365
#define PARROT_OP 366
#define VAR 367
#define LINECOMMENT 368
#define FILECOMMENT 369
#define DOT 370
#define CONCAT 371




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

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

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



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


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


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

#ifdef short
# undef short
#endif

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

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

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

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

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

#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)

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

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

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

#if ! defined yyoverflow || YYERROR_VERBOSE

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

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

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


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

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

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

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

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

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

#endif

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

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  133
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  127
/* YYNRULES -- Number of rules.  */
#define YYNRULES  331
/* YYNRULES -- Number of states.  */
#define YYNSTATES  523

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

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

#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,   181,   186,   188,   193,   195,   200,   202,
     207,   212,   214,   219,   220,   224,   226,   228,   230,   232,
     234,   236,   238,   242,   243,   245,   246,   256,   257,   260,
     261,   265,   266,   268,   270,   273,   275,   277,   279,   281,
     283,   285,   287,   289,   291,   293,   295,   297,   299,   301,
     307,   311,   312,   316,   319,   320,   324,   328,   329,   334,
     335,   338,   340,   342,   344,   346,   351,   356,   358,   359,
     365,   367,   368,   374,   375,   378,   382,   383,   386,   390,
     394,   398,   399,   405,   407,   409,   410,   412,   416,   420,
     426,   428,   431,   432,   434,   437,   440,   442,   444,   446,
     448,   449,   451,   454,   456,   458,   462,   465,   467,   471,
     473,   475,   477,   478,   483,   488,   493,   494,   501,   503,
     504,   511,   514,   517,   520,   523,   525,   527,   529,   531,
     532,   534,   536,   538,   540,   544,   549,   555,   562,   569,
     573,   574,   584,   586,   588,   590,   594,   596,   598,   600,
     602,   604,   606,   608,   610,   612,   614,   616,   618,   620,
     622,   624,   626,   628,   630,   632,   634,   636,   638,   640,
     642,   644,   646,   647,   653,   657,   661,   663,   665,   667,
     669,   671,   673,   675,   677,   679,   681,   683,   685,   690,
     692,   694,   696,   698,   702,   706,   710,   714,   715,   721,
     722,   726,   728,   734,   738,   742,   745,   746,   749,   751,
     753,   755,   760,   765,   768,   772,   778,   780,   784,   785,
     787,   789,   796,   802,   807,   812,   819,   825,   827,   829,
     831,   833,   835,   837,   839,   841,   843,   845,   846,   848,
     852,   854,   856,   861,   865,   867,   869,   871,   873,   875,
     877,   879,   881,   883,   885,   887,   888,   891,   892,   895,
     897,   901,   903,   905,   907,   909,   911,   913,   915,   917,
     919,   921
};

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

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const yytype_uint16 yyrline[] =
{
       0,  1116,  1116,  1120,  1121,  1125,  1126,  1127,  1133,  1139,
    1140,  1141,  1142,  1146,  1147,  1156,  1162,  1170,  1182,  1195,
    1195,  1204,  1204,  1213,  1214,  1218,  1219,  1223,  1224,  1225,
    1226,  1227,  1228,  1229,  1232,  1232,  1240,  1239,  1250,  1254,
    1267,  1271,  1275,  1275,  1287,  1289,  1293,  1308,  1309,  1313,
    1313,  1323,  1324,  1333,  1337,  1341,  1332,  1353,  1355,  1352,
    1382,  1407,  1411,  1417,  1426,  1432,  1441,  1447,  1456,  1462,
    1471,  1479,  1484,  1496,  1499,  1504,  1512,  1513,  1514,  1515,
    1516,  1527,  1538,  1541,  1543,  1548,  1547,  1573,  1574,  1578,
    1579,  1583,  1584,  1588,  1589,  1593,  1594,  1595,  1596,  1597,
    1598,  1599,  1600,  1601,  1602,  1603,  1604,  1605,  1606,  1610,
    1615,  1622,  1623,  1636,  1641,  1642,  1650,  1651,  1651,  1663,
    1664,  1668,  1669,  1670,  1671,  1672,  1673,  1674,  1679,  1679,
    1682,  1690,  1690,  1696,  1697,  1702,  1710,  1711,  1716,  1724,
    1728,  1733,  1732,  1745,  1746,  1750,  1751,  1761,  1766,  1776,
    1785,  1786,  1798,  1802,  1803,  1805,  1806,  1807,  1808,  1809,
    1813,  1814,  1818,  1819,  1823,  1835,  1836,  1847,  1854,  1863,
    1872,  1873,  1874,  1874,  1887,  1904,  1917,  1917,  1924,  1925,
    1925,  1931,  1937,  1941,  1947,  1948,  1949,  1950,  1951,  1952,
    1956,  1957,  1958,  1959,  1963,  1965,  1967,  1969,  1971,  1974,
    1981,  1980,  1989,  1990,  1991,  1992,  2000,  2001,  2002,  2006,
    2007,  2008,  2009,  2010,  2011,  2012,  2013,  2014,  2015,  2016,
    2017,  2018,  2019,  2020,  2021,  2022,  2023,  2024,  2025,  2026,
    2027,  2028,  2034,  2033,  2045,  2047,  2057,  2058,  2059,  2060,
    2061,  2062,  2063,  2064,  2065,  2066,  2067,  2068,  2073,  2082,
    2083,  2084,  2085,  2091,  2105,  2111,  2117,  2127,  2126,  2135,
    2136,  2146,  2156,  2162,  2167,  2177,  2181,  2182,  2186,  2187,
    2188,  2190,  2196,  2205,  2209,  2219,  2225,  2235,  2240,  2244,
    2245,  2249,  2253,  2257,  2264,  2268,  2272,  2279,  2280,  2284,
    2285,  2286,  2287,  2288,  2289,  2293,  2294,  2298,  2299,  2303,
    2304,  2308,  2309,  2316,  2323,  2324,  2325,  2329,  2330,  2334,
    2335,  2339,  2340,  2344,  2345,  2349,  2349,  2359,  2359,  2371,
    2372,  2380,  2387,  2388,  2389,  2390,  2391,  2395,  2396,  2400,
    2401,  2402
};
#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",
  "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", "outer", "vtable", "method",
  "ns_entry_name", "instanceof", "subid", "multi_types", "multi_type",
  "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,    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,   133,   134,   135,   135,   136,   136,   136,   136,   136,
     136,   136,   136,   137,   137,   138,   138,   139,   140,   142,
     141,   144,   143,   145,   145,   146,   146,   147,   147,   147,
     147,   147,   147,   147,   149,   148,   150,   148,   148,   148,
     148,   151,   153,   152,   154,   154,   155,   156,   156,   158,
     157,   159,   159,   161,   162,   163,   160,   165,   166,   164,
     167,   168,   169,   169,   170,   170,   171,   171,   172,   172,
     173,   174,   174,   175,   175,   175,   176,   176,   176,   176,
     176,   176,   176,   177,   177,   179,   178,   180,   180,   181,
     181,   182,   182,   183,   183,   184,   184,   184,   184,   184,
     184,   184,   184,   184,   184,   184,   184,   184,   184,   185,
     185,   186,   186,   187,   188,   188,   189,   190,   189,   191,
     191,   192,   192,   192,   192,   192,   192,   192,   194,   193,
     193,   196,   195,   197,   197,   197,   198,   198,   198,   199,
     200,   202,   201,   203,   203,   204,   204,   204,   204,   204,
     205,   205,   206,   207,   207,   207,   207,   207,   207,   207,
     208,   208,   209,   209,   210,   211,   211,   212,   212,   213,
     214,   214,   215,   214,   214,   214,   216,   214,   214,   217,
     214,   214,   214,   214,   214,   214,   214,   214,   214,   214,
     218,   218,   218,   218,   219,   219,   219,   219,   219,   219,
     220,   219,   219,   219,   219,   219,   221,   221,   221,   222,
     222,   222,   222,   222,   222,   222,   222,   222,   222,   222,
     222,   222,   222,   222,   222,   222,   222,   222,   222,   222,
     222,   222,   224,   223,   225,   225,   226,   226,   226,   226,
     226,   226,   226,   226,   226,   226,   226,   226,   227,   228,
     228,   228,   228,   228,   228,   228,   228,   230,   229,   231,
     231,   231,   231,   231,   231,   232,   233,   233,   234,   234,
     234,   234,   234,   235,   236,   236,   236,   236,   236,   237,
     237,   238,   238,   238,   239,   239,   239,   240,   240,   241,
     241,   241,   241,   241,   241,   242,   242,   243,   243,   244,
     244,   245,   245,   245,   246,   246,   246,   247,   247,   248,
     248,   249,   249,   250,   250,   252,   251,   254,   253,   255,
     255,   256,   257,   257,   257,   257,   257,   258,   258,   259,
     259,   259
};

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

/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
      -1,    11,    12,    13,    14,    15,   197,    16,    17,    27,
      58,    74,   156,    59,    60,    81,    82,   126,   148,    18,
      29,    61,    19,    25,    37,    38,    70,    20,    26,    72,
     172,   198,   213,   307,   223,   100,   101,   102,   103,   104,
     105,   106,   166,   167,   199,   248,   329,   490,   430,   107,
     108,   109,   465,   376,   431,   501,   512,   517,   308,   361,
     249,   330,   250,   331,   377,   378,   435,   439,   251,   336,
     252,   384,   200,   201,   202,    63,    64,    65,   220,   369,
     370,   253,   274,   277,   278,    50,   254,   286,   350,   417,
     255,   281,   256,   306,   257,   258,   259,   289,   388,   389,
     447,   479,   333,   334,   260,   261,   262,   318,   319,   120,
     150,   151,   152,    44,    45,   142,   153,   144,   183,   184,
     176,   177,   206,   207,   122,   123,   124
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -417
static const yytype_int16 yypact[] =
{
     242,  -417,   -97,   -73,   -68,   -72,  -417,  -417,   -47,  -417,
      75,    88,   242,  -417,  -417,  -417,    91,  -417,  -417,  -417,
    -417,  -417,    30,    99,   -13,   107,    64,   246,   117,    56,
    -417,  -417,  -417,  -417,    20,  -417,  -417,   -12,    -6,  -417,
    -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,
      32,  -417,  -417,  -417,   142,  -417,  -417,  -417,  -417,   250,
    -417,    58,  -417,    50,    66,  -417,   143,  -417,  -417,  -417,
      53,  -417,   447,    51,    71,  -417,  -417,  -417,   395,    80,
    -417,   188,    96,  -417,  -417,    -6,  -417,  -417,  -417,  -417,
    -417,    78,  -417,    97,  -417,   101,   102,   103,   105,   118,
    -417,  -417,  -417,  -417,  -417,  -417,  -417,   206,   447,  -417,
     252,   444,  -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,
    -417,  -417,  -417,  -417,  -417,   151,   447,  -417,   380,  -417,
      22,   -81,   114,   121,   135,    22,    22,  -417,  -417,  -417,
    -417,  -417,  -417,   127,  -417,   147,   150,  -417,  -417,   129,
    -417,   185,  -417,  -417,  -417,  -417,   133,   138,   139,  -417,
    -417,  -417,  -417,  -417,  -417,  -417,   -56,  -417,   145,   148,
     153,   154,    23,    22,  -417,  -417,   140,   395,  -417,   380,
    -417,  -417,  -417,   159,   395,   114,  -417,  -417,  -417,  -417,
    -417,  -417,   162,   282,  -417,  -417,  -417,  -417,  -417,   217,
      25,    12,  -417,  -417,  -417,  -417,   168,  -417,   180,  -417,
    -417,   168,  -417,   246,   237,  -417,  -417,  -417,   306,   201,
    -417,   395,  -417,   307,   211,   252,  -417,   -52,   182,   280,
     395,  -417,    48,   208,  -417,  -417,   225,  -417,  -417,   316,
     317,   318,  -417,  -417,  -417,   380,  -417,  -417,  -417,  -417,
    -417,  -417,   202,   327,  -417,  -417,  -417,  -417,  -417,  -417,
    -417,  -417,  -417,   360,  -417,  -417,  -417,  -417,  -417,   395,
     125,   395,   125,  -417,   246,   262,   264,   246,   246,  -417,
     226,   219,  -417,  -417,  -417,  -417,   104,  -417,  -417,   222,
    -417,  -417,  -417,  -417,   395,  -417,  -417,  -417,  -417,  -417,
    -417,  -417,  -417,   458,   323,  -417,   395,  -417,   218,   336,
    -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,   -52,   395,
     342,   -52,   395,   249,   528,   528,   253,   254,   104,  -417,
    -417,  -417,   332,  -417,   -53,  -417,   472,   486,  -417,  -417,
    -417,  -417,  -417,  -417,   247,   255,   380,  -417,  -417,  -417,
     395,  -417,   -66,   396,   248,  -417,  -417,  -417,  -417,   256,
    -417,  -417,   -52,  -417,   362,   -52,  -417,   364,  -417,   305,
    -417,  -417,  -417,   261,   269,   -51,     1,     5,    42,   528,
     308,   274,   218,   390,   -33,  -417,  -417,   392,   -31,  -417,
     393,  -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,
    -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,
    -417,  -417,  -417,  -417,  -417,  -417,  -417,   395,   301,    79,
    -417,   -52,  -417,   -52,   249,   252,   252,  -417,   395,   395,
     354,   426,  -417,   395,  -417,   433,  -417,   395,  -417,   435,
    -417,   418,  -417,   225,   395,   500,  -417,   137,   395,   514,
    -417,   395,   321,  -417,   395,   319,   320,  -417,  -417,  -417,
    -417,  -417,  -417,   442,   395,    66,  -417,  -417,  -417,  -417,
    -417,   528,   335,  -417,   436,  -417,  -417,   337,  -417,  -417,
    -417,   438,  -417,  -417,  -417,  -417,  -417,  -417,  -417,    14,
    -417,   457,   137,   137,  -417,   486,   395,    86,   395,  -417,
     395,   112,  -417,   -26,  -417,   343,   344,  -417,   464,  -417,
     528,  -417,   465,  -417,  -417,  -417,  -417,   246,  -417,  -417,
     249,   218,  -417
};

/* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -417,  -417,  -417,   459,    -8,  -134,  -417,  -417,  -417,  -417,
     251,  -417,   -87,  -417,   413,  -417,  -417,  -417,   128,  -417,
    -417,  -417,     0,  -417,  -417,  -417,  -417,  -417,  -417,  -417,
    -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,
    -417,  -417,  -417,   288,  -417,  -417,  -417,  -417,  -417,   349,
    -417,   369,  -417,  -417,  -417,  -417,  -417,  -417,  -329,  -417,
    -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,  -417,
    -417,  -417,  -417,  -417,   286,   293,  -417,   -63,  -417,  -417,
    -416,  -417,  -417,  -417,  -417,  -209,  -417,  -417,  -417,  -417,
    -417,  -417,  -417,  -417,  -417,    44,  -226,  -417,     6,  -301,
    -396,  -417,   122,   179,  -417,  -417,  -417,   238,   239,  -126,
     267,  -417,   330,  -417,   213,  -220,   403,   -78,  -173,  -417,
    -417,  -417,   333,   297,  -417,   -23,  -107
};

/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
   positive, shift that token.  If negative, reduce the rule which
   number is the opposite.  If zero, do what YYDEFACT says.
   If YYTABLE_NINF, syntax error.  */
#define YYTABLE_NINF -253
static const yytype_int16 yytable[] =
{
     121,    83,   149,   139,   224,   208,   382,   268,   459,   432,
     279,    21,   428,   218,   185,    71,  -160,   380,   499,   380,
     433,    57,  -160,   157,  -160,  -160,  -160,   158,   191,    62,
     191,     3,     4,     3,     4,   385,    22,   445,   196,   449,
      23,  -160,  -160,  -160,   449,  -160,   436,    24,   170,   171,
     303,    57,   140,   149,   -40,   192,  -252,   192,   437,    62,
     141,    28,   129,     2,    78,   323,   196,   186,   326,   327,
     381,   492,   427,   493,  -160,  -160,  -160,  -160,   351,    30,
      79,     5,   429,   434,   500,  -160,   203,    52,    31,  -160,
     446,  -160,   450,   263,   -83,    33,   -84,   513,   363,   205,
      34,   366,    68,    35,   522,    69,   205,    36,    67,    53,
     280,    39,  -160,  -160,  -160,  -160,  -160,  -160,   267,   149,
    -160,    51,   438,  -160,  -160,  -160,    80,   462,    66,   193,
     154,   193,   354,   155,  -160,   310,    73,   194,   195,   194,
     195,   509,   420,   205,   475,   422,    75,    84,   482,     8,
     270,   272,   273,    53,   476,   -44,   275,    77,   477,   276,
     335,   478,    54,    53,   159,   160,   161,   162,    40,   110,
      55,    56,    41,   510,    85,    42,    43,   341,   352,   111,
     311,   312,   313,   314,   315,   316,   511,   455,   125,   521,
     456,   309,   127,   320,   505,   317,   269,   506,   371,   372,
     130,   457,   335,   458,   112,   113,   114,   115,   128,   116,
     137,   227,   332,   228,   229,   230,   338,   119,   163,   131,
     149,   145,   164,   132,   133,   134,   353,   135,   355,   168,
     231,   232,   233,   165,   234,   452,   356,   357,   358,   359,
     136,   364,   360,   169,   367,   173,     1,   175,   178,     2,
       3,     4,   174,   440,   335,   179,   180,     2,   386,   390,
     204,   181,   182,   235,   236,   237,   238,     5,   187,     6,
     214,   188,   392,     7,   239,     5,   189,   190,   240,   210,
     241,    52,   112,   113,   114,   115,   215,   116,   216,   221,
      68,   117,   118,    69,   271,   119,    46,    47,    48,    49,
     222,   112,   113,   114,   115,   242,   116,   225,   520,   243,
     226,   265,   244,   245,   119,   266,   -21,   280,   460,   461,
     282,   283,   284,   246,   287,   112,   113,   114,   115,   242,
     116,   288,   324,   243,   325,     8,   244,   343,   119,   453,
       9,   328,   303,     8,   337,   494,   362,    53,    10,   -45,
     386,   463,   365,   368,   379,   467,    54,   373,   374,   469,
      68,   117,   118,    69,    55,    56,   473,   386,   418,  -250,
     480,   386,   421,   483,   423,   424,   485,  -251,   419,   425,
     112,   113,   114,   115,   518,   116,   489,   426,    68,   117,
     118,    69,   443,   119,   290,   291,   292,   293,   294,   295,
     296,   297,   491,   298,   299,   300,   301,   302,   112,   113,
     114,   115,   444,   116,   448,   451,   441,   390,   504,   454,
     507,   119,   508,   112,   113,   114,   115,   242,   116,   464,
     466,   344,   117,   118,   345,   346,   119,   468,   393,   470,
     471,   484,   486,   487,   394,   395,   488,   347,   348,   349,
     396,   397,   398,   399,   400,   401,   402,   495,   496,   497,
     498,   502,   403,   404,   405,   406,   514,   515,   516,   519,
     247,    32,    76,   212,   391,   146,   303,   138,   304,   305,
     112,   113,   114,   115,   140,   116,   217,   472,    68,   117,
     118,    69,   141,   119,   219,   112,   113,   114,   115,   147,
     116,   503,   442,    68,   117,   118,    69,   375,   119,   209,
     321,   322,   285,   407,   143,   408,   342,   211,   264,     0,
       0,   409,   410,   411,   412,   413,   414,   415,   416,    86,
      87,    88,    89,    90,    91,    92,    93,    94,    95,    96,
       0,    97,    98,    99,   112,   113,   114,   115,   140,   116,
       0,     0,    68,   117,   118,    69,   141,   119,   112,   113,
     114,   115,    40,   116,     0,     0,   339,     0,     0,   340,
      43,   119,   112,   113,   114,   115,     0,   116,     0,     0,
     383,   117,   118,    69,     0,   119,   112,   113,   114,   115,
       0,   116,     0,     0,   387,   117,   118,    69,     0,   119,
     112,   113,   114,   115,     0,   116,     0,     0,   474,   117,
     118,    69,     0,   119,   112,   113,   114,   115,     0,   116,
       0,     0,   481,   117,   118,    69,     0,   119,   112,   113,
     114,   115,     0,   116,     0,     0,     0,     0,     0,     0,
       0,   119
};

static const yytype_int16 yycheck[] =
{
      78,    64,   128,   110,   213,   178,   335,   227,   424,     4,
     236,   108,    11,     1,    70,    38,     4,    70,     4,    70,
      15,    29,    10,   104,    12,    13,    14,   108,     5,    29,
       5,     8,     9,     8,     9,   336,   109,    70,   172,    70,
     108,    29,    30,    31,    70,    33,     4,   119,   135,   136,
     116,    59,   104,   179,     4,    32,   122,    32,    16,    59,
     112,   108,    85,     7,    14,   274,   200,   123,   277,   278,
     123,   467,   123,   469,    62,    63,    64,    65,   304,     4,
      30,    25,    81,    78,    70,    73,   173,    31,     0,    77,
     123,    79,   123,   219,    71,     4,    71,   123,   318,   177,
      70,   321,   108,     4,   520,   111,   184,   120,   120,    97,
     236,     4,   100,   101,   102,   103,   104,   105,   225,   245,
     108,     4,    80,   111,   112,   113,    76,   428,   108,   106,
     108,   106,   305,   111,   122,    10,   104,   114,   115,   114,
     115,    29,   362,   221,   445,   365,     4,     4,   449,    93,
     228,   229,   230,    97,    17,    99,   108,    99,    21,   111,
     286,    24,   106,    97,    50,    51,    52,    53,   104,   118,
     114,   115,   108,    61,   121,   111,   112,   303,   304,   108,
      55,    56,    57,    58,    59,    60,    74,   108,   108,   518,
     111,   269,     4,   271,   108,    70,    14,   111,   324,   325,
     122,   421,   328,   423,   100,   101,   102,   103,   112,   105,
       4,    10,   108,    12,    13,    14,   294,   113,   104,   122,
     346,    70,   108,   122,   122,   122,   304,   122,   306,   108,
      29,    30,    31,   119,    33,   408,    18,    19,    20,    21,
     122,   319,    24,   108,   322,   118,     4,    97,   119,     7,
       8,     9,   105,   379,   380,    70,   123,     7,   336,   337,
     120,   123,   123,    62,    63,    64,    65,    25,   123,    27,
     108,   123,   350,    31,    73,    25,   123,   123,    77,   120,
      79,    31,   100,   101,   102,   103,     4,   105,    71,   121,
     108,   109,   110,   111,    14,   113,    50,    51,    52,    53,
     120,   100,   101,   102,   103,   104,   105,    70,   517,   108,
       4,     4,   111,   112,   113,   104,   108,   443,   425,   426,
       4,     4,     4,   122,   122,   100,   101,   102,   103,   104,
     105,     4,    70,   108,    70,    93,   111,    14,   113,   417,
      98,   122,   116,    93,   122,   471,    10,    97,   106,    99,
     428,   429,    10,   104,    22,   433,   106,   104,   104,   437,
     108,   109,   110,   111,   114,   115,   444,   445,   120,   122,
     448,   449,    10,   451,    10,    70,   454,   122,   122,   118,
     100,   101,   102,   103,   510,   105,   464,   118,   108,   109,
     110,   111,   118,   113,    34,    35,    36,    37,    38,    39,
      40,    41,   465,    43,    44,    45,    46,    47,   100,   101,
     102,   103,    22,   105,    22,    22,   108,   495,   496,   118,
     498,   113,   500,   100,   101,   102,   103,   104,   105,    75,
       4,   108,   109,   110,   111,   112,   113,     4,    42,     4,
      22,   120,   123,   123,    48,    49,     4,   124,   125,   126,
      54,    55,    56,    57,    58,    59,    60,   122,    22,   122,
      22,     4,    66,    67,    68,    69,   123,   123,     4,     4,
     219,    12,    59,   185,   346,   126,   116,   108,   118,   119,
     100,   101,   102,   103,   104,   105,   200,   443,   108,   109,
     110,   111,   112,   113,   201,   100,   101,   102,   103,   119,
     105,   495,   380,   108,   109,   110,   111,   328,   113,   179,
     272,   272,   245,   117,   111,   119,   303,   184,   221,    -1,
      -1,   125,   126,   127,   128,   129,   130,   131,   132,    82,
      83,    84,    85,    86,    87,    88,    89,    90,    91,    92,
      -1,    94,    95,    96,   100,   101,   102,   103,   104,   105,
      -1,    -1,   108,   109,   110,   111,   112,   113,   100,   101,
     102,   103,   104,   105,    -1,    -1,   108,    -1,    -1,   111,
     112,   113,   100,   101,   102,   103,    -1,   105,    -1,    -1,
     108,   109,   110,   111,    -1,   113,   100,   101,   102,   103,
      -1,   105,    -1,    -1,   108,   109,   110,   111,    -1,   113,
     100,   101,   102,   103,    -1,   105,    -1,    -1,   108,   109,
     110,   111,    -1,   113,   100,   101,   102,   103,    -1,   105,
      -1,    -1,   108,   109,   110,   111,    -1,   113,   100,   101,
     102,   103,    -1,   105,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,   113
};

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

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

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


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

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

#define YYRECOVERING()  (!!yyerrstatus)

#define YYBACKUP(Token, Value)					\
do								\
  if (yychar == YYEMPTY && yylen == 1)				\
    {								\
      yychar = (Token);						\
      yylval = (Value);						\
      yytoken = YYTRANSLATE (yychar);				\
      YYPOPSTACK (1);						\
      goto yybackup;						\
    }								\
  else								\
    {								\
      yyerror (yyscanner, 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


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

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


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

#ifdef YYLEX_PARAM
# define YYLEX yylex (&yylval, YYLEX_PARAM)
#else
# define YYLEX yylex (&yylval, yyscanner, 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 YYRESULT an error message about the unexpected token
   YYCHAR while in state YYSTATE.  Return the number of bytes copied,
   including the terminating null byte.  If YYRESULT is null, do not
   copy anything; just return the number of bytes that would be
   copied.  As a special case, return 0 if an ordinary "syntax error"
   message will do.  Return YYSIZE_MAXIMUM if overflow occurs during
   size calculation.  */
static YYSIZE_T
yysyntax_error (char *yyresult, int yystate, int yychar)
{
  int yyn = yypact[yystate];

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

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

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

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

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

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

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

      if (yysize_overflow)
	return YYSIZE_MAXIMUM;

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

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

/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, void *yyscanner, 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 or yypush_parse.  |
`-------------------------*/

#ifdef YYPARSE_PARAM
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
int
yyparse (void *YYPARSE_PARAM)
#else
int
yyparse (YYPARSE_PARAM)
    void *YYPARSE_PARAM;
#endif
#else /* ! YYPARSE_PARAM */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
int
yyparse (void *yyscanner, 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 (yyn == YYPACT_NINF)
    goto yydefault;

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

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

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

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

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

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

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

  yystate = yyn;
  *++yyvsp = yylval;

  goto yynewstate;


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


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

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

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


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

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

  case 5:

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

  case 6:

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

  case 7:

/* Line 1464 of yacc.c  */
#line 1128 "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 1464 of yacc.c  */
#line 1134 "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 1464 of yacc.c  */
#line 1139 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; }
    break;

  case 10:

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

  case 11:

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

  case 12:

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

  case 13:

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

  case 14:

/* Line 1464 of yacc.c  */
#line 1148 "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 1464 of yacc.c  */
#line 1157 "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 1464 of yacc.c  */
#line 1163 "compilers/imcc/imcc.y"
    {
           /* set_filename() frees the STRINGC */
           set_filename(imcc, (yyvsp[(2) - (3)].s));
         }
    break;

  case 17:

/* Line 1464 of yacc.c  */
#line 1171 "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 1464 of yacc.c  */
#line 1183 "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 1464 of yacc.c  */
#line 1195 "compilers/imcc/imcc.y"
    { imcc->is_def = 1; }
    break;

  case 20:

/* Line 1464 of yacc.c  */
#line 1196 "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 1464 of yacc.c  */
#line 1204 "compilers/imcc/imcc.y"
    { imcc->is_def = 1; }
    break;

  case 22:

/* Line 1464 of yacc.c  */
#line 1205 "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 1464 of yacc.c  */
#line 1223 "compilers/imcc/imcc.y"
    { (yyval.i) = 0;  }
    break;

  case 28:

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

  case 29:

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

  case 30:

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

  case 31:

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

  case 34:

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

  case 35:

/* Line 1464 of yacc.c  */
#line 1234 "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 1464 of yacc.c  */
#line 1240 "compilers/imcc/imcc.y"
    {
           imc_close_unit(imcc, imcc->cur_unit);
           imcc->cur_unit = imc_open_unit(imcc, IMC_PASM);
         }
    break;

  case 37:

/* Line 1464 of yacc.c  */
#line 1245 "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 1464 of yacc.c  */
#line 1251 "compilers/imcc/imcc.y"
    {
           (yyval.i) = MK_I(imcc, imcc->cur_unit, "null", 1, (yyvsp[(2) - (2)].sr));
         }
    break;

  case 39:

/* Line 1464 of yacc.c  */
#line 1255 "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 1464 of yacc.c  */
#line 1267 "compilers/imcc/imcc.y"
    { (yyval.i) = 0;}
    break;

  case 42:

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

  case 43:

/* Line 1464 of yacc.c  */
#line 1278 "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 1464 of yacc.c  */
#line 1294 "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 1464 of yacc.c  */
#line 1308 "compilers/imcc/imcc.y"
    { (yyval.sr) = (yyvsp[(2) - (3)].sr); }
    break;

  case 48:

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

  case 49:

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

  case 50:

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

  case 51:

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

  case 52:

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

  case 53:

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

  case 54:

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

  case 55:

/* Line 1464 of yacc.c  */
#line 1341 "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 1464 of yacc.c  */
#line 1348 "compilers/imcc/imcc.y"
    { (yyval.i) = 0; imcc->cur_call = NULL; }
    break;

  case 57:

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

  case 58:

/* Line 1464 of yacc.c  */
#line 1355 "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 1464 of yacc.c  */
#line 1378 "compilers/imcc/imcc.y"
    { imcc->is_def = 0; }
    break;

  case 60:

/* Line 1464 of yacc.c  */
#line 1383 "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 1464 of yacc.c  */
#line 1407 "compilers/imcc/imcc.y"
    { (yyval.t) = 0; }
    break;

  case 62:

/* Line 1464 of yacc.c  */
#line 1412 "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 63:

/* Line 1464 of yacc.c  */
#line 1418 "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 64:

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

  case 65:

/* Line 1464 of yacc.c  */
#line 1433 "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 66:

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

  case 67:

/* Line 1464 of yacc.c  */
#line 1448 "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 68:

/* Line 1464 of yacc.c  */
#line 1457 "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 69:

/* Line 1464 of yacc.c  */
#line 1463 "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 70:

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

  case 71:

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

  case 72:

/* Line 1464 of yacc.c  */
#line 1485 "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 73:

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

  case 74:

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

  case 75:

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

  case 76:

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

  case 77:

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

  case 78:

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

  case 79:

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

  case 80:

/* Line 1464 of yacc.c  */
#line 1517 "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 81:

/* Line 1464 of yacc.c  */
#line 1528 "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 82:

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

  case 85:

/* Line 1464 of yacc.c  */
#line 1548 "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 86:

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

  case 87:

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

  case 88:

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

  case 89:

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

  case 90:

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

  case 91:

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

  case 93:

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

  case 94:

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

  case 95:

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

  case 96:

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

  case 97:

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

  case 98:

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

  case 99:

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

  case 100:

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

  case 101:

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

  case 109:

/* Line 1464 of yacc.c  */
#line 1611 "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 110:

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

  case 111:

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

  case 112:

/* Line 1464 of yacc.c  */
#line 1624 "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 113:

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

  case 114:

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

  case 115:

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

  case 116:

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

  case 117:

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

  case 118:

/* Line 1464 of yacc.c  */
#line 1652 "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 119:

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

  case 120:

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

  case 121:

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

  case 122:

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

  case 123:

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

  case 124:

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

  case 125:

/* Line 1464 of yacc.c  */
#line 1672 "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 126:

/* Line 1464 of yacc.c  */
#line 1673 "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 127:

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

  case 128:

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

  case 129:

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

  case 130:

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

  case 131:

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

  case 132:

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

  case 133:

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

  case 134:

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

  case 135:

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

  case 136:

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

  case 137:

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

  case 138:

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

  case 139:

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

  case 140:

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

  case 141:

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

  case 142:

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

  case 143:

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

  case 144:

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

  case 145:

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

  case 146:

/* Line 1464 of yacc.c  */
#line 1752 "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 147:

/* Line 1464 of yacc.c  */
#line 1762 "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 148:

/* Line 1464 of yacc.c  */
#line 1767 "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 149:

/* Line 1464 of yacc.c  */
#line 1777 "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 152:

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

  case 153:

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

  case 154:

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

  case 155:

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

  case 156:

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

  case 157:

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

  case 158:

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

  case 159:

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

  case 160:

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

  case 164:

/* Line 1464 of yacc.c  */
#line 1824 "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 165:

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

  case 166:

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

  case 167:

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

  case 168:

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

  case 169:

/* Line 1464 of yacc.c  */
#line 1864 "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 172:

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

  case 173:

/* Line 1464 of yacc.c  */
#line 1875 "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 174:

/* Line 1464 of yacc.c  */
#line 1888 "compilers/imcc/imcc.y"
    {
            if ((yyvsp[(4) - (4)].sr)->set != 'P') {
                mem_sys_free((yyvsp[(2) - (4)].s));
                IMCC_fataly(imcc, EXCEPTION_SYNTAX_ERROR,
                    "Cannot use %c register with .lex", (yyvsp[(4) - (4)].sr)->set);
            }
            else {
               SymReg *n;
               char   *name = mem_sys_strdup((yyvsp[(2) - (4)].s) + 1);
               name[strlen(name) - 1] = 0;
               n = mk_const(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 175:

/* Line 1464 of yacc.c  */
#line 1905 "compilers/imcc/imcc.y"
    {
            if ((yyvsp[(4) - (4)].sr)->set != 'P') {
                mem_sys_free((yyvsp[(2) - (4)].s));
                IMCC_fataly(imcc, EXCEPTION_SYNTAX_ERROR,
                    "Cannot use %c register with .lex", (yyvsp[(4) - (4)].sr)->set);
            }
            else {
               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 176:

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

  case 177:

/* Line 1464 of yacc.c  */
#line 1918 "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 179:

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

  case 180:

/* Line 1464 of yacc.c  */
#line 1926 "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 181:

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

  case 182:

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

  case 183:

/* Line 1464 of yacc.c  */
#line 1942 "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 184:

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

  case 185:

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

  case 186:

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

  case 189:

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

  case 190:

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

  case 191:

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

  case 192:

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

  case 193:

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

  case 194:

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

  case 195:

/* Line 1464 of yacc.c  */
#line 1966 "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 196:

/* Line 1464 of yacc.c  */
#line 1968 "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 197:

/* Line 1464 of yacc.c  */
#line 1970 "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 198:

/* Line 1464 of yacc.c  */
#line 1972 "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 199:

/* Line 1464 of yacc.c  */
#line 1975 "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 200:

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

  case 201:

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

  case 205:

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

  case 206:

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

  case 207:

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

  case 208:

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

  case 209:

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

  case 210:

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

  case 211:

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

  case 212:

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

  case 213:

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

  case 214:

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

  case 215:

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

  case 216:

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

  case 217:

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

  case 218:

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

  case 219:

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

  case 220:

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

  case 221:

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

  case 222:

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

  case 223:

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

  case 224:

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

  case 225:

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

  case 226:

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

  case 227:

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

  case 228:

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

  case 229:

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

  case 230:

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

  case 231:

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

  case 232:

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

  case 233:

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

  case 234:

/* Line 1464 of yacc.c  */
#line 2046 "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 235:

/* Line 1464 of yacc.c  */
#line 2048 "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 236:

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

  case 237:

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

  case 238:

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

  case 239:

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

  case 240:

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

  case 241:

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

  case 242:

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

  case 243:

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

  case 244:

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

  case 245:

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

  case 246:

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

  case 247:

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

  case 248:

/* Line 1464 of yacc.c  */
#line 2074 "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 249:

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

  case 250:

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

  case 251:

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

  case 252:

/* Line 1464 of yacc.c  */
#line 2086 "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 253:

/* Line 1464 of yacc.c  */
#line 2092 "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 254:

/* Line 1464 of yacc.c  */
#line 2106 "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 255:

/* Line 1464 of yacc.c  */
#line 2112 "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 256:

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

  case 257:

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

  case 258:

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

  case 259:

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

  case 260:

/* Line 1464 of yacc.c  */
#line 2137 "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 261:

/* Line 1464 of yacc.c  */
#line 2147 "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 262:

/* Line 1464 of yacc.c  */
#line 2157 "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 263:

/* Line 1464 of yacc.c  */
#line 2163 "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 264:

/* Line 1464 of yacc.c  */
#line 2168 "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 265:

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

  case 266:

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

  case 267:

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

  case 268:

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

  case 269:

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

  case 270:

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

  case 271:

/* Line 1464 of yacc.c  */
#line 2191 "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 272:

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

  case 273:

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

  case 274:

/* Line 1464 of yacc.c  */
#line 2210 "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 275:

/* Line 1464 of yacc.c  */
#line 2220 "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 276:

/* Line 1464 of yacc.c  */
#line 2226 "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 277:

/* Line 1464 of yacc.c  */
#line 2236 "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 278:

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

  case 279:

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

  case 280:

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

  case 281:

/* Line 1464 of yacc.c  */
#line 2250 "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 282:

/* Line 1464 of yacc.c  */
#line 2254 "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 283:

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

  case 284:

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

  case 285:

/* Line 1464 of yacc.c  */
#line 2269 "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 286:

/* Line 1464 of yacc.c  */
#line 2273 "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 287:

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

  case 288:

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

  case 289:

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

  case 290:

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

  case 291:

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

  case 292:

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

  case 293:

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

  case 294:

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

  case 297:

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

  case 298:

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

  case 299:

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

  case 301:

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

  case 302:

/* Line 1464 of yacc.c  */
#line 2310 "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 303:

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

  case 305:

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

  case 306:

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

  case 307:

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

  case 308:

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

  case 309:

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

  case 310:

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

  case 315:

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

  case 316:

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

  case 317:

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

  case 318:

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

  case 319:

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

  case 320:

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

  case 321:

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

  case 322:

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

  case 323:

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

  case 324:

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

  case 325:

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

  case 326:

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

  case 327:

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

  case 328:

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

  case 329:

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

  case 330:

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

  case 331:

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



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

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

  *++yyvsp = yyval;

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

  yyn = yyr1[yyn];

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

  goto yynewstate;


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

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



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

      if (yychar <= YYEOF)
	{
	  /* Return failure if at end of input.  */
	  if (yychar == YYEOF)
	    YYABORT;
	}
      else
	{
	  yydestruct ("Error: discarding",
		      yytoken, &yylval, yyscanner, 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 (yyn != YYPACT_NINF)
	{
	  yyn += YYTERROR;
	  if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
	    {
	      yyn = yytable[yyn];
	      if (0 < yyn)
		break;
	    }
	}

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


      yydestruct ("Error: popping",
		  yystos[yystate], yyvsp, yyscanner, 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)
     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 1684 of yacc.c  */
#line 2406 "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' :
 */

