-char rcsid[] = "$Header: perly.c,v 3.0.1.8 90/10/16 10:14:20 lwall Locked $\nPatch level: ###\n";
-/*
- * Copyright (c) 1989, Larry Wall
- *
- * You may distribute under the terms of the GNU General Public License
- * as specified in the README file that comes with the perl 3.0 kit.
- *
- * $Log: perly.c,v $
- * Revision 3.0.1.8 90/10/16 10:14:20 lwall
- * patch29: *foo now prints as *package'foo
- * patch29: added waitpid
- * patch29: the debugger now understands packages and evals
- * patch29: added -M, -A and -C
- * patch29: -w sometimes printed spurious warnings about ARGV and ENV
- * patch29: require "./foo" didn't work right
- * patch29: require error messages referred to wrong file
- *
- * Revision 3.0.1.7 90/08/13 22:22:22 lwall
- * patch28: defined(@array) and defined(%array) didn't work right
- *
- * Revision 3.0.1.6 90/08/09 04:55:50 lwall
- * patch19: added -x switch to extract script from input trash
- * patch19: Added -c switch to do compilation only
- * patch19: added numeric interpretation of $]
- * patch19: added require operator
- * patch19: $0, %ENV, @ARGV were wrong in dumped script
- * patch19: . is now explicitly in @INC (and last)
- *
- * Revision 3.0.1.5 90/03/27 16:20:57 lwall
- * patch16: MSDOS support
- * patch16: do FILE inside eval blows up
- *
- * Revision 3.0.1.4 90/02/28 18:06:41 lwall
- * patch9: perl can now start up other interpreters scripts
- * patch9: nested evals clobbered their longjmp environment
- * patch9: eval could mistakenly return undef in array context
- *
- * Revision 3.0.1.3 89/12/21 20:15:41 lwall
- * patch7: ANSI strerror() is now supported
- * patch7: errno may now be a macro with an lvalue
- * patch7: allowed setuid scripts to have a space after #!
- *
- * Revision 3.0.1.2 89/11/17 15:34:42 lwall
- * patch5: fixed possible confusion about current effective gid
- *
- * Revision 3.0.1.1 89/11/11 04:50:04 lwall
- * patch2: moved yydebug to where its type didn't matter
- *
- * Revision 3.0 89/10/18 15:22:21 lwall
- * 3.0 baseline
- *
- */
-
+#ifndef lint
+static char yysccsid[] = "@(#)yaccpar 1.8 (Berkeley) 01/20/91";
+#endif
+#define YYBYACC 1
+#line 16 "perly.y"
#include "EXTERN.h"
+#define PERL_IN_PERLY_C
#include "perl.h"
-#include "perly.h"
-#ifdef MSDOS
-#include "patchlev.h"
-#else
-#include "patchlevel.h"
-#endif
-#ifdef IAMSUID
-#ifndef DOSUID
-#define DOSUID
-#endif
+#define dep() deprecate("\"do\" to call subroutines")
+
+/* stuff included here to make perly_c.diff apply better */
+
+#define yydebug PL_yydebug
+#define yynerrs PL_yynerrs
+#define yyerrflag PL_yyerrflag
+#define yychar PL_yychar
+#define yyval PL_yyval
+#define yylval PL_yylval
+
+struct ysv {
+ short* yyss;
+ YYSTYPE* yyvs;
+ int oldyydebug;
+ int oldyynerrs;
+ int oldyyerrflag;
+ int oldyychar;
+ YYSTYPE oldyyval;
+ YYSTYPE oldyylval;
+};
+
+static void yydestruct(pTHXo_ void *ptr);
+
+#line 49 "perly.y"
+#if 0 /* get this from perly.h instead */
+#line 52 "perly.y"
+typedef union {
+ I32 ival;
+ char *pval;
+ OP *opval;
+ GV *gvval;
+} YYSTYPE;
+#line 60 "perly.y"
+#endif /* 0 */
+
+#ifdef USE_PURE_BISON
+#define YYLEX_PARAM (&yychar)
#endif
-#ifdef SETUID_SCRIPTS_ARE_SECURE_NOW
-#ifdef DOSUID
-#undef DOSUID
+#line 51 "perly.c"
+#define YYERRCODE 256
+static short yylhs[] = { -1,
+ 50, 0, 8, 6, 9, 7, 10, 10, 10, 11,
+ 11, 11, 11, 24, 24, 24, 24, 24, 24, 24,
+ 14, 14, 14, 13, 13, 42, 42, 12, 12, 12,
+ 12, 12, 12, 12, 26, 26, 27, 27, 28, 29,
+ 30, 31, 32, 49, 49, 1, 1, 1, 1, 1,
+ 2, 38, 38, 46, 51, 3, 4, 5, 39, 40,
+ 40, 44, 44, 44, 45, 45, 41, 41, 52, 52,
+ 54, 53, 15, 15, 15, 25, 25, 25, 36, 36,
+ 36, 36, 36, 36, 36, 36, 55, 36, 37, 37,
+ 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
+ 17, 16, 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
+ 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
+ 47, 47, 48, 48, 48, 48, 48, 33, 33, 34,
+ 34, 34, 43, 23, 18, 19, 20, 21, 22, 35,
+ 35, 35, 35,
+};
+static short yylen[] = { 2,
+ 0, 2, 4, 0, 4, 0, 0, 2, 2, 2,
+ 1, 2, 3, 1, 1, 3, 3, 3, 3, 3,
+ 0, 2, 6, 7, 7, 0, 2, 8, 8, 10,
+ 9, 8, 11, 3, 0, 1, 0, 1, 1, 1,
+ 1, 1, 1, 0, 1, 1, 1, 1, 1, 1,
+ 4, 1, 0, 6, 6, 0, 0, 0, 1, 0,
+ 1, 0, 2, 1, 2, 1, 1, 1, 3, 2,
+ 0, 7, 3, 3, 1, 2, 3, 1, 3, 5,
+ 6, 3, 3, 5, 2, 4, 0, 5, 1, 1,
+ 5, 4, 5, 4, 5, 6, 5, 4, 5, 4,
+ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
+ 3, 3, 3, 5, 3, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 1, 2, 3, 2, 3, 2,
+ 4, 3, 5, 1, 1, 1, 1, 1, 1, 6,
+ 5, 4, 5, 1, 1, 3, 4, 3, 2, 2,
+ 4, 5, 4, 5, 1, 2, 2, 1, 2, 2,
+ 2, 1, 3, 1, 3, 4, 4, 6, 1, 1,
+ 3, 2, 3, 2, 1, 1, 1, 0, 1, 0,
+ 1, 2, 1, 2, 2, 2, 2, 2, 2, 1,
+ 1, 1, 1,
+};
+static short yydefred[] = { 1,
+ 0, 7, 0, 45, 58, 56, 0, 56, 56, 8,
+ 46, 9, 11, 48, 0, 47, 49, 50, 0, 0,
+ 0, 70, 71, 0, 14, 4, 169, 0, 0, 144,
+ 0, 164, 0, 57, 57, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 12, 0, 0, 0, 0, 0, 0, 0, 10,
+ 0, 0, 0, 0, 0, 136, 138, 0, 0, 0,
+ 0, 170, 125, 52, 0, 59, 0, 69, 0, 0,
+ 7, 190, 193, 192, 191, 0, 0, 0, 0, 0,
+ 0, 4, 4, 4, 4, 4, 4, 0, 0, 0,
+ 0, 0, 159, 0, 0, 0, 0, 85, 0, 188,
+ 0, 150, 0, 0, 0, 0, 0, 0, 0, 175,
+ 177, 176, 0, 184, 0, 0, 0, 0, 0, 0,
+ 0, 0, 130, 0, 0, 0, 185, 186, 187, 189,
+ 0, 34, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 121, 122, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 13, 0, 51, 61, 0,
+ 0, 0, 0, 83, 0, 0, 87, 0, 0, 0,
+ 0, 0, 0, 0, 4, 163, 165, 0, 0, 0,
+ 0, 0, 0, 0, 132, 0, 148, 174, 0, 0,
+ 171, 0, 0, 129, 27, 0, 0, 19, 0, 0,
+ 0, 0, 73, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 89, 0,
+ 0, 90, 0, 0, 101, 0, 0, 0, 0, 0,
+ 0, 0, 146, 0, 0, 0, 0, 0, 0, 3,
+ 0, 0, 167, 0, 0, 0, 42, 0, 43, 0,
+ 0, 0, 0, 183, 0, 0, 36, 41, 0, 0,
+ 0, 166, 182, 86, 0, 151, 0, 153, 0, 131,
+ 173, 65, 0, 0, 0, 0, 98, 0, 0, 0,
+ 0, 100, 94, 0, 92, 0, 142, 0, 147, 63,
+ 68, 67, 55, 0, 54, 84, 0, 88, 133, 0,
+ 0, 0, 0, 0, 0, 0, 0, 80, 152, 154,
+ 141, 0, 0, 0, 99, 93, 0, 97, 95, 143,
+ 91, 72, 168, 6, 0, 0, 0, 0, 0, 0,
+ 0, 0, 140, 96, 81, 7, 28, 29, 0, 0,
+ 24, 25, 0, 32, 0, 0, 0, 22, 0, 0,
+ 0, 31, 5, 0, 30, 0, 0, 33, 0, 23,
+};
+static short yydgoto[] = { 1,
+ 10, 11, 20, 100, 19, 91, 366, 94, 355, 3,
+ 12, 13, 70, 371, 281, 72, 73, 74, 75, 76,
+ 77, 78, 79, 287, 81, 288, 277, 279, 282, 290,
+ 278, 280, 118, 210, 96, 82, 253, 85, 87, 190,
+ 323, 152, 285, 267, 221, 14, 83, 133, 15, 2,
+ 16, 17, 18, 89, 274,
+};
+static short yysindex[] = { 0,
+ 0, 0, -199, 0, 0, 0, -53, 0, 0, 0,
+ 0, 0, 0, 0, 646, 0, 0, 0, -217, -207,
+ 44, 0, 0, -207, 0, 0, 0, -32, -32, 0,
+ 66, 0, 2177, 0, 0, 69, 83, 93, 110, -35,
+ 2177, 119, 121, 136, 1013, 973, -32, 1077, 1344, -146,
+ 2177, 68, -32, 2177, 2177, 2177, 2177, 2177, 2177, 1384,
+ 1424, 0, 2177, 2177, -32, -32, -32, -32, -152, 0,
+ 470, 845, -13, -65, -63, 0, 0, 55, 137, 122,
+ 138, 0, 0, 0, 60, 0, -70, 0, -66, -70,
+ 0, 0, 0, 0, 0, 2177, 146, 2177, 1085, 60,
+ -70, 0, 0, 0, 0, 0, 0, 152, 845, 153,
+ 1464, 973, 0, 1085, 0, -65, 138, 0, 2177, 0,
+ 160, 0, 1085, 2, 76, -52, 2177, 1085, 1524, 0,
+ 0, 0, -96, 0, 138, -181, -181, -181, -112, -112,
+ 123, -38, 0, -74, -181, -181, 0, 0, 0, 0,
+ 60, 0, 2177, 2177, 2177, 2177, 2177, 2177, 2177, 2177,
+ 2177, 2177, 2177, 2177, 2177, 2177, 2177, 2177, 2177, 2177,
+ 2177, 2177, 2177, 0, 0, -16, 2177, 1731, 2177, 2177,
+ 2177, 2177, 2177, 2177, 1791, 0, 2177, 0, 0, -88,
+ -34, -88, 339, 0, 2177, 287, 0, -88, 2177, 2177,
+ 2177, 2177, 173, 1850, 0, 0, 0, -33, 46, 180,
+ 2177, 138, 1910, 2025, 0, 97, 0, 0, -31, -29,
+ 0, 2177, 133, 0, 0, -237, -237, 0, -237, -237,
+ -237, -69, 0, 1614, 1085, 684, 167, 107, 845, 3800,
+ 1125, 405, 1164, 778, -228, -181, -181, 2177, 0, 2117,
+ 2177, 0, 197, -48, 0, -9, -72, -45, -7, -42,
+ 56, -36, 0, -4, 845, -10, -47, 2177, -47, 0,
+ 216, 2177, 0, 2177, 60, -237, 0, 219, 0, 230,
+ -237, 233, 237, 0, 242, 470, 0, 0, 246, 225,
+ 2177, 0, 0, 0, 13, 0, 18, 0, 29, 0,
+ 0, 0, 61, 2177, 2177, 54, 0, 32, 63, 2177,
+ 165, 0, 0, 174, 0, 178, 0, 191, 0, 0,
+ 0, 0, 0, 261, 0, 0, 350, 0, 0, 182,
+ 182, 182, 182, 2177, 182, 2177, 281, 0, 0, 0,
+ 0, 102, 1237, 202, 0, 0, 294, 0, 0, 0,
+ 0, 0, 0, 0, -152, -152, -130, -130, 297, -152,
+ 290, 182, 0, 0, 0, 0, 0, 0, 182, 318,
+ 0, 0, 182, 0, 1850, -152, 407, 0, 2177, -152,
+ 324, 0, 0, 326, 0, 182, 182, 0, -130, 0,
+};
+static short yyrindex[] = { 0,
+ 0, 0, 243, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 236, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 36, 451, 0, 0, 2208, 2271, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 115, 0,
+ -12, 939, 2325, 2385, 2463, 0, 0, 2510, 2561, 0,
+ 1220, 0, 0, 0, 0, 0, -44, 0, 0, -44,
+ 0, 0, 0, 0, 0, 2271, 0, 0, 3846, 0,
+ -105, 0, 0, 0, 0, 0, 0, 0, 2612, 0,
+ 0, 327, 0, 3883, 522, 583, 3032, 0, 0, 0,
+ 2621, 0, 3893, 2385, 0, 0, 2271, 3930, 0, 0,
+ 0, 0, 2667, 0, 3092, 3374, 3418, 3458, 3219, 3331,
+ 2746, 0, 0, 0, 3496, 3567, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 2797, 0, 0, -23,
+ 0, -23, 913, 0, 327, 0, 0, 247, 336, 0,
+ 0, 0, 0, 333, 0, 0, 0, 0, 352, 0,
+ 0, 3138, 0, 0, 0, 0, 0, 0, 0, 2857,
+ 0, 0, 2903, 0, 0, -8, -2, 0, 7, 33,
+ 42, 2255, 0, -28, 3968, 1822, 3732, 3769, 3023, 0,
+ 4119, 4082, 4021, 4005, 1044, 3610, 3694, 0, 0, 0,
+ 0, 0, 2949, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 3657, -21, 0, 345, 0, 0,
+ 0, 0, 0, 2271, 0, 71, 0, 0, 0, 0,
+ 364, 0, 0, 0, 0, 86, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 327,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 355, 0, 0, 0, 0,
+ 0, 0, 2972, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 115, 115, 175, 175, 0, 115,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 374, 115, 913, 0, 0, 115,
+ 0, 0, 0, 0, 0, 0, 0, 0, 175, 0,
+};
+static short yygindex[] = { 0,
+ 0, 0, 164, 383, 0, 14, 0, 37, 655, -89,
+ 0, 0, 0, -336, -15, 3415, 0, 2211, 368, 369,
+ 0, 0, 0, 410, 916, 0, 0, 273, -163, 62,
+ 94, 249, -71, -186, 634, 0, 0, 0, 428, -46,
+ 184, 118, 0, -149, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0,
+};
+#define YYTABLESIZE 4423
+static short yytable[] = { 71,
+ 65, 193, 223, 65, 107, 22, 216, 292, 271, 301,
+ 311, 321, 111, 314, 60, 111, 316, 60, 224, 65,
+ 313, 372, 318, 250, 194, 181, 178, 183, 15, 111,
+ 111, 312, 18, 126, 111, 62, 319, 64, 39, 84,
+ 289, 214, 269, 192, 142, 144, 15, 16, 275, 86,
+ 18, 69, 390, 338, 198, 217, 39, 180, 339, 182,
+ 163, 164, 158, 159, 111, 16, 4, 5, 6, 340,
+ 7, 8, 345, 17, 251, 26, 155, 179, 60, 155,
+ 172, 113, 20, 173, 122, 315, 174, 175, 176, 293,
+ 26, 17, 181, 155, 155, 208, 209, 9, 155, 62,
+ 20, 64, 88, 65, 67, 98, 248, 129, 102, 177,
+ 127, 38, 344, 219, 26, 199, 200, 201, 202, 203,
+ 204, 188, 103, 347, 180, 151, 40, 337, 155, 38,
+ 173, 66, 104, 174, 175, 176, 197, 226, 227, 229,
+ 230, 231, 232, 233, 15, 369, 370, 26, 317, 105,
+ 26, 26, 26, 341, 26, 346, 26, 26, 110, 26,
+ 111, 254, 256, 257, 258, 259, 260, 261, 262, 264,
+ 359, 23, 24, 26, 21, 112, 185, 184, 26, 209,
+ 186, 187, 26, 276, 227, 195, 227, 225, 286, 189,
+ 191, 205, 60, 206, 363, 295, 324, 297, 299, 213,
+ 215, 220, 328, 21, 176, 26, 303, 21, 65, 266,
+ 21, 21, 21, 222, 21, 384, 21, 21, 291, 21,
+ 294, 300, 268, 304, 92, 158, 159, 158, 159, 93,
+ 302, 159, 306, 21, 308, 309, 310, 26, 21, 26,
+ 26, 249, 2, 111, 111, 111, 111, 158, 159, 320,
+ 111, 158, 159, 60, 158, 159, 326, 158, 159, 330,
+ 106, 158, 159, 158, 159, 21, 158, 159, 158, 159,
+ 331, 111, 111, 332, 111, 44, 377, 333, 44, 44,
+ 44, 334, 44, 336, 44, 44, 335, 44, 342, 348,
+ 158, 159, 158, 159, 209, 158, 159, 21, 349, 21,
+ 21, 44, 350, 322, 354, 322, 44, 155, 155, 155,
+ 155, 329, 158, 159, 155, 351, 155, 158, 159, 352,
+ 276, 362, 155, 155, 155, 155, 364, 273, 158, 159,
+ 272, 158, 159, 44, 365, 155, 155, 373, 155, 155,
+ 155, 155, 155, 155, 155, 158, 159, 155, 375, 166,
+ 155, 155, 155, 158, 159, 158, 159, 379, 53, 71,
+ 158, 159, 158, 159, 386, 44, 387, 180, 44, 62,
+ 26, 26, 26, 26, 26, 26, 37, 26, 26, 26,
+ 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
+ 353, 35, 181, 26, 26, 163, 26, 26, 26, 26,
+ 26, 158, 159, 178, 40, 26, 26, 26, 26, 26,
+ 26, 26, 166, 37, 35, 172, 26, 101, 173, 131,
+ 132, 174, 175, 176, 80, 26, 228, 26, 26, 361,
+ 21, 21, 21, 21, 21, 21, 381, 21, 21, 21,
+ 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
+ 283, 90, 325, 21, 21, 0, 21, 21, 21, 21,
+ 21, 0, 0, 270, 0, 21, 21, 21, 21, 21,
+ 21, 21, 367, 368, 0, 172, 21, 374, 173, 0,
+ 0, 174, 175, 176, 0, 21, 0, 21, 21, 0,
+ 0, 162, 0, 382, 162, 0, 0, 385, 44, 44,
+ 44, 44, 44, 44, 0, 44, 44, 44, 162, 162,
+ 0, 44, 0, 162, 44, 44, 44, 44, 0, 0,
+ 0, 44, 44, 0, 44, 44, 44, 44, 44, 0,
+ 0, 383, 0, 44, 44, 44, 44, 44, 44, 0,
+ 0, 0, 0, 162, 44, 0, 0, 0, 0, 0,
+ 0, 0, 0, 44, 190, 44, 44, 190, 190, 190,
+ 0, 190, 169, 190, 190, 169, 190, 160, 0, 0,
+ 0, 0, 0, 161, 162, 163, 164, 0, 0, 169,
+ 169, 0, 0, 0, 169, 190, 0, 0, 0, 165,
+ 167, 168, 169, 170, 171, 172, 0, 0, 173, 0,
+ 0, 174, 175, 176, 4, 5, 6, 0, 7, 8,
+ 0, 0, 190, 0, 169, 191, 0, 0, 191, 191,
+ 191, 0, 191, 134, 191, 191, 134, 191, 0, 0,
+ 160, 0, 0, 0, 0, 9, 161, 162, 163, 164,
+ 134, 134, 0, 0, 0, 134, 191, 190, 0, 0,
+ 0, 0, 165, 167, 168, 169, 170, 171, 172, 0,
+ 0, 173, 97, 0, 174, 175, 176, 0, 0, 0,
+ 0, 0, 4, 5, 6, 134, 7, 8, 55, 119,
+ 120, 65, 67, 53, 0, 60, 134, 68, 64, 0,
+ 63, 161, 162, 163, 164, 0, 0, 0, 147, 148,
+ 149, 150, 0, 9, 62, 0, 0, 0, 191, 66,
+ 169, 170, 171, 172, 0, 0, 173, 0, 0, 174,
+ 175, 176, 162, 162, 162, 162, 0, 0, 0, 162,
+ 0, 162, 0, 0, 0, 0, 61, 162, 162, 162,
+ 162, 153, 154, 155, 156, 211, 0, 0, 157, 0,
+ 162, 162, 0, 162, 162, 162, 162, 162, 162, 162,
+ 0, 0, 162, 0, 0, 162, 162, 162, 26, 158,
+ 159, 56, 0, 0, 0, 0, 0, 0, 190, 190,
+ 190, 190, 190, 0, 190, 190, 190, 0, 0, 0,
+ 190, 0, 0, 169, 169, 169, 169, 0, 0, 0,
+ 169, 190, 169, 190, 190, 190, 190, 190, 169, 169,
+ 169, 169, 190, 190, 190, 190, 190, 190, 0, 0,
+ 0, 169, 169, 190, 169, 169, 169, 169, 169, 169,
+ 169, 0, 190, 169, 190, 190, 169, 169, 169, 191,
+ 191, 191, 191, 191, 0, 191, 191, 191, 0, 0,
+ 0, 191, 0, 0, 134, 134, 134, 134, 0, 0,
+ 0, 134, 191, 134, 191, 191, 191, 191, 191, 134,
+ 134, 134, 134, 191, 191, 191, 191, 191, 191, 0,
+ 0, 0, 134, 134, 191, 134, 134, 134, 134, 134,
+ 134, 134, 0, 191, 134, 191, 191, 134, 134, 134,
+ 0, 25, 27, 28, 29, 30, 31, 166, 32, 33,
+ 34, 0, 0, 0, 35, 0, 0, 36, 37, 38,
+ 39, 0, 0, 0, 40, 41, 0, 42, 43, 44,
+ 45, 46, 0, 0, 0, 0, 47, 48, 49, 50,
+ 51, 52, 0, 0, 0, 44, 0, 54, 44, 44,
+ 44, 0, 44, 0, 44, 44, 57, 44, 58, 59,
+ 0, 117, 0, 0, 0, 0, 0, 0, 0, 135,
+ 161, 44, 163, 164, 0, 0, 44, 0, 0, 78,
+ 0, 0, 78, 0, 0, 356, 357, 358, 0, 360,
+ 0, 171, 172, 0, 0, 173, 78, 78, 174, 175,
+ 176, 0, 0, 44, 0, 55, 0, 0, 65, 67,
+ 53, 117, 60, 0, 68, 64, 376, 63, 0, 0,
+ 0, 0, 0, 378, 0, 0, 0, 380, 0, 0,
+ 0, 78, 0, 0, 212, 44, 66, 0, 44, 0,
+ 388, 389, 117, 0, 0, 55, 0, 0, 65, 67,
+ 53, 0, 60, 0, 68, 64, 0, 63, 0, 0,
+ 0, 0, 0, 61, 161, 162, 163, 164, 0, 0,
+ 0, 0, 0, 0, 0, 0, 66, 0, 0, 0,
+ 0, 0, 0, 0, 106, 171, 172, 106, 0, 173,
+ 0, 0, 174, 175, 176, 26, 0, 0, 56, 0,
+ 0, 106, 106, 61, 0, 0, 106, 0, 0, 55,
+ 0, 0, 65, 67, 53, 0, 60, 0, 68, 64,
+ 0, 63, 0, 0, 0, 160, 0, 0, 0, 0,
+ 0, 161, 162, 163, 164, 26, 106, 0, 56, 0,
+ 66, 0, 0, 0, 0, 0, 0, 165, 167, 168,
+ 169, 170, 171, 172, 0, 0, 173, 0, 0, 174,
+ 175, 176, 0, 0, 0, 0, 0, 61, 44, 44,
+ 44, 44, 44, 44, 0, 44, 44, 44, 0, 0,
+ 0, 44, 0, 117, 44, 44, 44, 44, 0, 117,
+ 0, 44, 44, 0, 44, 44, 44, 44, 44, 26,
+ 0, 0, 56, 44, 44, 44, 44, 44, 44, 0,
+ 78, 78, 78, 78, 44, 0, 0, 78, 0, 0,
+ 0, 0, 0, 44, 0, 44, 44, 0, 0, 115,
+ 28, 29, 30, 31, 93, 32, 33, 34, 78, 78,
+ 0, 35, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 41, 0, 42, 43, 44, 45, 46, 0,
+ 75, 0, 0, 47, 48, 49, 50, 51, 52, 27,
+ 28, 29, 30, 31, 54, 32, 33, 34, 75, 0,
+ 0, 35, 0, 57, 0, 58, 59, 0, 0, 0,
+ 0, 0, 41, 0, 42, 43, 44, 45, 46, 166,
+ 0, 0, 0, 47, 48, 49, 50, 51, 52, 0,
+ 0, 0, 75, 0, 54, 106, 106, 106, 106, 0,
+ 0, 0, 106, 57, 106, 58, 59, 0, 0, 0,
+ 106, 106, 0, 121, 28, 29, 30, 31, 0, 32,
+ 33, 34, 0, 106, 106, 35, 106, 106, 106, 106,
+ 106, 106, 0, 0, 0, 0, 41, 0, 42, 43,
+ 44, 45, 46, 0, 0, 0, 0, 47, 48, 49,
+ 50, 51, 52, 163, 164, 0, 55, 0, 54, 65,
+ 67, 53, 0, 60, 0, 68, 64, 57, 63, 58,
+ 59, 0, 171, 172, 0, 0, 173, 0, 0, 174,
+ 175, 176, 125, 0, 0, 0, 0, 66, 0, 0,
+ 0, 161, 162, 163, 164, 0, 55, 0, 0, 65,
+ 67, 53, 0, 60, 141, 68, 64, 0, 63, 168,
+ 169, 170, 171, 172, 61, 0, 173, 0, 0, 174,
+ 175, 176, 0, 0, 0, 0, 0, 66, 0, 0,
+ 161, 162, 163, 164, 0, 0, 55, 0, 0, 65,
+ 67, 53, 0, 60, 0, 68, 64, 0, 63, 56,
+ 170, 171, 172, 0, 61, 173, 0, 0, 174, 175,
+ 176, 0, 0, 0, 0, 0, 0, 66, 0, 0,
+ 0, 75, 75, 75, 75, 0, 55, 0, 75, 65,
+ 67, 53, 0, 60, 207, 68, 64, 0, 63, 56,
+ 0, 0, 0, 0, 61, 0, 143, 160, 0, 75,
+ 75, 0, 0, 161, 162, 163, 164, 66, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 167, 168, 169, 170, 171, 172, 0, 0, 173, 56,
+ 0, 174, 175, 176, 61, 0, 55, 0, 0, 65,
+ 67, 53, 0, 60, 218, 68, 64, 0, 63, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 66, 0, 56,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 27, 28, 29, 30, 31, 0, 32, 33, 34, 0,
+ 0, 0, 35, 0, 61, 0, 0, 0, 0, 0,
+ 0, 0, 0, 41, 0, 42, 43, 44, 45, 46,
+ 0, 0, 0, 0, 47, 48, 49, 50, 51, 52,
+ 27, 28, 29, 30, 31, 54, 32, 33, 34, 56,
+ 0, 0, 35, 0, 57, 0, 58, 59, 0, 0,
+ 0, 0, 0, 41, 0, 42, 43, 44, 45, 46,
+ 0, 0, 0, 0, 47, 48, 49, 50, 51, 52,
+ 27, 28, 29, 30, 31, 54, 32, 33, 34, 0,
+ 0, 0, 35, 0, 57, 0, 58, 59, 0, 0,
+ 0, 0, 0, 41, 0, 42, 43, 44, 45, 46,
+ 0, 0, 0, 0, 47, 48, 49, 50, 51, 52,
+ 27, 28, 29, 30, 31, 54, 32, 33, 34, 0,
+ 0, 0, 35, 0, 57, 0, 58, 59, 0, 0,
+ 0, 0, 0, 41, 0, 42, 43, 44, 45, 46,
+ 0, 0, 0, 0, 47, 48, 49, 50, 51, 52,
+ 0, 0, 0, 55, 0, 54, 65, 67, 53, 0,
+ 60, 255, 68, 64, 57, 63, 58, 59, 0, 0,
+ 27, 28, 29, 30, 31, 0, 32, 33, 34, 0,
+ 0, 0, 35, 0, 66, 0, 0, 0, 0, 0,
+ 0, 0, 0, 41, 0, 42, 43, 44, 45, 46,
+ 0, 0, 0, 0, 47, 48, 49, 50, 51, 52,
+ 0, 61, 0, 55, 0, 54, 65, 67, 53, 0,
+ 60, 263, 68, 64, 57, 63, 58, 59, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 66, 0, 56, 0, 0, 0,
+ 0, 0, 108, 0, 0, 108, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 108,
+ 108, 61, 55, 0, 108, 65, 67, 53, 0, 60,
+ 0, 68, 64, 0, 63, 0, 0, 0, 0, 0,
+ 161, 162, 163, 164, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 66, 108, 0, 56, 167, 168, 169,
+ 170, 171, 172, 0, 0, 173, 0, 0, 174, 175,
+ 176, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 61, 0, 55, 0, 0, 65, 67, 53, 0, 60,
+ 296, 68, 64, 0, 63, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 66, 0, 56, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 27, 28, 29,
+ 30, 31, 0, 32, 33, 34, 0, 0, 0, 35,
+ 61, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 41, 0, 42, 43, 44, 45, 46, 0, 0, 0,
+ 0, 47, 48, 49, 50, 51, 52, 0, 0, 0,
+ 0, 0, 54, 0, 0, 56, 0, 0, 0, 0,
+ 0, 57, 0, 58, 59, 0, 0, 27, 28, 29,
+ 30, 31, 0, 32, 33, 34, 0, 55, 0, 35,
+ 65, 67, 53, 0, 60, 298, 68, 64, 0, 63,
+ 41, 0, 42, 43, 44, 45, 46, 0, 0, 0,
+ 0, 47, 48, 49, 50, 51, 52, 0, 66, 0,
+ 0, 0, 54, 108, 108, 108, 108, 0, 0, 0,
+ 108, 57, 108, 58, 59, 25, 27, 28, 29, 30,
+ 31, 0, 32, 33, 34, 61, 0, 0, 35, 0,
+ 0, 108, 108, 0, 108, 108, 108, 108, 108, 41,
+ 0, 42, 43, 44, 45, 46, 0, 0, 0, 0,
+ 47, 48, 49, 50, 51, 52, 0, 0, 0, 55,
+ 56, 54, 65, 67, 53, 0, 60, 307, 68, 64,
+ 57, 63, 58, 59, 0, 0, 27, 28, 29, 30,
+ 31, 0, 32, 33, 34, 0, 0, 0, 35, 0,
+ 66, 0, 0, 0, 0, 0, 0, 0, 0, 41,
+ 0, 42, 43, 44, 45, 46, 0, 0, 0, 0,
+ 47, 48, 49, 50, 51, 52, 0, 61, 0, 55,
+ 0, 54, 65, 67, 53, 0, 60, 0, 68, 64,
+ 57, 63, 58, 59, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 95, 95,
+ 66, 0, 56, 0, 0, 0, 0, 0, 158, 0,
+ 108, 158, 0, 0, 0, 0, 116, 95, 124, 0,
+ 0, 0, 130, 95, 0, 158, 158, 61, 0, 0,
+ 158, 0, 0, 0, 0, 95, 95, 95, 95, 0,
+ 0, 27, 28, 29, 30, 31, 0, 32, 33, 34,
+ 0, 0, 0, 35, 0, 74, 0, 0, 74, 0,
+ 158, 0, 56, 0, 41, 0, 42, 43, 44, 45,
+ 46, 178, 0, 74, 178, 47, 48, 49, 50, 51,
+ 52, 0, 116, 0, 0, 0, 54, 0, 178, 178,
+ 0, 0, 0, 178, 0, 57, 0, 58, 59, 0,
+ 0, 0, 0, 0, 0, 0, 0, 74, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 178, 0, 139, 0, 0, 139, 0,
+ 0, 0, 0, 27, 28, 29, 30, 31, 0, 32,
+ 33, 34, 139, 139, 0, 35, 252, 139, 0, 0,
+ 0, 0, 0, 0, 0, 0, 41, 0, 42, 43,
+ 44, 45, 46, 0, 0, 0, 0, 47, 48, 49,
+ 50, 51, 52, 284, 0, 0, 0, 139, 54, 0,
+ 0, 0, 0, 0, 0, 134, 0, 57, 134, 58,
+ 59, 0, 0, 27, 28, 29, 30, 31, 0, 32,
+ 33, 34, 134, 134, 0, 35, 0, 134, 0, 0,
+ 0, 0, 0, 0, 0, 0, 41, 0, 42, 43,
+ 44, 45, 46, 0, 0, 0, 0, 47, 48, 49,
+ 50, 51, 52, 0, 0, 0, 0, 134, 54, 158,
+ 158, 158, 158, 0, 0, 0, 158, 57, 158, 58,
+ 59, 0, 0, 0, 158, 158, 158, 158, 0, 0,
+ 0, 0, 0, 137, 0, 0, 137, 158, 158, 0,
+ 158, 158, 158, 158, 158, 158, 158, 0, 0, 158,
+ 137, 137, 158, 158, 158, 137, 74, 74, 74, 74,
+ 0, 0, 0, 74, 0, 0, 0, 0, 0, 0,
+ 0, 0, 178, 178, 178, 178, 0, 0, 0, 178,
+ 135, 178, 0, 135, 74, 137, 0, 178, 178, 178,
+ 178, 0, 0, 0, 0, 0, 0, 135, 135, 0,
+ 178, 178, 135, 178, 178, 178, 178, 178, 178, 178,
+ 0, 0, 178, 0, 0, 178, 178, 178, 0, 0,
+ 0, 0, 0, 0, 0, 0, 139, 139, 139, 139,
+ 0, 145, 135, 139, 145, 139, 0, 0, 0, 0,
+ 0, 139, 139, 139, 139, 0, 0, 0, 145, 145,
+ 0, 0, 0, 145, 139, 139, 0, 139, 139, 139,
+ 139, 139, 139, 139, 0, 0, 139, 0, 0, 139,
+ 139, 139, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 156, 145, 0, 156, 134, 134, 134, 134,
+ 0, 169, 0, 134, 169, 134, 0, 0, 0, 156,
+ 156, 134, 134, 134, 134, 0, 0, 0, 169, 169,
+ 0, 0, 0, 169, 134, 134, 0, 134, 134, 134,
+ 134, 134, 134, 134, 0, 0, 134, 0, 0, 134,
+ 134, 134, 0, 0, 156, 0, 0, 172, 0, 0,
+ 172, 0, 0, 169, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 172, 172, 0, 0, 0, 172,
+ 0, 0, 0, 0, 137, 137, 137, 137, 0, 0,
+ 0, 137, 0, 137, 0, 0, 0, 0, 0, 137,
+ 137, 137, 137, 0, 0, 0, 0, 0, 0, 172,
+ 0, 0, 137, 137, 0, 137, 137, 137, 137, 137,
+ 137, 137, 0, 0, 137, 0, 0, 137, 137, 137,
+ 0, 135, 135, 135, 135, 0, 128, 0, 135, 128,
+ 135, 0, 0, 0, 0, 0, 135, 135, 135, 135,
+ 0, 0, 0, 128, 128, 0, 0, 0, 128, 135,
+ 135, 0, 135, 135, 135, 135, 135, 135, 135, 0,
+ 0, 135, 0, 0, 135, 135, 135, 0, 0, 0,
+ 0, 0, 145, 145, 145, 145, 0, 76, 128, 145,
+ 76, 145, 0, 0, 0, 0, 0, 145, 145, 145,
+ 145, 0, 0, 0, 76, 76, 0, 0, 0, 76,
+ 145, 145, 0, 145, 145, 145, 145, 145, 145, 145,
+ 0, 0, 145, 0, 0, 145, 145, 145, 0, 0,
+ 0, 0, 0, 156, 156, 156, 156, 0, 0, 76,
+ 156, 0, 169, 169, 169, 169, 0, 66, 0, 169,
+ 66, 169, 0, 0, 0, 0, 0, 169, 169, 169,
+ 169, 156, 156, 0, 66, 66, 0, 0, 0, 66,
+ 169, 169, 0, 169, 169, 169, 169, 169, 169, 169,
+ 0, 0, 169, 0, 0, 169, 169, 169, 172, 172,
+ 172, 172, 0, 127, 0, 172, 127, 172, 0, 66,
+ 0, 0, 0, 172, 172, 172, 172, 0, 0, 0,
+ 127, 127, 0, 0, 0, 127, 172, 172, 0, 172,
+ 172, 172, 172, 172, 172, 172, 0, 0, 172, 0,
+ 0, 172, 172, 172, 0, 0, 0, 0, 0, 82,
+ 0, 0, 82, 0, 0, 127, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 82, 82, 0, 0,
+ 0, 82, 114, 0, 0, 114, 0, 128, 128, 128,
+ 128, 0, 0, 0, 128, 0, 128, 0, 0, 114,
+ 114, 0, 128, 128, 128, 128, 0, 0, 0, 0,
+ 0, 82, 0, 0, 0, 128, 128, 0, 128, 128,
+ 128, 128, 128, 128, 128, 0, 0, 128, 0, 0,
+ 128, 128, 128, 102, 114, 0, 102, 0, 76, 76,
+ 76, 76, 179, 0, 0, 76, 0, 76, 0, 0,
+ 102, 102, 0, 76, 76, 76, 76, 0, 0, 179,
+ 179, 0, 0, 0, 179, 0, 76, 76, 0, 76,
+ 76, 76, 76, 76, 76, 76, 0, 0, 76, 0,
+ 0, 76, 76, 76, 0, 102, 0, 0, 0, 0,
+ 0, 0, 0, 0, 179, 0, 0, 0, 66, 66,
+ 66, 66, 157, 0, 0, 66, 0, 66, 0, 0,
+ 0, 0, 0, 66, 66, 66, 66, 0, 0, 157,
+ 157, 0, 0, 0, 157, 0, 66, 66, 0, 66,
+ 66, 66, 66, 66, 66, 66, 0, 0, 66, 0,
+ 0, 66, 66, 66, 127, 127, 127, 127, 79, 0,
+ 0, 127, 0, 127, 157, 0, 0, 0, 0, 127,
+ 127, 127, 127, 0, 0, 79, 79, 0, 0, 0,
+ 79, 0, 127, 127, 0, 127, 127, 127, 127, 127,
+ 127, 127, 0, 0, 127, 0, 0, 127, 127, 127,
+ 82, 82, 82, 82, 0, 0, 0, 82, 0, 82,
+ 79, 0, 0, 0, 0, 82, 82, 82, 82, 0,
+ 0, 0, 0, 114, 114, 114, 114, 0, 82, 82,
+ 114, 82, 82, 82, 82, 82, 82, 82, 0, 123,
+ 82, 0, 123, 82, 82, 82, 0, 0, 0, 0,
+ 0, 114, 114, 0, 114, 0, 123, 123, 0, 0,
+ 0, 123, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 102, 102, 102, 102, 0, 0,
+ 0, 102, 0, 179, 179, 179, 179, 0, 0, 0,
+ 179, 123, 179, 0, 0, 0, 0, 0, 179, 179,
+ 179, 179, 102, 102, 0, 0, 0, 0, 0, 0,
+ 0, 179, 179, 0, 179, 179, 179, 179, 179, 179,
+ 179, 0, 0, 179, 0, 0, 179, 179, 179, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 157, 157, 157, 157, 0, 0, 0,
+ 157, 124, 157, 0, 124, 0, 0, 0, 157, 157,
+ 157, 157, 0, 0, 0, 0, 0, 0, 124, 124,
+ 0, 157, 157, 124, 157, 157, 157, 157, 157, 157,
+ 157, 0, 0, 157, 0, 0, 157, 157, 157, 79,
+ 79, 79, 79, 0, 118, 0, 79, 118, 79, 0,
+ 0, 0, 0, 124, 79, 79, 79, 79, 0, 0,
+ 0, 118, 118, 0, 0, 0, 118, 79, 79, 0,
+ 79, 79, 79, 79, 79, 79, 79, 99, 0, 79,
+ 0, 0, 79, 79, 79, 109, 0, 0, 119, 114,
+ 0, 119, 123, 0, 0, 128, 118, 0, 0, 136,
+ 137, 138, 139, 140, 0, 119, 119, 145, 146, 0,
+ 119, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 123, 123, 123, 123, 0, 0, 0, 123, 120, 123,
+ 0, 120, 0, 0, 0, 123, 123, 123, 123, 0,
+ 119, 0, 196, 0, 0, 120, 120, 0, 123, 123,
+ 120, 123, 123, 123, 123, 123, 123, 123, 0, 0,
+ 123, 0, 0, 0, 0, 0, 116, 0, 0, 116,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 120, 0, 0, 116, 116, 0, 0, 0, 116, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 234, 235, 236, 237, 238, 239,
+ 240, 241, 242, 243, 244, 245, 246, 247, 116, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 265, 124, 124, 124, 124, 0, 117, 0, 124,
+ 117, 124, 0, 0, 0, 0, 0, 124, 124, 124,
+ 124, 0, 0, 0, 117, 117, 0, 0, 0, 117,
+ 124, 124, 0, 124, 124, 124, 124, 124, 124, 124,
+ 0, 0, 124, 0, 0, 118, 118, 118, 118, 0,
+ 115, 0, 118, 115, 118, 0, 0, 0, 0, 117,
+ 118, 118, 118, 118, 0, 0, 0, 115, 115, 0,
+ 0, 0, 115, 118, 118, 0, 118, 118, 118, 118,
+ 118, 118, 118, 0, 0, 0, 327, 0, 0, 119,
+ 119, 119, 119, 0, 0, 0, 119, 77, 119, 0,
+ 77, 0, 115, 0, 119, 119, 119, 119, 0, 0,
+ 0, 0, 0, 0, 77, 77, 0, 119, 119, 343,
+ 119, 119, 119, 119, 119, 119, 119, 0, 0, 120,
+ 120, 120, 120, 0, 103, 0, 120, 103, 120, 0,
+ 0, 0, 0, 0, 120, 120, 120, 120, 0, 77,
+ 0, 103, 103, 0, 0, 0, 103, 120, 120, 0,
+ 120, 120, 120, 120, 120, 120, 120, 116, 116, 116,
+ 116, 0, 104, 0, 116, 104, 116, 0, 0, 0,
+ 0, 0, 116, 116, 116, 116, 103, 0, 0, 104,
+ 104, 0, 0, 0, 104, 116, 116, 0, 116, 116,
+ 116, 116, 116, 116, 116, 0, 0, 0, 0, 105,
+ 0, 0, 105, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 104, 0, 105, 105, 0, 0,
+ 0, 105, 0, 0, 0, 0, 0, 0, 117, 117,
+ 117, 117, 0, 0, 0, 117, 0, 117, 0, 0,
+ 0, 0, 0, 117, 117, 117, 117, 305, 0, 0,
+ 0, 105, 166, 0, 0, 0, 117, 117, 0, 117,
+ 117, 117, 117, 117, 117, 117, 0, 0, 0, 0,
+ 0, 115, 115, 115, 115, 0, 161, 0, 115, 161,
+ 115, 0, 0, 0, 0, 0, 115, 115, 115, 115,
+ 0, 0, 0, 161, 161, 0, 0, 0, 161, 115,
+ 115, 0, 115, 115, 115, 115, 115, 115, 115, 0,
+ 0, 0, 0, 160, 0, 0, 160, 0, 77, 77,
+ 77, 77, 0, 149, 0, 77, 149, 0, 161, 0,
+ 160, 160, 0, 0, 0, 160, 0, 0, 0, 0,
+ 149, 149, 0, 0, 0, 149, 77, 77, 0, 0,
+ 0, 0, 0, 0, 0, 103, 103, 103, 103, 0,
+ 126, 0, 103, 126, 103, 160, 0, 0, 0, 0,
+ 103, 103, 103, 103, 0, 149, 0, 126, 126, 0,
+ 0, 0, 126, 103, 103, 0, 103, 103, 103, 103,
+ 103, 103, 103, 104, 104, 104, 104, 0, 107, 0,
+ 104, 107, 104, 0, 0, 0, 0, 0, 104, 104,
+ 104, 104, 126, 0, 0, 107, 107, 0, 0, 0,
+ 107, 104, 104, 0, 104, 104, 104, 104, 104, 104,
+ 105, 105, 105, 105, 0, 109, 0, 105, 109, 105,
+ 0, 0, 0, 0, 0, 105, 105, 0, 105, 0,
+ 107, 110, 109, 109, 110, 0, 0, 109, 105, 105,
+ 0, 105, 105, 105, 105, 105, 105, 0, 110, 110,
+ 160, 0, 0, 110, 0, 0, 161, 162, 163, 164,
+ 0, 0, 0, 0, 0, 0, 0, 109, 0, 0,
+ 0, 0, 165, 167, 168, 169, 170, 171, 172, 0,
+ 0, 173, 0, 110, 174, 175, 176, 161, 161, 161,
+ 161, 0, 112, 0, 161, 112, 161, 0, 0, 0,
+ 0, 0, 161, 161, 0, 0, 0, 0, 0, 112,
+ 112, 0, 0, 0, 112, 161, 161, 0, 161, 161,
+ 161, 161, 161, 0, 160, 160, 160, 160, 0, 113,
+ 0, 160, 113, 160, 149, 149, 149, 149, 0, 160,
+ 160, 149, 0, 149, 112, 0, 113, 113, 0, 149,
+ 149, 113, 160, 160, 0, 160, 160, 160, 160, 160,
+ 0, 0, 149, 149, 0, 149, 149, 149, 149, 149,
+ 0, 126, 126, 126, 126, 0, 0, 0, 126, 0,
+ 126, 113, 0, 0, 0, 0, 126, 126, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 126,
+ 126, 0, 126, 126, 126, 126, 126, 0, 0, 107,
+ 107, 107, 107, 0, 0, 0, 107, 0, 107, 0,
+ 0, 0, 0, 0, 0, 107, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 107, 107, 0,
+ 107, 107, 107, 107, 107, 0, 109, 109, 109, 109,
+ 0, 0, 0, 109, 0, 109, 0, 0, 0, 0,
+ 0, 0, 110, 110, 110, 110, 0, 0, 0, 110,
+ 0, 110, 0, 0, 109, 109, 0, 109, 109, 109,
+ 109, 109, 0, 0, 0, 0, 0, 0, 0, 0,
+ 110, 110, 0, 110, 110, 110, 110, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 112, 112, 112, 112, 0, 0, 0,
+ 112, 0, 112, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 112, 112, 0, 112, 112, 112, 0, 0, 0,
+ 113, 113, 113, 113, 0, 0, 0, 113, 0, 113,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 113, 113,
+ 0, 113, 113,
+};
+static short yycheck[] = { 15,
+ 36, 91, 41, 36, 40, 59, 59, 41, 195, 41,
+ 59, 59, 41, 59, 59, 44, 59, 123, 93, 36,
+ 93, 358, 59, 40, 96, 91, 40, 91, 41, 58,
+ 59, 41, 41, 49, 63, 59, 41, 59, 41, 257,
+ 204, 40, 192, 90, 60, 61, 59, 41, 198, 257,
+ 59, 15, 389, 41, 101, 127, 59, 123, 41, 123,
+ 289, 290, 300, 301, 93, 59, 266, 267, 268, 41,
+ 270, 271, 41, 41, 91, 123, 41, 91, 123, 44,
+ 309, 45, 41, 312, 48, 93, 315, 316, 317, 44,
+ 123, 59, 91, 58, 59, 111, 112, 297, 63, 123,
+ 59, 123, 59, 36, 37, 40, 123, 40, 40, 123,
+ 257, 41, 59, 129, 0, 102, 103, 104, 105, 106,
+ 107, 85, 40, 310, 123, 278, 41, 291, 93, 59,
+ 312, 64, 40, 315, 316, 317, 100, 153, 154, 155,
+ 156, 157, 158, 159, 59, 276, 277, 33, 93, 40,
+ 36, 37, 38, 93, 40, 93, 42, 43, 40, 45,
+ 40, 177, 178, 179, 180, 181, 182, 183, 184, 185,
+ 334, 8, 9, 59, 0, 40, 40, 123, 64, 195,
+ 59, 44, 123, 199, 200, 40, 202, 151, 204, 260,
+ 257, 40, 298, 41, 93, 211, 268, 213, 214, 40,
+ 125, 298, 274, 257, 317, 91, 222, 33, 36, 298,
+ 36, 37, 38, 91, 40, 379, 42, 43, 205, 45,
+ 41, 125, 257, 91, 257, 300, 301, 300, 301, 262,
+ 260, 301, 248, 59, 250, 251, 40, 123, 64, 125,
+ 126, 258, 0, 272, 273, 274, 275, 300, 301, 260,
+ 279, 300, 301, 298, 300, 301, 41, 300, 301, 41,
+ 296, 300, 301, 300, 301, 91, 300, 301, 300, 301,
+ 41, 300, 301, 41, 303, 33, 366, 41, 36, 37,
+ 38, 40, 40, 59, 42, 43, 41, 45, 304, 125,
+ 300, 301, 300, 301, 310, 300, 301, 123, 125, 125,
+ 126, 59, 125, 267, 123, 269, 64, 272, 273, 274,
+ 275, 275, 300, 301, 279, 125, 281, 300, 301, 59,
+ 336, 41, 287, 288, 289, 290, 125, 41, 300, 301,
+ 44, 300, 301, 91, 41, 300, 301, 41, 303, 304,
+ 305, 306, 307, 308, 309, 300, 301, 312, 59, 63,
+ 315, 316, 317, 300, 301, 300, 301, 40, 123, 375,
+ 300, 301, 300, 301, 41, 123, 41, 41, 126, 123,
+ 256, 257, 258, 259, 260, 261, 41, 263, 264, 265,
+ 266, 267, 268, 269, 270, 271, 272, 273, 274, 275,
+ 41, 59, 41, 279, 280, 289, 282, 283, 284, 285,
+ 286, 300, 301, 59, 41, 291, 292, 293, 294, 295,
+ 296, 297, 63, 59, 41, 309, 302, 35, 312, 52,
+ 52, 315, 316, 317, 15, 311, 154, 313, 314, 336,
+ 256, 257, 258, 259, 260, 261, 375, 263, 264, 265,
+ 266, 267, 268, 269, 270, 271, 272, 273, 274, 275,
+ 202, 24, 269, 279, 280, -1, 282, 283, 284, 285,
+ 286, -1, -1, 125, -1, 291, 292, 293, 294, 295,
+ 296, 297, 355, 356, -1, 309, 302, 360, 312, -1,
+ -1, 315, 316, 317, -1, 311, -1, 313, 314, -1,
+ -1, 41, -1, 376, 44, -1, -1, 380, 256, 257,
+ 258, 259, 260, 261, -1, 263, 264, 265, 58, 59,
+ -1, 269, -1, 63, 272, 273, 274, 275, -1, -1,
+ -1, 279, 280, -1, 282, 283, 284, 285, 286, -1,
+ -1, 125, -1, 291, 292, 293, 294, 295, 296, -1,
+ -1, -1, -1, 93, 302, -1, -1, -1, -1, -1,
+ -1, -1, -1, 311, 33, 313, 314, 36, 37, 38,
+ -1, 40, 41, 42, 43, 44, 45, 281, -1, -1,
+ -1, -1, -1, 287, 288, 289, 290, -1, -1, 58,
+ 59, -1, -1, -1, 63, 64, -1, -1, -1, 303,
+ 304, 305, 306, 307, 308, 309, -1, -1, 312, -1,
+ -1, 315, 316, 317, 266, 267, 268, -1, 270, 271,
+ -1, -1, 91, -1, 93, 33, -1, -1, 36, 37,
+ 38, -1, 40, 41, 42, 43, 44, 45, -1, -1,
+ 281, -1, -1, -1, -1, 297, 287, 288, 289, 290,
+ 58, 59, -1, -1, -1, 63, 64, 126, -1, -1,
+ -1, -1, 303, 304, 305, 306, 307, 308, 309, -1,
+ -1, 312, 29, -1, 315, 316, 317, -1, -1, -1,
+ -1, -1, 266, 267, 268, 93, 270, 271, 33, 46,
+ 47, 36, 37, 38, -1, 40, 53, 42, 43, -1,
+ 45, 287, 288, 289, 290, -1, -1, -1, 65, 66,
+ 67, 68, -1, 297, 59, -1, -1, -1, 126, 64,
+ 306, 307, 308, 309, -1, -1, 312, -1, -1, 315,
+ 316, 317, 272, 273, 274, 275, -1, -1, -1, 279,
+ -1, 281, -1, -1, -1, -1, 91, 287, 288, 289,
+ 290, 272, 273, 274, 275, 112, -1, -1, 279, -1,
+ 300, 301, -1, 303, 304, 305, 306, 307, 308, 309,
+ -1, -1, 312, -1, -1, 315, 316, 317, 123, 300,
+ 301, 126, -1, -1, -1, -1, -1, -1, 257, 258,
+ 259, 260, 261, -1, 263, 264, 265, -1, -1, -1,
+ 269, -1, -1, 272, 273, 274, 275, -1, -1, -1,
+ 279, 280, 281, 282, 283, 284, 285, 286, 287, 288,
+ 289, 290, 291, 292, 293, 294, 295, 296, -1, -1,
+ -1, 300, 301, 302, 303, 304, 305, 306, 307, 308,
+ 309, -1, 311, 312, 313, 314, 315, 316, 317, 257,
+ 258, 259, 260, 261, -1, 263, 264, 265, -1, -1,
+ -1, 269, -1, -1, 272, 273, 274, 275, -1, -1,
+ -1, 279, 280, 281, 282, 283, 284, 285, 286, 287,
+ 288, 289, 290, 291, 292, 293, 294, 295, 296, -1,
+ -1, -1, 300, 301, 302, 303, 304, 305, 306, 307,
+ 308, 309, -1, 311, 312, 313, 314, 315, 316, 317,
+ -1, 256, 257, 258, 259, 260, 261, 63, 263, 264,
+ 265, -1, -1, -1, 269, -1, -1, 272, 273, 274,
+ 275, -1, -1, -1, 279, 280, -1, 282, 283, 284,
+ 285, 286, -1, -1, -1, -1, 291, 292, 293, 294,
+ 295, 296, -1, -1, -1, 33, -1, 302, 36, 37,
+ 38, -1, 40, -1, 42, 43, 311, 45, 313, 314,
+ -1, 46, -1, -1, -1, -1, -1, -1, -1, 54,
+ 287, 59, 289, 290, -1, -1, 64, -1, -1, 41,
+ -1, -1, 44, -1, -1, 331, 332, 333, -1, 335,
+ -1, 308, 309, -1, -1, 312, 58, 59, 315, 316,
+ 317, -1, -1, 91, -1, 33, -1, -1, 36, 37,
+ 38, 96, 40, -1, 42, 43, 362, 45, -1, -1,
+ -1, -1, -1, 369, -1, -1, -1, 373, -1, -1,
+ -1, 93, -1, -1, 119, 123, 64, -1, 126, -1,
+ 386, 387, 127, -1, -1, 33, -1, -1, 36, 37,
+ 38, -1, 40, -1, 42, 43, -1, 45, -1, -1,
+ -1, -1, -1, 91, 287, 288, 289, 290, -1, -1,
+ -1, -1, -1, -1, -1, -1, 64, -1, -1, -1,
+ -1, -1, -1, -1, 41, 308, 309, 44, -1, 312,
+ -1, -1, 315, 316, 317, 123, -1, -1, 126, -1,
+ -1, 58, 59, 91, -1, -1, 63, -1, -1, 33,
+ -1, -1, 36, 37, 38, -1, 40, -1, 42, 43,
+ -1, 45, -1, -1, -1, 281, -1, -1, -1, -1,
+ -1, 287, 288, 289, 290, 123, 93, -1, 126, -1,
+ 64, -1, -1, -1, -1, -1, -1, 303, 304, 305,
+ 306, 307, 308, 309, -1, -1, 312, -1, -1, 315,
+ 316, 317, -1, -1, -1, -1, -1, 91, 256, 257,
+ 258, 259, 260, 261, -1, 263, 264, 265, -1, -1,
+ -1, 269, -1, 268, 272, 273, 274, 275, -1, 274,
+ -1, 279, 280, -1, 282, 283, 284, 285, 286, 123,
+ -1, -1, 126, 291, 292, 293, 294, 295, 296, -1,
+ 272, 273, 274, 275, 302, -1, -1, 279, -1, -1,
+ -1, -1, -1, 311, -1, 313, 314, -1, -1, 257,
+ 258, 259, 260, 261, 262, 263, 264, 265, 300, 301,
+ -1, 269, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 280, -1, 282, 283, 284, 285, 286, -1,
+ 41, -1, -1, 291, 292, 293, 294, 295, 296, 257,
+ 258, 259, 260, 261, 302, 263, 264, 265, 59, -1,
+ -1, 269, -1, 311, -1, 313, 314, -1, -1, -1,
+ -1, -1, 280, -1, 282, 283, 284, 285, 286, 63,
+ -1, -1, -1, 291, 292, 293, 294, 295, 296, -1,
+ -1, -1, 93, -1, 302, 272, 273, 274, 275, -1,
+ -1, -1, 279, 311, 281, 313, 314, -1, -1, -1,
+ 287, 288, -1, 257, 258, 259, 260, 261, -1, 263,
+ 264, 265, -1, 300, 301, 269, 303, 304, 305, 306,
+ 307, 308, -1, -1, -1, -1, 280, -1, 282, 283,
+ 284, 285, 286, -1, -1, -1, -1, 291, 292, 293,
+ 294, 295, 296, 289, 290, -1, 33, -1, 302, 36,
+ 37, 38, -1, 40, -1, 42, 43, 311, 45, 313,
+ 314, -1, 308, 309, -1, -1, 312, -1, -1, 315,
+ 316, 317, 59, -1, -1, -1, -1, 64, -1, -1,
+ -1, 287, 288, 289, 290, -1, 33, -1, -1, 36,
+ 37, 38, -1, 40, 41, 42, 43, -1, 45, 305,
+ 306, 307, 308, 309, 91, -1, 312, -1, -1, 315,
+ 316, 317, -1, -1, -1, -1, -1, 64, -1, -1,
+ 287, 288, 289, 290, -1, -1, 33, -1, -1, 36,
+ 37, 38, -1, 40, -1, 42, 43, -1, 45, 126,
+ 307, 308, 309, -1, 91, 312, -1, -1, 315, 316,
+ 317, -1, -1, -1, -1, -1, -1, 64, -1, -1,
+ -1, 272, 273, 274, 275, -1, 33, -1, 279, 36,
+ 37, 38, -1, 40, 41, 42, 43, -1, 45, 126,
+ -1, -1, -1, -1, 91, -1, 93, 281, -1, 300,
+ 301, -1, -1, 287, 288, 289, 290, 64, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 304, 305, 306, 307, 308, 309, -1, -1, 312, 126,
+ -1, 315, 316, 317, 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,
+ -1, -1, -1, -1, -1, -1, -1, 64, -1, 126,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 257, 258, 259, 260, 261, -1, 263, 264, 265, -1,
+ -1, -1, 269, -1, 91, -1, -1, -1, -1, -1,
+ -1, -1, -1, 280, -1, 282, 283, 284, 285, 286,
+ -1, -1, -1, -1, 291, 292, 293, 294, 295, 296,
+ 257, 258, 259, 260, 261, 302, 263, 264, 265, 126,
+ -1, -1, 269, -1, 311, -1, 313, 314, -1, -1,
+ -1, -1, -1, 280, -1, 282, 283, 284, 285, 286,
+ -1, -1, -1, -1, 291, 292, 293, 294, 295, 296,
+ 257, 258, 259, 260, 261, 302, 263, 264, 265, -1,
+ -1, -1, 269, -1, 311, -1, 313, 314, -1, -1,
+ -1, -1, -1, 280, -1, 282, 283, 284, 285, 286,
+ -1, -1, -1, -1, 291, 292, 293, 294, 295, 296,
+ 257, 258, 259, 260, 261, 302, 263, 264, 265, -1,
+ -1, -1, 269, -1, 311, -1, 313, 314, -1, -1,
+ -1, -1, -1, 280, -1, 282, 283, 284, 285, 286,
+ -1, -1, -1, -1, 291, 292, 293, 294, 295, 296,
+ -1, -1, -1, 33, -1, 302, 36, 37, 38, -1,
+ 40, 41, 42, 43, 311, 45, 313, 314, -1, -1,
+ 257, 258, 259, 260, 261, -1, 263, 264, 265, -1,
+ -1, -1, 269, -1, 64, -1, -1, -1, -1, -1,
+ -1, -1, -1, 280, -1, 282, 283, 284, 285, 286,
+ -1, -1, -1, -1, 291, 292, 293, 294, 295, 296,
+ -1, 91, -1, 33, -1, 302, 36, 37, 38, -1,
+ 40, 41, 42, 43, 311, 45, 313, 314, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 64, -1, 126, -1, -1, -1,
+ -1, -1, 41, -1, -1, 44, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 58,
+ 59, 91, 33, -1, 63, 36, 37, 38, -1, 40,
+ -1, 42, 43, -1, 45, -1, -1, -1, -1, -1,
+ 287, 288, 289, 290, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 64, 93, -1, 126, 304, 305, 306,
+ 307, 308, 309, -1, -1, 312, -1, -1, 315, 316,
+ 317, -1, -1, -1, -1, -1, -1, -1, -1, -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, -1, -1, -1, -1,
+ -1, -1, -1, 64, -1, 126, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 257, 258, 259,
+ 260, 261, -1, 263, 264, 265, -1, -1, -1, 269,
+ 91, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 280, -1, 282, 283, 284, 285, 286, -1, -1, -1,
+ -1, 291, 292, 293, 294, 295, 296, -1, -1, -1,
+ -1, -1, 302, -1, -1, 126, -1, -1, -1, -1,
+ -1, 311, -1, 313, 314, -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, 285, 286, -1, -1, -1,
+ -1, 291, 292, 293, 294, 295, 296, -1, 64, -1,
+ -1, -1, 302, 272, 273, 274, 275, -1, -1, -1,
+ 279, 311, 281, 313, 314, 256, 257, 258, 259, 260,
+ 261, -1, 263, 264, 265, 91, -1, -1, 269, -1,
+ -1, 300, 301, -1, 303, 304, 305, 306, 307, 280,
+ -1, 282, 283, 284, 285, 286, -1, -1, -1, -1,
+ 291, 292, 293, 294, 295, 296, -1, -1, -1, 33,
+ 126, 302, 36, 37, 38, -1, 40, 41, 42, 43,
+ 311, 45, 313, 314, -1, -1, 257, 258, 259, 260,
+ 261, -1, 263, 264, 265, -1, -1, -1, 269, -1,
+ 64, -1, -1, -1, -1, -1, -1, -1, -1, 280,
+ -1, 282, 283, 284, 285, 286, -1, -1, -1, -1,
+ 291, 292, 293, 294, 295, 296, -1, 91, -1, 33,
+ -1, 302, 36, 37, 38, -1, 40, -1, 42, 43,
+ 311, 45, 313, 314, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 28, 29,
+ 64, -1, 126, -1, -1, -1, -1, -1, 41, -1,
+ 40, 44, -1, -1, -1, -1, 46, 47, 48, -1,
+ -1, -1, 52, 53, -1, 58, 59, 91, -1, -1,
+ 63, -1, -1, -1, -1, 65, 66, 67, 68, -1,
+ -1, 257, 258, 259, 260, 261, -1, 263, 264, 265,
+ -1, -1, -1, 269, -1, 41, -1, -1, 44, -1,
+ 93, -1, 126, -1, 280, -1, 282, 283, 284, 285,
+ 286, 41, -1, 59, 44, 291, 292, 293, 294, 295,
+ 296, -1, 112, -1, -1, -1, 302, -1, 58, 59,
+ -1, -1, -1, 63, -1, 311, -1, 313, 314, -1,
+ -1, -1, -1, -1, -1, -1, -1, 93, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 93, -1, 41, -1, -1, 44, -1,
+ -1, -1, -1, 257, 258, 259, 260, 261, -1, 263,
+ 264, 265, 58, 59, -1, 269, 176, 63, -1, -1,
+ -1, -1, -1, -1, -1, -1, 280, -1, 282, 283,
+ 284, 285, 286, -1, -1, -1, -1, 291, 292, 293,
+ 294, 295, 296, 203, -1, -1, -1, 93, 302, -1,
+ -1, -1, -1, -1, -1, 41, -1, 311, 44, 313,
+ 314, -1, -1, 257, 258, 259, 260, 261, -1, 263,
+ 264, 265, 58, 59, -1, 269, -1, 63, -1, -1,
+ -1, -1, -1, -1, -1, -1, 280, -1, 282, 283,
+ 284, 285, 286, -1, -1, -1, -1, 291, 292, 293,
+ 294, 295, 296, -1, -1, -1, -1, 93, 302, 272,
+ 273, 274, 275, -1, -1, -1, 279, 311, 281, 313,
+ 314, -1, -1, -1, 287, 288, 289, 290, -1, -1,
+ -1, -1, -1, 41, -1, -1, 44, 300, 301, -1,
+ 303, 304, 305, 306, 307, 308, 309, -1, -1, 312,
+ 58, 59, 315, 316, 317, 63, 272, 273, 274, 275,
+ -1, -1, -1, 279, -1, -1, -1, -1, -1, -1,
+ -1, -1, 272, 273, 274, 275, -1, -1, -1, 279,
+ 41, 281, -1, 44, 300, 93, -1, 287, 288, 289,
+ 290, -1, -1, -1, -1, -1, -1, 58, 59, -1,
+ 300, 301, 63, 303, 304, 305, 306, 307, 308, 309,
+ -1, -1, 312, -1, -1, 315, 316, 317, -1, -1,
+ -1, -1, -1, -1, -1, -1, 272, 273, 274, 275,
+ -1, 41, 93, 279, 44, 281, -1, -1, -1, -1,
+ -1, 287, 288, 289, 290, -1, -1, -1, 58, 59,
+ -1, -1, -1, 63, 300, 301, -1, 303, 304, 305,
+ 306, 307, 308, 309, -1, -1, 312, -1, -1, 315,
+ 316, 317, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 41, 93, -1, 44, 272, 273, 274, 275,
+ -1, 41, -1, 279, 44, 281, -1, -1, -1, 58,
+ 59, 287, 288, 289, 290, -1, -1, -1, 58, 59,
+ -1, -1, -1, 63, 300, 301, -1, 303, 304, 305,
+ 306, 307, 308, 309, -1, -1, 312, -1, -1, 315,
+ 316, 317, -1, -1, 93, -1, -1, 41, -1, -1,
+ 44, -1, -1, 93, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 58, 59, -1, -1, -1, 63,
+ -1, -1, -1, -1, 272, 273, 274, 275, -1, -1,
+ -1, 279, -1, 281, -1, -1, -1, -1, -1, 287,
+ 288, 289, 290, -1, -1, -1, -1, -1, -1, 93,
+ -1, -1, 300, 301, -1, 303, 304, 305, 306, 307,
+ 308, 309, -1, -1, 312, -1, -1, 315, 316, 317,
+ -1, 272, 273, 274, 275, -1, 41, -1, 279, 44,
+ 281, -1, -1, -1, -1, -1, 287, 288, 289, 290,
+ -1, -1, -1, 58, 59, -1, -1, -1, 63, 300,
+ 301, -1, 303, 304, 305, 306, 307, 308, 309, -1,
+ -1, 312, -1, -1, 315, 316, 317, -1, -1, -1,
+ -1, -1, 272, 273, 274, 275, -1, 41, 93, 279,
+ 44, 281, -1, -1, -1, -1, -1, 287, 288, 289,
+ 290, -1, -1, -1, 58, 59, -1, -1, -1, 63,
+ 300, 301, -1, 303, 304, 305, 306, 307, 308, 309,
+ -1, -1, 312, -1, -1, 315, 316, 317, -1, -1,
+ -1, -1, -1, 272, 273, 274, 275, -1, -1, 93,
+ 279, -1, 272, 273, 274, 275, -1, 41, -1, 279,
+ 44, 281, -1, -1, -1, -1, -1, 287, 288, 289,
+ 290, 300, 301, -1, 58, 59, -1, -1, -1, 63,
+ 300, 301, -1, 303, 304, 305, 306, 307, 308, 309,
+ -1, -1, 312, -1, -1, 315, 316, 317, 272, 273,
+ 274, 275, -1, 41, -1, 279, 44, 281, -1, 93,
+ -1, -1, -1, 287, 288, 289, 290, -1, -1, -1,
+ 58, 59, -1, -1, -1, 63, 300, 301, -1, 303,
+ 304, 305, 306, 307, 308, 309, -1, -1, 312, -1,
+ -1, 315, 316, 317, -1, -1, -1, -1, -1, 41,
+ -1, -1, 44, -1, -1, 93, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 58, 59, -1, -1,
+ -1, 63, 41, -1, -1, 44, -1, 272, 273, 274,
+ 275, -1, -1, -1, 279, -1, 281, -1, -1, 58,
+ 59, -1, 287, 288, 289, 290, -1, -1, -1, -1,
+ -1, 93, -1, -1, -1, 300, 301, -1, 303, 304,
+ 305, 306, 307, 308, 309, -1, -1, 312, -1, -1,
+ 315, 316, 317, 41, 93, -1, 44, -1, 272, 273,
+ 274, 275, 41, -1, -1, 279, -1, 281, -1, -1,
+ 58, 59, -1, 287, 288, 289, 290, -1, -1, 58,
+ 59, -1, -1, -1, 63, -1, 300, 301, -1, 303,
+ 304, 305, 306, 307, 308, 309, -1, -1, 312, -1,
+ -1, 315, 316, 317, -1, 93, -1, -1, -1, -1,
+ -1, -1, -1, -1, 93, -1, -1, -1, 272, 273,
+ 274, 275, 41, -1, -1, 279, -1, 281, -1, -1,
+ -1, -1, -1, 287, 288, 289, 290, -1, -1, 58,
+ 59, -1, -1, -1, 63, -1, 300, 301, -1, 303,
+ 304, 305, 306, 307, 308, 309, -1, -1, 312, -1,
+ -1, 315, 316, 317, 272, 273, 274, 275, 41, -1,
+ -1, 279, -1, 281, 93, -1, -1, -1, -1, 287,
+ 288, 289, 290, -1, -1, 58, 59, -1, -1, -1,
+ 63, -1, 300, 301, -1, 303, 304, 305, 306, 307,
+ 308, 309, -1, -1, 312, -1, -1, 315, 316, 317,
+ 272, 273, 274, 275, -1, -1, -1, 279, -1, 281,
+ 93, -1, -1, -1, -1, 287, 288, 289, 290, -1,
+ -1, -1, -1, 272, 273, 274, 275, -1, 300, 301,
+ 279, 303, 304, 305, 306, 307, 308, 309, -1, 41,
+ 312, -1, 44, 315, 316, 317, -1, -1, -1, -1,
+ -1, 300, 301, -1, 303, -1, 58, 59, -1, -1,
+ -1, 63, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 272, 273, 274, 275, -1, -1,
+ -1, 279, -1, 272, 273, 274, 275, -1, -1, -1,
+ 279, 93, 281, -1, -1, -1, -1, -1, 287, 288,
+ 289, 290, 300, 301, -1, -1, -1, -1, -1, -1,
+ -1, 300, 301, -1, 303, 304, 305, 306, 307, 308,
+ 309, -1, -1, 312, -1, -1, 315, 316, 317, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 272, 273, 274, 275, -1, -1, -1,
+ 279, 41, 281, -1, 44, -1, -1, -1, 287, 288,
+ 289, 290, -1, -1, -1, -1, -1, -1, 58, 59,
+ -1, 300, 301, 63, 303, 304, 305, 306, 307, 308,
+ 309, -1, -1, 312, -1, -1, 315, 316, 317, 272,
+ 273, 274, 275, -1, 41, -1, 279, 44, 281, -1,
+ -1, -1, -1, 93, 287, 288, 289, 290, -1, -1,
+ -1, 58, 59, -1, -1, -1, 63, 300, 301, -1,
+ 303, 304, 305, 306, 307, 308, 309, 33, -1, 312,
+ -1, -1, 315, 316, 317, 41, -1, -1, 41, 45,
+ -1, 44, 48, -1, -1, 51, 93, -1, -1, 55,
+ 56, 57, 58, 59, -1, 58, 59, 63, 64, -1,
+ 63, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 272, 273, 274, 275, -1, -1, -1, 279, 41, 281,
+ -1, 44, -1, -1, -1, 287, 288, 289, 290, -1,
+ 93, -1, 98, -1, -1, 58, 59, -1, 300, 301,
+ 63, 303, 304, 305, 306, 307, 308, 309, -1, -1,
+ 312, -1, -1, -1, -1, -1, 41, -1, -1, 44,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 93, -1, -1, 58, 59, -1, -1, -1, 63, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 160, 161, 162, 163, 164, 165,
+ 166, 167, 168, 169, 170, 171, 172, 173, 93, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 187, 272, 273, 274, 275, -1, 41, -1, 279,
+ 44, 281, -1, -1, -1, -1, -1, 287, 288, 289,
+ 290, -1, -1, -1, 58, 59, -1, -1, -1, 63,
+ 300, 301, -1, 303, 304, 305, 306, 307, 308, 309,
+ -1, -1, 312, -1, -1, 272, 273, 274, 275, -1,
+ 41, -1, 279, 44, 281, -1, -1, -1, -1, 93,
+ 287, 288, 289, 290, -1, -1, -1, 58, 59, -1,
+ -1, -1, 63, 300, 301, -1, 303, 304, 305, 306,
+ 307, 308, 309, -1, -1, -1, 272, -1, -1, 272,
+ 273, 274, 275, -1, -1, -1, 279, 41, 281, -1,
+ 44, -1, 93, -1, 287, 288, 289, 290, -1, -1,
+ -1, -1, -1, -1, 58, 59, -1, 300, 301, 305,
+ 303, 304, 305, 306, 307, 308, 309, -1, -1, 272,
+ 273, 274, 275, -1, 41, -1, 279, 44, 281, -1,
+ -1, -1, -1, -1, 287, 288, 289, 290, -1, 93,
+ -1, 58, 59, -1, -1, -1, 63, 300, 301, -1,
+ 303, 304, 305, 306, 307, 308, 309, 272, 273, 274,
+ 275, -1, 41, -1, 279, 44, 281, -1, -1, -1,
+ -1, -1, 287, 288, 289, 290, 93, -1, -1, 58,
+ 59, -1, -1, -1, 63, 300, 301, -1, 303, 304,
+ 305, 306, 307, 308, 309, -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, 272, 273,
+ 274, 275, -1, -1, -1, 279, -1, 281, -1, -1,
+ -1, -1, -1, 287, 288, 289, 290, 58, -1, -1,
+ -1, 93, 63, -1, -1, -1, 300, 301, -1, 303,
+ 304, 305, 306, 307, 308, 309, -1, -1, -1, -1,
+ -1, 272, 273, 274, 275, -1, 41, -1, 279, 44,
+ 281, -1, -1, -1, -1, -1, 287, 288, 289, 290,
+ -1, -1, -1, 58, 59, -1, -1, -1, 63, 300,
+ 301, -1, 303, 304, 305, 306, 307, 308, 309, -1,
+ -1, -1, -1, 41, -1, -1, 44, -1, 272, 273,
+ 274, 275, -1, 41, -1, 279, 44, -1, 93, -1,
+ 58, 59, -1, -1, -1, 63, -1, -1, -1, -1,
+ 58, 59, -1, -1, -1, 63, 300, 301, -1, -1,
+ -1, -1, -1, -1, -1, 272, 273, 274, 275, -1,
+ 41, -1, 279, 44, 281, 93, -1, -1, -1, -1,
+ 287, 288, 289, 290, -1, 93, -1, 58, 59, -1,
+ -1, -1, 63, 300, 301, -1, 303, 304, 305, 306,
+ 307, 308, 309, 272, 273, 274, 275, -1, 41, -1,
+ 279, 44, 281, -1, -1, -1, -1, -1, 287, 288,
+ 289, 290, 93, -1, -1, 58, 59, -1, -1, -1,
+ 63, 300, 301, -1, 303, 304, 305, 306, 307, 308,
+ 272, 273, 274, 275, -1, 41, -1, 279, 44, 281,
+ -1, -1, -1, -1, -1, 287, 288, -1, 290, -1,
+ 93, 41, 58, 59, 44, -1, -1, 63, 300, 301,
+ -1, 303, 304, 305, 306, 307, 308, -1, 58, 59,
+ 281, -1, -1, 63, -1, -1, 287, 288, 289, 290,
+ -1, -1, -1, -1, -1, -1, -1, 93, -1, -1,
+ -1, -1, 303, 304, 305, 306, 307, 308, 309, -1,
+ -1, 312, -1, 93, 315, 316, 317, 272, 273, 274,
+ 275, -1, 41, -1, 279, 44, 281, -1, -1, -1,
+ -1, -1, 287, 288, -1, -1, -1, -1, -1, 58,
+ 59, -1, -1, -1, 63, 300, 301, -1, 303, 304,
+ 305, 306, 307, -1, 272, 273, 274, 275, -1, 41,
+ -1, 279, 44, 281, 272, 273, 274, 275, -1, 287,
+ 288, 279, -1, 281, 93, -1, 58, 59, -1, 287,
+ 288, 63, 300, 301, -1, 303, 304, 305, 306, 307,
+ -1, -1, 300, 301, -1, 303, 304, 305, 306, 307,
+ -1, 272, 273, 274, 275, -1, -1, -1, 279, -1,
+ 281, 93, -1, -1, -1, -1, 287, 288, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 300,
+ 301, -1, 303, 304, 305, 306, 307, -1, -1, 272,
+ 273, 274, 275, -1, -1, -1, 279, -1, 281, -1,
+ -1, -1, -1, -1, -1, 288, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 300, 301, -1,
+ 303, 304, 305, 306, 307, -1, 272, 273, 274, 275,
+ -1, -1, -1, 279, -1, 281, -1, -1, -1, -1,
+ -1, -1, 272, 273, 274, 275, -1, -1, -1, 279,
+ -1, 281, -1, -1, 300, 301, -1, 303, 304, 305,
+ 306, 307, -1, -1, -1, -1, -1, -1, -1, -1,
+ 300, 301, -1, 303, 304, 305, 306, -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, 272, 273, 274, 275, -1, -1, -1,
+ 279, -1, 281, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 300, 301, -1, 303, 304, 305, -1, -1, -1,
+ 272, 273, 274, 275, -1, -1, -1, 279, -1, 281,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 300, 301,
+ -1, 303, 304,
+};
+#define YYFINAL 1
+#ifndef YYDEBUG
+#define YYDEBUG 0
#endif
+#define YYMAXTOKEN 317
+#if YYDEBUG
+static 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","UNIOP","LSTOP",
+"RELOP","EQOP","MULOP","ADDOP","DOLSHARP","DO","HASHBRACK","NOAMP","LOCAL","MY",
+"MYSUB","COLONATTR","PREC_LOW","OROP","ANDOP","NOTOP","ASSIGNOP","OROR",
+"ANDAND","BITOROP","BITANDOP","SHIFTOP","MATCHOP","UMINUS","REFGEN","POWOP",
+"PREINC","PREDEC","POSTINC","POSTDEC","ARROW",
+};
+static char *yyrule[] = {
+"$accept : prog",
+"$$1 :",
+"prog : $$1 lineseq",
+"block : '{' remember lineseq '}'",
+"remember :",
+"mblock : '{' mremember lineseq '}'",
+"mremember :",
+"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 iexpr",
+"sideff : expr FOR expr",
+"else :",
+"else : ELSE mblock",
+"else : ELSIF '(' mexpr ')' mblock else",
+"cond : IF '(' remember mexpr ')' mblock else",
+"cond : UNLESS '(' remember miexpr ')' mblock else",
+"cont :",
+"cont : CONTINUE block",
+"loop : label WHILE '(' remember mtexpr ')' mblock cont",
+"loop : label UNTIL '(' remember miexpr ')' mblock cont",
+"loop : label FOR MY remember my_scalar '(' mexpr ')' mblock cont",
+"loop : label FOR scalar '(' remember mexpr ')' mblock cont",
+"loop : label FOR '(' remember mexpr ')' mblock cont",
+"loop : label FOR '(' remember mnexpr ';' mtexpr ';' mnexpr ')' mblock",
+"loop : label block cont",
+"nexpr :",
+"nexpr : sideff",
+"texpr :",
+"texpr : expr",
+"iexpr : expr",
+"mexpr : expr",
+"mnexpr : nexpr",
+"mtexpr : texpr",
+"miexpr : iexpr",
+"label :",
+"label : LABEL",
+"decl : format",
+"decl : subrout",
+"decl : mysubrout",
+"decl : package",
+"decl : use",
+"format : FORMAT startformsub formname block",
+"formname : WORD",
+"formname :",
+"mysubrout : MYSUB startsub subname proto subattrlist subbody",
+"subrout : SUB startsub subname proto subattrlist subbody",
+"startsub :",
+"startanonsub :",
+"startformsub :",
+"subname : WORD",
+"proto :",
+"proto : THING",
+"subattrlist :",
+"subattrlist : COLONATTR THING",
+"subattrlist : COLONATTR",
+"myattrlist : COLONATTR THING",
+"myattrlist : COLONATTR",
+"subbody : block",
+"subbody : ';'",
+"package : PACKAGE WORD ';'",
+"package : PACKAGE ';'",
+"$$2 :",
+"use : USE startsub $$2 WORD WORD listexpr ';'",
+"expr : expr ANDOP expr",
+"expr : expr OROP expr",
+"expr : argexpr",
+"argexpr : argexpr ','",
+"argexpr : argexpr ',' term",
+"argexpr : term",
+"listop : LSTOP indirob argexpr",
+"listop : FUNC '(' indirob expr ')'",
+"listop : term ARROW method '(' listexprcom ')'",
+"listop : term ARROW method",
+"listop : METHOD indirob listexpr",
+"listop : FUNCMETH indirob '(' listexprcom ')'",
+"listop : LSTOP listexpr",
+"listop : FUNC '(' listexprcom ')'",
+"$$3 :",
+"listop : LSTOPSUB startanonsub block $$3 listexpr",
+"method : METHOD",
+"method : scalar",
+"subscripted : star '{' expr ';' '}'",
+"subscripted : scalar '[' expr ']'",
+"subscripted : term ARROW '[' expr ']'",
+"subscripted : subscripted '[' expr ']'",
+"subscripted : scalar '{' expr ';' '}'",
+"subscripted : term ARROW '{' expr ';' '}'",
+"subscripted : subscripted '{' expr ';' '}'",
+"subscripted : term ARROW '(' ')'",
+"subscripted : term ARROW '(' expr ')'",
+"subscripted : subscripted '(' expr ')'",
+"subscripted : subscripted '(' ')'",
+"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 : myattrterm",
+"term : LOCAL term",
+"term : '(' expr ')'",
+"term : '(' ')'",
+"term : '[' expr ']'",
+"term : '[' ']'",
+"term : HASHBRACK expr ';' '}'",
+"term : HASHBRACK ';' '}'",
+"term : ANONSUB startanonsub proto subattrlist block",
+"term : scalar",
+"term : star",
+"term : hsh",
+"term : ary",
+"term : arylen",
+"term : subscripted",
+"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 : NOTOP argexpr",
+"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",
+"myattrterm : MY myterm myattrlist",
+"myattrterm : MY myterm",
+"myterm : '(' expr ')'",
+"myterm : '(' ')'",
+"myterm : scalar",
+"myterm : hsh",
+"myterm : ary",
+"listexpr :",
+"listexpr : argexpr",
+"listexprcom :",
+"listexprcom : expr",
+"listexprcom : expr ','",
+"my_scalar : scalar",
+"amper : '&' indirob",
+"scalar : '$' indirob",
+"ary : '@' indirob",
+"hsh : '%' indirob",
+"arylen : DOLSHARP indirob",
+"star : '*' indirob",
+"indirob : WORD",
+"indirob : scalar",
+"indirob : block",
+"indirob : PRIVATEREF",
+};
#endif
-
-static char* moreswitches();
-static char* cddir;
-extern char **environ;
-static bool minus_c;
-
-main(argc,argv,env)
-register int argc;
-register char **argv;
-register char **env;
-{
- register STR *str;
- register char *s;
- char *index(), *strcpy(), *getenv();
- bool dosearch = FALSE;
-#ifdef DOSUID
- char *validarg = "";
+#define yyclearin (yychar=(-1))
+#define yyerrok (yyerrflag=0)
+#ifdef YYSTACKSIZE
+#ifndef YYMAXDEPTH
+#define YYMAXDEPTH YYSTACKSIZE
#endif
-
-#ifdef SETUID_SCRIPTS_ARE_SECURE_NOW
-#ifdef IAMSUID
-#undef IAMSUID
- fatal("suidperl is no longer needed since the kernel can now execute\n\
-setuid perl scripts securely.\n");
+#else
+#ifdef YYMAXDEPTH
+#define YYSTACKSIZE YYMAXDEPTH
+#else
+#define YYSTACKSIZE 500
+#define YYMAXDEPTH 500
#endif
#endif
+#line 726 "perly.y"
+ /* PROGRAM */
- origargv = argv;
- origargc = argc;
- uid = (int)getuid();
- euid = (int)geteuid();
- gid = (int)getgid();
- egid = (int)getegid();
-#ifdef MSDOS
- /*
- * There is no way we can refer to them from Perl so close them to save
- * space. The other alternative would be to provide STDAUX and STDPRN
- * filehandles.
- */
- (void)fclose(stdaux);
- (void)fclose(stdprn);
-#endif
- if (do_undump) {
- origfilename = savestr(argv[0]);
- do_undump = 0;
- loop_ptr = -1; /* start label stack again */
- goto just_doit;
- }
- (void)sprintf(index(rcsid,'#'), "%d\n", PATCHLEVEL);
- linestr = Str_new(65,80);
- str_nset(linestr,"",0);
- str = str_make("",0); /* first used for -I flags */
- curstash = defstash = hnew(0);
- curstname = str_make("main",4);
- stab_xhash(stabent("_main",TRUE)) = defstash;
- defstash->tbl_name = "main";
- incstab = hadd(aadd(stabent("INC",TRUE)));
- incstab->str_pok |= SP_MULTI;
- for (argc--,argv++; argc > 0; argc--,argv++) {
- if (argv[0][0] != '-' || !argv[0][1])
- break;
-#ifdef DOSUID
- if (*validarg)
- validarg = " PHOOEY ";
- else
- validarg = argv[0];
-#endif
- s = argv[0]+1;
- reswitch:
- switch (*s) {
- case 'a':
- case 'c':
- case 'd':
- case 'D':
- case 'i':
- case 'n':
- case 'p':
- case 'u':
- case 'U':
- case 'v':
- case 'w':
- if (s = moreswitches(s))
- goto reswitch;
- break;
+/* more stuff added to make perly_c.diff easier to apply */
- case 'e':
-#ifdef TAINT
- if (euid != uid || egid != gid)
- fatal("No -e allowed in setuid scripts");
-#endif
- if (!e_fp) {
- e_tmpname = savestr(TMPPATH);
- (void)mktemp(e_tmpname);
- e_fp = fopen(e_tmpname,"w");
- if (!e_fp)
- fatal("Cannot open temporary file");
- }
- if (argv[1]) {
- fputs(argv[1],e_fp);
- argc--,argv++;
- }
- (void)putc('\n', e_fp);
- break;
- case 'I':
-#ifdef TAINT
- if (euid != uid || egid != gid)
- fatal("No -I allowed in setuid scripts");
+#ifdef yyparse
+#undef yyparse
#endif
- str_cat(str,"-");
- str_cat(str,s);
- str_cat(str," ");
- if (*++s) {
- (void)apush(stab_array(incstab),str_make(s,0));
- }
- else if (argv[1]) {
- (void)apush(stab_array(incstab),str_make(argv[1],0));
- str_cat(str,argv[1]);
- argc--,argv++;
- str_cat(str," ");
- }
- break;
- case 'P':
-#ifdef TAINT
- if (euid != uid || egid != gid)
- fatal("No -P allowed in setuid scripts");
-#endif
- preprocess = TRUE;
- s++;
- goto reswitch;
- case 's':
-#ifdef TAINT
- if (euid != uid || egid != gid)
- fatal("No -s allowed in setuid scripts");
+#define yyparse() Perl_yyparse(pTHX)
+
+#line 1371 "perly.c"
+#define YYABORT goto yyabort
+#define YYACCEPT goto yyaccept
+#define YYERROR goto yyerrlab
+int
+yyparse()
+{
+ 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;
#endif
- doswitches = TRUE;
- s++;
- goto reswitch;
- case 'S':
- dosearch = TRUE;
- s++;
- goto reswitch;
- case 'x':
- doextract = TRUE;
- s++;
- if (*s)
- cddir = savestr(s);
- break;
- case '-':
- argc--,argv++;
- goto switch_end;
- case 0:
- break;
- default:
- fatal("Unrecognized switch: -%s",s);
- }
- }
- switch_end:
- if (e_fp) {
- (void)fclose(e_fp);
- argc++,argv--;
- argv[0] = e_tmpname;
+
+ struct ysv *ysave;
+ New(73, ysave, 1, struct ysv);
+ SAVEDESTRUCTOR_X(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';
}
-#ifndef PRIVLIB
-#define PRIVLIB "/usr/local/lib/perl"
#endif
- (void)apush(stab_array(incstab),str_make(PRIVLIB,0));
- (void)apush(stab_array(incstab),str_make(".",1));
-
- str_set(&str_no,No);
- str_set(&str_yes,Yes);
- /* open script */
+ yynerrs = 0;
+ yyerrflag = 0;
+ yychar = (-1);
- if (argv[0] == Nullch)
- argv[0] = "-";
- if (dosearch && !index(argv[0], '/') && (s = getenv("PATH"))) {
- char *xfound = Nullch, *xfailed = Nullch;
- int len;
-
- bufend = s + strlen(s);
- while (*s) {
-#ifndef MSDOS
- s = cpytill(tokenbuf,s,bufend,':',&len);
-#else
- for (len = 0; *s && *s != ';'; tokenbuf[len++] = *s++);
- tokenbuf[len] = '\0';
-#endif
- if (*s)
- s++;
-#ifndef MSDOS
- if (len && tokenbuf[len-1] != '/')
-#else
- if (len && tokenbuf[len-1] != '\\')
-#endif
- (void)strcat(tokenbuf+len,"/");
- (void)strcat(tokenbuf+len,argv[0]);
-#ifdef DEBUGGING
- if (debug & 1)
- fprintf(stderr,"Looking for %s\n",tokenbuf);
+ /*
+ ** Initialize private stacks (yyparse may be called from an action)
+ */
+ New(73, yyss, yystacksize, short);
+ New(73, yyvs, yystacksize, YYSTYPE);
+ ysave->yyss = yyss;
+ ysave->yyvs = yyvs;
+ 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";
+ PerlIO_printf(Perl_debug_log, "yydebug: state %d, reading %d (%s)\n", yystate,
+ yychar, yys);
+ }
#endif
- if (stat(tokenbuf,&statbuf) < 0) /* not there? */
- continue;
- if ((statbuf.st_mode & S_IFMT) == S_IFREG
- && cando(S_IREAD,TRUE,&statbuf) && cando(S_IEXEC,TRUE,&statbuf)) {
- xfound = tokenbuf; /* bingo! */
- break;
- }
- if (!xfailed)
- xfailed = savestr(tokenbuf);
- }
- if (!xfound)
- fatal("Can't execute %s", xfailed ? xfailed : argv[0] );
- if (xfailed)
- Safefree(xfailed);
- argv[0] = savestr(xfound);
}
-
- fdpid = anew(Nullstab); /* for remembering popen pids by fd */
- pidstatus = hnew(Nullstab); /* for remembering status of dead pids */
-
- origfilename = savestr(argv[0]);
- curcmd->c_filestab = fstab(origfilename);
- if (strEQ(origfilename,"-"))
- argv[0] = "";
- if (preprocess) {
- str_cat(str,"-I");
- str_cat(str,PRIVLIB);
- (void)sprintf(buf, "\
-%ssed %s -e '/^[^#]/b' \
- -e '/^#[ ]*include[ ]/b' \
- -e '/^#[ ]*define[ ]/b' \
- -e '/^#[ ]*if[ ]/b' \
- -e '/^#[ ]*ifdef[ ]/b' \
- -e '/^#[ ]*ifndef[ ]/b' \
- -e '/^#[ ]*else/b' \
- -e '/^#[ ]*endif/b' \
- -e 's/^#.*//' \
- %s | %s -C %s %s",
-#ifdef MSDOS
- "",
-#else
- "/bin/",
+ if ((yyn = yysindex[yystate]) && (yyn += yychar) >= 0 &&
+ yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
+ {
+#if YYDEBUG
+ if (yydebug)
+ PerlIO_printf(Perl_debug_log, "yydebug: state %d, shifting to state %d\n",
+ yystate, yytable[yyn]);
#endif
- (doextract ? "-e '1,/^#/d\n'" : ""),
- argv[0], CPPSTDIN, str_get(str), CPPMINUS);
- doextract = FALSE;
-#ifdef IAMSUID /* actually, this is caught earlier */
- if (euid != uid && !euid) /* if running suidperl */
-#ifdef SETEUID
- (void)seteuid(uid); /* musn't stay setuid root */
-#else
-#ifdef SETREUID
- (void)setreuid(-1, uid);
-#else
- setuid(uid);
-#endif
-#endif
-#endif /* IAMSUID */
- rsfp = mypopen(buf,"r");
+ 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 = Renew(yyvs, yystacksize, YYSTYPE);
+ ysave->yyss = Renew(yyss, yystacksize, 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;
}
- else if (!*argv[0])
- rsfp = stdin;
- else
- rsfp = fopen(argv[0],"r");
- if (rsfp == Nullfp) {
-#ifdef DOSUID
-#ifndef IAMSUID /* in case script is not readable before setuid */
- if (euid && stat(stab_val(curcmd->c_filestab)->str_ptr,&statbuf) >= 0 &&
- statbuf.st_mode & (S_ISUID|S_ISGID)) {
- (void)sprintf(buf, "%s/%s", BIN, "suidperl");
- execv(buf, origargv); /* try again */
- fatal("Can't do setuid\n");
- }
-#endif
-#endif
- fatal("Can't open perl script \"%s\": %s\n",
- stab_val(curcmd->c_filestab)->str_ptr, strerror(errno));
+ if ((yyn = yyrindex[yystate]) && (yyn += yychar) >= 0 &&
+ yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
+ {
+ yyn = yytable[yyn];
+ goto yyreduce;
}
- str_free(str); /* free -I directories */
-
- /* do we need to emulate setuid on scripts? */
-
- /* This code is for those BSD systems that have setuid #! scripts disabled
- * in the kernel because of a security problem. Merely defining DOSUID
- * in perl will not fix that problem, but if you have disabled setuid
- * scripts in the kernel, this will attempt to emulate setuid and setgid
- * on scripts that have those now-otherwise-useless bits set. The setuid
- * root version must be called suidperl. If regular perl discovers that
- * it has opened a setuid script, it calls suidperl with the same argv
- * that it had. If suidperl finds that the script it has just opened
- * is NOT setuid root, it sets the effective uid back to the uid. We
- * don't just make perl setuid root because that loses the effective
- * uid we had before invoking perl, if it was different from the uid.
- *
- * DOSUID must be defined in both perl and suidperl, and IAMSUID must
- * be defined in suidperl only. suidperl must be setuid root. The
- * Configure script will set this up for you if you want it.
- *
- * There is also the possibility of have a script which is running
- * set-id due to a C wrapper. We want to do the TAINT checks
- * on these set-id scripts, but don't want to have the overhead of
- * them in normal perl, and can't use suidperl because it will lose
- * the effective uid info, so we have an additional non-setuid root
- * version called taintperl that just does the TAINT checks.
- */
-
-#ifdef DOSUID
- if (fstat(fileno(rsfp),&statbuf) < 0) /* normal stat is insecure */
- fatal("Can't stat script \"%s\"",origfilename);
- if (statbuf.st_mode & (S_ISUID|S_ISGID)) {
- int len;
-
-#ifdef IAMSUID
-#ifndef SETREUID
- /* On this access check to make sure the directories are readable,
- * there is actually a small window that the user could use to make
- * filename point to an accessible directory. So there is a faint
- * chance that someone could execute a setuid script down in a
- * non-accessible directory. I don't know what to do about that.
- * But I don't think it's too important. The manual lies when
- * it says access() is useful in setuid programs.
- */
- if (access(stab_val(curcmd->c_filestab)->str_ptr,1)) /*double check*/
- fatal("Permission denied");
-#else
- /* If we can swap euid and uid, then we can determine access rights
- * with a simple stat of the file, and then compare device and
- * inode to make sure we did stat() on the same file we opened.
- * Then we just have to make sure he or she can execute it.
- */
- {
- struct stat tmpstatbuf;
-
- if (setreuid(euid,uid) < 0 || getuid() != euid || geteuid() != uid)
- fatal("Can't swap uid and euid"); /* really paranoid */
- if (stat(stab_val(curcmd->c_filestab)->str_ptr,&tmpstatbuf) < 0)
- fatal("Permission denied"); /* testing full pathname here */
- if (tmpstatbuf.st_dev != statbuf.st_dev ||
- tmpstatbuf.st_ino != statbuf.st_ino) {
- (void)fclose(rsfp);
- if (rsfp = mypopen("/bin/mail root","w")) { /* heh, heh */
- fprintf(rsfp,
-"User %d tried to run dev %d ino %d in place of dev %d ino %d!\n\
-(Filename of set-id script was %s, uid %d gid %d.)\n\nSincerely,\nperl\n",
- uid,tmpstatbuf.st_dev, tmpstatbuf.st_ino,
- statbuf.st_dev, statbuf.st_ino,
- stab_val(curcmd->c_filestab)->str_ptr,
- statbuf.st_uid, statbuf.st_gid);
- (void)mypclose(rsfp);
- }
- fatal("Permission denied\n");
- }
- if (setreuid(uid,euid) < 0 || getuid() != uid || geteuid() != euid)
- fatal("Can't reswap uid and euid");
- if (!cando(S_IEXEC,FALSE,&statbuf)) /* can real uid exec? */
- fatal("Permission denied\n");
- }
-#endif /* SETREUID */
-#endif /* IAMSUID */
-
- if ((statbuf.st_mode & S_IFMT) != S_IFREG)
- fatal("Permission denied");
- if ((statbuf.st_mode >> 6) & S_IWRITE)
- fatal("Setuid/gid script is writable by world");
- doswitches = FALSE; /* -s is insecure in suid */
- curcmd->c_line++;
- if (fgets(tokenbuf,sizeof tokenbuf, rsfp) == Nullch ||
- strnNE(tokenbuf,"#!",2) ) /* required even on Sys V */
- fatal("No #! line");
- s = tokenbuf+2;
- if (*s == ' ') s++;
- while (!isspace(*s)) s++;
- if (strnNE(s-4,"perl",4)) /* sanity check */
- fatal("Not a perl script");
- while (*s == ' ' || *s == '\t') s++;
- /*
- * #! arg must be what we saw above. They can invoke it by
- * mentioning suidperl explicitly, but they may not add any strange
- * arguments beyond what #! says if they do invoke suidperl that way.
- */
- len = strlen(validarg);
- if (strEQ(validarg," PHOOEY ") ||
- strnNE(s,validarg,len) || !isspace(s[len]))
- fatal("Args must match #! line");
-
-#ifndef IAMSUID
- if (euid != uid && (statbuf.st_mode & S_ISUID) &&
- euid == statbuf.st_uid)
- if (!do_undump)
- fatal("YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!\n\
-FIX YOUR KERNEL, PUT A C WRAPPER AROUND THIS SCRIPT, OR USE -u AND UNDUMP!\n");
-#endif /* IAMSUID */
-
- if (euid) { /* oops, we're not the setuid root perl */
- (void)fclose(rsfp);
-#ifndef IAMSUID
- (void)sprintf(buf, "%s/%s", BIN, "suidperl");
- execv(buf, origargv); /* try again */
-#endif
- fatal("Can't do setuid\n");
- }
-
- if (statbuf.st_mode & S_ISGID && statbuf.st_gid != egid)
-#ifdef SETEGID
- (void)setegid(statbuf.st_gid);
-#else
-#ifdef SETREGID
- (void)setregid((GIDTYPE)-1,statbuf.st_gid);
-#else
- setgid(statbuf.st_gid);
+ if (yyerrflag) goto yyinrecovery;
+#ifdef lint
+ goto yynewerror;
#endif
+yynewerror:
+ yyerror("syntax error");
+#ifdef lint
+ goto yyerrlab;
#endif
- if (statbuf.st_mode & S_ISUID) {
- if (statbuf.st_uid != euid)
-#ifdef SETEUID
- (void)seteuid(statbuf.st_uid); /* all that for this */
-#else
-#ifdef SETREUID
- (void)setreuid((UIDTYPE)-1,statbuf.st_uid);
-#else
- setuid(statbuf.st_uid);
+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)
+ PerlIO_printf(Perl_debug_log,
+ "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 = Renew(yyvs, yystacksize, YYSTYPE);
+ ysave->yyss = Renew(yyss, yystacksize, 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)
+ PerlIO_printf(Perl_debug_log, "yydebug: error recovery discarding state %d\n",
+ *yyssp);
#endif
- }
- else if (uid) /* oops, mustn't run as root */
-#ifdef SETEUID
- (void)seteuid((UIDTYPE)uid);
-#else
-#ifdef SETREUID
- (void)setreuid((UIDTYPE)-1,(UIDTYPE)uid);
-#else
- setuid((UIDTYPE)uid);
-#endif
-#endif
- uid = (int)getuid();
- euid = (int)geteuid();
- gid = (int)getgid();
- egid = (int)getegid();
- if (!cando(S_IEXEC,TRUE,&statbuf))
- fatal("Permission denied\n"); /* they can't do this */
+ if (yyssp <= yyss) goto yyabort;
+ --yyssp;
+ --yyvsp;
+ }
+ }
}
-#ifdef IAMSUID
- else if (preprocess)
- fatal("-P not allowed for setuid/setgid script\n");
else
- fatal("Script is not setuid/setgid in suidperl\n");
-#else
-#ifndef TAINT /* we aren't taintperl or suidperl */
- /* script has a wrapper--can't run suidperl or we lose euid */
- else if (euid != uid || egid != gid) {
- (void)fclose(rsfp);
- (void)sprintf(buf, "%s/%s", BIN, "taintperl");
- execv(buf, origargv); /* try again */
- fatal("Can't run setuid script with taint checks");
- }
-#endif /* TAINT */
-#endif /* IAMSUID */
-#else /* !DOSUID */
-#ifndef TAINT /* we aren't taintperl or suidperl */
- if (euid != uid || egid != gid) { /* (suidperl doesn't exist, in fact) */
-#ifndef SETUID_SCRIPTS_ARE_SECURE_NOW
- fstat(fileno(rsfp),&statbuf); /* may be either wrapped or real suid */
- if ((euid != uid && euid == statbuf.st_uid && statbuf.st_mode & S_ISUID)
- ||
- (egid != gid && egid == statbuf.st_gid && statbuf.st_mode & S_ISGID)
- )
- if (!do_undump)
- fatal("YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!\n\
-FIX YOUR KERNEL, PUT A C WRAPPER AROUND THIS SCRIPT, OR USE -u AND UNDUMP!\n");
-#endif /* SETUID_SCRIPTS_ARE_SECURE_NOW */
- /* not set-id, must be wrapped */
- (void)fclose(rsfp);
- (void)sprintf(buf, "%s/%s", BIN, "taintperl");
- execv(buf, origargv); /* try again */
- fatal("Can't run setuid script with taint checks");
- }
-#endif /* TAINT */
-#endif /* DOSUID */
-
-#if !defined(IAMSUID) && !defined(TAINT)
-
- /* skip forward in input to the real script? */
-
- while (doextract) {
- if ((s = str_gets(linestr, rsfp, 0)) == Nullch)
- fatal("No Perl script found in input\n");
- if (*s == '#' && s[1] == '!' && instr(s,"perl")) {
- ungetc('\n',rsfp); /* to keep line count right */
- doextract = FALSE;
- if (s = instr(s,"perl -")) {
- s += 6;
- while (s = moreswitches(s)) ;
- }
- if (cddir && chdir(cddir) < 0)
- fatal("Can't chdir to %s",cddir);
- }
- }
-#endif /* !defined(IAMSUID) && !defined(TAINT) */
-
- defstab = stabent("_",TRUE);
-
- if (perldb) {
- debstash = hnew(0);
- stab_xhash(stabent("_DB",TRUE)) = debstash;
- curstash = debstash;
- dbargs = stab_xarray(aadd((tmpstab = stabent("args",TRUE))));
- tmpstab->str_pok |= SP_MULTI;
- dbargs->ary_flags = 0;
- subname = str_make("main",4);
- DBstab = stabent("DB",TRUE);
- DBstab->str_pok |= SP_MULTI;
- DBline = stabent("dbline",TRUE);
- DBline->str_pok |= SP_MULTI;
- DBsub = hadd(tmpstab = stabent("sub",TRUE));
- tmpstab->str_pok |= SP_MULTI;
- DBsingle = stab_val((tmpstab = stabent("single",TRUE)));
- tmpstab->str_pok |= SP_MULTI;
- DBtrace = stab_val((tmpstab = stabent("trace",TRUE)));
- tmpstab->str_pok |= SP_MULTI;
- DBsignal = stab_val((tmpstab = stabent("signal",TRUE)));
- tmpstab->str_pok |= SP_MULTI;
- curstash = defstash;
- }
-
- /* init tokener */
-
- bufend = bufptr = str_get(linestr);
-
- savestack = anew(Nullstab); /* for saving non-local values */
- stack = anew(Nullstab); /* for saving non-local values */
- stack->ary_flags = 0; /* not a real array */
- afill(stack,63); afill(stack,-1); /* preextend stack */
- afill(savestack,63); afill(savestack,-1);
-
- /* now parse the script */
-
- error_count = 0;
- if (yyparse() || error_count) {
- if (minus_c)
- fatal("%s had compilation errors.\n", origfilename);
- else {
- fatal("Execution of %s aborted due to compilation errors.\n",
- origfilename);
- }
- }
-
- New(50,loop_stack,128,struct loop);
-#ifdef DEBUGGING
- if (debug) {
- New(51,debname,128,char);
- New(52,debdelim,128,char);
- }
+ {
+ if (yychar == 0) goto yyabort;
+#if YYDEBUG
+ if (yydebug)
+ {
+ yys = 0;
+ if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
+ if (!yys) yys = "illegal-symbol";
+ PerlIO_printf(Perl_debug_log, "yydebug: state %d, error recovery discards token %d (%s)\n",
+ yystate, yychar, yys);
+ }
#endif
- curstash = defstash;
-
- preprocess = FALSE;
- if (e_fp) {
- e_fp = Nullfp;
- (void)UNLINK(e_tmpname);
- }
-
- /* initialize everything that won't change if we undump */
-
- if (sigstab = stabent("SIG",allstabs)) {
- sigstab->str_pok |= SP_MULTI;
- (void)hadd(sigstab);
- }
-
- magicalize("!#?^~=-%0123456789.+&*()<>,\\/[|`':\024");
- userinit(); /* in case linked C routines want magical variables */
-
- amperstab = stabent("&",allstabs);
- leftstab = stabent("`",allstabs);
- rightstab = stabent("'",allstabs);
- sawampersand = (amperstab || leftstab || rightstab);
- if (tmpstab = stabent(":",allstabs))
- str_set(STAB_STR(tmpstab),chopset);
- if (tmpstab = stabent("\024",allstabs))
- time(&basetime);
-
- /* these aren't necessarily magical */
- if (tmpstab = stabent(";",allstabs))
- str_set(STAB_STR(tmpstab),"\034");
- if (tmpstab = stabent("]",allstabs)) {
- str = STAB_STR(tmpstab);
- str_set(str,rcsid);
- strncpy(tokenbuf,rcsid+19,3);
- sprintf(tokenbuf+3,"%2.2d",PATCHLEVEL);
- str->str_u.str_nval = atof(tokenbuf);
- str->str_nok = 1;
- }
- str_nset(stab_val(stabent("\"", TRUE)), " ", 1);
-
- stdinstab = stabent("STDIN",TRUE);
- stdinstab->str_pok |= SP_MULTI;
- stab_io(stdinstab) = stio_new();
- stab_io(stdinstab)->ifp = stdin;
- tmpstab = stabent("stdin",TRUE);
- stab_io(tmpstab) = stab_io(stdinstab);
- tmpstab->str_pok |= SP_MULTI;
-
- tmpstab = stabent("STDOUT",TRUE);
- tmpstab->str_pok |= SP_MULTI;
- stab_io(tmpstab) = stio_new();
- stab_io(tmpstab)->ofp = stab_io(tmpstab)->ifp = stdout;
- defoutstab = tmpstab;
- tmpstab = stabent("stdout",TRUE);
- stab_io(tmpstab) = stab_io(defoutstab);
- tmpstab->str_pok |= SP_MULTI;
-
- curoutstab = stabent("STDERR",TRUE);
- curoutstab->str_pok |= SP_MULTI;
- stab_io(curoutstab) = stio_new();
- stab_io(curoutstab)->ofp = stab_io(curoutstab)->ifp = stderr;
- tmpstab = stabent("stderr",TRUE);
- stab_io(tmpstab) = stab_io(curoutstab);
- tmpstab->str_pok |= SP_MULTI;
- curoutstab = defoutstab; /* switch back to STDOUT */
-
- statname = Str_new(66,0); /* last filename we did stat on */
-
- if (do_undump)
- abort();
-
- just_doit: /* come here if running an undumped a.out */
- argc--,argv++; /* skip name of script */
- if (doswitches) {
- for (; argc > 0 && **argv == '-'; argc--,argv++) {
- if (argv[0][1] == '-') {
- argc--,argv++;
- break;
- }
- str_numset(stab_val(stabent(argv[0]+1,TRUE)),(double)1.0);
- }
+ yychar = (-1);
+ goto yyloop;
}
-#ifdef TAINT
- tainted = 1;
+yyreduce:
+#if YYDEBUG
+ if (yydebug)
+ PerlIO_printf(Perl_debug_log, "yydebug: state %d, reducing by rule %d (%s)\n",
+ yystate, yyn, yyrule[yyn]);
#endif
- if (tmpstab = stabent("0",allstabs))
- str_set(STAB_STR(tmpstab),origfilename);
- if (argvstab = stabent("ARGV",allstabs)) {
- argvstab->str_pok |= SP_MULTI;
- (void)aadd(argvstab);
- aclear(stab_array(argvstab));
- for (; argc > 0; argc--,argv++) {
- (void)apush(stab_array(argvstab),str_make(argv[0],0));
- }
- }
-#ifdef TAINT
- (void) stabent("ENV",TRUE); /* must test PATH and IFS */
-#endif
- if (envstab = stabent("ENV",allstabs)) {
- envstab->str_pok |= SP_MULTI;
- (void)hadd(envstab);
- hclear(stab_hash(envstab), FALSE);
- if (env != environ)
- environ[0] = Nullch;
- for (; *env; env++) {
- if (!(s = index(*env,'=')))
- continue;
- *s++ = '\0';
- str = str_make(s--,0);
- str_magic(str, envstab, 'E', *env, s - *env);
- (void)hstore(stab_hash(envstab), *env, s - *env, str, 0);
- *s = '=';
- }
- }
-#ifdef TAINT
- tainted = 0;
-#endif
- if (tmpstab = stabent("$",allstabs))
- str_numset(STAB_STR(tmpstab),(double)getpid());
-
- if (dowarn) {
- stab_check('A','Z');
- stab_check('a','z');
- }
-
- if (setjmp(top_env)) /* sets goto_targ on longjump */
- loop_ptr = -1; /* start label stack again */
-
-#ifdef DEBUGGING
- if (debug & 1024)
- dump_all();
- if (debug)
- fprintf(stderr,"\nEXECUTING...\n\n");
-#endif
-
- if (minus_c) {
- fprintf(stderr,"%s syntax OK\n", origfilename);
- exit(0);
- }
-
- /* do it */
-
- (void) cmd_exec(main_root,G_SCALAR,-1);
-
- if (goto_targ)
- fatal("Can't find label \"%s\"--aborting",goto_targ);
- exit(0);
- /* NOTREACHED */
-}
-
-magicalize(list)
-register char *list;
-{
- char sym[2];
-
- sym[1] = '\0';
- while (*sym = *list++)
- magicname(sym, Nullch, 0);
-}
-
-int
-magicname(sym,name,namlen)
-char *sym;
-char *name;
-int namlen;
-{
- register STAB *stab;
-
- if (stab = stabent(sym,allstabs)) {
- stab_flags(stab) = SF_VMAGIC;
- str_magic(stab_val(stab), stab, 0, name, namlen);
- }
-}
-
-/* this routine is in perly.c by virtue of being sort of an alternate main() */
-
-int
-do_eval(str,optype,stash,gimme,arglast)
-STR *str;
-int optype;
-HASH *stash;
-int gimme;
-int *arglast;
+ yym = yylen[yyn];
+ yyval = yyvsp[1-yym];
+ switch (yyn)
+ {
+case 1:
+#line 125 "perly.y"
{
- STR **st = stack->ary_array;
- int retval;
- CMD *myroot;
- ARRAY *ar;
- int i;
- CMD * VOLATILE oldcurcmd = curcmd;
- VOLATILE int oldtmps_base = tmps_base;
- VOLATILE int oldsave = savestack->ary_fill;
- VOLATILE int oldperldb = perldb;
- SPAT * VOLATILE oldspat = curspat;
- static char *last_eval = Nullch;
- static CMD *last_root = Nullcmd;
- VOLATILE int sp = arglast[0];
- char *specfilename;
- char *tmpfilename;
-
- tmps_base = tmps_max;
- if (curstash != stash) {
- (void)savehptr(&curstash);
- curstash = stash;
- }
- str_set(stab_val(stabent("@",TRUE)),"");
- if (curcmd->c_line == 0) /* don't debug debugger... */
- perldb = FALSE;
- curcmd = &compiling;
- if (optype == O_EVAL) { /* normal eval */
- curcmd->c_filestab = fstab("(eval)");
- curcmd->c_line = 1;
- str_sset(linestr,str);
- str_cat(linestr,";"); /* be kind to them */
- }
- else {
- if (last_root && !in_eval) {
- Safefree(last_eval);
- cmd_free(last_root);
- last_root = Nullcmd;
- }
- specfilename = str_get(str);
- str_set(linestr,"");
- if (optype == O_REQUIRE && &str_undef !=
- hfetch(stab_hash(incstab), specfilename, strlen(specfilename), 0)) {
- curcmd = oldcurcmd;
- tmps_base = oldtmps_base;
- st[++sp] = &str_yes;
- perldb = oldperldb;
- return sp;
- }
- tmpfilename = savestr(specfilename);
- if (index("/.", *tmpfilename))
- rsfp = fopen(tmpfilename,"r");
- else {
- ar = stab_array(incstab);
- for (i = 0; i <= ar->ary_fill; i++) {
- (void)sprintf(buf, "%s/%s",
- str_get(afetch(ar,i,TRUE)), specfilename);
- rsfp = fopen(buf,"r");
- if (rsfp) {
- char *s = buf;
-
- if (*s == '.' && s[1] == '/')
- s += 2;
- Safefree(tmpfilename);
- tmpfilename = savestr(s);
- break;
+#if defined(YYDEBUG) && defined(DEBUGGING)
+ yydebug = (PL_debug & 1);
+#endif
+ PL_expect = XSTATE;
}
- }
- }
- curcmd->c_filestab = fstab(tmpfilename);
- Safefree(tmpfilename);
- if (!rsfp) {
- curcmd = oldcurcmd;
- tmps_base = oldtmps_base;
- if (optype == O_REQUIRE) {
- sprintf(tokenbuf,"Can't locate %s in @INC", specfilename);
- if (instr(tokenbuf,".h "))
- strcat(tokenbuf," (change .h to .ph maybe?)");
- if (instr(tokenbuf,".ph "))
- strcat(tokenbuf," (did you run h2ph?)");
- fatal("%s",tokenbuf);
- }
- if (gimme != G_ARRAY)
- st[++sp] = &str_undef;
- perldb = oldperldb;
- return sp;
- }
- curcmd->c_line = 0;
- }
- in_eval++;
- oldoldbufptr = oldbufptr = bufptr = str_get(linestr);
- bufend = bufptr + linestr->str_cur;
- if (++loop_ptr >= loop_max) {
- loop_max += 128;
- Renew(loop_stack, loop_max, struct loop);
- }
- loop_stack[loop_ptr].loop_label = "_EVAL_";
- loop_stack[loop_ptr].loop_sp = sp;
-#ifdef DEBUGGING
- if (debug & 4) {
- deb("(Pushing label #%d _EVAL_)\n", loop_ptr);
+break;
+case 2:
+#line 132 "perly.y"
+{ newPROG(yyvsp[0].opval); }
+break;
+case 3:
+#line 136 "perly.y"
+{ if (PL_copline > (line_t)yyvsp[-3].ival)
+ PL_copline = yyvsp[-3].ival;
+ yyval.opval = block_end(yyvsp[-2].ival, yyvsp[-1].opval); }
+break;
+case 4:
+#line 142 "perly.y"
+{ yyval.ival = block_start(TRUE); }
+break;
+case 5:
+#line 146 "perly.y"
+{ if (PL_copline > (line_t)yyvsp[-3].ival)
+ PL_copline = yyvsp[-3].ival;
+ yyval.opval = block_end(yyvsp[-2].ival, yyvsp[-1].opval); }
+break;
+case 6:
+#line 152 "perly.y"
+{ yyval.ival = block_start(FALSE); }
+break;
+case 7:
+#line 156 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 8:
+#line 158 "perly.y"
+{ yyval.opval = yyvsp[-1].opval; }
+break;
+case 9:
+#line 160 "perly.y"
+{ yyval.opval = append_list(OP_LINESEQ,
+ (LISTOP*)yyvsp[-1].opval, (LISTOP*)yyvsp[0].opval);
+ PL_pad_reset_pending = TRUE;
+ if (yyvsp[-1].opval && yyvsp[0].opval) PL_hints |= HINT_BLOCK_SCOPE; }
+break;
+case 10:
+#line 167 "perly.y"
+{ yyval.opval = newSTATEOP(0, yyvsp[-1].pval, yyvsp[0].opval); }
+break;
+case 12:
+#line 170 "perly.y"
+{ if (yyvsp[-1].pval != Nullch) {
+ yyval.opval = newSTATEOP(0, yyvsp[-1].pval, newOP(OP_NULL, 0));
+ }
+ else {
+ yyval.opval = Nullop;
+ PL_copline = NOLINE;
+ }
+ PL_expect = XSTATE; }
+break;
+case 13:
+#line 179 "perly.y"
+{ yyval.opval = newSTATEOP(0, yyvsp[-2].pval, yyvsp[-1].opval);
+ PL_expect = XSTATE; }
+break;
+case 14:
+#line 184 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 15:
+#line 186 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 16:
+#line 188 "perly.y"
+{ yyval.opval = newLOGOP(OP_AND, 0, yyvsp[0].opval, yyvsp[-2].opval); }
+break;
+case 17:
+#line 190 "perly.y"
+{ yyval.opval = newLOGOP(OP_OR, 0, yyvsp[0].opval, yyvsp[-2].opval); }
+break;
+case 18:
+#line 192 "perly.y"
+{ yyval.opval = newLOOPOP(OPf_PARENS, 1, scalar(yyvsp[0].opval), yyvsp[-2].opval); }
+break;
+case 19:
+#line 194 "perly.y"
+{ yyval.opval = newLOOPOP(OPf_PARENS, 1, yyvsp[0].opval, yyvsp[-2].opval);}
+break;
+case 20:
+#line 196 "perly.y"
+{ yyval.opval = newFOROP(0, Nullch, yyvsp[-1].ival,
+ Nullop, yyvsp[0].opval, yyvsp[-2].opval, Nullop); }
+break;
+case 21:
+#line 201 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 22:
+#line 203 "perly.y"
+{ (yyvsp[0].opval)->op_flags |= OPf_PARENS; yyval.opval = scope(yyvsp[0].opval); }
+break;
+case 23:
+#line 205 "perly.y"
+{ PL_copline = yyvsp[-5].ival;
+ yyval.opval = newCONDOP(0, yyvsp[-3].opval, scope(yyvsp[-1].opval), yyvsp[0].opval);
+ PL_hints |= HINT_BLOCK_SCOPE; }
+break;
+case 24:
+#line 211 "perly.y"
+{ PL_copline = yyvsp[-6].ival;
+ yyval.opval = block_end(yyvsp[-4].ival,
+ newCONDOP(0, yyvsp[-3].opval, scope(yyvsp[-1].opval), yyvsp[0].opval)); }
+break;
+case 25:
+#line 215 "perly.y"
+{ PL_copline = yyvsp[-6].ival;
+ yyval.opval = block_end(yyvsp[-4].ival,
+ newCONDOP(0, yyvsp[-3].opval, scope(yyvsp[-1].opval), yyvsp[0].opval)); }
+break;
+case 26:
+#line 221 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 27:
+#line 223 "perly.y"
+{ yyval.opval = scope(yyvsp[0].opval); }
+break;
+case 28:
+#line 227 "perly.y"
+{ PL_copline = yyvsp[-6].ival;
+ yyval.opval = block_end(yyvsp[-4].ival,
+ newSTATEOP(0, yyvsp[-7].pval,
+ newWHILEOP(0, 1, (LOOP*)Nullop,
+ yyvsp[-6].ival, yyvsp[-3].opval, yyvsp[-1].opval, yyvsp[0].opval))); }
+break;
+case 29:
+#line 233 "perly.y"
+{ PL_copline = yyvsp[-6].ival;
+ yyval.opval = block_end(yyvsp[-4].ival,
+ newSTATEOP(0, yyvsp[-7].pval,
+ newWHILEOP(0, 1, (LOOP*)Nullop,
+ yyvsp[-6].ival, yyvsp[-3].opval, yyvsp[-1].opval, yyvsp[0].opval))); }
+break;
+case 30:
+#line 239 "perly.y"
+{ yyval.opval = block_end(yyvsp[-6].ival,
+ newFOROP(0, yyvsp[-9].pval, yyvsp[-8].ival, yyvsp[-5].opval, yyvsp[-3].opval, yyvsp[-1].opval, yyvsp[0].opval)); }
+break;
+case 31:
+#line 242 "perly.y"
+{ yyval.opval = block_end(yyvsp[-4].ival,
+ newFOROP(0, yyvsp[-8].pval, yyvsp[-7].ival, mod(yyvsp[-6].opval, OP_ENTERLOOP),
+ yyvsp[-3].opval, yyvsp[-1].opval, yyvsp[0].opval)); }
+break;
+case 32:
+#line 246 "perly.y"
+{ yyval.opval = block_end(yyvsp[-4].ival,
+ newFOROP(0, yyvsp[-7].pval, yyvsp[-6].ival, Nullop, yyvsp[-3].opval, yyvsp[-1].opval, yyvsp[0].opval)); }
+break;
+case 33:
+#line 250 "perly.y"
+{ OP *forop = append_elem(OP_LINESEQ,
+ scalar(yyvsp[-6].opval),
+ newWHILEOP(0, 1, (LOOP*)Nullop,
+ yyvsp[-9].ival, scalar(yyvsp[-4].opval),
+ yyvsp[0].opval, scalar(yyvsp[-2].opval)));
+ PL_copline = yyvsp[-9].ival;
+ yyval.opval = block_end(yyvsp[-7].ival, newSTATEOP(0, yyvsp[-10].pval, forop)); }
+break;
+case 34:
+#line 258 "perly.y"
+{ yyval.opval = newSTATEOP(0, yyvsp[-2].pval,
+ newWHILEOP(0, 1, (LOOP*)Nullop,
+ NOLINE, Nullop, yyvsp[-1].opval, yyvsp[0].opval)); }
+break;
+case 35:
+#line 264 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 37:
+#line 269 "perly.y"
+{ (void)scan_num("1"); yyval.opval = yylval.opval; }
+break;
+case 39:
+#line 274 "perly.y"
+{ yyval.opval = invert(scalar(yyvsp[0].opval)); }
+break;
+case 40:
+#line 278 "perly.y"
+{ yyval.opval = yyvsp[0].opval; intro_my(); }
+break;
+case 41:
+#line 282 "perly.y"
+{ yyval.opval = yyvsp[0].opval; intro_my(); }
+break;
+case 42:
+#line 286 "perly.y"
+{ yyval.opval = yyvsp[0].opval; intro_my(); }
+break;
+case 43:
+#line 290 "perly.y"
+{ yyval.opval = yyvsp[0].opval; intro_my(); }
+break;
+case 44:
+#line 294 "perly.y"
+{ yyval.pval = Nullch; }
+break;
+case 46:
+#line 299 "perly.y"
+{ yyval.ival = 0; }
+break;
+case 47:
+#line 301 "perly.y"
+{ yyval.ival = 0; }
+break;
+case 48:
+#line 303 "perly.y"
+{ yyval.ival = 0; }
+break;
+case 49:
+#line 305 "perly.y"
+{ yyval.ival = 0; }
+break;
+case 50:
+#line 307 "perly.y"
+{ yyval.ival = 0; }
+break;
+case 51:
+#line 311 "perly.y"
+{ newFORM(yyvsp[-2].ival, yyvsp[-1].opval, yyvsp[0].opval); }
+break;
+case 52:
+#line 314 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 53:
+#line 315 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 54:
+#line 319 "perly.y"
+{ newMYSUB(yyvsp[-4].ival, yyvsp[-3].opval, yyvsp[-2].opval, yyvsp[-1].opval, yyvsp[0].opval); }
+break;
+case 55:
+#line 323 "perly.y"
+{ newATTRSUB(yyvsp[-4].ival, yyvsp[-3].opval, yyvsp[-2].opval, yyvsp[-1].opval, yyvsp[0].opval); }
+break;
+case 56:
+#line 327 "perly.y"
+{ yyval.ival = start_subparse(FALSE, 0); }
+break;
+case 57:
+#line 331 "perly.y"
+{ yyval.ival = start_subparse(FALSE, CVf_ANON); }
+break;
+case 58:
+#line 335 "perly.y"
+{ yyval.ival = start_subparse(TRUE, 0); }
+break;
+case 59:
+#line 338 "perly.y"
+{ STRLEN n_a; char *name = SvPV(((SVOP*)yyvsp[0].opval)->op_sv,n_a);
+ if (strEQ(name, "BEGIN") || strEQ(name, "END")
+ || strEQ(name, "INIT"))
+ CvSPECIAL_on(PL_compcv);
+ yyval.opval = yyvsp[0].opval; }
+break;
+case 60:
+#line 346 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 62:
+#line 351 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 63:
+#line 353 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 64:
+#line 355 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 65:
+#line 359 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 66:
+#line 361 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 67:
+#line 364 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 68:
+#line 365 "perly.y"
+{ yyval.opval = Nullop; PL_expect = XSTATE; }
+break;
+case 69:
+#line 369 "perly.y"
+{ package(yyvsp[-1].opval); }
+break;
+case 70:
+#line 371 "perly.y"
+{ package(Nullop); }
+break;
+case 71:
+#line 375 "perly.y"
+{ CvSPECIAL_on(PL_compcv); /* It's a BEGIN {} */ }
+break;
+case 72:
+#line 377 "perly.y"
+{ utilize(yyvsp[-6].ival, yyvsp[-5].ival, yyvsp[-3].opval, yyvsp[-2].opval, yyvsp[-1].opval); }
+break;
+case 73:
+#line 381 "perly.y"
+{ yyval.opval = newLOGOP(OP_AND, 0, yyvsp[-2].opval, yyvsp[0].opval); }
+break;
+case 74:
+#line 383 "perly.y"
+{ yyval.opval = newLOGOP(yyvsp[-1].ival, 0, yyvsp[-2].opval, yyvsp[0].opval); }
+break;
+case 76:
+#line 388 "perly.y"
+{ yyval.opval = yyvsp[-1].opval; }
+break;
+case 77:
+#line 390 "perly.y"
+{ yyval.opval = append_elem(OP_LIST, yyvsp[-2].opval, yyvsp[0].opval); }
+break;
+case 79:
+#line 395 "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 80:
+#line 398 "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 81:
+#line 401 "perly.y"
+{ yyval.opval = convert(OP_ENTERSUB, OPf_STACKED,
+ append_elem(OP_LIST,
+ prepend_elem(OP_LIST, scalar(yyvsp[-5].opval), yyvsp[-1].opval),
+ newUNOP(OP_METHOD, 0, yyvsp[-3].opval))); }
+break;
+case 82:
+#line 406 "perly.y"
+{ yyval.opval = convert(OP_ENTERSUB, OPf_STACKED,
+ append_elem(OP_LIST, scalar(yyvsp[-2].opval),
+ newUNOP(OP_METHOD, 0, yyvsp[0].opval))); }
+break;
+case 83:
+#line 410 "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 84:
+#line 415 "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 85:
+#line 420 "perly.y"
+{ yyval.opval = convert(yyvsp[-1].ival, 0, yyvsp[0].opval); }
+break;
+case 86:
+#line 422 "perly.y"
+{ yyval.opval = convert(yyvsp[-3].ival, 0, yyvsp[-1].opval); }
+break;
+case 87:
+#line 424 "perly.y"
+{ yyvsp[0].opval = newANONATTRSUB(yyvsp[-1].ival, 0, Nullop, yyvsp[0].opval); }
+break;
+case 88:
+#line 426 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED,
+ append_elem(OP_LIST,
+ prepend_elem(OP_LIST, yyvsp[-2].opval, yyvsp[0].opval), yyvsp[-4].opval)); }
+break;
+case 91:
+#line 436 "perly.y"
+{ yyval.opval = newBINOP(OP_GELEM, 0, yyvsp[-4].opval, scalar(yyvsp[-2].opval)); }
+break;
+case 92:
+#line 438 "perly.y"
+{ yyval.opval = newBINOP(OP_AELEM, 0, oopsAV(yyvsp[-3].opval), scalar(yyvsp[-1].opval)); }
+break;
+case 93:
+#line 440 "perly.y"
+{ yyval.opval = newBINOP(OP_AELEM, 0,
+ ref(newAVREF(yyvsp[-4].opval),OP_RV2AV),
+ scalar(yyvsp[-1].opval));}
+break;
+case 94:
+#line 444 "perly.y"
+{ yyval.opval = newBINOP(OP_AELEM, 0,
+ ref(newAVREF(yyvsp[-3].opval),OP_RV2AV),
+ scalar(yyvsp[-1].opval));}
+break;
+case 95:
+#line 448 "perly.y"
+{ yyval.opval = newBINOP(OP_HELEM, 0, oopsHV(yyvsp[-4].opval), jmaybe(yyvsp[-2].opval));
+ PL_expect = XOPERATOR; }
+break;
+case 96:
+#line 451 "perly.y"
+{ yyval.opval = newBINOP(OP_HELEM, 0,
+ ref(newHVREF(yyvsp[-5].opval),OP_RV2HV),
+ jmaybe(yyvsp[-2].opval));
+ PL_expect = XOPERATOR; }
+break;
+case 97:
+#line 456 "perly.y"
+{ yyval.opval = newBINOP(OP_HELEM, 0,
+ ref(newHVREF(yyvsp[-4].opval),OP_RV2HV),
+ jmaybe(yyvsp[-2].opval));
+ PL_expect = XOPERATOR; }
+break;
+case 98:
+#line 461 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED,
+ newCVREF(0, scalar(yyvsp[-3].opval))); }
+break;
+case 99:
+#line 464 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED,
+ append_elem(OP_LIST, yyvsp[-1].opval,
+ newCVREF(0, scalar(yyvsp[-4].opval)))); }
+break;
+case 100:
+#line 469 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED,
+ append_elem(OP_LIST, yyvsp[-1].opval,
+ newCVREF(0, scalar(yyvsp[-3].opval)))); }
+break;
+case 101:
+#line 473 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED,
+ newCVREF(0, scalar(yyvsp[-2].opval))); }
+break;
+case 102:
+#line 479 "perly.y"
+{ yyval.opval = newASSIGNOP(OPf_STACKED, yyvsp[-2].opval, yyvsp[-1].ival, yyvsp[0].opval); }
+break;
+case 103:
+#line 481 "perly.y"
+{ yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); }
+break;
+case 104:
+#line 483 "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 105:
+#line 487 "perly.y"
+{ yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); }
+break;
+case 106:
+#line 489 "perly.y"
+{ yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); }
+break;
+case 107:
+#line 491 "perly.y"
+{ yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); }
+break;
+case 108:
+#line 493 "perly.y"
+{ yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); }
+break;
+case 109:
+#line 495 "perly.y"
+{ yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); }
+break;
+case 110:
+#line 497 "perly.y"
+{ yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); }
+break;
+case 111:
+#line 499 "perly.y"
+{ yyval.opval = newRANGE(yyvsp[-1].ival, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval));}
+break;
+case 112:
+#line 501 "perly.y"
+{ yyval.opval = newLOGOP(OP_AND, 0, yyvsp[-2].opval, yyvsp[0].opval); }
+break;
+case 113:
+#line 503 "perly.y"
+{ yyval.opval = newLOGOP(OP_OR, 0, yyvsp[-2].opval, yyvsp[0].opval); }
+break;
+case 114:
+#line 505 "perly.y"
+{ yyval.opval = newCONDOP(0, yyvsp[-4].opval, yyvsp[-2].opval, yyvsp[0].opval); }
+break;
+case 115:
+#line 507 "perly.y"
+{ yyval.opval = bind_match(yyvsp[-1].ival, yyvsp[-2].opval, yyvsp[0].opval); }
+break;
+case 116:
+#line 510 "perly.y"
+{ yyval.opval = newUNOP(OP_NEGATE, 0, scalar(yyvsp[0].opval)); }
+break;
+case 117:
+#line 512 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 118:
+#line 514 "perly.y"
+{ yyval.opval = newUNOP(OP_NOT, 0, scalar(yyvsp[0].opval)); }
+break;
+case 119:
+#line 516 "perly.y"
+{ yyval.opval = newUNOP(OP_COMPLEMENT, 0, scalar(yyvsp[0].opval));}
+break;
+case 120:
+#line 518 "perly.y"
+{ yyval.opval = newUNOP(OP_REFGEN, 0, mod(yyvsp[0].opval,OP_REFGEN)); }
+break;
+case 121:
+#line 520 "perly.y"
+{ yyval.opval = newUNOP(OP_POSTINC, 0,
+ mod(scalar(yyvsp[-1].opval), OP_POSTINC)); }
+break;
+case 122:
+#line 523 "perly.y"
+{ yyval.opval = newUNOP(OP_POSTDEC, 0,
+ mod(scalar(yyvsp[-1].opval), OP_POSTDEC)); }
+break;
+case 123:
+#line 526 "perly.y"
+{ yyval.opval = newUNOP(OP_PREINC, 0,
+ mod(scalar(yyvsp[0].opval), OP_PREINC)); }
+break;
+case 124:
+#line 529 "perly.y"
+{ yyval.opval = newUNOP(OP_PREDEC, 0,
+ mod(scalar(yyvsp[0].opval), OP_PREDEC)); }
+break;
+case 125:
+#line 532 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 126:
+#line 534 "perly.y"
+{ yyval.opval = localize(yyvsp[0].opval,yyvsp[-1].ival); }
+break;
+case 127:
+#line 536 "perly.y"
+{ yyval.opval = sawparens(yyvsp[-1].opval); }
+break;
+case 128:
+#line 538 "perly.y"
+{ yyval.opval = sawparens(newNULLLIST()); }
+break;
+case 129:
+#line 540 "perly.y"
+{ yyval.opval = newANONLIST(yyvsp[-1].opval); }
+break;
+case 130:
+#line 542 "perly.y"
+{ yyval.opval = newANONLIST(Nullop); }
+break;
+case 131:
+#line 544 "perly.y"
+{ yyval.opval = newANONHASH(yyvsp[-2].opval); }
+break;
+case 132:
+#line 546 "perly.y"
+{ yyval.opval = newANONHASH(Nullop); }
+break;
+case 133:
+#line 548 "perly.y"
+{ yyval.opval = newANONATTRSUB(yyvsp[-3].ival, yyvsp[-2].opval, yyvsp[-1].opval, yyvsp[0].opval); }
+break;
+case 134:
+#line 550 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 135:
+#line 552 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 136:
+#line 554 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 137:
+#line 556 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 138:
+#line 558 "perly.y"
+{ yyval.opval = newUNOP(OP_AV2ARYLEN, 0, ref(yyvsp[0].opval, OP_AV2ARYLEN));}
+break;
+case 139:
+#line 560 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 140:
+#line 562 "perly.y"
+{ yyval.opval = newSLICEOP(0, yyvsp[-1].opval, yyvsp[-4].opval); }
+break;
+case 141:
+#line 564 "perly.y"
+{ yyval.opval = newSLICEOP(0, yyvsp[-1].opval, Nullop); }
+break;
+case 142:
+#line 566 "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 143:
+#line 572 "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)));
+ PL_expect = XOPERATOR; }
+break;
+case 144:
+#line 579 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 145:
+#line 581 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, 0, scalar(yyvsp[0].opval)); }
+break;
+case 146:
+#line 583 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar(yyvsp[-2].opval)); }
+break;
+case 147:
+#line 585 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED,
+ append_elem(OP_LIST, yyvsp[-1].opval, scalar(yyvsp[-3].opval))); }
+break;
+case 148:
+#line 588 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED,
+ append_elem(OP_LIST, yyvsp[0].opval, scalar(yyvsp[-1].opval))); }
+break;
+case 149:
+#line 591 "perly.y"
+{ yyval.opval = dofile(yyvsp[0].opval); }
+break;
+case 150:
+#line 593 "perly.y"
+{ yyval.opval = newUNOP(OP_NULL, OPf_SPECIAL, scope(yyvsp[0].opval)); }
+break;
+case 151:
+#line 595 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB,
+ OPf_SPECIAL|OPf_STACKED,
+ prepend_elem(OP_LIST,
+ scalar(newCVREF(
+ (OPpENTERSUB_AMPER<<8),
+ scalar(yyvsp[-2].opval)
+ )),Nullop)); dep();}
+break;
+case 152:
+#line 603 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB,
+ OPf_SPECIAL|OPf_STACKED,
+ append_elem(OP_LIST,
+ yyvsp[-1].opval,
+ scalar(newCVREF(
+ (OPpENTERSUB_AMPER<<8),
+ scalar(yyvsp[-3].opval)
+ )))); dep();}
+break;
+case 153:
+#line 612 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED,
+ prepend_elem(OP_LIST,
+ scalar(newCVREF(0,scalar(yyvsp[-2].opval))), Nullop)); dep();}
+break;
+case 154:
+#line 616 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED,
+ prepend_elem(OP_LIST,
+ yyvsp[-1].opval,
+ scalar(newCVREF(0,scalar(yyvsp[-3].opval))))); dep();}
+break;
+case 155:
+#line 621 "perly.y"
+{ yyval.opval = newOP(yyvsp[0].ival, OPf_SPECIAL);
+ PL_hints |= HINT_BLOCK_SCOPE; }
+break;
+case 156:
+#line 624 "perly.y"
+{ yyval.opval = newLOOPEX(yyvsp[-1].ival,yyvsp[0].opval); }
+break;
+case 157:
+#line 626 "perly.y"
+{ yyval.opval = newUNOP(OP_NOT, 0, scalar(yyvsp[0].opval)); }
+break;
+case 158:
+#line 628 "perly.y"
+{ yyval.opval = newOP(yyvsp[0].ival, 0); }
+break;
+case 159:
+#line 630 "perly.y"
+{ yyval.opval = newUNOP(yyvsp[-1].ival, 0, yyvsp[0].opval); }
+break;
+case 160:
+#line 632 "perly.y"
+{ yyval.opval = newUNOP(yyvsp[-1].ival, 0, yyvsp[0].opval); }
+break;
+case 161:
+#line 634 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED,
+ append_elem(OP_LIST, yyvsp[0].opval, scalar(yyvsp[-1].opval))); }
+break;
+case 162:
+#line 637 "perly.y"
+{ yyval.opval = newOP(yyvsp[0].ival, 0); }
+break;
+case 163:
+#line 639 "perly.y"
+{ yyval.opval = newOP(yyvsp[-2].ival, 0); }
+break;
+case 164:
+#line 641 "perly.y"
+{ yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED,
+ scalar(yyvsp[0].opval)); }
+break;
+case 165:
+#line 644 "perly.y"
+{ yyval.opval = newOP(yyvsp[-2].ival, OPf_SPECIAL); }
+break;
+case 166:
+#line 646 "perly.y"
+{ yyval.opval = newUNOP(yyvsp[-3].ival, 0, yyvsp[-1].opval); }
+break;
+case 167:
+#line 648 "perly.y"
+{ yyval.opval = pmruntime(yyvsp[-3].opval, yyvsp[-1].opval, Nullop); }
+break;
+case 168:
+#line 650 "perly.y"
+{ yyval.opval = pmruntime(yyvsp[-5].opval, yyvsp[-3].opval, yyvsp[-1].opval); }
+break;
+case 171:
+#line 656 "perly.y"
+{ yyval.opval = my_attrs(yyvsp[-1].opval,yyvsp[0].opval); }
+break;
+case 172:
+#line 658 "perly.y"
+{ yyval.opval = localize(yyvsp[0].opval,yyvsp[-1].ival); }
+break;
+case 173:
+#line 662 "perly.y"
+{ yyval.opval = sawparens(yyvsp[-1].opval); }
+break;
+case 174:
+#line 664 "perly.y"
+{ yyval.opval = sawparens(newNULLLIST()); }
+break;
+case 175:
+#line 666 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 176:
+#line 668 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 177:
+#line 670 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 178:
+#line 674 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 179:
+#line 676 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 180:
+#line 680 "perly.y"
+{ yyval.opval = Nullop; }
+break;
+case 181:
+#line 682 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+case 182:
+#line 684 "perly.y"
+{ yyval.opval = yyvsp[-1].opval; }
+break;
+case 183:
+#line 688 "perly.y"
+{ PL_in_my = 0; yyval.opval = my(yyvsp[0].opval); }
+break;
+case 184:
+#line 692 "perly.y"
+{ yyval.opval = newCVREF(yyvsp[-1].ival,yyvsp[0].opval); }
+break;
+case 185:
+#line 696 "perly.y"
+{ yyval.opval = newSVREF(yyvsp[0].opval); }
+break;
+case 186:
+#line 700 "perly.y"
+{ yyval.opval = newAVREF(yyvsp[0].opval); }
+break;
+case 187:
+#line 704 "perly.y"
+{ yyval.opval = newHVREF(yyvsp[0].opval); }
+break;
+case 188:
+#line 708 "perly.y"
+{ yyval.opval = newAVREF(yyvsp[0].opval); }
+break;
+case 189:
+#line 712 "perly.y"
+{ yyval.opval = newGVREF(0,yyvsp[0].opval); }
+break;
+case 190:
+#line 716 "perly.y"
+{ yyval.opval = scalar(yyvsp[0].opval); }
+break;
+case 191:
+#line 718 "perly.y"
+{ yyval.opval = scalar(yyvsp[0].opval); }
+break;
+case 192:
+#line 720 "perly.y"
+{ yyval.opval = scope(yyvsp[0].opval); }
+break;
+case 193:
+#line 723 "perly.y"
+{ yyval.opval = yyvsp[0].opval; }
+break;
+#line 2412 "perly.c"
}
+ yyssp -= yym;
+ yystate = *yyssp;
+ yyvsp -= yym;
+ yym = yylhs[yyn];
+ if (yystate == 0 && yym == 0)
+ {
+#if YYDEBUG
+ if (yydebug)
+ PerlIO_printf(Perl_debug_log,
+ "yydebug: after reduction, shifting from state 0 to state %d\n",
+ YYFINAL);
#endif
- if (setjmp(loop_stack[loop_ptr].loop_env)) {
- retval = 1;
- last_root = Nullcmd;
- }
- else {
- error_count = 0;
- if (rsfp) {
- retval = yyparse();
- retval |= error_count;
- }
- else if (last_root && *bufptr == *last_eval && strEQ(bufptr,last_eval)){
- retval = 0;
- eval_root = last_root; /* no point in reparsing */
- }
- else if (in_eval == 1) {
- if (last_root) {
- Safefree(last_eval);
- cmd_free(last_root);
- }
- last_eval = savestr(bufptr);
- last_root = Nullcmd;
- retval = yyparse();
- retval |= error_count;
- if (!retval)
- last_root = eval_root;
- }
- else
- retval = yyparse();
- }
- myroot = eval_root; /* in case cmd_exec does another eval! */
-
- if (retval) {
- st = stack->ary_array;
- sp = arglast[0];
- if (gimme != G_ARRAY)
- st[++sp] = &str_undef;
- last_root = Nullcmd; /* can't free on error, for some reason */
- if (rsfp) {
- fclose(rsfp);
- rsfp = 0;
- }
- }
- else {
- sp = cmd_exec(eval_root,gimme,sp);
- st = stack->ary_array;
- for (i = arglast[0] + 1; i <= sp; i++)
- st[i] = str_static(st[i]);
- /* if we don't save result, free zaps it */
- if (in_eval != 1 && myroot != last_root)
- cmd_free(myroot);
- }
-
- perldb = oldperldb;
- in_eval--;
-#ifdef DEBUGGING
- if (debug & 4) {
- char *tmps = loop_stack[loop_ptr].loop_label;
- deb("(Popping label #%d %s)\n",loop_ptr,
- tmps ? tmps : "" );
+ 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";
+ PerlIO_printf(Perl_debug_log, "yydebug: state %d, reading %d (%s)\n",
+ YYFINAL, yychar, yys);
+ }
+#endif
+ }
+ if (yychar == 0) goto yyaccept;
+ goto yyloop;
}
+ if ((yyn = yygindex[yym]) && (yyn += yystate) >= 0 &&
+ yyn <= YYTABLESIZE && yycheck[yyn] == yystate)
+ yystate = yytable[yyn];
+ else
+ yystate = yydgoto[yym];
+#if YYDEBUG
+ if (yydebug)
+ PerlIO_printf(Perl_debug_log,
+ "yydebug: after reduction, shifting from state %d to state %d\n",
+ *yyssp, yystate);
#endif
- loop_ptr--;
- tmps_base = oldtmps_base;
- curspat = oldspat;
- if (savestack->ary_fill > oldsave) /* let them use local() */
- restorelist(oldsave);
-
- if (optype != O_EVAL) {
- if (retval) {
- if (optype == O_REQUIRE)
- fatal("%s", str_get(stab_val(stabent("@",TRUE))));
- }
- else {
- curcmd = oldcurcmd;
- if (gimme == G_SCALAR ? str_true(st[sp]) : sp > arglast[0]) {
- (void)hstore(stab_hash(incstab), specfilename,
- strlen(specfilename), str_smake(stab_val(curcmd->c_filestab)),
- 0 );
- }
- else if (optype == O_REQUIRE)
- fatal("%s did not return a true value", specfilename);
- }
+ 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 = Renew(yyvs, yystacksize, YYSTYPE);
+ ysave->yyss = Renew(yyss, yystacksize, short);
+ if (!yyvs || !yyss)
+ goto yyoverflow;
+ yyssp = yyss + yyps_index;
+ yyvsp = yyvs + yypv_index;
}
- curcmd = oldcurcmd;
- return sp;
+ *++yyssp = yystate;
+ *++yyvsp = yyval;
+ goto yyloop;
+yyoverflow:
+ yyerror("Out of memory for yacc stack");
+yyabort:
+ retval = 1;
+yyaccept:
+ return retval;
}
-/* This routine handles any switches that can be given during run */
+#ifdef PERL_OBJECT
+#include "XSUB.h"
+#endif
-static char *
-moreswitches(s)
-char *s;
+static void
+yydestruct(pTHXo_ void *ptr)
{
- reswitch:
- switch (*s) {
- case 'a':
- minus_a = TRUE;
- s++;
- return s;
- case 'c':
- minus_c = TRUE;
- s++;
- return s;
- case 'd':
-#ifdef TAINT
- if (euid != uid || egid != gid)
- fatal("No -d allowed in setuid scripts");
-#endif
- perldb = TRUE;
- s++;
- return s;
- case 'D':
-#ifdef DEBUGGING
-#ifdef TAINT
- if (euid != uid || egid != gid)
- fatal("No -D allowed in setuid scripts");
-#endif
- debug = atoi(s+1);
-#else
- warn("Recompile perl with -DDEBUGGING to use -D switch\n");
-#endif
- break;
- case 'i':
- inplace = savestr(s+1);
- for (s = inplace; *s && !isspace(*s); s++) ;
- *s = '\0';
- argvoutstab = stabent("ARGVOUT",TRUE);
- break;
- case 'I':
-#ifdef TAINT
- if (euid != uid || egid != gid)
- fatal("No -I allowed in setuid scripts");
-#endif
- if (*++s) {
- (void)apush(stab_array(incstab),str_make(s,0));
- }
- else
- fatal("No space allowed after -I");
- break;
- case 'n':
- minus_n = TRUE;
- s++;
- return s;
- case 'p':
- minus_p = TRUE;
- s++;
- return s;
- case 'u':
- do_undump = TRUE;
- s++;
- return s;
- case 'U':
- unsafe = TRUE;
- s++;
- return s;
- case 'v':
- fputs("\nThis is perl, version 3.0\n\n",stdout);
- fputs(rcsid,stdout);
- fputs("\nCopyright (c) 1989, 1990, Larry Wall\n",stdout);
-#ifdef MSDOS
- fputs("MS-DOS port Copyright (c) 1989, 1990, Diomidis Spinellis\n",
- stdout);
-#ifdef OS2
- fputs("OS/2 port Copyright (c) 1990, Raymond Chen, Kai Uwe Rommel\n",
- stdout);
-#endif
-#endif
- fputs("\n\
-Perl may be copied only under the terms of the GNU General Public License,\n\
-a copy of which can be found with the Perl 3.0 distribution kit.\n",stdout);
-#ifdef MSDOS
- usage(origargv[0]);
-#endif
- exit(0);
- case 'w':
- dowarn = TRUE;
- s++;
- return s;
- case ' ':
- case '\n':
- case '\t':
- break;
- default:
- fatal("Switch meaningless after -x: -%s",s);
- }
- return Nullch;
+ 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);
}