
# line 2 "parser.y"
#include <stdio.h>
#include "layout.h"
#include "builder.h"

FormclassPtr yyparsedform;
static FormclassPtr bform;
static FieldPtr bf;
static NodePtr bn;
char *strdup(char *);
char *yylexany(void);
void yybegin(void);

# line 15 "parser.y"
typedef union
#ifdef __cplusplus
	YYSTYPE
#endif
 {
  char *s;
  char **sl;
  int i;
  int *il;
} YYSTYPE;
# define ACTIONLIST 257
# define BOOLEANINPUT0 258
# define BOXDISPLAY0 259
# define CALCULATE 260
# define CHAR 261
# define CHOICES 262
# define COL 263
# define COLUMNS 264
# define DATA 265
# define DEFAULTQUEUE 266
# define DEFAULTVALUE 267
# define DEFAULTVALUES 268
# define DETAIL 269
# define DIRECTION 270
# define DISPLAYFIELD 271
# define DISPLAY0 272
# define DISTANCE 273
# define DOWN 274
# define EXCLUSIVE0 275
# define FIELD 276
# define FORM 277
# define FORMNAME 278
# define HEIGHT 279
# define HIDDENIF 280
# define INPUTFIELD 281
# define INPUTSOURCE 282
# define LEFT 283
# define LENGTH 284
# define LINEDISPLAY0 285
# define LOCKEDIF 286
# define NAME 287
# define NODENUMBER 288
# define NONEXCLUSIVE0 289
# define NONE 290
# define NOTIFY 291
# define NUMERICINPUT0 292
# define NUMLINES 293
# define PROMPT 294
# define RIGHT 295
# define ROUTE 296
# define ROW 297
# define SCREEN 298
# define SELECTIONINPUT0 299
# define STATUSSTRING 300
# define TERMINAL 301
# define TEXTATTRS 302
# define TEXTDISPLAY0 303
# define TEXTINPUT0 304
# define TYPE 305
# define UP 306
# define WIDTH 307
# define WRAP 308
# define WORD 309
# define ID 310
# define ANY 311
# define STRING 312
# define INTEGER 313
# define SHIFTNL 314

#include <malloc.h>
#include <memory.h>
#include <values.h>

#ifdef __cplusplus

#ifndef yyerror
	void yyerror(const char *);
#endif

#ifndef yylex
#ifdef __EXTERN_C__
	extern "C" { int yylex(void); }
#else
	int yylex(void);
#endif
#endif
	int yyparse(void);

#endif
#define yyclearin yychar = -1
#define yyerrok yyerrflag = 0
extern int yychar;
extern int yyerrflag;
YYSTYPE yylval;
YYSTYPE yyval;
typedef int yytabelem;
#ifndef YYMAXDEPTH
#define YYMAXDEPTH 150
#endif
#if YYMAXDEPTH > 0
int yy_yys[YYMAXDEPTH], *yys = yy_yys;
YYSTYPE yy_yyv[YYMAXDEPTH], *yyv = yy_yyv;
#else	/* user does initial allocation */
int *yys;
YYSTYPE *yyv;
#endif
static int yymaxdepth = YYMAXDEPTH;
# define YYERRCODE 256

# line 290 "parser.y"


char *strdup(char *s) {
  char *q = (char *)malloctrace(strlen(s)+1);
  strcpy(q, s);
  return q;
}

void strdupinto(char **into, char *s) {
  if (*into) freetrace(*into);
  *into = strdup(s);
}

void putinto(void **into, void *p) {
  if (*into) freetrace(*into);
  *into = p;
}

char **stringlistconcat(char **list, char *new) {
  int siz;
  char **trav;
  if (!list) list = (char **)calloctrace(sizeof(char *), 1);
  for (trav = list, siz = 0; *trav; trav++) siz++;
  list = (char **)realloctrace(list, sizeof(char *) * (siz + 2));
  list[siz] = NULL;
  strdupinto(&list[siz], new);
  list[siz+1] = NULL;
  return list;
}

int *intlistconcat(int *list, int new) {
  int siz, *trav;
  if (!list) {
    list = (int *)malloctrace(sizeof(int));
    *list = -1;
  }
  for (trav = list, siz = 0; *trav >= 0; trav++) siz++;
  list = (int *)realloctrace(list, sizeof(int) * (siz + 2));
  list[siz] = new;
  list[siz+1] = -1;
  return list;
}
yytabelem yyexca[] ={
-1, 0,
	10, 1,
	123, 1,
	-2, 0,
-1, 1,
	0, -1,
	-2, 0,
-1, 11,
	10, 9,
	125, 9,
	123, 9,
	-2, 0,
-1, 87,
	10, 176,
	125, 176,
	123, 176,
	-2, 0,
-1, 110,
	10, 176,
	125, 176,
	-2, 0,
-1, 206,
	10, 176,
	125, 176,
	-2, 0,
-1, 222,
	10, 176,
	125, 176,
	-2, 0,
-1, 249,
	10, 176,
	125, 176,
	-2, 0,
-1, 250,
	10, 176,
	125, 176,
	-2, 0,
-1, 251,
	10, 176,
	125, 176,
	-2, 0,
-1, 252,
	10, 176,
	125, 176,
	-2, 0,
-1, 253,
	10, 176,
	125, 176,
	-2, 0,
-1, 254,
	10, 176,
	125, 176,
	-2, 0,
-1, 255,
	10, 176,
	125, 176,
	-2, 0,
	};
# define YYNPROD 177
# define YYLAST 419
yytabelem yyact[]={

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

  -122,-10000000,-10000000,-10000000,  -170,   184,-10000000,-10000000,-10000000,   270,
   270,  -115,-10000000,-10000000,   191,   322,-10000000,-10000000,   183,  -162,
   270,  -257,-10000000,  -198,-10000000,-10000000,   320,-10000000,-10000000,-10000000,
-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,
-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,
-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,
-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,
-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,
-10000000,-10000000,   270,   270,-10000000,   270,-10000000,  -138,  -196,-10000000,
-10000000,-10000000,    60,-10000000,-10000000,   190,   189,   188,   187,   186,
   182,   181,   179,   178,   177,   176,   175,   319,-10000000,-10000000,
  -171,   270,-10000000,  -257,  -227,  -230,  -257,  -257,  -257,  -257,
-10000000,-10000000,-10000000,  -231,-10000000,  -105,-10000000,   180,  -158,   318,
   317,   315,   314,   313,   312,   310,   309,   308,   307,-10000000,
   232,-10000000,   174,-10000000,   173,   172,   169,   168,   167,   306,
-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,
-10000000,-10000000,-10000000,  -234,  -236,   270,  -216,    65,  -237,  -257,
  -238,-10000000,-10000000,-10000000,-10000000,   305,   304,   302,   207,-10000000,
   -69,   301,   300,   299,   270,   270,-10000000,-10000000,-10000000,    65,
   197,-10000000,-10000000,-10000000,-10000000,  -103,  -155,-10000000,-10000000,  -239,
   166,-10000000,   165,   164,   289,   163,   -99,    57,-10000000,   270,
  -242,  -217,-10000000,-10000000,-10000000,-10000000,-10000000,  -150,   284,   279,
-10000000,  -139,  -134,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,
-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,
-10000000,-10000000,   270,   270,   270,   270,   270,   270,   270,  -163,
   -87,  -101,  -124,  -151,  -137,   -91,-10000000,-10000000,   162,   161,
   160,   159,   158,   278,-10000000,-10000000,   157,   156,   277,-10000000,
-10000000,   155,   154,   276,-10000000,-10000000,   153,   152,   151,   150,
   149,   275,-10000000,-10000000,   148,   147,   274,-10000000,-10000000,   145,
   140,   272,-10000000,-10000000,   139,   271,   270,-10000000,  -243,  -247,
  -161,-10000000,-10000000,   270,-10000000,-10000000,-10000000,   270,-10000000,-10000000,
-10000000,   270,-10000000,  -164,  -218,  -248,-10000000,-10000000,   270,  -249,
  -252,-10000000,   270,  -254,  -256,-10000000,   270,  -223,-10000000,   269,
   268,   267,   264,   261,   260,   258,   257,   256,   255,   253,
   252,   251,   250,   228,-10000000,   249,   248,   246,   245,   244,
   243,   242,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,
-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,  -224,-10000000,-10000000,
-10000000,-10000000,-10000000,-10000000,-10000000,-10000000 };
yytabelem yypgo[]={

     0,   184,    54,   397,   395,   394,   391,   187,    55,   390,
   389,   162,   387,   386,   384,   383,   189,   382,   381,   380,
   379,   171,   378,   377,   172,   376,   375,   374,   372,   370,
   366,   365,   362,   361,   358,   357,   355,   353,   351,   350,
   348,   347,   346,   345,   343,   342,   341,   340,   338,   337,
   175,   336,   335,   334,   333,   178 };
yytabelem yyr1[]={

     0,     6,     5,     5,     9,     9,    13,    13,    10,    10,
    15,    14,    16,    16,    18,    18,    18,    18,    18,    18,
    18,    18,    18,    18,    18,    18,     4,     4,    19,    20,
    17,    23,    17,    21,    21,    26,    26,    26,    24,    27,
    22,    29,    22,    31,    22,    33,    22,    28,    28,    35,
    35,    35,    35,    35,    35,    35,    35,    30,    30,    36,
    36,    36,    32,    32,    37,    37,    37,    34,    34,    38,
    38,    38,    38,    38,    38,    38,     3,     3,    39,    25,
    41,    25,    43,    25,    40,    40,    45,    45,    45,    42,
    42,    46,    46,    46,    44,    44,    47,    47,    12,    12,
    49,    51,    48,    48,    50,    50,    52,    52,    52,    52,
    52,    52,    53,    53,    54,    54,    55,    55,     2,     1,
     1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     7,    11,     8,     8 };
yytabelem yyr2[]={

     0,     1,    25,     3,     6,     0,     9,     4,     4,     0,
     1,    16,     6,     0,     9,     9,     9,     9,     9,     9,
     9,     9,     9,     8,     9,     4,     7,     3,     3,     1,
    24,     1,    24,     6,     0,     9,     9,     4,     0,     1,
    12,     1,    12,     1,    12,     1,    12,     6,     0,     9,
     9,     9,     9,     9,     9,     9,     4,     6,     0,     9,
     9,     4,     6,     0,     9,     9,     4,     6,     0,     9,
     9,     9,     9,     9,     9,     4,     7,     3,     1,    12,
     1,    12,     1,    12,     6,     0,     9,     9,     4,     6,
     0,     9,     9,     4,     6,     0,     9,     4,     4,     0,
     1,     1,    20,     4,     6,     0,     9,     8,     9,     9,
     9,     4,     2,     0,     6,     2,    11,     4,     1,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     6,     6,     4,     0 };
yytabelem yychk[]={

-10000000,    -5,    -6,   256,    -7,    -8,   277,   123,    10,    -8,
    -8,    -9,   -10,   -13,   278,   256,   -11,   -14,    -8,    -7,
    -8,    58,    10,    -7,   125,   276,    -1,   310,   257,   258,
   259,   260,   261,   262,   263,   264,   265,   266,   267,   268,
   269,   270,   271,   272,   273,   274,   275,   276,   277,   278,
   279,   280,   281,   282,   283,   284,   285,   286,   287,   288,
   290,   289,   291,   292,   293,   294,   295,   296,   297,   298,
   299,   300,   301,   302,   303,   304,   305,   306,   307,   309,
   308,   296,    -8,    -8,    10,    -8,   -15,   -12,   -16,   -11,
   -48,    -7,   256,   -17,   -18,   269,   287,   297,   263,   306,
   274,   283,   295,   286,   280,   302,   298,   256,   -49,   125,
   -16,    -8,    58,    58,    58,    58,    58,    58,    58,    58,
    58,    58,    58,    58,    10,   -50,   -11,    -8,    -7,    -1,
   313,   313,    -1,    -1,    -1,    -1,    -2,    -2,   -19,    -2,
    -4,   313,   288,   -52,   300,   257,   301,   266,   291,   256,
   281,   271,    10,    10,    10,    10,    10,    10,    10,    10,
    10,    10,    10,    44,    58,    -8,    58,    58,    58,    58,
    58,    10,   -20,   -23,   313,   313,   312,   -53,   -54,   -55,
   123,   313,    -1,   313,    -8,    -8,    10,    10,    10,    44,
   312,   125,    10,    10,    10,   -21,   -24,   -51,   -55,    44,
   282,   -26,   273,   294,   256,   272,   -50,   313,    58,    -8,
    58,    58,    10,    58,   -11,   125,   -22,    -7,   313,   312,
   -25,    -7,   -21,   304,   292,   258,   299,    10,    10,   -24,
   259,   285,   303,   -11,   -27,   -29,   -31,   -33,   -11,   -39,
   -41,   -43,    -8,    -8,    -8,    -8,    -8,    -8,    -8,   -28,
   -30,   -32,   -34,   -40,   -42,   -44,   -11,   -35,   267,   284,
   293,   308,   260,   256,   -11,   -36,   267,   260,   256,   -11,
   -37,   267,   260,   256,   -11,   -38,   268,   305,   262,   264,
   260,   256,   -11,   -45,   279,   307,   256,   -11,   -46,   284,
   270,   256,   -11,   -47,   265,   256,    -8,    58,    58,    58,
    58,    58,    10,    -8,    58,    58,    10,    -8,    58,    58,
    10,    -8,    58,    58,    58,    58,    58,    10,    -8,    58,
    58,    10,    -8,    58,    58,    10,    -8,    58,    10,    -2,
   313,   313,   290,   261,   309,    -2,    -2,    -2,    -2,    -2,
    -2,   275,   289,    -3,   312,   313,    -2,   313,   313,   313,
   313,   312,    10,    10,    10,    10,    10,    10,    10,    10,
    10,    10,    10,    10,    10,    10,    10,    44,    10,    10,
    10,    10,    10,    10,    10,   312 };
yytabelem yydef[]={

    -2,    -2,   176,     3,     0,     0,   176,   176,   175,     5,
   173,    -2,   176,   176,     0,     0,   176,     8,     0,     0,
     4,     0,     7,     0,   176,   176,     0,   119,   120,   121,
   122,   123,   124,   125,   126,   127,   128,   129,   130,   131,
   132,   133,   134,   135,   136,   137,   138,   139,   140,   141,
   142,   143,   144,   145,   146,   147,   148,   149,   150,   151,
   152,   153,   154,   155,   156,   157,   158,   159,   160,   161,
   162,   163,   164,   165,   166,   167,   168,   169,   170,   171,
   172,   176,   174,    10,     6,    99,    13,    -2,     0,     2,
    98,   100,     0,    13,   176,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,   105,   103,
    -2,    12,   176,     0,     0,     0,     0,     0,     0,     0,
   118,   118,   118,     0,    25,     0,    11,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,    28,
     0,    27,     0,   176,     0,     0,     0,     0,     0,     0,
    29,    31,    14,    15,    16,    17,    18,    19,    20,    21,
    22,    23,    24,     0,     0,   104,     0,   113,     0,     0,
     0,   111,   176,   176,    26,     0,     0,     0,   112,   115,
     0,     0,     0,     0,    34,    38,   101,   106,   107,     0,
     0,   117,   108,   109,   110,     0,     0,   105,   114,     0,
     0,   176,     0,     0,     0,     0,    -2,     0,   176,    33,
     0,     0,    37,   176,   102,   116,    34,     0,     0,     0,
    38,     0,    -2,    39,    41,    43,    45,    35,    36,   176,
    78,    80,    82,    30,   176,   176,   176,   176,    32,   176,
   176,   176,    48,    58,    63,    68,    85,    90,    95,    -2,
    -2,    -2,    -2,    -2,    -2,    -2,    40,   176,     0,     0,
     0,     0,     0,     0,    42,   176,     0,     0,     0,    44,
   176,     0,     0,     0,    46,   176,     0,     0,     0,     0,
     0,     0,    79,   176,     0,     0,     0,    81,   176,     0,
     0,     0,    83,   176,     0,     0,    47,   118,     0,     0,
     0,   118,    56,    57,   118,   118,    61,    62,   118,   118,
    66,    67,   118,     0,     0,     0,   118,    75,    84,     0,
     0,    88,    89,     0,     0,    93,    94,     0,    97,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,    77,     0,     0,     0,     0,     0,
     0,     0,    49,    50,    51,    52,    53,    54,    55,    59,
    60,    64,    65,    69,    70,    71,    72,     0,    73,    74,
    86,    87,    91,    92,    96,    76 };
typedef struct
#ifdef __cplusplus
	yytoktype
#endif
{ char *t_name; int t_val; } yytoktype;
#ifndef YYDEBUG
#	define YYDEBUG	0	/* don't allow debugging */
#endif

#if YYDEBUG

yytoktype yytoks[] =
{
	"ACTIONLIST",	257,
	"BOOLEANINPUT0",	258,
	"BOXDISPLAY0",	259,
	"CALCULATE",	260,
	"CHAR",	261,
	"CHOICES",	262,
	"COL",	263,
	"COLUMNS",	264,
	"DATA",	265,
	"DEFAULTQUEUE",	266,
	"DEFAULTVALUE",	267,
	"DEFAULTVALUES",	268,
	"DETAIL",	269,
	"DIRECTION",	270,
	"DISPLAYFIELD",	271,
	"DISPLAY0",	272,
	"DISTANCE",	273,
	"DOWN",	274,
	"EXCLUSIVE0",	275,
	"FIELD",	276,
	"FORM",	277,
	"FORMNAME",	278,
	"HEIGHT",	279,
	"HIDDENIF",	280,
	"INPUTFIELD",	281,
	"INPUTSOURCE",	282,
	"LEFT",	283,
	"LENGTH",	284,
	"LINEDISPLAY0",	285,
	"LOCKEDIF",	286,
	"NAME",	287,
	"NODENUMBER",	288,
	"NONEXCLUSIVE0",	289,
	"NONE",	290,
	"NOTIFY",	291,
	"NUMERICINPUT0",	292,
	"NUMLINES",	293,
	"PROMPT",	294,
	"RIGHT",	295,
	"ROUTE",	296,
	"ROW",	297,
	"SCREEN",	298,
	"SELECTIONINPUT0",	299,
	"STATUSSTRING",	300,
	"TERMINAL",	301,
	"TEXTATTRS",	302,
	"TEXTDISPLAY0",	303,
	"TEXTINPUT0",	304,
	"TYPE",	305,
	"UP",	306,
	"WIDTH",	307,
	"WRAP",	308,
	"WORD",	309,
	"ID",	310,
	"ANY",	311,
	"STRING",	312,
	"INTEGER",	313,
	"SHIFTNL",	314,
	"\n",	10,
	"-unknown-",	-1	/* ends search */
};

char * yyreds[] =
{
	"-no such reduction-",
	"form : /* empty */",
	"form : lb FORM optnl formslots fields rb lb ROUTE optnl routes rb",
	"form : error",
	"formslots : formslots formslot optnl",
	"formslots : /* empty */",
	"formslot : FORMNAME ':' id '\n'",
	"formslot : error '\n'",
	"fields : fields field",
	"fields : /* empty */",
	"field : lb FIELD optnl",
	"field : lb FIELD optnl fieldslots detail fieldslots rb",
	"fieldslots : fieldslots fieldslot optnl",
	"fieldslots : /* empty */",
	"fieldslot : NAME ':' id '\n'",
	"fieldslot : ROW ':' INTEGER '\n'",
	"fieldslot : COL ':' INTEGER '\n'",
	"fieldslot : UP ':' id '\n'",
	"fieldslot : DOWN ':' id '\n'",
	"fieldslot : LEFT ':' id '\n'",
	"fieldslot : RIGHT ':' id '\n'",
	"fieldslot : LOCKEDIF ':' value '\n'",
	"fieldslot : HIDDENIF ':' value '\n'",
	"fieldslot : TEXTATTRS ':' textattributes '\n'",
	"fieldslot : SCREEN ':' intlist '\n'",
	"fieldslot : error '\n'",
	"intlist : intlist ',' INTEGER",
	"intlist : INTEGER",
	"textattributes : value",
	"detail : DETAIL ':' lb INPUTFIELD",
	"detail : DETAIL ':' lb INPUTFIELD optnl inputslots INPUTSOURCE ':' input inputslots rb",
	"detail : DETAIL ':' lb DISPLAYFIELD",
	"detail : DETAIL ':' lb DISPLAYFIELD optnl displayslots DISPLAY0 ':' display displayslots rb",
	"inputslots : inputslots inputslot optnl",
	"inputslots : /* empty */",
	"inputslot : DISTANCE ':' INTEGER '\n'",
	"inputslot : PROMPT ':' STRING '\n'",
	"inputslot : error '\n'",
	"displayslots : /* empty */",
	"input : lb TEXTINPUT0",
	"input : lb TEXTINPUT0 optnl textinputslots rb",
	"input : lb NUMERICINPUT0",
	"input : lb NUMERICINPUT0 optnl numericinputslots rb",
	"input : lb BOOLEANINPUT0",
	"input : lb BOOLEANINPUT0 optnl booleaninputslots rb",
	"input : lb SELECTIONINPUT0",
	"input : lb SELECTIONINPUT0 optnl selectioninputslots rb",
	"textinputslots : textinputslots textinputslot optnl",
	"textinputslots : /* empty */",
	"textinputslot : DEFAULTVALUE ':' value '\n'",
	"textinputslot : LENGTH ':' INTEGER '\n'",
	"textinputslot : NUMLINES ':' INTEGER '\n'",
	"textinputslot : WRAP ':' NONE '\n'",
	"textinputslot : WRAP ':' CHAR '\n'",
	"textinputslot : WRAP ':' WORD '\n'",
	"textinputslot : CALCULATE ':' value '\n'",
	"textinputslot : error '\n'",
	"numericinputslots : numericinputslots numericinputslot optnl",
	"numericinputslots : /* empty */",
	"numericinputslot : DEFAULTVALUE ':' value '\n'",
	"numericinputslot : CALCULATE ':' value '\n'",
	"numericinputslot : error '\n'",
	"booleaninputslots : booleaninputslots booleaninputslot optnl",
	"booleaninputslots : /* empty */",
	"booleaninputslot : DEFAULTVALUE ':' value '\n'",
	"booleaninputslot : CALCULATE ':' value '\n'",
	"booleaninputslot : error '\n'",
	"selectioninputslots : selectioninputslots selectioninputslot optnl",
	"selectioninputslots : /* empty */",
	"selectioninputslot : DEFAULTVALUES ':' value '\n'",
	"selectioninputslot : TYPE ':' EXCLUSIVE0 '\n'",
	"selectioninputslot : TYPE ':' NONEXCLUSIVE0 '\n'",
	"selectioninputslot : CHOICES ':' stringlist '\n'",
	"selectioninputslot : COLUMNS ':' INTEGER '\n'",
	"selectioninputslot : CALCULATE ':' value '\n'",
	"selectioninputslot : error '\n'",
	"stringlist : stringlist ',' STRING",
	"stringlist : STRING",
	"display : lb BOXDISPLAY0",
	"display : lb BOXDISPLAY0 optnl boxdisplayslots rb",
	"display : lb LINEDISPLAY0",
	"display : lb LINEDISPLAY0 optnl linedisplayslots rb",
	"display : lb TEXTDISPLAY0",
	"display : lb TEXTDISPLAY0 optnl textdisplayslots rb",
	"boxdisplayslots : boxdisplayslots boxdisplayslot optnl",
	"boxdisplayslots : /* empty */",
	"boxdisplayslot : HEIGHT ':' INTEGER '\n'",
	"boxdisplayslot : WIDTH ':' INTEGER '\n'",
	"boxdisplayslot : error '\n'",
	"linedisplayslots : linedisplayslots linedisplayslot optnl",
	"linedisplayslots : /* empty */",
	"linedisplayslot : LENGTH ':' INTEGER '\n'",
	"linedisplayslot : DIRECTION ':' INTEGER '\n'",
	"linedisplayslot : error '\n'",
	"textdisplayslots : textdisplayslots textdisplayslot optnl",
	"textdisplayslots : /* empty */",
	"textdisplayslot : DATA ':' STRING '\n'",
	"textdisplayslot : error '\n'",
	"routes : routes route",
	"routes : /* empty */",
	"route : lb",
	"route : lb routeslots NODENUMBER ':' INTEGER '\n'",
	"route : lb routeslots NODENUMBER ':' INTEGER '\n' routeslots rb",
	"route : error '}'",
	"routeslots : routeslots routeslot optnl",
	"routeslots : /* empty */",
	"routeslot : STATUSSTRING ':' STRING '\n'",
	"routeslot : ACTIONLIST ':' actionlist '\n'",
	"routeslot : TERMINAL ':' INTEGER '\n'",
	"routeslot : DEFAULTQUEUE ':' id '\n'",
	"routeslot : NOTIFY ':' INTEGER '\n'",
	"routeslot : error '\n'",
	"actionlist : actionsplural",
	"actionlist : /* empty */",
	"actionsplural : actionsplural ',' action",
	"actionsplural : action",
	"action : '{' STRING ',' INTEGER '}'",
	"action : '{' '}'",
	"value : /* empty */",
	"id : ID",
	"id : ACTIONLIST",
	"id : BOOLEANINPUT0",
	"id : BOXDISPLAY0",
	"id : CALCULATE",
	"id : CHAR",
	"id : CHOICES",
	"id : COL",
	"id : COLUMNS",
	"id : DATA",
	"id : DEFAULTQUEUE",
	"id : DEFAULTVALUE",
	"id : DEFAULTVALUES",
	"id : DETAIL",
	"id : DIRECTION",
	"id : DISPLAYFIELD",
	"id : DISPLAY0",
	"id : DISTANCE",
	"id : DOWN",
	"id : EXCLUSIVE0",
	"id : FIELD",
	"id : FORM",
	"id : FORMNAME",
	"id : HEIGHT",
	"id : HIDDENIF",
	"id : INPUTFIELD",
	"id : INPUTSOURCE",
	"id : LEFT",
	"id : LENGTH",
	"id : LINEDISPLAY0",
	"id : LOCKEDIF",
	"id : NAME",
	"id : NODENUMBER",
	"id : NONE",
	"id : NONEXCLUSIVE0",
	"id : NOTIFY",
	"id : NUMERICINPUT0",
	"id : NUMLINES",
	"id : PROMPT",
	"id : RIGHT",
	"id : ROUTE",
	"id : ROW",
	"id : SCREEN",
	"id : SELECTIONINPUT0",
	"id : STATUSSTRING",
	"id : TERMINAL",
	"id : TEXTATTRS",
	"id : TEXTDISPLAY0",
	"id : TEXTINPUT0",
	"id : TYPE",
	"id : UP",
	"id : WIDTH",
	"id : WORD",
	"id : WRAP",
	"lb : optnl '{' optnl",
	"rb : optnl '}' optnl",
	"optnl : optnl '\n'",
	"optnl : /* empty */",
};
#endif /* YYDEBUG */
/*
 * Copyright (c) 1993 by Sun Microsystems, Inc.
 */

#pragma ident	"@(#)yaccpar	6.12	93/06/07 SMI"

/*
** Skeleton parser driver for yacc output
*/

/*
** yacc user known macros and defines
*/
#define YYERROR		goto yyerrlab
#define YYACCEPT	return(0)
#define YYABORT		return(1)
#define YYBACKUP( newtoken, newvalue )\
{\
	if ( yychar >= 0 || ( yyr2[ yytmp ] >> 1 ) != 1 )\
	{\
		yyerror( "syntax error - cannot backup" );\
		goto yyerrlab;\
	}\
	yychar = newtoken;\
	yystate = *yyps;\
	yylval = newvalue;\
	goto yynewstate;\
}
#define YYRECOVERING()	(!!yyerrflag)
#define YYNEW(type)	malloc(sizeof(type) * yynewmax)
#define YYCOPY(to, from, type) \
	(type *) memcpy(to, (char *) from, yynewmax * sizeof(type))
#define YYENLARGE( from, type) \
	(type *) realloc((char *) from, yynewmax * sizeof(type))
#ifndef YYDEBUG
#	define YYDEBUG	1	/* make debugging available */
#endif

/*
** user known globals
*/
int yydebug;			/* set to 1 to get debugging */

/*
** driver internal defines
*/
#define YYFLAG		(-10000000)

/*
** global variables used by the parser
*/
YYSTYPE *yypv;			/* top of value stack */
int *yyps;			/* top of state stack */

int yystate;			/* current state */
int yytmp;			/* extra var (lasts between blocks) */

int yynerrs;			/* number of errors */
int yyerrflag;			/* error recovery flag */
int yychar;			/* current input token number */



#ifdef YYNMBCHARS
#define YYLEX()		yycvtok(yylex())
/*
** yycvtok - return a token if i is a wchar_t value that exceeds 255.
**	If i<255, i itself is the token.  If i>255 but the neither 
**	of the 30th or 31st bit is on, i is already a token.
*/
#if defined(__STDC__) || defined(__cplusplus)
int yycvtok(int i)
#else
int yycvtok(i) int i;
#endif
{
	int first = 0;
	int last = YYNMBCHARS - 1;
	int mid;
	wchar_t j;

	if(i&0x60000000){/*Must convert to a token. */
		if( yymbchars[last].character < i ){
			return i;/*Giving up*/
		}
		while ((last>=first)&&(first>=0)) {/*Binary search loop*/
			mid = (first+last)/2;
			j = yymbchars[mid].character;
			if( j==i ){/*Found*/ 
				return yymbchars[mid].tvalue;
			}else if( j<i ){
				first = mid + 1;
			}else{
				last = mid -1;
			}
		}
		/*No entry in the table.*/
		return i;/* Giving up.*/
	}else{/* i is already a token. */
		return i;
	}
}
#else/*!YYNMBCHARS*/
#define YYLEX()		yylex()
#endif/*!YYNMBCHARS*/

/*
** yyparse - return 0 if worked, 1 if syntax error not recovered from
*/
#if defined(__STDC__) || defined(__cplusplus)
int yyparse(void)
#else
int yyparse()
#endif
{
	register YYSTYPE *yypvt;	/* top of value stack for $vars */

#if defined(__cplusplus) || defined(lint)
/*
	hacks to please C++ and lint - goto's inside switch should never be
	executed; yypvt is set to 0 to avoid "used before set" warning.
*/
	static int __yaccpar_lint_hack__ = 0;
	switch (__yaccpar_lint_hack__)
	{
		case 1: goto yyerrlab;
		case 2: goto yynewstate;
	}
	yypvt = 0;
#endif

	/*
	** Initialize externals - yyparse may be called more than once
	*/
	yypv = &yyv[-1];
	yyps = &yys[-1];
	yystate = 0;
	yytmp = 0;
	yynerrs = 0;
	yyerrflag = 0;
	yychar = -1;

#if YYMAXDEPTH <= 0
	if (yymaxdepth <= 0)
	{
		if ((yymaxdepth = YYEXPAND(0)) <= 0)
		{
			yyerror("yacc initialization error");
			YYABORT;
		}
	}
#endif

	{
		register YYSTYPE *yy_pv;	/* top of value stack */
		register int *yy_ps;		/* top of state stack */
		register int yy_state;		/* current state */
		register int  yy_n;		/* internal state number info */
	goto yystack;	/* moved from 6 lines above to here to please C++ */

		/*
		** get globals into registers.
		** branch to here only if YYBACKUP was called.
		*/
	yynewstate:
		yy_pv = yypv;
		yy_ps = yyps;
		yy_state = yystate;
		goto yy_newstate;

		/*
		** get globals into registers.
		** either we just started, or we just finished a reduction
		*/
	yystack:
		yy_pv = yypv;
		yy_ps = yyps;
		yy_state = yystate;

		/*
		** top of for (;;) loop while no reductions done
		*/
	yy_stack:
		/*
		** put a state and value onto the stacks
		*/
#if YYDEBUG
		/*
		** if debugging, look up token value in list of value vs.
		** name pairs.  0 and negative (-1) are special values.
		** Note: linear search is used since time is not a real
		** consideration while debugging.
		*/
		if ( yydebug )
		{
			register int yy_i;

			printf( "State %d, token ", yy_state );
			if ( yychar == 0 )
				printf( "end-of-file\n" );
			else if ( yychar < 0 )
				printf( "-none-\n" );
			else
			{
				for ( yy_i = 0; yytoks[yy_i].t_val >= 0;
					yy_i++ )
				{
					if ( yytoks[yy_i].t_val == yychar )
						break;
				}
				printf( "%s\n", yytoks[yy_i].t_name );
			}
		}
#endif /* YYDEBUG */
		if ( ++yy_ps >= &yys[ yymaxdepth ] )	/* room on stack? */
		{
			/*
			** reallocate and recover.  Note that pointers
			** have to be reset, or bad things will happen
			*/
			int yyps_index = (yy_ps - yys);
			int yypv_index = (yy_pv - yyv);
			int yypvt_index = (yypvt - yyv);
			int yynewmax;
#ifdef YYEXPAND
			yynewmax = YYEXPAND(yymaxdepth);
#else
			yynewmax = 2 * yymaxdepth;	/* double table size */
			if (yymaxdepth == YYMAXDEPTH)	/* first time growth */
			{
				char *newyys = (char *)YYNEW(int);
				char *newyyv = (char *)YYNEW(YYSTYPE);
				if (newyys != 0 && newyyv != 0)
				{
					yys = YYCOPY(newyys, yys, int);
					yyv = YYCOPY(newyyv, yyv, YYSTYPE);
				}
				else
					yynewmax = 0;	/* failed */
			}
			else				/* not first time */
			{
				yys = YYENLARGE(yys, int);
				yyv = YYENLARGE(yyv, YYSTYPE);
				if (yys == 0 || yyv == 0)
					yynewmax = 0;	/* failed */
			}
#endif
			if (yynewmax <= yymaxdepth)	/* tables not expanded */
			{
				yyerror( "yacc stack overflow" );
				YYABORT;
			}
			yymaxdepth = yynewmax;

			yy_ps = yys + yyps_index;
			yy_pv = yyv + yypv_index;
			yypvt = yyv + yypvt_index;
		}
		*yy_ps = yy_state;
		*++yy_pv = yyval;

		/*
		** we have a new state - find out what to do
		*/
	yy_newstate:
		if ( ( yy_n = yypact[ yy_state ] ) <= YYFLAG )
			goto yydefault;		/* simple state */
#if YYDEBUG
		/*
		** if debugging, need to mark whether new token grabbed
		*/
		yytmp = yychar < 0;
#endif
		if ( ( yychar < 0 ) && ( ( yychar = YYLEX() ) < 0 ) )
			yychar = 0;		/* reached EOF */
#if YYDEBUG
		if ( yydebug && yytmp )
		{
			register int yy_i;

			printf( "Received token " );
			if ( yychar == 0 )
				printf( "end-of-file\n" );
			else if ( yychar < 0 )
				printf( "-none-\n" );
			else
			{
				for ( yy_i = 0; yytoks[yy_i].t_val >= 0;
					yy_i++ )
				{
					if ( yytoks[yy_i].t_val == yychar )
						break;
				}
				printf( "%s\n", yytoks[yy_i].t_name );
			}
		}
#endif /* YYDEBUG */
		if ( ( ( yy_n += yychar ) < 0 ) || ( yy_n >= YYLAST ) )
			goto yydefault;
		if ( yychk[ yy_n = yyact[ yy_n ] ] == yychar )	/*valid shift*/
		{
			yychar = -1;
			yyval = yylval;
			yy_state = yy_n;
			if ( yyerrflag > 0 )
				yyerrflag--;
			goto yy_stack;
		}

	yydefault:
		if ( ( yy_n = yydef[ yy_state ] ) == -2 )
		{
#if YYDEBUG
			yytmp = yychar < 0;
#endif
			if ( ( yychar < 0 ) && ( ( yychar = YYLEX() ) < 0 ) )
				yychar = 0;		/* reached EOF */
#if YYDEBUG
			if ( yydebug && yytmp )
			{
				register int yy_i;

				printf( "Received token " );
				if ( yychar == 0 )
					printf( "end-of-file\n" );
				else if ( yychar < 0 )
					printf( "-none-\n" );
				else
				{
					for ( yy_i = 0;
						yytoks[yy_i].t_val >= 0;
						yy_i++ )
					{
						if ( yytoks[yy_i].t_val
							== yychar )
						{
							break;
						}
					}
					printf( "%s\n", yytoks[yy_i].t_name );
				}
			}
#endif /* YYDEBUG */
			/*
			** look through exception table
			*/
			{
				register int *yyxi = yyexca;

				while ( ( *yyxi != -1 ) ||
					( yyxi[1] != yy_state ) )
				{
					yyxi += 2;
				}
				while ( ( *(yyxi += 2) >= 0 ) &&
					( *yyxi != yychar ) )
					;
				if ( ( yy_n = yyxi[1] ) < 0 )
					YYACCEPT;
			}
		}

		/*
		** check for syntax error
		*/
		if ( yy_n == 0 )	/* have an error */
		{
			/* no worry about speed here! */
			switch ( yyerrflag )
			{
			case 0:		/* new error */
				yyerror( "syntax error" );
				goto skip_init;
			yyerrlab:
				/*
				** get globals into registers.
				** we have a user generated syntax type error
				*/
				yy_pv = yypv;
				yy_ps = yyps;
				yy_state = yystate;
			skip_init:
				yynerrs++;
				/* FALLTHRU */
			case 1:
			case 2:		/* incompletely recovered error */
					/* try again... */
				yyerrflag = 3;
				/*
				** find state where "error" is a legal
				** shift action
				*/
				while ( yy_ps >= yys )
				{
					yy_n = yypact[ *yy_ps ] + YYERRCODE;
					if ( yy_n >= 0 && yy_n < YYLAST &&
						yychk[yyact[yy_n]] == YYERRCODE)					{
						/*
						** simulate shift of "error"
						*/
						yy_state = yyact[ yy_n ];
						goto yy_stack;
					}
					/*
					** current state has no shift on
					** "error", pop stack
					*/
#if YYDEBUG
#	define _POP_ "Error recovery pops state %d, uncovers state %d\n"
					if ( yydebug )
						printf( _POP_, *yy_ps,
							yy_ps[-1] );
#	undef _POP_
#endif
					yy_ps--;
					yy_pv--;
				}
				/*
				** there is no state on stack with "error" as
				** a valid shift.  give up.
				*/
				YYABORT;
			case 3:		/* no shift yet; eat a token */
#if YYDEBUG
				/*
				** if debugging, look up token in list of
				** pairs.  0 and negative shouldn't occur,
				** but since timing doesn't matter when
				** debugging, it doesn't hurt to leave the
				** tests here.
				*/
				if ( yydebug )
				{
					register int yy_i;

					printf( "Error recovery discards " );
					if ( yychar == 0 )
						printf( "token end-of-file\n" );
					else if ( yychar < 0 )
						printf( "token -none-\n" );
					else
					{
						for ( yy_i = 0;
							yytoks[yy_i].t_val >= 0;
							yy_i++ )
						{
							if ( yytoks[yy_i].t_val
								== yychar )
							{
								break;
							}
						}
						printf( "token %s\n",
							yytoks[yy_i].t_name );
					}
				}
#endif /* YYDEBUG */
				if ( yychar == 0 )	/* reached EOF. quit */
					YYABORT;
				yychar = -1;
				goto yy_newstate;
			}
		}/* end if ( yy_n == 0 ) */
		/*
		** reduction by production yy_n
		** put stack tops, etc. so things right after switch
		*/
#if YYDEBUG
		/*
		** if debugging, print the string that is the user's
		** specification of the reduction which is just about
		** to be done.
		*/
		if ( yydebug )
			printf( "Reduce by (%d) \"%s\"\n",
				yy_n, yyreds[ yy_n ] );
#endif
		yytmp = yy_n;			/* value to switch over */
		yypvt = yy_pv;			/* $vars top of value stack */
		/*
		** Look in goto table for next state
		** Sorry about using yy_state here as temporary
		** register variable, but why not, if it works...
		** If yyr2[ yy_n ] doesn't have the low order bit
		** set, then there is no action to be done for
		** this reduction.  So, no saving & unsaving of
		** registers done.  The only difference between the
		** code just after the if and the body of the if is
		** the goto yy_stack in the body.  This way the test
		** can be made before the choice of what to do is needed.
		*/
		{
			/* length of production doubled with extra bit */
			register int yy_len = yyr2[ yy_n ];

			if ( !( yy_len & 01 ) )
			{
				yy_len >>= 1;
				yyval = ( yy_pv -= yy_len )[1];	/* $$ = $1 */
				yy_state = yypgo[ yy_n = yyr1[ yy_n ] ] +
					*( yy_ps -= yy_len ) + 1;
				if ( yy_state >= YYLAST ||
					yychk[ yy_state =
					yyact[ yy_state ] ] != -yy_n )
				{
					yy_state = yyact[ yypgo[ yy_n ] ];
				}
				goto yy_stack;
			}
			yy_len >>= 1;
			yyval = ( yy_pv -= yy_len )[1];	/* $$ = $1 */
			yy_state = yypgo[ yy_n = yyr1[ yy_n ] ] +
				*( yy_ps -= yy_len ) + 1;
			if ( yy_state >= YYLAST ||
				yychk[ yy_state = yyact[ yy_state ] ] != -yy_n )
			{
				yy_state = yyact[ yypgo[ yy_n ] ];
			}
		}
					/* save until reenter driver code */
		yystate = yy_state;
		yyps = yy_ps;
		yypv = yy_pv;
	}
	/*
	** code supplied by user is placed in this switch
	*/
	switch( yytmp )
	{
		
case 1:
# line 53 "parser.y"
{ yybegin(); bform = NewFormclass(); yyparsedform = NULL; } break;
case 2:
# line 55 "parser.y"
{ yyparsedform = bform; } break;
case 3:
# line 56 "parser.y"
{ FreeFormclass(bform); } break;
case 6:
# line 62 "parser.y"
{ strdupinto(&bform->formname, yypvt[-1].s); } break;
case 10:
# line 68 "parser.y"
{ bf = NewField(bform); } break;
case 14:
# line 74 "parser.y"
{ strdupinto(&bf->name, yypvt[-1].s); } break;
case 15:
# line 75 "parser.y"
{ bf->row = yypvt[-1].i; } break;
case 16:
# line 76 "parser.y"
{ bf->col = yypvt[-1].i; } break;
case 17:
# line 77 "parser.y"
{ strdupinto(&bf->up, yypvt[-1].s); } break;
case 18:
# line 78 "parser.y"
{ strdupinto(&bf->down, yypvt[-1].s); } break;
case 19:
# line 79 "parser.y"
{ strdupinto(&bf->left, yypvt[-1].s); } break;
case 20:
# line 80 "parser.y"
{ strdupinto(&bf->right, yypvt[-1].s); } break;
case 21:
# line 81 "parser.y"
{ strdupinto(&bf->lockedif, yypvt[-1].s); } break;
case 22:
# line 82 "parser.y"
{ strdupinto(&bf->hiddenif, yypvt[-1].s); } break;
case 24:
# line 84 "parser.y"
{ putinto(&bf->screen, yypvt[-1].il); } break;
case 26:
# line 88 "parser.y"
{ yyval.il = intlistconcat(yypvt[-2].il, yypvt[-0].i); } break;
case 27:
# line 89 "parser.y"
{ yyval.il = intlistconcat(NULL, yypvt[-0].i); } break;
case 28:
# line 92 "parser.y"
{ SetTextAttributes(bf, yypvt[-0].s); } break;
case 29:
# line 95 "parser.y"
{ MakeFieldDetail(bf, INPUT); } break;
case 31:
# line 97 "parser.y"
{ MakeFieldDetail(bf, DISPLAY); } break;
case 35:
# line 103 "parser.y"
{ bf->detail->inputptr->distance = yypvt[-1].i; } break;
case 36:
# line 104 "parser.y"
{ strdupinto(&bf->detail->inputptr->prompt, yypvt[-1].s); } break;
case 39:
# line 110 "parser.y"
{ MakeField(bf, TEXTINPUT); } break;
case 41:
# line 112 "parser.y"
{ MakeField(bf, NUMERICINPUT); } break;
case 43:
# line 114 "parser.y"
{ MakeField(bf, BOOLEANINPUT); } break;
case 45:
# line 116 "parser.y"
{ MakeField(bf, SELECTIONINPUT); } break;
case 49:
# line 123 "parser.y"
{ SetDefaultValue(bform, bf, yypvt[-1].s); } break;
case 50:
# line 124 "parser.y"
{ bf->detail->inputptr->inputsource->text->length = yypvt[-1].i; } break;
case 51:
# line 125 "parser.y"
{ bf->detail->inputptr->inputsource->text->numlines = yypvt[-1].i; } break;
case 52:
# line 126 "parser.y"
{ bf->detail->inputptr->inputsource->text->wrap = WrapNone; } break;
case 53:
# line 127 "parser.y"
{ bf->detail->inputptr->inputsource->text->wrap = WrapChar; } break;
case 54:
# line 128 "parser.y"
{ bf->detail->inputptr->inputsource->text->wrap = WrapWord; } break;
case 55:
# line 129 "parser.y"
{ strdupinto(&bf->detail->inputptr->inputsource->text->calculate, yypvt[-1].s); } break;
case 59:
# line 136 "parser.y"
{ SetDefaultValue(bform, bf, yypvt[-1].s); } break;
case 60:
# line 137 "parser.y"
{ strdupinto(&bf->detail->inputptr->inputsource->numeric->calculate, yypvt[-1].s); } break;
case 64:
# line 144 "parser.y"
{ SetDefaultValue(bform, bf, yypvt[-1].s); } break;
case 65:
# line 145 "parser.y"
{ strdupinto(&bf->detail->inputptr->inputsource->boolean->calculate, yypvt[-1].s); } break;
case 69:
# line 152 "parser.y"
{ SetDefaultValue(bform, bf, yypvt[-1].s); } break;
case 70:
# line 153 "parser.y"
{ bf->detail->inputptr->inputsource->selection->type = EXCLUSIVE; } break;
case 71:
# line 154 "parser.y"
{ bf->detail->inputptr->inputsource->selection->type = NONEXCLUSIVE; } break;
case 72:
# line 155 "parser.y"
{ putinto(&bf->detail->inputptr->inputsource->selection->choices, yypvt[-1].sl); } break;
case 73:
# line 156 "parser.y"
{ bf->detail->inputptr->inputsource->selection->columns = yypvt[-1].i; } break;
case 74:
# line 157 "parser.y"
{ strdupinto(&bf->detail->inputptr->inputsource->selection->calculate, yypvt[-1].s); } break;
case 76:
# line 161 "parser.y"
{ yyval.sl = stringlistconcat(yypvt[-2].sl, yypvt[-0].s); } break;
case 77:
# line 162 "parser.y"
{ yyval.sl = stringlistconcat(NULL, yypvt[-0].s); } break;
case 78:
# line 165 "parser.y"
{ MakeField(bf, BOXDISPLAY); } break;
case 80:
# line 167 "parser.y"
{ MakeField(bf, LINEDISPLAY); } break;
case 82:
# line 169 "parser.y"
{ MakeField(bf, TEXTDISPLAY); } break;
case 86:
# line 176 "parser.y"
{ bf->detail->displayptr->display->box->height = yypvt[-1].i; } break;
case 87:
# line 177 "parser.y"
{ bf->detail->displayptr->display->box->width = yypvt[-1].i; } break;
case 91:
# line 184 "parser.y"
{ bf->detail->displayptr->display->line->length = yypvt[-1].i; } break;
case 92:
# line 185 "parser.y"
{ bf->detail->displayptr->display->line->direction = yypvt[-1].i; } break;
case 96:
# line 192 "parser.y"
{ strdupinto(&bf->detail->displayptr->display->text->data, yypvt[-1].s); } break;
case 100:
# line 199 "parser.y"
{ bn = NewNode(bform); } break;
case 101:
# line 200 "parser.y"
{ bn->nodenumber = yypvt[-1].i; } break;
case 106:
# line 207 "parser.y"
{ strdupinto(&bn->statusstring, yypvt[-1].s); } break;
case 108:
# line 209 "parser.y"
{ bn->terminal = yypvt[-1].i; } break;
case 109:
# line 210 "parser.y"
{ strdupinto(&bn->defaultqueue, yypvt[-1].s); } break;
case 110:
# line 211 "parser.y"
{ bn->notify = yypvt[-1].i; } break;
case 116:
# line 220 "parser.y"
{ NewAction(bn, strdup(yypvt[-3].s), yypvt[-1].i); } break;
case 118:
# line 224 "parser.y"
{ yyval.s = yylexany(); } break;
	}
	goto yystack;		/* reset registers in driver code */
}

