5.002 beta 1
[p5sagit/p5-mst-13.2.git] / perly.c
diff --git a/perly.c b/perly.c
index d2119ac..2c1f7fe 100644 (file)
--- a/perly.c
+++ b/perly.c
-char rcsid[] = "$Header: perly.c,v 1.0.1.3 88/01/28 10:28:31 root Exp $";
-/*
- * $Log:       perly.c,v $
- * Revision 1.0.1.3  88/01/28  10:28:31  root
- * patch8: added eval operator.  Also fixed expectterm following right curly.
- * 
- * Revision 1.0.1.2  88/01/24  00:06:03  root
- * patch 2: s/(abc)/\1/ grandfathering didn't work right.
- * 
- * Revision 1.0.1.1  88/01/21  21:25:57  root
- * Now uses CPP and CPPMINUS symbols from config.h.
- * 
- * Revision 1.0  87/12/18  15:53:31  root
- * Initial revision
- * 
- */
-
-bool preprocess = FALSE;
-bool assume_n = FALSE;
-bool assume_p = FALSE;
-bool doswitches = FALSE;
-bool allstabs = FALSE;         /* init all customary symbols in symbol table?*/
-char *filename;
-char *e_tmpname = "/tmp/perl-eXXXXXX";
-FILE *e_fp = Nullfp;
-ARG *l();
+#ifndef lint
+static char yysccsid[] = "@(#)yaccpar 1.8 (Berkeley) 01/20/91";
+#endif
+#define YYBYACC 1
+#line 16 "perly.y"
+#include "EXTERN.h"
+#include "perl.h"
 
-main(argc,argv,env)
-register int argc;
-register char **argv;
-register char **env;
+static void
+dep()
 {
-    register STR *str;
-    register char *s;
-    char *index();
+    deprecate("\"do\" to call subroutines");
+}
 
-    linestr = str_new(80);
-    str = str_make("-I/usr/lib/perl ");        /* first used for -I flags */
-    for (argc--,argv++; argc; argc--,argv++) {
-       if (argv[0][0] != '-' || !argv[0][1])
-           break;
-      reswitch:
-       switch (argv[0][1]) {
-#ifdef DEBUGGING
-       case 'D':
-           debug = atoi(argv[0]+2);
-#ifdef YYDEBUG
-           yydebug = (debug & 1);
+#define YYERRCODE 256
+short yylhs[] = {                                        -1,
+   31,    0,    5,    3,    6,    6,    6,    7,    7,    7,
+    7,   21,   21,   21,   21,   21,   21,   11,   11,   11,
+    9,    9,    9,    9,   30,   30,    8,    8,    8,    8,
+    8,    8,    8,    8,   10,   10,   25,   25,   29,   29,
+    1,    1,    1,    1,    2,    2,   32,   32,   28,   28,
+    4,   33,   33,   34,   13,   13,   13,   13,   12,   12,
+   12,   26,   26,   26,   26,   26,   26,   26,   26,   27,
+   27,   14,   14,   14,   14,   14,   14,   14,   14,   14,
+   14,   14,   14,   14,   14,   14,   14,   14,   14,   14,
+   14,   14,   14,   14,   14,   14,   14,   14,   14,   14,
+   14,   14,   14,   14,   14,   14,   14,   14,   14,   14,
+   14,   14,   14,   14,   14,   14,   14,   14,   14,   14,
+   14,   14,   14,   14,   14,   14,   14,   14,   14,   14,
+   14,   14,   14,   14,   14,   14,   14,   14,   14,   14,
+   14,   14,   14,   22,   22,   23,   23,   23,   20,   15,
+   16,   17,   18,   19,   24,   24,   24,   24,
+};
+short yylen[] = {                                         2,
+    0,    2,    4,    0,    0,    2,    2,    2,    1,    2,
+    3,    1,    1,    3,    3,    3,    3,    0,    2,    6,
+    6,    6,    4,    4,    0,    2,    7,    7,    5,    5,
+    8,    7,   10,    3,    0,    1,    0,    1,    0,    1,
+    1,    1,    1,    1,    4,    3,    5,    5,    0,    1,
+    0,    3,    2,    4,    3,    3,    2,    1,    2,    3,
+    1,    3,    5,    6,    3,    5,    2,    4,    4,    1,
+    1,    3,    3,    3,    3,    3,    3,    3,    3,    3,
+    3,    3,    3,    5,    3,    2,    2,    2,    2,    2,
+    2,    2,    2,    2,    2,    3,    2,    3,    2,    4,
+    3,    4,    1,    1,    4,    5,    4,    1,    1,    1,
+    5,    6,    5,    6,    5,    4,    5,    1,    1,    3,
+    4,    3,    2,    2,    4,    5,    4,    5,    1,    2,
+    1,    2,    2,    2,    1,    3,    1,    3,    4,    4,
+    6,    1,    1,    0,    1,    0,    1,    2,    2,    2,
+    2,    2,    2,    2,    1,    1,    1,    1,
+};
+short yydefred[] = {                                      1,
+    0,    5,    0,   40,   51,   51,    0,    0,    6,   41,
+    7,    9,    0,   42,   43,   44,    0,    0,    0,   53,
+    0,   12,    4,  142,    0,    0,  118,    0,  137,    0,
+   51,   51,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,   10,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    8,    0,    0,    0,    0,
+    0,  108,  110,  104,    0,    0,  143,    0,   46,    0,
+   52,    0,    0,    5,  155,  158,  157,  156,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,  153,    0,
+  124,    0,    0,    0,    0,    0,    0,   57,    0,    0,
+   67,    0,  132,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,   99,    0,  149,  150,  151,  152,  154,
+    0,   34,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,   91,   92,    0,    0,    0,    0,
+    0,    0,    0,   11,   45,   50,    0,   54,    0,   65,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,   36,    0,  136,  138,    0,
+    0,    0,    0,    0,    0,  101,    0,  122,    0,    0,
+    0,   98,   26,    0,    0,    0,    0,    0,    0,   55,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,   70,    0,   71,    0,
+    0,    0,    0,    0,    0,  120,    0,   48,   47,    3,
+    0,  140,    0,   69,  102,    0,   29,    0,   30,    0,
+    0,    0,   23,    0,   24,    0,    0,    0,  139,  148,
+   68,    0,  125,    0,  127,    0,  100,    0,    0,    0,
+    0,    0,    0,    0,  107,    0,  105,    0,  116,  121,
+   66,    0,    0,    0,    0,   19,    0,    0,    0,    0,
+    0,   63,  126,  128,  115,    0,  113,    0,    0,  106,
+    0,  111,  117,  141,   27,   28,   21,    0,   22,    0,
+   32,    0,  114,  112,   64,    0,    0,   31,    0,    0,
+   20,   33,
+};
+short yydgoto[] = {                                       1,
+    9,   10,   84,   17,   87,    3,   11,   12,   66,  194,
+  263,   67,  201,   69,   70,   71,   72,   73,   74,   75,
+  196,   83,  202,   89,  186,   77,  240,  177,   13,  142,
+    2,   14,   15,   16,
+};
+short yysindex[] = {                                      0,
+    0,    0,  -82,    0,    0,    0,  -54, -205,    0,    0,
+    0,    0,  592,    0,    0,    0, -110, -186,   25,    0,
+ 2094,    0,    0,    0,  -35,  -35,    0,   46,    0, 2094,
+    0,    0,  -12,   -9,    1,    6,   36, 2094,   51,   68,
+   76,  -35, 1800, 2094,  979, -140, 1860, 1042, 1975, 2094,
+ 2094, 2094, 2094, 2094, 1276,    0, 2094, 2094, 1332,  -35,
+  -35,  -35,  -35,  -35, -151,    0,   86,  303, 1106,  -65,
+  -59,    0,    0,    0,   92,   80,    0,   10,    0, -120,
+    0,   86,   85,    0,    0,    0,    0,    0, 2094,  105,
+ 2094, 1106,   10, -120, 1860,   10, 1860,   10, 1860,   10,
+ 1860,   10, 1391,  109, 1106,  111, 1451,  923,    0,  110,
+    0, 1357,  -25, 1357,   28,  -42, 2094,    0,    0,  -65,
+    0, 2094,    0, 1357,  788,  788,  788,  -83,  -83,   64,
+  -32,  788,  788,    0,  -90,    0,    0,    0,    0,    0,
+   10,    0, 2094, 1860, 1860, 1860, 1860, 1860, 1860, 1860,
+ 2094, 2094, 2094, 2094, 2094, 2094, 2094, 2094, 2094, 2094,
+ 2094, 2094, 2094, 2094,    0,    0,  -30, 1860, 1860, 1860,
+ 1860, 1860, 1566,    0,    0,    0,  -41,    0,  -91,    0,
+ 1860, 2862, 2094,   10, -256,  113, -151,  -29, -151,    2,
+ -157,    4, -157,   98,  -39,    0, 1860,    0,    0,   16,
+   77,  126, 1860, 1685, 1741,    0,   47,    0,   86, 1860,
+   82,    0,    0, 1106, -256, -256, -256, -256, -117,    0,
+  115,  754, 1357,  381,  888,  467, 1106, 1164,  807, 1893,
+ 2031, 1239,  739,  788,  788, 1860,    0, 1860,    0,  141,
+  -79,  142,  -77,  149,  133,    0,   21,    0,    0,    0,
+  150,    0, 2094,    0,    0,   10,    0,   10,    0,   10,
+   10,  143,    0,   10,    0, 1860,   10,   49,    0,    0,
+    0,   58,    0,   60,    0,   72,    0,  164, 1860,   69,
+ 2094,  161,  219, 1860,    0,   70,    0,   71,    0,    0,
+    0,  359, -151, -151, -157,    0, 1860, -157,  138, -151,
+   10,    0,    0,    0,    0,  236,    0, 3114,   73,    0,
+  158,    0,    0,    0,    0,    0,    0,   74,    0, 1391,
+    0, -151,    0,    0,    0,   10,  159,    0, -157,   10,
+    0,    0,
+};
+short yyrindex[] = {                                      0,
+    0,    0,  123,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+  147,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0, 2287, 2133,    0,
+    0,    0,    0,    0,    0,    0,    0, 2773, 2817,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,   11,    0,  332,   14, 1236, 2908,
+ 3038,    0,    0,    0, 2184,    0,    0,    0,    0,  -17,
+    0, 2331,    0,    0,    0,    0,    0,    0, 2460,    0,
+    0, 1645,    0,   79,  168,    0,    0,    0,    0,    0,
+    0,    0,  152,    0, 1914,    0,    0,  172,    0, 2239,
+    0, 3740, 2908, 3784,    0,    0, 2460,    0,  448,  524,
+    0,    0,    0, 3830, 3207, 3303, 3345, 3083, 3170, 2552,
+    0, 3390, 3455,    0,    0,    0,    0,    0,    0,    0,
+    0,    0, 2596,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,  867,    0,
+  172,    0, 2460,    0,   19,    0,   11,    0,   11,    0,
+   67,    0,   67,    0,  160,    0,    0,    0,    0,    0,
+  180,    0,    0,    0,    0,    0,    0,    0, 2646,    0,
+ 2722,    0,    0, 2282,   22,   33,   38,   84,  349,    0,
+    0,  -34, 3872, 3904,  166, 3610, 2422,    0,  496, 4003,
+ 3959, 3914, 3652, 3492, 3565,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,  173,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,  172,    0,    0,    0,    0,    0,    0,
+    0,    0,   11,   11,   67,    0,    0,   67,    0,   11,
+    0,    0,    0,    0,    0,    0,    0,  404,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,  182,
+    0,   11,    0,    0,    0,    0,    0,    0,   67,    0,
+    0,    0,
+};
+short yygindex[] = {                                      0,
+    0,    0,    0,   63,  -13,  153,    0,    0,    0,  -89,
+ -160,   29,  376, 4192,  890,    0,    0,    0,    0,    0,
+  229,  -21, -162,  880,  -22,    0,    0,  156,    0, -152,
+    0,    0,    0,    0,
+};
+#define YYTABLESIZE 4473
+short yytable[] = {                                      65,
+   61,  267,  212,   79,   20,   61,   81,  168,  211,   81,
+   25,  258,   23,  285,  205,  287,  207,  248,  251,   96,
+   98,  100,  102,   81,   81,  170,  121,   95,   81,  111,
+   97,  172,  265,  250,  257,  123,  259,  148,  149,  150,
+   99,   49,  260,   25,  264,  101,   25,   25,   25,   82,
+   25,   21,   25,   25,   13,   25,  269,  169,   81,   38,
+  238,  290,   16,  171,  175,  170,   18,  180,   18,   25,
+   80,   61,   13,   17,   25,  103,   82,   38,   14,  183,
+   16,   23,  187,   81,  189,   91,  191,   23,  193,  301,
+  106,   17,  236,   93,   94,  208,   14,  169,  302,   18,
+  303,   25,   18,   18,   18,   49,   18,  107,   18,   18,
+   23,   18,  304,   23,  326,  108,  117,   82,  261,  262,
+  270,  311,    2,   23,   15,   18,  141,  213,   23,  143,
+   18,  173,   23,   25,  317,   25,   25,  319,  174,  176,
+  315,  316,   15,  178,  181,   82,   78,  321,  197,  204,
+  209,  198,  206,  256,  210,   39,  266,   18,   39,   39,
+   39,  254,   39,  249,   39,   39,  271,   39,  331,  328,
+  255,  277,  279,  280,    4,    5,    6,  149,    7,    8,
+  284,   39,  297,    4,    5,    6,   39,    7,    8,   18,
+  291,   18,   18,  307,  312,  313,  320,  324,  325,  330,
+  286,   49,   19,  148,  149,  144,   74,  288,   37,   74,
+   35,   82,  146,   39,  148,  149,  148,  149,   13,  309,
+  147,   85,   35,   74,   74,  289,   86,  237,   74,  167,
+  327,   37,  144,  145,  146,  147,  179,   81,   81,   81,
+   81,   76,  293,  299,  294,   39,  295,  296,   39,  184,
+  298,  148,  149,  300,  148,  149,  305,    0,   74,   81,
+   81,  148,  149,   81,  148,  149,   25,   25,   25,   25,
+   25,   25,    0,   25,   25,   25,   25,   25,   25,   25,
+   25,   25,   25,   25,   25,   25,    0,  322,    0,   25,
+   25,    0,   25,   25,   25,  148,  149,  148,  149,   25,
+   25,   25,   25,   25,    0,    0,   25,   25,    0,  148,
+  149,  310,  329,   25,  148,  149,  332,   25,    0,   25,
+   25,    0,   18,   18,   18,   18,   18,   18,  323,   18,
+   18,   18,   18,   18,   18,   18,   18,   18,   18,   18,
+   18,   18,  148,  149,    0,   18,   18,    0,   18,   18,
+   18,  148,  149,  148,  149,   18,   18,   18,   18,   18,
+    0,    0,   18,   18,    0,  148,  149,  148,  149,   18,
+  148,  149,   58,   18,    0,   18,   18,    0,   39,   39,
+   39,   39,   39,   39,    0,   39,   39,   39,   68,   56,
+   58,   39,   56,    0,   39,   39,   39,   39,    0,  314,
+    0,   39,   39,    0,   39,   39,   39,   56,  148,  149,
+    0,   39,   39,   39,   39,   39,    0,    0,   39,   39,
+  116,  157,  118,    0,   58,   39,  148,  149,    0,   39,
+  131,   39,   39,    0,  135,  148,  149,   74,   74,   74,
+   74,   56,  148,  149,   84,    0,   74,   84,    0,  168,
+   74,   74,   74,   74,  148,  149,    0,  148,  149,   74,
+   74,   84,   84,   74,   74,   74,   74,   74,    0,   74,
+  185,  168,  188,    0,  190,    0,  192,    0,  195,    0,
+  155,  150,  200,  155,  155,  155,    0,  155,  142,  155,
+  155,  142,  155,    0,    0,    0,   84,    0,    0,    0,
+    0,    0,    0,  150,    0,  142,  142,    0,    0,    0,
+  142,  155,  148,  149,    0,    0,    0,    0,    0,  215,
+  216,  217,  218,  219,  220,  221,    0,    0,    0,  148,
+  149,    0,    0,    0,    0,    0,   83,    0,  142,   83,
+  142,    0,    0,  241,  242,  243,  244,  245,  247,    0,
+    0,    0,    0,   83,   83,    0,  156,  168,   83,  156,
+  156,  156,    0,  156,  103,  156,  156,  103,  156,    0,
+  142,    0,  268,  155,  144,  145,  146,  147,  272,  274,
+  276,  103,  103,    0,    0,  278,  103,  156,   83,  150,
+    0,    0,    0,    0,    0,    0,  148,  149,    0,    0,
+    0,    0,    0,   58,   58,   58,   58,    0,    0,    0,
+    0,  282,    0,  283,    0,    0,  103,    0,    0,    0,
+   56,   56,   56,   56,   50,   58,   58,   61,   63,   60,
+    0,   55,    0,   64,   58,    0,   57,    0,    0,  151,
+    0,  185,   56,  152,  153,  154,  155,    0,    0,  156,
+   56,    0,    0,    0,  306,   62,  156,  158,  159,  160,
+  161,    0,  162,  163,    0,  152,  164,  154,  155,  165,
+  166,  167,  318,    0,    0,   84,   84,   84,   84,    0,
+    0,    0,   59,    0,  162,  163,    0,    0,  164,    0,
+    0,  165,  166,  167,    0,   68,    0,   84,   84,    0,
+    0,   84,    0,    0,  155,  155,  155,  155,  155,    0,
+  155,  155,  155,    0,   23,    0,  155,   51,    0,  142,
+  142,  142,  142,    0,    0,    0,    0,  155,  142,  155,
+  155,  155,  142,  142,  142,  142,  155,  155,  155,  155,
+  155,  142,  142,  155,  155,  142,  142,  142,  142,  142,
+  155,  142,  142,  154,  155,  142,  155,  155,  142,  142,
+  142,    0,    0,    0,    0,    0,    0,   83,   83,   83,
+   83,  163,    0,    0,  164,    0,   83,  165,  166,  167,
+  156,  156,  156,  156,  156,    0,  156,  156,  156,   83,
+   83,    0,  156,   83,   83,  103,  103,  103,  103,    0,
+    0,    0,    0,  156,  103,  156,  156,  156,  103,  103,
+  103,  103,  156,  156,  156,  156,  156,  103,  103,  156,
+  156,  103,  103,  103,  103,  103,  156,  103,  103,  168,
+  156,  103,  156,  156,  103,  103,  103,    0,    0,    0,
+    0,    0,    0,    0,  168,    0,    0,   22,   24,   25,
+   26,   27,   28,    0,   29,   30,   31,    0,    0,    0,
+   32,  150,    0,   33,   34,   35,   36,    0,    0,    0,
+   37,   38,    0,   39,   40,   41,  150,    0,  168,    0,
+   42,   43,   44,   45,   46,    0,    0,   47,   48,    0,
+    0,    0,    0,    0,   49,    0,    0,  168,   52,   39,
+   53,   54,   39,   39,   39,   90,   39,    0,   39,   39,
+  150,   39,    0,    0,   88,   88,    0,    0,    0,    0,
+    0,  109,    0,    0,    0,   39,  104,  122,    0,  150,
+   39,   88,  113,    0,    0,    0,    0,  120,    0,  136,
+  137,  138,  139,  140,    0,    0,    0,    0,    0,   88,
+   88,   88,   88,   88,    0,   50,    0,   39,   61,   63,
+   60,    0,   55,    0,   64,   58,    0,   57,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,  168,    0,
+    0,    0,    0,    0,    0,    0,   62,  203,    0,   39,
+    0,    0,   39,    0,    0,    0,    0,  120,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+  150,   50,    0,   59,   61,   63,   60,    0,   55,    0,
+   64,   58,    0,   57,    0,  154,  155,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,  115,  152,  153,
+  154,  155,   62,  163,    0,   23,  164,    0,   51,  165,
+  166,  167,  158,  159,  160,  161,  239,  162,  163,    0,
+    0,  164,    0,    0,  165,  166,  167,    0,    0,   59,
+    0,    0,    0,    0,   50,    0,    0,   61,   63,   60,
+    0,   55,    0,   64,   58,    0,   57,    0,    0,    0,
+    0,  152,  153,  154,  155,  164,    0,    0,  165,  166,
+  167,    0,    0,    0,   51,   62,  159,  160,  161,    0,
+  162,  163,    0,    0,  164,    0,    0,  165,  166,  167,
+    0,    0,   39,   39,   39,   39,   39,   39,    0,   39,
+   39,   39,   59,    0,    0,   39,    0,    0,   39,   39,
+   39,   39,    0,    0,    0,   39,   39,    0,   39,   39,
+   39,    0,    0,    0,    0,   39,   39,   39,   39,   39,
+    0,    0,   39,   39,   23,    0,    0,   51,  157,   39,
+    0,    0,    0,   39,    0,   39,   39,    0,    0,  119,
+   25,   26,   27,   28,   86,   29,   30,   31,    0,    0,
+    0,   32,  163,    0,    0,  164,  168,    0,  165,  166,
+  167,    0,   38,    0,   39,   40,   41,    0,    0,    0,
+    0,   42,   43,   44,   45,   46,    0,    0,   47,   48,
+    0,  281,    0,    0,    0,   49,  157,    0,  150,   52,
+    0,   53,   54,    0,    0,   24,   25,   26,   27,   28,
+    0,   29,   30,   31,    0,    0,    0,   32,    0,    0,
+    0,    0,    0,    0,  168,    0,    0,    0,   38,    0,
+   39,   40,   41,    0,    0,    0,    0,   42,   43,   44,
+   45,   46,    0,    0,   47,   48,   61,    0,    0,   61,
+    0,   49,    0,    0,    0,   52,  150,   53,   54,    0,
+    0,    0,    0,   61,   61,    0,    0,    0,  119,   25,
+   26,   27,   28,   86,   29,   30,   31,    0,   50,    0,
+   32,   61,   63,   60,    0,   55,  130,   64,   58,    0,
+   57,   38,    0,   39,   40,   41,    0,    0,   61,  168,
+   42,   43,   44,   45,   46,    0,    0,    0,   48,   62,
+    0,    0,    0,    0,   49,    0,    0,    0,   52,    0,
+   53,   54,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,  150,    0,    0,   50,    0,   59,   61,   63,   60,
+    0,   55,    0,   64,   58,    0,   57,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,  151,    0,    0,    0,
+  152,  153,  154,  155,    0,   62,    0,    0,    0,    0,
+    0,   51,    0,  156,  158,  159,  160,  161,    0,  162,
+  163,    0,    0,  164,    0,    0,  165,  166,  167,    0,
+    0,    0,   59,   50,  134,    0,   61,   63,   60,    0,
+   55,    0,   64,   58,    0,   57,    0,    0,    0,    0,
+    0,    0,    0,    0,  151,    0,    0,  168,  152,  153,
+  154,  155,    0,    0,   62,    0,    0,   51,    0,    0,
+    0,  156,  158,  159,  160,  161,    0,  162,  163,    0,
+    0,  164,    0,    0,  165,  166,  167,    0,    0,  150,
+    0,   59,    0,   50,    0,    0,   61,   63,   60,    0,
+   55,  199,   64,   58,    0,   57,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,   61,   61,   61,
+   61,    0,    0,    0,   62,    0,   51,    0,    0,    0,
+    0,    0,    0,  152,  153,  154,  155,    0,    0,   61,
+   61,    0,   24,   25,   26,   27,   28,    0,   29,   30,
+   31,   59,  162,  163,   32,    0,  164,    0,    0,  165,
+  166,  167,    0,    0,    0,   38,    0,   39,   40,   41,
+    0,    0,    0,    0,   42,   43,   44,   45,   46,    0,
+    0,   47,   48,    0,    0,    0,   51,    0,   49,    0,
+    0,    0,   52,    0,   53,   54,    0,    0,   24,   25,
+   26,   27,   28,    0,   29,   30,   31,    0,   50,    0,
+   32,   61,   63,   60,    0,   55,  246,   64,   58,    0,
+   57,   38,    0,   39,   40,   41,    0,    0,    0,    0,
+   42,   43,   44,   45,   46,    0,    0,   47,   48,   62,
+    0,    0,    0,    0,   49,    0,    0,    0,   52,    0,
+   53,   54,    0,  154,  155,    0,   22,   24,   25,   26,
+   27,   28,    0,   29,   30,   31,   59,    0,    0,   32,
+  162,  163,    0,    0,  164,    0,    0,  165,  166,  167,
+   38,    0,   39,   40,   41,    0,    0,    0,    0,   42,
+   43,   44,   45,   46,    0,  134,   47,   48,  134,    0,
+    0,   51,    0,   49,    0,    0,    0,   52,    0,   53,
+   54,    0,  134,  134,    0,    0,    0,   24,   25,   26,
+   27,   28,    0,   29,   30,   31,    0,   50,    0,   32,
+   61,   63,   60,    0,   55,  273,   64,   58,    0,   57,
+   38,    0,   39,   40,   41,    0,    0,  134,    0,   42,
+   43,   44,   45,   46,    0,    0,   47,   48,   62,    0,
+    0,    0,    0,   49,    0,    0,    0,   52,    0,   53,
+   54,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,   50,    0,   59,   61,   63,   60,    0,
+   55,  275,   64,   58,    0,   57,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,   62,    0,    0,    0,    0,    0,
+   51,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,   24,   25,   26,   27,   28,    0,   29,   30,
+   31,   59,   50,    0,   32,   61,   63,   60,    0,   55,
+    0,   64,   58,    0,   57,   38,    0,   39,   40,   41,
+    0,    0,    0,    0,   42,   43,   44,   45,   46,    0,
+    0,   47,   48,   62,    0,    0,   51,    0,   49,    0,
+    0,    0,   52,    0,   53,   54,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+   59,    0,   50,    0,    0,   61,   63,   60,    0,   55,
+    0,   64,   58,    0,   57,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,  134,  134,  134,  134,
+    0,    0,   23,   62,    0,   51,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,  134,  134,
+    0,   24,   25,   26,   27,   28,    0,   29,   30,   31,
+   59,    0,    0,   32,  130,    0,    0,  130,    0,    0,
+    0,    0,    0,    0,   38,    0,   39,   40,   41,    0,
+    0,  130,  130,   42,   43,   44,   45,   46,    0,    0,
+   47,   48,    0,  168,    0,   51,    0,   49,    0,    0,
+    0,   52,    0,   53,   54,    0,    0,   24,   25,   26,
+   27,   28,    0,   29,   30,   31,  130,   50,    0,   32,
+   61,   63,   60,    0,   55,  150,   64,   58,    0,   57,
+   38,    0,   39,   40,   41,    0,    0,    0,    0,   42,
+   43,   44,   45,   46,    0,    0,   47,   48,   62,    0,
+    0,    0,    0,   49,    0,    0,    0,   52,    0,   53,
+   54,    0,    0,    0,    0,    0,  110,   25,   26,   27,
+   28,    0,   29,   30,   31,   59,    0,    0,   32,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,   38,
+    0,   39,   40,   41,    0,    0,    0,    0,   42,   43,
+   44,   45,   46,    0,    0,    0,   48,   23,    0,    0,
+   51,    0,   49,    0,    0,    0,   52,    0,   53,   54,
+    0,    0,    0,    0,    0,    0,   24,   25,   26,   27,
+   28,  168,   29,   30,   31,    0,   50,    0,   32,   61,
+   63,   60,    0,   55,    0,   64,   58,    0,   57,   38,
+    0,   39,   40,   41,    0,    0,    0,    0,   42,   43,
+   44,   45,   46,  150,    0,   47,   48,   62,    0,    0,
+    0,    0,   49,    0,    0,    0,   52,    0,   53,   54,
+    0,    0,    0,  135,    0,    0,  135,  152,  153,  154,
+  155,    0,    0,    0,   59,  130,  130,  130,  130,    0,
+  135,  135,    0,  160,  161,  135,  162,  163,    0,    0,
+  164,    0,    0,  165,  166,  167,    0,  130,  130,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,   51,
+    0,    0,    0,  135,  119,  135,    0,  119,    0,    0,
+    0,   24,   25,   26,   27,   28,    0,   29,   30,   31,
+    0,  119,  119,   32,    0,    0,  119,    0,    0,    0,
+    0,    0,    0,    0,   38,  135,   39,   40,   41,    0,
+    0,    0,    0,   42,   43,   44,   45,   46,    0,    0,
+    0,   48,    0,    0,  119,    0,  119,   49,    0,  142,
+    0,   52,  142,   53,   54,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,  142,  142,    0,    0,
+    0,  142,    0,    0,    0,    0,  119,    0,    0,    0,
+    0,    0,    0,    0,    0,  152,  153,  154,  155,    0,
+    0,    0,   60,    0,    0,   60,    0,  129,    0,  142,
+  129,  142,  161,    0,  162,  163,    0,    0,  164,   60,
+   60,  165,  166,  167,  129,  129,    0,    0,    0,  129,
+   24,   25,   26,   27,   28,    0,   29,   30,   31,    0,
+    0,  142,   32,    0,    0,    0,    0,    0,    0,    0,
+    0,  145,    0,   38,   60,   39,   40,   41,    0,  129,
+    0,    0,   42,   43,   44,   45,   46,    0,  145,  145,
+   48,    0,    0,  145,    0,    0,   49,    0,    0,    0,
+   52,    0,   53,   54,  135,  135,  135,  135,    0,  129,
+    0,    0,    0,  135,    0,    0,    0,  135,  135,  135,
+  135,  145,    0,  145,    0,    0,  135,  135,    0,    0,
+  135,  135,  135,  135,  135,    0,  135,  135,    0,    0,
+  135,    0,    0,  135,  135,  135,    0,    0,    0,    0,
+    0,    0,    0,  145,    0,  119,  119,  119,  119,    0,
+    0,    0,   72,    0,  119,   72,    0,    0,  119,  119,
+  119,  119,    0,    0,    0,    0,    0,  119,  119,   72,
+   72,  119,  119,  119,  119,  119,    0,  119,  119,    0,
+    0,  119,    0,    0,  119,  119,  119,    0,    0,    0,
+  144,    0,    0,  144,    0,    0,    0,    0,    0,    0,
+  142,  142,  142,  142,   72,    0,    0,  144,  144,  142,
+    0,    0,  144,  142,  142,  142,  142,    0,    0,    0,
+    0,    0,  142,  142,    0,    0,  142,  142,  142,  142,
+  142,    0,  142,  142,    0,    0,  142,    0,    0,  142,
+  142,  142,  144,   60,   60,   60,   60,    0,  129,  129,
+  129,  129,    0,    0,    0,    0,    0,  129,    0,    0,
+    0,  129,  129,  129,  129,   60,   60,    0,    0,    0,
+  129,  129,  144,    0,  129,  129,  129,  129,  129,    0,
+  129,  129,   97,    0,  129,   97,    0,  129,  129,  129,
+    0,    0,  145,  145,  145,  145,    0,    0,    0,   97,
+   97,  145,    0,    0,   97,  145,  145,  145,  145,    0,
+    0,    0,    0,    0,  145,  145,    0,    0,  145,  145,
+  145,  145,  145,    0,  145,  145,   59,    0,  145,   59,
+    0,  145,  145,  145,   97,    0,    0,    0,    0,    0,
+    0,    0,    0,   59,   59,    0,    0,    0,   59,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,   97,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,   62,    0,   59,    0,
+    0,    0,    0,   72,   72,   72,   72,    0,    0,    0,
+    0,    0,    0,   62,   62,    0,    0,    0,   62,    0,
+    0,    0,    0,    0,    0,   72,   72,    0,   59,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,  144,  144,  144,  144,    0,   62,    0,   62,    0,
+  144,    0,    0,    0,  144,  144,  144,  144,    0,    0,
+    0,    0,    0,  144,  144,    0,    0,  144,  144,  144,
+  144,  144,   96,  144,  144,   96,    0,  144,   62,    0,
+  144,  144,  144,    0,    0,    0,    0,    0,    0,   96,
+   96,    0,    0,    0,   96,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,  144,   96,    0,  144,    0,    0,    0,
+    0,    0,    0,   97,   97,   97,   97,    0,    0,    0,
+  144,  144,   97,    0,    0,  144,   97,   97,   97,   97,
+    0,    0,    0,    0,   96,   97,   97,    0,    0,   97,
+   97,   97,   97,   97,    0,   97,   97,  131,    0,   97,
+  131,    0,   97,   97,   97,  144,    0,   59,   59,   59,
+   59,    0,    0,    0,  131,  131,   59,    0,    0,  131,
+   59,   59,   59,   59,    0,    0,    0,    0,    0,   59,
+   59,    0,    0,   59,   59,   59,   59,   59,    0,   59,
+   59,    0,  252,   59,    0,  253,   59,   59,   59,  131,
+    0,    0,    0,    0,    0,    0,    0,   62,   62,   62,
+   62,    0,    0,    0,  157,    0,   62,    0,    0,    0,
+   62,   62,   62,   62,    0,    0,    0,    0,    0,   62,
+   62,    0,    0,   62,   62,   62,   62,   62,  103,   62,
+   62,  103,  168,   62,    0,    0,   62,   62,   62,    0,
+    0,    0,    0,    0,    0,  103,  103,    0,    0,    0,
+  103,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,  150,    0,    0,    0,    0,    0,
+    0,    0,    0,   96,   96,   96,   96,    0,    0,    0,
+  103,    0,   96,    0,    0,    0,   96,   96,   96,   96,
+    0,    0,    0,    0,    0,   96,   96,    0,    0,   96,
+   96,   96,   96,   96,    0,   96,   96,    0,    0,   96,
+    0,    0,   96,   96,   96,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,  144,  144,  144,  144,    0,    0,
+    0,    0,    0,  144,    0,    0,    0,  144,  144,  144,
+  144,    0,    0,    0,    0,    0,  144,  144,    0,    0,
+  144,  144,  144,  144,  144,    0,  144,  144,  109,    0,
+  144,  109,    0,  144,  144,  144,    0,    0,  131,  131,
+  131,  131,    0,    0,    0,  109,  109,  131,    0,    0,
+  109,  131,  131,  131,  131,    0,    0,    0,    0,    0,
+  131,  131,    0,    0,  131,  131,  131,  131,  131,    0,
+  131,  131,    0,   93,  131,    0,   93,  131,  131,  131,
+  109,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+   93,   93,  151,    0,    0,   93,  152,  153,  154,  155,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,  156,
+  158,  159,  160,  161,    0,  162,  163,    0,    0,  164,
+    0,    0,  165,  166,  167,   93,  157,    0,    0,  103,
+  103,  103,  103,    0,    0,    0,    0,    0,  103,    0,
+    0,    0,  103,  103,  103,  103,    0,    0,    0,    0,
+    0,  103,  103,    0,  168,  103,  103,  103,  103,  103,
+   94,  103,  103,   94,    0,  103,    0,    0,  103,  103,
+  103,    0,    0,    0,    0,    0,    0,   94,   94,    0,
+    0,    0,   94,    0,    0,    0,  150,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,   88,    0,    0,
+   88,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,   94,    0,   88,   88,    0,    0,    0,   88,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,   88,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,  109,
+  109,  109,  109,    0,    0,    0,    0,    0,  109,    0,
+    0,    0,  109,  109,  109,  109,    0,    0,    0,    0,
+    0,  109,  109,    0,    0,  109,  109,  109,  109,  109,
+    0,  109,  109,   89,    0,  109,   89,    0,  109,  109,
+  109,    0,    0,    0,   93,   93,   93,   93,    0,    0,
+   89,   89,    0,   93,    0,   89,    0,   93,   93,   93,
+   93,    0,    0,    0,    0,    0,   93,   93,    0,    0,
+   93,   93,   93,   93,   93,   90,   93,   93,   90,    0,
+   93,    0,    0,    0,  151,   89,    0,    0,  152,  153,
+  154,  155,   90,   90,    0,    0,    0,   90,    0,    0,
+    0,    0,  158,  159,  160,  161,    0,  162,  163,    0,
+    0,  164,    0,    0,  165,  166,  167,    0,    0,    0,
+   86,    0,    0,   86,    0,    0,    0,   90,    0,    0,
+    0,   94,   94,   94,   94,    0,    0,   86,   86,    0,
+   94,    0,   86,    0,   94,   94,   94,   94,    0,    0,
+    0,    0,    0,   94,   94,    0,    0,   94,   94,   94,
+   94,   94,    0,   94,   94,    0,    0,   94,   88,   88,
+   88,   88,   86,    0,    0,    0,    0,   88,    0,    0,
+    0,   88,   88,   88,   88,   87,    0,    0,   87,    0,
+   88,   88,    0,    0,   88,   88,   88,   88,   88,    0,
+   88,   88,   87,   87,    0,    0,    0,   87,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,   85,    0,    0,   85,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,   87,    0,   85,
+   85,    0,    0,    0,   85,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,   89,   89,   89,   89,    0,    0,
+    0,    0,    0,   89,   85,    0,    0,   89,   89,   89,
+   89,    0,    0,    0,    0,    0,   89,   89,    0,    0,
+   89,   89,   89,   89,   89,   73,   89,   89,   73,    0,
+    0,    0,    0,    0,    0,    0,   90,   90,   90,   90,
+    0,    0,   73,   73,    0,   90,    0,   73,    0,   90,
+   90,   90,   90,    0,    0,    0,    0,    0,   90,   90,
+    0,    0,   90,   90,   90,   90,   90,    0,   90,   90,
+   75,    0,    0,   75,    0,    0,    0,   73,    0,    0,
+    0,   86,   86,   86,   86,    0,    0,   75,   75,    0,
+   86,    0,   75,    0,   86,   86,   86,   86,    0,    0,
+    0,    0,    0,   86,   86,    0,    0,   86,   86,   86,
+   86,   86,   76,   86,   86,   76,    0,    0,    0,    0,
+    0,    0,   75,    0,    0,    0,    0,    0,    0,   76,
+   76,    0,    0,    0,   76,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,   87,   87,   87,   87,
+    0,    0,    0,    0,    0,   87,    0,    0,    0,   87,
+   87,   87,   87,    0,   76,    0,    0,    0,   87,   87,
+    0,    0,   87,   87,   87,   87,   87,    0,   87,   87,
+    0,    0,    0,   85,   85,   85,   85,    0,    0,    0,
+    0,    0,   85,    0,    0,    0,   85,   85,   85,   85,
+  123,    0,    0,  123,    0,   85,   85,    0,    0,   85,
+   85,   85,   85,   85,    0,   85,   85,  123,  123,    0,
+    0,    0,  123,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,   95,    0,    0,   95,    0,    0,
+    0,    0,  123,    0,    0,    0,   73,   73,   73,   73,
+    0,   95,   95,    0,    0,   73,   95,    0,    0,   73,
+   73,   73,   73,    0,    0,    0,    0,    0,   73,   73,
+    0,    0,   73,   73,   73,   73,   73,    0,   73,   73,
+  133,    0,    0,  133,    0,    0,   95,    0,    0,    0,
+    0,   75,   75,   75,   75,    0,    0,  133,  133,    0,
+   75,    0,  133,    0,   75,   75,    0,   75,    0,    0,
+    0,    0,    0,   75,   75,    0,    0,   75,   75,   75,
+   75,   75,   77,   75,    0,   77,    0,    0,    0,    0,
+    0,    0,  133,   76,   76,   76,   76,    0,    0,   77,
+   77,    0,   76,    0,   77,    0,   76,   76,    0,    0,
+    0,    0,    0,    0,   78,   76,   76,   78,    0,   76,
+   76,   76,   76,   76,   79,   76,    0,   79,    0,    0,
+    0,   78,   78,    0,   77,    0,   78,    0,    0,    0,
+    0,   79,   79,    0,    0,    0,   79,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,   78,    0,    0,   80,
+    0,    0,   80,    0,    0,    0,   79,    0,    0,    0,
+    0,  123,  123,  123,  123,    0,   80,   80,    0,    0,
+  123,   80,    0,    0,  123,  123,    0,    0,    0,    0,
+    0,    0,    0,  123,  123,    0,    0,  123,  123,  123,
+  123,  123,    0,   82,    0,    0,   82,    0,    0,    0,
+    0,   80,    0,    0,    0,   95,   95,   95,   95,    0,
+   82,   82,    0,    0,   95,   82,    0,    0,   95,   95,
+    0,    0,    0,    0,    0,    0,    0,   95,   95,    0,
+    0,   95,   95,   95,   95,   95,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,   82,    0,    0,    0,    0,
+    0,  133,  133,  133,  133,    0,    0,    0,    0,    0,
+  133,    0,    0,    0,  133,  133,    0,    0,    0,    0,
+    0,    0,    0,  133,  133,    0,    0,  133,  133,  133,
+  133,  133,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,   77,   77,   77,   77,    0,    0,    0,
+    0,    0,   77,    0,    0,    0,    0,   77,    0,    0,
+    0,    0,    0,    0,    0,   77,   77,    0,    0,   77,
+   77,   77,   77,   77,    0,   78,   78,   78,   78,    0,
+    0,    0,    0,    0,   78,   79,   79,   79,   79,    0,
+    0,    0,    0,    0,   79,    0,    0,   78,   78,    0,
+    0,   78,   78,   78,   78,   78,    0,   79,   79,    0,
+    0,   79,   79,   79,   79,   79,    0,    0,    0,    0,
+    0,   92,    0,    0,    0,    0,    0,    0,    0,  105,
+   80,   80,   80,   80,  112,  114,    0,    0,    0,   80,
+  124,  125,  126,  127,  128,  129,    0,    0,  132,  133,
+    0,    0,   80,   80,    0,    0,   80,   80,   80,   80,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,   82,   82,   82,   82,    0,    0,
+    0,    0,  182,   82,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,   82,   82,    0,    0,
+   82,   82,   82,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,  214,    0,    0,    0,    0,    0,
+    0,    0,  222,  223,  224,  225,  226,  227,  228,  229,
+  230,  231,  232,  233,  234,  235,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,  292,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+    0,    0,  308,
+};
+short yycheck[] = {                                      13,
+   36,   41,   93,   17,   59,   36,   41,   91,   41,   44,
+    0,   41,  123,   93,   40,   93,   59,   59,  181,   33,
+   34,   35,   36,   58,   59,   91,   48,   40,   63,   43,
+   40,   91,  193,  125,  187,   49,  189,  294,  295,  123,
+   40,   59,   41,   33,   41,   40,   36,   37,   38,   21,
+   40,  257,   42,   43,   41,   45,   41,  123,   93,   41,
+   91,   41,   41,  123,   78,   91,    0,   89,    6,   59,
+  257,   36,   59,   41,   64,   40,   48,   59,   41,   93,
+   59,  123,   96,   59,   98,   40,  100,  123,  102,   41,
+   40,   59,  123,   31,   32,  117,   59,  123,   41,   33,
+   41,   91,   36,   37,   38,  123,   40,   40,   42,   43,
+  123,   45,   41,  123,   41,   40,  257,   89,  276,  277,
+   44,  284,    0,  123,   41,   59,  278,  141,  123,   44,
+   64,   40,  123,  123,  295,  125,  126,  298,   59,  260,
+  293,  294,   59,   59,   40,  117,  257,  300,   40,   40,
+  122,   41,  125,   41,   91,   33,   59,   91,   36,   37,
+   38,  183,   40,  177,   42,   43,   41,   45,  329,  322,
+  184,  125,   91,   59,  266,  267,  268,  295,  270,  271,
+   40,   59,   40,  266,  267,  268,   64,  270,  271,  123,
+   41,  125,  126,  125,  125,  125,   59,  125,   41,   41,
+   59,  123,  257,  294,  295,   59,   41,   59,   41,   44,
+   59,  183,   41,   91,  294,  295,  294,  295,   59,   59,
+   41,  257,   41,   58,   59,   93,  262,  258,   63,  313,
+  320,   59,  272,  273,  274,  275,   84,  272,  273,  274,
+  275,   13,  256,  266,  258,  123,  260,  261,  126,   94,
+  264,  294,  295,  267,  294,  295,   93,   -1,   93,  294,
+  295,  294,  295,  298,  294,  295,  256,  257,  258,  259,
+  260,  261,   -1,  263,  264,  265,  266,  267,  268,  269,
+  270,  271,  272,  273,  274,  275,   -1,  301,   -1,  279,
+  280,   -1,  282,  283,  284,  294,  295,  294,  295,  289,
+  290,  291,  292,  293,   -1,   -1,  296,  297,   -1,  294,
+  295,   93,  326,  303,  294,  295,  330,  307,   -1,  309,
+  310,   -1,  256,  257,  258,  259,  260,  261,   93,  263,
+  264,  265,  266,  267,  268,  269,  270,  271,  272,  273,
+  274,  275,  294,  295,   -1,  279,  280,   -1,  282,  283,
+  284,  294,  295,  294,  295,  289,  290,  291,  292,  293,
+   -1,   -1,  296,  297,   -1,  294,  295,  294,  295,  303,
+  294,  295,   41,  307,   -1,  309,  310,   -1,  256,  257,
+  258,  259,  260,  261,   -1,  263,  264,  265,   13,   41,
+   59,  269,   44,   -1,  272,  273,  274,  275,   -1,   41,
+   -1,  279,  280,   -1,  282,  283,  284,   59,  294,  295,
+   -1,  289,  290,  291,  292,  293,   -1,   -1,  296,  297,
+   45,   63,   47,   -1,   93,  303,  294,  295,   -1,  307,
+   55,  309,  310,   -1,   59,  294,  295,  272,  273,  274,
+  275,   93,  294,  295,   41,   -1,  281,   44,   -1,   91,
+  285,  286,  287,  288,  294,  295,   -1,  294,  295,  294,
+  295,   58,   59,  298,  299,  300,  301,  302,   -1,  304,
+   95,   91,   97,   -1,   99,   -1,  101,   -1,  103,   -1,
+   33,  123,  107,   36,   37,   38,   -1,   40,   41,   42,
+   43,   44,   45,   -1,   -1,   -1,   93,   -1,   -1,   -1,
+   -1,   -1,   -1,  123,   -1,   58,   59,   -1,   -1,   -1,
+   63,   64,  294,  295,   -1,   -1,   -1,   -1,   -1,  144,
+  145,  146,  147,  148,  149,  150,   -1,   -1,   -1,  294,
+  295,   -1,   -1,   -1,   -1,   -1,   41,   -1,   91,   44,
+   93,   -1,   -1,  168,  169,  170,  171,  172,  173,   -1,
+   -1,   -1,   -1,   58,   59,   -1,   33,   91,   63,   36,
+   37,   38,   -1,   40,   41,   42,   43,   44,   45,   -1,
+  123,   -1,  197,  126,  272,  273,  274,  275,  203,  204,
+  205,   58,   59,   -1,   -1,  210,   63,   64,   93,  123,
+   -1,   -1,   -1,   -1,   -1,   -1,  294,  295,   -1,   -1,
+   -1,   -1,   -1,  272,  273,  274,  275,   -1,   -1,   -1,
+   -1,  236,   -1,  238,   -1,   -1,   93,   -1,   -1,   -1,
+  272,  273,  274,  275,   33,  294,  295,   36,   37,   38,
+   -1,   40,   -1,   42,   43,   -1,   45,   -1,   -1,  281,
+   -1,  266,  294,  285,  286,  287,  288,   -1,   -1,  126,
+   59,   -1,   -1,   -1,  279,   64,  298,  299,  300,  301,
+  302,   -1,  304,  305,   -1,  285,  308,  287,  288,  311,
+  312,  313,  297,   -1,   -1,  272,  273,  274,  275,   -1,
+   -1,   -1,   91,   -1,  304,  305,   -1,   -1,  308,   -1,
+   -1,  311,  312,  313,   -1,  320,   -1,  294,  295,   -1,
+   -1,  298,   -1,   -1,  257,  258,  259,  260,  261,   -1,
+  263,  264,  265,   -1,  123,   -1,  269,  126,   -1,  272,
+  273,  274,  275,   -1,   -1,   -1,   -1,  280,  281,  282,
+  283,  284,  285,  286,  287,  288,  289,  290,  291,  292,
+  293,  294,  295,  296,  297,  298,  299,  300,  301,  302,
+  303,  304,  305,  287,  307,  308,  309,  310,  311,  312,
+  313,   -1,   -1,   -1,   -1,   -1,   -1,  272,  273,  274,
+  275,  305,   -1,   -1,  308,   -1,  281,  311,  312,  313,
+  257,  258,  259,  260,  261,   -1,  263,  264,  265,  294,
+  295,   -1,  269,  298,  299,  272,  273,  274,  275,   -1,
+   -1,   -1,   -1,  280,  281,  282,  283,  284,  285,  286,
+  287,  288,  289,  290,  291,  292,  293,  294,  295,  296,
+  297,  298,  299,  300,  301,  302,  303,  304,  305,   91,
+  307,  308,  309,  310,  311,  312,  313,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   91,   -1,   -1,  256,  257,  258,
+  259,  260,  261,   -1,  263,  264,  265,   -1,   -1,   -1,
+  269,  123,   -1,  272,  273,  274,  275,   -1,   -1,   -1,
+  279,  280,   -1,  282,  283,  284,  123,   -1,   91,   -1,
+  289,  290,  291,  292,  293,   -1,   -1,  296,  297,   -1,
+   -1,   -1,   -1,   -1,  303,   -1,   -1,   91,  307,   33,
+  309,  310,   36,   37,   38,   26,   40,   -1,   42,   43,
+  123,   45,   -1,   -1,   25,   26,   -1,   -1,   -1,   -1,
+   -1,   42,   -1,   -1,   -1,   59,   37,   48,   -1,  123,
+   64,   42,   43,   -1,   -1,   -1,   -1,   48,   -1,   60,
+   61,   62,   63,   64,   -1,   -1,   -1,   -1,   -1,   60,
+   61,   62,   63,   64,   -1,   33,   -1,   91,   36,   37,
+   38,   -1,   40,   -1,   42,   43,   -1,   45,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   91,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   64,  108,   -1,  123,
+   -1,   -1,  126,   -1,   -1,   -1,   -1,  108,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+  123,   33,   -1,   91,   36,   37,   38,   -1,   40,   -1,
+   42,   43,   -1,   45,   -1,  287,  288,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   59,  285,  286,
+  287,  288,   64,  305,   -1,  123,  308,   -1,  126,  311,
+  312,  313,  299,  300,  301,  302,  167,  304,  305,   -1,
+   -1,  308,   -1,   -1,  311,  312,  313,   -1,   -1,   91,
+   -1,   -1,   -1,   -1,   33,   -1,   -1,   36,   37,   38,
+   -1,   40,   -1,   42,   43,   -1,   45,   -1,   -1,   -1,
+   -1,  285,  286,  287,  288,  308,   -1,   -1,  311,  312,
+  313,   -1,   -1,   -1,  126,   64,  300,  301,  302,   -1,
+  304,  305,   -1,   -1,  308,   -1,   -1,  311,  312,  313,
+   -1,   -1,  256,  257,  258,  259,  260,  261,   -1,  263,
+  264,  265,   91,   -1,   -1,  269,   -1,   -1,  272,  273,
+  274,  275,   -1,   -1,   -1,  279,  280,   -1,  282,  283,
+  284,   -1,   -1,   -1,   -1,  289,  290,  291,  292,  293,
+   -1,   -1,  296,  297,  123,   -1,   -1,  126,   63,  303,
+   -1,   -1,   -1,  307,   -1,  309,  310,   -1,   -1,  257,
+  258,  259,  260,  261,  262,  263,  264,  265,   -1,   -1,
+   -1,  269,  305,   -1,   -1,  308,   91,   -1,  311,  312,
+  313,   -1,  280,   -1,  282,  283,  284,   -1,   -1,   -1,
+   -1,  289,  290,  291,  292,  293,   -1,   -1,  296,  297,
+   -1,   58,   -1,   -1,   -1,  303,   63,   -1,  123,  307,
+   -1,  309,  310,   -1,   -1,  257,  258,  259,  260,  261,
+   -1,  263,  264,  265,   -1,   -1,   -1,  269,   -1,   -1,
+   -1,   -1,   -1,   -1,   91,   -1,   -1,   -1,  280,   -1,
+  282,  283,  284,   -1,   -1,   -1,   -1,  289,  290,  291,
+  292,  293,   -1,   -1,  296,  297,   41,   -1,   -1,   44,
+   -1,  303,   -1,   -1,   -1,  307,  123,  309,  310,   -1,
+   -1,   -1,   -1,   58,   59,   -1,   -1,   -1,  257,  258,
+  259,  260,  261,  262,  263,  264,  265,   -1,   33,   -1,
+  269,   36,   37,   38,   -1,   40,   41,   42,   43,   -1,
+   45,  280,   -1,  282,  283,  284,   -1,   -1,   93,   91,
+  289,  290,  291,  292,  293,   -1,   -1,   -1,  297,   64,
+   -1,   -1,   -1,   -1,  303,   -1,   -1,   -1,  307,   -1,
+  309,  310,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,  123,   -1,   -1,   33,   -1,   91,   36,   37,   38,
+   -1,   40,   -1,   42,   43,   -1,   45,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,  281,   -1,   -1,   -1,
+  285,  286,  287,  288,   -1,   64,   -1,   -1,   -1,   -1,
+   -1,  126,   -1,  298,  299,  300,  301,  302,   -1,  304,
+  305,   -1,   -1,  308,   -1,   -1,  311,  312,  313,   -1,
+   -1,   -1,   91,   33,   93,   -1,   36,   37,   38,   -1,
+   40,   -1,   42,   43,   -1,   45,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,  281,   -1,   -1,   91,  285,  286,
+  287,  288,   -1,   -1,   64,   -1,   -1,  126,   -1,   -1,
+   -1,  298,  299,  300,  301,  302,   -1,  304,  305,   -1,
+   -1,  308,   -1,   -1,  311,  312,  313,   -1,   -1,  123,
+   -1,   91,   -1,   33,   -1,   -1,   36,   37,   38,   -1,
+   40,   41,   42,   43,   -1,   45,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,  272,  273,  274,
+  275,   -1,   -1,   -1,   64,   -1,  126,   -1,   -1,   -1,
+   -1,   -1,   -1,  285,  286,  287,  288,   -1,   -1,  294,
+  295,   -1,  257,  258,  259,  260,  261,   -1,  263,  264,
+  265,   91,  304,  305,  269,   -1,  308,   -1,   -1,  311,
+  312,  313,   -1,   -1,   -1,  280,   -1,  282,  283,  284,
+   -1,   -1,   -1,   -1,  289,  290,  291,  292,  293,   -1,
+   -1,  296,  297,   -1,   -1,   -1,  126,   -1,  303,   -1,
+   -1,   -1,  307,   -1,  309,  310,   -1,   -1,  257,  258,
+  259,  260,  261,   -1,  263,  264,  265,   -1,   33,   -1,
+  269,   36,   37,   38,   -1,   40,   41,   42,   43,   -1,
+   45,  280,   -1,  282,  283,  284,   -1,   -1,   -1,   -1,
+  289,  290,  291,  292,  293,   -1,   -1,  296,  297,   64,
+   -1,   -1,   -1,   -1,  303,   -1,   -1,   -1,  307,   -1,
+  309,  310,   -1,  287,  288,   -1,  256,  257,  258,  259,
+  260,  261,   -1,  263,  264,  265,   91,   -1,   -1,  269,
+  304,  305,   -1,   -1,  308,   -1,   -1,  311,  312,  313,
+  280,   -1,  282,  283,  284,   -1,   -1,   -1,   -1,  289,
+  290,  291,  292,  293,   -1,   41,  296,  297,   44,   -1,
+   -1,  126,   -1,  303,   -1,   -1,   -1,  307,   -1,  309,
+  310,   -1,   58,   59,   -1,   -1,   -1,  257,  258,  259,
+  260,  261,   -1,  263,  264,  265,   -1,   33,   -1,  269,
+   36,   37,   38,   -1,   40,   41,   42,   43,   -1,   45,
+  280,   -1,  282,  283,  284,   -1,   -1,   93,   -1,  289,
+  290,  291,  292,  293,   -1,   -1,  296,  297,   64,   -1,
+   -1,   -1,   -1,  303,   -1,   -1,   -1,  307,   -1,  309,
+  310,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   33,   -1,   91,   36,   37,   38,   -1,
+   40,   41,   42,   43,   -1,   45,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   64,   -1,   -1,   -1,   -1,   -1,
+  126,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,  257,  258,  259,  260,  261,   -1,  263,  264,
+  265,   91,   33,   -1,  269,   36,   37,   38,   -1,   40,
+   -1,   42,   43,   -1,   45,  280,   -1,  282,  283,  284,
+   -1,   -1,   -1,   -1,  289,  290,  291,  292,  293,   -1,
+   -1,  296,  297,   64,   -1,   -1,  126,   -1,  303,   -1,
+   -1,   -1,  307,   -1,  309,  310,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   91,   -1,   33,   -1,   -1,   36,   37,   38,   -1,   40,
+   -1,   42,   43,   -1,   45,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,  272,  273,  274,  275,
+   -1,   -1,  123,   64,   -1,  126,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  294,  295,
+   -1,  257,  258,  259,  260,  261,   -1,  263,  264,  265,
+   91,   -1,   -1,  269,   41,   -1,   -1,   44,   -1,   -1,
+   -1,   -1,   -1,   -1,  280,   -1,  282,  283,  284,   -1,
+   -1,   58,   59,  289,  290,  291,  292,  293,   -1,   -1,
+  296,  297,   -1,   91,   -1,  126,   -1,  303,   -1,   -1,
+   -1,  307,   -1,  309,  310,   -1,   -1,  257,  258,  259,
+  260,  261,   -1,  263,  264,  265,   93,   33,   -1,  269,
+   36,   37,   38,   -1,   40,  123,   42,   43,   -1,   45,
+  280,   -1,  282,  283,  284,   -1,   -1,   -1,   -1,  289,
+  290,  291,  292,  293,   -1,   -1,  296,  297,   64,   -1,
+   -1,   -1,   -1,  303,   -1,   -1,   -1,  307,   -1,  309,
+  310,   -1,   -1,   -1,   -1,   -1,  257,  258,  259,  260,
+  261,   -1,  263,  264,  265,   91,   -1,   -1,  269,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  280,
+   -1,  282,  283,  284,   -1,   -1,   -1,   -1,  289,  290,
+  291,  292,  293,   -1,   -1,   -1,  297,  123,   -1,   -1,
+  126,   -1,  303,   -1,   -1,   -1,  307,   -1,  309,  310,
+   -1,   -1,   -1,   -1,   -1,   -1,  257,  258,  259,  260,
+  261,   91,  263,  264,  265,   -1,   33,   -1,  269,   36,
+   37,   38,   -1,   40,   -1,   42,   43,   -1,   45,  280,
+   -1,  282,  283,  284,   -1,   -1,   -1,   -1,  289,  290,
+  291,  292,  293,  123,   -1,  296,  297,   64,   -1,   -1,
+   -1,   -1,  303,   -1,   -1,   -1,  307,   -1,  309,  310,
+   -1,   -1,   -1,   41,   -1,   -1,   44,  285,  286,  287,
+  288,   -1,   -1,   -1,   91,  272,  273,  274,  275,   -1,
+   58,   59,   -1,  301,  302,   63,  304,  305,   -1,   -1,
+  308,   -1,   -1,  311,  312,  313,   -1,  294,  295,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  126,
+   -1,   -1,   -1,   91,   41,   93,   -1,   44,   -1,   -1,
+   -1,  257,  258,  259,  260,  261,   -1,  263,  264,  265,
+   -1,   58,   59,  269,   -1,   -1,   63,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,  280,  123,  282,  283,  284,   -1,
+   -1,   -1,   -1,  289,  290,  291,  292,  293,   -1,   -1,
+   -1,  297,   -1,   -1,   91,   -1,   93,  303,   -1,   41,
+   -1,  307,   44,  309,  310,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   58,   59,   -1,   -1,
+   -1,   63,   -1,   -1,   -1,   -1,  123,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,  285,  286,  287,  288,   -1,
+   -1,   -1,   41,   -1,   -1,   44,   -1,   41,   -1,   91,
+   44,   93,  302,   -1,  304,  305,   -1,   -1,  308,   58,
+   59,  311,  312,  313,   58,   59,   -1,   -1,   -1,   63,
+  257,  258,  259,  260,  261,   -1,  263,  264,  265,   -1,
+   -1,  123,  269,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,   41,   -1,  280,   93,  282,  283,  284,   -1,   93,
+   -1,   -1,  289,  290,  291,  292,  293,   -1,   58,   59,
+  297,   -1,   -1,   63,   -1,   -1,  303,   -1,   -1,   -1,
+  307,   -1,  309,  310,  272,  273,  274,  275,   -1,  123,
+   -1,   -1,   -1,  281,   -1,   -1,   -1,  285,  286,  287,
+  288,   91,   -1,   93,   -1,   -1,  294,  295,   -1,   -1,
+  298,  299,  300,  301,  302,   -1,  304,  305,   -1,   -1,
+  308,   -1,   -1,  311,  312,  313,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,  123,   -1,  272,  273,  274,  275,   -1,
+   -1,   -1,   41,   -1,  281,   44,   -1,   -1,  285,  286,
+  287,  288,   -1,   -1,   -1,   -1,   -1,  294,  295,   58,
+   59,  298,  299,  300,  301,  302,   -1,  304,  305,   -1,
+   -1,  308,   -1,   -1,  311,  312,  313,   -1,   -1,   -1,
+   41,   -1,   -1,   44,   -1,   -1,   -1,   -1,   -1,   -1,
+  272,  273,  274,  275,   93,   -1,   -1,   58,   59,  281,
+   -1,   -1,   63,  285,  286,  287,  288,   -1,   -1,   -1,
+   -1,   -1,  294,  295,   -1,   -1,  298,  299,  300,  301,
+  302,   -1,  304,  305,   -1,   -1,  308,   -1,   -1,  311,
+  312,  313,   93,  272,  273,  274,  275,   -1,  272,  273,
+  274,  275,   -1,   -1,   -1,   -1,   -1,  281,   -1,   -1,
+   -1,  285,  286,  287,  288,  294,  295,   -1,   -1,   -1,
+  294,  295,  123,   -1,  298,  299,  300,  301,  302,   -1,
+  304,  305,   41,   -1,  308,   44,   -1,  311,  312,  313,
+   -1,   -1,  272,  273,  274,  275,   -1,   -1,   -1,   58,
+   59,  281,   -1,   -1,   63,  285,  286,  287,  288,   -1,
+   -1,   -1,   -1,   -1,  294,  295,   -1,   -1,  298,  299,
+  300,  301,  302,   -1,  304,  305,   41,   -1,  308,   44,
+   -1,  311,  312,  313,   93,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   58,   59,   -1,   -1,   -1,   63,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,  123,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   41,   -1,   93,   -1,
+   -1,   -1,   -1,  272,  273,  274,  275,   -1,   -1,   -1,
+   -1,   -1,   -1,   58,   59,   -1,   -1,   -1,   63,   -1,
+   -1,   -1,   -1,   -1,   -1,  294,  295,   -1,  123,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,  272,  273,  274,  275,   -1,   91,   -1,   93,   -1,
+  281,   -1,   -1,   -1,  285,  286,  287,  288,   -1,   -1,
+   -1,   -1,   -1,  294,  295,   -1,   -1,  298,  299,  300,
+  301,  302,   41,  304,  305,   44,   -1,  308,  123,   -1,
+  311,  312,  313,   -1,   -1,   -1,   -1,   -1,   -1,   58,
+   59,   -1,   -1,   -1,   63,   -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,   41,   93,   -1,   44,   -1,   -1,   -1,
+   -1,   -1,   -1,  272,  273,  274,  275,   -1,   -1,   -1,
+   58,   59,  281,   -1,   -1,   63,  285,  286,  287,  288,
+   -1,   -1,   -1,   -1,  123,  294,  295,   -1,   -1,  298,
+  299,  300,  301,  302,   -1,  304,  305,   41,   -1,  308,
+   44,   -1,  311,  312,  313,   93,   -1,  272,  273,  274,
+  275,   -1,   -1,   -1,   58,   59,  281,   -1,   -1,   63,
+  285,  286,  287,  288,   -1,   -1,   -1,   -1,   -1,  294,
+  295,   -1,   -1,  298,  299,  300,  301,  302,   -1,  304,
+  305,   -1,   41,  308,   -1,   44,  311,  312,  313,   93,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,  272,  273,  274,
+  275,   -1,   -1,   -1,   63,   -1,  281,   -1,   -1,   -1,
+  285,  286,  287,  288,   -1,   -1,   -1,   -1,   -1,  294,
+  295,   -1,   -1,  298,  299,  300,  301,  302,   41,  304,
+  305,   44,   91,  308,   -1,   -1,  311,  312,  313,   -1,
+   -1,   -1,   -1,   -1,   -1,   58,   59,   -1,   -1,   -1,
+   63,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,  123,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,  272,  273,  274,  275,   -1,   -1,   -1,
+   93,   -1,  281,   -1,   -1,   -1,  285,  286,  287,  288,
+   -1,   -1,   -1,   -1,   -1,  294,  295,   -1,   -1,  298,
+  299,  300,  301,  302,   -1,  304,  305,   -1,   -1,  308,
+   -1,   -1,  311,  312,  313,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,  272,  273,  274,  275,   -1,   -1,
+   -1,   -1,   -1,  281,   -1,   -1,   -1,  285,  286,  287,
+  288,   -1,   -1,   -1,   -1,   -1,  294,  295,   -1,   -1,
+  298,  299,  300,  301,  302,   -1,  304,  305,   41,   -1,
+  308,   44,   -1,  311,  312,  313,   -1,   -1,  272,  273,
+  274,  275,   -1,   -1,   -1,   58,   59,  281,   -1,   -1,
+   63,  285,  286,  287,  288,   -1,   -1,   -1,   -1,   -1,
+  294,  295,   -1,   -1,  298,  299,  300,  301,  302,   -1,
+  304,  305,   -1,   41,  308,   -1,   44,  311,  312,  313,
+   93,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   58,   59,  281,   -1,   -1,   63,  285,  286,  287,  288,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  298,
+  299,  300,  301,  302,   -1,  304,  305,   -1,   -1,  308,
+   -1,   -1,  311,  312,  313,   93,   63,   -1,   -1,  272,
+  273,  274,  275,   -1,   -1,   -1,   -1,   -1,  281,   -1,
+   -1,   -1,  285,  286,  287,  288,   -1,   -1,   -1,   -1,
+   -1,  294,  295,   -1,   91,  298,  299,  300,  301,  302,
+   41,  304,  305,   44,   -1,  308,   -1,   -1,  311,  312,
+  313,   -1,   -1,   -1,   -1,   -1,   -1,   58,   59,   -1,
+   -1,   -1,   63,   -1,   -1,   -1,  123,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   41,   -1,   -1,
+   44,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   93,   -1,   58,   59,   -1,   -1,   -1,   63,
+   -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,   93,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  272,
+  273,  274,  275,   -1,   -1,   -1,   -1,   -1,  281,   -1,
+   -1,   -1,  285,  286,  287,  288,   -1,   -1,   -1,   -1,
+   -1,  294,  295,   -1,   -1,  298,  299,  300,  301,  302,
+   -1,  304,  305,   41,   -1,  308,   44,   -1,  311,  312,
+  313,   -1,   -1,   -1,  272,  273,  274,  275,   -1,   -1,
+   58,   59,   -1,  281,   -1,   63,   -1,  285,  286,  287,
+  288,   -1,   -1,   -1,   -1,   -1,  294,  295,   -1,   -1,
+  298,  299,  300,  301,  302,   41,  304,  305,   44,   -1,
+  308,   -1,   -1,   -1,  281,   93,   -1,   -1,  285,  286,
+  287,  288,   58,   59,   -1,   -1,   -1,   63,   -1,   -1,
+   -1,   -1,  299,  300,  301,  302,   -1,  304,  305,   -1,
+   -1,  308,   -1,   -1,  311,  312,  313,   -1,   -1,   -1,
+   41,   -1,   -1,   44,   -1,   -1,   -1,   93,   -1,   -1,
+   -1,  272,  273,  274,  275,   -1,   -1,   58,   59,   -1,
+  281,   -1,   63,   -1,  285,  286,  287,  288,   -1,   -1,
+   -1,   -1,   -1,  294,  295,   -1,   -1,  298,  299,  300,
+  301,  302,   -1,  304,  305,   -1,   -1,  308,  272,  273,
+  274,  275,   93,   -1,   -1,   -1,   -1,  281,   -1,   -1,
+   -1,  285,  286,  287,  288,   41,   -1,   -1,   44,   -1,
+  294,  295,   -1,   -1,  298,  299,  300,  301,  302,   -1,
+  304,  305,   58,   59,   -1,   -1,   -1,   63,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   41,   -1,   -1,   44,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   93,   -1,   58,
+   59,   -1,   -1,   -1,   63,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,  272,  273,  274,  275,   -1,   -1,
+   -1,   -1,   -1,  281,   93,   -1,   -1,  285,  286,  287,
+  288,   -1,   -1,   -1,   -1,   -1,  294,  295,   -1,   -1,
+  298,  299,  300,  301,  302,   41,  304,  305,   44,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,  272,  273,  274,  275,
+   -1,   -1,   58,   59,   -1,  281,   -1,   63,   -1,  285,
+  286,  287,  288,   -1,   -1,   -1,   -1,   -1,  294,  295,
+   -1,   -1,  298,  299,  300,  301,  302,   -1,  304,  305,
+   41,   -1,   -1,   44,   -1,   -1,   -1,   93,   -1,   -1,
+   -1,  272,  273,  274,  275,   -1,   -1,   58,   59,   -1,
+  281,   -1,   63,   -1,  285,  286,  287,  288,   -1,   -1,
+   -1,   -1,   -1,  294,  295,   -1,   -1,  298,  299,  300,
+  301,  302,   41,  304,  305,   44,   -1,   -1,   -1,   -1,
+   -1,   -1,   93,   -1,   -1,   -1,   -1,   -1,   -1,   58,
+   59,   -1,   -1,   -1,   63,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,  272,  273,  274,  275,
+   -1,   -1,   -1,   -1,   -1,  281,   -1,   -1,   -1,  285,
+  286,  287,  288,   -1,   93,   -1,   -1,   -1,  294,  295,
+   -1,   -1,  298,  299,  300,  301,  302,   -1,  304,  305,
+   -1,   -1,   -1,  272,  273,  274,  275,   -1,   -1,   -1,
+   -1,   -1,  281,   -1,   -1,   -1,  285,  286,  287,  288,
+   41,   -1,   -1,   44,   -1,  294,  295,   -1,   -1,  298,
+  299,  300,  301,  302,   -1,  304,  305,   58,   59,   -1,
+   -1,   -1,   63,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   41,   -1,   -1,   44,   -1,   -1,
+   -1,   -1,   93,   -1,   -1,   -1,  272,  273,  274,  275,
+   -1,   58,   59,   -1,   -1,  281,   63,   -1,   -1,  285,
+  286,  287,  288,   -1,   -1,   -1,   -1,   -1,  294,  295,
+   -1,   -1,  298,  299,  300,  301,  302,   -1,  304,  305,
+   41,   -1,   -1,   44,   -1,   -1,   93,   -1,   -1,   -1,
+   -1,  272,  273,  274,  275,   -1,   -1,   58,   59,   -1,
+  281,   -1,   63,   -1,  285,  286,   -1,  288,   -1,   -1,
+   -1,   -1,   -1,  294,  295,   -1,   -1,  298,  299,  300,
+  301,  302,   41,  304,   -1,   44,   -1,   -1,   -1,   -1,
+   -1,   -1,   93,  272,  273,  274,  275,   -1,   -1,   58,
+   59,   -1,  281,   -1,   63,   -1,  285,  286,   -1,   -1,
+   -1,   -1,   -1,   -1,   41,  294,  295,   44,   -1,  298,
+  299,  300,  301,  302,   41,  304,   -1,   44,   -1,   -1,
+   -1,   58,   59,   -1,   93,   -1,   63,   -1,   -1,   -1,
+   -1,   58,   59,   -1,   -1,   -1,   63,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,   93,   -1,   -1,   41,
+   -1,   -1,   44,   -1,   -1,   -1,   93,   -1,   -1,   -1,
+   -1,  272,  273,  274,  275,   -1,   58,   59,   -1,   -1,
+  281,   63,   -1,   -1,  285,  286,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,  294,  295,   -1,   -1,  298,  299,  300,
+  301,  302,   -1,   41,   -1,   -1,   44,   -1,   -1,   -1,
+   -1,   93,   -1,   -1,   -1,  272,  273,  274,  275,   -1,
+   58,   59,   -1,   -1,  281,   63,   -1,   -1,  285,  286,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,  294,  295,   -1,
+   -1,  298,  299,  300,  301,  302,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   93,   -1,   -1,   -1,   -1,
+   -1,  272,  273,  274,  275,   -1,   -1,   -1,   -1,   -1,
+  281,   -1,   -1,   -1,  285,  286,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,  294,  295,   -1,   -1,  298,  299,  300,
+  301,  302,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,  272,  273,  274,  275,   -1,   -1,   -1,
+   -1,   -1,  281,   -1,   -1,   -1,   -1,  286,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,  294,  295,   -1,   -1,  298,
+  299,  300,  301,  302,   -1,  272,  273,  274,  275,   -1,
+   -1,   -1,   -1,   -1,  281,  272,  273,  274,  275,   -1,
+   -1,   -1,   -1,   -1,  281,   -1,   -1,  294,  295,   -1,
+   -1,  298,  299,  300,  301,  302,   -1,  294,  295,   -1,
+   -1,  298,  299,  300,  301,  302,   -1,   -1,   -1,   -1,
+   -1,   30,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   38,
+  272,  273,  274,  275,   43,   44,   -1,   -1,   -1,  281,
+   49,   50,   51,   52,   53,   54,   -1,   -1,   57,   58,
+   -1,   -1,  294,  295,   -1,   -1,  298,  299,  300,  301,
+   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,  272,  273,  274,  275,   -1,   -1,
+   -1,   -1,   91,  281,   -1,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,   -1,   -1,   -1,   -1,  294,  295,   -1,   -1,
+  298,  299,  300,   -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,  143,   -1,   -1,   -1,   -1,   -1,
+   -1,   -1,  151,  152,  153,  154,  155,  156,  157,  158,
+  159,  160,  161,  162,  163,  164,   -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,
+   -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,  253,   -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,  281,
+};
+#define YYFINAL 1
+#ifndef YYDEBUG
+#define YYDEBUG 0
 #endif
-           break;
+#define YYMAXTOKEN 313
+#if YYDEBUG
+char *yyname[] = {
+"end-of-file",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+"'!'",0,0,"'$'","'%'","'&'",0,"'('","')'","'*'","'+'","','","'-'",0,0,0,0,0,0,0,
+0,0,0,0,0,"':'","';'",0,0,0,"'?'","'@'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,"'['",0,"']'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,"'{'",0,"'}'","'~'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"WORD","METHOD","FUNCMETH","THING",
+"PMFUNC","PRIVATEREF","FUNC0SUB","UNIOPSUB","LSTOPSUB","LABEL","FORMAT","SUB",
+"ANONSUB","PACKAGE","USE","WHILE","UNTIL","IF","UNLESS","ELSE","ELSIF",
+"CONTINUE","FOR","LOOPEX","DOTDOT","FUNC0","FUNC1","FUNC","RELOP","EQOP",
+"MULOP","ADDOP","DOLSHARP","DO","LOCAL","HASHBRACK","NOAMP","OROP","ANDOP",
+"NOTOP","LSTOP","ASSIGNOP","OROR","ANDAND","BITOROP","BITANDOP","UNIOP",
+"SHIFTOP","MATCHOP","UMINUS","REFGEN","POWOP","PREINC","PREDEC","POSTINC",
+"POSTDEC","ARROW",
+};
+char *yyrule[] = {
+"$accept : prog",
+"$$1 :",
+"prog : $$1 lineseq",
+"block : '{' remember lineseq '}'",
+"remember :",
+"lineseq :",
+"lineseq : lineseq decl",
+"lineseq : lineseq line",
+"line : label cond",
+"line : loop",
+"line : label ';'",
+"line : label sideff ';'",
+"sideff : error",
+"sideff : expr",
+"sideff : expr IF expr",
+"sideff : expr UNLESS expr",
+"sideff : expr WHILE expr",
+"sideff : expr UNTIL expr",
+"else :",
+"else : ELSE block",
+"else : ELSIF '(' expr ')' block else",
+"cond : IF '(' expr ')' block else",
+"cond : UNLESS '(' expr ')' block else",
+"cond : IF block block else",
+"cond : UNLESS block block else",
+"cont :",
+"cont : CONTINUE block",
+"loop : label WHILE '(' texpr ')' block cont",
+"loop : label UNTIL '(' expr ')' block cont",
+"loop : label WHILE block block cont",
+"loop : label UNTIL block block cont",
+"loop : label FOR scalar '(' expr ')' block cont",
+"loop : label FOR '(' expr ')' block cont",
+"loop : label FOR '(' nexpr ';' texpr ';' nexpr ')' block",
+"loop : label block cont",
+"nexpr :",
+"nexpr : sideff",
+"texpr :",
+"texpr : expr",
+"label :",
+"label : LABEL",
+"decl : format",
+"decl : subrout",
+"decl : package",
+"decl : use",
+"format : FORMAT startsub WORD block",
+"format : FORMAT startsub block",
+"subrout : SUB startsub WORD proto block",
+"subrout : SUB startsub WORD proto ';'",
+"proto :",
+"proto : THING",
+"startsub :",
+"package : PACKAGE WORD ';'",
+"package : PACKAGE ';'",
+"use : USE WORD listexpr ';'",
+"expr : expr ANDOP expr",
+"expr : expr OROP expr",
+"expr : NOTOP expr",
+"expr : argexpr",
+"argexpr : argexpr ','",
+"argexpr : argexpr ',' term",
+"argexpr : term",
+"listop : LSTOP indirob argexpr",
+"listop : FUNC '(' indirob expr ')'",
+"listop : term ARROW method '(' listexprcom ')'",
+"listop : METHOD indirob listexpr",
+"listop : FUNCMETH indirob '(' listexprcom ')'",
+"listop : LSTOP listexpr",
+"listop : FUNC '(' listexprcom ')'",
+"listop : LSTOPSUB startsub block listexpr",
+"method : METHOD",
+"method : scalar",
+"term : term ASSIGNOP term",
+"term : term POWOP term",
+"term : term MULOP term",
+"term : term ADDOP term",
+"term : term SHIFTOP term",
+"term : term RELOP term",
+"term : term EQOP term",
+"term : term BITANDOP term",
+"term : term BITOROP term",
+"term : term DOTDOT term",
+"term : term ANDAND term",
+"term : term OROR term",
+"term : term '?' term ':' term",
+"term : term MATCHOP term",
+"term : '-' term",
+"term : '+' term",
+"term : '!' term",
+"term : '~' term",
+"term : REFGEN term",
+"term : term POSTINC",
+"term : term POSTDEC",
+"term : PREINC term",
+"term : PREDEC term",
+"term : LOCAL term",
+"term : '(' expr ')'",
+"term : '(' ')'",
+"term : '[' expr ']'",
+"term : '[' ']'",
+"term : HASHBRACK expr ';' '}'",
+"term : HASHBRACK ';' '}'",
+"term : ANONSUB startsub proto block",
+"term : scalar",
+"term : star",
+"term : scalar '[' expr ']'",
+"term : term ARROW '[' expr ']'",
+"term : term '[' expr ']'",
+"term : hsh",
+"term : ary",
+"term : arylen",
+"term : scalar '{' expr ';' '}'",
+"term : term ARROW '{' expr ';' '}'",
+"term : term '{' expr ';' '}'",
+"term : '(' expr ')' '[' expr ']'",
+"term : '(' ')' '[' expr ']'",
+"term : ary '[' expr ']'",
+"term : ary '{' expr ';' '}'",
+"term : THING",
+"term : amper",
+"term : amper '(' ')'",
+"term : amper '(' expr ')'",
+"term : NOAMP WORD listexpr",
+"term : DO term",
+"term : DO block",
+"term : DO WORD '(' ')'",
+"term : DO WORD '(' expr ')'",
+"term : DO scalar '(' ')'",
+"term : DO scalar '(' expr ')'",
+"term : LOOPEX",
+"term : LOOPEX term",
+"term : UNIOP",
+"term : UNIOP block",
+"term : UNIOP term",
+"term : UNIOPSUB term",
+"term : FUNC0",
+"term : FUNC0 '(' ')'",
+"term : FUNC0SUB",
+"term : FUNC1 '(' ')'",
+"term : FUNC1 '(' expr ')'",
+"term : PMFUNC '(' term ')'",
+"term : PMFUNC '(' term ',' term ')'",
+"term : WORD",
+"term : listop",
+"listexpr :",
+"listexpr : argexpr",
+"listexprcom :",
+"listexprcom : expr",
+"listexprcom : expr ','",
+"amper : '&' indirob",
+"scalar : '$' indirob",
+"ary : '@' indirob",
+"hsh : '%' indirob",
+"arylen : DOLSHARP indirob",
+"star : '*' indirob",
+"indirob : WORD",
+"indirob : scalar",
+"indirob : block",
+"indirob : PRIVATEREF",
+};
 #endif
-       case 'e':
-           if (!e_fp) {
-               mktemp(e_tmpname);
-               e_fp = fopen(e_tmpname,"w");
-           }
-           if (argv[1])
-               fputs(argv[1],e_fp);
-           putc('\n', e_fp);
-           argc--,argv++;
-           break;
-       case 'i':
-           inplace = savestr(argv[0]+2);
-           argvoutstab = stabent("ARGVOUT",TRUE);
-           break;
-       case 'I':
-           str_cat(str,argv[0]);
-           str_cat(str," ");
-           if (!argv[0][2]) {
-               str_cat(str,argv[1]);
-               argc--,argv++;
-               str_cat(str," ");
-           }
-           break;
-       case 'n':
-           assume_n = TRUE;
-           strcpy(argv[0], argv[0]+1);
-           goto reswitch;
-       case 'p':
-           assume_p = TRUE;
-           strcpy(argv[0], argv[0]+1);
-           goto reswitch;
-       case 'P':
-           preprocess = TRUE;
-           strcpy(argv[0], argv[0]+1);
-           goto reswitch;
-       case 's':
-           doswitches = TRUE;
-           strcpy(argv[0], argv[0]+1);
-           goto reswitch;
-       case 'v':
-           version();
-           exit(0);
-       case '-':
-           argc--,argv++;
-           goto switch_end;
-       case 0:
-           break;
-       default:
-           fatal("Unrecognized switch: %s\n",argv[0]);
-       }
-    }
-  switch_end:
-    if (e_fp) {
-       fclose(e_fp);
-       argc++,argv--;
-       argv[0] = e_tmpname;
-    }
-
-    str_set(&str_no,No);
-    str_set(&str_yes,Yes);
-    init_eval();
-
-    /* open script */
-
-    if (argv[0] == Nullch)
-       argv[0] = "-";
-    filename = savestr(argv[0]);
-    if (strEQ(filename,"-"))
-       argv[0] = "";
-    if (preprocess) {
-       sprintf(buf, "\
-/bin/sed -e '/^[^#]/b' \
- -e '/^#[      ]*include[      ]/b' \
- -e '/^#[      ]*define[       ]/b' \
- -e '/^#[      ]*if[   ]/b' \
- -e '/^#[      ]*ifdef[        ]/b' \
- -e '/^#[      ]*else/b' \
- -e '/^#[      ]*endif/b' \
- -e 's/^#.*//' \
- %s | %s -C %s%s",
-         argv[0], CPP, str_get(str), CPPMINUS);
-       rsfp = popen(buf,"r");
-    }
-    else if (!*argv[0])
-       rsfp = stdin;
-    else
-       rsfp = fopen(argv[0],"r");
-    if (rsfp == Nullfp)
-       fatal("Perl script \"%s\" doesn't seem to exist.\n",filename);
-    str_free(str);             /* free -I directories */
-
-    defstab = stabent("_",TRUE);
-
-    /* init tokener */
-
-    bufptr = str_get(linestr);
-
-    /* now parse the report spec */
-
-    if (yyparse())
-       fatal("Execution aborted due to compilation errors.\n");
-
-    if (e_fp) {
-       e_fp = Nullfp;
-       UNLINK(e_tmpname);
-    }
-    argc--,argv++;     /* skip name of script */
-    if (doswitches) {
-       for (; argc > 0 && **argv == '-'; argc--,argv++) {
-           if (argv[0][1] == '-') {
-               argc--,argv++;
-               break;
-           }
-           str_numset(stabent(argv[0]+1,TRUE)->stab_val,(double)1.0);
-       }
-    }
-    if (argvstab = stabent("ARGV",allstabs)) {
-       for (; argc > 0; argc--,argv++) {
-           apush(argvstab->stab_array,str_make(argv[0]));
-       }
-    }
-    if (envstab = stabent("ENV",allstabs)) {
-       for (; *env; env++) {
-           if (!(s = index(*env,'=')))
-               continue;
-           *s++ = '\0';
-           str = str_make(s);
-           str->str_link.str_magic = envstab;
-           hstore(envstab->stab_hash,*env,str);
-           *--s = '=';
-       }
-    }
-    sigstab = stabent("SIG",allstabs);
-
-    magicalize("!#?^~=-%0123456789.+&*(),\\/[|");
-
-    (tmpstab = stabent("0",allstabs)) && str_set(STAB_STR(tmpstab),filename);
-    (tmpstab = stabent("$",allstabs)) &&
-       str_numset(STAB_STR(tmpstab),(double)getpid());
-
-    tmpstab = stabent("stdin",TRUE);
-    tmpstab->stab_io = stio_new();
-    tmpstab->stab_io->fp = stdin;
-
-    tmpstab = stabent("stdout",TRUE);
-    tmpstab->stab_io = stio_new();
-    tmpstab->stab_io->fp = stdout;
-    defoutstab = tmpstab;
-    curoutstab = tmpstab;
-
-    tmpstab = stabent("stderr",TRUE);
-    tmpstab->stab_io = stio_new();
-    tmpstab->stab_io->fp = stderr;
-    safefree(filename);
-    filename = "(eval)";
-
-    setjmp(top_env);   /* sets goto_targ on longjump */
-
-#ifdef DEBUGGING
-    if (debug & 1024)
-       dump_cmd(main_root,Nullcmd);
-    if (debug)
-       fprintf(stderr,"\nEXECUTING...\n\n");
+#define yyclearin (yychar=(-1))
+#define yyerrok (yyerrflag=0)
+#ifdef YYSTACKSIZE
+#ifndef YYMAXDEPTH
+#define YYMAXDEPTH YYSTACKSIZE
 #endif
-
-    /* do it */
-
-    (void) cmd_exec(main_root);
-
-    if (goto_targ)
-       fatal("Can't find label \"%s\"--aborting.\n",goto_targ);
-    exit(0);
-}
-
-magicalize(list)
-register char *list;
-{
-    register STAB *stab;
-    char sym[2];
-
-    sym[1] = '\0';
-    while (*sym = *list++) {
-       if (stab = stabent(sym,allstabs)) {
-           stab->stab_flags = SF_VMAGIC;
-           stab->stab_val->str_link.str_magic = stab;
-       }
-    }
-}
-
-#define RETURN(retval) return (bufptr = s,retval)
-#define OPERATOR(retval) return (expectterm = TRUE,bufptr = s,retval)
-#define TERM(retval) return (expectterm = FALSE,bufptr = s,retval)
-#define LOOPX(f) return (yylval.ival = f,expectterm = FALSE,bufptr = s,LOOPEX)
-#define UNI(f) return (yylval.ival = f,expectterm = TRUE,bufptr = s,UNIOP)
-#define FUN0(f) return (yylval.ival = f,expectterm = FALSE,bufptr = s,FUNC0)
-#define FUN1(f) return (yylval.ival = f,expectterm = FALSE,bufptr = s,FUNC1)
-#define FUN2(f) return (yylval.ival = f,expectterm = FALSE,bufptr = s,FUNC2)
-#define FUN3(f) return (yylval.ival = f,expectterm = FALSE,bufptr = s,FUNC3)
-#define SFUN(f) return (yylval.ival = f,expectterm = FALSE,bufptr = s,STABFUN)
-
-yylex()
-{
-    register char *s = bufptr;
-    register char *d;
-    register int tmp;
-    static bool in_format = FALSE;
-    static bool firstline = TRUE;
-
-  retry:
-#ifdef YYDEBUG
-    if (yydebug)
-       if (index(s,'\n'))
-           fprintf(stderr,"Tokener at %s",s);
-       else
-           fprintf(stderr,"Tokener at %s\n",s);
+#else
+#ifdef YYMAXDEPTH
+#define YYSTACKSIZE YYMAXDEPTH
+#else
+#define YYSTACKSIZE 500
+#define YYMAXDEPTH 500
 #endif
-    switch (*s) {
-    default:
-       fprintf(stderr,
-           "Unrecognized character %c in file %s line %d--ignoring.\n",
-            *s++,filename,line);
-       goto retry;
-    case 0:
-       s = str_get(linestr);
-       *s = '\0';
-       if (firstline && (assume_n || assume_p)) {
-           firstline = FALSE;
-           str_set(linestr,"while (<>) {");
-           s = str_get(linestr);
-           goto retry;
-       }
-       if (!rsfp)
-           RETURN(0);
-       if (in_format) {
-           yylval.formval = load_format();     /* leaves . in buffer */
-           in_format = FALSE;
-           s = str_get(linestr);
-           TERM(FORMLIST);
-       }
-       line++;
-       if ((s = str_gets(linestr, rsfp)) == Nullch) {
-           if (preprocess)
-               pclose(rsfp);
-           else if (rsfp != stdin)
-               fclose(rsfp);
-           rsfp = Nullfp;
-           if (assume_n || assume_p) {
-               str_set(linestr,assume_p ? "}continue{print;" : "");
-               str_cat(linestr,"}");
-               s = str_get(linestr);
-               goto retry;
-           }
-           s = str_get(linestr);
-           RETURN(0);
-       }
-#ifdef DEBUG
-       else if (firstline) {
-           char *showinput();
-           s = showinput();
-       }
 #endif
-       firstline = FALSE;
-       goto retry;
-    case ' ': case '\t':
-       s++;
-       goto retry;
-    case '\n':
-    case '#':
-       if (preprocess && s == str_get(linestr) &&
-              s[1] == ' ' && isdigit(s[2])) {
-           line = atoi(s+2)-1;
-           for (s += 2; isdigit(*s); s++) ;
-           while (*s && isspace(*s)) s++;
-           if (filename)
-               safefree(filename);
-           s[strlen(s)-1] = '\0';      /* wipe out newline */
-           filename = savestr(s);
-           s = str_get(linestr);
-       }
-       if (in_eval) {
-           while (*s && *s != '\n')
-               s++;
-           if (*s)
-               s++;
-           line++;
-       }
-       else
-           *s = '\0';
-       if (lex_newlines)
-           RETURN('\n');
-       goto retry;
-    case '+':
-    case '-':
-       if (s[1] == *s) {
-           s++;
-           if (*s++ == '+')
-               RETURN(INC);
-           else
-               RETURN(DEC);
-       }
-       /* FALL THROUGH */
-    case '*':
-    case '%':
-    case '^':
-    case '~':
-    case '(':
-    case ',':
-    case ':':
-    case ';':
-    case '{':
-    case '[':
-       tmp = *s++;
-       OPERATOR(tmp);
-    case ')':
-    case ']':
-       tmp = *s++;
-       TERM(tmp);
-    case '}':
-       tmp = *s++;
-       for (d = s; *d == ' ' || *d == '\t'; d++) ;
-       if (*d == '\n' || *d == '#')
-           OPERATOR(tmp);              /* block end */
-       else
-           TERM(tmp);                  /* associative array end */
-    case '&':
-       s++;
-       tmp = *s++;
-       if (tmp == '&')
-           OPERATOR(ANDAND);
-       s--;
-       OPERATOR('&');
-    case '|':
-       s++;
-       tmp = *s++;
-       if (tmp == '|')
-           OPERATOR(OROR);
-       s--;
-       OPERATOR('|');
-    case '=':
-       s++;
-       tmp = *s++;
-       if (tmp == '=')
-           OPERATOR(EQ);
-       if (tmp == '~')
-           OPERATOR(MATCH);
-       s--;
-       OPERATOR('=');
-    case '!':
-       s++;
-       tmp = *s++;
-       if (tmp == '=')
-           OPERATOR(NE);
-       if (tmp == '~')
-           OPERATOR(NMATCH);
-       s--;
-       OPERATOR('!');
-    case '<':
-       if (expectterm) {
-           s = scanstr(s);
-           TERM(RSTRING);
-       }
-       s++;
-       tmp = *s++;
-       if (tmp == '<')
-           OPERATOR(LS);
-       if (tmp == '=')
-           OPERATOR(LE);
-       s--;
-       OPERATOR('<');
-    case '>':
-       s++;
-       tmp = *s++;
-       if (tmp == '>')
-           OPERATOR(RS);
-       if (tmp == '=')
-           OPERATOR(GE);
-       s--;
-       OPERATOR('>');
-
-#define SNARFWORD \
-       d = tokenbuf; \
-       while (isalpha(*s) || isdigit(*s) || *s == '_') \
-           *d++ = *s++; \
-       *d = '\0'; \
-       d = tokenbuf;
-
-    case '$':
-       if (s[1] == '#' && (isalpha(s[2]) || s[2] == '_')) {
-           s++;
-           s = scanreg(s,tokenbuf);
-           yylval.stabval = aadd(stabent(tokenbuf,TRUE));
-           TERM(ARYLEN);
-       }
-       s = scanreg(s,tokenbuf);
-       yylval.stabval = stabent(tokenbuf,TRUE);
-       TERM(REG);
-
-    case '@':
-       s = scanreg(s,tokenbuf);
-       yylval.stabval = aadd(stabent(tokenbuf,TRUE));
-       TERM(ARY);
-
-    case '/':                  /* may either be division or pattern */
-    case '?':                  /* may either be conditional or pattern */
-       if (expectterm) {
-           s = scanpat(s);
-           TERM(PATTERN);
-       }
-       tmp = *s++;
-       OPERATOR(tmp);
-
-    case '.':
-       if (!expectterm || !isdigit(s[1])) {
-           s++;
-           tmp = *s++;
-           if (tmp == '.')
-               OPERATOR(DOTDOT);
-           s--;
-           OPERATOR('.');
-       }
-       /* FALL THROUGH */
-    case '0': case '1': case '2': case '3': case '4':
-    case '5': case '6': case '7': case '8': case '9':
-    case '\'': case '"': case '`':
-       s = scanstr(s);
-       TERM(RSTRING);
-
-    case '_':
-       SNARFWORD;
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'a': case 'A':
-       SNARFWORD;
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'b': case 'B':
-       SNARFWORD;
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'c': case 'C':
-       SNARFWORD;
-       if (strEQ(d,"continue"))
-           OPERATOR(CONTINUE);
-       if (strEQ(d,"chdir"))
-           UNI(O_CHDIR);
-       if (strEQ(d,"close"))
-           OPERATOR(CLOSE);
-       if (strEQ(d,"crypt"))
-           FUN2(O_CRYPT);
-       if (strEQ(d,"chop"))
-           OPERATOR(CHOP);
-       if (strEQ(d,"chmod")) {
-           yylval.ival = O_CHMOD;
-           OPERATOR(PRINT);
-       }
-       if (strEQ(d,"chown")) {
-           yylval.ival = O_CHOWN;
-           OPERATOR(PRINT);
-       }
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'd': case 'D':
-       SNARFWORD;
-       if (strEQ(d,"do"))
-           OPERATOR(DO);
-       if (strEQ(d,"die"))
-           UNI(O_DIE);
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'e': case 'E':
-       SNARFWORD;
-       if (strEQ(d,"else"))
-           OPERATOR(ELSE);
-       if (strEQ(d,"elsif"))
-           OPERATOR(ELSIF);
-       if (strEQ(d,"eq") || strEQ(d,"EQ"))
-           OPERATOR(SEQ);
-       if (strEQ(d,"exit"))
-           UNI(O_EXIT);
-       if (strEQ(d,"eval")) {
-           allstabs = TRUE;            /* must initialize everything since */
-           UNI(O_EVAL);                /* we don't know what will be used */
-       }
-       if (strEQ(d,"eof"))
-           TERM(FEOF);
-       if (strEQ(d,"exp"))
-           FUN1(O_EXP);
-       if (strEQ(d,"each"))
-           SFUN(O_EACH);
-       if (strEQ(d,"exec")) {
-           yylval.ival = O_EXEC;
-           OPERATOR(PRINT);
-       }
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'f': case 'F':
-       SNARFWORD;
-       if (strEQ(d,"for"))
-           OPERATOR(FOR);
-       if (strEQ(d,"format")) {
-           in_format = TRUE;
-           OPERATOR(FORMAT);
-       }
-       if (strEQ(d,"fork"))
-           FUN0(O_FORK);
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'g': case 'G':
-       SNARFWORD;
-       if (strEQ(d,"gt") || strEQ(d,"GT"))
-           OPERATOR(SGT);
-       if (strEQ(d,"ge") || strEQ(d,"GE"))
-           OPERATOR(SGE);
-       if (strEQ(d,"goto"))
-           LOOPX(O_GOTO);
-       if (strEQ(d,"gmtime"))
-           FUN1(O_GMTIME);
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'h': case 'H':
-       SNARFWORD;
-       if (strEQ(d,"hex"))
-           FUN1(O_HEX);
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'i': case 'I':
-       SNARFWORD;
-       if (strEQ(d,"if"))
-           OPERATOR(IF);
-       if (strEQ(d,"index"))
-           FUN2(O_INDEX);
-       if (strEQ(d,"int"))
-           FUN1(O_INT);
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'j': case 'J':
-       SNARFWORD;
-       if (strEQ(d,"join"))
-           OPERATOR(JOIN);
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'k': case 'K':
-       SNARFWORD;
-       if (strEQ(d,"keys"))
-           SFUN(O_KEYS);
-       if (strEQ(d,"kill")) {
-           yylval.ival = O_KILL;
-           OPERATOR(PRINT);
-       }
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'l': case 'L':
-       SNARFWORD;
-       if (strEQ(d,"last"))
-           LOOPX(O_LAST);
-       if (strEQ(d,"length"))
-           FUN1(O_LENGTH);
-       if (strEQ(d,"lt") || strEQ(d,"LT"))
-           OPERATOR(SLT);
-       if (strEQ(d,"le") || strEQ(d,"LE"))
-           OPERATOR(SLE);
-       if (strEQ(d,"localtime"))
-           FUN1(O_LOCALTIME);
-       if (strEQ(d,"log"))
-           FUN1(O_LOG);
-       if (strEQ(d,"link"))
-           FUN2(O_LINK);
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'm': case 'M':
-       SNARFWORD;
-       if (strEQ(d,"m")) {
-           s = scanpat(s-1);
-           TERM(PATTERN);
-       }
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'n': case 'N':
-       SNARFWORD;
-       if (strEQ(d,"next"))
-           LOOPX(O_NEXT);
-       if (strEQ(d,"ne") || strEQ(d,"NE"))
-           OPERATOR(SNE);
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'o': case 'O':
-       SNARFWORD;
-       if (strEQ(d,"open"))
-           OPERATOR(OPEN);
-       if (strEQ(d,"ord"))
-           FUN1(O_ORD);
-       if (strEQ(d,"oct"))
-           FUN1(O_OCT);
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'p': case 'P':
-       SNARFWORD;
-       if (strEQ(d,"print")) {
-           yylval.ival = O_PRINT;
-           OPERATOR(PRINT);
-       }
-       if (strEQ(d,"printf")) {
-           yylval.ival = O_PRTF;
-           OPERATOR(PRINT);
-       }
-       if (strEQ(d,"push")) {
-           yylval.ival = O_PUSH;
-           OPERATOR(PUSH);
-       }
-       if (strEQ(d,"pop"))
-           OPERATOR(POP);
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'q': case 'Q':
-       SNARFWORD;
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'r': case 'R':
-       SNARFWORD;
-       if (strEQ(d,"reset"))
-           UNI(O_RESET);
-       if (strEQ(d,"redo"))
-           LOOPX(O_REDO);
-       if (strEQ(d,"rename"))
-           FUN2(O_RENAME);
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 's': case 'S':
-       SNARFWORD;
-       if (strEQ(d,"s")) {
-           s = scansubst(s);
-           TERM(SUBST);
-       }
-       if (strEQ(d,"shift"))
-           TERM(SHIFT);
-       if (strEQ(d,"split"))
-           TERM(SPLIT);
-       if (strEQ(d,"substr"))
-           FUN3(O_SUBSTR);
-       if (strEQ(d,"sprintf"))
-           OPERATOR(SPRINTF);
-       if (strEQ(d,"sub"))
-           OPERATOR(SUB);
-       if (strEQ(d,"select"))
-           OPERATOR(SELECT);
-       if (strEQ(d,"seek"))
-           OPERATOR(SEEK);
-       if (strEQ(d,"stat"))
-           OPERATOR(STAT);
-       if (strEQ(d,"sqrt"))
-           FUN1(O_SQRT);
-       if (strEQ(d,"sleep"))
-           UNI(O_SLEEP);
-       if (strEQ(d,"system")) {
-           yylval.ival = O_SYSTEM;
-           OPERATOR(PRINT);
-       }
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 't': case 'T':
-       SNARFWORD;
-       if (strEQ(d,"tr")) {
-           s = scantrans(s);
-           TERM(TRANS);
-       }
-       if (strEQ(d,"tell"))
-           TERM(TELL);
-       if (strEQ(d,"time"))
-           FUN0(O_TIME);
-       if (strEQ(d,"times"))
-           FUN0(O_TMS);
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'u': case 'U':
-       SNARFWORD;
-       if (strEQ(d,"using"))
-           OPERATOR(USING);
-       if (strEQ(d,"until"))
-           OPERATOR(UNTIL);
-       if (strEQ(d,"unless"))
-           OPERATOR(UNLESS);
-       if (strEQ(d,"umask"))
-           FUN1(O_UMASK);
-       if (strEQ(d,"unshift")) {
-           yylval.ival = O_UNSHIFT;
-           OPERATOR(PUSH);
-       }
-       if (strEQ(d,"unlink")) {
-           yylval.ival = O_UNLINK;
-           OPERATOR(PRINT);
-       }
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'v': case 'V':
-       SNARFWORD;
-       if (strEQ(d,"values"))
-           SFUN(O_VALUES);
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'w': case 'W':
-       SNARFWORD;
-       if (strEQ(d,"write"))
-           TERM(WRITE);
-       if (strEQ(d,"while"))
-           OPERATOR(WHILE);
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'x': case 'X':
-       SNARFWORD;
-       if (!expectterm && strEQ(d,"x"))
-           OPERATOR('x');
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'y': case 'Y':
-       SNARFWORD;
-       if (strEQ(d,"y")) {
-           s = scantrans(s);
-           TERM(TRANS);
-       }
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    case 'z': case 'Z':
-       SNARFWORD;
-       yylval.cval = savestr(d);
-       OPERATOR(WORD);
-    }
-}
-
-STAB *
-stabent(name,add)
-register char *name;
-int add;
-{
-    register STAB *stab;
-
-    for (stab = stab_index[*name]; stab; stab = stab->stab_next) {
-       if (strEQ(name,stab->stab_name))
-           return stab;
-    }
-    
-    /* no entry--should we add one? */
-
-    if (add) {
-       stab = (STAB *) safemalloc(sizeof(STAB));
-       bzero((char*)stab, sizeof(STAB));
-       stab->stab_name = savestr(name);
-       stab->stab_val = str_new(0);
-       stab->stab_next = stab_index[*name];
-       stab_index[*name] = stab;
-       return stab;
-    }
-    return Nullstab;
-}
-
-STIO *
-stio_new()
-{
-    STIO *stio = (STIO *) safemalloc(sizeof(STIO));
-
-    bzero((char*)stio, sizeof(STIO));
-    stio->page_len = 60;
-    return stio;
-}
-
-char *
-scanreg(s,dest)
-register char *s;
-char *dest;
-{
-    register char *d;
-
-    s++;
-    d = dest;
-    while (isalpha(*s) || isdigit(*s) || *s == '_')
-       *d++ = *s++;
-    *d = '\0';
-    d = dest;
-    if (!*d) {
-       *d = *s++;
-       if (*d == '{') {
-           d = dest;
-           while (*s && *s != '}')
-               *d++ = *s++;
-           *d = '\0';
-           d = dest;
-           if (*s)
-               s++;
-       }
-       else
-           d[1] = '\0';
-    }
-    if (*d == '^' && !isspace(*s))
-       *d = *s++ & 31;
-    return s;
-}
-
-STR *
-scanconst(string)
-char *string;
-{
-    register STR *retstr;
-    register char *t;
-    register char *d;
-
-    if (index(string,'|')) {
-       return Nullstr;
-    }
-    retstr = str_make(string);
-    t = str_get(retstr);
-    for (d=t; *d; ) {
-       switch (*d) {
-       case '.': case '[': case '$': case '(': case ')': case '|':
-           *d = '\0';
-           break;
-       case '\\':
-           if (index("wWbB0123456789",d[1])) {
-               *d = '\0';
-               break;
-           }
-           strcpy(d,d+1);
-           switch(*d) {
-           case 'n':
-               *d = '\n';
-               break;
-           case 't':
-               *d = '\t';
-               break;
-           case 'f':
-               *d = '\f';
-               break;
-           case 'r':
-               *d = '\r';
-               break;
-           }
-           /* FALL THROUGH */
-       default:
-           if (d[1] == '*' || d[1] == '+' || d[1] == '?') {
-               *d = '\0';
-               break;
-           }
-           d++;
-       }
-    }
-    if (!*t) {
-       str_free(retstr);
-       return Nullstr;
-    }
-    retstr->str_cur = strlen(retstr->str_ptr); /* XXX cheating here */
-    return retstr;
-}
-
-char *
-scanpat(s)
-register char *s;
-{
-    register SPAT *spat = (SPAT *) safemalloc(sizeof (SPAT));
-    register char *d;
-
-    bzero((char *)spat, sizeof(SPAT));
-    spat->spat_next = spat_root;       /* link into spat list */
-    spat_root = spat;
-    init_compex(&spat->spat_compex);
-
-    switch (*s++) {
-    case 'm':
-       s++;
-       break;
-    case '/':
-       break;
-    case '?':
-       spat->spat_flags |= SPAT_USE_ONCE;
-       break;
-    default:
-       fatal("Search pattern not found:\n%s",str_get(linestr));
-    }
-    s = cpytill(tokenbuf,s,s[-1]);
-    if (!*s)
-       fatal("Search pattern not terminated:\n%s",str_get(linestr));
-    s++;
-    if (*tokenbuf == '^') {
-       spat->spat_first = scanconst(tokenbuf+1);
-       if (spat->spat_first) {
-           spat->spat_flen = strlen(spat->spat_first->str_ptr);
-           if (spat->spat_flen == strlen(tokenbuf+1))
-               spat->spat_flags |= SPAT_SCANALL;
-       }
-    }
-    else {
-       spat->spat_flags |= SPAT_SCANFIRST;
-       spat->spat_first = scanconst(tokenbuf);
-       if (spat->spat_first) {
-           spat->spat_flen = strlen(spat->spat_first->str_ptr);
-           if (spat->spat_flen == strlen(tokenbuf))
-               spat->spat_flags |= SPAT_SCANALL;
-       }
-    }  
-    if (d = compile(&spat->spat_compex,tokenbuf,TRUE,FALSE))
-       fatal(d);
-    yylval.arg = make_match(O_MATCH,stab_to_arg(A_STAB,defstab),spat);
-    return s;
-}
-
-char *
-scansubst(s)
-register char *s;
-{
-    register SPAT *spat = (SPAT *) safemalloc(sizeof (SPAT));
-    register char *d;
-
-    bzero((char *)spat, sizeof(SPAT));
-    spat->spat_next = spat_root;       /* link into spat list */
-    spat_root = spat;
-    init_compex(&spat->spat_compex);
-
-    s = cpytill(tokenbuf,s+1,*s);
-    if (!*s)
-       fatal("Substitution pattern not terminated:\n%s",str_get(linestr));
-    for (d=tokenbuf; *d; d++) {
-       if (*d == '$' && d[1] && d[-1] != '\\' && d[1] != '|') {
-           register ARG *arg;
-
-           spat->spat_runtime = arg = op_new(1);
-           arg->arg_type = O_ITEM;
-           arg[1].arg_type = A_DOUBLE;
-           arg[1].arg_ptr.arg_str = str_make(tokenbuf);
-           goto get_repl;              /* skip compiling for now */
-       }
-    }
-    if (*tokenbuf == '^') {
-       spat->spat_first = scanconst(tokenbuf+1);
-       if (spat->spat_first)
-           spat->spat_flen = strlen(spat->spat_first->str_ptr);
-    }
-    else {
-       spat->spat_flags |= SPAT_SCANFIRST;
-       spat->spat_first = scanconst(tokenbuf);
-       if (spat->spat_first)
-           spat->spat_flen = strlen(spat->spat_first->str_ptr);
-    }  
-    if (d = compile(&spat->spat_compex,tokenbuf,TRUE,FALSE))
-       fatal(d);
-get_repl:
-    s = scanstr(s);
-    if (!*s)
-       fatal("Substitution replacement not terminated:\n%s",str_get(linestr));
-    spat->spat_repl = yylval.arg;
-    if (*s == 'g') {
-       s++;
-       spat->spat_flags &= ~SPAT_USE_ONCE;
-    }
-    else
-       spat->spat_flags |= SPAT_USE_ONCE;
-    yylval.arg = make_match(O_SUBST,stab_to_arg(A_STAB,defstab),spat);
-    return s;
-}
-
-ARG *
-make_split(stab,arg)
-register STAB *stab;
-register ARG *arg;
-{
-    if (arg->arg_type != O_MATCH) {
-       register SPAT *spat = (SPAT *) safemalloc(sizeof (SPAT));
-       register char *d;
-
-       bzero((char *)spat, sizeof(SPAT));
-       spat->spat_next = spat_root;    /* link into spat list */
-       spat_root = spat;
-       init_compex(&spat->spat_compex);
-
-       spat->spat_runtime = arg;
-       arg = make_match(O_MATCH,stab_to_arg(A_STAB,defstab),spat);
-    }
-    arg->arg_type = O_SPLIT;
-    arg[2].arg_ptr.arg_spat->spat_repl = stab_to_arg(A_STAB,aadd(stab));
-    return arg;
-}
-
-char *
-expand_charset(s)
-register char *s;
-{
-    char t[512];
-    register char *d = t;
-    register int i;
-
-    while (*s) {
-       if (s[1] == '-' && s[2]) {
-           for (i = s[0]; i <= s[2]; i++)
-               *d++ = i;
-           s += 3;
-       }
-       else
-           *d++ = *s++;
-    }
-    *d = '\0';
-    return savestr(t);
-}
-
-char *
-scantrans(s)
-register char *s;
-{
-    ARG *arg =
-       l(make_op(O_TRANS,2,stab_to_arg(A_STAB,defstab),Nullarg,Nullarg,0));
-    register char *t;
-    register char *r;
-    register char *tbl = safemalloc(256);
-    register int i;
-
-    arg[2].arg_type = A_NULL;
-    arg[2].arg_ptr.arg_cval = tbl;
-    for (i=0; i<256; i++)
-       tbl[i] = 0;
-    s = scanstr(s);
-    if (!*s)
-       fatal("Translation pattern not terminated:\n%s",str_get(linestr));
-    t = expand_charset(str_get(yylval.arg[1].arg_ptr.arg_str));
-    free_arg(yylval.arg);
-    s = scanstr(s-1);
-    if (!*s)
-       fatal("Translation replacement not terminated:\n%s",str_get(linestr));
-    r = expand_charset(str_get(yylval.arg[1].arg_ptr.arg_str));
-    free_arg(yylval.arg);
-    yylval.arg = arg;
-    if (!*r) {
-       safefree(r);
-       r = t;
-    }
-    for (i = 0; t[i]; i++) {
-       if (!r[i])
-           r[i] = r[i-1];
-       tbl[t[i] & 0377] = r[i];
-    }
-    if (r != t)
-       safefree(r);
-    safefree(t);
-    return s;
-}
-
-CMD *
-block_head(tail)
-register CMD *tail;
-{
-    if (tail == Nullcmd) {
-       return tail;
-    }
-    return tail->c_head;
-}
-
-CMD *
-append_line(head,tail)
-register CMD *head;
-register CMD *tail;
-{
-    if (tail == Nullcmd)
-       return head;
-    if (!tail->c_head)                 /* make sure tail is well formed */
-       tail->c_head = tail;
-    if (head != Nullcmd) {
-       tail = tail->c_head;            /* get to start of tail list */
-       if (!head->c_head)
-           head->c_head = head;        /* start a new head list */
-       while (head->c_next) {
-           head->c_next->c_head = head->c_head;
-           head = head->c_next;        /* get to end of head list */
-       }
-       head->c_next = tail;            /* link to end of old list */
-       tail->c_head = head->c_head;    /* propagate head pointer */
-    }
-    while (tail->c_next) {
-       tail->c_next->c_head = tail->c_head;
-       tail = tail->c_next;
-    }
-    return tail;
-}
-
-CMD *
-make_acmd(type,stab,cond,arg)
-int type;
-STAB *stab;
-ARG *cond;
-ARG *arg;
-{
-    register CMD *cmd = (CMD *) safemalloc(sizeof (CMD));
-
-    bzero((char *)cmd, sizeof(CMD));
-    cmd->c_type = type;
-    cmd->ucmd.acmd.ac_stab = stab;
-    cmd->ucmd.acmd.ac_expr = arg;
-    cmd->c_expr = cond;
-    if (cond) {
-       opt_arg(cmd,1);
-       cmd->c_flags |= CF_COND;
-    }
-    return cmd;
-}
-
-CMD *
-make_ccmd(type,arg,cblock)
-int type;
-register ARG *arg;
-struct compcmd cblock;
-{
-    register CMD *cmd = (CMD *) safemalloc(sizeof (CMD));
-
-    bzero((char *)cmd, sizeof(CMD));
-    cmd->c_type = type;
-    cmd->c_expr = arg;
-    cmd->ucmd.ccmd.cc_true = cblock.comp_true;
-    cmd->ucmd.ccmd.cc_alt = cblock.comp_alt;
-    if (arg) {
-       opt_arg(cmd,1);
-       cmd->c_flags |= CF_COND;
-    }
-    return cmd;
-}
+int yydebug;
+int yynerrs;
+int yyerrflag;
+int yychar;
+YYSTYPE yyval;
+YYSTYPE yylval;
+#line 563 "perly.y"
+ /* PROGRAM */
+#line 1351 "y.tab.c"
+#define YYABORT goto yyabort
+#define YYACCEPT goto yyaccept
+#define YYERROR goto yyerrlab
+
+struct ysv {
+    short* yyss;
+    YYSTYPE* yyvs;
+    int oldyydebug;
+    int oldyynerrs;
+    int oldyyerrflag;
+    int oldyychar;
+    YYSTYPE oldyyval;
+    YYSTYPE oldyylval;
+};
 
 void
-opt_arg(cmd,fliporflop)
-register CMD *cmd;
-int fliporflop;
-{
-    register ARG *arg;
-    int opt = CFT_EVAL;
-    int sure = 0;
-    ARG *arg2;
-    char *tmps;        /* for True macro */
-    int context = 0;   /* 0 = normal, 1 = before &&, 2 = before || */
-    int flp = fliporflop;
-
-    if (!cmd)
-       return;
-    arg = cmd->c_expr;
-
-    /* Turn "if (!expr)" into "unless (expr)" */
-
-    while (arg->arg_type == O_NOT && arg[1].arg_type == A_EXPR) {
-       cmd->c_flags ^= CF_INVERT;              /* flip sense of cmd */
-       cmd->c_expr = arg[1].arg_ptr.arg_arg;   /* hoist the rest of expr */
-       free_arg(arg);
-       arg = cmd->c_expr;                      /* here we go again */
-    }
-
-    if (!arg->arg_len) {               /* sanity check */
-       cmd->c_flags |= opt;
-       return;
-    }
-
-    /* for "cond .. cond" we set up for the initial check */
-
-    if (arg->arg_type == O_FLIP)
-       context |= 4;
-
-    /* for "cond && expr" and "cond || expr" we can ignore expr, sort of */
-
-    if (arg->arg_type == O_AND)
-       context |= 1;
-    else if (arg->arg_type == O_OR)
-       context |= 2;
-    if (context && arg[flp].arg_type == A_EXPR) {
-       arg = arg[flp].arg_ptr.arg_arg;
-       flp = 1;
-    }
-
-    if (arg[flp].arg_flags & (AF_PRE|AF_POST)) {
-       cmd->c_flags |= opt;
-       return;                         /* side effect, can't optimize */
-    }
-
-    if (arg->arg_type == O_ITEM || arg->arg_type == O_FLIP ||
-      arg->arg_type == O_AND || arg->arg_type == O_OR) {
-       if (arg[flp].arg_type == A_SINGLE) {
-           opt = (str_true(arg[flp].arg_ptr.arg_str) ? CFT_TRUE : CFT_FALSE);
-           cmd->c_first = arg[flp].arg_ptr.arg_str;
-           goto literal;
-       }
-       else if (arg[flp].arg_type == A_STAB || arg[flp].arg_type == A_LVAL) {
-           cmd->c_stab  = arg[flp].arg_ptr.arg_stab;
-           opt = CFT_REG;
-         literal:
-           if (!context) {     /* no && or ||? */
-               free_arg(arg);
-               cmd->c_expr = Nullarg;
-           }
-           if (!(context & 1))
-               cmd->c_flags |= CF_EQSURE;
-           if (!(context & 2))
-               cmd->c_flags |= CF_NESURE;
-       }
-    }
-    else if (arg->arg_type == O_MATCH || arg->arg_type == O_SUBST ||
-             arg->arg_type == O_NMATCH || arg->arg_type == O_NSUBST) {
-       if ((arg[1].arg_type == A_STAB || arg[1].arg_type == A_LVAL) &&
-               arg[2].arg_type == A_SPAT &&
-               arg[2].arg_ptr.arg_spat->spat_first ) {
-           cmd->c_stab  = arg[1].arg_ptr.arg_stab;
-           cmd->c_first = arg[2].arg_ptr.arg_spat->spat_first;
-           cmd->c_flen  = arg[2].arg_ptr.arg_spat->spat_flen;
-           if (arg[2].arg_ptr.arg_spat->spat_flags & SPAT_SCANALL &&
-               (arg->arg_type == O_MATCH || arg->arg_type == O_NMATCH) )
-               sure |= CF_EQSURE;              /* (SUBST must be forced even */
-                                               /* if we know it will work.) */
-           arg[2].arg_ptr.arg_spat->spat_first = Nullstr;
-           arg[2].arg_ptr.arg_spat->spat_flen = 0; /* only one chk */
-           sure |= CF_NESURE;          /* normally only sure if it fails */
-           if (arg->arg_type == O_NMATCH || arg->arg_type == O_NSUBST)
-               cmd->c_flags |= CF_FIRSTNEG;
-           if (context & 1) {          /* only sure if thing is false */
-               if (cmd->c_flags & CF_FIRSTNEG)
-                   sure &= ~CF_NESURE;
-               else
-                   sure &= ~CF_EQSURE;
-           }
-           else if (context & 2) {     /* only sure if thing is true */
-               if (cmd->c_flags & CF_FIRSTNEG)
-                   sure &= ~CF_EQSURE;
-               else
-                   sure &= ~CF_NESURE;
-           }
-           if (sure & (CF_EQSURE|CF_NESURE)) { /* if we know anything*/
-               if (arg[2].arg_ptr.arg_spat->spat_flags & SPAT_SCANFIRST)
-                   opt = CFT_SCAN;
-               else
-                   opt = CFT_ANCHOR;
-               if (sure == (CF_EQSURE|CF_NESURE)       /* really sure? */
-                   && arg->arg_type == O_MATCH
-                   && context & 4
-                   && fliporflop == 1) {
-                   arg[2].arg_type = A_SINGLE;         /* don't do twice */
-                   arg[2].arg_ptr.arg_str = &str_yes;
-               }
-               cmd->c_flags |= sure;
-           }
-       }
-    }
-    else if (arg->arg_type == O_SEQ || arg->arg_type == O_SNE ||
-            arg->arg_type == O_SLT || arg->arg_type == O_SGT) {
-       if (arg[1].arg_type == A_STAB || arg[1].arg_type == A_LVAL) {
-           if (arg[2].arg_type == A_SINGLE) {
-               cmd->c_stab  = arg[1].arg_ptr.arg_stab;
-               cmd->c_first = arg[2].arg_ptr.arg_str;
-               cmd->c_flen  = 30000;
-               switch (arg->arg_type) {
-               case O_SLT: case O_SGT:
-                   sure |= CF_EQSURE;
-                   cmd->c_flags |= CF_FIRSTNEG;
-                   break;
-               case O_SNE:
-                   cmd->c_flags |= CF_FIRSTNEG;
-                   /* FALL THROUGH */
-               case O_SEQ:
-                   sure |= CF_NESURE|CF_EQSURE;
-                   break;
-               }
-               if (context & 1) {      /* only sure if thing is false */
-                   if (cmd->c_flags & CF_FIRSTNEG)
-                       sure &= ~CF_NESURE;
-                   else
-                       sure &= ~CF_EQSURE;
-               }
-               else if (context & 2) { /* only sure if thing is true */
-                   if (cmd->c_flags & CF_FIRSTNEG)
-                       sure &= ~CF_EQSURE;
-                   else
-                       sure &= ~CF_NESURE;
-               }
-               if (sure & (CF_EQSURE|CF_NESURE)) {
-                   opt = CFT_STROP;
-                   cmd->c_flags |= sure;
-               }
-           }
-       }
-    }
-    else if (arg->arg_type == O_ASSIGN &&
-            (arg[1].arg_type == A_STAB || arg[1].arg_type == A_LVAL) &&
-            arg[1].arg_ptr.arg_stab == defstab &&
-            arg[2].arg_type == A_EXPR ) {
-       arg2 = arg[2].arg_ptr.arg_arg;
-       if (arg2->arg_type == O_ITEM && arg2[1].arg_type == A_READ) {
-           opt = CFT_GETS;
-           cmd->c_stab = arg2[1].arg_ptr.arg_stab;
-           if (!(arg2[1].arg_ptr.arg_stab->stab_io->flags & IOF_ARGV)) {
-               free_arg(arg2);
-               free_arg(arg);
-               cmd->c_expr = Nullarg;
-           }
-       }
-    }
-    else if (arg->arg_type == O_CHOP &&
-            (arg[1].arg_type == A_STAB || arg[1].arg_type == A_LVAL) ) {
-       opt = CFT_CHOP;
-       cmd->c_stab = arg[1].arg_ptr.arg_stab;
-       free_arg(arg);
-       cmd->c_expr = Nullarg;
-    }
-    if (context & 4)
-       opt |= CF_FLIP;
-    cmd->c_flags |= opt;
-
-    if (cmd->c_flags & CF_FLIP) {
-       if (fliporflop == 1) {
-           arg = cmd->c_expr;  /* get back to O_FLIP arg */
-           arg[3].arg_ptr.arg_cmd = (CMD*)safemalloc(sizeof(CMD));
-           bcopy((char *)cmd, (char *)arg[3].arg_ptr.arg_cmd, sizeof(CMD));
-           arg[4].arg_ptr.arg_cmd = (CMD*)safemalloc(sizeof(CMD));
-           bcopy((char *)cmd, (char *)arg[4].arg_ptr.arg_cmd, sizeof(CMD));
-           opt_arg(arg[4].arg_ptr.arg_cmd,2);
-           arg->arg_len = 2;           /* this is a lie */
-       }
-       else {
-           if ((opt & CF_OPTIMIZE) == CFT_EVAL)
-               cmd->c_flags = (cmd->c_flags & ~CF_OPTIMIZE) | CFT_UNFLIP;
-       }
-    }
-}
-
-ARG *
-mod_match(type,left,pat)
-register ARG *left;
-register ARG *pat;
-{
-
-    register SPAT *spat;
-    register ARG *newarg;
-
-    if ((pat->arg_type == O_MATCH ||
-        pat->arg_type == O_SUBST ||
-        pat->arg_type == O_TRANS ||
-        pat->arg_type == O_SPLIT
-       ) &&
-       pat[1].arg_ptr.arg_stab == defstab ) {
-       switch (pat->arg_type) {
-       case O_MATCH:
-           newarg = make_op(type == O_MATCH ? O_MATCH : O_NMATCH,
-               pat->arg_len,
-               left,Nullarg,Nullarg,0);
-           break;
-       case O_SUBST:
-           newarg = l(make_op(type == O_MATCH ? O_SUBST : O_NSUBST,
-               pat->arg_len,
-               left,Nullarg,Nullarg,0));
-           break;
-       case O_TRANS:
-           newarg = l(make_op(type == O_MATCH ? O_TRANS : O_NTRANS,
-               pat->arg_len,
-               left,Nullarg,Nullarg,0));
-           break;
-       case O_SPLIT:
-           newarg = make_op(type == O_MATCH ? O_SPLIT : O_SPLIT,
-               pat->arg_len,
-               left,Nullarg,Nullarg,0);
-           break;
-       }
-       if (pat->arg_len >= 2) {
-           newarg[2].arg_type = pat[2].arg_type;
-           newarg[2].arg_ptr = pat[2].arg_ptr;
-           newarg[2].arg_flags = pat[2].arg_flags;
-           if (pat->arg_len >= 3) {
-               newarg[3].arg_type = pat[3].arg_type;
-               newarg[3].arg_ptr = pat[3].arg_ptr;
-               newarg[3].arg_flags = pat[3].arg_flags;
-           }
-       }
-       safefree((char*)pat);
-    }
-    else {
-       spat = (SPAT *) safemalloc(sizeof (SPAT));
-       bzero((char *)spat, sizeof(SPAT));
-       spat->spat_next = spat_root;    /* link into spat list */
-       spat_root = spat;
-       init_compex(&spat->spat_compex);
-
-       spat->spat_runtime = pat;
-       newarg = make_op(type,2,left,Nullarg,Nullarg,0);
-       newarg[2].arg_type = A_SPAT;
-       newarg[2].arg_ptr.arg_spat = spat;
-       newarg[2].arg_flags = AF_SPECIAL;
-    }
-
-    return newarg;
-}
-
-CMD *
-add_label(lbl,cmd)
-char *lbl;
-register CMD *cmd;
-{
-    if (cmd)
-       cmd->c_label = lbl;
-    return cmd;
-}
-
-CMD *
-addcond(cmd, arg)
-register CMD *cmd;
-register ARG *arg;
-{
-    cmd->c_expr = arg;
-    opt_arg(cmd,1);
-    cmd->c_flags |= CF_COND;
-    return cmd;
-}
-
-CMD *
-addloop(cmd, arg)
-register CMD *cmd;
-register ARG *arg;
-{
-    cmd->c_expr = arg;
-    opt_arg(cmd,1);
-    cmd->c_flags |= CF_COND|CF_LOOP;
-    if (cmd->c_type == C_BLOCK)
-       cmd->c_flags &= ~CF_COND;
-    else {
-       arg = cmd->ucmd.acmd.ac_expr;
-       if (arg && arg->arg_type == O_ITEM && arg[1].arg_type == A_CMD)
-           cmd->c_flags &= ~CF_COND;  /* "do {} while" happens at least once */
-       if (arg && arg->arg_type == O_SUBR)
-           cmd->c_flags &= ~CF_COND;  /* likewise for "do subr() while" */
-    }
-    return cmd;
-}
-
-CMD *
-invert(cmd)
-register CMD *cmd;
-{
-    cmd->c_flags ^= CF_INVERT;
-    return cmd;
-}
-
-yyerror(s)
-char *s;
-{
-    char tmpbuf[128];
-    char *tname = tmpbuf;
-
-    if (yychar > 256) {
-       tname = tokename[yychar-256];
-       if (strEQ(tname,"word"))
-           strcpy(tname,tokenbuf);
-       else if (strEQ(tname,"register"))
-           sprintf(tname,"$%s",tokenbuf);
-       else if (strEQ(tname,"array_length"))
-           sprintf(tname,"$#%s",tokenbuf);
-    }
-    else if (!yychar)
-       strcpy(tname,"EOF");
-    else if (yychar < 32)
-       sprintf(tname,"^%c",yychar+64);
-    else if (yychar == 127)
-       strcpy(tname,"^?");
-    else
-       sprintf(tname,"%c",yychar);
-    sprintf(tokenbuf, "%s in file %s at line %d, next token \"%s\"\n",
-      s,filename,line,tname);
-    if (in_eval)
-       str_set(stabent("@",TRUE)->stab_val,tokenbuf);
-    else
-       fputs(tokenbuf,stderr);
-}
-
-char *
-scanstr(s)
-register char *s;
+yydestruct(ptr)
+void* ptr;
 {
-    register char term;
-    register char *d;
-    register ARG *arg;
-    register bool makesingle = FALSE;
-    char *leave = "\\$nrtfb0123456789";        /* which backslash sequences to keep */
-
-    arg = op_new(1);
-    yylval.arg = arg;
-    arg->arg_type = O_ITEM;
-
-    switch (*s) {
-    default:                   /* a substitution replacement */
-       arg[1].arg_type = A_DOUBLE;
-       makesingle = TRUE;      /* maybe disable runtime scanning */
-       term = *s;
-       if (term == '\'')
-           leave = Nullch;
-       goto snarf_it;
-    case '0':
-       {
-           long i;
-           int shift;
-
-           arg[1].arg_type = A_SINGLE;
-           if (s[1] == 'x') {
-               shift = 4;
-               s += 2;
-           }
-           else if (s[1] == '.')
-               goto decimal;
-           else
-               shift = 3;
-           i = 0;
-           for (;;) {
-               switch (*s) {
-               default:
-                   goto out;
-               case '8': case '9':
-                   if (shift != 4)
-                       fatal("Illegal octal digit at line %d",line);
-                   /* FALL THROUGH */
-               case '0': case '1': case '2': case '3': case '4':
-               case '5': case '6': case '7':
-                   i <<= shift;
-                   i += *s++ & 15;
-                   break;
-               case 'a': case 'b': case 'c': case 'd': case 'e': case 'f':
-               case 'A': case 'B': case 'C': case 'D': case 'E': case 'F':
-                   if (shift != 4)
-                       goto out;
-                   i <<= 4;
-                   i += (*s++ & 7) + 9;
-                   break;
-               }
-           }
-         out:
-           sprintf(tokenbuf,"%d",i);
-           arg[1].arg_ptr.arg_str = str_make(tokenbuf);
-       }
-       break;
-    case '1': case '2': case '3': case '4': case '5':
-    case '6': case '7': case '8': case '9': case '.':
-      decimal:
-       arg[1].arg_type = A_SINGLE;
-       d = tokenbuf;
-       while (isdigit(*s) || *s == '_')
-           *d++ = *s++;
-       if (*s == '.' && index("0123456789eE",s[1]))
-           *d++ = *s++;
-       while (isdigit(*s) || *s == '_')
-           *d++ = *s++;
-       if (index("eE",*s) && index("+-0123456789",s[1]))
-           *d++ = *s++;
-       if (*s == '+' || *s == '-')
-           *d++ = *s++;
-       while (isdigit(*s))
-           *d++ = *s++;
-       *d = '\0';
-       arg[1].arg_ptr.arg_str = str_make(tokenbuf);
-       break;
-    case '\'':
-       arg[1].arg_type = A_SINGLE;
-       term = *s;
-       leave = Nullch;
-       goto snarf_it;
-
-    case '<':
-       arg[1].arg_type = A_READ;
-       s = cpytill(tokenbuf,s+1,'>');
-       if (!*tokenbuf)
-           strcpy(tokenbuf,"ARGV");
-       if (*s)
-           s++;
-       if (rsfp == stdin && strEQ(tokenbuf,"stdin"))
-           fatal("Can't get both program and data from <stdin>\n");
-       arg[1].arg_ptr.arg_stab = stabent(tokenbuf,TRUE);
-       arg[1].arg_ptr.arg_stab->stab_io = stio_new();
-       if (strEQ(tokenbuf,"ARGV")) {
-           aadd(arg[1].arg_ptr.arg_stab);
-           arg[1].arg_ptr.arg_stab->stab_io->flags |= IOF_ARGV|IOF_START;
-       }
-       break;
-    case '"': 
-       arg[1].arg_type = A_DOUBLE;
-       makesingle = TRUE;      /* maybe disable runtime scanning */
-       term = *s;
-       goto snarf_it;
-    case '`':
-       arg[1].arg_type = A_BACKTICK;
-       term = *s;
-      snarf_it:
-       {
-           STR *tmpstr;
-           int sqstart = line;
-           char *tmps;
-
-           tmpstr = str_new(strlen(s));
-           s = str_append_till(tmpstr,s+1,term,leave);
-           while (!*s) {       /* multiple line string? */
-               s = str_gets(linestr, rsfp);
-               if (!*s)
-                   fatal("EOF in string at line %d\n",sqstart);
-               line++;
-               s = str_append_till(tmpstr,s,term,leave);
-           }
-           s++;
-           if (term == '\'') {
-               arg[1].arg_ptr.arg_str = tmpstr;
-               break;
-           }
-           tmps = s;
-           s = d = tmpstr->str_ptr;    /* assuming shrinkage only */
-           while (*s) {
-               if (*s == '$' && s[1]) {
-                   makesingle = FALSE; /* force interpretation */
-                   if (!isalpha(s[1])) {       /* an internal register? */
-                       int len;
-
-                       len = scanreg(s,tokenbuf) - s;
-                       stabent(tokenbuf,TRUE); /* make sure it's created */
-                       while (len--)
-                           *d++ = *s++;
-                       continue;
-                   }
-               }
-               else if (*s == '\\' && s[1]) {
-                   s++;
-                   switch (*s) {
-                   default:
-                     defchar:
-                       if (!leave || index(leave,*s))
-                           *d++ = '\\';
-                       *d++ = *s++;
-                       continue;
-                   case '0': case '1': case '2': case '3':
-                   case '4': case '5': case '6': case '7':
-                       *d = *s++ - '0';
-                       if (index("01234567",*s)) {
-                           *d <<= 3;
-                           *d += *s++ - '0';
-                       }
-                       else if (!index("`\"",term)) {  /* oops, a subpattern */
-                           s--;
-                           goto defchar;
-                       }
-                       if (index("01234567",*s)) {
-                           *d <<= 3;
-                           *d += *s++ - '0';
-                       }
-                       d++;
-                       continue;
-                   case 'b':
-                       *d++ = '\b';
-                       break;
-                   case 'n':
-                       *d++ = '\n';
-                       break;
-                   case 'r':
-                       *d++ = '\r';
-                       break;
-                   case 'f':
-                       *d++ = '\f';
-                       break;
-                   case 't':
-                       *d++ = '\t';
-                       break;
-                   }
-                   s++;
-                   continue;
-               }
-               *d++ = *s++;
-           }
-           *d = '\0';
-           if (arg[1].arg_type == A_DOUBLE) {
-               if (makesingle)
-                   arg[1].arg_type = A_SINGLE; /* now we can optimize on it */
-               else
-                   leave = "\\";
-               for (d = s = tmpstr->str_ptr; *s; *d++ = *s++) {
-                   if (*s == '\\' && (!leave || index(leave,s[1])))
-                       s++;
-               }
-               *d = '\0';
-           }
-           tmpstr->str_cur = d - tmpstr->str_ptr;      /* XXX cheat */
-           arg[1].arg_ptr.arg_str = tmpstr;
-           s = tmps;
-           break;
-       }
-    }
-    return s;
+    struct ysv* ysave = (struct ysv*)ptr;
+    if (ysave->yyss) Safefree(ysave->yyss);
+    if (ysave->yyvs) Safefree(ysave->yyvs);
+    yydebug    = ysave->oldyydebug;
+    yynerrs    = ysave->oldyynerrs;
+    yyerrflag  = ysave->oldyyerrflag;
+    yychar     = ysave->oldyychar;
+    yyval      = ysave->oldyyval;
+    yylval     = ysave->oldyylval;
+    Safefree(ysave);
 }
 
-ARG *
-make_op(type,newlen,arg1,arg2,arg3,dolist)
-int type;
-int newlen;
-ARG *arg1;
-ARG *arg2;
-ARG *arg3;
-int dolist;
+int
+yyparse()
 {
-    register ARG *arg;
-    register ARG *chld;
-    register int doarg;
-
-    arg = op_new(newlen);
-    arg->arg_type = type;
-    doarg = opargs[type];
-    if (chld = arg1) {
-       if (!(doarg & 1))
-           arg[1].arg_flags |= AF_SPECIAL;
-       if (doarg & 16)
-           arg[1].arg_flags |= AF_NUMERIC;
-       if (chld->arg_type == O_ITEM &&
-           (hoistable[chld[1].arg_type] || chld[1].arg_type == A_LVAL) ) {
-           arg[1].arg_type = chld[1].arg_type;
-           arg[1].arg_ptr = chld[1].arg_ptr;
-           arg[1].arg_flags |= chld[1].arg_flags;
-           free_arg(chld);
-       }
-       else {
-           arg[1].arg_type = A_EXPR;
-           arg[1].arg_ptr.arg_arg = chld;
-           if (dolist & 1) {
-               if (chld->arg_type == O_LIST) {
-                   if (newlen == 1) {  /* we can hoist entire list */
-                       chld->arg_type = type;
-                       free_arg(arg);
-                       arg = chld;
-                   }
-                   else {
-                       arg[1].arg_flags |= AF_SPECIAL;
-                   }
-               }
-               else if (chld->arg_type == O_ARRAY && chld->arg_len == 1)
-                   arg[1].arg_flags |= AF_SPECIAL;
-           }
-       }
-    }
-    if (chld = arg2) {
-       if (!(doarg & 2))
-           arg[2].arg_flags |= AF_SPECIAL;
-       if (doarg & 32)
-           arg[2].arg_flags |= AF_NUMERIC;
-       if (chld->arg_type == O_ITEM && 
-           (hoistable[chld[1].arg_type] || 
-            (type == O_ASSIGN && 
-             (chld[1].arg_type == A_READ ||
-              chld[1].arg_type == A_DOUBLE ||
-              chld[1].arg_type == A_BACKTICK ) ) ) ) {
-           arg[2].arg_type = chld[1].arg_type;
-           arg[2].arg_ptr = chld[1].arg_ptr;
-           free_arg(chld);
-       }
-       else {
-           arg[2].arg_type = A_EXPR;
-           arg[2].arg_ptr.arg_arg = chld;
-           if ((dolist & 2) &&
-             (chld->arg_type == O_LIST ||
-              (chld->arg_type == O_ARRAY && chld->arg_len == 1) ))
-               arg[2].arg_flags |= AF_SPECIAL;
-       }
-    }
-    if (chld = arg3) {
-       if (!(doarg & 4))
-           arg[3].arg_flags |= AF_SPECIAL;
-       if (doarg & 64)
-           arg[3].arg_flags |= AF_NUMERIC;
-       if (chld->arg_type == O_ITEM && hoistable[chld[1].arg_type]) {
-           arg[3].arg_type = chld[1].arg_type;
-           arg[3].arg_ptr = chld[1].arg_ptr;
-           free_arg(chld);
-       }
-       else {
-           arg[3].arg_type = A_EXPR;
-           arg[3].arg_ptr.arg_arg = chld;
-           if ((dolist & 4) &&
-             (chld->arg_type == O_LIST ||
-              (chld->arg_type == O_ARRAY && chld->arg_len == 1) ))
-               arg[3].arg_flags |= AF_SPECIAL;
-       }
-    }
-#ifdef DEBUGGING
-    if (debug & 16) {
-       fprintf(stderr,"%lx <= make_op(%s",arg,opname[arg->arg_type]);
-       if (arg1)
-           fprintf(stderr,",%s=%lx",
-               argname[arg[1].arg_type],arg[1].arg_ptr.arg_arg);
-       if (arg2)
-           fprintf(stderr,",%s=%lx",
-               argname[arg[2].arg_type],arg[2].arg_ptr.arg_arg);
-       if (arg3)
-           fprintf(stderr,",%s=%lx",
-               argname[arg[3].arg_type],arg[3].arg_ptr.arg_arg);
-       fprintf(stderr,")\n");
-    }
+    register int yym, yyn, yystate;
+    register short *yyssp;
+    register YYSTYPE *yyvsp;
+    short* yyss;
+    YYSTYPE* yyvs;
+    unsigned yystacksize = YYSTACKSIZE;
+    int retval = 0;
+#if YYDEBUG
+    register char *yys;
+    extern char *getenv();
 #endif
-    evalstatic(arg);           /* see if we can consolidate anything */
-    return arg;
-}
-
-/* turn 123 into 123 == $. */
-
-ARG *
-flipflip(arg)
-register ARG *arg;
-{
-    if (arg && arg->arg_type == O_ITEM && arg[1].arg_type == A_SINGLE) {
-       arg = (ARG*)saferealloc((char*)arg,3*sizeof(ARG));
-       arg->arg_type = O_EQ;
-       arg->arg_len = 2;
-       arg[2].arg_type = A_STAB;
-       arg[2].arg_flags = 0;
-       arg[2].arg_ptr.arg_stab = stabent(".",TRUE);
-    }
-    return arg;
-}
-
-void
-evalstatic(arg)
-register ARG *arg;
-{
-    register STR *str;
-    register STR *s1;
-    register STR *s2;
-    double value;              /* must not be register */
-    register char *tmps;
-    int i;
-    double exp(), log(), sqrt(), modf();
-    char *crypt();
 
-    if (!arg || !arg->arg_len)
-       return;
-
-    if (arg[1].arg_type == A_SINGLE &&
-        (arg->arg_len == 1 || arg[2].arg_type == A_SINGLE) ) {
-       str = str_new(0);
-       s1 = arg[1].arg_ptr.arg_str;
-       if (arg->arg_len > 1)
-           s2 = arg[2].arg_ptr.arg_str;
-       else
-           s2 = Nullstr;
-       switch (arg->arg_type) {
-       default:
-           str_free(str);
-           str = Nullstr;              /* can't be evaluated yet */
-           break;
-       case O_CONCAT:
-           str_sset(str,s1);
-           str_scat(str,s2);
-           break;
-       case O_REPEAT:
-           i = (int)str_gnum(s2);
-           while (i--)
-               str_scat(str,s1);
-           break;
-       case O_MULTIPLY:
-           value = str_gnum(s1);
-           str_numset(str,value * str_gnum(s2));
-           break;
-       case O_DIVIDE:
-           value = str_gnum(s1);
-           str_numset(str,value / str_gnum(s2));
-           break;
-       case O_MODULO:
-           value = str_gnum(s1);
-           str_numset(str,(double)(((long)value) % ((long)str_gnum(s2))));
-           break;
-       case O_ADD:
-           value = str_gnum(s1);
-           str_numset(str,value + str_gnum(s2));
-           break;
-       case O_SUBTRACT:
-           value = str_gnum(s1);
-           str_numset(str,value - str_gnum(s2));
-           break;
-       case O_LEFT_SHIFT:
-           value = str_gnum(s1);
-           str_numset(str,(double)(((long)value) << ((long)str_gnum(s2))));
-           break;
-       case O_RIGHT_SHIFT:
-           value = str_gnum(s1);
-           str_numset(str,(double)(((long)value) >> ((long)str_gnum(s2))));
-           break;
-       case O_LT:
-           value = str_gnum(s1);
-           str_numset(str,(double)(value < str_gnum(s2)));
-           break;
-       case O_GT:
-           value = str_gnum(s1);
-           str_numset(str,(double)(value > str_gnum(s2)));
-           break;
-       case O_LE:
-           value = str_gnum(s1);
-           str_numset(str,(double)(value <= str_gnum(s2)));
-           break;
-       case O_GE:
-           value = str_gnum(s1);
-           str_numset(str,(double)(value >= str_gnum(s2)));
-           break;
-       case O_EQ:
-           value = str_gnum(s1);
-           str_numset(str,(double)(value == str_gnum(s2)));
-           break;
-       case O_NE:
-           value = str_gnum(s1);
-           str_numset(str,(double)(value != str_gnum(s2)));
-           break;
-       case O_BIT_AND:
-           value = str_gnum(s1);
-           str_numset(str,(double)(((long)value) & ((long)str_gnum(s2))));
-           break;
-       case O_XOR:
-           value = str_gnum(s1);
-           str_numset(str,(double)(((long)value) ^ ((long)str_gnum(s2))));
-           break;
-       case O_BIT_OR:
-           value = str_gnum(s1);
-           str_numset(str,(double)(((long)value) | ((long)str_gnum(s2))));
-           break;
-       case O_AND:
-           if (str_true(s1))
-               str = str_make(str_get(s2));
-           else
-               str = str_make(str_get(s1));
-           break;
-       case O_OR:
-           if (str_true(s1))
-               str = str_make(str_get(s1));
-           else
-               str = str_make(str_get(s2));
-           break;
-       case O_COND_EXPR:
-           if (arg[3].arg_type != A_SINGLE) {
-               str_free(str);
-               str = Nullstr;
-           }
-           else {
-               str = str_make(str_get(str_true(s1) ? s2 : arg[3].arg_ptr.arg_str));
-               str_free(arg[3].arg_ptr.arg_str);
-           }
-           break;
-       case O_NEGATE:
-           str_numset(str,(double)(-str_gnum(s1)));
-           break;
-       case O_NOT:
-           str_numset(str,(double)(!str_true(s1)));
-           break;
-       case O_COMPLEMENT:
-           str_numset(str,(double)(~(long)str_gnum(s1)));
-           break;
-       case O_LENGTH:
-           str_numset(str, (double)str_len(s1));
-           break;
-       case O_SUBSTR:
-           if (arg[3].arg_type != A_SINGLE || stabent("[",allstabs)) {
-               str_free(str);          /* making the fallacious assumption */
-               str = Nullstr;          /* that any $[ occurs before substr()*/
-           }
-           else {
-               char *beg;
-               int len = (int)str_gnum(s2);
-               int tmp;
-
-               for (beg = str_get(s1); *beg && len > 0; beg++,len--) ;
-               len = (int)str_gnum(arg[3].arg_ptr.arg_str);
-               str_free(arg[3].arg_ptr.arg_str);
-               if (len > (tmp = strlen(beg)))
-                   len = tmp;
-               str_nset(str,beg,len);
-           }
-           break;
-       case O_SLT:
-           tmps = str_get(s1);
-           str_numset(str,(double)(strLT(tmps,str_get(s2))));
-           break;
-       case O_SGT:
-           tmps = str_get(s1);
-           str_numset(str,(double)(strGT(tmps,str_get(s2))));
-           break;
-       case O_SLE:
-           tmps = str_get(s1);
-           str_numset(str,(double)(strLE(tmps,str_get(s2))));
-           break;
-       case O_SGE:
-           tmps = str_get(s1);
-           str_numset(str,(double)(strGE(tmps,str_get(s2))));
-           break;
-       case O_SEQ:
-           tmps = str_get(s1);
-           str_numset(str,(double)(strEQ(tmps,str_get(s2))));
-           break;
-       case O_SNE:
-           tmps = str_get(s1);
-           str_numset(str,(double)(strNE(tmps,str_get(s2))));
-           break;
-       case O_CRYPT:
-           tmps = str_get(s1);
-           str_set(str,crypt(tmps,str_get(s2)));
-           break;
-       case O_EXP:
-           str_numset(str,exp(str_gnum(s1)));
-           break;
-       case O_LOG:
-           str_numset(str,log(str_gnum(s1)));
-           break;
-       case O_SQRT:
-           str_numset(str,sqrt(str_gnum(s1)));
-           break;
-       case O_INT:
-           modf(str_gnum(s1),&value);
-           str_numset(str,value);
-           break;
-       case O_ORD:
-           str_numset(str,(double)(*str_get(s1)));
-           break;
-       }
-       if (str) {
-           arg->arg_type = O_ITEM;     /* note arg1 type is already SINGLE */
-           str_free(s1);
-           str_free(s2);
-           arg[1].arg_ptr.arg_str = str;
-       }
+    struct ysv *ysave = (struct ysv*)safemalloc(sizeof(struct ysv));
+    SAVEDESTRUCTOR(yydestruct, ysave);
+    ysave->oldyydebug  = yydebug;
+    ysave->oldyynerrs  = yynerrs;
+    ysave->oldyyerrflag        = yyerrflag;
+    ysave->oldyychar   = yychar;
+    ysave->oldyyval    = yyval;
+    ysave->oldyylval   = yylval;
+
+#if YYDEBUG
+    if (yys = getenv("YYDEBUG"))
+    {
+        yyn = *yys;
+        if (yyn >= '0' && yyn <= '9')
+            yydebug = yyn - '0';
     }
-}
-
-ARG *
-l(arg)
-register ARG *arg;
-{
-    register int i;
-    register ARG *arg1;
-
-    arg->arg_flags |= AF_COMMON;       /* XXX should cross-match */
-
-    /* see if it's an array reference */
-
-    if (arg[1].arg_type == A_EXPR) {
-       arg1 = arg[1].arg_ptr.arg_arg;
-
-       if (arg1->arg_type == O_LIST && arg->arg_type != O_ITEM) {
-                                               /* assign to list */
-           arg[1].arg_flags |= AF_SPECIAL;
-           arg[2].arg_flags |= AF_SPECIAL;
-           for (i = arg1->arg_len; i >= 1; i--) {
-               switch (arg1[i].arg_type) {
-               case A_STAB: case A_LVAL:
-                   arg1[i].arg_type = A_LVAL;
-                   break;
-               case A_EXPR: case A_LEXPR:
-                   arg1[i].arg_type = A_LEXPR;
-                   if (arg1[i].arg_ptr.arg_arg->arg_type == O_ARRAY)
-                       arg1[i].arg_ptr.arg_arg->arg_type = O_LARRAY;
-                   else if (arg1[i].arg_ptr.arg_arg->arg_type == O_HASH)
-                       arg1[i].arg_ptr.arg_arg->arg_type = O_LHASH;
-                   if (arg1[i].arg_ptr.arg_arg->arg_type == O_LARRAY)
-                       break;
-                   if (arg1[i].arg_ptr.arg_arg->arg_type == O_LHASH)
-                       break;
-                   /* FALL THROUGH */
-               default:
-                   sprintf(tokenbuf,
-                     "Illegal item (%s) as lvalue",argname[arg1[i].arg_type]);
-                   yyerror(tokenbuf);
-               }
-           }
-       }
-       else if (arg1->arg_type == O_ARRAY) {
-           if (arg1->arg_len == 1 && arg->arg_type != O_ITEM) {
-                                               /* assign to array */
-               arg[1].arg_flags |= AF_SPECIAL;
-               arg[2].arg_flags |= AF_SPECIAL;
-           }
-           else
-               arg1->arg_type = O_LARRAY;      /* assign to array elem */
-       }
-       else if (arg1->arg_type == O_HASH)
-           arg1->arg_type = O_LHASH;
-       else {
-           sprintf(tokenbuf,
-             "Illegal expression (%s) as lvalue",opname[arg1->arg_type]);
-           yyerror(tokenbuf);
-       }
-       arg[1].arg_type = A_LEXPR;
-#ifdef DEBUGGING
-       if (debug & 16)
-           fprintf(stderr,"lval LEXPR\n");
 #endif
-       return arg;
-    }
-
-    /* not an array reference, should be a register name */
 
-    if (arg[1].arg_type != A_STAB && arg[1].arg_type != A_LVAL) {
-       sprintf(tokenbuf,
-         "Illegal item (%s) as lvalue",argname[arg[1].arg_type]);
-       yyerror(tokenbuf);
-    }
-    arg[1].arg_type = A_LVAL;
-#ifdef DEBUGGING
-    if (debug & 16)
-       fprintf(stderr,"lval LVAL\n");
+    yynerrs = 0;
+    yyerrflag = 0;
+    yychar = (-1);
+
+    /*
+    ** Initialize private stacks (yyparse may be called from an action)
+    */
+    ysave->yyss = yyss = (short*)safemalloc(yystacksize*sizeof(short));
+    ysave->yyvs = yyvs = (YYSTYPE*)safemalloc(yystacksize*sizeof(YYSTYPE));
+    if (!yyvs || !yyss)
+       goto yyoverflow;
+
+    yyssp = yyss;
+    yyvsp = yyvs;
+    *yyssp = yystate = 0;
+
+yyloop:
+    if (yyn = yydefred[yystate]) goto yyreduce;
+    if (yychar < 0)
+    {
+        if ((yychar = yylex()) < 0) yychar = 0;
+#if YYDEBUG
+        if (yydebug)
+        {
+            yys = 0;
+            if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
+            if (!yys) yys = "illegal-symbol";
+            fprintf(stderr, "yydebug: state %d, reading %d (%s)\n", yystate,
+                    yychar, yys);
+        }
 #endif
-    return arg;
-}
-
-ARG *
-addflags(i,flags,arg)
-register ARG *arg;
-{
-    arg[i].arg_flags |= flags;
-    return arg;
-}
-
-ARG *
-hide_ary(arg)
-ARG *arg;
-{
-    if (arg->arg_type == O_ARRAY)
-       return make_op(O_ITEM,1,arg,Nullarg,Nullarg,0);
-    return arg;
-}
-
-ARG *
-make_list(arg)
-register ARG *arg;
-{
-    register int i;
-    register ARG *node;
-    register ARG *nxtnode;
-    register int j;
-    STR *tmpstr;
-
-    if (!arg) {
-       arg = op_new(0);
-       arg->arg_type = O_LIST;
-    }
-    if (arg->arg_type != O_COMMA) {
-       arg->arg_flags |= AF_LISTISH;   /* see listish() below */
-       return arg;
-    }
-    for (i = 2, node = arg; ; i++) {
-       if (node->arg_len < 2)
-           break;
-        if (node[2].arg_type != A_EXPR)
-           break;
-       node = node[2].arg_ptr.arg_arg;
-       if (node->arg_type != O_COMMA)
-           break;
     }
-    if (i > 2) {
-       node = arg;
-       arg = op_new(i);
-       tmpstr = arg->arg_ptr.arg_str;
-       *arg = *node;           /* copy everything except the STR */
-       arg->arg_ptr.arg_str = tmpstr;
-       for (j = 1; ; ) {
-           arg[j++] = node[1];
-           if (j >= i) {
-               arg[j] = node[2];
-               free_arg(node);
-               break;
-           }
-           nxtnode = node[2].arg_ptr.arg_arg;
-           free_arg(node);
-           node = nxtnode;
-       }
-    }
-    arg->arg_type = O_LIST;
-    arg->arg_len = i;
-    return arg;
-}
-
-/* turn a single item into a list */
-
-ARG *
-listish(arg)
-ARG *arg;
-{
-    if (arg->arg_flags & AF_LISTISH)
-       arg = make_op(O_LIST,1,arg,Nullarg,Nullarg,0);
-    return arg;
-}
-
-ARG *
-stab_to_arg(atype,stab)
-int atype;
-register STAB *stab;
-{
-    register ARG *arg;
-
-    arg = op_new(1);
-    arg->arg_type = O_ITEM;
-    arg[1].arg_type = atype;
-    arg[1].arg_ptr.arg_stab = stab;
-    return arg;
-}
-
-ARG *
-cval_to_arg(cval)
-register char *cval;
-{
-    register ARG *arg;
-
-    arg = op_new(1);
-    arg->arg_type = O_ITEM;
-    arg[1].arg_type = A_SINGLE;
-    arg[1].arg_ptr.arg_str = str_make(cval);
-    safefree(cval);
-    return arg;
-}
-
-ARG *
-op_new(numargs)
-int numargs;
-{
-    register ARG *arg;
-
-    arg = (ARG*)safemalloc((numargs + 1) * sizeof (ARG));
-    bzero((char *)arg, (numargs + 1) * sizeof (ARG));
-    arg->arg_ptr.arg_str = str_new(0);
-    arg->arg_len = numargs;
-    return arg;
-}
-
-void
-free_arg(arg)
-ARG *arg;
-{
-    str_free(arg->arg_ptr.arg_str);
-    safefree((char*)arg);
-}
-
-ARG *
-make_match(type,expr,spat)
-int type;
-ARG *expr;
-SPAT *spat;
-{
-    register ARG *arg;
-
-    arg = make_op(type,2,expr,Nullarg,Nullarg,0);
-
-    arg[2].arg_type = A_SPAT;
-    arg[2].arg_ptr.arg_spat = spat;
-#ifdef DEBUGGING
-    if (debug & 16)
-       fprintf(stderr,"make_match SPAT=%lx\n",spat);
+    if ((yyn = yysindex[yystate]) && (yyn += yychar) >= 0 &&
+            yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
+    {
+#if YYDEBUG
+        if (yydebug)
+            fprintf(stderr, "yydebug: state %d, shifting to state %d\n",
+                    yystate, yytable[yyn]);
 #endif
-
-    if (type == O_SUBST || type == O_NSUBST) {
-       if (arg[1].arg_type != A_STAB)
-           yyerror("Illegal lvalue");
-       arg[1].arg_type = A_LVAL;
-    }
-    return arg;
-}
-
-ARG *
-cmd_to_arg(cmd)
-CMD *cmd;
-{
-    register ARG *arg;
-
-    arg = op_new(1);
-    arg->arg_type = O_ITEM;
-    arg[1].arg_type = A_CMD;
-    arg[1].arg_ptr.arg_cmd = cmd;
-    return arg;
-}
-
-CMD *
-wopt(cmd)
-register CMD *cmd;
-{
-    register CMD *tail;
-    register ARG *arg = cmd->c_expr;
-    char *tmps;        /* used by True macro */
-
-    /* hoist "while (<channel>)" up into command block */
-
-    if (arg && arg->arg_type == O_ITEM && arg[1].arg_type == A_READ) {
-       cmd->c_flags &= ~CF_OPTIMIZE;   /* clear optimization type */
-       cmd->c_flags |= CFT_GETS;       /* and set it to do the input */
-       cmd->c_stab = arg[1].arg_ptr.arg_stab;
-       if (arg[1].arg_ptr.arg_stab->stab_io->flags & IOF_ARGV) {
-           cmd->c_expr = l(make_op(O_ASSIGN, 2,        /* fake up "$_ =" */
-              stab_to_arg(A_LVAL,defstab), arg, Nullarg,1 ));
-       }
-       else {
-           free_arg(arg);
-           cmd->c_expr = Nullarg;
-       }
+        if (yyssp >= yyss + yystacksize - 1)
+        {
+           /*
+           ** reallocate and recover.  Note that pointers
+           ** have to be reset, or bad things will happen
+           */
+           int yyps_index = (yyssp - yyss);
+           int yypv_index = (yyvsp - yyvs);
+           yystacksize += YYSTACKSIZE;
+           ysave->yyvs = yyvs =
+               (YYSTYPE*)realloc((char*)yyvs,yystacksize * sizeof(YYSTYPE));
+           ysave->yyss = yyss =
+               (short*)realloc((char*)yyss,yystacksize * sizeof(short));
+           if (!yyvs || !yyss)
+               goto yyoverflow;
+           yyssp = yyss + yyps_index;
+           yyvsp = yyvs + yypv_index;
+        }
+        *++yyssp = yystate = yytable[yyn];
+        *++yyvsp = yylval;
+        yychar = (-1);
+        if (yyerrflag > 0)  --yyerrflag;
+        goto yyloop;
+    }
+    if ((yyn = yyrindex[yystate]) && (yyn += yychar) >= 0 &&
+            yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
+    {
+        yyn = yytable[yyn];
+        goto yyreduce;
+    }
+    if (yyerrflag) goto yyinrecovery;
+#ifdef lint
+    goto yynewerror;
+#endif
+yynewerror:
+    yyerror("syntax error");
+#ifdef lint
+    goto yyerrlab;
+#endif
+yyerrlab:
+    ++yynerrs;
+yyinrecovery:
+    if (yyerrflag < 3)
+    {
+        yyerrflag = 3;
+        for (;;)
+        {
+            if ((yyn = yysindex[*yyssp]) && (yyn += YYERRCODE) >= 0 &&
+                    yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)
+            {
+#if YYDEBUG
+                if (yydebug)
+                    fprintf(stderr,
+                    "yydebug: state %d, error recovery shifting to state %d\n",
+                    *yyssp, yytable[yyn]);
+#endif
+                if (yyssp >= yyss + yystacksize - 1)
+                {
+                   /*
+                   ** reallocate and recover.  Note that pointers
+                   ** have to be reset, or bad things will happen
+                   */
+                   int yyps_index = (yyssp - yyss);
+                   int yypv_index = (yyvsp - yyvs);
+                   yystacksize += YYSTACKSIZE;
+                   ysave->yyvs = yyvs = (YYSTYPE*)realloc((char*)yyvs,
+                       yystacksize * sizeof(YYSTYPE));
+                   ysave->yyss = yyss = (short*)realloc((char*)yyss,
+                       yystacksize * sizeof(short));
+                   if (!yyvs || !yyss)
+                       goto yyoverflow;
+                   yyssp = yyss + yyps_index;
+                   yyvsp = yyvs + yypv_index;
+                }
+                *++yyssp = yystate = yytable[yyn];
+                *++yyvsp = yylval;
+                goto yyloop;
+            }
+            else
+            {
+#if YYDEBUG
+                if (yydebug)
+                    fprintf(stderr,
+                       "yydebug: error recovery discarding state %d\n",
+                       *yyssp);
+#endif
+                if (yyssp <= yyss) goto yyabort;
+                --yyssp;
+                --yyvsp;
+            }
+        }
     }
-
-    /* First find the end of the true list */
-
-    if (cmd->ucmd.ccmd.cc_true == Nullcmd)
-       return cmd;
-    for (tail = cmd->ucmd.ccmd.cc_true; tail->c_next; tail = tail->c_next) ;
-
-    /* if there's a continue block, link it to true block and find end */
-
-    if (cmd->ucmd.ccmd.cc_alt != Nullcmd) {
-       tail->c_next = cmd->ucmd.ccmd.cc_alt;
-       for ( ; tail->c_next; tail = tail->c_next) ;
+    else
+    {
+        if (yychar == 0) goto yyabort;
+#if YYDEBUG
+        if (yydebug)
+        {
+            yys = 0;
+            if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
+            if (!yys) yys = "illegal-symbol";
+            fprintf(stderr,
+               "yydebug: state %d, error recovery discards token %d (%s)\n",
+               yystate, yychar, yys);
+        }
+#endif
+        yychar = (-1);
+        goto yyloop;
     }
-
-    /* Here's the real trick: link the end of the list back to the beginning,
-     * inserting a "last" block to break out of the loop.  This saves one or
-     * two procedure calls every time through the loop, because of how cmd_exec
-     * does tail recursion.
-     */
-
-    tail->c_next = (CMD *) safemalloc(sizeof (CMD));
-    tail = tail->c_next;
-    if (!cmd->ucmd.ccmd.cc_alt)
-       cmd->ucmd.ccmd.cc_alt = tail;   /* every loop has a continue now */
-
-    bcopy((char *)cmd, (char *)tail, sizeof(CMD));
-    tail->c_type = C_EXPR;
-    tail->c_flags ^= CF_INVERT;                /* turn into "last unless" */
-    tail->c_next = tail->ucmd.ccmd.cc_true;    /* loop directly back to top */
-    tail->ucmd.acmd.ac_expr = make_op(O_LAST,0,Nullarg,Nullarg,Nullarg,0);
-    tail->ucmd.acmd.ac_stab = Nullstab;
-    return cmd;
-}
-
-FCMD *
-load_format()
+yyreduce:
+#if YYDEBUG
+    if (yydebug)
+        fprintf(stderr, "yydebug: state %d, reducing by rule %d (%s)\n",
+                yystate, yyn, yyrule[yyn]);
+#endif
+    yym = yylen[yyn];
+    yyval = yyvsp[1-yym];
+    switch (yyn)
+    {
+case 1:
+#line 84 "perly.y"
 {
-    FCMD froot;
-    FCMD *flinebeg;
-    register FCMD *fprev = &froot;
-    register FCMD *fcmd;
-    register char *s;
-    register char *t;
-    register char tmpchar;
-    bool noblank;
-
-    while ((s = str_gets(linestr,rsfp)) != Nullch) {
-       line++;
-       if (strEQ(s,".\n")) {
-           bufptr = s;
-           return froot.f_next;
-       }
-       if (*s == '#')
-           continue;
-       flinebeg = Nullfcmd;
-       noblank = FALSE;
-       while (*s) {
-           fcmd = (FCMD *)safemalloc(sizeof (FCMD));
-           bzero((char*)fcmd, sizeof (FCMD));
-           fprev->f_next = fcmd;
-           fprev = fcmd;
-           for (t=s; *t && *t != '@' && *t != '^'; t++) {
-               if (*t == '~') {
-                   noblank = TRUE;
-                   *t = ' ';
-               }
-           }
-           tmpchar = *t;
-           *t = '\0';
-           fcmd->f_pre = savestr(s);
-           fcmd->f_presize = strlen(s);
-           *t = tmpchar;
-           s = t;
-           if (!*s) {
-               if (noblank)
-                   fcmd->f_flags |= FC_NOBLANK;
-               break;
-           }
-           if (!flinebeg)
-               flinebeg = fcmd;                /* start values here */
-           if (*s++ == '^')
-               fcmd->f_flags |= FC_CHOP;       /* for doing text filling */
-           switch (*s) {
-           case '*':
-               fcmd->f_type = F_LINES;
-               *s = '\0';
-               break;
-           case '<':
-               fcmd->f_type = F_LEFT;
-               while (*s == '<')
-                   s++;
-               break;
-           case '>':
-               fcmd->f_type = F_RIGHT;
-               while (*s == '>')
-                   s++;
-               break;
-           case '|':
-               fcmd->f_type = F_CENTER;
-               while (*s == '|')
-                   s++;
-               break;
-           default:
-               fcmd->f_type = F_LEFT;
-               break;
-           }
-           if (fcmd->f_flags & FC_CHOP && *s == '.') {
-               fcmd->f_flags |= FC_MORE;
-               while (*s == '.')
-                   s++;
-           }
-           fcmd->f_size = s-t;
-       }
-       if (flinebeg) {
-         again:
-           if ((bufptr = str_gets(linestr ,rsfp)) == Nullch)
-               goto badform;
-           line++;
-           if (strEQ(bufptr,".\n")) {
-               yyerror("Missing values line");
-               return froot.f_next;
-           }
-           if (*bufptr == '#')
-               goto again;
-           lex_newlines = TRUE;
-           while (flinebeg || *bufptr) {
-               switch(yylex()) {
-               default:
-                   yyerror("Bad value in format");
-                   *bufptr = '\0';
-                   break;
-               case '\n':
-                   if (flinebeg)
-                       yyerror("Missing value in format");
-                   *bufptr = '\0';
-                   break;
-               case REG:
-                   yylval.arg = stab_to_arg(A_LVAL,yylval.stabval);
-                   /* FALL THROUGH */
-               case RSTRING:
-                   if (!flinebeg)
-                       yyerror("Extra value in format");
-                   else {
-                       flinebeg->f_expr = yylval.arg;
-                       do {
-                           flinebeg = flinebeg->f_next;
-                       } while (flinebeg && flinebeg->f_size == 0);
-                   }
-                   break;
-               case ',': case ';':
-                   continue;
+#if defined(YYDEBUG) && defined(DEBUGGING)
+                   yydebug = (debug & 1);
+#endif
+                   expect = XSTATE;
                }
-           }
-           lex_newlines = FALSE;
-       }
+break;
+case 2:
+#line 91 "perly.y"
+{ newPROG(yyvsp[0].opval); }
+break;
+case 3:
+#line 95 "perly.y"
+{ yyval.opval = block_end(yyvsp[-3].ival,yyvsp[-2].ival,yyvsp[-1].opval); }
+break;
+case 4:
+#line 99 "perly.y"
+{ yyval.ival = block_start(); }
+break;
+case 5:
+#line 103 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 6:
+#line 105 "perly.y"
+{ yyval.opval = yyvsp[-1].opval; }
+break;
+case 7:
+#line 107 "perly.y"
+{   yyval.opval = append_list(OP_LINESEQ,
+                               (LISTOP*)yyvsp[-1].opval, (LISTOP*)yyvsp[0].opval);
+                           pad_reset_pending = TRUE;
+                           if (yyvsp[-1].opval && yyvsp[0].opval) hints |= HINT_BLOCK_SCOPE; }
+break;
+case 8:
+#line 114 "perly.y"
+{ yyval.opval = newSTATEOP(0, yyvsp[-1].pval, yyvsp[0].opval); }
+break;
+case 10:
+#line 117 "perly.y"
+{ if (yyvsp[-1].pval != Nullch) {
+                             yyval.opval = newSTATEOP(0, yyvsp[-1].pval, newOP(OP_NULL, 0));
+                           }
+                           else {
+                             yyval.opval = Nullop;
+                             copline = NOLINE;
+                           }
+                           expect = XSTATE; }
+break;
+case 11:
+#line 126 "perly.y"
+{ yyval.opval = newSTATEOP(0, yyvsp[-2].pval, yyvsp[-1].opval);
+                         expect = XSTATE; }
+break;
+case 12:
+#line 131 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 13:
+#line 133 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 14:
+#line 135 "perly.y"
+{ yyval.opval = newLOGOP(OP_AND, 0, yyvsp[0].opval, yyvsp[-2].opval); }
+break;
+case 15:
+#line 137 "perly.y"
+{ yyval.opval = newLOGOP(OP_OR, 0, yyvsp[0].opval, yyvsp[-2].opval); }
+break;
+case 16:
+#line 139 "perly.y"
+{ yyval.opval = newLOOPOP(OPf_PARENS, 1, scalar(yyvsp[0].opval), yyvsp[-2].opval); }
+break;
+case 17:
+#line 141 "perly.y"
+{ yyval.opval = newLOOPOP(OPf_PARENS, 1, invert(scalar(yyvsp[0].opval)), yyvsp[-2].opval);}
+break;
+case 18:
+#line 145 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 19:
+#line 147 "perly.y"
+{ yyval.opval = scope(yyvsp[0].opval); }
+break;
+case 20:
+#line 149 "perly.y"
+{ copline = yyvsp[-5].ival;
+                           yyval.opval = newSTATEOP(0, 0,
+                               newCONDOP(0, yyvsp[-3].opval, scope(yyvsp[-1].opval), yyvsp[0].opval));
+                           hints |= HINT_BLOCK_SCOPE; }
+break;
+case 21:
+#line 156 "perly.y"
+{ copline = yyvsp[-5].ival;
+                           yyval.opval = newCONDOP(0, yyvsp[-3].opval, scope(yyvsp[-1].opval), yyvsp[0].opval); }
+break;
+case 22:
+#line 159 "perly.y"
+{ copline = yyvsp[-5].ival;
+                           yyval.opval = newCONDOP(0,
+                               invert(scalar(yyvsp[-3].opval)), scope(yyvsp[-1].opval), yyvsp[0].opval); }
+break;
+case 23:
+#line 163 "perly.y"
+{ copline = yyvsp[-3].ival;
+                           deprecate("if BLOCK BLOCK");
+                           yyval.opval = newCONDOP(0, scope(yyvsp[-2].opval), scope(yyvsp[-1].opval), yyvsp[0].opval); }
+break;
+case 24:
+#line 167 "perly.y"
+{ copline = yyvsp[-3].ival;
+                           deprecate("unless BLOCK BLOCK");
+                           yyval.opval = newCONDOP(0, invert(scalar(scope(yyvsp[-2].opval))),
+                                               scope(yyvsp[-1].opval), yyvsp[0].opval); }
+break;
+case 25:
+#line 174 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 26:
+#line 176 "perly.y"
+{ yyval.opval = scope(yyvsp[0].opval); }
+break;
+case 27:
+#line 180 "perly.y"
+{ copline = yyvsp[-5].ival;
+                           yyval.opval = newSTATEOP(0, yyvsp[-6].pval,
+                                   newWHILEOP(0, 1, (LOOP*)Nullop,
+                                       yyvsp[-3].opval, yyvsp[-1].opval, yyvsp[0].opval) ); }
+break;
+case 28:
+#line 185 "perly.y"
+{ copline = yyvsp[-5].ival;
+                           yyval.opval = newSTATEOP(0, yyvsp[-6].pval,
+                                   newWHILEOP(0, 1, (LOOP*)Nullop,
+                                       invert(scalar(yyvsp[-3].opval)), yyvsp[-1].opval, yyvsp[0].opval) ); }
+break;
+case 29:
+#line 190 "perly.y"
+{ copline = yyvsp[-3].ival;
+                           yyval.opval = newSTATEOP(0, yyvsp[-4].pval,
+                                   newWHILEOP(0, 1, (LOOP*)Nullop,
+                                       scope(yyvsp[-2].opval), yyvsp[-1].opval, yyvsp[0].opval) ); }
+break;
+case 30:
+#line 195 "perly.y"
+{ copline = yyvsp[-3].ival;
+                           yyval.opval = newSTATEOP(0, yyvsp[-4].pval,
+                                   newWHILEOP(0, 1, (LOOP*)Nullop,
+                                       invert(scalar(scope(yyvsp[-2].opval))), yyvsp[-1].opval, yyvsp[0].opval)); }
+break;
+case 31:
+#line 200 "perly.y"
+{ yyval.opval = newFOROP(0, yyvsp[-7].pval, yyvsp[-6].ival, mod(yyvsp[-5].opval, OP_ENTERLOOP),
+                               yyvsp[-3].opval, yyvsp[-1].opval, yyvsp[0].opval); }
+break;
+case 32:
+#line 203 "perly.y"
+{ yyval.opval = newFOROP(0, yyvsp[-6].pval, yyvsp[-5].ival, Nullop, yyvsp[-3].opval, yyvsp[-1].opval, yyvsp[0].opval); }
+break;
+case 33:
+#line 206 "perly.y"
+{  copline = yyvsp[-8].ival;
+                           yyval.opval = append_elem(OP_LINESEQ,
+                                   newSTATEOP(0, yyvsp[-9].pval, scalar(yyvsp[-6].opval)),
+                                   newSTATEOP(0, yyvsp[-9].pval,
+                                       newWHILEOP(0, 1, (LOOP*)Nullop,
+                                           scalar(yyvsp[-4].opval), yyvsp[0].opval, scalar(yyvsp[-2].opval)) )); }
+break;
+case 34:
+#line 213 "perly.y"
+{ yyval.opval = newSTATEOP(0,
+                               yyvsp[-2].pval, newWHILEOP(0, 1, (LOOP*)Nullop,
+                                       Nullop, yyvsp[-1].opval, yyvsp[0].opval)); }
+break;
+case 35:
+#line 219 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 37:
+#line 224 "perly.y"
+{ (void)scan_num("1"); yyval.opval = yylval.opval; }
+break;
+case 39:
+#line 229 "perly.y"
+{ yyval.pval = Nullch; }
+break;
+case 41:
+#line 234 "perly.y"
+{ yyval.ival = 0; }
+break;
+case 42:
+#line 236 "perly.y"
+{ yyval.ival = 0; }
+break;
+case 43:
+#line 238 "perly.y"
+{ yyval.ival = 0; }
+break;
+case 44:
+#line 240 "perly.y"
+{ yyval.ival = 0; }
+break;
+case 45:
+#line 244 "perly.y"
+{ newFORM(yyvsp[-2].ival, yyvsp[-1].opval, yyvsp[0].opval); }
+break;
+case 46:
+#line 246 "perly.y"
+{ newFORM(yyvsp[-1].ival, Nullop, yyvsp[0].opval); }
+break;
+case 47:
+#line 250 "perly.y"
+{ newSUB(yyvsp[-3].ival, yyvsp[-2].opval, yyvsp[-1].opval, yyvsp[0].opval); }
+break;
+case 48:
+#line 252 "perly.y"
+{ newSUB(yyvsp[-3].ival, yyvsp[-2].opval, yyvsp[-1].opval, Nullop); expect = XSTATE; }
+break;
+case 49:
+#line 256 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 51:
+#line 261 "perly.y"
+{ yyval.ival = start_subparse(); }
+break;
+case 52:
+#line 265 "perly.y"
+{ package(yyvsp[-1].opval); }
+break;
+case 53:
+#line 267 "perly.y"
+{ package(Nullop); }
+break;
+case 54:
+#line 271 "perly.y"
+{ utilize(yyvsp[-3].ival, yyvsp[-2].opval, yyvsp[-1].opval); }
+break;
+case 55:
+#line 275 "perly.y"
+{ yyval.opval = newLOGOP(OP_AND, 0, yyvsp[-2].opval, yyvsp[0].opval); }
+break;
+case 56:
+#line 277 "perly.y"
+{ yyval.opval = newLOGOP(yyvsp[-1].ival, 0, yyvsp[-2].opval, yyvsp[0].opval); }
+break;
+case 57:
+#line 279 "perly.y"
+{ yyval.opval = newUNOP(OP_NOT, 0, scalar(yyvsp[0].opval)); }
+break;
+case 59:
+#line 284 "perly.y"
+{ yyval.opval = yyvsp[-1].opval; }
+break;
+case 60:
+#line 286 "perly.y"
+{ yyval.opval = append_elem(OP_LIST, yyvsp[-2].opval, yyvsp[0].opval); }
+break;
+case 62:
+#line 291 "perly.y"
+{ yyval.opval = convert(yyvsp[-2].ival, OPf_STACKED,
+                               prepend_elem(OP_LIST, newGVREF(yyvsp[-2].ival,yyvsp[-1].opval), yyvsp[0].opval) ); }
+break;
+case 63:
+#line 294 "perly.y"
+{ yyval.opval = convert(yyvsp[-4].ival, OPf_STACKED,
+                               prepend_elem(OP_LIST, newGVREF(yyvsp[-4].ival,yyvsp[-2].opval), yyvsp[-1].opval) ); }
+break;
+case 64:
+#line 297 "perly.y"
+{ yyval.opval = convert(OP_ENTERSUB, OPf_STACKED,
+                               append_elem(OP_LIST,
+                                   prepend_elem(OP_LIST, yyvsp[-5].opval, yyvsp[-1].opval),
+                                   newUNOP(OP_METHOD, 0, yyvsp[-3].opval))); }
+break;
+case 65:
+#line 302 "perly.y"
+{ yyval.opval = convert(OP_ENTERSUB, OPf_STACKED,
+                               append_elem(OP_LIST,
+                                   prepend_elem(OP_LIST, yyvsp[-1].opval, yyvsp[0].opval),
+                                   newUNOP(OP_METHOD, 0, yyvsp[-2].opval))); }
+break;
+case 66:
+#line 307 "perly.y"
+{ yyval.opval = convert(OP_ENTERSUB, OPf_STACKED,
+                               append_elem(OP_LIST,
+                                   prepend_elem(OP_LIST, yyvsp[-3].opval, yyvsp[-1].opval),
+                                   newUNOP(OP_METHOD, 0, yyvsp[-4].opval))); }
+break;
+case 67:
+#line 312 "perly.y"
+{ yyval.opval = convert(yyvsp[-1].ival, 0, yyvsp[0].opval); }
+break;
+case 68:
+#line 314 "perly.y"
+{ yyval.opval = convert(yyvsp[-3].ival, 0, yyvsp[-1].opval); }
+break;
+case 69:
+#line 316 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED,
+                           append_elem(OP_LIST,
+                             prepend_elem(OP_LIST, newANONSUB(yyvsp[-2].ival, 0, yyvsp[-1].opval), yyvsp[0].opval),
+                             yyvsp[-3].opval)); }
+break;
+case 72:
+#line 327 "perly.y"
+{ yyval.opval = newASSIGNOP(OPf_STACKED, yyvsp[-2].opval, yyvsp[-1].ival, yyvsp[0].opval); }
+break;
+case 73:
+#line 329 "perly.y"
+{ yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); }
+break;
+case 74:
+#line 331 "perly.y"
+{   if (yyvsp[-1].ival != OP_REPEAT)
+                               scalar(yyvsp[-2].opval);
+                           yyval.opval = newBINOP(yyvsp[-1].ival, 0, yyvsp[-2].opval, scalar(yyvsp[0].opval)); }
+break;
+case 75:
+#line 335 "perly.y"
+{ yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); }
+break;
+case 76:
+#line 337 "perly.y"
+{ yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); }
+break;
+case 77:
+#line 339 "perly.y"
+{ yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); }
+break;
+case 78:
+#line 341 "perly.y"
+{ yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); }
+break;
+case 79:
+#line 343 "perly.y"
+{ yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); }
+break;
+case 80:
+#line 345 "perly.y"
+{ yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); }
+break;
+case 81:
+#line 347 "perly.y"
+{ yyval.opval = newRANGE(yyvsp[-1].ival, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval));}
+break;
+case 82:
+#line 349 "perly.y"
+{ yyval.opval = newLOGOP(OP_AND, 0, yyvsp[-2].opval, yyvsp[0].opval); }
+break;
+case 83:
+#line 351 "perly.y"
+{ yyval.opval = newLOGOP(OP_OR, 0, yyvsp[-2].opval, yyvsp[0].opval); }
+break;
+case 84:
+#line 353 "perly.y"
+{ yyval.opval = newCONDOP(0, yyvsp[-4].opval, yyvsp[-2].opval, yyvsp[0].opval); }
+break;
+case 85:
+#line 355 "perly.y"
+{ yyval.opval = bind_match(yyvsp[-1].ival, yyvsp[-2].opval, yyvsp[0].opval); }
+break;
+case 86:
+#line 358 "perly.y"
+{ yyval.opval = newUNOP(OP_NEGATE, 0, scalar(yyvsp[0].opval)); }
+break;
+case 87:
+#line 360 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 88:
+#line 362 "perly.y"
+{ yyval.opval = newUNOP(OP_NOT, 0, scalar(yyvsp[0].opval)); }
+break;
+case 89:
+#line 364 "perly.y"
+{ yyval.opval = newUNOP(OP_COMPLEMENT, 0, scalar(yyvsp[0].opval));}
+break;
+case 90:
+#line 366 "perly.y"
+{ yyval.opval = newUNOP(OP_REFGEN, 0, mod(yyvsp[0].opval,OP_REFGEN)); }
+break;
+case 91:
+#line 368 "perly.y"
+{ yyval.opval = newUNOP(OP_POSTINC, 0,
+                                       mod(scalar(yyvsp[-1].opval), OP_POSTINC)); }
+break;
+case 92:
+#line 371 "perly.y"
+{ yyval.opval = newUNOP(OP_POSTDEC, 0,
+                                       mod(scalar(yyvsp[-1].opval), OP_POSTDEC)); }
+break;
+case 93:
+#line 374 "perly.y"
+{ yyval.opval = newUNOP(OP_PREINC, 0,
+                                       mod(scalar(yyvsp[0].opval), OP_PREINC)); }
+break;
+case 94:
+#line 377 "perly.y"
+{ yyval.opval = newUNOP(OP_PREDEC, 0,
+                                       mod(scalar(yyvsp[0].opval), OP_PREDEC)); }
+break;
+case 95:
+#line 380 "perly.y"
+{ yyval.opval = localize(yyvsp[0].opval,yyvsp[-1].ival); }
+break;
+case 96:
+#line 382 "perly.y"
+{ yyval.opval = sawparens(yyvsp[-1].opval); }
+break;
+case 97:
+#line 384 "perly.y"
+{ yyval.opval = sawparens(newNULLLIST()); }
+break;
+case 98:
+#line 386 "perly.y"
+{ yyval.opval = newANONLIST(yyvsp[-1].opval); }
+break;
+case 99:
+#line 388 "perly.y"
+{ yyval.opval = newANONLIST(Nullop); }
+break;
+case 100:
+#line 390 "perly.y"
+{ yyval.opval = newANONHASH(yyvsp[-2].opval); }
+break;
+case 101:
+#line 392 "perly.y"
+{ yyval.opval = newANONHASH(Nullop); }
+break;
+case 102:
+#line 394 "perly.y"
+{ yyval.opval = newANONSUB(yyvsp[-2].ival, yyvsp[-1].opval, yyvsp[0].opval); }
+break;
+case 103:
+#line 396 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 104:
+#line 398 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 105:
+#line 400 "perly.y"
+{ yyval.opval = newBINOP(OP_AELEM, 0, oopsAV(yyvsp[-3].opval), scalar(yyvsp[-1].opval)); }
+break;
+case 106:
+#line 402 "perly.y"
+{ yyval.opval = newBINOP(OP_AELEM, 0,
+                                       ref(newAVREF(yyvsp[-4].opval),OP_RV2AV),
+                                       scalar(yyvsp[-1].opval));}
+break;
+case 107:
+#line 406 "perly.y"
+{ assertref(yyvsp[-3].opval); yyval.opval = newBINOP(OP_AELEM, 0,
+                                       ref(newAVREF(yyvsp[-3].opval),OP_RV2AV),
+                                       scalar(yyvsp[-1].opval));}
+break;
+case 108:
+#line 410 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 109:
+#line 412 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 110:
+#line 414 "perly.y"
+{ yyval.opval = newUNOP(OP_AV2ARYLEN, 0, ref(yyvsp[0].opval, OP_AV2ARYLEN));}
+break;
+case 111:
+#line 416 "perly.y"
+{ yyval.opval = newBINOP(OP_HELEM, 0, oopsHV(yyvsp[-4].opval), jmaybe(yyvsp[-2].opval));
+                           expect = XOPERATOR; }
+break;
+case 112:
+#line 419 "perly.y"
+{ yyval.opval = newBINOP(OP_HELEM, 0,
+                                       ref(newHVREF(yyvsp[-5].opval),OP_RV2HV),
+                                       jmaybe(yyvsp[-2].opval));
+                           expect = XOPERATOR; }
+break;
+case 113:
+#line 424 "perly.y"
+{ assertref(yyvsp[-4].opval); yyval.opval = newBINOP(OP_HELEM, 0,
+                                       ref(newHVREF(yyvsp[-4].opval),OP_RV2HV),
+                                       jmaybe(yyvsp[-2].opval));
+                           expect = XOPERATOR; }
+break;
+case 114:
+#line 429 "perly.y"
+{ yyval.opval = newSLICEOP(0, yyvsp[-1].opval, yyvsp[-4].opval); }
+break;
+case 115:
+#line 431 "perly.y"
+{ yyval.opval = newSLICEOP(0, yyvsp[-1].opval, Nullop); }
+break;
+case 116:
+#line 433 "perly.y"
+{ yyval.opval = prepend_elem(OP_ASLICE,
+                               newOP(OP_PUSHMARK, 0),
+                                   newLISTOP(OP_ASLICE, 0,
+                                       list(yyvsp[-1].opval),
+                                       ref(yyvsp[-3].opval, OP_ASLICE))); }
+break;
+case 117:
+#line 439 "perly.y"
+{ yyval.opval = prepend_elem(OP_HSLICE,
+                               newOP(OP_PUSHMARK, 0),
+                                   newLISTOP(OP_HSLICE, 0,
+                                       list(yyvsp[-2].opval),
+                                       ref(oopsHV(yyvsp[-4].opval), OP_HSLICE)));
+                           expect = XOPERATOR; }
+break;
+case 118:
+#line 446 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 119:
+#line 448 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, 0,
+                               scalar(yyvsp[0].opval)); }
+break;
+case 120:
+#line 451 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar(yyvsp[-2].opval)); }
+break;
+case 121:
+#line 453 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED,
+                           append_elem(OP_LIST, yyvsp[-1].opval, scalar(yyvsp[-3].opval))); }
+break;
+case 122:
+#line 456 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED,
+                           append_elem(OP_LIST,
+                               yyvsp[0].opval, newCVREF(scalar(yyvsp[-1].opval)))); }
+break;
+case 123:
+#line 460 "perly.y"
+{ yyval.opval = newUNOP(OP_DOFILE, 0, scalar(yyvsp[0].opval)); }
+break;
+case 124:
+#line 462 "perly.y"
+{ yyval.opval = newUNOP(OP_NULL, OPf_SPECIAL, scope(yyvsp[0].opval)); }
+break;
+case 125:
+#line 464 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED,
+                           prepend_elem(OP_LIST,
+                               scalar(newCVREF(scalar(yyvsp[-2].opval))), Nullop)); dep();}
+break;
+case 126:
+#line 468 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED,
+                           append_elem(OP_LIST,
+                               yyvsp[-1].opval,
+                               scalar(newCVREF(scalar(yyvsp[-3].opval))))); dep();}
+break;
+case 127:
+#line 473 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED,
+                           prepend_elem(OP_LIST,
+                               scalar(newCVREF(scalar(yyvsp[-2].opval))), Nullop)); dep();}
+break;
+case 128:
+#line 477 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED,
+                           prepend_elem(OP_LIST,
+                               yyvsp[-1].opval,
+                               scalar(newCVREF(scalar(yyvsp[-3].opval))))); dep();}
+break;
+case 129:
+#line 482 "perly.y"
+{ yyval.opval = newOP(yyvsp[0].ival, OPf_SPECIAL);
+                           hints |= HINT_BLOCK_SCOPE; }
+break;
+case 130:
+#line 485 "perly.y"
+{ yyval.opval = newLOOPEX(yyvsp[-1].ival,yyvsp[0].opval); }
+break;
+case 131:
+#line 487 "perly.y"
+{ yyval.opval = newOP(yyvsp[0].ival, 0); }
+break;
+case 132:
+#line 489 "perly.y"
+{ yyval.opval = newUNOP(yyvsp[-1].ival, 0, yyvsp[0].opval); }
+break;
+case 133:
+#line 491 "perly.y"
+{ yyval.opval = newUNOP(yyvsp[-1].ival, 0, yyvsp[0].opval); }
+break;
+case 134:
+#line 493 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED,
+                           append_elem(OP_LIST, yyvsp[0].opval, scalar(yyvsp[-1].opval))); }
+break;
+case 135:
+#line 496 "perly.y"
+{ yyval.opval = newOP(yyvsp[0].ival, 0); }
+break;
+case 136:
+#line 498 "perly.y"
+{ yyval.opval = newOP(yyvsp[-2].ival, 0); }
+break;
+case 137:
+#line 500 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, 0,
+                               scalar(yyvsp[0].opval)); }
+break;
+case 138:
+#line 503 "perly.y"
+{ yyval.opval = newOP(yyvsp[-2].ival, OPf_SPECIAL); }
+break;
+case 139:
+#line 505 "perly.y"
+{ yyval.opval = newUNOP(yyvsp[-3].ival, 0, yyvsp[-1].opval); }
+break;
+case 140:
+#line 507 "perly.y"
+{ yyval.opval = pmruntime(yyvsp[-3].opval, yyvsp[-1].opval, Nullop); }
+break;
+case 141:
+#line 509 "perly.y"
+{ yyval.opval = pmruntime(yyvsp[-5].opval, yyvsp[-3].opval, yyvsp[-1].opval); }
+break;
+case 144:
+#line 515 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 145:
+#line 517 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 146:
+#line 521 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 147:
+#line 523 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 148:
+#line 525 "perly.y"
+{ yyval.opval = yyvsp[-1].opval; }
+break;
+case 149:
+#line 529 "perly.y"
+{ yyval.opval = newCVREF(yyvsp[0].opval); }
+break;
+case 150:
+#line 533 "perly.y"
+{ yyval.opval = newSVREF(yyvsp[0].opval); }
+break;
+case 151:
+#line 537 "perly.y"
+{ yyval.opval = newAVREF(yyvsp[0].opval); }
+break;
+case 152:
+#line 541 "perly.y"
+{ yyval.opval = newHVREF(yyvsp[0].opval); }
+break;
+case 153:
+#line 545 "perly.y"
+{ yyval.opval = newAVREF(yyvsp[0].opval); }
+break;
+case 154:
+#line 549 "perly.y"
+{ yyval.opval = newGVREF(0,yyvsp[0].opval); }
+break;
+case 155:
+#line 553 "perly.y"
+{ yyval.opval = scalar(yyvsp[0].opval); }
+break;
+case 156:
+#line 555 "perly.y"
+{ yyval.opval = scalar(yyvsp[0].opval);  }
+break;
+case 157:
+#line 557 "perly.y"
+{ yyval.opval = scope(yyvsp[0].opval); }
+break;
+case 158:
+#line 560 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+#line 2183 "y.tab.c"
+    }
+    yyssp -= yym;
+    yystate = *yyssp;
+    yyvsp -= yym;
+    yym = yylhs[yyn];
+    if (yystate == 0 && yym == 0)
+    {
+#if YYDEBUG
+        if (yydebug)
+            fprintf(stderr,
+               "yydebug: after reduction, shifting from state 0 to state %d\n",
+               YYFINAL);
+#endif
+        yystate = YYFINAL;
+        *++yyssp = YYFINAL;
+        *++yyvsp = yyval;
+        if (yychar < 0)
+        {
+            if ((yychar = yylex()) < 0) yychar = 0;
+#if YYDEBUG
+            if (yydebug)
+            {
+                yys = 0;
+                if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
+                if (!yys) yys = "illegal-symbol";
+                fprintf(stderr, "yydebug: state %d, reading %d (%s)\n",
+                        YYFINAL, yychar, yys);
+            }
+#endif
+        }
+        if (yychar == 0) goto yyaccept;
+        goto yyloop;
     }
-  badform:
-    bufptr = str_get(linestr);
-    yyerror("Format not terminated");
-    return froot.f_next;
-}
-
-STR *
-do_eval(str)
-STR *str;
-{
-    int retval;
-    CMD *myroot;
-
-    in_eval++;
-    str_set(stabent("@",TRUE)->stab_val,"");
-    line = 1;
-    str_sset(linestr,str);
-    bufptr = str_get(linestr);
-    if (setjmp(eval_env))
-       retval = 1;
+    if ((yyn = yygindex[yym]) && (yyn += yystate) >= 0 &&
+            yyn <= YYTABLESIZE && yycheck[yyn] == yystate)
+        yystate = yytable[yyn];
     else
-       retval = yyparse();
-    myroot = eval_root;                /* in case cmd_exec does another eval! */
-    if (retval)
-       str = &str_no;
-    else {
-       str = cmd_exec(eval_root);
-       cmd_free(myroot);       /* can't free on error, for some reason */
-    }
-    in_eval--;
-    return str;
-}
-
-cmd_free(cmd)
-register CMD *cmd;
-{
-    register CMD *tofree;
-    register CMD *head = cmd;
-
-    while (cmd) {
-       if (cmd->c_label)
-           safefree(cmd->c_label);
-       if (cmd->c_first)
-           str_free(cmd->c_first);
-       if (cmd->c_spat)
-           spat_free(cmd->c_spat);
-       if (cmd->c_expr)
-           arg_free(cmd->c_expr);
-       switch (cmd->c_type) {
-       case C_WHILE:
-       case C_BLOCK:
-       case C_IF:
-           if (cmd->ucmd.ccmd.cc_true)
-               cmd_free(cmd->ucmd.ccmd.cc_true);
-           if (cmd->c_type == C_IF && cmd->ucmd.ccmd.cc_alt)
-               cmd_free(cmd->ucmd.ccmd.cc_alt,Nullcmd);
-           break;
-       case C_EXPR:
-           if (cmd->ucmd.acmd.ac_stab)
-               arg_free(cmd->ucmd.acmd.ac_stab);
-           if (cmd->ucmd.acmd.ac_expr)
-               arg_free(cmd->ucmd.acmd.ac_expr);
-           break;
-       }
-       tofree = cmd;
-       cmd = cmd->c_next;
-       safefree((char*)tofree);
-       if (cmd && cmd == head)         /* reached end of while loop */
-           break;
-    }
-}
-
-arg_free(arg)
-register ARG *arg;
-{
-    register int i;
-
-    for (i = 1; i <= arg->arg_len; i++) {
-       switch (arg[i].arg_type) {
-       case A_NULL:
-           break;
-       case A_LEXPR:
-       case A_EXPR:
-           arg_free(arg[i].arg_ptr.arg_arg);
-           break;
-       case A_CMD:
-           cmd_free(arg[i].arg_ptr.arg_cmd);
-           break;
-       case A_STAB:
-       case A_LVAL:
-       case A_READ:
-       case A_ARYLEN:
-           break;
-       case A_SINGLE:
-       case A_DOUBLE:
-       case A_BACKTICK:
-           str_free(arg[i].arg_ptr.arg_str);
-           break;
-       case A_SPAT:
-           spat_free(arg[i].arg_ptr.arg_spat);
-           break;
-       case A_NUMBER:
-           break;
-       }
-    }
-    free_arg(arg);
-}
-
-spat_free(spat)
-register SPAT *spat;
-{
-    register SPAT *sp;
-
-    if (spat->spat_runtime)
-       arg_free(spat->spat_runtime);
-    if (spat->spat_repl) {
-       arg_free(spat->spat_repl);
-    }
-    free_compex(&spat->spat_compex);
-
-    /* now unlink from spat list */
-    if (spat_root == spat)
-       spat_root = spat->spat_next;
-    else {
-       for (sp = spat_root; sp->spat_next != spat; sp = sp->spat_next) ;
-       sp->spat_next = spat->spat_next;
-    }
-
-    safefree((char*)spat);
+        yystate = yydgoto[yym];
+#if YYDEBUG
+    if (yydebug)
+        fprintf(stderr,
+           "yydebug: after reduction, shifting from state %d to state %d\n",
+           *yyssp, yystate);
+#endif
+    if (yyssp >= yyss + yystacksize - 1)
+    {
+       /*
+       ** reallocate and recover.  Note that pointers
+       ** have to be reset, or bad things will happen
+       */
+       int yyps_index = (yyssp - yyss);
+       int yypv_index = (yyvsp - yyvs);
+       yystacksize += YYSTACKSIZE;
+       ysave->yyvs = yyvs =
+           (YYSTYPE*)realloc((char*)yyvs,yystacksize * sizeof(YYSTYPE));
+       ysave->yyss = yyss =
+           (short*)realloc((char*)yyss,yystacksize * sizeof(short));
+       if (!yyvs || !yyss)
+           goto yyoverflow;
+       yyssp = yyss + yyps_index;
+       yyvsp = yyvs + yypv_index;
+    }
+    *++yyssp = yystate;
+    *++yyvsp = yyval;
+    goto yyloop;
+yyoverflow:
+    yyerror("Out of memory for yacc stack");
+yyabort:
+    retval = 1;
+yyaccept:
+    return retval;
 }