5 static char *printname
[93] = {
6 (char *) "FIRSTTOKEN", /* 258 */
7 (char *) "PROGRAM", /* 259 */
8 (char *) "PASTAT", /* 260 */
9 (char *) "PASTAT2", /* 261 */
10 (char *) "XBEGIN", /* 262 */
11 (char *) "XEND", /* 263 */
12 (char *) "NL", /* 264 */
13 (char *) "ARRAY", /* 265 */
14 (char *) "MATCH", /* 266 */
15 (char *) "NOTMATCH", /* 267 */
16 (char *) "MATCHOP", /* 268 */
17 (char *) "FINAL", /* 269 */
18 (char *) "DOT", /* 270 */
19 (char *) "ALL", /* 271 */
20 (char *) "CCL", /* 272 */
21 (char *) "NCCL", /* 273 */
22 (char *) "CHAR", /* 274 */
23 (char *) "OR", /* 275 */
24 (char *) "STAR", /* 276 */
25 (char *) "QUEST", /* 277 */
26 (char *) "PLUS", /* 278 */
27 (char *) "EMPTYRE", /* 279 */
28 (char *) "AND", /* 280 */
29 (char *) "BOR", /* 281 */
30 (char *) "APPEND", /* 282 */
31 (char *) "EQ", /* 283 */
32 (char *) "GE", /* 284 */
33 (char *) "GT", /* 285 */
34 (char *) "LE", /* 286 */
35 (char *) "LT", /* 287 */
36 (char *) "NE", /* 288 */
37 (char *) "IN", /* 289 */
38 (char *) "ARG", /* 290 */
39 (char *) "BLTIN", /* 291 */
40 (char *) "BREAK", /* 292 */
41 (char *) "CLOSE", /* 293 */
42 (char *) "CONTINUE", /* 294 */
43 (char *) "DELETE", /* 295 */
44 (char *) "DO", /* 296 */
45 (char *) "EXIT", /* 297 */
46 (char *) "FOR", /* 298 */
47 (char *) "FUNC", /* 299 */
48 (char *) "SUB", /* 300 */
49 (char *) "GSUB", /* 301 */
50 (char *) "IF", /* 302 */
51 (char *) "INDEX", /* 303 */
52 (char *) "LSUBSTR", /* 304 */
53 (char *) "MATCHFCN", /* 305 */
54 (char *) "NEXT", /* 306 */
55 (char *) "NEXTFILE", /* 307 */
56 (char *) "ADD", /* 308 */
57 (char *) "MINUS", /* 309 */
58 (char *) "MULT", /* 310 */
59 (char *) "DIVIDE", /* 311 */
60 (char *) "MOD", /* 312 */
61 (char *) "ASSIGN", /* 313 */
62 (char *) "ASGNOP", /* 314 */
63 (char *) "ADDEQ", /* 315 */
64 (char *) "SUBEQ", /* 316 */
65 (char *) "MULTEQ", /* 317 */
66 (char *) "DIVEQ", /* 318 */
67 (char *) "MODEQ", /* 319 */
68 (char *) "POWEQ", /* 320 */
69 (char *) "PRINT", /* 321 */
70 (char *) "PRINTF", /* 322 */
71 (char *) "SPRINTF", /* 323 */
72 (char *) "ELSE", /* 324 */
73 (char *) "INTEST", /* 325 */
74 (char *) "CONDEXPR", /* 326 */
75 (char *) "POSTINCR", /* 327 */
76 (char *) "PREINCR", /* 328 */
77 (char *) "POSTDECR", /* 329 */
78 (char *) "PREDECR", /* 330 */
79 (char *) "VAR", /* 331 */
80 (char *) "IVAR", /* 332 */
81 (char *) "VARNF", /* 333 */
82 (char *) "CALL", /* 334 */
83 (char *) "NUMBER", /* 335 */
84 (char *) "STRING", /* 336 */
85 (char *) "REGEXPR", /* 337 */
86 (char *) "GETLINE", /* 338 */
87 (char *) "SUBSTR", /* 339 */
88 (char *) "SPLIT", /* 340 */
89 (char *) "RETURN", /* 341 */
90 (char *) "WHILE", /* 342 */
91 (char *) "CAT", /* 343 */
92 (char *) "UMINUS", /* 344 */
93 (char *) "NOT", /* 345 */
94 (char *) "POWER", /* 346 */
95 (char *) "INCR", /* 347 */
96 (char *) "DECR", /* 348 */
97 (char *) "INDIRECT", /* 349 */
98 (char *) "LASTTOKEN", /* 350 */
102 Cell
*(*proctab
[93])(Node
**, int) = {
103 nullproc
, /* FIRSTTOKEN */
104 program
, /* PROGRAM */
107 nullproc
, /* XBEGIN */
112 matchop
, /* NOTMATCH */
113 nullproc
, /* MATCHOP */
114 nullproc
, /* FINAL */
122 nullproc
, /* QUEST */
124 nullproc
, /* EMPTYRE */
127 nullproc
, /* APPEND */
138 closefile
, /* CLOSE */
140 awkdelete
, /* DELETE */
149 nullproc
, /* LSUBSTR */
150 matchop
, /* MATCHFCN */
159 nullproc
, /* ASGNOP */
166 printstat
, /* PRINT */
167 awkprintf
, /* PRINTF */
168 awksprintf
, /* SPRINTF */
171 condexpr
, /* CONDEXPR */
172 incrdecr
, /* POSTINCR */
173 incrdecr
, /* PREINCR */
174 incrdecr
, /* POSTDECR */
175 incrdecr
, /* PREDECR */
180 nullproc
, /* NUMBER */
181 nullproc
, /* STRING */
182 nullproc
, /* REGEXPR */
183 getline
, /* GETLINE */
187 whilestat
, /* WHILE */
194 indirect
, /* INDIRECT */
195 nullproc
, /* LASTTOKEN */
200 static char buf
[100];
202 if (n
< FIRSTTOKEN
|| n
> LASTTOKEN
) {
203 sprintf(buf
, "token %d", n
);
206 return printname
[n
-FIRSTTOKEN
];