00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #define ANTLR_VERSION 13333
00013 #include "pcctscfg.h"
00014 #include "pccts_stdio.h"
00015
00016 #include "charbuf.h"
00017 #include "stringbuffer.h"
00018 #include "libicl.h"
00019 #include "libicl_private.h"
00020 #include "glib.h"
00021 #include <stdio.h>
00022 #ifdef _WINDOWS
00023 #include "oaa-windows.h"
00024 #endif
00025
00026
00027 #define AST_FIELDS int isDefined; int type; char* tokenData; size_t tokenLen;
00028
00029 #define ZZCOL
00030
00031 #define USER_ZZSYN
00032
00033
00034 #define ZZLEXBUFSIZE 10485760
00035
00036 extern GByteArray* parser_dblQuoteBuf;
00037 extern char* parser_tmpStrIn;
00038 #ifdef NORMAL_GC
00039 extern void* GC_debug_malloc(size_t, const char*, int);
00040 extern char* gc_strdup(char*);
00041 #endif
00042
00043 #ifdef NORMAL_GC
00044 #define zzcr_ast(ast, attr, ttype, text) { \
00045 if(((ttype) == ICLDATAQ) || \
00046 ((ttype) == DBLQUOTED)) { \
00047 char* buf = parser_dblQuoteBuf->data; \
00048 g_byte_array_free(parser_dblQuoteBuf, FALSE); \
00049
00050
00051
00052
00053 \
00054 ast->tokenData = buf; \
00055 ast->tokenLen = parser_dblQuoteLen; \
00056 } \
00057 else { \
00058 if(zzbufovf) { \
00059 ast->tokenLen = ZZLEXBUFSIZE; \
00060 ast->tokenData = (char*)GC_debug_malloc(ZZLEXBUFSIZE + 1, __FILE__, __LINE__); \
00061 strncpy(ast->tokenData, text, ZZLEXBUFSIZE); \
00062 fprintf(stderr, "ZZLEXBUFSIZE overflowed (%i)\n", ZZLEXBUFSIZE); \
00063 } \
00064 else { \
00065 ast->tokenData = gc_strdup(text); \
00066 ast->tokenLen = strlen(text); \
00067 } \
00068 } \
00069 ast->type = (ttype); \
00070 ast->isDefined = 1; \
00071 ast->right = NULL; \
00072 ast->down = NULL; \
00073 \
00074 };
00075
00076
00077
00078
00079
00080
00081
00082
00083 #undef zzd_ast
00084
00085 #else
00086 #define zzcr_ast(ast, attr, ttype, text) { \
00087 if(((ttype) == ICLDATAQ) || \
00088 ((ttype) == DBLQUOTED)) { \
00089 char* buf = parser_dblQuoteBuf->data; \
00090 g_byte_array_free(parser_dblQuoteBuf, FALSE); \
00091
00092
00093
00094
00095 \
00096 ast->tokenData = buf; \
00097 ast->tokenLen = parser_dblQuoteLen; \
00098 } \
00099 else { \
00100 if(zzbufovf) { \
00101 ast->tokenLen = ZZLEXBUFSIZE; \
00102 ast->tokenData = (char*)malloc(ZZLEXBUFSIZE + 1); \
00103 strncpy(ast->tokenData, text, ZZLEXBUFSIZE); \
00104 fprintf(stderr, "ZZLEXBUFSIZE overflowed (%i)\n", ZZLEXBUFSIZE); \
00105 } \
00106 else { \
00107 ast->tokenData = strdup(text); \
00108 ast->tokenLen = strlen(text); \
00109 } \
00110 } \
00111 ast->type = (ttype); \
00112 ast->isDefined = 1; \
00113 ast->right = NULL; \
00114 ast->down = NULL; \
00115 \
00116 };
00117
00118
00119
00120
00121
00122
00123
00124 #undef zzd_ast
00125
00126 #endif
00127
00128 extern int parser_dblQuoteLen;
00129 extern ICLTerm* parser_getTermFromString(char* str, size_t len);
00130 extern ICLTerm* parser_getTermFromStringDebug(char* str, size_t len);
00131 extern int parser_getTermFromBuf(ICLTerm** result, stringbuffer_t* buf, int* lookedAhead);
00132 extern int parser_getNetTermFromBuf(ICLTerm** result, stringbuffer_t* buf);
00133
00134 extern int parser_error;
00135 extern int parser_setDebug(int b);
00136 extern void handleDblQuotedData();
00137 #define LL_K 2
00138 #include "antlr.h"
00139 #include "ast.h"
00140 #include "tokens.h"
00141 #include "dlgdef.h"
00142 LOOKAHEAD
00143
00144 void
00145 #ifdef __USE_PROTOS
00146 zzerraction(void)
00147 #else
00148 zzerraction()
00149 #endif
00150 {
00151 (*zzerr)("invalid token");
00152 zzadvance();
00153 zzskip();
00154 }
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165 #include "mode.h"
00166
00167
00168
00169 static void act1()
00170 {
00171 NLA = 1;
00172 }
00173
00174
00175 static void act2()
00176 {
00177 NLA = TERM_LITERAL;
00178 }
00179
00180
00181 static void act3()
00182 {
00183 NLA = ICLDATAQ_LITERAL;
00184 }
00185
00186
00187 static void act4()
00188 {
00189 NLA = LBRACE;
00190 }
00191
00192
00193 static void act5()
00194 {
00195 NLA = RBRACE;
00196 }
00197
00198
00199 static void act6()
00200 {
00201 NLA = LBRACK;
00202 }
00203
00204
00205 static void act7()
00206 {
00207 NLA = RBRACK;
00208 }
00209
00210
00211 static void act8()
00212 {
00213 NLA = LPAREN;
00214 }
00215
00216
00217 static void act9()
00218 {
00219 NLA = RPAREN;
00220 }
00221
00222
00223 static void act10()
00224 {
00225 NLA = DBL_COLON;
00226 }
00227
00228
00229 static void act11()
00230 {
00231 NLA = TURNSTILE;
00232 }
00233
00234
00235 static void act12()
00236 {
00237 NLA = COLON;
00238 }
00239
00240
00241 static void act13()
00242 {
00243 NLA = SEMI;
00244 }
00245
00246
00247 static void act14()
00248 {
00249 NLA = COMMA;
00250 }
00251
00252
00253 static void act15()
00254 {
00255 NLA = PLUS;
00256 }
00257
00258
00259 static void act16()
00260 {
00261 NLA = MINUS;
00262 }
00263
00264
00265 static void act17()
00266 {
00267 NLA = STAR;
00268 }
00269
00270
00271 static void act18()
00272 {
00273 NLA = DIV;
00274 }
00275
00276
00277 static void act19()
00278 {
00279 NLA = EQUAL;
00280 }
00281
00282
00283 static void act20()
00284 {
00285 NLA = BACKSLASH;
00286 }
00287
00288
00289 static void act21()
00290 {
00291 NLA = BANG;
00292 }
00293
00294
00295 static void act22()
00296 {
00297 NLA = TILDE;
00298 }
00299
00300
00301 static void act23()
00302 {
00303 NLA = PIPE;
00304 }
00305
00306
00307 static void act24()
00308 {
00309 NLA = DOT;
00310 }
00311
00312
00313 static void act25()
00314 {
00315 NLA = NUM_INTONE;
00316 }
00317
00318
00319 static void act26()
00320 {
00321 NLA = NUM_INTTWO;
00322 }
00323
00324
00325 static void act27()
00326 {
00327 NLA = NUM_FLOATONE;
00328 }
00329
00330
00331 static void act28()
00332 {
00333 NLA = NUM_FLOATTWO;
00334 }
00335
00336
00337 static void act29()
00338 {
00339 NLA = WS;
00340 zzskip ();
00341 }
00342
00343
00344 static void act30()
00345 {
00346 NLA = NEWLINE;
00347 ++zzline; zzskip();
00348 }
00349
00350
00351 static void act31()
00352 {
00353 NLA = SPECIAL_CHAR_LITERAL;
00354 }
00355
00356
00357 static void act32()
00358 {
00359 NLA = IDENT;
00360 }
00361
00362
00363 static void act33()
00364 {
00365 NLA = VARIABLE;
00366 }
00367
00368
00369 static void act34()
00370 {
00371 NLA = 42;
00372 zzmode (STRING_LITERAL_CLASS); zzmore();
00373 }
00374
00375
00376 static void act35()
00377 {
00378 NLA = 43;
00379 parser_dblQuoteLen = 0; zzreplstr(""); zzmode (DBLQUOTED_CLASS); handleDblQuotedData(); zzmore();
00380 }
00381
00382 static unsigned char shift0[257] = {
00383 0, 41, 41, 41, 41, 41, 41, 41, 41, 41,
00384 33, 34, 41, 41, 35, 41, 41, 41, 41, 41,
00385 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
00386 41, 41, 41, 33, 26, 40, 36, 36, 41, 36,
00387 39, 15, 16, 22, 21, 20, 18, 29, 23, 31,
00388 30, 30, 30, 30, 30, 30, 30, 30, 30, 17,
00389 19, 36, 24, 36, 36, 36, 38, 38, 38, 38,
00390 32, 38, 38, 38, 38, 38, 38, 38, 38, 38,
00391 38, 38, 38, 38, 38, 38, 38, 38, 38, 38,
00392 38, 38, 13, 25, 14, 36, 38, 36, 9, 37,
00393 6, 8, 2, 37, 37, 37, 5, 37, 37, 7,
00394 4, 37, 37, 37, 10, 3, 37, 1, 37, 37,
00395 37, 37, 37, 37, 11, 28, 12, 27, 41, 41,
00396 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
00397 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
00398 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
00399 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
00400 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
00401 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
00402 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
00403 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
00404 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
00405 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
00406 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
00407 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
00408 41, 41, 41, 41, 41, 41, 41
00409 };
00410
00411
00412 static void act36()
00413 {
00414 NLA = 1;
00415 }
00416
00417
00418 static void act37()
00419 {
00420 NLA = 44;
00421 zzmore();
00422 }
00423
00424
00425 static void act38()
00426 {
00427 NLA = STRING_LITERAL;
00428 zzmode(START);
00429 }
00430
00431
00432 static void act39()
00433 {
00434 NLA = 46;
00435 ++zzline; zzmore();
00436 }
00437
00438
00439 static void act40()
00440 {
00441 NLA = 47;
00442 zzmore();
00443 }
00444
00445 static unsigned char shift1[257] = {
00446 0, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00447 3, 2, 3, 3, 2, 3, 3, 3, 3, 3,
00448 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00449 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00450 1, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00451 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00452 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00453 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00454 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00455 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00456 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00457 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00458 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00459 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00460 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00461 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00462 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00463 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00464 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00465 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00466 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00467 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00468 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00469 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00470 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
00471 3, 3, 3, 3, 3, 3, 3
00472 };
00473
00474
00475 static void act41()
00476 {
00477 NLA = 1;
00478 }
00479
00480
00481 static void act42()
00482 {
00483 NLA = DBLQUOTED;
00484 zzreplstr(""); zzmode(START);
00485 }
00486
00487 static unsigned char shift2[257] = {
00488 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00489 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00490 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00491 2, 2, 2, 2, 2, 1, 2, 2, 2, 2,
00492 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00493 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00494 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00495 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00496 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00497 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00498 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00499 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00500 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00501 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00502 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00503 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00504 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00505 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00506 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00507 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00508 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00509 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00510 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00511 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00512 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
00513 2, 2, 2, 2, 2, 2, 2
00514 };
00515
00516 #define DfaStates 72
00517 typedef unsigned char DfaState;
00518
00519 static DfaState st0[42] = {
00520 1, 2, 3, 3, 3, 4, 3, 3, 3, 3,
00521 3, 5, 6, 7, 8, 9, 10, 11, 12, 13,
00522 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
00523 24, 25, 26, 27, 28, 29, 30, 3, 26, 31,
00524 32, 72
00525 };
00526
00527 static DfaState st1[42] = {
00528 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00529 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00530 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00531 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00532 72, 72
00533 };
00534
00535 static DfaState st2[42] = {
00536 72, 33, 34, 33, 33, 33, 33, 33, 33, 33,
00537 33, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00538 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00539 33, 33, 33, 72, 72, 72, 72, 33, 33, 72,
00540 72, 72
00541 };
00542
00543 static DfaState st3[42] = {
00544 72, 33, 33, 33, 33, 33, 33, 33, 33, 33,
00545 33, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00546 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00547 33, 33, 33, 72, 72, 72, 72, 33, 33, 72,
00548 72, 72
00549 };
00550
00551 static DfaState st4[42] = {
00552 72, 33, 33, 33, 33, 33, 35, 33, 33, 33,
00553 33, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00554 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00555 33, 33, 33, 72, 72, 72, 72, 33, 33, 72,
00556 72, 72
00557 };
00558
00559 static DfaState st5[42] = {
00560 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00561 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00562 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00563 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00564 72, 72
00565 };
00566
00567 static DfaState st6[42] = {
00568 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00569 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00570 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00571 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00572 72, 72
00573 };
00574
00575 static DfaState st7[42] = {
00576 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00577 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00578 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00579 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00580 72, 72
00581 };
00582
00583 static DfaState st8[42] = {
00584 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00585 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00586 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00587 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00588 72, 72
00589 };
00590
00591 static DfaState st9[42] = {
00592 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00593 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00594 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00595 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00596 72, 72
00597 };
00598
00599 static DfaState st10[42] = {
00600 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00601 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00602 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00603 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00604 72, 72
00605 };
00606
00607 static DfaState st11[42] = {
00608 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00609 72, 72, 72, 72, 72, 72, 72, 36, 37, 72,
00610 72, 38, 38, 38, 38, 38, 72, 72, 72, 38,
00611 72, 72, 72, 72, 72, 72, 38, 72, 72, 72,
00612 72, 72
00613 };
00614
00615 static DfaState st12[42] = {
00616 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00617 72, 72, 72, 72, 72, 72, 72, 39, 39, 72,
00618 72, 39, 39, 39, 39, 39, 72, 72, 72, 40,
00619 24, 25, 72, 72, 72, 72, 39, 72, 72, 72,
00620 72, 72
00621 };
00622
00623 static DfaState st13[42] = {
00624 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00625 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00626 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00627 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00628 72, 72
00629 };
00630
00631 static DfaState st14[42] = {
00632 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00633 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00634 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00635 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00636 72, 72
00637 };
00638
00639 static DfaState st15[42] = {
00640 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00641 72, 72, 72, 72, 72, 72, 72, 39, 39, 72,
00642 72, 39, 39, 39, 39, 39, 72, 72, 72, 40,
00643 24, 25, 72, 72, 72, 72, 39, 72, 72, 72,
00644 72, 72
00645 };
00646
00647 static DfaState st16[42] = {
00648 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00649 72, 72, 72, 72, 72, 72, 72, 39, 39, 72,
00650 72, 39, 39, 39, 39, 39, 72, 72, 72, 39,
00651 72, 72, 72, 72, 72, 72, 39, 72, 72, 72,
00652 72, 72
00653 };
00654
00655 static DfaState st17[42] = {
00656 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00657 72, 72, 72, 72, 72, 72, 72, 39, 39, 72,
00658 72, 39, 39, 39, 39, 39, 72, 72, 72, 39,
00659 72, 72, 72, 72, 72, 72, 39, 72, 72, 72,
00660 72, 72
00661 };
00662
00663 static DfaState st18[42] = {
00664 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00665 72, 72, 72, 72, 72, 72, 72, 39, 39, 72,
00666 72, 39, 39, 39, 39, 39, 72, 72, 72, 39,
00667 72, 72, 72, 72, 72, 72, 39, 72, 72, 72,
00668 72, 72
00669 };
00670
00671 static DfaState st19[42] = {
00672 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00673 72, 72, 72, 72, 72, 72, 72, 39, 39, 72,
00674 72, 39, 39, 39, 39, 39, 72, 72, 72, 39,
00675 72, 72, 72, 72, 72, 72, 39, 72, 72, 72,
00676 72, 72
00677 };
00678
00679 static DfaState st20[42] = {
00680 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00681 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00682 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00683 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00684 72, 72
00685 };
00686
00687 static DfaState st21[42] = {
00688 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00689 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00690 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00691 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00692 72, 72
00693 };
00694
00695 static DfaState st22[42] = {
00696 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00697 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00698 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00699 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00700 72, 72
00701 };
00702
00703 static DfaState st23[42] = {
00704 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00705 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00706 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00707 41, 41, 72, 72, 72, 72, 72, 72, 72, 72,
00708 72, 72
00709 };
00710
00711 static DfaState st24[42] = {
00712 72, 72, 42, 72, 72, 72, 72, 72, 72, 72,
00713 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00714 72, 72, 72, 72, 72, 72, 72, 72, 72, 43,
00715 44, 44, 42, 72, 72, 72, 72, 72, 72, 72,
00716 72, 72
00717 };
00718
00719 static DfaState st25[42] = {
00720 72, 72, 42, 72, 72, 72, 72, 72, 72, 72,
00721 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00722 72, 72, 72, 72, 72, 72, 72, 72, 72, 43,
00723 45, 45, 42, 72, 72, 72, 72, 72, 72, 72,
00724 72, 72
00725 };
00726
00727 static DfaState st26[42] = {
00728 72, 46, 46, 46, 46, 46, 46, 46, 46, 46,
00729 46, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00730 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00731 46, 46, 46, 72, 72, 72, 72, 46, 46, 72,
00732 72, 72
00733 };
00734
00735 static DfaState st27[42] = {
00736 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00737 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00738 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00739 72, 72, 72, 27, 72, 72, 72, 72, 72, 72,
00740 72, 72
00741 };
00742
00743 static DfaState st28[42] = {
00744 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00745 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00746 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00747 72, 72, 72, 72, 72, 47, 72, 72, 72, 72,
00748 72, 72
00749 };
00750
00751 static DfaState st29[42] = {
00752 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00753 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00754 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00755 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00756 72, 72
00757 };
00758
00759 static DfaState st30[42] = {
00760 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00761 72, 72, 72, 72, 72, 72, 72, 38, 38, 72,
00762 72, 38, 38, 38, 38, 38, 72, 72, 72, 38,
00763 72, 72, 72, 72, 72, 72, 38, 72, 72, 72,
00764 72, 72
00765 };
00766
00767 static DfaState st31[42] = {
00768 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00769 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00770 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00771 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00772 72, 72
00773 };
00774
00775 static DfaState st32[42] = {
00776 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00777 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00778 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00779 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00780 72, 72
00781 };
00782
00783 static DfaState st33[42] = {
00784 72, 33, 33, 33, 33, 33, 33, 33, 33, 33,
00785 33, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00786 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00787 33, 33, 33, 72, 72, 72, 72, 33, 33, 72,
00788 72, 72
00789 };
00790
00791 static DfaState st34[42] = {
00792 72, 33, 33, 48, 33, 33, 33, 33, 33, 33,
00793 33, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00794 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00795 33, 33, 33, 72, 72, 72, 72, 33, 33, 72,
00796 72, 72
00797 };
00798
00799 static DfaState st35[42] = {
00800 72, 33, 33, 33, 33, 33, 33, 49, 33, 33,
00801 33, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00802 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00803 33, 33, 33, 72, 72, 72, 72, 33, 33, 72,
00804 72, 72
00805 };
00806
00807 static DfaState st36[42] = {
00808 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00809 72, 72, 72, 72, 72, 72, 72, 50, 50, 72,
00810 72, 50, 50, 50, 50, 50, 72, 72, 72, 50,
00811 72, 72, 72, 72, 72, 72, 50, 72, 72, 72,
00812 72, 72
00813 };
00814
00815 static DfaState st37[42] = {
00816 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00817 72, 72, 72, 72, 72, 72, 72, 50, 50, 72,
00818 72, 50, 50, 50, 50, 50, 72, 72, 72, 50,
00819 72, 72, 72, 72, 72, 72, 50, 72, 72, 72,
00820 72, 72
00821 };
00822
00823 static DfaState st38[42] = {
00824 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00825 72, 72, 72, 72, 72, 72, 72, 38, 38, 72,
00826 72, 38, 38, 38, 38, 38, 72, 72, 72, 38,
00827 72, 72, 72, 72, 72, 72, 38, 72, 72, 72,
00828 72, 72
00829 };
00830
00831 static DfaState st39[42] = {
00832 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00833 72, 72, 72, 72, 72, 72, 72, 39, 39, 72,
00834 72, 39, 39, 39, 39, 39, 72, 72, 72, 39,
00835 72, 72, 72, 72, 72, 72, 39, 72, 72, 72,
00836 72, 72
00837 };
00838
00839 static DfaState st40[42] = {
00840 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00841 72, 72, 72, 72, 72, 72, 72, 39, 39, 72,
00842 72, 39, 39, 39, 39, 39, 72, 72, 72, 39,
00843 41, 41, 72, 72, 72, 72, 39, 72, 72, 72,
00844 72, 72
00845 };
00846
00847 static DfaState st41[42] = {
00848 72, 72, 51, 72, 72, 72, 72, 72, 72, 72,
00849 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00850 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00851 41, 41, 51, 72, 72, 72, 72, 72, 72, 72,
00852 72, 72
00853 };
00854
00855 static DfaState st42[42] = {
00856 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00857 72, 72, 72, 72, 72, 72, 72, 72, 52, 72,
00858 72, 52, 72, 72, 72, 72, 72, 72, 72, 72,
00859 53, 53, 72, 72, 72, 72, 72, 72, 72, 72,
00860 72, 72
00861 };
00862
00863 static DfaState st43[42] = {
00864 72, 72, 51, 72, 72, 72, 72, 72, 72, 72,
00865 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00866 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00867 54, 54, 51, 72, 72, 72, 72, 72, 72, 72,
00868 72, 72
00869 };
00870
00871 static DfaState st44[42] = {
00872 72, 72, 42, 72, 72, 72, 72, 72, 72, 72,
00873 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00874 72, 72, 72, 72, 72, 72, 72, 72, 72, 43,
00875 44, 44, 42, 72, 72, 72, 72, 72, 72, 72,
00876 72, 72
00877 };
00878
00879 static DfaState st45[42] = {
00880 72, 72, 42, 72, 72, 72, 72, 72, 72, 72,
00881 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00882 72, 72, 72, 72, 72, 72, 72, 72, 72, 43,
00883 45, 45, 42, 72, 72, 72, 72, 72, 72, 72,
00884 72, 72
00885 };
00886
00887 static DfaState st46[42] = {
00888 72, 46, 46, 46, 46, 46, 46, 46, 46, 46,
00889 46, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00890 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00891 46, 46, 46, 72, 72, 72, 72, 46, 46, 72,
00892 72, 72
00893 };
00894
00895 static DfaState st47[42] = {
00896 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00897 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00898 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00899 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00900 72, 72
00901 };
00902
00903 static DfaState st48[42] = {
00904 72, 33, 33, 33, 55, 33, 33, 33, 33, 33,
00905 33, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00906 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00907 33, 33, 33, 72, 72, 72, 72, 33, 33, 72,
00908 72, 72
00909 };
00910
00911 static DfaState st49[42] = {
00912 72, 33, 33, 33, 33, 33, 33, 33, 56, 33,
00913 33, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00914 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00915 33, 33, 33, 72, 72, 72, 72, 33, 33, 72,
00916 72, 72
00917 };
00918
00919 static DfaState st50[42] = {
00920 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00921 72, 72, 72, 72, 72, 72, 72, 50, 50, 72,
00922 72, 50, 50, 50, 50, 50, 72, 72, 72, 50,
00923 72, 72, 72, 72, 72, 72, 50, 72, 72, 72,
00924 72, 72
00925 };
00926
00927 static DfaState st51[42] = {
00928 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00929 72, 72, 72, 72, 72, 72, 72, 72, 57, 72,
00930 72, 57, 72, 72, 72, 72, 72, 72, 72, 72,
00931 58, 58, 72, 72, 72, 72, 72, 72, 72, 72,
00932 72, 72
00933 };
00934
00935 static DfaState st52[42] = {
00936 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00937 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00938 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00939 53, 53, 72, 72, 72, 72, 72, 72, 72, 72,
00940 72, 72
00941 };
00942
00943 static DfaState st53[42] = {
00944 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00945 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00946 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00947 53, 53, 72, 72, 72, 72, 72, 72, 72, 72,
00948 72, 72
00949 };
00950
00951 static DfaState st54[42] = {
00952 72, 72, 51, 72, 72, 72, 72, 72, 72, 72,
00953 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00954 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00955 54, 54, 51, 72, 72, 72, 72, 72, 72, 72,
00956 72, 72
00957 };
00958
00959 static DfaState st55[42] = {
00960 72, 33, 33, 33, 33, 33, 33, 33, 33, 33,
00961 33, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00962 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00963 33, 33, 33, 72, 72, 72, 72, 33, 33, 72,
00964 72, 72
00965 };
00966
00967 static DfaState st56[42] = {
00968 72, 33, 33, 33, 33, 33, 33, 33, 33, 59,
00969 33, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00970 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00971 33, 33, 33, 72, 72, 72, 72, 33, 33, 72,
00972 72, 72
00973 };
00974
00975 static DfaState st57[42] = {
00976 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00977 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00978 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00979 58, 58, 72, 72, 72, 72, 72, 72, 72, 72,
00980 72, 72
00981 };
00982
00983 static DfaState st58[42] = {
00984 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00985 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00986 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00987 58, 58, 72, 72, 72, 72, 72, 72, 72, 72,
00988 72, 72
00989 };
00990
00991 static DfaState st59[42] = {
00992 72, 60, 33, 33, 33, 33, 33, 33, 33, 33,
00993 33, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00994 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
00995 33, 33, 33, 72, 72, 72, 72, 33, 33, 72,
00996 72, 72
00997 };
00998
00999 static DfaState st60[42] = {
01000 72, 33, 33, 33, 33, 33, 33, 33, 33, 61,
01001 33, 72, 72, 72, 72, 72, 72, 72, 72, 72,
01002 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
01003 33, 33, 33, 72, 72, 72, 72, 33, 33, 72,
01004 72, 72
01005 };
01006
01007 static DfaState st61[42] = {
01008 72, 33, 33, 33, 33, 33, 33, 33, 33, 33,
01009 62, 72, 72, 72, 72, 72, 72, 72, 72, 72,
01010 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
01011 33, 33, 33, 72, 72, 72, 72, 33, 33, 72,
01012 72, 72
01013 };
01014
01015 static DfaState st62[42] = {
01016 72, 33, 33, 33, 33, 33, 33, 33, 33, 33,
01017 33, 72, 72, 72, 72, 72, 72, 72, 72, 72,
01018 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
01019 33, 33, 33, 72, 72, 72, 72, 33, 33, 72,
01020 72, 72
01021 };
01022
01023 static DfaState st63[5] = {
01024 64, 65, 66, 67, 72
01025 };
01026
01027 static DfaState st64[5] = {
01028 72, 72, 72, 72, 72
01029 };
01030
01031 static DfaState st65[5] = {
01032 72, 68, 72, 72, 72
01033 };
01034
01035 static DfaState st66[5] = {
01036 72, 72, 72, 72, 72
01037 };
01038
01039 static DfaState st67[5] = {
01040 72, 72, 72, 67, 72
01041 };
01042
01043 static DfaState st68[5] = {
01044 72, 72, 72, 72, 72
01045 };
01046
01047 static DfaState st69[3] = {
01048 70, 71, 72
01049 };
01050
01051 static DfaState st70[3] = {
01052 72, 72, 72
01053 };
01054
01055 static DfaState st71[3] = {
01056 72, 72, 72
01057 };
01058
01059
01060 DfaState *dfa[72] = {
01061 st0,
01062 st1,
01063 st2,
01064 st3,
01065 st4,
01066 st5,
01067 st6,
01068 st7,
01069 st8,
01070 st9,
01071 st10,
01072 st11,
01073 st12,
01074 st13,
01075 st14,
01076 st15,
01077 st16,
01078 st17,
01079 st18,
01080 st19,
01081 st20,
01082 st21,
01083 st22,
01084 st23,
01085 st24,
01086 st25,
01087 st26,
01088 st27,
01089 st28,
01090 st29,
01091 st30,
01092 st31,
01093 st32,
01094 st33,
01095 st34,
01096 st35,
01097 st36,
01098 st37,
01099 st38,
01100 st39,
01101 st40,
01102 st41,
01103 st42,
01104 st43,
01105 st44,
01106 st45,
01107 st46,
01108 st47,
01109 st48,
01110 st49,
01111 st50,
01112 st51,
01113 st52,
01114 st53,
01115 st54,
01116 st55,
01117 st56,
01118 st57,
01119 st58,
01120 st59,
01121 st60,
01122 st61,
01123 st62,
01124 st63,
01125 st64,
01126 st65,
01127 st66,
01128 st67,
01129 st68,
01130 st69,
01131 st70,
01132 st71
01133 };
01134
01135
01136 DfaState accepts[73] = {
01137 0, 1, 32, 32, 32, 4, 5, 6, 7, 8,
01138 9, 12, 16, 13, 14, 15, 17, 18, 19, 20,
01139 21, 22, 23, 24, 25, 26, 33, 29, 30, 30,
01140 31, 34, 35, 32, 32, 32, 10, 11, 31, 31,
01141 31, 27, 0, 27, 25, 0, 33, 30, 32, 32,
01142 31, 0, 0, 28, 27, 2, 32, 0, 27, 32,
01143 32, 32, 3, 0, 36, 38, 39, 40, 37, 0,
01144 41, 42, 0
01145 };
01146
01147 void (*actions[43])() = {
01148 zzerraction,
01149 act1,
01150 act2,
01151 act3,
01152 act4,
01153 act5,
01154 act6,
01155 act7,
01156 act8,
01157 act9,
01158 act10,
01159 act11,
01160 act12,
01161 act13,
01162 act14,
01163 act15,
01164 act16,
01165 act17,
01166 act18,
01167 act19,
01168 act20,
01169 act21,
01170 act22,
01171 act23,
01172 act24,
01173 act25,
01174 act26,
01175 act27,
01176 act28,
01177 act29,
01178 act30,
01179 act31,
01180 act32,
01181 act33,
01182 act34,
01183 act35,
01184 act36,
01185 act37,
01186 act38,
01187 act39,
01188 act40,
01189 act41,
01190 act42
01191 };
01192
01193 static DfaState dfa_base[] = {
01194 0,
01195 63,
01196 69
01197 };
01198
01199 static unsigned char *b_class_no[] = {
01200 shift0,
01201 shift1,
01202 shift2
01203 };
01204
01205 #define ZZINTERACTIVE
01206
01207 static unsigned char zzalternatives[DfaStates+1] = {
01208 1,
01209 0,
01210 1,
01211 1,
01212 1,
01213 0,
01214 0,
01215 0,
01216 0,
01217 0,
01218 0,
01219 1,
01220 1,
01221 0,
01222 0,
01223 1,
01224 1,
01225 1,
01226 1,
01227 1,
01228 0,
01229 0,
01230 0,
01231 1,
01232 1,
01233 1,
01234 1,
01235 1,
01236 1,
01237 0,
01238 1,
01239 0,
01240 0,
01241 1,
01242 1,
01243 1,
01244 1,
01245 1,
01246 1,
01247 1,
01248 1,
01249 1,
01250 1,
01251 1,
01252 1,
01253 1,
01254 1,
01255 0,
01256 1,
01257 1,
01258 1,
01259 1,
01260 1,
01261 1,
01262 1,
01263 1,
01264 1,
01265 1,
01266 1,
01267 1,
01268 1,
01269 1,
01270 1,
01271 1,
01272 0,
01273 1,
01274 0,
01275 1,
01276 0,
01277 1,
01278 0,
01279 0,
01280
01281 0
01282 };
01283
01284
01285
01286 #define ZZSHIFT(c) (b_class_no[zzauto][1+c])
01287 #define MAX_MODE 3
01288 #include "dlgauto.h"