/* A Bison parser, made from parser.y
   by GNU bison 1.35.  */

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

# define	sySkip	257
# define	syRoutine	258
# define	sySimpleRoutine	259
# define	sySimpleProcedure	260
# define	syProcedure	261
# define	syFunction	262
# define	sySubsystem	263
# define	syKernelUser	264
# define	syKernelServer	265
# define	syMsgOption	266
# define	syMsgSeqno	267
# define	syWaitTime	268
# define	syNoWaitTime	269
# define	syErrorProc	270
# define	syServerPrefix	271
# define	syUserPrefix	272
# define	syServerDemux	273
# define	syRCSId	274
# define	syImport	275
# define	syUImport	276
# define	sySImport	277
# define	syIn	278
# define	syOut	279
# define	syInOut	280
# define	syRequestPort	281
# define	syReplyPort	282
# define	sySReplyPort	283
# define	syUReplyPort	284
# define	syType	285
# define	syArray	286
# define	syStruct	287
# define	syOf	288
# define	syInTran	289
# define	syOutTran	290
# define	syDestructor	291
# define	syCType	292
# define	syCUserType	293
# define	syCServerType	294
# define	syCString	295
# define	syColon	296
# define	sySemi	297
# define	syComma	298
# define	syPlus	299
# define	syMinus	300
# define	syStar	301
# define	syDiv	302
# define	syLParen	303
# define	syRParen	304
# define	syEqual	305
# define	syCaret	306
# define	syTilde	307
# define	syLAngle	308
# define	syRAngle	309
# define	syLBrack	310
# define	syRBrack	311
# define	syBar	312
# define	syError	313
# define	syNumber	314
# define	sySymbolicType	315
# define	syIdentifier	316
# define	syString	317
# define	syQString	318
# define	syFileName	319
# define	syIPCFlag	320

#line 141 "parser.y"


#include <stdio.h>

#include "error.h"
#include "lexxer.h"
#include "global.h"
#include "mig_string.h"
#include "type.h"
#include "routine.h"
#include "statement.h"
#include <mom/compiler.h>

int yylex();

static const char *import_name(statement_kind_t sk);

void
yyerror(const char *s)
{
#if 0
	error(s);
#endif
}

void
ParseError(const char *s)
{
	error(s);
}

void
ParseErrorWithSavedPos(const char *s)
{
	int realtokenpos = tokenpos;
	int reallineno = lineno;
	
	tokenpos = savedpos;
	lineno = savedlineno;
	error(s);
	tokenpos = realtokenpos;
	lineno = reallineno;
}


#line 187 "parser.y"
#ifndef YYSTYPE
typedef union
{
    u_int number;
    identifier_t identifier;
    const_string_t string;
    statement_kind_t statement_kind;
    ipc_type_t *type;
    struct
    {
	u_int innumber;		/* msgt_name value, when sending */
	const_string_t instr;
	u_int outnumber;	/* msgt_name value, when receiving */
	const_string_t outstr;
	u_int size;		/* 0 means there is no default size */
    } symtype;
    routine_t *routine;
    arg_kind_t direction;
    argument_t *argument;
    ipc_flags_t flag;
} yystype;
# define YYSTYPE yystype
# define YYSTYPE_IS_TRIVIAL 1
#endif
#ifndef YYDEBUG
# define YYDEBUG 0
#endif



#define	YYFINAL		259
#define	YYFLAG		-32768
#define	YYNTBASE	67

/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */
#define YYTRANSLATE(x) ((unsigned)(x) <= 320 ? yytranslate[x] : 134)

/* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */
static const char yytranslate[] =
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     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,     3,     4,     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
};

#if YYDEBUG
static const short yyprhs[] =
{
       0,     0,     1,     4,     7,    10,    13,    16,    19,    22,
      25,    28,    31,    34,    38,    41,    44,    46,    49,    54,
      56,    57,    60,    62,    64,    66,    68,    72,    76,    78,
      81,    84,    87,    90,    94,    96,    98,   100,   104,   107,
     111,   115,   117,   126,   135,   143,   148,   153,   158,   160,
     162,   165,   168,   171,   174,   176,   178,   180,   187,   188,
     192,   198,   200,   202,   204,   206,   208,   210,   212,   216,
     218,   221,   225,   230,   236,   244,   250,   256,   261,   268,
     272,   276,   280,   284,   286,   290,   292,   294,   296,   298,
     300,   304,   308,   312,   316,   321,   324,   328,   330,   335,
     339,   344,   345,   347,   349,   351,   353,   355,   357,   359,
     361,   363,   365,   368,   371,   373,   375,   377,   379,   381,
     383,   385,   387,   389,   391,   393,   395,   397,   399,   401,
     403,   405,   407,   409,   411,   413,   415,   417,   419,   421,
     423,   425,   427,   429,   431,   433,   435,   437,   439,   441,
     442,   443,   444
};
static const short yyrhs[] =
{
      -1,    67,    68,     0,    69,   113,     0,    76,   113,     0,
      75,   113,     0,    77,   113,     0,    78,   113,     0,    79,
     113,     0,    80,   113,     0,    84,   113,     0,   101,   113,
       0,     3,    43,     0,     3,   126,   113,     0,    81,   113,
       0,    83,   113,     0,    43,     0,     1,    43,     0,    70,
      71,    73,    74,     0,     9,     0,     0,    71,    72,     0,
      10,     0,    11,     0,   125,     0,   126,     0,   130,    12,
     127,     0,   130,    14,   127,     0,    15,     0,    16,   124,
       0,    17,   124,     0,    18,   124,     0,    19,   125,     0,
     131,    82,   129,     0,    21,     0,    22,     0,    23,     0,
     132,    20,   128,     0,    31,    86,     0,    62,    51,    87,
       0,   123,   114,    87,     0,    88,     0,    87,    35,   121,
     123,   123,   116,   123,   117,     0,    87,    36,   121,   123,
     123,   116,   123,   117,     0,    87,    37,   121,   123,   116,
     123,   117,     0,    87,    38,   121,   123,     0,    87,    39,
     121,   123,     0,    87,    40,   121,   123,     0,    89,     0,
      95,     0,    96,    88,     0,    97,    88,     0,    52,    88,
       0,    98,    88,     0,    99,     0,     1,     0,    94,     0,
      49,    93,   115,   100,    90,   117,     0,     0,    90,    44,
     122,     0,    90,    44,   122,    56,   119,     0,    60,     0,
      61,     0,    91,     0,     1,     0,    94,     0,     1,     0,
      91,     0,    91,    58,    92,     0,    62,     0,    62,    58,
       0,    62,    58,    62,     0,    32,   118,    57,   120,     0,
      32,   118,    47,   119,   120,     0,    32,   118,    47,    42,
     100,   119,   120,     0,    32,   118,   100,   119,   120,     0,
      33,   118,   100,   119,   120,     0,    41,   118,   100,   119,
       0,    41,   118,    47,   121,   100,   119,     0,   100,    45,
     100,     0,   100,    46,   100,     0,   100,    47,   100,     0,
     100,    48,   100,     0,   126,     0,    49,   100,   117,     0,
     102,     0,   103,     0,   104,     0,   105,     0,   106,     0,
       4,   123,   107,     0,     5,   123,   107,     0,     7,   123,
     107,     0,     6,   123,   107,     0,     8,   123,   107,   111,
       0,   116,    50,     0,   116,   108,   117,     0,   109,     0,
     109,   133,    43,   108,     0,   109,   133,   112,     0,   110,
      62,   111,    90,     0,     0,    24,     0,    25,     0,    26,
       0,    27,     0,    28,     0,    29,     0,    30,     0,    14,
       0,    12,     0,    13,     0,   121,   123,     0,   121,    85,
       0,    43,     0,    43,     0,     1,     0,    51,     0,     1,
       0,    44,     0,     1,     0,    49,     0,     1,     0,    50,
       0,     1,     0,    56,     0,     1,     0,    57,     0,     1,
       0,    34,     0,     1,     0,    42,     0,     1,     0,    66,
       0,     1,     0,    62,     0,     1,     0,    62,     0,     1,
       0,    62,     0,     1,     0,    60,     0,     1,     0,    63,
       0,     1,     0,    64,     0,     1,     0,    65,     0,     1,
       0,     0,     0,     0,     0
};

#endif

#if YYDEBUG
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const short yyrline[] =
{
       0,   210,   211,   214,   215,   216,   217,   218,   219,   220,
     221,   222,   232,   234,   236,   237,   238,   239,   243,   256,
     268,   269,   272,   278,   286,   289,   292,   309,   315,   323,
     331,   339,   347,   355,   366,   367,   368,   371,   381,   391,
     395,   399,   401,   422,   443,   459,   474,   484,   496,   498,
     500,   502,   504,   506,   508,   510,   518,   524,   533,   535,
     543,   553,   559,   563,   565,   574,   576,   585,   587,   611,
     613,   618,   625,   627,   630,   635,   640,   645,   648,   653,
     655,   657,   659,   661,   663,   667,   668,   669,   670,   671,
     674,   678,   682,   686,   690,   695,   697,   701,   703,   708,
     712,   723,   724,   725,   726,   727,   728,   729,   730,   731,
     732,   733,   736,   745,   749,   754,   755,   760,   761,   766,
     767,   772,   773,   778,   779,   784,   785,   790,   791,   796,
     797,   802,   803,   808,   809,   817,   818,   825,   826,   832,
     833,   839,   840,   846,   847,   853,   854,   860,   861,   867,
     871,   875,   878
};
#endif


#if (YYDEBUG) || defined YYERROR_VERBOSE

/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */
static const char *const yytname[] =
{
  "$", "error", "$undefined.", "sySkip", "syRoutine", "sySimpleRoutine", 
  "sySimpleProcedure", "syProcedure", "syFunction", "sySubsystem", 
  "syKernelUser", "syKernelServer", "syMsgOption", "syMsgSeqno", 
  "syWaitTime", "syNoWaitTime", "syErrorProc", "syServerPrefix", 
  "syUserPrefix", "syServerDemux", "syRCSId", "syImport", "syUImport", 
  "sySImport", "syIn", "syOut", "syInOut", "syRequestPort", "syReplyPort", 
  "sySReplyPort", "syUReplyPort", "syType", "syArray", "syStruct", "syOf", 
  "syInTran", "syOutTran", "syDestructor", "syCType", "syCUserType", 
  "syCServerType", "syCString", "syColon", "sySemi", "syComma", "syPlus", 
  "syMinus", "syStar", "syDiv", "syLParen", "syRParen", "syEqual", 
  "syCaret", "syTilde", "syLAngle", "syRAngle", "syLBrack", "syRBrack", 
  "syBar", "syError", "syNumber", "sySymbolicType", "syIdentifier", 
  "syString", "syQString", "syFileName", "syIPCFlag", "Statements", 
  "Statement", "Subsystem", "SubsystemStart", "SubsystemMods", 
  "SubsystemMod", "SubsystemName", "SubsystemBase", "MsgOption", 
  "WaitTime", "Error", "ServerPrefix", "UserPrefix", "ServerDemux", 
  "Import", "ImportIndicant", "RCSDecl", "TypeDecl", "NamedTypeSpec", 
  "NamedTypeSpecOrError", "TransTypeSpec", "TypeSpec", "BasicTypeSpec", 
  "IPCFlags", "PrimIPCType", "PrimIPCTypeOrError", "IPCTypeOrError", 
  "IPCType", "PrevTypeSpec", "VarArrayHead", "ArrayHead", "StructHead", 
  "CStringSpec", "IntExpOrError", "RoutineDecl", "Routine", 
  "SimpleRoutine", "Procedure", "SimpleProcedure", "Function", 
  "Arguments", "ArgumentList", "Argument", "Direction", "ArgumentType", 
  "SemiError", "SemiOrError", "EqualOrError", "CommaOrError", 
  "LParenOrError", "RParenOrError", "LBrackOrError", "RBrackOrError", 
  "OfOrError", "ColonOrError", "IPCFlagOrError", "IdentifierOrError", 
  "IdentifierOrEmptyError", "IdentifierOrNULLError", "NumberOrError", 
  "StringOrNULLError", "QStringOrError", "FileNameOrError", "LookString", 
  "LookFileName", "LookQString", "saveTokenPos", 0
};
#endif

/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const short yyr1[] =
{
       0,    67,    67,    68,    68,    68,    68,    68,    68,    68,
      68,    68,    68,    68,    68,    68,    68,    68,    69,    70,
      71,    71,    72,    72,    73,    74,    75,    76,    76,    77,
      78,    79,    80,    81,    82,    82,    82,    83,    84,    85,
      86,    87,    87,    87,    87,    87,    87,    87,    88,    88,
      88,    88,    88,    88,    88,    88,    89,    89,    90,    90,
      90,    91,    91,    92,    92,    93,    93,    94,    94,    95,
      95,    95,    96,    96,    96,    97,    98,    99,    99,   100,
     100,   100,   100,   100,   100,   101,   101,   101,   101,   101,
     102,   103,   104,   105,   106,   107,   107,   108,   108,   108,
     109,   110,   110,   110,   110,   110,   110,   110,   110,   110,
     110,   110,   111,   111,   112,   113,   113,   114,   114,   115,
     115,   116,   116,   117,   117,   118,   118,   119,   119,   120,
     120,   121,   121,   122,   122,   123,   123,   124,   124,   125,
     125,   126,   126,   127,   127,   128,   128,   129,   129,   130,
     131,   132,   133
};

/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
static const short yyr2[] =
{
       0,     0,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     3,     2,     2,     1,     2,     4,     1,
       0,     2,     1,     1,     1,     1,     3,     3,     1,     2,
       2,     2,     2,     3,     1,     1,     1,     3,     2,     3,
       3,     1,     8,     8,     7,     4,     4,     4,     1,     1,
       2,     2,     2,     2,     1,     1,     1,     6,     0,     3,
       5,     1,     1,     1,     1,     1,     1,     1,     3,     1,
       2,     3,     4,     5,     7,     5,     5,     4,     6,     3,
       3,     3,     3,     1,     3,     1,     1,     1,     1,     1,
       3,     3,     3,     3,     4,     2,     3,     1,     4,     3,
       4,     0,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     2,     2,     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,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     0,
       0,     0,     0
};

/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE
   doesn't specify something else to do.  Zero means the default is an
   error. */
static const short yydefact[] =
{
       1,     0,     0,     0,     0,     0,     0,     0,     0,    19,
      28,     0,     0,     0,     0,     0,    16,     2,     0,    20,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
      85,    86,    87,    88,    89,     0,     0,     0,    17,   142,
      12,   141,     0,   136,   135,     0,     0,     0,     0,     0,
     138,   137,    29,    30,    31,   140,   139,    32,    38,     0,
     116,   115,     3,     0,     5,     4,     6,     7,     8,     9,
      14,    15,    10,    11,     0,     0,    34,    35,    36,     0,
       0,    13,   122,   121,    90,   101,    91,    93,    92,     0,
     118,   117,     0,    22,    23,    21,     0,    24,   144,   143,
      26,    27,   148,   147,    33,   146,   145,    37,   110,   111,
     109,   102,   103,   104,   105,   106,   107,   108,    95,     0,
      97,     0,   132,   131,    94,     0,    55,     0,     0,     0,
       0,     0,    61,    62,    69,    40,    41,    48,    67,    56,
      49,     0,     0,     0,    54,    18,    25,   124,   123,    96,
       0,     0,   135,   113,   112,   126,   125,     0,     0,     0,
      66,     0,    65,    52,    70,     0,     0,     0,     0,     0,
       0,     0,    50,    51,    53,   114,    99,    58,     0,     0,
       0,     0,     0,    83,     0,     0,     0,   120,   119,     0,
      71,     0,     0,     0,     0,     0,     0,    64,    63,    68,
      98,   100,    39,   128,     0,   127,     0,     0,   130,   129,
      72,     0,     0,     0,     0,     0,     0,     0,    77,    58,
       0,     0,     0,    45,    46,    47,     0,     0,    73,    84,
      79,    80,    81,    82,    75,    76,     0,     0,     0,     0,
       0,   134,   133,    59,     0,    78,    57,     0,     0,     0,
       0,    74,     0,     0,    44,    60,    42,    43,     0,     0
};

static const short yydefgoto[] =
{
       1,    17,    18,    19,    63,    95,    96,   145,    20,    21,
      22,    23,    24,    25,    26,    79,    27,    28,   153,    58,
     135,   136,   137,   201,   138,   199,   161,   139,   140,   141,
     142,   143,   144,   182,    29,    30,    31,    32,    33,    34,
      84,   119,   120,   121,   124,   176,    62,    92,   189,    85,
     149,   157,   206,   210,   125,   243,    45,    52,    57,   183,
     100,   107,   104,    35,    36,    37,   150
};

static const short yypact[] =
{
  -32768,   205,   -27,    43,    18,    18,    18,    18,    18,-32768,
  -32768,    19,    19,    19,    20,    18,-32768,-32768,   115,-32768,
     115,   115,   115,   115,   115,   115,   115,   115,   115,   115,
  -32768,-32768,-32768,-32768,-32768,    39,   162,    22,-32768,-32768,
  -32768,-32768,   115,-32768,-32768,    65,    65,    65,    65,    65,
  -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,    13,
  -32768,-32768,-32768,    17,-32768,-32768,-32768,-32768,-32768,-32768,
  -32768,-32768,-32768,-32768,    12,    12,-32768,-32768,-32768,     7,
      10,-32768,-32768,-32768,-32768,   168,-32768,-32768,-32768,   112,
  -32768,-32768,    16,-32768,-32768,-32768,    30,-32768,-32768,-32768,
  -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,    51,
       2,   -32,-32768,-32768,-32768,    21,-32768,    11,    11,    11,
      24,    16,-32768,-32768,    -4,   127,-32768,-32768,    -2,-32768,
  -32768,    16,    16,    16,-32768,-32768,-32768,-32768,-32768,-32768,
      78,   112,     9,-32768,-32768,-32768,-32768,    45,    38,    46,
  -32768,    14,-32768,-32768,     0,   112,   112,   112,   112,   112,
     112,    28,-32768,-32768,-32768,   117,-32768,-32768,    16,    54,
      38,   126,    62,-32768,    62,   112,    62,-32768,-32768,    38,
  -32768,    18,    18,    18,    18,    18,    18,-32768,-32768,-32768,
  -32768,    94,   127,-32768,    38,-32768,   126,   103,-32768,-32768,
  -32768,    38,    38,    38,    38,   126,   126,    38,-32768,   128,
      18,    18,    65,-32768,-32768,-32768,     5,    62,-32768,-32768,
     -13,   -13,-32768,-32768,-32768,-32768,    62,   111,    65,    65,
      18,-32768,-32768,    83,   126,-32768,-32768,    18,    18,    51,
      42,-32768,    51,    51,-32768,-32768,-32768,-32768,   140,-32768
};

static const short yypgoto[] =
{
  -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
     -21,  -105,-32768,   -60,     6,-32768,-32768,    48,-32768,-32768,
  -32768,-32768,-32768,   -89,-32768,-32768,-32768,-32768,-32768,-32768,
     153,    29,-32768,-32768,    52,-32768,   229,-32768,-32768,  -198,
     -81,   -11,  -177,  -183,   -33,-32768,    -5,   157,   144,     1,
     154,-32768,-32768,-32768,-32768,-32768,-32768
};


#define	YYLAST		271


static const short yytable[] =
{
      46,    47,    48,    49,    42,   215,   241,   216,   102,   218,
      59,   105,   155,    98,    90,   187,    38,   126,    55,    43,
      50,    55,    43,   228,   240,   160,   163,    93,    94,   197,
     151,    39,   234,   235,   213,   214,   172,   173,   174,    39,
     247,   248,    80,   203,    39,  -152,    39,    39,   127,   128,
     244,    74,   147,    75,   164,   203,   171,   129,   188,   245,
     178,   251,   190,   203,    91,   130,    82,   156,   131,   184,
     186,   242,   103,   255,   106,    99,   132,   133,   134,    56,
      44,    51,    56,   152,   132,   133,    40,   180,   132,   133,
      41,   207,   179,   185,   180,   180,   204,   146,    41,   205,
     219,   148,   181,    41,   147,    41,    41,   211,   212,   213,
     214,   205,   147,   122,    83,   227,    60,   158,   159,   205,
     154,   175,   230,   231,   232,   233,   229,   208,   236,   108,
     109,   110,   191,   192,   193,   194,   195,   196,   226,   250,
     259,   111,   112,   113,   114,   115,   116,   117,   211,   212,
     213,   214,   217,   148,   123,   226,   246,   202,    61,   237,
     209,   148,   165,   166,   167,   168,   169,   170,   254,    53,
      54,   256,   257,   211,   212,   213,   214,   198,   162,  -101,
     108,   109,   110,    76,    77,    78,   220,   221,   222,   223,
     224,   225,   111,   112,   113,   114,   115,   116,   117,    86,
      87,    88,    89,   177,   200,   258,     2,    97,     3,     4,
       5,     6,     7,     8,     9,   238,   239,  -149,   118,  -149,
      10,    11,    12,    13,    14,  -151,  -150,  -150,  -150,   101,
       0,     0,     0,     0,     0,   249,    15,     0,     0,     0,
       0,     0,   252,   253,     0,     0,     0,     0,    16,    64,
      65,    66,    67,    68,    69,    70,    71,    72,    73,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,    81
};

static const short yycheck[] =
{
       5,     6,     7,     8,     3,   182,     1,   184,     1,   186,
      15,     1,     1,     1,     1,     1,    43,     1,     1,     1,
       1,     1,     1,   206,   222,     1,   131,    10,    11,     1,
      62,     1,   215,   216,    47,    48,   141,   142,   143,     1,
     238,   239,    20,     1,     1,    43,     1,     1,    32,    33,
     227,    12,     1,    14,    58,     1,    58,    41,    44,   236,
      51,   244,    62,     1,    51,    49,     1,    56,    52,   158,
     159,    66,    65,   250,    64,    63,    60,    61,    62,    62,
      62,    62,    62,    62,    60,    61,    43,    49,    60,    61,
      60,   180,    47,    47,    49,    49,    42,    96,    60,    57,
     189,    50,    57,    60,     1,    60,    60,    45,    46,    47,
      48,    57,     1,     1,    49,   204,     1,   128,   129,    57,
     125,    43,   211,   212,   213,   214,   207,     1,   217,    12,
      13,    14,   165,   166,   167,   168,   169,   170,    44,    56,
       0,    24,    25,    26,    27,    28,    29,    30,    45,    46,
      47,    48,   185,    50,    42,    44,   237,   178,    43,   219,
      34,    50,    35,    36,    37,    38,    39,    40,   249,    12,
      13,   252,   253,    45,    46,    47,    48,   171,   130,    62,
      12,    13,    14,    21,    22,    23,   191,   192,   193,   194,
     195,   196,    24,    25,    26,    27,    28,    29,    30,    46,
      47,    48,    49,   151,   175,     0,     1,    63,     3,     4,
       5,     6,     7,     8,     9,   220,   221,    12,    50,    14,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    75,
      -1,    -1,    -1,    -1,    -1,   240,    31,    -1,    -1,    -1,
      -1,    -1,   247,   248,    -1,    -1,    -1,    -1,    43,    20,
      21,    22,    23,    24,    25,    26,    27,    28,    29,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    42
};
/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
#line 3 "/usr/local/share/bison/bison.simple"

/* Skeleton output parser for bison,

   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 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 2, 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, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */

/* As a special exception, when this file is copied by Bison into a
   Bison output file, you may use that output file without restriction.
   This special exception was added by the Free Software Foundation
   in version 1.24 of Bison.  */

/* This is the parser code that is written into each bison parser when
   the %semantic_parser declaration is not specified in the grammar.
   It was written by Richard Stallman by simplifying the hairy parser
   used when %semantic_parser is specified.  */

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

#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE)

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

# if YYSTACK_USE_ALLOCA
#  define YYSTACK_ALLOC alloca
# else
#  ifndef YYSTACK_USE_ALLOCA
#   if defined (alloca) || defined (_ALLOCA_H)
#    define YYSTACK_ALLOC alloca
#   else
#    ifdef __GNUC__
#     define YYSTACK_ALLOC __builtin_alloca
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's `empty if-body' warning. */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# else
#  if defined (__STDC__) || defined (__cplusplus)
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   define YYSIZE_T size_t
#  endif
#  define YYSTACK_ALLOC malloc
#  define YYSTACK_FREE free
# endif
#endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */


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

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
  short yyss;
  YYSTYPE yyvs;
# if YYLSP_NEEDED
  YYLTYPE yyls;
# endif
};

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

/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
# if YYLSP_NEEDED
#  define YYSTACK_BYTES(N) \
     ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE))	\
      + 2 * YYSTACK_GAP_MAX)
# else
#  define YYSTACK_BYTES(N) \
     ((N) * (sizeof (short) + sizeof (YYSTYPE))				\
      + YYSTACK_GAP_MAX)
# endif

/* Copy COUNT objects from FROM to TO.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if 1 < __GNUC__
#   define YYCOPY(To, From, Count) \
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
#  else
#   define YYCOPY(To, From, Count)		\
      do					\
	{					\
	  register YYSIZE_T yyi;		\
	  for (yyi = 0; yyi < (Count); yyi++)	\
	    (To)[yyi] = (From)[yyi];		\
	}					\
      while (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)					\
    do									\
      {									\
	YYSIZE_T yynewbytes;						\
	YYCOPY (&yyptr->Stack, Stack, yysize);				\
	Stack = &yyptr->Stack;						\
	yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX;	\
	yyptr += yynewbytes / sizeof (*yyptr);				\
      }									\
    while (0)

#endif


#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
# define YYSIZE_T __SIZE_TYPE__
#endif
#if ! defined (YYSIZE_T) && defined (size_t)
# define YYSIZE_T size_t
#endif
#if ! defined (YYSIZE_T)
# if defined (__STDC__) || defined (__cplusplus)
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
# endif
#endif
#if ! defined (YYSIZE_T)
# define YYSIZE_T unsigned int
#endif

#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 yyerrlab1
/* 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.  */
#define YYFAIL		goto yyerrlab
#define YYRECOVERING()  (!!yyerrstatus)
#define YYBACKUP(Token, Value)					\
do								\
  if (yychar == YYEMPTY && yylen == 1)				\
    {								\
      yychar = (Token);						\
      yylval = (Value);						\
      yychar1 = YYTRANSLATE (yychar);				\
      YYPOPSTACK;						\
      goto yybackup;						\
    }								\
  else								\
    { 								\
      yyerror ("syntax error: cannot back up");			\
      YYERROR;							\
    }								\
while (0)

#define YYTERROR	1
#define YYERRCODE	256


/* YYLLOC_DEFAULT -- Compute the default location (before the actions
   are run).

   When YYLLOC_DEFAULT is run, CURRENT is set the location of the
   first token.  By default, to implement support for ranges, extend
   its range to the last symbol.  */

#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)       	\
   Current.last_line   = Rhs[N].last_line;	\
   Current.last_column = Rhs[N].last_column;
#endif


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

#if YYPURE
# if YYLSP_NEEDED
#  ifdef YYLEX_PARAM
#   define YYLEX		yylex (&yylval, &yylloc, YYLEX_PARAM)
#  else
#   define YYLEX		yylex (&yylval, &yylloc)
#  endif
# else /* !YYLSP_NEEDED */
#  ifdef YYLEX_PARAM
#   define YYLEX		yylex (&yylval, YYLEX_PARAM)
#  else
#   define YYLEX		yylex (&yylval)
#  endif
# endif /* !YYLSP_NEEDED */
#else /* !YYPURE */
# define YYLEX			yylex ()
#endif /* !YYPURE */


/* 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 (0)
/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
#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
   SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
   evaluated with infinite-precision integer arithmetic.  */

#if YYMAXDEPTH == 0
# undef YYMAXDEPTH
#endif

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif

#ifdef YYERROR_VERBOSE

# ifndef yystrlen
#  if defined (__GLIBC__) && defined (_STRING_H)
#   define yystrlen strlen
#  else
/* Return the length of YYSTR.  */
static YYSIZE_T
#   if defined (__STDC__) || defined (__cplusplus)
yystrlen (const char *yystr)
#   else
yystrlen (yystr)
     const char *yystr;
#   endif
{
  register const char *yys = yystr;

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

  return yys - yystr - 1;
}
#  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.  */
static char *
#   if defined (__STDC__) || defined (__cplusplus)
yystpcpy (char *yydest, const char *yysrc)
#   else
yystpcpy (yydest, yysrc)
     char *yydest;
     const char *yysrc;
#   endif
{
  register char *yyd = yydest;
  register const char *yys = yysrc;

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

  return yyd - 1;
}
#  endif
# endif
#endif

#line 315 "/usr/local/share/bison/bison.simple"


/* The user can define YYPARSE_PARAM as the name of an argument to be passed
   into yyparse.  The argument should have type void *.
   It should actually point to an object.
   Grammar actions can access the variable by casting it
   to the proper pointer type.  */

#ifdef YYPARSE_PARAM
# if defined (__STDC__) || defined (__cplusplus)
#  define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
#  define YYPARSE_PARAM_DECL
# else
#  define YYPARSE_PARAM_ARG YYPARSE_PARAM
#  define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
# endif
#else /* !YYPARSE_PARAM */
# define YYPARSE_PARAM_ARG
# define YYPARSE_PARAM_DECL
#endif /* !YYPARSE_PARAM */

/* Prevent warning if -Wstrict-prototypes.  */
#ifdef __GNUC__
# ifdef YYPARSE_PARAM
int yyparse (void *);
# else
int yyparse (void);
# endif
#endif

/* YY_DECL_VARIABLES -- depending whether we use a pure parser,
   variables are global, or local to YYPARSE.  */

#define YY_DECL_NON_LSP_VARIABLES			\
/* The lookahead symbol.  */				\
int yychar;						\
							\
/* The semantic value of the lookahead symbol. */	\
YYSTYPE yylval;						\
							\
/* Number of parse errors so far.  */			\
int yynerrs;

#if YYLSP_NEEDED
# define YY_DECL_VARIABLES			\
YY_DECL_NON_LSP_VARIABLES			\
						\
/* Location data for the lookahead symbol.  */	\
YYLTYPE yylloc;
#else
# define YY_DECL_VARIABLES			\
YY_DECL_NON_LSP_VARIABLES
#endif


/* If nonreentrant, generate the variables here. */

#if !YYPURE
YY_DECL_VARIABLES
#endif  /* !YYPURE */

int
yyparse (YYPARSE_PARAM_ARG)
     YYPARSE_PARAM_DECL
{
  /* If reentrant, generate the variables here. */
#if YYPURE
  YY_DECL_VARIABLES
#endif  /* !YYPURE */

  register int yystate;
  register int yyn;
  int yyresult;
  /* Number of tokens to shift before error messages enabled.  */
  int yyerrstatus;
  /* Lookahead token as an internal (translated) token number.  */
  int yychar1 = 0;

  /* Three stacks and their tools:
     `yyss': related to states,
     `yyvs': related to semantic values,
     `yyls': related to locations.

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

  /* The state stack. */
  short	yyssa[YYINITDEPTH];
  short *yyss = yyssa;
  register short *yyssp;

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

#if YYLSP_NEEDED
  /* The location stack.  */
  YYLTYPE yylsa[YYINITDEPTH];
  YYLTYPE *yyls = yylsa;
  YYLTYPE *yylsp;
#endif

#if YYLSP_NEEDED
# define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
#else
# define YYPOPSTACK   (yyvsp--, yyssp--)
#endif

  YYSIZE_T yystacksize = YYINITDEPTH;


  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;
#if YYLSP_NEEDED
  YYLTYPE yyloc;
#endif

  /* When reducing, the number of symbols on the RHS of the reduced
     rule. */
  int yylen;

  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;
#if YYLSP_NEEDED
  yylsp = yyls;
#endif
  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 (yyssp >= yyss + yystacksize - 1)
    {
      /* 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;
	short *yyss1 = yyss;

	/* Each stack pointer address is followed by the size of the
	   data in use in that stack, in bytes.  */
# if YYLSP_NEEDED
	YYLTYPE *yyls1 = yyls;
	/* This used to be a conditional around just the two extra args,
	   but that might be undefined if yyoverflow is a macro.  */
	yyoverflow ("parser stack overflow",
		    &yyss1, yysize * sizeof (*yyssp),
		    &yyvs1, yysize * sizeof (*yyvsp),
		    &yyls1, yysize * sizeof (*yylsp),
		    &yystacksize);
	yyls = yyls1;
# else
	yyoverflow ("parser stack overflow",
		    &yyss1, yysize * sizeof (*yyssp),
		    &yyvs1, yysize * sizeof (*yyvsp),
		    &yystacksize);
# endif
	yyss = yyss1;
	yyvs = yyvs1;
      }
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
      goto yyoverflowlab;
# else
      /* Extend the stack our own way.  */
      if (yystacksize >= YYMAXDEPTH)
	goto yyoverflowlab;
      yystacksize *= 2;
      if (yystacksize > YYMAXDEPTH)
	yystacksize = YYMAXDEPTH;

      {
	short *yyss1 = yyss;
	union yyalloc *yyptr =
	  (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
	if (! yyptr)
	  goto yyoverflowlab;
	YYSTACK_RELOCATE (yyss);
	YYSTACK_RELOCATE (yyvs);
# if YYLSP_NEEDED
	YYSTACK_RELOCATE (yyls);
# endif
# undef YYSTACK_RELOCATE
	if (yyss1 != yyssa)
	  YYSTACK_FREE (yyss1);
      }
# endif
#endif /* no yyoverflow */

      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;
#if YYLSP_NEEDED
      yylsp = yyls + yysize - 1;
#endif

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

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

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

  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.  */
/* yyresume: */

  /* First try to decide what to do without reference to lookahead token.  */

  yyn = yypact[yystate];
  if (yyn == YYFLAG)
    goto yydefault;

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

  /* yychar is either YYEMPTY or YYEOF
     or a valid token in external form.  */

  if (yychar == YYEMPTY)
    {
      YYDPRINTF ((stderr, "Reading a token: "));
      yychar = YYLEX;
    }

  /* Convert token to internal form (in yychar1) for indexing tables with */

  if (yychar <= 0)		/* This means end of input. */
    {
      yychar1 = 0;
      yychar = YYEOF;		/* Don't call YYLEX any more */

      YYDPRINTF ((stderr, "Now at end of input.\n"));
    }
  else
    {
      yychar1 = YYTRANSLATE (yychar);

#if YYDEBUG
     /* We have to keep this `#if YYDEBUG', since we use variables
	which are defined only if `YYDEBUG' is set.  */
      if (yydebug)
	{
	  YYFPRINTF (stderr, "Next token is %d (%s",
		     yychar, yytname[yychar1]);
	  /* Give the individual parser a way to print the precise
	     meaning of a token, for further debugging info.  */
# ifdef YYPRINT
	  YYPRINT (stderr, yychar, yylval);
# endif
	  YYFPRINTF (stderr, ")\n");
	}
#endif
    }

  yyn += yychar1;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
    goto yydefault;

  yyn = yytable[yyn];

  /* yyn is what to do for this token type in this state.
     Negative => reduce, -yyn is rule number.
     Positive => shift, yyn is new state.
       New state is final state => don't bother to shift,
       just return success.
     0, or most negative number => error.  */

  if (yyn < 0)
    {
      if (yyn == YYFLAG)
	goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }
  else if (yyn == 0)
    goto yyerrlab;

  if (yyn == YYFINAL)
    YYACCEPT;

  /* Shift the lookahead token.  */
  YYDPRINTF ((stderr, "Shifting token %d (%s), ",
	      yychar, yytname[yychar1]));

  /* Discard the token being shifted unless it is eof.  */
  if (yychar != YYEOF)
    yychar = YYEMPTY;

  *++yyvsp = yylval;
#if YYLSP_NEEDED
  *++yylsp = yylloc;
#endif

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

  yystate = yyn;
  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 the semantic value of
     the lookahead token.  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];

#if YYLSP_NEEDED
  /* Similarly for the default location.  Let the user run additional
     commands if for instance locations are ranges.  */
  yyloc = yylsp[1-yylen];
  YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
#endif

#if YYDEBUG
  /* We have to keep this `#if YYDEBUG', since we use variables which
     are defined only if `YYDEBUG' is set.  */
  if (yydebug)
    {
      int yyi;

      YYFPRINTF (stderr, "Reducing via rule %d (line %d), ",
		 yyn, yyrline[yyn]);

      /* Print the symbols being reduced, and their result.  */
      for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++)
	YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]);
      YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]);
    }
#endif

  switch (yyn) {

case 11:
#line 223 "parser.y"
{
    register statement_t *st = stAlloc();

    st->stKind = skRoutine;
    st->stRoutine = yyvsp[-1].routine;
    rtCheckRoutine(yyvsp[-1].routine);
    if (BeVerbose)
	rtPrintRoutine(yyvsp[-1].routine);
}
    break;
case 12:
#line 233 "parser.y"
{ rtSkip(1); }
    break;
case 13:
#line 235 "parser.y"
{ rtSkip(yyvsp[-1].number); }
    break;
case 17:
#line 240 "parser.y"
{ ParseError("invalid statement"); yyerrok; }
    break;
case 18:
#line 245 "parser.y"
{
    if (BeVerbose)
    {
	printf("Subsystem %s: base = %u%s%s\n\n",
	       SubsystemName, SubsystemBase,
	       IsKernelUser ? ", KernelUser" : "",
	       IsKernelServer ? ", KernelServer" : "");
    }
}
    break;
case 19:
#line 257 "parser.y"
{
    if (SubsystemName != strNULL)
    {
	warn("previous Subsystem decl (of %s) will be ignored", SubsystemName);
	IsKernelUser = FALSE;
	IsKernelServer = FALSE;
	strfree((string_t) SubsystemName);
    }
}
    break;
case 22:
#line 273 "parser.y"
{
    if (IsKernelUser)
	warn("duplicate KernelUser keyword");
    IsKernelUser = TRUE;
}
    break;
case 23:
#line 279 "parser.y"
{
    if (IsKernelServer)
	warn("duplicate KernelServer keyword");
    IsKernelServer = TRUE;
}
    break;
case 24:
#line 286 "parser.y"
{ SubsystemName = yyvsp[0].identifier; }
    break;
case 25:
#line 289 "parser.y"
{ SubsystemBase = yyvsp[0].number; }
    break;
case 26:
#line 293 "parser.y"
{
    if (streql(yyvsp[0].string, "MACH_MSG_OPTION_NONE"))
    {
	MsgOption = strNULL;
	if (BeVerbose)
	    printf("MsgOption: cancelled\n\n");
    }
    else
    {
	MsgOption = yyvsp[0].string;
	if (BeVerbose)
	    printf("MsgOption %s\n\n",yyvsp[0].string);
    }
}
    break;
case 27:
#line 310 "parser.y"
{
    WaitTime = yyvsp[0].string;
    if (BeVerbose)
	printf("WaitTime %s\n\n", WaitTime);
}
    break;
case 28:
#line 316 "parser.y"
{
    WaitTime = strNULL;
    if (BeVerbose)
	printf("NoWaitTime\n\n");
}
    break;
case 29:
#line 324 "parser.y"
{
    ErrorProc = yyvsp[0].identifier;
    if (BeVerbose)
	printf("ErrorProc %s\n\n", ErrorProc);
}
    break;
case 30:
#line 332 "parser.y"
{
    ServerPrefix = yyvsp[0].identifier;
    if (BeVerbose)
	printf("ServerPrefix %s\n\n", ServerPrefix);
}
    break;
case 31:
#line 340 "parser.y"
{
    UserPrefix = yyvsp[0].identifier;
    if (BeVerbose)
	printf("UserPrefix %s\n\n", UserPrefix);
}
    break;
case 32:
#line 348 "parser.y"
{
    ServerDemux = yyvsp[0].identifier;
    if (BeVerbose)
	printf("ServerDemux %s\n\n", ServerDemux);
}
    break;
case 33:
#line 356 "parser.y"
{
    register statement_t *st = stAlloc();
    st->stKind = yyvsp[-1].statement_kind;
    st->stFileName = yyvsp[0].string;

    if (BeVerbose)
	printf("%s %s\n\n", import_name(yyvsp[-1].statement_kind), yyvsp[0].string);
}
    break;
case 34:
#line 366 "parser.y"
{ yyval.statement_kind = skImport; }
    break;
case 35:
#line 367 "parser.y"
{ yyval.statement_kind = skUImport; }
    break;
case 36:
#line 368 "parser.y"
{ yyval.statement_kind = skSImport; }
    break;
case 37:
#line 372 "parser.y"
{
    if (RCSId != strNULL)
	warn("previous RCS decl will be ignored");
    if (BeVerbose)
	printf("RCSId %s\n\n", yyvsp[0].string);
    RCSId = yyvsp[0].string;
}
    break;
case 38:
#line 382 "parser.y"
{
    register identifier_t name = yyvsp[0].type->itName;

    if (itLookUp(name) != itNULL)
	warn("overriding previous definition of %s", name);
    itInsert(name, yyvsp[0].type);
}
    break;
case 39:
#line 392 "parser.y"
{ itTypeDecl(yyvsp[-2].identifier, yyval.type = yyvsp[0].type); }
    break;
case 40:
#line 396 "parser.y"
{ itTypeDecl(yyvsp[-2].identifier, yyval.type = yyvsp[0].type); }
    break;
case 41:
#line 400 "parser.y"
{ yyval.type = itResetType(yyvsp[0].type); }
    break;
case 42:
#line 404 "parser.y"
{
    yyval.type = yyvsp[-7].type;

    if ((yyval.type->itTransType != strNULL) && !streql(yyval.type->itTransType, yyvsp[-4].identifier))
	warn("conflicting translation types (%s, %s)",
	     yyval.type->itTransType, yyvsp[-4].identifier);
    yyval.type->itTransType = yyvsp[-4].identifier;

    if ((yyval.type->itInTrans != strNULL) && !streql(yyval.type->itInTrans, yyvsp[-3].identifier))
	warn("conflicting in-translation functions (%s, %s)",
	     yyval.type->itInTrans, yyvsp[-3].identifier);
    yyval.type->itInTrans = yyvsp[-3].identifier;

    if ((yyval.type->itServerType != strNULL) && !streql(yyval.type->itServerType, yyvsp[-1].identifier))
	warn("conflicting server types (%s, %s)",
	     yyval.type->itServerType, yyvsp[-1].identifier);
    yyval.type->itServerType = yyvsp[-1].identifier;
}
    break;
case 43:
#line 425 "parser.y"
{
    yyval.type = yyvsp[-7].type;

    if ((yyval.type->itServerType != strNULL) && !streql(yyval.type->itServerType, yyvsp[-4].identifier))
	warn("conflicting server types (%s, %s)",
	     yyval.type->itServerType, yyvsp[-4].identifier);
    yyval.type->itServerType = yyvsp[-4].identifier;

    if ((yyval.type->itOutTrans != strNULL) && !streql(yyval.type->itOutTrans, yyvsp[-3].identifier))
	warn("conflicting out-translation functions (%s, %s)",
	     yyval.type->itOutTrans, yyvsp[-3].identifier);
    yyval.type->itOutTrans = yyvsp[-3].identifier;

    if ((yyval.type->itTransType != strNULL) && !streql(yyval.type->itTransType, yyvsp[-1].identifier))
	warn("conflicting translation types (%s, %s)",
	     yyval.type->itTransType, yyvsp[-1].identifier);
    yyval.type->itTransType = yyvsp[-1].identifier;
}
    break;
case 44:
#line 446 "parser.y"
{
    yyval.type = yyvsp[-6].type;

    if ((yyval.type->itDestructor != strNULL) && !streql(yyval.type->itDestructor, yyvsp[-3].identifier))
	warn("conflicting destructor functions (%s, %s)",
	     yyval.type->itDestructor, yyvsp[-3].identifier);
    yyval.type->itDestructor = yyvsp[-3].identifier;

    if ((yyval.type->itTransType != strNULL) && !streql(yyval.type->itTransType, yyvsp[-1].identifier))
	warn("conflicting translation types (%s, %s)",
	     yyval.type->itTransType, yyvsp[-1].identifier);
    yyval.type->itTransType = yyvsp[-1].identifier;
}
    break;
case 45:
#line 461 "parser.y"
{
    yyval.type = yyvsp[-3].type;

    if ((yyval.type->itUserType != strNULL) && !streql(yyval.type->itUserType, yyvsp[0].identifier))
	warn("conflicting user types (%s, %s)",
	     yyval.type->itUserType, yyvsp[0].identifier);
    yyval.type->itUserType = yyvsp[0].identifier;

    if ((yyval.type->itServerType != strNULL) && !streql(yyval.type->itServerType, yyvsp[0].identifier))
	warn("conflicting server types (%s, %s)",
	     yyval.type->itServerType, yyvsp[0].identifier);
    yyval.type->itServerType = yyvsp[0].identifier;
}
    break;
case 46:
#line 476 "parser.y"
{
    yyval.type = yyvsp[-3].type;

    if ((yyval.type->itUserType != strNULL) && !streql(yyval.type->itUserType, yyvsp[0].identifier))
	warn("conflicting user types (%s, %s)",
	     yyval.type->itUserType, yyvsp[0].identifier);
    yyval.type->itUserType = yyvsp[0].identifier;
}
    break;
case 47:
#line 486 "parser.y"
{
    yyval.type = yyvsp[-3].type;

    if ((yyval.type->itServerType != strNULL) && !streql(yyval.type->itServerType, yyvsp[0].identifier))
	warn("conflicting server types (%s, %s)",
	     yyval.type->itServerType, yyvsp[0].identifier);
    yyval.type->itServerType = yyvsp[0].identifier;
}
    break;
case 48:
#line 497 "parser.y"
{ yyval.type = yyvsp[0].type; }
    break;
case 49:
#line 499 "parser.y"
{ yyval.type = yyvsp[0].type; }
    break;
case 50:
#line 501 "parser.y"
{ yyval.type = itVarArrayDecl(yyvsp[-1].number, yyvsp[0].type); }
    break;
case 51:
#line 503 "parser.y"
{ yyval.type = itArrayDecl(yyvsp[-1].number, yyvsp[0].type); }
    break;
case 52:
#line 505 "parser.y"
{ yyval.type = itPtrDecl(yyvsp[0].type); }
    break;
case 53:
#line 507 "parser.y"
{ yyval.type = itStructDecl(yyvsp[-1].number, yyvsp[0].type); }
    break;
case 54:
#line 509 "parser.y"
{ yyval.type = yyvsp[0].type; }
    break;
case 55:
#line 510 "parser.y"
{
					ParseError("expecting a type");
					yyval.type = itShortDecl(0, "error",
		     				0, "error",
		 				1);
				}
    break;
case 56:
#line 519 "parser.y"
{
    yyval.type = itShortDecl(yyvsp[0].symtype.innumber, yyvsp[0].symtype.instr,
		     yyvsp[0].symtype.outnumber, yyvsp[0].symtype.outstr,
		     yyvsp[0].symtype.size);
}
    break;
case 57:
#line 526 "parser.y"
{
    yyval.type = itLongDecl(yyvsp[-4].symtype.innumber, yyvsp[-4].symtype.instr,
		    yyvsp[-4].symtype.outnumber, yyvsp[-4].symtype.outstr,
		    yyvsp[-4].symtype.size, yyvsp[-2].number, yyvsp[-1].flag);
}
    break;
case 58:
#line 534 "parser.y"
{ yyval.flag = flNone; }
    break;
case 59:
#line 537 "parser.y"
{
    if (yyvsp[-2].flag & yyvsp[0].flag)
	warn("redundant IPC flag ignored");
    else
	yyval.flag = yyvsp[-2].flag | yyvsp[0].flag;
}
    break;
case 60:
#line 545 "parser.y"
{
    if (yyvsp[-2].flag != flDealloc)
	warn("only Dealloc is variable");
    else
	yyval.flag = yyvsp[-4].flag | flMaybeDealloc;
}
    break;
case 61:
#line 554 "parser.y"
{
    yyval.symtype.innumber = yyval.symtype.outnumber = yyvsp[0].number;
    yyval.symtype.instr = yyval.symtype.outstr = strNULL;
    yyval.symtype.size = 0;
}
    break;
case 62:
#line 560 "parser.y"
{ yyval.symtype = yyvsp[0].symtype; }
    break;
case 63:
#line 564 "parser.y"
{ yyval.symtype = yyvsp[0].symtype; }
    break;
case 64:
#line 566 "parser.y"
{
	ParseError("number or IPC Type expected");
	yyval.symtype.innumber = yyval.symtype.outnumber = 0;
	yyval.symtype.instr = yyval.symtype.outstr = "<error>";
	yyval.symtype.size = 0;
}
    break;
case 65:
#line 575 "parser.y"
{ yyval.symtype = yyvsp[0].symtype; }
    break;
case 66:
#line 577 "parser.y"
{
	ParseError("number or IPC Type expected");
	yyval.symtype.innumber = yyval.symtype.outnumber = 0;
	yyval.symtype.instr = yyval.symtype.outstr = "<error>";
	yyval.symtype.size = 0;
}
    break;
case 67:
#line 586 "parser.y"
{ yyval.symtype = yyvsp[0].symtype; }
    break;
case 68:
#line 588 "parser.y"
{
    if (yyvsp[-2].symtype.size != yyvsp[0].symtype.size)
    {
	if (yyvsp[-2].symtype.size == 0)
	    yyval.symtype.size = yyvsp[0].symtype.size;
	else if (yyvsp[0].symtype.size == 0)
	    yyval.symtype.size = yyvsp[-2].symtype.size;
	else
	{
	    error("unequal sizes in IPCTypes (%d, %d) not supported",
		  yyvsp[-2].symtype.size, yyvsp[0].symtype.size);
	    yyval.symtype.size = 0;
	}
    }
    else
	yyval.symtype.size = yyvsp[-2].symtype.size;
    yyval.symtype.innumber = yyvsp[-2].symtype.innumber;
    yyval.symtype.instr = yyvsp[-2].symtype.instr;
    yyval.symtype.outnumber = yyvsp[0].symtype.outnumber;
    yyval.symtype.outstr = yyvsp[0].symtype.outstr;
}
    break;
case 69:
#line 612 "parser.y"
{ yyval.type = itPrevDecl(yyvsp[0].identifier); }
    break;
case 70:
#line 614 "parser.y"
{ yyval.type = itPrevDecl(yyvsp[-1].identifier);
				  ParseError(("`|' not allowed (legal only "
					      "for standard MIG IPC types)"));
                                }
    break;
case 71:
#line 619 "parser.y"
{ yyval.type = itPrevDecl(yyvsp[-2].identifier);
				  ParseError(("`|' not allowed (legal only "
					      "for standard MIG IPC types)"));
                                }
    break;
case 72:
#line 626 "parser.y"
{ yyval.number = 0; }
    break;
case 73:
#line 629 "parser.y"
{ yyval.number = 0; }
    break;
case 74:
#line 632 "parser.y"
{ yyval.number = yyvsp[-2].number; }
    break;
case 75:
#line 637 "parser.y"
{ yyval.number = yyvsp[-2].number; }
    break;
case 76:
#line 642 "parser.y"
{ yyval.number = yyvsp[-2].number; }
    break;
case 77:
#line 647 "parser.y"
{ yyval.type = itCStringDecl(yyvsp[-1].number, FALSE); }
    break;
case 78:
#line 650 "parser.y"
{ yyval.type = itCStringDecl(yyvsp[-1].number, TRUE); }
    break;
case 79:
#line 654 "parser.y"
{ yyval.number = yyvsp[-2].number + yyvsp[0].number;	}
    break;
case 80:
#line 656 "parser.y"
{ yyval.number = yyvsp[-2].number - yyvsp[0].number;	}
    break;
case 81:
#line 658 "parser.y"
{ yyval.number = yyvsp[-2].number * yyvsp[0].number;	}
    break;
case 82:
#line 660 "parser.y"
{ yyval.number = yyvsp[-2].number / yyvsp[0].number;	}
    break;
case 83:
#line 662 "parser.y"
{ yyval.number = yyvsp[0].number;	}
    break;
case 84:
#line 664 "parser.y"
{ yyval.number = yyvsp[-1].number;	}
    break;
case 85:
#line 667 "parser.y"
{ yyval.routine = yyvsp[0].routine; }
    break;
case 86:
#line 668 "parser.y"
{ yyval.routine = yyvsp[0].routine; }
    break;
case 87:
#line 669 "parser.y"
{ yyval.routine = yyvsp[0].routine; }
    break;
case 88:
#line 670 "parser.y"
{ yyval.routine = yyvsp[0].routine; }
    break;
case 89:
#line 671 "parser.y"
{ yyval.routine = yyvsp[0].routine; }
    break;
case 90:
#line 675 "parser.y"
{ yyval.routine = rtMakeRoutine(yyvsp[-1].identifier, yyvsp[0].argument); }
    break;
case 91:
#line 679 "parser.y"
{ yyval.routine = rtMakeSimpleRoutine(yyvsp[-1].identifier, yyvsp[0].argument); }
    break;
case 92:
#line 683 "parser.y"
{ yyval.routine = rtMakeProcedure(yyvsp[-1].identifier, yyvsp[0].argument); }
    break;
case 93:
#line 687 "parser.y"
{ yyval.routine = rtMakeSimpleProcedure(yyvsp[-1].identifier, yyvsp[0].argument); }
    break;
case 94:
#line 692 "parser.y"
{ yyval.routine = rtMakeFunction(yyvsp[-2].identifier, yyvsp[-1].argument, yyvsp[0].type); }
    break;
case 95:
#line 696 "parser.y"
{ yyval.argument = argNULL; }
    break;
case 96:
#line 698 "parser.y"
{ yyval.argument = yyvsp[-1].argument; }
    break;
case 97:
#line 702 "parser.y"
{ yyval.argument = yyvsp[0].argument; }
    break;
case 98:
#line 704 "parser.y"
{
    yyval.argument = yyvsp[-3].argument;
    yyval.argument->argNext = yyvsp[0].argument;
}
    break;
case 99:
#line 709 "parser.y"
{ yyval.argument = yyvsp[-2].argument; }
    break;
case 100:
#line 714 "parser.y"
{
    yyval.argument = argAlloc();
    yyval.argument->argKind = yyvsp[-3].direction;
    yyval.argument->argName = yyvsp[-2].identifier;
    yyval.argument->argType = yyvsp[-1].type;
    yyval.argument->argFlags = yyvsp[0].flag;
}
    break;
case 101:
#line 723 "parser.y"
{ yyval.direction = akNone; }
    break;
case 102:
#line 724 "parser.y"
{ yyval.direction = akIn; }
    break;
case 103:
#line 725 "parser.y"
{ yyval.direction = akOut; }
    break;
case 104:
#line 726 "parser.y"
{ yyval.direction = akInOut; }
    break;
case 105:
#line 727 "parser.y"
{ yyval.direction = akRequestPort; }
    break;
case 106:
#line 728 "parser.y"
{ yyval.direction = akReplyPort; }
    break;
case 107:
#line 729 "parser.y"
{ yyval.direction = akSReplyPort; }
    break;
case 108:
#line 730 "parser.y"
{ yyval.direction = akUReplyPort; }
    break;
case 109:
#line 731 "parser.y"
{ yyval.direction = akWaitTime; }
    break;
case 110:
#line 732 "parser.y"
{ yyval.direction = akMsgOption; }
    break;
case 111:
#line 733 "parser.y"
{ yyval.direction = akMsgSeqno; }
    break;
case 112:
#line 737 "parser.y"
{
	if (yyvsp[0].identifier[0])
    	{
    		yyval.type = itLookUp(yyvsp[0].identifier);
    		if (yyval.type == itNULL)
			error("type `%s' not defined", yyvsp[0].identifier);
	}
}
    break;
case 113:
#line 746 "parser.y"
{ yyval.type = yyvsp[0].type; }
    break;
case 114:
#line 749 "parser.y"
{
					ParseErrorWithSavedPos("extra `;'");
				}
    break;
case 116:
#line 755 "parser.y"
{
					ParseError("`;' expected");
				}
    break;
case 118:
#line 761 "parser.y"
{
					ParseError("`=' expected");
				}
    break;
case 120:
#line 767 "parser.y"
{
					ParseError("`,' expected");
				}
    break;
case 122:
#line 773 "parser.y"
{
					ParseError("`(' expected");
				}
    break;
case 124:
#line 779 "parser.y"
{
					ParseError("`)' expected");
				}
    break;
case 126:
#line 785 "parser.y"
{
					ParseError("`[' expected");
				}
    break;
case 128:
#line 791 "parser.y"
{
					ParseError("`]' expected");
				}
    break;
case 130:
#line 797 "parser.y"
{
					ParseError("`of' expected");
				}
    break;
case 132:
#line 803 "parser.y"
{
					ParseError("`:' expected");
				}
    break;
case 133:
#line 808 "parser.y"
{ yyval.flag = yyvsp[0].flag; }
    break;
case 134:
#line 809 "parser.y"
{
					ParseError(("IPC flag expected "
						    "because of extra comma "
						    "found"));
					yyval.flag = flNone;
				}
    break;
case 135:
#line 817 "parser.y"
{ yyval.identifier = yyvsp[0].identifier; }
    break;
case 136:
#line 818 "parser.y"
{
					ParseError("identifier expected");
					yyval.identifier = flick_asprintf("_error %d_%d_",
							    lineno, tokenpos);
				}
    break;
case 137:
#line 825 "parser.y"
{ yyval.identifier = yyvsp[0].identifier; }
    break;
case 138:
#line 826 "parser.y"
{
					ParseError("identifier expected");
					yyval.identifier = "";
				}
    break;
case 139:
#line 832 "parser.y"
{ yyval.identifier = yyvsp[0].identifier; }
    break;
case 140:
#line 833 "parser.y"
{
					ParseError("identifier expected");
					yyval.identifier = strNULL;
				}
    break;
case 141:
#line 839 "parser.y"
{ yyval.number = yyvsp[0].number; }
    break;
case 142:
#line 840 "parser.y"
{
					ParseError("number expected");
					yyval.number = 0;
				}
    break;
case 143:
#line 846 "parser.y"
{ yyval.string = yyvsp[0].string; }
    break;
case 144:
#line 847 "parser.y"
{
					ParseError("string expected");
					yyval.string = strNULL;
				}
    break;
case 145:
#line 853 "parser.y"
{ yyval.string = yyvsp[0].string; }
    break;
case 146:
#line 854 "parser.y"
{
					ParseError("quoted string expected");
					yyval.string = "\"<error>\"";
				}
    break;
case 147:
#line 860 "parser.y"
{ yyval.string = yyvsp[0].string; }
    break;
case 148:
#line 861 "parser.y"
{
					ParseError("filename expected");
					yyval.string = "error.error";
				}
    break;
case 149:
#line 868 "parser.y"
{ LookString(); }
    break;
case 150:
#line 872 "parser.y"
{ LookFileName(); }
    break;
case 151:
#line 876 "parser.y"
{ LookQString(); }
    break;
case 152:
#line 879 "parser.y"
{ saveTokenPos(); }
    break;
}

#line 705 "/usr/local/share/bison/bison.simple"


  yyvsp -= yylen;
  yyssp -= yylen;
#if YYLSP_NEEDED
  yylsp -= yylen;
#endif

#if YYDEBUG
  if (yydebug)
    {
      short *yyssp1 = yyss - 1;
      YYFPRINTF (stderr, "state stack now");
      while (yyssp1 != yyssp)
	YYFPRINTF (stderr, " %d", *++yyssp1);
      YYFPRINTF (stderr, "\n");
    }
#endif

  *++yyvsp = yyval;
#if YYLSP_NEEDED
  *++yylsp = yyloc;
#endif

  /* 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 - YYNTBASE] + *yyssp;
  if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    yystate = yytable[yystate];
  else
    yystate = yydefgoto[yyn - YYNTBASE];

  goto yynewstate;


/*------------------------------------.
| yyerrlab -- here on detecting error |
`------------------------------------*/
yyerrlab:
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;

#ifdef YYERROR_VERBOSE
      yyn = yypact[yystate];

      if (yyn > YYFLAG && yyn < YYLAST)
	{
	  YYSIZE_T yysize = 0;
	  char *yymsg;
	  int yyx, yycount;

	  yycount = 0;
	  /* Start YYX at -YYN if negative to avoid negative indexes in
	     YYCHECK.  */
	  for (yyx = yyn < 0 ? -yyn : 0;
	       yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
	    if (yycheck[yyx + yyn] == yyx)
	      yysize += yystrlen (yytname[yyx]) + 15, yycount++;
	  yysize += yystrlen ("parse error, unexpected ") + 1;
	  yysize += yystrlen (yytname[YYTRANSLATE (yychar)]);
	  yymsg = (char *) YYSTACK_ALLOC (yysize);
	  if (yymsg != 0)
	    {
	      char *yyp = yystpcpy (yymsg, "parse error, unexpected ");
	      yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]);

	      if (yycount < 5)
		{
		  yycount = 0;
		  for (yyx = yyn < 0 ? -yyn : 0;
		       yyx < (int) (sizeof (yytname) / sizeof (char *));
		       yyx++)
		    if (yycheck[yyx + yyn] == yyx)
		      {
			const char *yyq = ! yycount ? ", expecting " : " or ";
			yyp = yystpcpy (yyp, yyq);
			yyp = yystpcpy (yyp, yytname[yyx]);
			yycount++;
		      }
		}
	      yyerror (yymsg);
	      YYSTACK_FREE (yymsg);
	    }
	  else
	    yyerror ("parse error; also virtual memory exhausted");
	}
      else
#endif /* defined (YYERROR_VERBOSE) */
	yyerror ("parse error");
    }
  goto yyerrlab1;


/*--------------------------------------------------.
| yyerrlab1 -- error raised explicitly by an action |
`--------------------------------------------------*/
yyerrlab1:
  if (yyerrstatus == 3)
    {
      /* If just tried and failed to reuse lookahead token after an
	 error, discard it.  */

      /* return failure if at end of input */
      if (yychar == YYEOF)
	YYABORT;
      YYDPRINTF ((stderr, "Discarding token %d (%s).\n",
		  yychar, yytname[yychar1]));
      yychar = YYEMPTY;
    }

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

  yyerrstatus = 3;		/* Each real token shifted decrements this */

  goto yyerrhandle;


/*-------------------------------------------------------------------.
| yyerrdefault -- current state does not do anything special for the |
| error token.                                                       |
`-------------------------------------------------------------------*/
yyerrdefault:
#if 0
  /* This is wrong; only states that explicitly want error tokens
     should shift them.  */

  /* If its default is to accept any token, ok.  Otherwise pop it.  */
  yyn = yydefact[yystate];
  if (yyn)
    goto yydefault;
#endif


/*---------------------------------------------------------------.
| yyerrpop -- pop the current state because it cannot handle the |
| error token                                                    |
`---------------------------------------------------------------*/
yyerrpop:
  if (yyssp == yyss)
    YYABORT;
  yyvsp--;
  yystate = *--yyssp;
#if YYLSP_NEEDED
  yylsp--;
#endif

#if YYDEBUG
  if (yydebug)
    {
      short *yyssp1 = yyss - 1;
      YYFPRINTF (stderr, "Error: state stack now");
      while (yyssp1 != yyssp)
	YYFPRINTF (stderr, " %d", *++yyssp1);
      YYFPRINTF (stderr, "\n");
    }
#endif

/*--------------.
| yyerrhandle.  |
`--------------*/
yyerrhandle:
  yyn = yypact[yystate];
  if (yyn == YYFLAG)
    goto yyerrdefault;

  yyn += YYTERROR;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
    goto yyerrdefault;

  yyn = yytable[yyn];
  if (yyn < 0)
    {
      if (yyn == YYFLAG)
	goto yyerrpop;
      yyn = -yyn;
      goto yyreduce;
    }
  else if (yyn == 0)
    goto yyerrpop;

  if (yyn == YYFINAL)
    YYACCEPT;

  YYDPRINTF ((stderr, "Shifting error token, "));

  *++yyvsp = yylval;
#if YYLSP_NEEDED
  *++yylsp = yylloc;
#endif

  yystate = yyn;
  goto yynewstate;


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

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

/*---------------------------------------------.
| yyoverflowab -- parser overflow comes here.  |
`---------------------------------------------*/
yyoverflowlab:
  yyerror ("parser stack overflow");
  yyresult = 2;
  /* Fall through.  */

yyreturn:
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
#endif
  return yyresult;
}
#line 883 "parser.y"


static const char *
import_name(statement_kind_t sk)
{
    switch (sk)
    {
      case skImport:
	return "Import";
      case skSImport:
	return "SImport";
      case skUImport:
	return "UImport";
      default:
	fatal("import_name(%d): not import statement", (int) sk);
	/*NOTREACHED*/
    }
}

/* End of file. */



syntax highlighted by Code2HTML, v. 0.9.1