/* A recursive-descent parser generated by peg 0.1.20 */ #include #include #include #define YYRULECOUNT 47 #ifndef YY_MALLOC #define YY_MALLOC(C, N) malloc(N) #endif #ifndef YY_REALLOC #define YY_REALLOC(C, P, N) realloc(P, N) #endif #ifndef YY_FREE #define YY_FREE(C, P) free(P) #endif #ifndef YY_LOCAL #define YY_LOCAL(T) static T #endif #ifndef YY_ACTION #define YY_ACTION(T) static T #endif #ifndef YY_RULE #define YY_RULE(T) static T #endif #ifndef YY_PARSE #define YY_PARSE(T) T #endif #ifndef YYPARSE #define YYPARSE yyparse #endif #ifndef YYPARSEFROM_R #define YYPARSEFROM_R yyparsefrom_r #endif #ifndef YYPARSEFROM #define YYPARSEFROM yyparsefrom #endif #ifndef YYRELEASE #define YYRELEASE yyrelease #endif #ifndef YY_BEGIN #define YY_BEGIN ( yy->__begin= yy->__pos, 1) #endif #ifndef YY_END #define YY_END ( yy->__end= yy->__pos, 1) #endif #ifdef YY_DEBUG # define yyprintf(args) fprintf args #else # define yyprintf(args) #endif #ifndef YYSTYPE #define YYSTYPE int #endif #ifndef YY_STACK_SIZE #define YY_STACK_SIZE 128 #endif #ifndef YY_BUFFER_SIZE #define YY_BUFFER_SIZE 1024 #endif #ifndef YY_PART typedef struct _yycontext yycontext; typedef void (*yyaction)(yycontext *yy, char *yytext, int yyleng); typedef struct _yythunk { int begin, end; yyaction action; struct _yythunk *next; } yythunk; struct _yycontext { char *__buf; int __buflen; int __pos; int __limit; char *__text; int __textlen; int __begin; int __end; int __textmax; yythunk *__thunks; int __thunkslen; int __thunkpos; YYSTYPE __; YYSTYPE *__val; YYSTYPE *__vals; int __valslen; #ifdef YY_CTX_MEMBERS YY_CTX_MEMBERS #endif }; #ifdef YY_CTX_LOCAL #define YY_CTX_PARAM_ yycontext *yyctx, #define YY_CTX_PARAM yycontext *yyctx #define YY_CTX_ARG_ yyctx, #define YY_CTX_ARG yyctx #ifndef YY_INPUT #define YY_INPUT(yy, buf, result, max_size) \ { \ int yyc= getchar(); \ result= (EOF == yyc) ? 0 : (*(buf)= yyc, 1); \ yyprintf((stderr, "<%c>", yyc)); \ } #endif #else #define YY_CTX_PARAM_ #define YY_CTX_PARAM #define YY_CTX_ARG_ #define YY_CTX_ARG yycontext _yyctx= { 0, 0 }; yycontext *yyctx= &_yyctx; #ifndef YY_INPUT #define YY_INPUT(buf, result, max_size) \ { \ int yyc= getchar(); \ result= (EOF == yyc) ? 0 : (*(buf)= yyc, 1); \ yyprintf((stderr, "<%c>", yyc)); \ } #endif #endif YY_LOCAL(int) yyrefill(yycontext *yy) { int yyn; while (yy->__buflen - yy->__pos < 512) { yy->__buflen *= 2; yy->__buf= (char *)YY_REALLOC(yy, yy->__buf, yy->__buflen); } #ifdef YY_CTX_LOCAL YY_INPUT(yy, (yy->__buf + yy->__pos), yyn, (yy->__buflen - yy->__pos)); #else YY_INPUT((yy->__buf + yy->__pos), yyn, (yy->__buflen - yy->__pos)); #endif if (!yyn) return 0; yy->__limit += yyn; return 1; } YY_LOCAL(int) yymatchDot(yycontext *yy) { if (yy->__pos >= yy->__limit && !yyrefill(yy)) return 0; ++yy->__pos; return 1; } YY_LOCAL(int) yymatchChar(yycontext *yy, int c) { if (yy->__pos >= yy->__limit && !yyrefill(yy)) return 0; if ((unsigned char)yy->__buf[yy->__pos] == c) { ++yy->__pos; yyprintf((stderr, " ok yymatchChar(yy, %c) @ %s\n", c, yy->__buf+yy->__pos)); return 1; } yyprintf((stderr, " fail yymatchChar(yy, %c) @ %s\n", c, yy->__buf+yy->__pos)); return 0; } YY_LOCAL(int) yymatchString(yycontext *yy, const char *s) { int yysav= yy->__pos; while (*s) { if (yy->__pos >= yy->__limit && !yyrefill(yy)) return 0; if (yy->__buf[yy->__pos] != *s) { yy->__pos= yysav; return 0; } ++s; ++yy->__pos; } return 1; } YY_LOCAL(int) yymatchClass(yycontext *yy, unsigned char *bits) { int c; if (yy->__pos >= yy->__limit && !yyrefill(yy)) return 0; c= (unsigned char)yy->__buf[yy->__pos]; if (bits[c >> 3] & (1 << (c & 7))) { ++yy->__pos; yyprintf((stderr, " ok yymatchClass @ %s\n", yy->__buf+yy->__pos)); return 1; } yyprintf((stderr, " fail yymatchClass @ %s\n", yy->__buf+yy->__pos)); return 0; } YY_LOCAL(void) yyDo(yycontext *yy, yyaction action, int begin, int end) { while (yy->__thunkpos >= yy->__thunkslen) { yy->__thunkslen *= 2; yy->__thunks= (yythunk *)YY_REALLOC(yy, yy->__thunks, sizeof(yythunk) * yy->__thunkslen); } yy->__thunks[yy->__thunkpos].begin= begin; yy->__thunks[yy->__thunkpos].end= end; yy->__thunks[yy->__thunkpos].action= action; ++yy->__thunkpos; } YY_LOCAL(int) yyText(yycontext *yy, int begin, int end) { int yyleng= end - begin; if (yyleng <= 0) yyleng= 0; else { while (yy->__textlen < (yyleng + 1)) { yy->__textlen *= 2; yy->__text= (char *)YY_REALLOC(yy, yy->__text, yy->__textlen); } memcpy(yy->__text, yy->__buf + begin, yyleng); } yy->__text[yyleng]= '\0'; return yyleng; } YY_LOCAL(void) yyDone(yycontext *yy, int yythunkpos) { int pos; for (pos= yythunkpos; pos < yy->__thunkpos; ++pos) { yythunk *thunk= &yy->__thunks[pos]; int yyleng= thunk->end ? yyText(yy, thunk->begin, thunk->end) : thunk->begin; yyprintf((stderr, "DO [%d] %p %s\n", pos, thunk->action, yy->__text)); thunk->action(yy, yy->__text, yyleng); } yy->__thunkpos= 0; } YY_LOCAL(void) yyCommit(yycontext *yy) { if ((yy->__limit -= yy->__pos)) { memmove(yy->__buf, yy->__buf + yy->__pos, yy->__limit); } yy->__begin -= yy->__pos; yy->__end -= yy->__pos; yy->__pos= yy->__thunkpos= 0; } YY_LOCAL(int) yyAccept(yycontext *yy, int tp0) { if (tp0) { fprintf(stderr, "accept denied at %d\n", tp0); return 0; } else { yyDone(yy, 0); yyCommit(yy); } return 1; } YY_LOCAL(void) yyPush(yycontext *yy, char *text, int count) { yy->__val += count; while (yy->__valslen <= yy->__val - yy->__vals) { long offset= yy->__val - yy->__vals; yy->__valslen *= 2; yy->__vals= (YYSTYPE *)YY_REALLOC(yy, yy->__vals, sizeof(YYSTYPE) * yy->__valslen); yy->__val= yy->__vals + offset; } } YY_LOCAL(void) yyPop(yycontext *yy, char *text, int count) { yy->__val -= count; } YY_LOCAL(void) yySet(yycontext *yy, char *text, int count) { yy->__val[count]= yy->__; } #endif /* YY_PART */ #define YYACCEPT yyAccept(yy, yythunkpos0) #define yyEnter(YY, N) yyPush(YY, 0, N) #define yyLeave(YY, N) yyPop (YY, 0, N) YY_RULE(int) yy_EscapedPCRE(yycontext *yy); /* 47 */ YY_RULE(int) yy_PCRE(yycontext *yy); /* 46 */ YY_RULE(int) yy_Value(yycontext *yy); /* 45 */ YY_RULE(int) yy_ValueList(yycontext *yy); /* 44 */ YY_RULE(int) yy_Digit(yycontext *yy); /* 43 */ YY_RULE(int) yy_Iccprofile(yycontext *yy); /* 42 */ YY_RULE(int) yy_Datetime(yycontext *yy); /* 41 */ YY_RULE(int) yy_ValueReference(yycontext *yy); /* 40 */ YY_RULE(int) yy_Dot(yycontext *yy); /* 39 */ YY_RULE(int) yy_OptDepends(yycontext *yy); /* 38 */ YY_RULE(int) yy_IfDepends(yycontext *yy); /* 37 */ YY_RULE(int) yy_Space(yycontext *yy); /* 36 */ YY_RULE(int) yy_TagReference(yycontext *yy); /* 35 */ YY_RULE(int) yy_Content(yycontext *yy); /* 34 */ YY_RULE(int) yy_Requirements(yycontext *yy); /* 33 */ YY_RULE(int) yy_Semicolon(yycontext *yy); /* 32 */ YY_RULE(int) yy_Tag(yycontext *yy); /* 31 */ YY_RULE(int) yy_Colon(yycontext *yy); /* 30 */ YY_RULE(int) yy_PrintableAscii(yycontext *yy); /* 29 */ YY_RULE(int) yy_FullAscii(yycontext *yy); /* 28 */ YY_RULE(int) yy_RegEx(yycontext *yy); /* 27 */ YY_RULE(int) yy_NTupel(yycontext *yy); /* 26 */ YY_RULE(int) yy_Number(yycontext *yy); /* 25 */ YY_RULE(int) yy_Only(yycontext *yy); /* 24 */ YY_RULE(int) yy_Range(yycontext *yy); /* 23 */ YY_RULE(int) yy_Any(yycontext *yy); /* 22 */ YY_RULE(int) yy_LogicalOrListElement(yycontext *yy); /* 21 */ YY_RULE(int) yy_LogicalOrClose(yycontext *yy); /* 20 */ YY_RULE(int) yy_LogicalOrList(yycontext *yy); /* 19 */ YY_RULE(int) yy_LogicalOrOpen(yycontext *yy); /* 18 */ YY_RULE(int) yy_LogicalOr(yycontext *yy); /* 17 */ YY_RULE(int) yy_Mode(yycontext *yy); /* 16 */ YY_RULE(int) yy_Subpath(yycontext *yy); /* 15 */ YY_RULE(int) yy_SlashorBackslash(yycontext *yy); /* 14 */ YY_RULE(int) yy_ClosingBracket(yycontext *yy); /* 13 */ YY_RULE(int) yy_Path(yycontext *yy); /* 12 */ YY_RULE(int) yy_OpenBracket(yycontext *yy); /* 11 */ YY_RULE(int) yy_SpaceLine(yycontext *yy); /* 10 */ YY_RULE(int) yy_CommentLine(yycontext *yy); /* 9 */ YY_RULE(int) yy_IncludeLine(yycontext *yy); /* 8 */ YY_RULE(int) yy_ModeLine(yycontext *yy); /* 7 */ YY_RULE(int) yy_TagLine(yycontext *yy); /* 6 */ YY_RULE(int) yy_EndOfLine(yycontext *yy); /* 5 */ YY_RULE(int) yy_LineType(yycontext *yy); /* 4 */ YY_RULE(int) yy_EndOfFile(yycontext *yy); /* 3 */ YY_RULE(int) yy_Line(yycontext *yy); /* 2 */ YY_RULE(int) yy_start(yycontext *yy); /* 1 */ YY_ACTION(void) yy_1_EndOfLine(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_EndOfLine\n")); { incrlineno();; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_RegEx(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_RegEx\n")); { regex_push ( yytext ); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_Only(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_Only\n")); { ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_6_ValueReference(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_6_ValueReference\n")); { parser_state.any_reference = only_ref; ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_5_ValueReference(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_5_ValueReference\n")); { parser_state.any_reference = ntupel_ref; ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_4_ValueReference(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_4_ValueReference\n")); { parser_state.any_reference = range_ref; ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_3_ValueReference(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_3_ValueReference\n")); { parser_state.any_reference = regex_ref; ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_2_ValueReference(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_2_ValueReference\n")); { parser_state.any_reference = only_ref; i_push(atoul(yytext) );; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_ValueReference(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_ValueReference\n")); { parser_state.any_reference = any_ref; ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_NTupel(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_NTupel\n")); { unsigned int v=parser_state.valuelist; i_push(v); reset_valuelist(); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_Value(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_Value\n")); { incr_values(); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_3_Number(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_3_Number\n")); { i_push(atoul(yytext) );; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_2_Number(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_2_Number\n")); { i_push((unsigned long)2 <__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_Number\n")); { i_push(strtoul(yytext, NULL, 16) ); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_9_Content(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_9_Content\n")); { v_push( iccprofile ); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_8_Content(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_8_Content\n")); { v_push( datetime ); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_7_Content(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_7_Content\n")); { v_push( full_ascii ); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_6_Content(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_6_Content\n")); { v_push( printable_ascii ); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_5_Content(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_5_Content\n")); { v_push( regex ); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_4_Content(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_4_Content\n")); { v_push( ntupel ); reset_valuelist() ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_3_Content(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_3_Content\n")); { v_push( only ); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_2_Content(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_2_Content\n")); { v_push( range); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_Content(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_Content\n")); { v_push( any ); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_4_Requirements(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_4_Requirements\n")); { set_optional(); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_3_Requirements(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_3_Requirements\n")); { set_optdepends(); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_2_Requirements(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_2_Requirements\n")); { set_ifdepends(); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_Requirements(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_Requirements\n")); { set_mandatory(); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_TagReference(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_TagReference\n")); { unsigned int tag = i_pop(); if (tag < 254) set_parse_error("wrong tagreference (should be >253)", yytext); else if (tag > 65535) set_parse_error("wrong tagreference (should be <65536)", yytext); else settagref( tag ); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_Tag(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_Tag\n")); { unsigned int tag = i_pop(); /* rule_tagorder_in_dsl( tag ); */ if (tag < 254) set_parse_error("wrong tag (should be >253)", yytext); else if (tag > 65535) set_parse_error("wrong tag (should be <65536)", yytext); else settag( tag ); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_2_TagLine(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_2_TagLine\n")); { set_rule_logical_close(); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_TagLine(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_TagLine\n")); { rule_addtag_config(); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_5_Mode(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_5_Mode\n")); { i_push(mode_enable_deep_geotiff_checks); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_4_Mode(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_4_Mode\n")); { i_push(mode_enable_ifd_checks); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_3_Mode(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_3_Mode\n")); { i_push(mode_enable_offset_checks); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_2_Mode(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_2_Mode\n")); { i_push(mode_enable_type_checks); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_Mode(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_Mode\n")); { i_push(mode_baseline ); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_8_LogicalOrListElement(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_8_LogicalOrListElement\n")); { v_push( printable_ascii ); incr_logical_elements();; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_7_LogicalOrListElement(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_7_LogicalOrListElement\n")); { v_push( full_ascii); incr_logical_elements();; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_6_LogicalOrListElement(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_6_LogicalOrListElement\n")); { v_push( regex ); incr_logical_elements();; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_5_LogicalOrListElement(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_5_LogicalOrListElement\n")); { v_push( ntupel); incr_logical_elements();; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_4_LogicalOrListElement(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_4_LogicalOrListElement\n")); { v_push( only ); incr_logical_elements();; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_3_LogicalOrListElement(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_3_LogicalOrListElement\n")); { v_push( only ); incr_logical_elements();; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_2_LogicalOrListElement(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_2_LogicalOrListElement\n")); { v_push( range); incr_logical_elements();; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_LogicalOrListElement(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_LogicalOrListElement\n")); { v_push( any ); incr_logical_elements();; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_LogicalOrClose(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_LogicalOrClose\n")); { ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_LogicalOrOpen(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_LogicalOrOpen\n")); { set_rule_logical_open();; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_ModeLine(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_ModeLine\n")); { unsigned int i = i_pop(); set_mode( i ); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_IncludeLine(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_IncludeLine\n")); { set_include ( yytext ); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_CommentLine(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_CommentLine\n")); { commentline(); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_Line(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_Line\n")); { fprintf(stderr, "grammar parser error at line %i (error at '%s')\n", parser_state.lineno-1, yytext); exit(EXIT_FAILURE); ; } #undef yythunkpos #undef yypos #undef yy } YY_RULE(int) yy_EscapedPCRE(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "EscapedPCRE")); { int yypos2= yy->__pos, yythunkpos2= yy->__thunkpos; if (!yymatchChar(yy, '\\')) goto l3; if (!yymatchChar(yy, '\\')) goto l3; goto l2; l3:; yy->__pos= yypos2; yy->__thunkpos= yythunkpos2; if (!yymatchChar(yy, '\\')) goto l1; if (!yymatchChar(yy, '"')) goto l1; } l2:; yyprintf((stderr, " ok %s @ %s\n", "EscapedPCRE", yy->__buf+yy->__pos)); return 1; l1:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "EscapedPCRE", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_PCRE(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "PCRE")); { int yypos5= yy->__pos, yythunkpos5= yy->__thunkpos; if (!yy_EscapedPCRE(yy)) goto l6; goto l5; l6:; yy->__pos= yypos5; yy->__thunkpos= yythunkpos5; if (!yymatchClass(yy, (unsigned char *)"\377\377\377\377\373\377\377\377\377\377\377\357\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377")) goto l4; } l5:; yyprintf((stderr, " ok %s @ %s\n", "PCRE", yy->__buf+yy->__pos)); return 1; l4:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "PCRE", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Value(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Value")); if (!yy_Number(yy)) goto l7; yyDo(yy, yy_1_Value, yy->__begin, yy->__end); yyprintf((stderr, " ok %s @ %s\n", "Value", yy->__buf+yy->__pos)); return 1; l7:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Value", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_ValueList(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "ValueList")); if (!yy_Value(yy)) goto l8; l9:; { int yypos10= yy->__pos, yythunkpos10= yy->__thunkpos; if (!yy_Colon(yy)) goto l10; if (!yy_Value(yy)) goto l10; goto l9; l10:; yy->__pos= yypos10; yy->__thunkpos= yythunkpos10; } yyprintf((stderr, " ok %s @ %s\n", "ValueList", yy->__buf+yy->__pos)); return 1; l8:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "ValueList", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Digit(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Digit")); if (!yymatchClass(yy, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l11; yyprintf((stderr, " ok %s @ %s\n", "Digit", yy->__buf+yy->__pos)); return 1; l11:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Digit", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Iccprofile(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Iccprofile")); if (!yymatchString(yy, "iccprofile")) goto l12; yyprintf((stderr, " ok %s @ %s\n", "Iccprofile", yy->__buf+yy->__pos)); return 1; l12:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Iccprofile", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Datetime(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Datetime")); if (!yymatchString(yy, "datetime")) goto l13; yyprintf((stderr, " ok %s @ %s\n", "Datetime", yy->__buf+yy->__pos)); return 1; l13:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Datetime", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_ValueReference(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "ValueReference")); { int yypos15= yy->__pos, yythunkpos15= yy->__thunkpos; if (!yy_Any(yy)) goto l16; yyDo(yy, yy_1_ValueReference, yy->__begin, yy->__end); goto l15; l16:; yy->__pos= yypos15; yy->__thunkpos= yythunkpos15; if (!yy_Number(yy)) goto l17; yyDo(yy, yy_2_ValueReference, yy->__begin, yy->__end); goto l15; l17:; yy->__pos= yypos15; yy->__thunkpos= yythunkpos15; if (!yy_RegEx(yy)) goto l18; yyDo(yy, yy_3_ValueReference, yy->__begin, yy->__end); goto l15; l18:; yy->__pos= yypos15; yy->__thunkpos= yythunkpos15; if (!yy_Range(yy)) goto l19; yyDo(yy, yy_4_ValueReference, yy->__begin, yy->__end); goto l15; l19:; yy->__pos= yypos15; yy->__thunkpos= yythunkpos15; if (!yy_NTupel(yy)) goto l20; yyDo(yy, yy_5_ValueReference, yy->__begin, yy->__end); goto l15; l20:; yy->__pos= yypos15; yy->__thunkpos= yythunkpos15; if (!yy_Only(yy)) goto l14; yyDo(yy, yy_6_ValueReference, yy->__begin, yy->__end); } l15:; yyprintf((stderr, " ok %s @ %s\n", "ValueReference", yy->__buf+yy->__pos)); return 1; l14:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "ValueReference", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Dot(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Dot")); if (!yymatchChar(yy, '.')) goto l21; l22:; { int yypos23= yy->__pos, yythunkpos23= yy->__thunkpos; if (!yy_Space(yy)) goto l23; goto l22; l23:; yy->__pos= yypos23; yy->__thunkpos= yythunkpos23; } yyprintf((stderr, " ok %s @ %s\n", "Dot", yy->__buf+yy->__pos)); return 1; l21:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Dot", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_OptDepends(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "OptDepends")); if (!yymatchString(yy, "optdepends")) goto l24; if (!yy_OpenBracket(yy)) goto l24; if (!yy_TagReference(yy)) goto l24; if (!yy_Dot(yy)) goto l24; if (!yy_ValueReference(yy)) goto l24; if (!yy_ClosingBracket(yy)) goto l24; yyprintf((stderr, " ok %s @ %s\n", "OptDepends", yy->__buf+yy->__pos)); return 1; l24:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "OptDepends", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_IfDepends(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "IfDepends")); if (!yymatchString(yy, "depends")) goto l25; if (!yy_OpenBracket(yy)) goto l25; if (!yy_TagReference(yy)) goto l25; if (!yy_Dot(yy)) goto l25; if (!yy_ValueReference(yy)) goto l25; if (!yy_ClosingBracket(yy)) goto l25; yyprintf((stderr, " ok %s @ %s\n", "IfDepends", yy->__buf+yy->__pos)); return 1; l25:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "IfDepends", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Space(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Space")); { int yypos27= yy->__pos, yythunkpos27= yy->__thunkpos; if (!yymatchChar(yy, ' ')) goto l28; goto l27; l28:; yy->__pos= yypos27; yy->__thunkpos= yythunkpos27; if (!yymatchChar(yy, '\t')) goto l26; } l27:; yyprintf((stderr, " ok %s @ %s\n", "Space", yy->__buf+yy->__pos)); return 1; l26:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Space", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_TagReference(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "TagReference")); yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_BEGIN)) goto l29; #undef yytext #undef yyleng } if (!yy_Number(yy)) goto l29; yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_END)) goto l29; #undef yytext #undef yyleng } yyDo(yy, yy_1_TagReference, yy->__begin, yy->__end); yyprintf((stderr, " ok %s @ %s\n", "TagReference", yy->__buf+yy->__pos)); return 1; l29:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "TagReference", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Content(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Content")); { int yypos31= yy->__pos, yythunkpos31= yy->__thunkpos; if (!yy_Any(yy)) goto l32; yyDo(yy, yy_1_Content, yy->__begin, yy->__end); goto l31; l32:; yy->__pos= yypos31; yy->__thunkpos= yythunkpos31; if (!yy_Range(yy)) goto l33; yyDo(yy, yy_2_Content, yy->__begin, yy->__end); goto l31; l33:; yy->__pos= yypos31; yy->__thunkpos= yythunkpos31; if (!yy_Only(yy)) goto l34; yyDo(yy, yy_3_Content, yy->__begin, yy->__end); goto l31; l34:; yy->__pos= yypos31; yy->__thunkpos= yythunkpos31; if (!yy_NTupel(yy)) goto l35; yyDo(yy, yy_4_Content, yy->__begin, yy->__end); goto l31; l35:; yy->__pos= yypos31; yy->__thunkpos= yythunkpos31; if (!yy_RegEx(yy)) goto l36; yyDo(yy, yy_5_Content, yy->__begin, yy->__end); goto l31; l36:; yy->__pos= yypos31; yy->__thunkpos= yythunkpos31; if (!yy_PrintableAscii(yy)) goto l37; yyDo(yy, yy_6_Content, yy->__begin, yy->__end); goto l31; l37:; yy->__pos= yypos31; yy->__thunkpos= yythunkpos31; if (!yy_FullAscii(yy)) goto l38; yyDo(yy, yy_7_Content, yy->__begin, yy->__end); goto l31; l38:; yy->__pos= yypos31; yy->__thunkpos= yythunkpos31; if (!yy_Datetime(yy)) goto l39; yyDo(yy, yy_8_Content, yy->__begin, yy->__end); goto l31; l39:; yy->__pos= yypos31; yy->__thunkpos= yythunkpos31; if (!yy_Iccprofile(yy)) goto l30; yyDo(yy, yy_9_Content, yy->__begin, yy->__end); } l31:; yyprintf((stderr, " ok %s @ %s\n", "Content", yy->__buf+yy->__pos)); return 1; l30:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Content", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Requirements(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Requirements")); { int yypos41= yy->__pos, yythunkpos41= yy->__thunkpos; if (!yymatchString(yy, "mandatory")) goto l42; yyDo(yy, yy_1_Requirements, yy->__begin, yy->__end); goto l41; l42:; yy->__pos= yypos41; yy->__thunkpos= yythunkpos41; if (!yy_IfDepends(yy)) goto l43; yyDo(yy, yy_2_Requirements, yy->__begin, yy->__end); goto l41; l43:; yy->__pos= yypos41; yy->__thunkpos= yythunkpos41; if (!yy_OptDepends(yy)) goto l44; yyDo(yy, yy_3_Requirements, yy->__begin, yy->__end); goto l41; l44:; yy->__pos= yypos41; yy->__thunkpos= yythunkpos41; if (!yymatchString(yy, "optional")) goto l40; yyDo(yy, yy_4_Requirements, yy->__begin, yy->__end); } l41:; yyprintf((stderr, " ok %s @ %s\n", "Requirements", yy->__buf+yy->__pos)); return 1; l40:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Requirements", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Semicolon(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Semicolon")); if (!yymatchChar(yy, ';')) goto l45; l46:; { int yypos47= yy->__pos, yythunkpos47= yy->__thunkpos; if (!yy_Space(yy)) goto l47; goto l46; l47:; yy->__pos= yypos47; yy->__thunkpos= yythunkpos47; } yyprintf((stderr, " ok %s @ %s\n", "Semicolon", yy->__buf+yy->__pos)); return 1; l45:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Semicolon", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Tag(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Tag")); yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_BEGIN)) goto l48; #undef yytext #undef yyleng } if (!yy_Number(yy)) goto l48; yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_END)) goto l48; #undef yytext #undef yyleng } yyDo(yy, yy_1_Tag, yy->__begin, yy->__end); yyprintf((stderr, " ok %s @ %s\n", "Tag", yy->__buf+yy->__pos)); return 1; l48:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Tag", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Colon(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Colon")); if (!yymatchChar(yy, ',')) goto l49; l50:; { int yypos51= yy->__pos, yythunkpos51= yy->__thunkpos; if (!yy_Space(yy)) goto l51; goto l50; l51:; yy->__pos= yypos51; yy->__thunkpos= yythunkpos51; } yyprintf((stderr, " ok %s @ %s\n", "Colon", yy->__buf+yy->__pos)); return 1; l49:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Colon", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_PrintableAscii(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "PrintableAscii")); if (!yymatchString(yy, "printascii")) goto l52; yyprintf((stderr, " ok %s @ %s\n", "PrintableAscii", yy->__buf+yy->__pos)); return 1; l52:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "PrintableAscii", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_FullAscii(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "FullAscii")); if (!yymatchString(yy, "fullascii")) goto l53; yyprintf((stderr, " ok %s @ %s\n", "FullAscii", yy->__buf+yy->__pos)); return 1; l53:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "FullAscii", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_RegEx(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "RegEx")); if (!yymatchString(yy, "regex")) goto l54; if (!yy_OpenBracket(yy)) goto l54; if (!yymatchChar(yy, '"')) goto l54; yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_BEGIN)) goto l54; #undef yytext #undef yyleng } l55:; { int yypos56= yy->__pos, yythunkpos56= yy->__thunkpos; if (!yy_PCRE(yy)) goto l56; goto l55; l56:; yy->__pos= yypos56; yy->__thunkpos= yythunkpos56; } yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_END)) goto l54; #undef yytext #undef yyleng } if (!yymatchChar(yy, '"')) goto l54; if (!yy_ClosingBracket(yy)) goto l54; yyDo(yy, yy_1_RegEx, yy->__begin, yy->__end); yyprintf((stderr, " ok %s @ %s\n", "RegEx", yy->__buf+yy->__pos)); return 1; l54:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "RegEx", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_NTupel(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "NTupel")); if (!yymatchString(yy, "ntupel")) goto l57; if (!yy_OpenBracket(yy)) goto l57; if (!yy_ValueList(yy)) goto l57; if (!yy_ClosingBracket(yy)) goto l57; yyDo(yy, yy_1_NTupel, yy->__begin, yy->__end); yyprintf((stderr, " ok %s @ %s\n", "NTupel", yy->__buf+yy->__pos)); return 1; l57:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "NTupel", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Number(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Number")); { int yypos59= yy->__pos, yythunkpos59= yy->__thunkpos; yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_BEGIN)) goto l60; #undef yytext #undef yyleng } if (!yymatchString(yy, "0x")) goto l60; if (!yymatchClass(yy, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\176\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l60; l61:; { int yypos62= yy->__pos, yythunkpos62= yy->__thunkpos; if (!yymatchClass(yy, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\176\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l62; goto l61; l62:; yy->__pos= yypos62; yy->__thunkpos= yythunkpos62; } yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_END)) goto l60; #undef yytext #undef yyleng } yyDo(yy, yy_1_Number, yy->__begin, yy->__end); goto l59; l60:; yy->__pos= yypos59; yy->__thunkpos= yythunkpos59; if (!yymatchString(yy, "2^")) goto l63; yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_BEGIN)) goto l63; #undef yytext #undef yyleng } if (!yy_Digit(yy)) goto l63; l64:; { int yypos65= yy->__pos, yythunkpos65= yy->__thunkpos; if (!yy_Digit(yy)) goto l65; goto l64; l65:; yy->__pos= yypos65; yy->__thunkpos= yythunkpos65; } yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_END)) goto l63; #undef yytext #undef yyleng } yyDo(yy, yy_2_Number, yy->__begin, yy->__end); goto l59; l63:; yy->__pos= yypos59; yy->__thunkpos= yythunkpos59; yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_BEGIN)) goto l58; #undef yytext #undef yyleng } if (!yy_Digit(yy)) goto l58; l66:; { int yypos67= yy->__pos, yythunkpos67= yy->__thunkpos; if (!yy_Digit(yy)) goto l67; goto l66; l67:; yy->__pos= yypos67; yy->__thunkpos= yythunkpos67; } yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_END)) goto l58; #undef yytext #undef yyleng } yyDo(yy, yy_3_Number, yy->__begin, yy->__end); } l59:; yyprintf((stderr, " ok %s @ %s\n", "Number", yy->__buf+yy->__pos)); return 1; l58:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Number", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Only(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Only")); if (!yymatchString(yy, "only")) goto l68; if (!yy_OpenBracket(yy)) goto l68; if (!yy_Number(yy)) goto l68; if (!yy_ClosingBracket(yy)) goto l68; yyDo(yy, yy_1_Only, yy->__begin, yy->__end); yyprintf((stderr, " ok %s @ %s\n", "Only", yy->__buf+yy->__pos)); return 1; l68:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Only", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Range(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Range")); if (!yymatchString(yy, "range")) goto l69; if (!yy_OpenBracket(yy)) goto l69; if (!yy_Number(yy)) goto l69; if (!yy_Colon(yy)) goto l69; if (!yy_Number(yy)) goto l69; if (!yy_ClosingBracket(yy)) goto l69; yyprintf((stderr, " ok %s @ %s\n", "Range", yy->__buf+yy->__pos)); return 1; l69:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Range", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Any(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Any")); if (!yymatchString(yy, "any")) goto l70; yyprintf((stderr, " ok %s @ %s\n", "Any", yy->__buf+yy->__pos)); return 1; l70:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Any", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_LogicalOrListElement(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "LogicalOrListElement")); { int yypos72= yy->__pos, yythunkpos72= yy->__thunkpos; if (!yy_Any(yy)) goto l73; yyDo(yy, yy_1_LogicalOrListElement, yy->__begin, yy->__end); goto l72; l73:; yy->__pos= yypos72; yy->__thunkpos= yythunkpos72; if (!yy_Range(yy)) goto l74; yyDo(yy, yy_2_LogicalOrListElement, yy->__begin, yy->__end); goto l72; l74:; yy->__pos= yypos72; yy->__thunkpos= yythunkpos72; if (!yy_Only(yy)) goto l75; yyDo(yy, yy_3_LogicalOrListElement, yy->__begin, yy->__end); goto l72; l75:; yy->__pos= yypos72; yy->__thunkpos= yythunkpos72; if (!yy_Number(yy)) goto l76; yyDo(yy, yy_4_LogicalOrListElement, yy->__begin, yy->__end); goto l72; l76:; yy->__pos= yypos72; yy->__thunkpos= yythunkpos72; if (!yy_NTupel(yy)) goto l77; yyDo(yy, yy_5_LogicalOrListElement, yy->__begin, yy->__end); goto l72; l77:; yy->__pos= yypos72; yy->__thunkpos= yythunkpos72; if (!yy_RegEx(yy)) goto l78; yyDo(yy, yy_6_LogicalOrListElement, yy->__begin, yy->__end); goto l72; l78:; yy->__pos= yypos72; yy->__thunkpos= yythunkpos72; if (!yy_FullAscii(yy)) goto l79; yyDo(yy, yy_7_LogicalOrListElement, yy->__begin, yy->__end); goto l72; l79:; yy->__pos= yypos72; yy->__thunkpos= yythunkpos72; if (!yy_PrintableAscii(yy)) goto l71; yyDo(yy, yy_8_LogicalOrListElement, yy->__begin, yy->__end); } l72:; yyprintf((stderr, " ok %s @ %s\n", "LogicalOrListElement", yy->__buf+yy->__pos)); return 1; l71:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "LogicalOrListElement", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_LogicalOrClose(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "LogicalOrClose")); if (!yy_ClosingBracket(yy)) goto l80; yyDo(yy, yy_1_LogicalOrClose, yy->__begin, yy->__end); yyprintf((stderr, " ok %s @ %s\n", "LogicalOrClose", yy->__buf+yy->__pos)); return 1; l80:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "LogicalOrClose", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_LogicalOrList(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "LogicalOrList")); if (!yy_LogicalOrListElement(yy)) goto l81; l82:; { int yypos83= yy->__pos, yythunkpos83= yy->__thunkpos; if (!yy_Colon(yy)) goto l83; if (!yy_LogicalOrListElement(yy)) goto l83; goto l82; l83:; yy->__pos= yypos83; yy->__thunkpos= yythunkpos83; } yyprintf((stderr, " ok %s @ %s\n", "LogicalOrList", yy->__buf+yy->__pos)); return 1; l81:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "LogicalOrList", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_LogicalOrOpen(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "LogicalOrOpen")); if (!yy_OpenBracket(yy)) goto l84; yyDo(yy, yy_1_LogicalOrOpen, yy->__begin, yy->__end); yyprintf((stderr, " ok %s @ %s\n", "LogicalOrOpen", yy->__buf+yy->__pos)); return 1; l84:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "LogicalOrOpen", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_LogicalOr(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "LogicalOr")); if (!yymatchString(yy, "logical_or")) goto l85; if (!yy_LogicalOrOpen(yy)) goto l85; if (!yy_LogicalOrList(yy)) goto l85; if (!yy_LogicalOrClose(yy)) goto l85; yyprintf((stderr, " ok %s @ %s\n", "LogicalOr", yy->__buf+yy->__pos)); return 1; l85:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "LogicalOr", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Mode(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Mode")); { int yypos87= yy->__pos, yythunkpos87= yy->__thunkpos; if (!yymatchString(yy, "baseline")) goto l88; yyDo(yy, yy_1_Mode, yy->__begin, yy->__end); goto l87; l88:; yy->__pos= yypos87; yy->__thunkpos= yythunkpos87; if (!yymatchString(yy, "enable_type_checks")) goto l89; yyDo(yy, yy_2_Mode, yy->__begin, yy->__end); goto l87; l89:; yy->__pos= yypos87; yy->__thunkpos= yythunkpos87; if (!yymatchString(yy, "enable_offset_checks")) goto l90; yyDo(yy, yy_3_Mode, yy->__begin, yy->__end); goto l87; l90:; yy->__pos= yypos87; yy->__thunkpos= yythunkpos87; if (!yymatchString(yy, "enable_ifd_checks")) goto l91; yyDo(yy, yy_4_Mode, yy->__begin, yy->__end); goto l87; l91:; yy->__pos= yypos87; yy->__thunkpos= yythunkpos87; if (!yymatchString(yy, "enable_deep_geotiff_checks")) goto l92; yyDo(yy, yy_5_Mode, yy->__begin, yy->__end); goto l87; l92:; yy->__pos= yypos87; yy->__thunkpos= yythunkpos87; if (!yymatchString(yy, "enhanced")) goto l86; } l87:; yyprintf((stderr, " ok %s @ %s\n", "Mode", yy->__buf+yy->__pos)); return 1; l86:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Mode", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Subpath(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Subpath")); { int yypos94= yy->__pos, yythunkpos94= yy->__thunkpos; if (!yymatchClass(yy, (unsigned char *)"\000\000\000\000\000\000\000\000\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l95; goto l94; l95:; yy->__pos= yypos94; yy->__thunkpos= yythunkpos94; if (!yymatchClass(yy, (unsigned char *)"\000\000\000\000\000\000\000\000\000\000\000\000\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l96; goto l94; l96:; yy->__pos= yypos94; yy->__thunkpos= yythunkpos94; if (!yymatchClass(yy, (unsigned char *)"\000\000\000\000\000\000\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l97; goto l94; l97:; yy->__pos= yypos94; yy->__thunkpos= yythunkpos94; if (!yymatchChar(yy, '.')) goto l98; goto l94; l98:; yy->__pos= yypos94; yy->__thunkpos= yythunkpos94; if (!yymatchChar(yy, '_')) goto l99; goto l94; l99:; yy->__pos= yypos94; yy->__thunkpos= yythunkpos94; if (!yymatchChar(yy, '-')) goto l100; goto l94; l100:; yy->__pos= yypos94; yy->__thunkpos= yythunkpos94; if (!yy_SlashorBackslash(yy)) goto l93; } l94:; yyprintf((stderr, " ok %s @ %s\n", "Subpath", yy->__buf+yy->__pos)); return 1; l93:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Subpath", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_SlashorBackslash(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "SlashorBackslash")); { int yypos102= yy->__pos, yythunkpos102= yy->__thunkpos; if (!yymatchChar(yy, '/')) goto l103; goto l102; l103:; yy->__pos= yypos102; yy->__thunkpos= yythunkpos102; if (!yymatchChar(yy, '\\')) goto l101; } l102:; yyprintf((stderr, " ok %s @ %s\n", "SlashorBackslash", yy->__buf+yy->__pos)); return 1; l101:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "SlashorBackslash", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_ClosingBracket(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "ClosingBracket")); if (!yymatchChar(yy, ')')) goto l104; yyprintf((stderr, " ok %s @ %s\n", "ClosingBracket", yy->__buf+yy->__pos)); return 1; l104:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "ClosingBracket", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Path(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Path")); if (!yy_Subpath(yy)) goto l105; l106:; { int yypos107= yy->__pos, yythunkpos107= yy->__thunkpos; if (!yy_Subpath(yy)) goto l107; goto l106; l107:; yy->__pos= yypos107; yy->__thunkpos= yythunkpos107; } yyprintf((stderr, " ok %s @ %s\n", "Path", yy->__buf+yy->__pos)); return 1; l105:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Path", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_OpenBracket(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "OpenBracket")); if (!yymatchChar(yy, '(')) goto l108; yyprintf((stderr, " ok %s @ %s\n", "OpenBracket", yy->__buf+yy->__pos)); return 1; l108:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "OpenBracket", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_SpaceLine(yycontext *yy) { yyprintf((stderr, "%s\n", "SpaceLine")); l110:; { int yypos111= yy->__pos, yythunkpos111= yy->__thunkpos; if (!yy_Space(yy)) goto l111; goto l110; l111:; yy->__pos= yypos111; yy->__thunkpos= yythunkpos111; } yyprintf((stderr, " ok %s @ %s\n", "SpaceLine", yy->__buf+yy->__pos)); return 1; } YY_RULE(int) yy_CommentLine(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "CommentLine")); if (!yymatchChar(yy, '#')) goto l112; yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_BEGIN)) goto l112; #undef yytext #undef yyleng } l113:; { int yypos114= yy->__pos, yythunkpos114= yy->__thunkpos; { int yypos115= yy->__pos, yythunkpos115= yy->__thunkpos; if (!yy_EndOfLine(yy)) goto l115; goto l114; l115:; yy->__pos= yypos115; yy->__thunkpos= yythunkpos115; } if (!yymatchDot(yy)) goto l114; goto l113; l114:; yy->__pos= yypos114; yy->__thunkpos= yythunkpos114; } yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_END)) goto l112; #undef yytext #undef yyleng } yyDo(yy, yy_1_CommentLine, yy->__begin, yy->__end); yyprintf((stderr, " ok %s @ %s\n", "CommentLine", yy->__buf+yy->__pos)); return 1; l112:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "CommentLine", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_IncludeLine(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "IncludeLine")); if (!yymatchString(yy, "include")) goto l116; if (!yy_OpenBracket(yy)) goto l116; yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_BEGIN)) goto l116; #undef yytext #undef yyleng } if (!yy_Path(yy)) goto l116; yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_END)) goto l116; #undef yytext #undef yyleng } if (!yy_ClosingBracket(yy)) goto l116; yyDo(yy, yy_1_IncludeLine, yy->__begin, yy->__end); yyprintf((stderr, " ok %s @ %s\n", "IncludeLine", yy->__buf+yy->__pos)); return 1; l116:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "IncludeLine", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_ModeLine(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "ModeLine")); if (!yymatchString(yy, "mode")) goto l117; if (!yy_OpenBracket(yy)) goto l117; yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_BEGIN)) goto l117; #undef yytext #undef yyleng } if (!yy_Mode(yy)) goto l117; yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_END)) goto l117; #undef yytext #undef yyleng } if (!yy_ClosingBracket(yy)) goto l117; yyDo(yy, yy_1_ModeLine, yy->__begin, yy->__end); yyprintf((stderr, " ok %s @ %s\n", "ModeLine", yy->__buf+yy->__pos)); return 1; l117:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "ModeLine", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_TagLine(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "TagLine")); { int yypos119= yy->__pos, yythunkpos119= yy->__thunkpos; if (!yy_Tag(yy)) goto l120; if (!yy_Semicolon(yy)) goto l120; if (!yy_Requirements(yy)) goto l120; if (!yy_Semicolon(yy)) goto l120; if (!yy_Content(yy)) goto l120; yyDo(yy, yy_1_TagLine, yy->__begin, yy->__end); goto l119; l120:; yy->__pos= yypos119; yy->__thunkpos= yythunkpos119; if (!yy_Tag(yy)) goto l118; if (!yy_Semicolon(yy)) goto l118; if (!yy_Requirements(yy)) goto l118; if (!yy_Semicolon(yy)) goto l118; if (!yy_LogicalOr(yy)) goto l118; yyDo(yy, yy_2_TagLine, yy->__begin, yy->__end); } l119:; yyprintf((stderr, " ok %s @ %s\n", "TagLine", yy->__buf+yy->__pos)); return 1; l118:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "TagLine", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_EndOfLine(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "EndOfLine")); if (!yymatchClass(yy, (unsigned char *)"\000\044\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l121; yyDo(yy, yy_1_EndOfLine, yy->__begin, yy->__end); yyprintf((stderr, " ok %s @ %s\n", "EndOfLine", yy->__buf+yy->__pos)); return 1; l121:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "EndOfLine", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_LineType(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "LineType")); { int yypos123= yy->__pos, yythunkpos123= yy->__thunkpos; if (!yy_TagLine(yy)) goto l124; goto l123; l124:; yy->__pos= yypos123; yy->__thunkpos= yythunkpos123; if (!yy_ModeLine(yy)) goto l125; goto l123; l125:; yy->__pos= yypos123; yy->__thunkpos= yythunkpos123; if (!yy_IncludeLine(yy)) goto l126; goto l123; l126:; yy->__pos= yypos123; yy->__thunkpos= yythunkpos123; if (!yy_CommentLine(yy)) goto l127; goto l123; l127:; yy->__pos= yypos123; yy->__thunkpos= yythunkpos123; if (!yy_SpaceLine(yy)) goto l122; } l123:; yyprintf((stderr, " ok %s @ %s\n", "LineType", yy->__buf+yy->__pos)); return 1; l122:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "LineType", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_EndOfFile(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "EndOfFile")); { int yypos129= yy->__pos, yythunkpos129= yy->__thunkpos; if (!yymatchDot(yy)) goto l129; goto l128; l129:; yy->__pos= yypos129; yy->__thunkpos= yythunkpos129; } yyprintf((stderr, " ok %s @ %s\n", "EndOfFile", yy->__buf+yy->__pos)); return 1; l128:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "EndOfFile", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Line(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Line")); { int yypos131= yy->__pos, yythunkpos131= yy->__thunkpos; if (!yy_LineType(yy)) goto l132; if (!yy_EndOfLine(yy)) goto l132; goto l131; l132:; yy->__pos= yypos131; yy->__thunkpos= yythunkpos131; yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_BEGIN)) goto l130; #undef yytext #undef yyleng } if (!yymatchClass(yy, (unsigned char *)"\377\333\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377")) goto l130; l133:; { int yypos134= yy->__pos, yythunkpos134= yy->__thunkpos; if (!yymatchClass(yy, (unsigned char *)"\377\333\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377")) goto l134; goto l133; l134:; yy->__pos= yypos134; yy->__thunkpos= yythunkpos134; } yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_END)) goto l130; #undef yytext #undef yyleng } if (!yy_EndOfLine(yy)) goto l130; yyDo(yy, yy_1_Line, yy->__begin, yy->__end); } l131:; yyprintf((stderr, " ok %s @ %s\n", "Line", yy->__buf+yy->__pos)); return 1; l130:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Line", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_start(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "start")); if (!yy_Line(yy)) goto l135; l136:; { int yypos137= yy->__pos, yythunkpos137= yy->__thunkpos; if (!yy_Line(yy)) goto l137; goto l136; l137:; yy->__pos= yypos137; yy->__thunkpos= yythunkpos137; } if (!yy_EndOfFile(yy)) goto l135; yyprintf((stderr, " ok %s @ %s\n", "start", yy->__buf+yy->__pos)); return 1; l135:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "start", yy->__buf+yy->__pos)); return 0; } #ifndef YY_PART typedef int (*yyrule)(yycontext *yy); YY_PARSE(int) YYPARSEFROM_R(YY_CTX_PARAM_ yyrule yystart) { int yyok, yythunkpos; YYSTYPE *yyval; if (!yyctx->__buflen) { yyctx->__buflen= YY_BUFFER_SIZE; yyctx->__buf= (char *)YY_MALLOC(yyctx, yyctx->__buflen); yyctx->__textlen= YY_BUFFER_SIZE; yyctx->__text= (char *)YY_MALLOC(yyctx, yyctx->__textlen); yyctx->__thunkslen= YY_STACK_SIZE; yyctx->__thunks= (yythunk *)YY_MALLOC(yyctx, sizeof(yythunk) * yyctx->__thunkslen); yyctx->__valslen= YY_STACK_SIZE; yyctx->__val= yyctx->__vals= (YYSTYPE *)YY_MALLOC(yyctx, sizeof(YYSTYPE) * yyctx->__valslen); yyctx->__begin= yyctx->__end= yyctx->__pos= yyctx->__limit= yyctx->__thunkpos= 0; } yyctx->__begin= yyctx->__end= yyctx->__pos; yythunkpos= yyctx->__thunkpos; yyval= yyctx->__val; yyok= yystart(yyctx); if (yyok) yyDone(yyctx, yythunkpos); yyctx->__thunkpos= yythunkpos; yyctx->__val= yyval; return yyok; } YY_PARSE(int) YYPARSEFROM(YY_CTX_PARAM_ yyrule yystart) { int yyok; yyctx->__thunkpos= 0; yyctx->__val= yyctx->__vals; yyok= YYPARSEFROM_R(YY_CTX_ARG_ yystart); yyCommit(yyctx); return yyok; } YY_PARSE(int) YYPARSE(YY_CTX_PARAM) { return YYPARSEFROM(YY_CTX_ARG_ yy_start); } YY_PARSE(yycontext *) YYRELEASE(yycontext *yyctx) { if (yyctx->__buflen) { yyctx->__buflen= 0; YY_FREE(yyctx, yyctx->__buf); YY_FREE(yyctx, yyctx->__text); YY_FREE(yyctx, yyctx->__thunks); YY_FREE(yyctx, yyctx->__vals); } return yyctx; } #endif