
/*  A Bison parser, made from nice_std.y with Bison version GNU Bison version 1.22
  */

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

#define	ID	258
#define	INTCONST	259
#define	HEXCONST	260
#define	REALCONST	261
#define	STRCONST	262
#define	COMMENT	263
#define	ASG	264
#define	NE	265
#define	GE	266
#define	LE	267
#define	POW	268
#define	DOT2	269
#define	NUMB	270
#define	PROGRAM	271
#define	LABEL	272
#define	CONST	273
#define	TYPE	274
#define	VAR	275
#define	ARRAY	276
#define	PACKED	277
#define	UNPACKED	278
#define	RECORD	279
#define	ZFILE	280
#define	SET	281
#define	PROCEDURE	282
#define	FUNCTION	283
#define	ZBEGIN	284
#define	IF	285
#define	THEN	286
#define	ELSE	287
#define	GOTO	288
#define	CASE	289
#define	OTHERWISE	290
#define	OF	291
#define	WHILE	292
#define	DO	293
#define	FOR	294
#define	TO	295
#define	DOWNTO	296
#define	REPEAT	297
#define	UNTIL	298
#define	WITH	299
#define	AND	300
#define	OR	301
#define	NOT	302
#define	IN	303
#define	END	304
#define	DIV	305
#define	MOD	306
#define	FORWARD	307
#define	ZEXTERN	308
#define	EXTERNAL	309

#line 1 "nice_std.y"

/*
 *  NICE - utility
 *
 *  Programmed: Arne Vajhøj (august 1990)
 *
 */

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

#ifdef vms
#ifdef __ALPHA
#include <builtins.h>
#define alloca __ALLOCA
#else
#define alloca malloc
#endif
#endif

#define EXTERN extern
#include "glob.h"

int lind;            /* indentation         */
char *ws;            /* work-string-pointer */
char tmp[max_name];  /* temporary storage   */

int lstpcall = 0;  /* last pcall */

/* work variables */
int l;

/*  small tricks  */
#define malloc nice_malloc
#define realloc nice_realloc
#define free nice_free

void space(int k)
{
   int i;
   if (definition && calling) for(i=0;i<k*2;i++) fprintf(lfp," ");
   return;
}

void space2(int k)
{
   int i;
   for(i=0;i<k*2;i++) fprintf(dfp," ");
   return;
}

void docpcall(char *name)
{
   int fnd;
   fnd = FALSE;
   cvtupp(name,tmp);
   if ((strcmp(tmp,"OPEN")==0)||(strcmp(tmp,"ASSIGN")==0)) {
      fnd = TRUE;
      lstpcall = 0;
   }
   if (strcmp(tmp,"REWRITE")==0) {
      space2(dind);
      fprintf(dfp,"open output-file\n");
      fnd = TRUE;
      lstpcall = 0;
   }
   if (strcmp(tmp,"RESET")==0) {
      space2(dind);
      fprintf(dfp,"open input-file\n");
      fnd = TRUE;
      lstpcall = 0;
   }
   if ((strcmp(tmp,"WRITE")==0)||(strcmp(tmp,"WRITELN")==0)) {
      if (lstpcall!=1) {
         space2(dind);
         fprintf(dfp,"write output\n");
         fnd = TRUE;
      }
      lstpcall = 1;
   }
   if ((strcmp(tmp,"READ")==0)||(strcmp(tmp,"READLN")==0)) {
      if (lstpcall!=2) {
         space2(dind);
         fprintf(dfp,"read input\n");
         fnd = TRUE;
      }
      lstpcall = 2;
   }
   if (strcmp(tmp,"CLOSE")==0) {
      space2(dind);
      fprintf(dfp,"close file\n");
      fnd = TRUE;
      lstpcall = 0;
   }
   if (!fnd) {
      space2(dind);
      fprintf(dfp,"CALL routine %s\n",name);
      lstpcall = 0;
   }
   return;
}


#line 166 "nice_std.y"
typedef union {
char *name;
int ival;
double xval;
char *sval;
char *elm;
} YYSTYPE;

#ifndef YYLTYPE
typedef
  struct yyltype
    {
      int timestamp;
      int first_line;
      int first_column;
      int last_line;
      int last_column;
      char *text;
   }
  yyltype;

#define YYLTYPE yyltype
#endif

#include <stdio.h>

#ifndef __cplusplus
#ifndef __STDC__
#define const
#endif
#endif



#define	YYFINAL		368
#define	YYFLAG		-32768
#define	YYNTBASE	71

#define YYTRANSLATE(x) ((unsigned)(x) <= 309 ? yytranslate[x] : 165)

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,    56,
    57,    67,    66,    64,    65,    59,    68,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,    58,    55,    70,
    60,    69,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
    61,     2,    62,    63,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     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,     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
};

#if YYDEBUG != 0
static const short yyprhs[] = {     0,
     0,     1,     5,     6,    12,    13,    16,    17,    19,    20,
    27,    28,    34,    35,    42,    43,    49,    53,    60,    64,
    71,    77,    86,    87,    90,    92,    94,    96,    98,   100,
   102,   103,   109,   112,   113,   119,   121,   122,   128,   130,
   131,   137,   138,   141,   145,   149,   151,   153,   155,   157,
   159,   161,   163,   165,   167,   169,   170,   173,   178,   179,
   184,   185,   188,   194,   197,   198,   203,   204,   207,   213,
   214,   221,   224,   225,   230,   231,   234,   238,   242,   243,
   248,   250,   258,   259,   265,   268,   272,   274,   278,   282,
   283,   286,   287,   296,   297,   300,   301,   309,   314,   315,
   322,   324,   325,   330,   334,   338,   339,   347,   348,   351,
   352,   358,   359,   364,   365,   372,   373,   384,   385,   396,
   397,   403,   406,   407,   414,   417,   422,   428,   430,   434,
   439,   443,   445,   447,   451,   455,   459,   460,   462,   464,
   466,   470,   475,   477,   481,   484,   488,   492,   496,   500,
   504,   508,   512,   516,   520,   524,   528,   532,   536,   540,
   543,   547,   549,   554,   557,   561,   563,   567,   569,   573,
   575,   579,   585,   587,   591,   593,   597,   599,   603,   605,
   607,   609,   611,   613,   615,   617,   621,   623,   625,   629,
   633,   635,   637
};

static const short yyrhs[] = {    -1,
    75,    72,    73,     0,     0,    83,    75,    74,    86,    88,
     0,     0,    75,     8,     0,     0,     8,     0,     0,    84,
    75,    78,    86,    90,    75,     0,     0,    84,   164,    55,
    79,    75,     0,     0,    85,    75,    81,    86,    90,    75,
     0,     0,    85,   164,    55,    82,    75,     0,    16,     3,
    55,     0,    16,     3,    56,   157,    57,    55,     0,    27,
     3,    55,     0,    27,     3,    56,   146,    57,    55,     0,
    28,     3,    58,     3,    55,     0,    28,     3,    56,   146,
    57,    58,     3,    55,     0,     0,    86,    87,     0,   100,
     0,   101,     0,   105,     0,   110,     0,    77,     0,    80,
     0,     0,    29,    89,    96,    49,    59,     0,    49,    59,
     0,     0,    29,    91,    96,    49,    55,     0,    98,     0,
     0,    29,    93,    96,    49,    76,     0,    97,     0,     0,
    29,    95,    96,    49,    55,     0,     0,    96,    97,     0,
    99,    75,    55,     0,    99,    98,    55,     0,   123,     0,
   124,     0,   128,     0,   129,     0,   135,     0,   137,     0,
   140,     0,   143,     0,   145,     0,     1,     0,     0,     4,
    58,     0,    17,   158,    55,    75,     0,     0,    18,    75,
   102,   103,     0,     0,   103,   104,     0,     3,    60,   152,
    55,    75,     0,     1,    55,     0,     0,    19,    75,   106,
   107,     0,     0,   107,   108,     0,     3,    60,     3,    55,
    75,     0,     0,     3,    60,   109,   116,    55,    75,     0,
     1,    55,     0,     0,    20,    75,   111,   112,     0,     0,
   112,   113,     0,   114,    55,    75,     0,   157,    58,     3,
     0,     0,   157,    58,   115,   116,     0,     1,     0,   151,
    21,    61,   148,    62,    36,     3,     0,     0,   151,    24,
   117,   118,    49,     0,    63,     3,     0,    56,   157,    57,
     0,   149,     0,    25,    36,     3,     0,    26,    36,   148,
     0,     0,   118,   113,     0,     0,   118,    34,     3,    58,
     3,    36,   119,   120,     0,     0,   120,   121,     0,     0,
   158,    58,    56,   122,   114,    57,    55,     0,    75,   153,
     9,   152,     0,     0,    75,    30,   152,    31,   125,   126,
     0,    92,     0,     0,    92,    32,   127,    92,     0,    75,
    33,     3,     0,    75,    33,     4,     0,     0,    75,    34,
   152,    36,   130,   131,    49,     0,     0,   131,   132,     0,
     0,    75,   158,    58,   133,    94,     0,     0,    75,    35,
   134,    94,     0,     0,    75,    37,   152,    38,   136,    92,
     0,     0,    75,    39,   153,     9,   152,    40,   152,    38,
   138,    92,     0,     0,    75,    39,   153,     9,   152,    41,
   152,    38,   139,    92,     0,     0,    75,    42,   141,    96,
   142,     0,    43,   152,     0,     0,    75,    44,   153,    38,
   144,    92,     0,    75,     3,     0,    75,     3,    56,    57,
     0,    75,     3,    56,   155,    57,     0,   147,     0,   146,
    55,   147,     0,    20,   157,    58,     3,     0,   157,    58,
     3,     0,   150,     0,     3,     0,   148,    64,   148,     0,
   159,    14,   159,     0,   152,    14,   152,     0,     0,    22,
     0,    23,     0,   153,     0,     3,    56,    57,     0,     3,
    56,   155,    57,     0,   160,     0,    56,   152,    57,     0,
    65,   152,     0,   152,    66,   152,     0,   152,    65,   152,
     0,   152,    67,   152,     0,   152,    68,   152,     0,   152,
    50,   152,     0,   152,    51,   152,     0,   152,    60,   152,
     0,   152,    69,   152,     0,   152,    70,   152,     0,   152,
    11,   152,     0,   152,    12,   152,     0,   152,    10,   152,
     0,   152,    45,   152,     0,   152,    46,   152,     0,    47,
   152,     0,   152,    48,   152,     0,     3,     0,   153,    61,
   154,    62,     0,   153,    63,     0,   153,    59,   153,     0,
   152,     0,   154,    64,   152,     0,   156,     0,   155,    64,
   156,     0,   152,     0,   152,    58,   152,     0,   152,    58,
   152,    58,   152,     0,     3,     0,   157,    64,     3,     0,
    54,     0,   157,    64,    54,     0,   159,     0,   158,    64,
   159,     0,   161,     0,     3,     0,   161,     0,     6,     0,
   162,     0,     4,     0,     7,     0,    61,   163,    62,     0,
   149,     0,   159,     0,   163,    64,   149,     0,   163,    64,
   159,     0,    52,     0,    53,     0,    54,     0
};

#endif

#if YYDEBUG != 0
static const short yyrline[] = { 0,
   300,   307,   308,   311,   347,   349,   364,   366,   382,   385,
   387,   391,   399,   402,   404,   408,   410,   421,   453,   480,
   655,   686,   755,   756,   758,   759,   760,   761,   770,   771,
   786,   795,   805,   810,   819,   832,   833,   845,   857,   858,
   862,   867,   868,   870,   871,   874,   875,   876,   877,   878,
   879,   880,   881,   882,   888,   891,   896,   901,   911,   915,
   918,   919,   921,   932,   934,   938,   941,   942,   944,   955,
   959,   962,   964,   968,   971,   972,   974,   991,  1003,  1007,
  1017,  1019,  1027,  1032,  1046,  1048,  1050,  1052,  1068,  1109,
  1110,  1111,  1118,  1129,  1130,  1132,  1137,  1165,  1172,  1185,
  1188,  1189,  1204,  1205,  1211,  1217,  1231,  1236,  1237,  1239,
  1246,  1248,  1259,  1276,  1289,  1292,  1310,  1312,  1330,  1333,
  1344,  1346,  1357,  1365,  1368,  1376,  1384,  1559,  1560,  1562,
  1578,  1596,  1597,  1598,  1605,  1607,  1609,  1610,  1611,  1613,
  1614,  1617,  1641,  1642,  1643,  1644,  1645,  1646,  1647,  1669,
  1670,  1671,  1672,  1673,  1674,  1675,  1676,  1677,  1678,  1679,
  1680,  1686,  1687,  1688,  1689,  1691,  1692,  1694,  1695,  1697,
  1698,  1699,  1725,  1726,  1728,  1729,  1731,  1732,  1734,  1735,
  1737,  1738,  1739,  1741,  1742,  1792,  1794,  1795,  1796,  1797,
  1806,  1807,  1808
};

static const char * const yytname[] = {   "$","error","$illegal.","ID","INTCONST",
"HEXCONST","REALCONST","STRCONST","COMMENT","ASG","NE","GE","LE","POW","DOT2",
"NUMB","PROGRAM","LABEL","CONST","TYPE","VAR","ARRAY","PACKED","UNPACKED","RECORD",
"ZFILE","SET","PROCEDURE","FUNCTION","ZBEGIN","IF","THEN","ELSE","GOTO","CASE",
"OTHERWISE","OF","WHILE","DO","FOR","TO","DOWNTO","REPEAT","UNTIL","WITH","AND",
"OR","NOT","IN","END","DIV","MOD","FORWARD","ZEXTERN","EXTERNAL","';'","'('",
"')'","':'","'.'","'='","'['","']'","'^'","','","'-'","'+'","'*'","'/'","'>'",
"'<'","input","@1","input2","@2","comments","onecomm","proc","@3","@4","func",
"@5","@6","head","phead","fhead","decls","decl","body","@7","sbody","@8","block",
"@9","casblock","@10","stmts","stmt","stmtz","gotolbl","labels","consts","@11",
"constx","const1","types","@12","typex","type1","@13","vars","@14","varx","var1",
"var1z","@15","usetyp","@16","flds","@17","varflds","varfld","@18","asgmt","if",
"@19","ifbody","@20","goto","case","@21","lbls","lbl","@22","@23","while","@24",
"for","@25","@26","repunt","@27","endrep","with","@28","pcall","args","arg",
"dim","range","erange","pck","expr","ref","index","arglst","item","idlst","ordlst",
"ordval","cns","ordcns","set","setlst","foreign",""
};
#endif

static const short yyr1[] = {     0,
    72,    71,    74,    73,    75,    75,    76,    76,    78,    77,
    79,    77,    81,    80,    82,    80,    83,    83,    84,    84,
    85,    85,    86,    86,    87,    87,    87,    87,    87,    87,
    89,    88,    88,    91,    90,    92,    93,    92,    94,    95,
    94,    96,    96,    97,    97,    98,    98,    98,    98,    98,
    98,    98,    98,    98,    98,    99,    99,   100,   102,   101,
   103,   103,   104,   104,   106,   105,   107,   107,   108,   109,
   108,   108,   111,   110,   112,   112,   113,   114,   115,   114,
   114,   116,   117,   116,   116,   116,   116,   116,   116,   118,
   118,   119,   118,   120,   120,   122,   121,   123,   125,   124,
   126,   127,   126,   128,   128,   130,   129,   131,   131,   133,
   132,   134,   132,   136,   135,   138,   137,   139,   137,   141,
   140,   142,   144,   143,   145,   145,   145,   146,   146,   147,
   147,   148,   148,   148,   149,   150,   151,   151,   151,   152,
   152,   152,   152,   152,   152,   152,   152,   152,   152,   152,
   152,   152,   152,   152,   152,   152,   152,   152,   152,   152,
   152,   153,   153,   153,   153,   154,   154,   155,   155,   156,
   156,   156,   157,   157,   157,   157,   158,   158,   159,   159,
   160,   160,   160,   161,   161,   162,   163,   163,   163,   163,
   164,   164,   164
};

static const short yyr2[] = {     0,
     0,     3,     0,     5,     0,     2,     0,     1,     0,     6,
     0,     5,     0,     6,     0,     5,     3,     6,     3,     6,
     5,     8,     0,     2,     1,     1,     1,     1,     1,     1,
     0,     5,     2,     0,     5,     1,     0,     5,     1,     0,
     5,     0,     2,     3,     3,     1,     1,     1,     1,     1,
     1,     1,     1,     1,     1,     0,     2,     4,     0,     4,
     0,     2,     5,     2,     0,     4,     0,     2,     5,     0,
     6,     2,     0,     4,     0,     2,     3,     3,     0,     4,
     1,     7,     0,     5,     2,     3,     1,     3,     3,     0,
     2,     0,     8,     0,     2,     0,     7,     4,     0,     6,
     1,     0,     4,     3,     3,     0,     7,     0,     2,     0,
     5,     0,     4,     0,     6,     0,    10,     0,    10,     0,
     5,     2,     0,     6,     2,     4,     5,     1,     3,     4,
     3,     1,     1,     3,     3,     3,     0,     1,     1,     1,
     3,     4,     1,     3,     2,     3,     3,     3,     3,     3,
     3,     3,     3,     3,     3,     3,     3,     3,     3,     2,
     3,     1,     4,     2,     3,     1,     3,     1,     3,     1,
     3,     5,     1,     3,     1,     3,     1,     3,     1,     1,
     1,     1,     1,     1,     1,     3,     1,     1,     3,     3,
     1,     1,     1
};

static const short yydefact[] = {     5,
     1,     6,     0,     0,     2,     5,     0,     3,    17,     0,
    23,   173,   175,     0,     0,     0,     0,     0,     5,     5,
     5,     0,     0,    31,     0,    29,    30,     5,     5,    24,
     4,    25,    26,    27,    28,    18,   174,   176,   180,   184,
   185,     0,   177,   179,    59,    65,    73,     0,     0,    42,
    33,   191,   192,   193,     9,     0,    13,     0,     5,     0,
    61,    67,    75,    19,     0,     0,     0,    56,    23,    11,
    23,    15,    58,   178,     0,     0,     0,     0,     0,   128,
     0,     0,     0,     0,     0,    43,     0,     0,     5,     0,
     5,     0,     0,    62,     0,     0,    68,    81,    76,     0,
     0,     0,     0,     0,     0,     0,    21,    57,    32,    55,
     0,     0,    46,    47,    48,    49,    50,    51,    52,    53,
    54,    34,     5,    12,     5,    16,    64,     0,    72,    70,
     5,    79,     0,   129,    20,   131,     0,   162,     0,     0,
     0,     0,     0,   120,     0,    44,     0,    45,    42,    10,
    14,   162,   182,     0,     0,     0,     0,     0,   140,   143,
   181,   183,     0,   137,    77,    78,   137,   130,     0,     0,
     0,   104,   105,     0,     0,   162,     0,    42,     0,     0,
     0,     0,   164,    56,     0,   160,     0,   187,   188,     0,
   145,     0,     0,     0,     0,     0,     0,     0,     0,     5,
     0,     0,     0,     0,     0,     0,     0,     5,   138,   139,
     0,     0,     0,     0,     0,    87,     0,     0,    80,    22,
   126,   170,     0,   168,    99,   106,   114,     0,    56,   123,
    98,   165,   166,     0,     0,   141,     0,   144,     0,   186,
     0,   157,   155,   156,   158,   159,   161,   150,   151,    63,
   152,   147,   146,   148,   149,   153,   154,    69,     0,     0,
     0,    85,     5,     0,    83,     0,   127,     0,     0,   108,
     0,     0,     0,   121,     0,   163,     0,    35,   142,   135,
   189,   190,    88,   162,    89,   132,     0,    86,    71,     0,
    90,   171,   169,    37,     0,   101,    36,   100,     5,   115,
     0,     0,   122,   124,   167,     0,     0,     0,     0,     0,
    42,   102,   107,     0,   109,     0,     0,   134,   136,     0,
     0,    84,    91,   172,    56,     0,   112,     0,   116,   118,
     0,     0,     7,   103,    56,   110,     0,     0,    82,     0,
     8,    38,    40,   113,    39,    56,   117,   119,     0,    42,
   111,    92,    56,    94,     0,    93,    41,    95,     0,     0,
    96,     0,     0,     0,    97,     0,     0,     0
};

static const short yydefgoto[] = {   366,
     3,     5,    11,   295,   342,    26,    69,    89,    27,    71,
    91,     6,    28,    29,    15,    30,    31,    50,   123,   149,
   296,   311,   344,   350,    68,    86,   297,    87,    32,    33,
    61,    75,    94,    34,    62,    76,    97,   164,    35,    63,
    77,    99,   100,   167,   215,   291,   309,   354,   356,   358,
   362,   113,   114,   269,   298,   326,   115,   116,   270,   299,
   315,   346,   335,   117,   271,   118,   337,   338,   119,   178,
   274,   120,   275,   121,    79,    80,   285,   216,   286,   217,
   222,   159,   234,   223,   224,    81,    42,    43,   160,   161,
   162,   190,    56
};

static const short yypact[] = {-32768,
    39,-32768,    35,    17,-32768,-32768,   162,    39,-32768,     8,
-32768,-32768,-32768,    -9,   253,    54,    12,   216,-32768,-32768,
-32768,    68,   117,-32768,    70,-32768,-32768,   144,   144,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,    53,-32768,-32768,    39,    39,    39,   213,    90,-32768,
-32768,-32768,-32768,-32768,    39,    96,    39,   106,-32768,   216,
-32768,-32768,-32768,-32768,     4,     4,   135,    10,-32768,-32768,
-32768,-32768,    39,-32768,   674,   678,   212,     8,   103,-32768,
    91,   189,   122,   141,   132,-32768,   619,   125,-32768,   125,
-32768,   151,   154,-32768,   193,   192,-32768,-32768,-32768,   204,
    98,   128,     4,   208,   273,   219,-32768,-32768,-32768,-32768,
   634,   233,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,    39,-32768,    39,-32768,    50,-32768,   286,
-32768,   289,   291,-32768,-32768,-32768,   295,   -16,    50,   271,
    50,    50,   297,-32768,   297,-32768,    25,-32768,-32768,    39,
    39,   247,-32768,    50,    50,   216,    50,   296,   175,-32768,
-32768,-32768,   249,   186,    39,-32768,   186,-32768,   254,    22,
   309,-32768,-32768,   322,   373,-32768,    37,-32768,    63,    50,
   297,    50,-32768,    23,    38,   549,   402,-32768,   302,   183,
   549,    50,    50,    50,    50,    50,    50,    50,    50,-32768,
    50,    50,    50,    50,    50,    50,    50,-32768,-32768,-32768,
   281,   282,     8,   319,   268,-32768,    83,   302,-32768,-32768,
-32768,   415,    57,-32768,-32768,-32768,-32768,    50,    69,-32768,
   549,   175,   549,   196,   269,-32768,    66,-32768,   216,-32768,
   216,   549,   549,   549,   549,   549,   549,   549,   549,    39,
   549,   549,   549,   549,   549,   549,   549,    39,   323,   160,
    71,-32768,-32768,   264,-32768,    50,-32768,    50,   682,-32768,
   682,   245,    50,-32768,   682,-32768,    50,-32768,-32768,-32768,
-32768,   302,-32768,   171,   263,-32768,   444,-32768,    39,   160,
-32768,   476,-32768,-32768,   701,   298,-32768,-32768,   279,-32768,
    50,    50,   549,-32768,   549,   160,    50,   200,    16,    50,
-32768,-32768,-32768,   133,-32768,   487,   538,   263,   549,   293,
   328,-32768,-32768,   549,    31,   682,-32768,   136,-32768,-32768,
   332,   278,   329,-32768,    48,-32768,   682,   682,-32768,   335,
-32768,-32768,-32768,-32768,-32768,    48,-32768,-32768,   307,-32768,
-32768,-32768,    33,-32768,   290,   216,-32768,-32768,   137,   292,
-32768,     9,   314,   294,-32768,   350,   353,-32768
};

static const short yypgoto[] = {-32768,
-32768,-32768,-32768,     2,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,   182,-32768,-32768,-32768,   303,-32768,
  -262,-32768,    34,-32768,  -146,  -254,   299,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,    72,    32,-32768,   228,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,   330,   300,  -257,  -151,-32768,-32768,
   -23,  -107,-32768,   214,   129,   -10,  -296,   -54,-32768,   -17,
-32768,-32768,   369
};


#define	YYLAST		745


static const short yytable[] = {    14,
    44,     1,   184,   147,   188,    74,    12,     8,   300,    98,
    12,    12,   304,    84,    37,  -125,    98,   328,    12,     7,
    45,    46,    47,    78,   152,    40,    84,   153,    41,    55,
    57,   229,   308,   180,    84,   177,    84,   179,  -125,   170,
   152,    40,    44,   153,    41,   228,     2,    16,   318,   321,
     4,    84,   152,    40,    17,   153,    41,    13,    85,   359,
    73,    13,    13,   334,   322,    38,   101,   102,   154,    13,
    48,   235,    84,   232,   347,   348,   343,   155,   221,   333,
   345,   355,   156,   181,   154,   182,   157,   183,   111,   281,
   124,   345,   126,   155,   236,   181,   154,   182,   156,   183,
   230,   189,   157,   264,   158,   155,   265,    59,    36,   218,
   156,   273,   218,   267,   157,   171,    60,   174,   175,    49,
   268,   181,   279,   182,   150,   183,   151,   288,    51,   268,
   186,   187,   165,   191,    17,    39,    40,    83,    44,    41,
     2,    18,    19,    20,    21,    66,    44,    67,   105,    44,
    70,    22,    23,   122,    17,   132,   231,   103,   233,   104,
    72,    17,   284,    40,   325,   153,    41,   327,   242,   243,
   244,   245,   246,   247,   248,   249,   107,   251,   252,   253,
   254,   255,   256,   257,   280,   133,   282,   147,    39,    40,
   109,    17,    41,   336,   360,    52,    53,    54,   108,    60,
    60,   250,   261,   353,   272,   127,   154,   209,   210,   258,
   211,   212,    98,   128,    12,   155,     9,    10,    39,    40,
   156,    44,    41,    44,   157,  -133,   185,  -133,   -74,   -74,
   -74,   -74,  -133,   181,  -133,   182,   287,   183,   -74,   -74,
   -74,   213,   292,   103,   240,   106,   241,   129,   214,   303,
    88,   130,    90,   305,   192,   193,   194,   276,   131,   277,
   -74,   320,   135,   306,   289,    13,   287,    64,    65,    18,
    19,    20,    21,   172,   173,   136,   137,   316,   317,    22,
    23,    24,   287,   319,   301,   302,   324,   148,   163,   195,
   196,   166,   197,   168,   198,   199,    44,   169,   101,   176,
   314,    25,   185,   208,   201,   192,   193,   194,   220,   202,
   203,   204,   205,   206,   207,   239,   259,   260,   192,   193,
   194,   262,   263,   278,   290,   283,   306,   313,   331,   312,
   332,   192,   193,   194,   339,   340,   341,   349,    44,   225,
   195,   196,   352,   197,   357,   198,   199,   361,   365,   367,
   200,   101,   368,   195,   196,   201,   197,   226,   198,   199,
   202,   203,   204,   205,   206,   207,   195,   196,   201,   197,
   364,   198,   199,   202,   203,   204,   205,   206,   207,   351,
   323,   201,   192,   193,   194,   112,   202,   203,   204,   205,
   206,   207,   125,   363,   219,    82,   293,    58,   237,     0,
     0,     0,   134,     0,     0,     0,     0,     0,     0,     0,
   227,   192,   193,   194,     0,     0,     0,   195,   196,     0,
   197,     0,   198,   199,   192,   193,   194,     0,     0,     0,
     0,     0,   201,     0,     0,     0,     0,   202,   203,   204,
   205,   206,   207,     0,     0,     0,   195,   196,     0,   197,
     0,   198,   199,   192,   193,   194,     0,   307,   238,   195,
   196,   201,   197,     0,   198,   199,   202,   203,   204,   205,
   206,   207,   266,     0,   201,     0,     0,     0,     0,   202,
   203,   204,   205,   206,   207,   192,   193,   194,   195,   196,
     0,   197,     0,   198,   199,     0,   192,   193,   194,     0,
     0,     0,     0,   201,     0,     0,     0,     0,   202,   203,
   204,   205,   206,   207,     0,     0,     0,     0,     0,     0,
   195,   196,     0,   197,   329,   198,   199,     0,     0,     0,
     0,   195,   196,   310,   197,   201,   198,   199,     0,     0,
   202,   203,   204,   205,   206,   207,   201,   192,   193,   194,
     0,   202,   203,   204,   205,   206,   207,     0,   192,   193,
   194,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,   330,     0,     0,     0,     0,
     0,     0,   195,   196,     0,   197,     0,   198,   199,     0,
     0,     0,     0,   195,   196,     0,   197,   201,   198,   199,
     0,     0,   202,   203,   204,   205,   206,   207,   201,     0,
     0,     0,     0,   202,   203,   204,   205,   206,   207,   110,
     0,    -5,     0,     0,     0,     0,    -5,     0,     0,     0,
     0,     0,     0,     0,     0,     0,   138,     0,     0,     0,
     0,     2,     0,     0,     0,     0,     0,     0,    -5,     0,
     0,    -5,    -5,     0,     0,    -5,     0,    -5,     0,     0,
    -5,     0,    -5,   139,     0,     0,   140,   141,     0,     0,
   142,     0,   143,    -5,    92,   144,    93,   145,    95,     0,
    96,     0,   110,     0,    -5,     0,     0,     0,   146,    -5,
   -60,   -60,   -60,   -60,   -66,   -66,   -66,   -66,     0,     0,
   -60,   -60,   -60,   138,   -66,   -66,   -66,     0,     2,     0,
   294,    -5,     0,     0,    -5,    -5,     0,     0,    -5,     0,
    -5,     0,   -60,    -5,     0,    -5,   -66,     0,     0,     0,
   139,     0,     0,   140,   141,     0,     0,   142,     0,   143,
     0,     0,   144,     0,   145
};

static const short yycheck[] = {    10,
    18,     0,   149,   111,   156,    60,     3,     6,   271,     1,
     3,     3,   275,     4,     3,    32,     1,   314,     3,     3,
    19,    20,    21,    20,     3,     4,     4,     6,     7,    28,
    29,   178,   290,     9,     4,   143,     4,   145,    55,    56,
     3,     4,    60,     6,     7,     9,     8,    57,   306,    34,
    16,     4,     3,     4,    64,     6,     7,    54,    49,   356,
    59,    54,    54,   326,    49,    54,    77,    78,    47,    54,
     3,    49,     4,   181,   337,   338,    29,    56,    57,    49,
   335,    49,    61,    59,    47,    61,    65,    63,    87,   241,
    89,   346,    91,    56,    57,    59,    47,    61,    61,    63,
    38,   156,    65,    21,   128,    56,    24,    55,    55,   164,
    61,    43,   167,    57,    65,   139,    64,   141,   142,     3,
    64,    59,    57,    61,   123,    63,   125,    57,    59,    64,
   154,   155,   131,   157,    64,     3,     4,     3,   156,     7,
     8,    17,    18,    19,    20,    56,   164,    58,    58,   167,
    55,    27,    28,    29,    64,    58,   180,    55,   182,    57,
    55,    64,     3,     4,   311,     6,     7,    35,   192,   193,
   194,   195,   196,   197,   198,   199,    55,   201,   202,   203,
   204,   205,   206,   207,   239,    58,   241,   295,     3,     4,
    59,    64,     7,    58,    58,    52,    53,    54,    58,    64,
    64,   200,   213,   350,   228,    55,    47,    22,    23,   208,
    25,    26,     1,    60,     3,    56,    55,    56,     3,     4,
    61,   239,     7,   241,    65,    55,    56,    57,    17,    18,
    19,    20,    62,    59,    64,    61,   260,    63,    27,    28,
    29,    56,   266,    55,    62,    57,    64,    55,    63,   273,
    69,    60,    71,   277,    10,    11,    12,    62,    55,    64,
    49,    62,    55,    64,   263,    54,   290,    55,    56,    17,
    18,    19,    20,     3,     4,     3,    58,   301,   302,    27,
    28,    29,   306,   307,    40,    41,   310,    55,     3,    45,
    46,     3,    48,     3,    50,    51,   314,     3,   309,     3,
   299,    49,    56,    55,    60,    10,    11,    12,    55,    65,
    66,    67,    68,    69,    70,    14,    36,    36,    10,    11,
    12,     3,    55,    55,    61,     3,    64,    49,    36,    32,
     3,    10,    11,    12,     3,    58,     8,     3,   356,    31,
    45,    46,    36,    48,    55,    50,    51,    56,    55,     0,
    55,   362,     0,    45,    46,    60,    48,    36,    50,    51,
    65,    66,    67,    68,    69,    70,    45,    46,    60,    48,
    57,    50,    51,    65,    66,    67,    68,    69,    70,   346,
   309,    60,    10,    11,    12,    87,    65,    66,    67,    68,
    69,    70,    90,   362,   167,    66,   268,    29,   185,    -1,
    -1,    -1,   103,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    38,    10,    11,    12,    -1,    -1,    -1,    45,    46,    -1,
    48,    -1,    50,    51,    10,    11,    12,    -1,    -1,    -1,
    -1,    -1,    60,    -1,    -1,    -1,    -1,    65,    66,    67,
    68,    69,    70,    -1,    -1,    -1,    45,    46,    -1,    48,
    -1,    50,    51,    10,    11,    12,    -1,    14,    57,    45,
    46,    60,    48,    -1,    50,    51,    65,    66,    67,    68,
    69,    70,    58,    -1,    60,    -1,    -1,    -1,    -1,    65,
    66,    67,    68,    69,    70,    10,    11,    12,    45,    46,
    -1,    48,    -1,    50,    51,    -1,    10,    11,    12,    -1,
    -1,    -1,    -1,    60,    -1,    -1,    -1,    -1,    65,    66,
    67,    68,    69,    70,    -1,    -1,    -1,    -1,    -1,    -1,
    45,    46,    -1,    48,    38,    50,    51,    -1,    -1,    -1,
    -1,    45,    46,    58,    48,    60,    50,    51,    -1,    -1,
    65,    66,    67,    68,    69,    70,    60,    10,    11,    12,
    -1,    65,    66,    67,    68,    69,    70,    -1,    10,    11,
    12,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    38,    -1,    -1,    -1,    -1,
    -1,    -1,    45,    46,    -1,    48,    -1,    50,    51,    -1,
    -1,    -1,    -1,    45,    46,    -1,    48,    60,    50,    51,
    -1,    -1,    65,    66,    67,    68,    69,    70,    60,    -1,
    -1,    -1,    -1,    65,    66,    67,    68,    69,    70,     1,
    -1,     3,    -1,    -1,    -1,    -1,     8,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    -1,     3,    -1,    -1,    -1,
    -1,     8,    -1,    -1,    -1,    -1,    -1,    -1,    30,    -1,
    -1,    33,    34,    -1,    -1,    37,    -1,    39,    -1,    -1,
    42,    -1,    44,    30,    -1,    -1,    33,    34,    -1,    -1,
    37,    -1,    39,    55,     1,    42,     3,    44,     1,    -1,
     3,    -1,     1,    -1,     3,    -1,    -1,    -1,    55,     8,
    17,    18,    19,    20,    17,    18,    19,    20,    -1,    -1,
    27,    28,    29,     3,    27,    28,    29,    -1,     8,    -1,
    29,    30,    -1,    -1,    33,    34,    -1,    -1,    37,    -1,
    39,    -1,    49,    42,    -1,    44,    49,    -1,    -1,    -1,
    30,    -1,    -1,    33,    34,    -1,    -1,    37,    -1,    39,
    -1,    -1,    42,    -1,    44
};
/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
#line 3 "bison.simple"

/* Skeleton output parser for bison,
   Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman

   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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.  */


#ifndef alloca
#ifdef __GNUC__
#define alloca __builtin_alloca
#else /* not GNU C.  */
#ifdef __DECC
#include <builtins.h>
#define alloca __ALLOCA
#else /* not DEC C.  */
#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
#include <alloca.h>
#else /* not sparc */
#if defined (MSDOS) && !defined (__TURBOC__)
#include <malloc.h>
#else /* not MSDOS, or __TURBOC__ */
#if defined(_AIX)
#include <malloc.h>
 #pragma alloca
#else /* not MSDOS, __TURBOC__, or _AIX */
#ifdef __hpux
#ifdef __cplusplus
extern "C" {
void *alloca (unsigned int);
};
#else /* not __cplusplus */
void *alloca ();
#endif /* not __cplusplus */
#endif /* __hpux */
#endif /* not _AIX */
#endif /* not MSDOS, or __TURBOC__ */
#endif /* not sparc.  */
#endif /* not DEC C.  */
#endif /* not GNU C.  */
#endif /* alloca not defined.  */

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

/* Note: there must be only one dollar sign in this file.
   It is replaced by the list of actions, each action
   as one case of the switch.  */

#define yyerrok		(yyerrstatus = 0)
#define yyclearin	(yychar = YYEMPTY)
#define YYEMPTY		-2
#define YYEOF		0
#define YYACCEPT	return(0)
#define YYABORT 	return(1)
#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

#ifndef YYPURE
#define YYLEX		yylex()
#endif

#ifdef YYPURE
#ifdef YYLSP_NEEDED
#define YYLEX		yylex(&yylval, &yylloc)
#else
#define YYLEX		yylex(&yylval)
#endif
#endif

/* If nonreentrant, generate the variables here */

#ifndef YYPURE

int	yychar;			/*  the lookahead symbol		*/
YYSTYPE	yylval;			/*  the semantic value of the		*/
				/*  lookahead symbol			*/

#ifdef YYLSP_NEEDED
YYLTYPE yylloc;			/*  location data for the lookahead	*/
				/*  symbol				*/
#endif

int yynerrs;			/*  number of parse errors so far       */
#endif  /* not YYPURE */

#if YYDEBUG != 0
int yydebug;			/*  nonzero means print parse trace	*/
/* Since this is uninitialized, it does not stop multiple parsers
   from coexisting.  */
#endif

/*  YYINITDEPTH indicates the initial size of the parser's stacks	*/

#ifndef	YYINITDEPTH
#define YYINITDEPTH 200
#endif

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

#if YYMAXDEPTH == 0
#undef YYMAXDEPTH
#endif

#ifndef YYMAXDEPTH
#define YYMAXDEPTH 10000
#endif

/* Prevent warning if -Wstrict-prototypes.  */
#ifdef __GNUC__
int yyparse (void);
#endif

#if __GNUC__ > 1		/* GNU C and GNU C++ define this.  */
#define __yy_bcopy(FROM,TO,COUNT)	__builtin_memcpy(TO,FROM,COUNT)
#else				/* not GNU C or C++ */
#ifndef __cplusplus

/* This is the most reliable way to avoid incompatibilities
   in available built-in functions on various systems.  */
static void
__yy_bcopy (from, to, count)
     char *from;
     char *to;
     int count;
{
  register char *f = from;
  register char *t = to;
  register int i = count;

  while (i-- > 0)
    *t++ = *f++;
}

#else /* __cplusplus */

/* This is the most reliable way to avoid incompatibilities
   in available built-in functions on various systems.  */
static void
__yy_bcopy (char *from, char *to, int count)
{
  register char *f = from;
  register char *t = to;
  register int i = count;

  while (i-- > 0)
    *t++ = *f++;
}

#endif
#endif

#line 184 "bison.simple"
int
yyparse()
{
  register int yystate;
  register int yyn;
  register short *yyssp;
  register YYSTYPE *yyvsp;
  int yyerrstatus;	/*  number of tokens to shift before error messages enabled */
  int yychar1 = 0;		/*  lookahead token as an internal (translated) token number */

  short	yyssa[YYINITDEPTH];	/*  the state stack			*/
  YYSTYPE yyvsa[YYINITDEPTH];	/*  the semantic value stack		*/

  short *yyss = yyssa;		/*  refer to the stacks thru separate pointers */
  YYSTYPE *yyvs = yyvsa;	/*  to allow yyoverflow to reallocate them elsewhere */

#ifdef YYLSP_NEEDED
  YYLTYPE yylsa[YYINITDEPTH];	/*  the location stack			*/
  YYLTYPE *yyls = yylsa;
  YYLTYPE *yylsp;

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

  int yystacksize = YYINITDEPTH;

#ifdef YYPURE
  int yychar;
  YYSTYPE yylval;
  int yynerrs;
#ifdef YYLSP_NEEDED
  YYLTYPE yylloc;
#endif
#endif

  YYSTYPE yyval;		/*  the variable used to return		*/
				/*  semantic values from the action	*/
				/*  routines				*/

  int yylen;

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Starting parse\n");
#endif

  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 - 1;
  yyvsp = yyvs;
#ifdef YYLSP_NEEDED
  yylsp = yyls;
#endif

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

  *++yyssp = yystate;

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

      /* Get the current used size of the three stacks, in elements.  */
      int size = yyssp - yyss + 1;

#ifdef yyoverflow
      /* Each stack pointer address is followed by the size of
	 the data in use in that stack, in bytes.  */
#ifdef YYLSP_NEEDED
      /* 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, size * sizeof (*yyssp),
		 &yyvs1, size * sizeof (*yyvsp),
		 &yyls1, size * sizeof (*yylsp),
		 &yystacksize);
#else
      yyoverflow("parser stack overflow",
		 &yyss1, size * sizeof (*yyssp),
		 &yyvs1, size * sizeof (*yyvsp),
		 &yystacksize);
#endif

      yyss = yyss1; yyvs = yyvs1;
#ifdef YYLSP_NEEDED
      yyls = yyls1;
#endif
#else /* no yyoverflow */
      /* Extend the stack our own way.  */
      if (yystacksize >= YYMAXDEPTH)
	{
	  yyerror("parser stack overflow");
	  return 2;
	}
      yystacksize *= 2;
      if (yystacksize > YYMAXDEPTH)
	yystacksize = YYMAXDEPTH;
      yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
      __yy_bcopy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
      yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
      __yy_bcopy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
#ifdef YYLSP_NEEDED
      yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
      __yy_bcopy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
#endif
#endif /* no yyoverflow */

      yyssp = yyss + size - 1;
      yyvsp = yyvs + size - 1;
#ifdef YYLSP_NEEDED
      yylsp = yyls + size - 1;
#endif

#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Stack size increased to %d\n", yystacksize);
#endif

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

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Entering state %d\n", yystate);
#endif

  goto 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)
    {
#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Reading a token: ");
#endif
      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 */

#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Now at end of input.\n");
#endif
    }
  else
    {
      yychar1 = YYTRANSLATE(yychar);

#if YYDEBUG != 0
      if (yydebug)
	{
	  fprintf (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
	  fprintf (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.  */

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
#endif

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

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

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

  yystate = yyn;
  goto yynewstate;

/* Do the default action for the current state.  */
yydefault:

  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;

/* Do a reduction.  yyn is the number of a rule to reduce with.  */
yyreduce:
  yylen = yyr2[yyn];
  if (yylen > 0)
    yyval = yyvsp[1-yylen]; /* implement default value of the action */

#if YYDEBUG != 0
  if (yydebug)
    {
      int i;

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

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


  switch (yyn) {

case 1:
#line 305 "nice_std.y"
{ outcomm(TRUE,TRUE,FALSE); ;
    break;}
case 3:
#line 309 "nice_std.y"
{ outcomm(TRUE,TRUE,TRUE); ;
    break;}
case 4:
#line 311 "nice_std.y"
{ fin = TRUE; ;
    break;}
case 5:
#line 347 "nice_std.y"
{ comm = (char *)nice_realloc(comm,1);
                                          comm[0] = '\0'; ;
    break;}
case 6:
#line 349 "nice_std.y"
{ l = strlen(comm);
                                          if (l>0) {
                                             if (commstyle != 1) {
                                                comm = (char *)nice_realloc(comm,l+strlen(yyvsp[0].sval)+5);
                                                strcat(comm,"*)\n(*");
                                             } else {
                                                comm = (char *)nice_realloc(comm,l+strlen(yyvsp[0].sval)+3);
                                                strcat(comm,"}\n{");
                                             }
                                          } else {
                                             comm = (char *)nice_realloc(comm,l+strlen(yyvsp[0].sval));
                                          }
                                          strcat(comm,yyvsp[0].sval);
                                          nice_free(yyvsp[0].sval); ;
    break;}
case 7:
#line 364 "nice_std.y"
{ comm = (char *)nice_realloc(comm,1);
                                          comm[0] = '\0'; ;
    break;}
case 8:
#line 366 "nice_std.y"
{ comm = (char *)nice_realloc(comm,1+strlen(yyvsp[0].sval));
                                          strcat(comm,yyvsp[0].sval);
                                          nice_free(yyvsp[0].sval); ;
    break;}
case 9:
#line 383 "nice_std.y"
{ outcomm(TRUE,TRUE,TRUE); ;
    break;}
case 10:
#line 386 "nice_std.y"
{ outcomm(TRUE,TRUE,FALSE); ;
    break;}
case 11:
#line 387 "nice_std.y"
{ printf("%s;",yyvsp[-1].elm);
                                          nice_free(yyvsp[-1].elm);
                                          top--;
                                          newl(); ;
    break;}
case 12:
#line 391 "nice_std.y"
{ outcomm(TRUE,TRUE,FALSE); ;
    break;}
case 13:
#line 400 "nice_std.y"
{ outcomm(TRUE,TRUE,TRUE); ;
    break;}
case 14:
#line 403 "nice_std.y"
{ outcomm(TRUE,TRUE,FALSE); ;
    break;}
case 15:
#line 404 "nice_std.y"
{ printf("%s;",yyvsp[-1].elm);
                                          nice_free(yyvsp[-1].elm);
                                          printf(";");
                                          top--; ;
    break;}
case 16:
#line 408 "nice_std.y"
{ outcomm(TRUE,TRUE,FALSE); ;
    break;}
case 17:
#line 410 "nice_std.y"
{ newl();
                                          gen("PROGRAM");
                                          printf(" %s;",yyvsp[-1].name);
                                          newl();
                                          lind = 0;
                                          space(lind);
                                          if (definition) fprintf(lfp,"definition of program: %s\n",yyvsp[-1].name);
                                          lind++;
                                          top++;
                                          entryname[top] = (char *) nice_malloc(max_name);
                                          strcpy(entryname[top],yyvsp[-1].name); ;
    break;}
case 18:
#line 421 "nice_std.y"
{ newl();
                                          gen("PROGRAM");
                                          printf(" %s(%s);",yyvsp[-4].name,yyvsp[-2].elm);
                                          newl();
                                          lind = 0;
                                          space(lind);
                                          if (definition) fprintf(lfp,"definition of program: %s\n",yyvsp[-4].name);
                                          lind++;
                                          top++;
                                          entryname[top] = (char *) nice_malloc(max_name);
                                          strcpy(entryname[top],yyvsp[-4].name); ;
    break;}
case 19:
#line 453 "nice_std.y"
{ newl();
                                          gen("PROCEDURE");
                                          printf(" %s;",yyvsp[-1].name);
                                          newl();
                                          space(lind);
                                          if (definition) fprintf(lfp,"definition of procedure: %s\n",yyvsp[-1].name);
                                          lind++;
                                          top++;
                                          entryname[top] = (char *) nice_malloc(max_name);
                                          strcpy(entryname[top],yyvsp[-1].name);
                                          nice_free(yyvsp[-1].name); ;
    break;}
case 20:
#line 480 "nice_std.y"
{ newl();
                                          gen("PROCEDURE");
                                          printf(" %s(%s);",yyvsp[-4].name,yyvsp[-2].elm);
                                          newl();
                                          space(lind);
                                          if (definition) fprintf(lfp,"definition of procedure: %s\n",yyvsp[-4].name);
                                          lind++;
                                          top++;
                                          entryname[top] = (char *) nice_malloc(max_name);
                                          strcpy(entryname[top],yyvsp[-4].name);
                                          nice_free(yyvsp[-4].name);
                                          nice_free(yyvsp[-2].elm); ;
    break;}
case 21:
#line 656 "nice_std.y"
{ newl();
                                          gen("FUNCTION");
                                          printf(" %s:%s;",yyvsp[-3].name,yyvsp[-1].name);
                                          newl();
                                          space(lind);
                                          if (definition) fprintf(lfp,"definition of function: %s\n",yyvsp[-3].name);
                                          lind++;
                                          top++;
                                          entryname[top] = (char *) nice_malloc(max_name);
                                          strcpy(entryname[top],yyvsp[-3].name);
                                          nice_free(yyvsp[-3].name);
                                          nice_free(yyvsp[-1].name); ;
    break;}
case 22:
#line 687 "nice_std.y"
{ newl();
                                          gen("FUNCTION");
                                          printf(" %s(%s):%s;",yyvsp[-6].name,yyvsp[-4].elm,yyvsp[-1].name);
                                          newl();
                                          space(lind);
                                          if (definition) fprintf(lfp,"definition of function: %s\n",yyvsp[-6].name);
                                          lind++;
                                          top++;
                                          entryname[top] = (char *) nice_malloc(max_name);
                                          strcpy(entryname[top],yyvsp[-6].name);
                                          nice_free(yyvsp[-6].name);
                                          nice_free(yyvsp[-4].elm);
                                          nice_free(yyvsp[-1].name); ;
    break;}
case 23:
#line 755 "nice_std.y"
{ ; ;
    break;}
case 24:
#line 756 "nice_std.y"
{ ; ;
    break;}
case 25:
#line 758 "nice_std.y"
{ ; ;
    break;}
case 26:
#line 759 "nice_std.y"
{ ; ;
    break;}
case 27:
#line 760 "nice_std.y"
{ ; ;
    break;}
case 28:
#line 761 "nice_std.y"
{ ; ;
    break;}
case 29:
#line 770 "nice_std.y"
{ ; ;
    break;}
case 30:
#line 771 "nice_std.y"
{ ; ;
    break;}
case 31:
#line 786 "nice_std.y"
{ newl();
                                          gen("BEGIN");
                                          if (document) {
                                                        space2(dind);
                                                        fprintf(dfp,"START of program %s\n",entryname[top]);
                                                        }
                                          ind++;
                                          dind++; ;
    break;}
case 32:
#line 795 "nice_std.y"
{ ind--;
                                          dind--;
                                          newl();
                                          gen("END");
                                          printf(".");
                                          if (document) {
                                                        space2(dind);
                                                        fprintf(dfp,"END of program %s\n",entryname[top]);
                                                        top--;
                                                        } ;
    break;}
case 33:
#line 805 "nice_std.y"
{ ind--;
                                          newl();
                                          gen("END");
                                          printf("."); ;
    break;}
case 34:
#line 810 "nice_std.y"
{ newl();
                                          gen("BEGIN");
                                          if (document) {
                                                        space2(dind);
                                                        fprintf(dfp,"START of routine %s\n",entryname[top]);
                                                        }
                                          ind++;
                                          dind++; ;
    break;}
case 35:
#line 819 "nice_std.y"
{ ind--;
                                          newl();
                                          gen("END");
                                          printf(";");
                                          newl();
                                          lind--;
                                          dind--;
                                          if (document) {
                                                        space2(dind);
                                                        fprintf(dfp,"END of routine %s\n\n",entryname[top]);
                                                        top--;
                                                        } ;
    break;}
case 36:
#line 832 "nice_std.y"
{ ; ;
    break;}
case 37:
#line 833 "nice_std.y"
{ ind--;
                                          if (beginbreak)
                                             newl();
                                          else
                                             printf(" ");
                                          gen("BEGIN");
                                          ind++;
                                          if (document) {
                                                        space2(dind);
                                                        fprintf(dfp,"{\n");
                                                        } ;
    break;}
case 38:
#line 845 "nice_std.y"
{ if (!endind) ind--;
                                          newl();
                                          gen("END");
                                          if (endind) ind--;
                                          outcomm(FALSE,FALSE,FALSE);
                                          ind++;
                                          blocked = TRUE;
                                          if (document) {
                                                        space2(dind);
                                                        fprintf(dfp,"}\n");
                                                        } ;
    break;}
case 40:
#line 858 "nice_std.y"
{ newl();
                                          gen("BEGIN");
                                          ind++; ;
    break;}
case 41:
#line 862 "nice_std.y"
{ ind--;
                                          newl();
                                          gen("END");
                                          printf(";"); ;
    break;}
case 42:
#line 867 "nice_std.y"
{ ; ;
    break;}
case 43:
#line 868 "nice_std.y"
{ ; ;
    break;}
case 44:
#line 870 "nice_std.y"
{ outcomm(TRUE,FALSE,FALSE); ;
    break;}
case 45:
#line 871 "nice_std.y"
{ printf(";");
                                          blocked = FALSE; ;
    break;}
case 46:
#line 874 "nice_std.y"
{ ; ;
    break;}
case 47:
#line 875 "nice_std.y"
{ ; ;
    break;}
case 48:
#line 876 "nice_std.y"
{ ; ;
    break;}
case 49:
#line 877 "nice_std.y"
{ ; ;
    break;}
case 50:
#line 878 "nice_std.y"
{ ; ;
    break;}
case 51:
#line 879 "nice_std.y"
{ ; ;
    break;}
case 52:
#line 880 "nice_std.y"
{ ; ;
    break;}
case 53:
#line 881 "nice_std.y"
{ ; ;
    break;}
case 54:
#line 882 "nice_std.y"
{ ; ;
    break;}
case 55:
#line 888 "nice_std.y"
{ newl();
                                          printf("(* error *)"); ;
    break;}
case 56:
#line 891 "nice_std.y"
{ ; ;
    break;}
case 57:
#line 896 "nice_std.y"
{ printf("\n%d :",yyvsp[-1].ival); ;
    break;}
case 58:
#line 901 "nice_std.y"
{ newl();
                                          gen("LABEL");
                                          ind++;
                                          newl();
                                          printf("%s;",yyvsp[-2].elm);
                                          outcomm(FALSE,FALSE,TRUE);
                                          ind--;
                                          newl();
                                          nice_free(yyvsp[-2].elm); ;
    break;}
case 59:
#line 911 "nice_std.y"
{ newl();
                                          gen("CONST");
                                          outcomm(FALSE,FALSE,FALSE);
                                          ind++; ;
    break;}
case 60:
#line 915 "nice_std.y"
{ ind--;
                                          newl(); ;
    break;}
case 61:
#line 918 "nice_std.y"
{ ; ;
    break;}
case 62:
#line 919 "nice_std.y"
{ ; ;
    break;}
case 63:
#line 921 "nice_std.y"
{ newl();
                                          printf("%s = %s;",yyvsp[-4].name,yyvsp[-2].elm);
                                          outcomm(FALSE,FALSE,TRUE);
                                          nice_free(yyvsp[-4].name);
                                          nice_free(yyvsp[-2].elm); ;
    break;}
case 64:
#line 932 "nice_std.y"
{ ; ;
    break;}
case 65:
#line 934 "nice_std.y"
{ newl();
                                          gen("TYPE");
                                          outcomm(FALSE,FALSE,FALSE);
                                          ind++; ;
    break;}
case 66:
#line 938 "nice_std.y"
{ ind--;
                                          newl(); ;
    break;}
case 67:
#line 941 "nice_std.y"
{ ; ;
    break;}
case 68:
#line 942 "nice_std.y"
{ ; ;
    break;}
case 69:
#line 944 "nice_std.y"
{ newl();
                                          printf("%s = %s;",yyvsp[-4].name,yyvsp[-2].name);
                                          outcomm(FALSE,FALSE,TRUE);
                                          nice_free(yyvsp[-4].name);
                                          nice_free(yyvsp[-2].name); ;
    break;}
case 70:
#line 955 "nice_std.y"
{ newl();
                                          ind2 = strlen(yyvsp[-1].name)+3;
                                          printf("%s = ",yyvsp[-1].name);
                                          nice_free(yyvsp[-1].name); ;
    break;}
case 71:
#line 959 "nice_std.y"
{ printf(";");
                                          outcomm(FALSE,FALSE,TRUE);
                                          ind2 = 0; ;
    break;}
case 72:
#line 962 "nice_std.y"
{ ; ;
    break;}
case 73:
#line 964 "nice_std.y"
{ newl();
                                          gen("VAR");
                                          outcomm(FALSE,FALSE,FALSE);
                                          ind++; ;
    break;}
case 74:
#line 968 "nice_std.y"
{ ind--;
                                          newl(); ;
    break;}
case 75:
#line 971 "nice_std.y"
{ ; ;
    break;}
case 76:
#line 972 "nice_std.y"
{ ; ;
    break;}
case 77:
#line 974 "nice_std.y"
{ printf(";");
                                          outcomm(FALSE,FALSE,TRUE); ;
    break;}
case 78:
#line 991 "nice_std.y"
{ newl();
                                          printf("%s : %s",yyvsp[-2].elm,yyvsp[0].name);
                                          nice_free(yyvsp[-2].elm);
                                          nice_free(yyvsp[0].name); ;
    break;}
case 79:
#line 1003 "nice_std.y"
{ newl();
                                          ind2 = strlen(yyvsp[-1].elm)+3;
                                          printf("%s : ",yyvsp[-1].elm);
                                          nice_free(yyvsp[-1].elm); ;
    break;}
case 80:
#line 1007 "nice_std.y"
{ ind2 = 0; ;
    break;}
case 81:
#line 1017 "nice_std.y"
{ ; ;
    break;}
case 82:
#line 1019 "nice_std.y"
{ gen(yyvsp[-6].elm);
                                          gen("ARRAY");
                                          printf(" [%s] ",yyvsp[-3].elm);
                                          gen("OF");
                                          printf(" %s",yyvsp[0].name);
                                          nice_free(yyvsp[-6].elm);
                                          nice_free(yyvsp[-3].elm);
                                          nice_free(yyvsp[0].name); ;
    break;}
case 83:
#line 1027 "nice_std.y"
{ gen(yyvsp[-1].elm);
                                          gen("RECORD");
                                          ind++;
                                          nice_free(yyvsp[-1].elm); ;
    break;}
case 84:
#line 1032 "nice_std.y"
{  ind--;
                                           newl();
                                           gen("END"); ;
    break;}
case 85:
#line 1046 "nice_std.y"
{ printf("^%s",yyvsp[0].name);
                                          nice_free(yyvsp[0].name); ;
    break;}
case 86:
#line 1048 "nice_std.y"
{ printf("(%s)",yyvsp[-1].elm);
                                          nice_free(yyvsp[-1].elm); ;
    break;}
case 87:
#line 1050 "nice_std.y"
{ printf("%s",yyvsp[0].elm);
                                          nice_free(yyvsp[0].elm); ;
    break;}
case 88:
#line 1052 "nice_std.y"
{ gen("FILE");
                                          printf(" ");
                                          gen("OF");
                                          printf(" %s",yyvsp[0].name);
                                          nice_free(yyvsp[0].name); ;
    break;}
case 89:
#line 1068 "nice_std.y"
{ gen("SET");
                                          printf(" ");
                                          gen("OF");
                                          printf(" %s",yyvsp[0].elm);
                                          nice_free(yyvsp[0].elm); ;
    break;}
case 90:
#line 1109 "nice_std.y"
{ ; ;
    break;}
case 91:
#line 1110 "nice_std.y"
{ ; ;
    break;}
case 92:
#line 1111 "nice_std.y"
{ newl();
                                          gen("CASE");
                                          printf(" %s : %s ",yyvsp[-3].name,yyvsp[-1].name);
                                          gen("OF");
                                          ind++;
                                          nice_free(yyvsp[-3].name);
                                          nice_free(yyvsp[-1].name); ;
    break;}
case 93:
#line 1118 "nice_std.y"
{ ind--; ;
    break;}
case 94:
#line 1129 "nice_std.y"
{ ; ;
    break;}
case 95:
#line 1130 "nice_std.y"
{ ; ;
    break;}
case 96:
#line 1132 "nice_std.y"
{ newl();
                                          printf("%s : (",yyvsp[-2].elm);
                                          skipnewl = TRUE;
                                          nice_free(yyvsp[-2].elm); ;
    break;}
case 97:
#line 1137 "nice_std.y"
{ printf(");"); ;
    break;}
case 98:
#line 1166 "nice_std.y"
{ outcomm(TRUE,FALSE,FALSE);
                                          newl();
                                          printf("%s%s%s",yyvsp[-2].elm,asgstr,yyvsp[0].elm);
                                          nice_free(yyvsp[-2].elm);
                                          nice_free(yyvsp[0].elm); ;
    break;}
case 99:
#line 1173 "nice_std.y"
{ outcomm(TRUE,FALSE,TRUE);
                                          newl();
                                          gen("IF");
                                          printf(" %s ",yyvsp[-1].elm);
                                          gen("THEN");
                                          if (document) {
                                                        space2(dind);
                                                        fprintf(dfp,"IF ()\n");
                                                        }
                                          ind++;
                                          dind++;
                                          nice_free(yyvsp[-1].elm); ;
    break;}
case 100:
#line 1185 "nice_std.y"
{ ind--;
                                          dind--; ;
    break;}
case 102:
#line 1190 "nice_std.y"
{ ind--;
                                          dind--;
                                          if (blocked&&(!beginbreak))
                                              printf(" ");
                                          else
                                              newl();
                                          gen("ELSE");
                                          if (document) {
                                                        space2(dind);
                                                        fprintf(dfp,"ELSE\n");
                                                        }
                                          ind++;
                                          dind++; ;
    break;}
case 104:
#line 1206 "nice_std.y"
{ outcomm(TRUE,FALSE,FALSE);
                                          newl();
                                          gen("GOTO");
                                          printf(" %s",yyvsp[0].name);
                                          nice_free(yyvsp[0].name); ;
    break;}
case 105:
#line 1212 "nice_std.y"
{ outcomm(TRUE,FALSE,FALSE);
                                          newl();
                                          gen("GOTO");
                                          printf(" %d",yyvsp[0].ival); ;
    break;}
case 106:
#line 1218 "nice_std.y"
{ outcomm(TRUE,FALSE,TRUE);
                                          newl();
                                          gen("CASE");
                                          printf(" %s ",yyvsp[-1].elm);
                                          gen("OF");
                                          if (document) {
                                                        space2(dind);
                                                        fprintf(dfp,"CASE ()\n");
                                                        }
                                          ind++;
                                          dind++;
                                          nice_free(yyvsp[-1].elm); ;
    break;}
case 107:
#line 1231 "nice_std.y"
{ ind--;
                                          dind--;
                                          newl();
                                          gen("END"); ;
    break;}
case 108:
#line 1236 "nice_std.y"
{ ; ;
    break;}
case 109:
#line 1237 "nice_std.y"
{ ; ;
    break;}
case 110:
#line 1240 "nice_std.y"
{ outcomm(TRUE,FALSE,FALSE);
                                          newl();
                                          printf("%s : ",yyvsp[-1].elm);
                                          ind2 = strlen(yyvsp[-1].elm)+3;
                                          skipnewl = TRUE;
                                          nice_free(yyvsp[-1].elm); ;
    break;}
case 111:
#line 1246 "nice_std.y"
{ ind2 = 0; ;
    break;}
case 112:
#line 1249 "nice_std.y"
{ outcomm(TRUE,FALSE,FALSE);
                                          newl();
                                          if (!translate) {
                                             gen("OTHERWISE");
                                          } else {
                                             gen("ELSE");
                                          }
                                          printf(" ");
                                          ind2 = 12;
                                          skipnewl = TRUE; ;
    break;}
case 113:
#line 1259 "nice_std.y"
{ ind2 = 0; ;
    break;}
case 114:
#line 1277 "nice_std.y"
{ outcomm(TRUE,FALSE,TRUE);
                                          newl();
                                          gen("WHILE");
                                          printf(" %s ",yyvsp[-1].elm);
                                          gen("DO");
                                          if (document) {
                                                        space2(dind);
                                                        fprintf(dfp,"WHILE ()\n");
                                                        }
                                          ind++;
                                          dind++;
                                          nice_free(yyvsp[-1].elm); ;
    break;}
case 115:
#line 1289 "nice_std.y"
{ ind--;
                                          dind--; ;
    break;}
case 116:
#line 1294 "nice_std.y"
{ outcomm(TRUE,FALSE,TRUE);
                                          newl();
                                          gen("FOR");
                                          printf(" %s%s%s ",yyvsp[-5].elm,asgstr,yyvsp[-3].elm);
                                          gen("TO");
                                          printf(" %s ",yyvsp[-1].elm);
                                          gen("DO");
                                          if (document) {
                                                        space2(dind);
                                                        fprintf(dfp,"FOR ()\n");
                                                        }
                                          ind++;
                                          dind++;
                                          nice_free(yyvsp[-5].elm);
                                          nice_free(yyvsp[-3].elm);
                                          nice_free(yyvsp[-1].elm); ;
    break;}
case 117:
#line 1310 "nice_std.y"
{ ind--;
                                          dind--; ;
    break;}
case 118:
#line 1314 "nice_std.y"
{ outcomm(TRUE,FALSE,TRUE);
                                          newl();
                                          gen("FOR");
                                          printf(" %s%s%s ",yyvsp[-5].elm,asgstr,yyvsp[-3].elm);
                                          gen("DOWNTO");
                                          printf(" %s ",yyvsp[-1].elm);
                                          gen("DO");
                                          if (document) {
                                                        space2(dind);
                                                        fprintf(dfp,"FOR ()\n");
                                                        }
                                          ind++;
                                          dind++;
                                          nice_free(yyvsp[-5].elm);
                                          nice_free(yyvsp[-3].elm);
                                          nice_free(yyvsp[-1].elm); ;
    break;}
case 119:
#line 1330 "nice_std.y"
{ ind--;
                                          dind--; ;
    break;}
case 120:
#line 1334 "nice_std.y"
{ outcomm(TRUE,FALSE,TRUE);
                                          newl();
                                          gen("REPEAT");
                                          if (document) {
                                                        space2(dind);
                                                        fprintf(dfp,"REPEAT {\n");
                                                        }
                                          ind++;
                                          dind++; ;
    break;}
case 122:
#line 1346 "nice_std.y"
{ ind--;
                                          dind--;
                                          newl();
                                          gen("UNTIL");
                                          printf(" %s",yyvsp[0].elm);
                                          if (document) {
                                                        space2(dind);
                                                        fprintf(dfp,"} UNTIL ()\n");
                                                        }
                                          nice_free(yyvsp[0].elm); ;
    break;}
case 123:
#line 1358 "nice_std.y"
{ outcomm(TRUE,FALSE,FALSE);
                                          newl();
                                          gen("WITH");
                                          printf(" %s ",yyvsp[-1].elm);
                                          gen("DO");
                                          ind++;
                                          nice_free(yyvsp[-1].elm); ;
    break;}
case 124:
#line 1365 "nice_std.y"
{ ind--; ;
    break;}
case 125:
#line 1369 "nice_std.y"
{ outcomm(TRUE,FALSE,FALSE);
                                          newl();
                                          printf("%s",yyvsp[0].name);
                                          space(lind);
                                          if (calling) fprintf(lfp,"call of procedure: %s\n",yyvsp[0].name);
                                          if (document) docpcall(yyvsp[0].name);
                                          nice_free(yyvsp[0].name); ;
    break;}
case 126:
#line 1377 "nice_std.y"
{ outcomm(TRUE,FALSE,FALSE);
                                          newl();
                                          printf("%s()",yyvsp[-2].name);
                                          space(lind);
                                          if (calling) fprintf(lfp,"call of procedure: %s\n",yyvsp[-2].name);
                                          if (document) docpcall(yyvsp[-2].name);
                                          nice_free(yyvsp[-2].name); ;
    break;}
case 127:
#line 1385 "nice_std.y"
{ if (translate) {
                                             cvtupp(yyvsp[-3].name,tmp);



























































                                          }
                                          outcomm(TRUE,FALSE,FALSE);
                                          newl();
                                          printf("%s(%s)",yyvsp[-3].name,yyvsp[-1].elm);
                                          space(lind);
                                          if (calling) fprintf(lfp,"call of procedure: %s\n",yyvsp[-3].name);
                                          if (document) docpcall(yyvsp[-3].name);
                                          jump:
                                          nice_free(yyvsp[-3].name);
                                          nice_free(yyvsp[-1].elm); ;
    break;}
case 128:
#line 1559 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].elm)+1); strcpy(yyval.elm,yyvsp[0].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 129:
#line 1560 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(";")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,";",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 130:
#line 1562 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(4+strlen(yyvsp[-2].elm)+1+strlen(yyvsp[0].name)+1);
                                          strcpy(tmp,"VAR");
                                          kwrdcvt(tmp);
                                          
sprintf(yyval.elm,"%s %s:%s",tmp,yyvsp[-2].elm,yyvsp[0].name);
                                          nice_free(yyvsp[-2].elm);
                                          nice_free(yyvsp[0].name); ;
    break;}
case 131:
#line 1578 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(":")+strlen(yyvsp[0].name)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,":",yyvsp[0].name); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].name);; ;
    break;}
case 132:
#line 1596 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].elm)+1); strcpy(yyval.elm,yyvsp[0].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 133:
#line 1597 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].name)+1); strcpy(yyval.elm,yyvsp[0].name); nice_free(yyvsp[0].name);; ;
    break;}
case 134:
#line 1598 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(",")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,",",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 135:
#line 1605 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen("..")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,"..",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 136:
#line 1607 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen("..")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,"..",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 137:
#line 1609 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(0+1); strcpy(yyval.elm,"");; ;
    break;}
case 138:
#line 1610 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen("PACKED ")+1); strcpy(tmp,"PACKED "); kwrdcvt(tmp); strcpy(yyval.elm,tmp);; ;
    break;}
case 139:
#line 1611 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen("UNPACKED ")+1); strcpy(tmp,"UNPACKED "); kwrdcvt(tmp); strcpy(yyval.elm,tmp);; ;
    break;}
case 140:
#line 1613 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].elm)+1); strcpy(yyval.elm,yyvsp[0].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 141:
#line 1614 "nice_std.y"
{ space(lind);
                                          if (calling) fprintf(lfp,"call of function: %s\n",yyvsp[-2].name);
                                          yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].name)+strlen("()")+1); 
sprintf(yyval.elm,"%s%s",yyvsp[-2].name,"()"); nice_free(yyvsp[-2].name);; ;
    break;}
case 142:
#line 1637 "nice_std.y"
{ space(lind);
                                          if (calling) fprintf(lfp,"call of function: %s\n",yyvsp[-3].name);
                                          yyval.elm = (char *) nice_malloc(strlen(yyvsp[-3].name)+strlen("(")+strlen(yyvsp[-1].elm)+strlen(")")+1); 
sprintf(yyval.elm,"%s%s%s%s",yyvsp[-3].name,"(",yyvsp[-1].elm,")"); nice_free(yyvsp[-3].name); nice_free(yyvsp[-1].elm);; ;
    break;}
case 143:
#line 1641 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].elm)+1); strcpy(yyval.elm,yyvsp[0].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 144:
#line 1642 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen("(")+strlen(yyvsp[-1].elm)+strlen(")")+1); 
sprintf(yyval.elm,"%s%s%s","(",yyvsp[-1].elm,")"); nice_free(yyvsp[-1].elm);; ;
    break;}
case 145:
#line 1643 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen("-")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s","-",yyvsp[0].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 146:
#line 1644 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen("+")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,"+",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 147:
#line 1645 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen("-")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,"-",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 148:
#line 1646 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen("*")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,"*",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 149:
#line 1647 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen("/")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,"/",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 150:
#line 1669 "nice_std.y"
{ strcpy(tmp," DIV "); kwrdcvt(tmp); yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(tmp)+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,tmp,yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 151:
#line 1670 "nice_std.y"
{ strcpy(tmp," MOD "); kwrdcvt(tmp); yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(tmp)+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,tmp,yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 152:
#line 1671 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen("=")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,"=",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 153:
#line 1672 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(">")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,">",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 154:
#line 1673 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen("<")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,"<",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 155:
#line 1674 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(">=")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,">=",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 156:
#line 1675 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen("<=")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,"<=",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 157:
#line 1676 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen("<>")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,"<>",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 158:
#line 1677 "nice_std.y"
{ strcpy(tmp," AND "); kwrdcvt(tmp); yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(tmp)+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,tmp,yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 159:
#line 1678 "nice_std.y"
{ strcpy(tmp," OR "); kwrdcvt(tmp); yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(tmp)+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,tmp,yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 160:
#line 1679 "nice_std.y"
{ strcpy(tmp,"NOT "); kwrdcvt(tmp); yyval.elm = (char *) nice_malloc(strlen(tmp)+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s",tmp,yyvsp[0].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 161:
#line 1680 "nice_std.y"
{ strcpy(tmp," IN "); kwrdcvt(tmp); yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(tmp)+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,tmp,yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 162:
#line 1686 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].name)+1); strcpy(yyval.elm,yyvsp[0].name); nice_free(yyvsp[0].name);; ;
    break;}
case 163:
#line 1687 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-3].elm)+strlen("[")+strlen(yyvsp[-1].elm)+strlen("]")+1); 
sprintf(yyval.elm,"%s%s%s%s",yyvsp[-3].elm,"[",yyvsp[-1].elm,"]"); nice_free(yyvsp[-3].elm); nice_free(yyvsp[-1].elm);; ;
    break;}
case 164:
#line 1688 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-1].elm)+strlen("^")+1); 
sprintf(yyval.elm,"%s%s",yyvsp[-1].elm,"^"); nice_free(yyvsp[-1].elm);; ;
    break;}
case 165:
#line 1689 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(".")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,".",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 166:
#line 1691 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].elm)+1); strcpy(yyval.elm,yyvsp[0].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 167:
#line 1692 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(",")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,",",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 168:
#line 1694 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].elm)+1); strcpy(yyval.elm,yyvsp[0].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 169:
#line 1695 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(",")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,",",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 170:
#line 1697 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].elm)+1); strcpy(yyval.elm,yyvsp[0].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 171:
#line 1698 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(":")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,":",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 172:
#line 1699 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-4].elm)+1+strlen(yyvsp[-2].elm)+1+strlen(yyvsp[0].elm)+1);
                                          
sprintf(yyval.elm,"%s:%s:%s",yyvsp[-4].elm,yyvsp[-2].elm,yyvsp[0].elm);
                                          nice_free(yyvsp[-4].elm);
                                          nice_free(yyvsp[-2].elm);
                                          nice_free(yyvsp[0].elm); ;
    break;}
case 173:
#line 1725 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].name)+1); strcpy(yyval.elm,yyvsp[0].name); nice_free(yyvsp[0].name);; ;
    break;}
case 174:
#line 1726 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(",")+strlen(yyvsp[0].name)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,",",yyvsp[0].name); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].name);; ;
    break;}
case 175:
#line 1728 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen("EXTERNAL")+1); strcpy(tmp,"EXTERNAL"); kwrdcvt(tmp); strcpy(yyval.elm,tmp);; ;
    break;}
case 176:
#line 1729 "nice_std.y"
{ strcpy(tmp,",EXTERNAL"); kwrdcvt(tmp); yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(tmp)+1); 
sprintf(yyval.elm,"%s%s",yyvsp[-2].elm,tmp); nice_free(yyvsp[-2].elm);; ;
    break;}
case 177:
#line 1731 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].elm)+1); strcpy(yyval.elm,yyvsp[0].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 178:
#line 1732 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(",")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,",",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 179:
#line 1734 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].elm)+1); strcpy(yyval.elm,yyvsp[0].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 180:
#line 1735 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].name)+1); strcpy(yyval.elm,yyvsp[0].name); nice_free(yyvsp[0].name);; ;
    break;}
case 181:
#line 1737 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].elm)+1); strcpy(yyval.elm,yyvsp[0].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 182:
#line 1738 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(20+1); 
sprintf(yyval.elm,"%f",yyvsp[0].xval);; ;
    break;}
case 183:
#line 1739 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].elm)+1); strcpy(yyval.elm,yyvsp[0].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 184:
#line 1741 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(10+1); 
sprintf(yyval.elm,"%d",yyvsp[0].ival);; ;
    break;}
case 185:
#line 1742 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].sval)+1); strcpy(yyval.elm,yyvsp[0].sval); nice_free(yyvsp[0].sval);; ;
    break;}
case 186:
#line 1792 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen("[")+strlen(yyvsp[-1].elm)+strlen("]")+1); 
sprintf(yyval.elm,"%s%s%s","[",yyvsp[-1].elm,"]"); nice_free(yyvsp[-1].elm);; ;
    break;}
case 187:
#line 1794 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].elm)+1); strcpy(yyval.elm,yyvsp[0].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 188:
#line 1795 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[0].elm)+1); strcpy(yyval.elm,yyvsp[0].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 189:
#line 1796 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(",")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,",",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 190:
#line 1797 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen(yyvsp[-2].elm)+strlen(",")+strlen(yyvsp[0].elm)+1); 
sprintf(yyval.elm,"%s%s%s",yyvsp[-2].elm,",",yyvsp[0].elm); nice_free(yyvsp[-2].elm); nice_free(yyvsp[0].elm);; ;
    break;}
case 191:
#line 1806 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen("FORWARD")+1); strcpy(tmp,"FORWARD"); kwrdcvt(tmp); strcpy(yyval.elm,tmp);; ;
    break;}
case 192:
#line 1807 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen("EXTERN")+1); strcpy(tmp,"EXTERN"); kwrdcvt(tmp); strcpy(yyval.elm,tmp);; ;
    break;}
case 193:
#line 1808 "nice_std.y"
{ yyval.elm = (char *) nice_malloc(strlen("EXTERNAL")+1); strcpy(tmp,"EXTERNAL"); kwrdcvt(tmp); strcpy(yyval.elm,tmp);; ;
    break;}
}
   /* the action file gets copied in in place of this dollarsign */
#line 465 "bison.simple"

  yyvsp -= yylen;
  yyssp -= yylen;
#ifdef YYLSP_NEEDED
  yylsp -= yylen;
#endif

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

  *++yyvsp = yyval;

#ifdef YYLSP_NEEDED
  yylsp++;
  if (yylen == 0)
    {
      yylsp->first_line = yylloc.first_line;
      yylsp->first_column = yylloc.first_column;
      yylsp->last_line = (yylsp-1)->last_line;
      yylsp->last_column = (yylsp-1)->last_column;
      yylsp->text = 0;
    }
  else
    {
      yylsp->last_line = (yylsp+yylen-1)->last_line;
      yylsp->last_column = (yylsp+yylen-1)->last_column;
    }
#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 */

  if (! yyerrstatus)
    /* If not already recovering from an error, report this error.  */
    {
      ++yynerrs;

#ifdef YYERROR_VERBOSE
      yyn = yypact[yystate];

      if (yyn > YYFLAG && yyn < YYLAST)
	{
	  int size = 0;
	  char *msg;
	  int x, count;

	  count = 0;
	  /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
	  for (x = (yyn < 0 ? -yyn : 0);
	       x < (sizeof(yytname) / sizeof(char *)); x++)
	    if (yycheck[x + yyn] == x)
	      size += strlen(yytname[x]) + 15, count++;
	  msg = (char *) malloc(size + 15);
	  if (msg != 0)
	    {
	      strcpy(msg, "parse error");

	      if (count < 5)
		{
		  count = 0;
		  for (x = (yyn < 0 ? -yyn : 0);
		       x < (sizeof(yytname) / sizeof(char *)); x++)
		    if (yycheck[x + yyn] == x)
		      {
			strcat(msg, count == 0 ? ", expecting `" : " or `");
			strcat(msg, yytname[x]);
			strcat(msg, "'");
			count++;
		      }
		}
	      yyerror(msg);
	      free(msg);
	    }
	  else
	    yyerror ("parse error; also virtual memory exceeded");
	}
      else
#endif /* YYERROR_VERBOSE */
	yyerror("parse error");
    }

  goto yyerrlab1;
yyerrlab1:   /* here on error raised explicitly by an action */

  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;

#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
#endif

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

#if 0
  /* This is wrong; only states that explicitly want error tokens
     should shift them.  */
  yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  if (yyn) goto yydefault;
#endif

yyerrpop:   /* pop the current state because it cannot handle the error token */

  if (yyssp == yyss) YYABORT;
  yyvsp--;
  yystate = *--yyssp;
#ifdef YYLSP_NEEDED
  yylsp--;
#endif

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

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;

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Shifting error token, ");
#endif

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

  yystate = yyn;
  goto yynewstate;
}
#line 1811 "nice_std.y"


 
int nokeywrd = 39












               ;
char *keywrd[] = {
                 "PROGRAM"
                 ,"LABEL"
                 ,"CONST"
                 ,"TYPE"
                 ,"VAR"
                 ,"ARRAY"
                 ,"PACKED"
                 ,"UNPACKED"
                 ,"RECORD"
                 ,"FILE"
                 ,"SET"
                 ,"PROCEDURE"
                 ,"FUNCTION"
                 ,"BEGIN"
                 ,"IF"
                 ,"THEN"
                 ,"ELSE"
                 ,"GOTO"
                 ,"CASE"

                 ,"OTHERWISE"

                 ,"OF"
                 ,"WHILE"
                 ,"DO"
                 ,"FOR"
                 ,"TO"
                 ,"DOWNTO"
                 ,"REPEAT"
                 ,"UNTIL"
                 ,"WITH"
                 ,"AND"
                 ,"OR"
                 ,"NOT"
                 ,"IN"
                 ,"END"
                 ,"DIV"
                 ,"MOD"
                 ,"FORWARD"
                 ,"EXTERN"
                 ,"EXTERNAL"


























                 };

int token[] = {
              PROGRAM
              ,LABEL
              ,CONST
              ,TYPE
              ,VAR
              ,ARRAY
              ,PACKED
              ,UNPACKED
              ,RECORD
              ,ZFILE
              ,SET
              ,PROCEDURE
              ,FUNCTION
              ,ZBEGIN
              ,IF
              ,THEN
              ,ELSE
              ,GOTO
              ,CASE

              ,OTHERWISE

              ,OF
              ,WHILE
              ,DO
              ,FOR
              ,TO
              ,DOWNTO
              ,REPEAT
              ,UNTIL
              ,WITH
              ,AND
              ,OR
              ,NOT
              ,IN
              ,END
              ,DIV
              ,MOD
              ,FORWARD
              ,ZEXTERN
              ,EXTERNAL


























              };

/* empty */
