# line 2 "awk.g.y" /* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. * See the License for the specific language governing permissions * and limitations under the License. * * When distributing Covered Code, include this CDDL HEADER in each * file and include the License file at usr/src/OPENSOLARIS.LICENSE. * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ # line 30 "awk.g.y" #ident "%Z%%M% %I% %E% SMI" # define FIRSTTOKEN 257 # define FINAL 258 # define FATAL 259 # define LT 260 # define LE 261 # define GT 262 # define GE 263 # define EQ 264 # define NE 265 # define MATCH 266 # define NOTMATCH 267 # define APPEND 268 # define ADD 269 # define MINUS 270 # define MULT 271 # define DIVIDE 272 # define MOD 273 # define UMINUS 274 # define ASSIGN 275 # define ADDEQ 276 # define SUBEQ 277 # define MULTEQ 278 # define DIVEQ 279 # define MODEQ 280 # define JUMP 281 # define XBEGIN 282 # define XEND 283 # define NL 284 # define PRINT 285 # define PRINTF 286 # define SPRINTF 287 # define SPLIT 288 # define IF 289 # define ELSE 290 # define WHILE 291 # define FOR 292 # define IN 293 # define NEXT 294 # define EXIT 295 # define BREAK 296 # define CONTINUE 297 # define PROGRAM 298 # define PASTAT 299 # define PASTAT2 300 # define ASGNOP 301 # define BOR 302 # define AND 303 # define NOT 304 # define NUMBER 305 # define VAR 306 # define ARRAY 307 # define FNCN 308 # define SUBSTR 309 # define LSUBSTR 310 # define INDEX 311 # define GETLINE 312 # define RELOP 313 # define MATCHOP 314 # define OR 315 # define STRING 316 # define DOT 317 # define CCL 318 # define NCCL 319 # define CHAR 320 # define CAT 321 # define STAR 322 # define PLUS 323 # define QUEST 324 # define POSTINCR 325 # define PREINCR 326 # define POSTDECR 327 # define PREDECR 328 # define INCR 329 # define DECR 330 # define FIELD 331 # define INDIRECT 332 # define JUMPTRUE 333 # define JUMPFALSE 334 # define PUSH 335 # define GETREC 336 # define NEWSTAT 337 # define IN_INIT 338 # define IN_EXIT 339 # define LASTTOKEN 340 # line 70 "awk.g.y" #include "awk.def" #ifndef DEBUG # define PUTS(x) #endif static wchar_t L_record[] = L"$record"; static wchar_t L_zeronull[] = L"$zero&null"; #include #ifdef __STDC__ #include #include #define YYCONST const #else #include #include #define YYCONST #endif #include #if defined(__cplusplus) || defined(__STDC__) #if defined(__cplusplus) && defined(__EXTERN_C__) extern "C" { #endif #ifndef yyerror #if defined(__cplusplus) void yyerror(YYCONST char *); #endif #endif #ifndef yylex int yylex(void); #endif int yyparse(void); #if defined(__cplusplus) && defined(__EXTERN_C__) } #endif #endif #define yyclearin yychar = -1 #define yyerrok yyerrflag = 0 extern int yychar; extern int yyerrflag; #ifndef YYSTYPE #define YYSTYPE int #endif YYSTYPE yylval; YYSTYPE yyval; typedef int yytabelem; #ifndef YYMAXDEPTH #define YYMAXDEPTH 150 #endif #if YYMAXDEPTH > 0 int yy_yys[YYMAXDEPTH], *yys = yy_yys; YYSTYPE yy_yyv[YYMAXDEPTH], *yyv = yy_yyv; #else /* user does initial allocation */ int *yys; YYSTYPE *yyv; #endif static int yymaxdepth = YYMAXDEPTH; # define YYERRCODE 256 # line 350 "awk.g.y" static YYCONST yytabelem yyexca[] ={ -1, 0, 0, 5, 283, 5, 284, 5, 287, 5, 288, 5, 304, 5, 305, 5, 306, 5, 308, 5, 309, 5, 311, 5, 312, 5, 316, 5, 40, 5, 43, 5, 45, 5, 47, 5, 329, 5, 330, 5, 331, 5, 332, 5, 123, 5, -2, 0, -1, 1, 0, -1, -2, 0, -1, 39, 284, 103, 59, 103, -2, 0, -1, 49, 284, 103, 59, 103, -2, 0, -1, 87, 284, 103, 59, 103, -2, 0, -1, 88, 284, 103, 59, 103, -2, 0, -1, 102, 284, 103, 59, 103, -2, 0, -1, 105, 284, 103, 59, 103, -2, 0, -1, 147, 284, 103, 59, 103, -2, 0, -1, 152, 59, 103, -2, 0, -1, 171, 284, 103, 59, 103, -2, 0, -1, 189, 284, 103, 59, 103, -2, 0, -1, 224, 41, 103, -2, 0, -1, 228, 41, 103, -2, 0, -1, 235, 284, 103, 59, 103, -2, 0, -1, 237, 284, 103, 59, 103, -2, 0, -1, 239, 284, 103, 59, 103, -2, 0, }; # define YYNPROD 122 # define YYLAST 1727 static YYCONST yytabelem yyact[]={ 55, 33, 35, 30, 69, 29, 67, 68, 159, 160, 161, 177, 34, 225, 193, 201, 228, 200, 201, 155, 45, 46, 209, 48, 46, 172, 114, 37, 38, 82, 115, 197, 67, 68, 40, 6, 3, 43, 175, 55, 182, 44, 30, 7, 29, 41, 15, 183, 55, 158, 82, 30, 73, 29, 71, 210, 13, 181, 17, 66, 57, 15, 4, 14, 64, 62, 39, 63, 132, 65, 11, 66, 202, 236, 234, 152, 64, 59, 14, 49, 230, 65, 122, 94, 113, 212, 15, 15, 120, 15, 60, 61, 216, 221, 166, 215, 55, 132, 119, 30, 108, 29, 47, 14, 14, 151, 14, 150, 116, 77, 76, 102, 75, 70, 105, 16, 103, 104, 89, 106, 88, 50, 9, 87, 36, 171, 8, 134, 5, 2, 1, 94, 139, 174, 0, 56, 142, 143, 145, 146, 0, 0, 0, 0, 55, 0, 196, 30, 0, 29, 148, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 147, 0, 0, 0, 162, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94, 0, 154, 0, 0, 0, 0, 0, 0, 178, 0, 173, 0, 55, 0, 0, 30, 0, 29, 45, 46, 176, 86, 0, 0, 0, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 0, 98, 0, 0, 0, 0, 0, 189, 19, 0, 204, 30, 94, 29, 153, 17, 211, 203, 0, 0, 0, 0, 0, 0, 0, 0, 0, 206, 0, 0, 95, 96, 25, 27, 99, 0, 100, 101, 0, 90, 91, 92, 93, 55, 200, 201, 30, 42, 29, 98, 33, 35, 0, 24, 26, 0, 28, 23, 0, 114, 94, 34, 107, 115, 191, 0, 45, 46, 200, 201, 0, 25, 27, 0, 31, 32, 37, 38, 95, 96, 25, 27, 99, 0, 100, 101, 0, 90, 91, 92, 93, 12, 110, 111, 112, 109, 0, 98, 33, 35, 34, 24, 26, 0, 28, 23, 0, 55, 0, 34, 30, 0, 29, 31, 32, 37, 38, 113, 200, 201, 0, 0, 31, 32, 37, 38, 95, 96, 25, 27, 99, 0, 100, 101, 220, 90, 91, 92, 93, 187, 0, 222, 0, 0, 0, 98, 33, 35, 0, 24, 26, 0, 28, 23, 0, 55, 0, 34, 30, 0, 29, 0, 235, 0, 0, 0, 237, 0, 239, 0, 31, 32, 37, 38, 95, 96, 25, 27, 99, 0, 100, 101, 0, 90, 91, 92, 93, 0, 0, 0, 94, 0, 84, 98, 33, 35, 0, 24, 26, 0, 28, 23, 0, 55, 121, 34, 30, 0, 29, 0, 0, 229, 0, 0, 0, 233, 0, 0, 31, 32, 37, 38, 95, 96, 25, 27, 99, 0, 100, 101, 0, 90, 91, 92, 93, 0, 55, 0, 94, 30, 0, 29, 33, 35, 0, 24, 26, 0, 28, 23, 0, 10, 0, 34, 0, 25, 27, 0, 0, 98, 85, 0, 0, 0, 0, 0, 31, 32, 37, 38, 0, 0, 20, 33, 35, 0, 24, 26, 0, 28, 23, 0, 184, 0, 34, 30, 0, 29, 95, 96, 25, 27, 0, 0, 0, 0, 0, 31, 32, 37, 38, 224, 0, 0, 0, 0, 0, 0, 33, 35, 0, 24, 26, 0, 28, 23, 0, 55, 214, 34, 30, 213, 29, 98, 0, 0, 0, 0, 0, 0, 0, 0, 31, 32, 37, 38, 0, 0, 157, 0, 110, 111, 112, 109, 0, 159, 160, 161, 140, 141, 0, 0, 95, 96, 25, 27, 99, 0, 100, 101, 0, 90, 91, 92, 93, 55, 0, 0, 30, 0, 29, 98, 33, 35, 0, 24, 26, 55, 28, 23, 30, 0, 29, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 32, 37, 38, 95, 96, 25, 27, 99, 0, 100, 101, 0, 90, 91, 92, 93, 0, 55, 0, 0, 30, 0, 29, 33, 35, 0, 24, 26, 0, 28, 23, 0, 0, 170, 34, 195, 43, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 32, 37, 38, 0, 0, 25, 27, 98, 55, 121, 0, 30, 131, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 35, 0, 24, 26, 0, 28, 23, 53, 51, 0, 34, 0, 95, 96, 25, 27, 0, 0, 0, 0, 0, 0, 0, 31, 32, 37, 38, 238, 0, 240, 0, 241, 33, 188, 0, 24, 26, 19, 28, 23, 30, 0, 29, 34, 17, 0, 55, 232, 0, 30, 0, 29, 0, 0, 0, 0, 31, 32, 37, 38, 25, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 33, 35, 0, 24, 26, 0, 28, 23, 0, 0, 0, 34, 0, 0, 0, 0, 184, 25, 27, 30, 0, 29, 0, 0, 31, 32, 37, 38, 55, 231, 0, 30, 0, 29, 0, 33, 35, 0, 24, 26, 0, 28, 23, 0, 0, 0, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 32, 37, 38, 0, 0, 25, 27, 55, 217, 0, 30, 0, 29, 0, 0, 0, 55, 25, 27, 30, 169, 29, 0, 33, 35, 0, 24, 26, 0, 28, 23, 53, 51, 0, 34, 33, 35, 0, 24, 26, 0, 28, 23, 0, 0, 0, 34, 31, 32, 37, 38, 42, 0, 55, 25, 27, 30, 168, 29, 31, 32, 37, 38, 0, 0, 55, 0, 0, 30, 167, 29, 0, 33, 35, 0, 24, 26, 0, 28, 23, 0, 0, 0, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 27, 0, 31, 32, 37, 38, 55, 163, 0, 30, 0, 29, 0, 0, 0, 0, 0, 33, 35, 0, 24, 26, 0, 28, 23, 0, 0, 0, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 32, 37, 38, 55, 121, 0, 30, 0, 29, 0, 25, 27, 55, 0, 0, 30, 131, 29, 0, 25, 27, 0, 0, 0, 0, 0, 0, 20, 33, 35, 0, 24, 26, 0, 28, 23, 0, 33, 35, 34, 24, 26, 0, 28, 23, 0, 0, 0, 34, 0, 0, 0, 31, 32, 37, 38, 0, 0, 0, 0, 0, 31, 32, 37, 38, 0, 0, 25, 27, 55, 129, 0, 30, 0, 29, 0, 0, 0, 55, 25, 27, 30, 0, 29, 185, 33, 35, 0, 24, 26, 0, 28, 23, 0, 0, 114, 34, 33, 35, 115, 24, 26, 0, 28, 23, 0, 0, 0, 34, 31, 32, 37, 38, 179, 0, 0, 0, 0, 25, 27, 0, 31, 32, 37, 38, 0, 74, 25, 27, 30, 0, 29, 0, 0, 0, 0, 33, 35, 0, 24, 26, 0, 28, 23, 0, 33, 35, 34, 24, 26, 0, 28, 23, 113, 0, 114, 34, 0, 0, 115, 31, 32, 37, 38, 25, 27, 156, 0, 0, 31, 32, 37, 38, 0, 0, 0, 25, 27, 0, 0, 0, 0, 33, 35, 0, 24, 26, 0, 28, 23, 0, 0, 0, 34, 33, 35, 0, 24, 26, 0, 28, 23, 0, 0, 0, 34, 31, 32, 37, 38, 0, 25, 27, 113, 0, 0, 0, 0, 31, 32, 37, 38, 0, 0, 0, 0, 0, 0, 0, 33, 35, 0, 24, 26, 0, 28, 23, 0, 0, 0, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 27, 0, 31, 32, 37, 38, 0, 0, 25, 27, 0, 0, 0, 0, 186, 0, 0, 33, 35, 0, 24, 26, 0, 28, 23, 0, 33, 35, 34, 24, 26, 0, 28, 23, 0, 0, 0, 34, 0, 0, 0, 31, 32, 37, 38, 0, 0, 207, 208, 0, 31, 32, 37, 38, 0, 0, 0, 0, 0, 0, 0, 0, 0, 218, 219, 25, 27, 0, 0, 0, 0, 0, 0, 223, 25, 27, 0, 0, 0, 0, 0, 0, 0, 33, 35, 0, 24, 26, 0, 28, 23, 0, 33, 35, 34, 24, 26, 0, 28, 23, 0, 0, 0, 34, 0, 0, 0, 31, 32, 37, 38, 0, 0, 0, 0, 0, 31, 32, 37, 38, 0, 0, 25, 27, 0, 110, 111, 112, 109, 0, 159, 160, 161, 0, 0, 0, 0, 0, 22, 0, 33, 35, 0, 24, 26, 0, 28, 23, 0, 0, 0, 34, 0, 0, 0, 0, 0, 54, 0, 0, 0, 0, 0, 0, 31, 32, 37, 38, 54, 54, 80, 81, 0, 0, 0, 0, 0, 54, 0, 0, 0, 0, 0, 157, 0, 110, 111, 112, 109, 0, 159, 160, 161, 0, 0, 0, 0, 54, 0, 0, 0, 54, 54, 54, 54, 54, 0, 0, 0, 0, 0, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 78, 79, 0, 0, 54, 54, 0, 0, 0, 83, 0, 0, 0, 0, 0, 54, 0, 54, 0, 0, 54, 0, 54, 54, 54, 54, 0, 0, 0, 52, 0, 54, 0, 123, 124, 125, 126, 127, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 97, 0, 54, 54, 0, 0, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 52, 58, 18, 0, 0, 0, 0, 72, 0, 0, 0, 54, 0, 54, 0, 0, 0, 54, 54, 0, 52, 52, 0, 0, 54, 0, 0, 18, 18, 0, 18, 52, 0, 52, 0, 117, 52, 118, 52, 52, 52, 52, 0, 0, 0, 54, 54, 52, 0, 0, 0, 128, 130, 0, 0, 0, 133, 135, 136, 137, 0, 0, 0, 0, 138, 0, 0, 52, 52, 0, 0, 0, 0, 144, 0, 0, 0, 72, 72, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 52, 0, 0, 0, 52, 52, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 164, 165, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 52, 0, 180, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 0, 194, 0, 0, 0, 0, 0, 198, 0, 0, 199, 0, 0, 0, 0, 0, 205, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 180, 0, 0, 0, 0, 0, 0, 0, 0, 180, 0, 0, 226, 0, 227 }; static YYCONST yytabelem yypact[]={ -220,-10000000, -249,-10000000, -80, 183,-10000000,-10000000, -250, -22, -82, -21,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000, 540, 681, 681, 22, -297,-10000000, 73, 1044, 72, 70, 69, 996, 996, -304, -304,-10000000,-10000000, -41,-10000000,-10000000, 996, 282, -10000000,-10000000,-10000000,-10000000,-10000000, 681, 681,-10000000, 681, 152, -10, 11, 22, 996, -323, 996, 57, 47, 378, 41, -282,-10000000, 996, 996, 996, 996, 996,-10000000,-10000000, 996, 987,-10000000, 930, 24, 1044, 996, 996, 996,-10000000,-10000000, -10000000,-10000000, 996,-10000000,-10000000,-10000000, -22, 330, 330,-10000000, -22, 589, -22, -22,-10000000, 1044, 1044, 996,-10000000, 67, 65, 35, 104, -279,-10000000, 56, -104,-10000000, 1077,-10000000, -10000000,-10000000,-10000000,-10000000,-10000000, -10,-10000000, -1, 921,-10000000, -10000000,-10000000,-10000000, 34, 34,-10000000,-10000000,-10000000, 996,-10000000, 882, 996, 996, 628, 53, 847, 835, 798, 552,-10000000, -265,-10000000,-10000000,-10000000, 589,-10000000,-10000000, 8, -113, -113, 738, 738, 411,-10000000,-10000000,-10000000,-10000000, -10, -314,-10000000, -10000000,-10000000, 238,-10000000, 996, 996,-10000000, 996, -292, 996, -10000000, 330, -253,-10000000,-10000000, 996,-10000000,-10000000, 996, 31, 540,-10000000,-10000000,-10000000, 738, 738, -19, -4, -62, -40, 1017,-10000000, 492, 51, 789,-10000000,-10000000,-10000000, 996, 996, 738, 738, -253, 52, 47, 378, 41, -285,-10000000, -253, 457, -293,-10000000, 996,-10000000, 996,-10000000,-10000000, -288,-10000000, -10000000,-10000000,-10000000, -43, 218, 39, 750, 690, 218, 33, -253,-10000000,-10000000, 32, -253, 330, -253, 330,-10000000, 330, -10000000,-10000000 }; static YYCONST yytabelem yypgo[]={ 0, 130, 129, 128, 126, 66, 47, 1071, 115, 70, 1510, 57, 40, 125, 146, 124, 1431, 123, 56, 1347, 54, 122, 45, 52, 38, 121, 49, 201, 475, 120, 118 }; static YYCONST yytabelem yyr1[]={ 0, 1, 1, 2, 2, 2, 4, 4, 4, 6, 6, 6, 6, 8, 8, 8, 8, 7, 7, 7, 7, 13, 15, 15, 17, 12, 12, 19, 19, 19, 19, 19, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 10, 10, 10, 14, 14, 21, 21, 21, 21, 21, 3, 3, 3, 9, 9, 9, 9, 20, 20, 20, 23, 23, 23, 24, 24, 25, 18, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 11, 11, 22, 22, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 5, 5, 29, 30, 30, 30 }; static YYCONST yytabelem yyr2[]={ 0, 7, 3, 9, 4, 1, 9, 4, 1, 7, 7, 5, 7, 7, 7, 5, 7, 3, 2, 2, 2, 4, 3, 5, 11, 7, 7, 3, 3, 3, 9, 2, 2, 3, 3, 7, 9, 5, 17, 13, 17, 13, 13, 7, 7, 7, 7, 7, 7, 5, 5, 5, 5, 5, 5, 2, 5, 7, 2, 0, 3, 9, 7, 13, 7, 7, 1, 5, 3, 2, 2, 2, 2, 2, 1, 7, 7, 7, 2, 2, 1, 9, 3, 3, 3, 3, 3, 3, 7, 5, 5, 5, 5, 7, 7, 7, 2, 2, 9, 5, 9, 5, 3, 1, 3, 4, 5, 9, 5, 2, 5, 5, 7, 5, 5, 7, 5, 1, 11, 21, 19, 17 }; static YYCONST yytabelem yychk[]={ -10000000, -1, -2, 256, 282, -3, 284, 123, -4, -21, 283, -9, 123, -18, -11, -12, -8, 47, -10, 40, 304, -16, -19, 312, 308, 287, 309, 288, 311, 45, 43, 329, 330, 305, 316, 306, -15, 331, 332, -5, 284, -22, 284, 59, 123, 302, 303, 123, 44, -5, -25, 314, -16, 313, -19, 40, -8, -12, -10, -11, -9, -9, 43, 45, 42, 47, 37, 329, 330, 301, 40, -20, -10, -23, 40, 40, 40, 40, -16, -16, -19, -19, 91, -16, 125, -28, -27, -17, -29, -30, 294, 295, 296, 297, 123, 285, 286, -10, 256, 289, 291, 292, -5, -9, -9, -5, -9, 125, -26, 320, 317, 318, 319, 94, 36, 40, -18, -10, -10, 41, 41, 41, 41, -16, -16, -16, -16, -16, -10, 41, -10, 44, 44, -10, -23, -10, -10, -10, -10, -22, -28, -28, -22, -22, -10, -22, -22, -5, -20, -20, 40, 40, 40, 125, 125, 123, 47, 315, -26, 322, 323, 324, -26, 41, -10, -10, 41, 44, 44, 44, 93, -13, 290, -22, 125, -24, 313, 124, -24, -7, -10, -11, -12, -6, 40, 304, -7, -27, 306, -5, -26, 41, -10, 306, -10, -28, -14, 284, -10, -10, 302, 303, 41, -6, -12, -10, -11, -7, -7, 41, 59, 293, 125, 44, 41, 44, 41, 41, -7, -7, -14, 41, -14, -7, 59, 306, -10, -10, 59, -27, 41, 41, 41, -27, 41, -14, 41, -14, -28, -14, -28, -28 }; static YYCONST yytabelem yydef[]={ -2, -2, 66, 2, 0, 8, 4, 117, 1, 67, 0, 60, 117, 68, 69, 70, 71, 80, 0, 0, 0, 55, 32, 33, 34, 74, 0, 0, 0, 0, 0, 0, 0, 27, 28, 29, 31, 22, 0, -2, 7, 65, 96, 97, 117, 0, 0, 117, 0, -2, 0, 0, 56, 0, 32, 0, 71, 70, 0, 69, 0, 15, 0, 0, 0, 0, 0, 53, 54, 0, 0, 37, 72, 73, 0, 0, 0, 0, 49, 50, 51, 52, 0, 23, 3, 116, 0, -2, -2, 109, 0, 0, 0, 0, 117, 74, 74, 102, 104, 0, 0, 0, -2, 13, 14, -2, 62, 64, 0, 82, 83, 84, 85, 86, 87, 0, 25, 94, 0, 16, 26, 43, 95, 44, 45, 46, 47, 48, 57, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 106, 108, 110, 111, 0, 113, 114, -2, 99, 101, 0, 0, -2, 6, 61, 117, 81, 0, 89, 90, 91, 92, 0, 36, 75, 76, 77, 0, 0, 0, 30, -2, 59, 112, 115, 0, 78, 79, 0, 0, 17, 18, 19, 20, 0, 0, 0, 0, 29, -2, 88, 93, 0, 0, 0, 107, 21, 58, 98, 100, 0, 0, 59, 20, 19, 17, 18, 0, 11, 59, 0, 0, 63, 0, 39, 0, 41, 42, 9, 10, 24, 12, 118, 0, -2, 0, 0, 0, -2, 0, 59, 38, 40, 0, 59, -2, 59, -2, 121, -2, 120, 119 }; typedef struct #ifdef __cplusplus yytoktype #endif { #ifdef __cplusplus const #endif char *t_name; int t_val; } yytoktype; #ifndef YYDEBUG # define YYDEBUG 0 /* don't allow debugging */ #endif #if YYDEBUG yytoktype yytoks[] = { "FIRSTTOKEN", 257, "FINAL", 258, "FATAL", 259, "LT", 260, "LE", 261, "GT", 262, "GE", 263, "EQ", 264, "NE", 265, "MATCH", 266, "NOTMATCH", 267, "APPEND", 268, "ADD", 269, "MINUS", 270, "MULT", 271, "DIVIDE", 272, "MOD", 273, "UMINUS", 274, "ASSIGN", 275, "ADDEQ", 276, "SUBEQ", 277, "MULTEQ", 278, "DIVEQ", 279, "MODEQ", 280, "JUMP", 281, "XBEGIN", 282, "XEND", 283, "NL", 284, "PRINT", 285, "PRINTF", 286, "SPRINTF", 287, "SPLIT", 288, "IF", 289, "ELSE", 290, "WHILE", 291, "FOR", 292, "IN", 293, "NEXT", 294, "EXIT", 295, "BREAK", 296, "CONTINUE", 297, "PROGRAM", 298, "PASTAT", 299, "PASTAT2", 300, "ASGNOP", 301, "BOR", 302, "AND", 303, "NOT", 304, "NUMBER", 305, "VAR", 306, "ARRAY", 307, "FNCN", 308, "SUBSTR", 309, "LSUBSTR", 310, "INDEX", 311, "GETLINE", 312, "RELOP", 313, "MATCHOP", 314, "OR", 315, "STRING", 316, "DOT", 317, "CCL", 318, "NCCL", 319, "CHAR", 320, "(", 40, "^", 94, "$", 36, "CAT", 321, "+", 43, "-", 45, "*", 42, "/", 47, "%", 37, "STAR", 322, "PLUS", 323, "QUEST", 324, "POSTINCR", 325, "PREINCR", 326, "POSTDECR", 327, "PREDECR", 328, "INCR", 329, "DECR", 330, "FIELD", 331, "INDIRECT", 332, "JUMPTRUE", 333, "JUMPFALSE", 334, "PUSH", 335, "GETREC", 336, "NEWSTAT", 337, "IN_INIT", 338, "IN_EXIT", 339, "LASTTOKEN", 340, "-unknown-", -1 /* ends search */ }; #ifdef __cplusplus const #endif char * yyreds[] = { "-no such reduction-", "program : begin pa_stats end", "program : error", "begin : XBEGIN '{' stat_list '}'", "begin : begin NL", "begin : /* empty */", "end : XEND '{' stat_list '}'", "end : end NL", "end : /* empty */", "compound_conditional : conditional BOR conditional", "compound_conditional : conditional AND conditional", "compound_conditional : NOT conditional", "compound_conditional : '(' compound_conditional ')'", "compound_pattern : pattern BOR pattern", "compound_pattern : pattern AND pattern", "compound_pattern : NOT pattern", "compound_pattern : '(' compound_pattern ')'", "conditional : expr", "conditional : rel_expr", "conditional : lex_expr", "conditional : compound_conditional", "else : ELSE optNL", "field : FIELD", "field : INDIRECT term", "if : IF '(' conditional ')' optNL", "lex_expr : expr MATCHOP regular_expr", "lex_expr : '(' lex_expr ')'", "var : NUMBER", "var : STRING", "var : VAR", "var : VAR '[' expr ']'", "var : field", "term : var", "term : GETLINE", "term : FNCN", "term : FNCN '(' ')'", "term : FNCN '(' expr ')'", "term : SPRINTF print_list", "term : SUBSTR '(' expr ',' expr ',' expr ')'", "term : SUBSTR '(' expr ',' expr ')'", "term : SPLIT '(' expr ',' VAR ',' expr ')'", "term : SPLIT '(' expr ',' VAR ')'", "term : INDEX '(' expr ',' expr ')'", "term : '(' expr ')'", "term : term '+' term", "term : term '-' term", "term : term '*' term", "term : term '/' term", "term : term '%' term", "term : '-' term", "term : '+' term", "term : INCR var", "term : DECR var", "term : var INCR", "term : var DECR", "expr : term", "expr : expr term", "expr : var ASGNOP expr", "optNL : NL", "optNL : /* empty */", "pa_stat : pattern", "pa_stat : pattern '{' stat_list '}'", "pa_stat : pattern ',' pattern", "pa_stat : pattern ',' pattern '{' stat_list '}'", "pa_stat : '{' stat_list '}'", "pa_stats : pa_stats pa_stat st", "pa_stats : /* empty */", "pa_stats : pa_stats pa_stat", "pattern : regular_expr", "pattern : rel_expr", "pattern : lex_expr", "pattern : compound_pattern", "print_list : expr", "print_list : pe_list", "print_list : /* empty */", "pe_list : expr ',' expr", "pe_list : pe_list ',' expr", "pe_list : '(' pe_list ')'", "redir : RELOP", "redir : '|'", "regular_expr : '/'", "regular_expr : '/' r '/'", "r : CHAR", "r : DOT", "r : CCL", "r : NCCL", "r : '^'", "r : '$'", "r : r OR r", "r : r r", "r : r STAR", "r : r PLUS", "r : r QUEST", "r : '(' r ')'", "rel_expr : expr RELOP expr", "rel_expr : '(' rel_expr ')'", "st : NL", "st : ';'", "simple_stat : PRINT print_list redir expr", "simple_stat : PRINT print_list", "simple_stat : PRINTF print_list redir expr", "simple_stat : PRINTF print_list", "simple_stat : expr", "simple_stat : /* empty */", "simple_stat : error", "statement : simple_stat st", "statement : if statement", "statement : if statement else statement", "statement : while statement", "statement : for", "statement : NEXT st", "statement : EXIT st", "statement : EXIT expr st", "statement : BREAK st", "statement : CONTINUE st", "statement : '{' stat_list '}'", "stat_list : stat_list statement", "stat_list : /* empty */", "while : WHILE '(' conditional ')' optNL", "for : FOR '(' simple_stat ';' conditional ';' simple_stat ')' optNL statement", "for : FOR '(' simple_stat ';' ';' simple_stat ')' optNL statement", "for : FOR '(' VAR IN VAR ')' optNL statement", }; #endif /* YYDEBUG */ # line 1 "/usr/share/lib/ccs/yaccpar" /* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. * See the License for the specific language governing permissions * and limitations under the License. * * When distributing Covered Code, include this CDDL HEADER in each * file and include the License file at usr/src/OPENSOLARIS.LICENSE. * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* * Copyright 1993 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ #pragma ident "%Z%%M% %I% %E% SMI" /* ** Skeleton parser driver for yacc output */ /* ** yacc user known macros and defines */ #define YYERROR goto yyerrlab #define YYACCEPT return(0) #define YYABORT return(1) #define YYBACKUP( newtoken, newvalue )\ {\ if ( yychar >= 0 || ( yyr2[ yytmp ] >> 1 ) != 1 )\ {\ yyerror( "syntax error - cannot backup" );\ goto yyerrlab;\ }\ yychar = newtoken;\ yystate = *yyps;\ yylval = newvalue;\ goto yynewstate;\ } #define YYRECOVERING() (!!yyerrflag) #define YYNEW(type) malloc(sizeof(type) * yynewmax) #define YYCOPY(to, from, type) \ (type *) memcpy(to, (char *) from, yymaxdepth * sizeof (type)) #define YYENLARGE( from, type) \ (type *) realloc((char *) from, yynewmax * sizeof(type)) #ifndef YYDEBUG # define YYDEBUG 1 /* make debugging available */ #endif /* ** user known globals */ int yydebug; /* set to 1 to get debugging */ /* ** driver internal defines */ #define YYFLAG (-10000000) /* ** global variables used by the parser */ YYSTYPE *yypv; /* top of value stack */ int *yyps; /* top of state stack */ int yystate; /* current state */ int yytmp; /* extra var (lasts between blocks) */ int yynerrs; /* number of errors */ int yyerrflag; /* error recovery flag */ int yychar; /* current input token number */ #ifdef YYNMBCHARS #define YYLEX() yycvtok(yylex()) /* ** yycvtok - return a token if i is a wchar_t value that exceeds 255. ** If i<255, i itself is the token. If i>255 but the neither ** of the 30th or 31st bit is on, i is already a token. */ #if defined(__STDC__) || defined(__cplusplus) int yycvtok(int i) #else int yycvtok(i) int i; #endif { int first = 0; int last = YYNMBCHARS - 1; int mid; wchar_t j; if(i&0x60000000){/*Must convert to a token. */ if( yymbchars[last].character < i ){ return i;/*Giving up*/ } while ((last>=first)&&(first>=0)) {/*Binary search loop*/ mid = (first+last)/2; j = yymbchars[mid].character; if( j==i ){/*Found*/ return yymbchars[mid].tvalue; }else if( j= 0; yy_i++ ) { if ( yytoks[yy_i].t_val == yychar ) break; } printf( "%s\n", yytoks[yy_i].t_name ); } } #endif /* YYDEBUG */ if ( ++yy_ps >= &yys[ yymaxdepth ] ) /* room on stack? */ { /* ** reallocate and recover. Note that pointers ** have to be reset, or bad things will happen */ long yyps_index = (yy_ps - yys); long yypv_index = (yy_pv - yyv); long yypvt_index = (yypvt - yyv); int yynewmax; #ifdef YYEXPAND yynewmax = YYEXPAND(yymaxdepth); #else yynewmax = 2 * yymaxdepth; /* double table size */ if (yymaxdepth == YYMAXDEPTH) /* first time growth */ { char *newyys = (char *)YYNEW(int); char *newyyv = (char *)YYNEW(YYSTYPE); if (newyys != 0 && newyyv != 0) { yys = YYCOPY(newyys, yys, int); yyv = YYCOPY(newyyv, yyv, YYSTYPE); } else yynewmax = 0; /* failed */ } else /* not first time */ { yys = YYENLARGE(yys, int); yyv = YYENLARGE(yyv, YYSTYPE); if (yys == 0 || yyv == 0) yynewmax = 0; /* failed */ } #endif if (yynewmax <= yymaxdepth) /* tables not expanded */ { yyerror( "yacc stack overflow" ); YYABORT; } yymaxdepth = yynewmax; yy_ps = yys + yyps_index; yy_pv = yyv + yypv_index; yypvt = yyv + yypvt_index; } *yy_ps = yy_state; *++yy_pv = yyval; /* ** we have a new state - find out what to do */ yy_newstate: if ( ( yy_n = yypact[ yy_state ] ) <= YYFLAG ) goto yydefault; /* simple state */ #if YYDEBUG /* ** if debugging, need to mark whether new token grabbed */ yytmp = yychar < 0; #endif if ( ( yychar < 0 ) && ( ( yychar = YYLEX() ) < 0 ) ) yychar = 0; /* reached EOF */ #if YYDEBUG if ( yydebug && yytmp ) { register int yy_i; printf( "Received token " ); if ( yychar == 0 ) printf( "end-of-file\n" ); else if ( yychar < 0 ) printf( "-none-\n" ); else { for ( yy_i = 0; yytoks[yy_i].t_val >= 0; yy_i++ ) { if ( yytoks[yy_i].t_val == yychar ) break; } printf( "%s\n", yytoks[yy_i].t_name ); } } #endif /* YYDEBUG */ if ( ( ( yy_n += yychar ) < 0 ) || ( yy_n >= YYLAST ) ) goto yydefault; if ( yychk[ yy_n = yyact[ yy_n ] ] == yychar ) /*valid shift*/ { yychar = -1; yyval = yylval; yy_state = yy_n; if ( yyerrflag > 0 ) yyerrflag--; goto yy_stack; } yydefault: if ( ( yy_n = yydef[ yy_state ] ) == -2 ) { #if YYDEBUG yytmp = yychar < 0; #endif if ( ( yychar < 0 ) && ( ( yychar = YYLEX() ) < 0 ) ) yychar = 0; /* reached EOF */ #if YYDEBUG if ( yydebug && yytmp ) { register int yy_i; printf( "Received token " ); if ( yychar == 0 ) printf( "end-of-file\n" ); else if ( yychar < 0 ) printf( "-none-\n" ); else { for ( yy_i = 0; yytoks[yy_i].t_val >= 0; yy_i++ ) { if ( yytoks[yy_i].t_val == yychar ) { break; } } printf( "%s\n", yytoks[yy_i].t_name ); } } #endif /* YYDEBUG */ /* ** look through exception table */ { register YYCONST int *yyxi = yyexca; while ( ( *yyxi != -1 ) || ( yyxi[1] != yy_state ) ) { yyxi += 2; } while ( ( *(yyxi += 2) >= 0 ) && ( *yyxi != yychar ) ) ; if ( ( yy_n = yyxi[1] ) < 0 ) YYACCEPT; } } /* ** check for syntax error */ if ( yy_n == 0 ) /* have an error */ { /* no worry about speed here! */ switch ( yyerrflag ) { case 0: /* new error */ yyerror( "syntax error" ); goto skip_init; yyerrlab: /* ** get globals into registers. ** we have a user generated syntax type error */ yy_pv = yypv; yy_ps = yyps; yy_state = yystate; skip_init: yynerrs++; /* FALLTHRU */ case 1: case 2: /* incompletely recovered error */ /* try again... */ yyerrflag = 3; /* ** find state where "error" is a legal ** shift action */ while ( yy_ps >= yys ) { yy_n = yypact[ *yy_ps ] + YYERRCODE; if ( yy_n >= 0 && yy_n < YYLAST && yychk[yyact[yy_n]] == YYERRCODE) { /* ** simulate shift of "error" */ yy_state = yyact[ yy_n ]; goto yy_stack; } /* ** current state has no shift on ** "error", pop stack */ #if YYDEBUG # define _POP_ "Error recovery pops state %d, uncovers state %d\n" if ( yydebug ) printf( _POP_, *yy_ps, yy_ps[-1] ); # undef _POP_ #endif yy_ps--; yy_pv--; } /* ** there is no state on stack with "error" as ** a valid shift. give up. */ YYABORT; case 3: /* no shift yet; eat a token */ #if YYDEBUG /* ** if debugging, look up token in list of ** pairs. 0 and negative shouldn't occur, ** but since timing doesn't matter when ** debugging, it doesn't hurt to leave the ** tests here. */ if ( yydebug ) { register int yy_i; printf( "Error recovery discards " ); if ( yychar == 0 ) printf( "token end-of-file\n" ); else if ( yychar < 0 ) printf( "token -none-\n" ); else { for ( yy_i = 0; yytoks[yy_i].t_val >= 0; yy_i++ ) { if ( yytoks[yy_i].t_val == yychar ) { break; } } printf( "token %s\n", yytoks[yy_i].t_name ); } } #endif /* YYDEBUG */ if ( yychar == 0 ) /* reached EOF. quit */ YYABORT; yychar = -1; goto yy_newstate; } }/* end if ( yy_n == 0 ) */ /* ** reduction by production yy_n ** put stack tops, etc. so things right after switch */ #if YYDEBUG /* ** if debugging, print the string that is the user's ** specification of the reduction which is just about ** to be done. */ if ( yydebug ) printf( "Reduce by (%d) \"%s\"\n", yy_n, yyreds[ yy_n ] ); #endif yytmp = yy_n; /* value to switch over */ yypvt = yy_pv; /* $vars top of value stack */ /* ** Look in goto table for next state ** Sorry about using yy_state here as temporary ** register variable, but why not, if it works... ** If yyr2[ yy_n ] doesn't have the low order bit ** set, then there is no action to be done for ** this reduction. So, no saving & unsaving of ** registers done. The only difference between the ** code just after the if and the body of the if is ** the goto yy_stack in the body. This way the test ** can be made before the choice of what to do is needed. */ { /* length of production doubled with extra bit */ register int yy_len = yyr2[ yy_n ]; if ( !( yy_len & 01 ) ) { yy_len >>= 1; yyval = ( yy_pv -= yy_len )[1]; /* $$ = $1 */ yy_state = yypgo[ yy_n = yyr1[ yy_n ] ] + *( yy_ps -= yy_len ) + 1; if ( yy_state >= YYLAST || yychk[ yy_state = yyact[ yy_state ] ] != -yy_n ) { yy_state = yyact[ yypgo[ yy_n ] ]; } goto yy_stack; } yy_len >>= 1; yyval = ( yy_pv -= yy_len )[1]; /* $$ = $1 */ yy_state = yypgo[ yy_n = yyr1[ yy_n ] ] + *( yy_ps -= yy_len ) + 1; if ( yy_state >= YYLAST || yychk[ yy_state = yyact[ yy_state ] ] != -yy_n ) { yy_state = yyact[ yypgo[ yy_n ] ]; } } /* save until reenter driver code */ yystate = yy_state; yyps = yy_ps; yypv = yy_pv; } /* ** code supplied by user is placed in this switch */ switch( yytmp ) { case 1: # line 81 "awk.g.y" { if (errorflag==0) winner = (NODE *)stat3(PROGRAM, yypvt[-2], yypvt[-1], yypvt[-0]); } break; case 2: # line 84 "awk.g.y" { yyclearin; yyerror("bailing out"); } break; case 3: # line 89 "awk.g.y" { yyval = yypvt[-1]; } break; case 5: # line 91 "awk.g.y" { yyval = (int) 0; } break; case 6: # line 96 "awk.g.y" { yyval = yypvt[-1]; } break; case 8: # line 98 "awk.g.y" { yyval = (int) 0; } break; case 9: # line 103 "awk.g.y" { yyval = op2(BOR, yypvt[-2], yypvt[-0]); } break; case 10: # line 104 "awk.g.y" { yyval = op2(AND, yypvt[-2], yypvt[-0]); } break; case 11: # line 105 "awk.g.y" { yyval = op1(NOT, yypvt[-0]); } break; case 12: # line 106 "awk.g.y" { yyval = yypvt[-1]; } break; case 13: # line 111 "awk.g.y" { yyval = op2(BOR, yypvt[-2], yypvt[-0]); } break; case 14: # line 112 "awk.g.y" { yyval = op2(AND, yypvt[-2], yypvt[-0]); } break; case 15: # line 113 "awk.g.y" { yyval = op1(NOT, yypvt[-0]); } break; case 16: # line 114 "awk.g.y" { yyval = yypvt[-1]; } break; case 17: # line 119 "awk.g.y" { yyval = op2(NE, yypvt[-0], valtonode(lookup(L_zeronull, symtab, 0), CCON)); } break; case 22: # line 135 "awk.g.y" { yyval = valtonode(yypvt[-0], CFLD); } break; case 23: # line 136 "awk.g.y" { yyval = op1(INDIRECT, yypvt[-0]); } break; case 24: # line 141 "awk.g.y" { yyval = yypvt[-2]; } break; case 25: # line 146 "awk.g.y" { yyval = op2(yypvt[-1], yypvt[-2], makedfa(yypvt[-0])); } break; case 26: # line 148 "awk.g.y" { yyval = yypvt[-1]; } break; case 27: # line 153 "awk.g.y" { yyval = valtonode(yypvt[-0], CCON); } break; case 28: # line 154 "awk.g.y" { yyval = valtonode(yypvt[-0], CCON); } break; case 29: # line 155 "awk.g.y" { yyval = valtonode(yypvt[-0], CVAR); } break; case 30: # line 156 "awk.g.y" { yyval = op2(ARRAY, yypvt[-3], yypvt[-1]); } break; case 33: # line 161 "awk.g.y" { yyval = op1(GETLINE, 0); } break; case 34: # line 162 "awk.g.y" { yyval = op2(FNCN, yypvt[-0], valtonode(lookup(L_record, symtab, 0), CFLD)); } break; case 35: # line 166 "awk.g.y" { yyval = op2(FNCN, yypvt[-2], valtonode(lookup(L_record, symtab, 0), CFLD)); } break; case 36: # line 170 "awk.g.y" { yyval = op2(FNCN, yypvt[-3], yypvt[-1]); } break; case 37: # line 171 "awk.g.y" { yyval = op1(yypvt[-1], yypvt[-0]); } break; case 38: # line 173 "awk.g.y" { yyval = op3(SUBSTR, yypvt[-5], yypvt[-3], yypvt[-1]); } break; case 39: # line 175 "awk.g.y" { yyval = op3(SUBSTR, yypvt[-3], yypvt[-1], 0); } break; case 40: # line 177 "awk.g.y" { yyval = op3(SPLIT, yypvt[-5], yypvt[-3], yypvt[-1]); } break; case 41: # line 179 "awk.g.y" { yyval = op3(SPLIT, yypvt[-3], yypvt[-1], 0); } break; case 42: # line 181 "awk.g.y" { yyval = op2(INDEX, yypvt[-3], yypvt[-1]); } break; case 43: # line 182 "awk.g.y" {yyval = yypvt[-1]; } break; case 44: # line 183 "awk.g.y" { yyval = op2(ADD, yypvt[-2], yypvt[-0]); } break; case 45: # line 184 "awk.g.y" { yyval = op2(MINUS, yypvt[-2], yypvt[-0]); } break; case 46: # line 185 "awk.g.y" { yyval = op2(MULT, yypvt[-2], yypvt[-0]); } break; case 47: # line 186 "awk.g.y" { yyval = op2(DIVIDE, yypvt[-2], yypvt[-0]); } break; case 48: # line 187 "awk.g.y" { yyval = op2(MOD, yypvt[-2], yypvt[-0]); } break; case 49: # line 188 "awk.g.y" { yyval = op1(UMINUS, yypvt[-0]); } break; case 50: # line 189 "awk.g.y" { yyval = yypvt[-0]; } break; case 51: # line 190 "awk.g.y" { yyval = op1(PREINCR, yypvt[-0]); } break; case 52: # line 191 "awk.g.y" { yyval = op1(PREDECR, yypvt[-0]); } break; case 53: # line 192 "awk.g.y" { yyval= op1(POSTINCR, yypvt[-1]); } break; case 54: # line 193 "awk.g.y" { yyval= op1(POSTDECR, yypvt[-1]); } break; case 56: # line 199 "awk.g.y" { yyval = op2(CAT, yypvt[-1], yypvt[-0]); } break; case 57: # line 200 "awk.g.y" { yyval = op2(yypvt[-1], yypvt[-2], yypvt[-0]); } break; case 60: # line 211 "awk.g.y" { yyval = stat2(PASTAT, yypvt[-0], genprint()); } break; case 61: # line 212 "awk.g.y" { yyval = stat2(PASTAT, yypvt[-3], yypvt[-1]); } break; case 62: # line 213 "awk.g.y" { yyval = pa2stat(yypvt[-2], yypvt[-0], genprint()); } break; case 63: # line 215 "awk.g.y" { yyval = pa2stat(yypvt[-5], yypvt[-3], yypvt[-1]); } break; case 64: # line 216 "awk.g.y" { yyval = stat2(PASTAT, 0, yypvt[-1]); } break; case 65: # line 221 "awk.g.y" { yyval = linkum(yypvt[-2], yypvt[-1]); } break; case 66: # line 222 "awk.g.y" { yyval = (int)0; } break; case 67: # line 223 "awk.g.y" { yyval = linkum(yypvt[-1], yypvt[-0]); } break; case 68: # line 228 "awk.g.y" { yyval = op2(MATCH, valtonode(lookup(L_record, symtab, 0), CFLD), makedfa(yypvt[-0])); } break; case 74: # line 241 "awk.g.y" { yyval = valtonode(lookup(L_record, symtab, 0), CFLD); } break; case 75: # line 248 "awk.g.y" {yyval = linkum(yypvt[-2], yypvt[-0]); } break; case 76: # line 249 "awk.g.y" {yyval = linkum(yypvt[-2], yypvt[-0]); } break; case 77: # line 250 "awk.g.y" {yyval = yypvt[-1]; } break; case 80: # line 261 "awk.g.y" { startreg(); } break; case 81: # line 263 "awk.g.y" { yyval = yypvt[-1]; } break; case 82: # line 268 "awk.g.y" { yyval = op2(CHAR, (NODE *) 0, yypvt[-0]); } break; case 83: # line 269 "awk.g.y" { yyval = op2(DOT, (NODE *) 0, (NODE *) 0); } break; case 84: # line 270 "awk.g.y" { yyval = op2(CCL, (NODE *) 0, cclenter(yypvt[-0])); } break; case 85: # line 271 "awk.g.y" { yyval = op2(NCCL, (NODE *) 0, cclenter(yypvt[-0])); } break; case 86: # line 272 "awk.g.y" { yyval = op2(CHAR, (NODE *) 0, HAT); } break; case 87: # line 273 "awk.g.y" { yyval = op2(CHAR, (NODE *) 0, (NODE *) 0); } break; case 88: # line 274 "awk.g.y" { yyval = op2(OR, yypvt[-2], yypvt[-0]); } break; case 89: # line 276 "awk.g.y" { yyval = op2(CAT, yypvt[-1], yypvt[-0]); } break; case 90: # line 277 "awk.g.y" { yyval = op2(STAR, yypvt[-1], (NODE *) 0); } break; case 91: # line 278 "awk.g.y" { yyval = op2(PLUS, yypvt[-1], (NODE *) 0); } break; case 92: # line 279 "awk.g.y" { yyval = op2(QUEST, yypvt[-1], (NODE *) 0); } break; case 93: # line 280 "awk.g.y" { yyval = yypvt[-1]; } break; case 94: # line 286 "awk.g.y" { yyval = op2(yypvt[-1], yypvt[-2], yypvt[-0]); } break; case 95: # line 288 "awk.g.y" { yyval = yypvt[-1]; } break; case 98: # line 300 "awk.g.y" { yyval = stat3(yypvt[-3], yypvt[-2], yypvt[-1], yypvt[-0]); } break; case 99: # line 302 "awk.g.y" { yyval = stat3(yypvt[-1], yypvt[-0], 0, 0); } break; case 100: # line 304 "awk.g.y" { yyval = stat3(yypvt[-3], yypvt[-2], yypvt[-1], yypvt[-0]); } break; case 101: # line 306 "awk.g.y" { yyval = stat3(yypvt[-1], yypvt[-0], 0, 0); } break; case 102: # line 307 "awk.g.y" { yyval = exptostat(yypvt[-0]); } break; case 103: # line 308 "awk.g.y" { yyval = (int)0; } break; case 104: # line 309 "awk.g.y" { yyclearin; yyerror("illegal statement"); yyval = (int)0; } break; case 106: # line 315 "awk.g.y" { yyval = stat3(IF, yypvt[-1], yypvt[-0], 0); } break; case 107: # line 317 "awk.g.y" { yyval = stat3(IF, yypvt[-3], yypvt[-2], yypvt[-0]); } break; case 108: # line 318 "awk.g.y" { yyval = stat2(WHILE, yypvt[-1], yypvt[-0]); } break; case 110: # line 320 "awk.g.y" { yyval = stat1(NEXT, 0); } break; case 111: # line 321 "awk.g.y" { yyval = stat1(EXIT, 0); } break; case 112: # line 322 "awk.g.y" { yyval = stat1(EXIT, yypvt[-1]); } break; case 113: # line 323 "awk.g.y" { yyval = stat1(BREAK, 0); } break; case 114: # line 324 "awk.g.y" { yyval = stat1(CONTINUE, 0); } break; case 115: # line 325 "awk.g.y" { yyval = yypvt[-1]; } break; case 116: # line 330 "awk.g.y" { yyval = linkum(yypvt[-1], yypvt[-0]); } break; case 117: # line 331 "awk.g.y" { yyval = (int)0; } break; case 118: # line 336 "awk.g.y" { yyval = yypvt[-2]; } break; case 119: # line 342 "awk.g.y" { yyval = stat4(FOR, yypvt[-7], yypvt[-5], yypvt[-3], yypvt[-0]); } break; case 120: # line 344 "awk.g.y" { yyval = stat4(FOR, yypvt[-6], 0, yypvt[-3], yypvt[-0]); } break; case 121: # line 346 "awk.g.y" { yyval = stat3(IN, yypvt[-5], yypvt[-3], yypvt[-0]); } break; # line 556 "/usr/share/lib/ccs/yaccpar" } goto yystack; /* reset registers in driver code */ }