/* A recursive-descent parser generated by peg 0.1.19 */ #include #include #include #define YYRULECOUNT 13 #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) YY_RULE(int) yy_CLOSE(yycontext *yy); /* 13 */ YY_RULE(int) yy_OPEN(yycontext *yy); /* 12 */ YY_RULE(int) yy_NUMBER(yycontext *yy); /* 11 */ YY_RULE(int) yy_DIVIDE(yycontext *yy); /* 10 */ YY_RULE(int) yy_TIMES(yycontext *yy); /* 9 */ YY_RULE(int) yy_Value(yycontext *yy); /* 8 */ YY_RULE(int) yy_MINUS(yycontext *yy); /* 7 */ YY_RULE(int) yy_PLUS(yycontext *yy); /* 6 */ YY_RULE(int) yy_Product(yycontext *yy); /* 5 */ YY_RULE(int) yy_EOL(yycontext *yy); /* 4 */ YY_RULE(int) yy_Sum(yycontext *yy); /* 3 */ YY_RULE(int) yy_SPACE(yycontext *yy); /* 2 */ YY_RULE(int) yy_Expr(yycontext *yy); /* 1 */ 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")); { #line 0 push(atoi(yytext)); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_2_Product(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_2_Product\n")); { #line 0 int r= pop(), l= pop(); push(l / r); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_Product(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_Product\n")); { #line 0 int r= pop(), l= pop(); push(l * r); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_2_Sum(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_2_Sum\n")); { #line 0 int r= pop(), l= pop(); push(l - r); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_Sum(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_Sum\n")); { #line 0 int r= pop(), l= pop(); push(l + r); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_2_Expr(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_2_Expr\n")); { #line 0 printf("error\n"); ; } #undef yythunkpos #undef yypos #undef yy } YY_ACTION(void) yy_1_Expr(yycontext *yy, char *yytext, int yyleng) { #define __ yy->__ #define yypos yy->__pos #define yythunkpos yy->__thunkpos yyprintf((stderr, "do yy_1_Expr\n")); { #line 0 printf("%d\n", pop()); ; } #undef yythunkpos #undef yypos #undef yy } YY_RULE(int) yy_CLOSE(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "CLOSE")); if (!yymatchChar(yy, ')')) goto l1; if (!yy_SPACE(yy)) goto l1; yyprintf((stderr, " ok %s @ %s\n", "CLOSE", yy->__buf+yy->__pos)); return 1; l1:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "CLOSE", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_OPEN(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "OPEN")); if (!yymatchChar(yy, '(')) goto l2; if (!yy_SPACE(yy)) goto l2; yyprintf((stderr, " ok %s @ %s\n", "OPEN", yy->__buf+yy->__pos)); return 1; l2:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "OPEN", 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")); yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_BEGIN)) goto l3; #undef yytext #undef yyleng } 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 l3; l4:; { int yypos5= yy->__pos, yythunkpos5= yy->__thunkpos; 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 l5; goto l4; l5:; yy->__pos= yypos5; yy->__thunkpos= yythunkpos5; } yyText(yy, yy->__begin, yy->__end); { #define yytext yy->__text #define yyleng yy->__textlen if (!(YY_END)) goto l3; #undef yytext #undef yyleng } if (!yy_SPACE(yy)) goto l3; yyprintf((stderr, " ok %s @ %s\n", "NUMBER", yy->__buf+yy->__pos)); return 1; l3:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "NUMBER", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_DIVIDE(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "DIVIDE")); if (!yymatchChar(yy, '/')) goto l6; if (!yy_SPACE(yy)) goto l6; yyprintf((stderr, " ok %s @ %s\n", "DIVIDE", yy->__buf+yy->__pos)); return 1; l6:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "DIVIDE", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_TIMES(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "TIMES")); if (!yymatchChar(yy, '*')) goto l7; if (!yy_SPACE(yy)) goto l7; yyprintf((stderr, " ok %s @ %s\n", "TIMES", yy->__buf+yy->__pos)); return 1; l7:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "TIMES", 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")); { int yypos9= yy->__pos, yythunkpos9= yy->__thunkpos; if (!yy_NUMBER(yy)) goto l10; yyDo(yy, yy_1_Value, yy->__begin, yy->__end); goto l9; l10:; yy->__pos= yypos9; yy->__thunkpos= yythunkpos9; if (!yy_OPEN(yy)) goto l8; if (!yy_Sum(yy)) goto l8; if (!yy_CLOSE(yy)) goto l8; } l9:; yyprintf((stderr, " ok %s @ %s\n", "Value", yy->__buf+yy->__pos)); return 1; l8:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Value", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_MINUS(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "MINUS")); if (!yymatchChar(yy, '-')) goto l11; if (!yy_SPACE(yy)) goto l11; yyprintf((stderr, " ok %s @ %s\n", "MINUS", yy->__buf+yy->__pos)); return 1; l11:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "MINUS", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_PLUS(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "PLUS")); if (!yymatchChar(yy, '+')) goto l12; if (!yy_SPACE(yy)) goto l12; yyprintf((stderr, " ok %s @ %s\n", "PLUS", yy->__buf+yy->__pos)); return 1; l12:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "PLUS", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Product(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Product")); if (!yy_Value(yy)) goto l13; l14:; { int yypos15= yy->__pos, yythunkpos15= yy->__thunkpos; { int yypos16= yy->__pos, yythunkpos16= yy->__thunkpos; if (!yy_TIMES(yy)) goto l17; if (!yy_Value(yy)) goto l17; yyDo(yy, yy_1_Product, yy->__begin, yy->__end); goto l16; l17:; yy->__pos= yypos16; yy->__thunkpos= yythunkpos16; if (!yy_DIVIDE(yy)) goto l15; if (!yy_Value(yy)) goto l15; yyDo(yy, yy_2_Product, yy->__begin, yy->__end); } l16:; goto l14; l15:; yy->__pos= yypos15; yy->__thunkpos= yythunkpos15; } yyprintf((stderr, " ok %s @ %s\n", "Product", yy->__buf+yy->__pos)); return 1; l13:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Product", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_EOL(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "EOL")); { int yypos19= yy->__pos, yythunkpos19= yy->__thunkpos; if (!yymatchChar(yy, '\n')) goto l20; goto l19; l20:; yy->__pos= yypos19; yy->__thunkpos= yythunkpos19; if (!yymatchString(yy, "\r\n")) goto l21; goto l19; l21:; yy->__pos= yypos19; yy->__thunkpos= yythunkpos19; if (!yymatchChar(yy, '\r')) goto l18; } l19:; yyprintf((stderr, " ok %s @ %s\n", "EOL", yy->__buf+yy->__pos)); return 1; l18:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "EOL", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_Sum(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Sum")); if (!yy_Product(yy)) goto l22; l23:; { int yypos24= yy->__pos, yythunkpos24= yy->__thunkpos; { int yypos25= yy->__pos, yythunkpos25= yy->__thunkpos; if (!yy_PLUS(yy)) goto l26; if (!yy_Product(yy)) goto l26; yyDo(yy, yy_1_Sum, yy->__begin, yy->__end); goto l25; l26:; yy->__pos= yypos25; yy->__thunkpos= yythunkpos25; if (!yy_MINUS(yy)) goto l24; if (!yy_Product(yy)) goto l24; yyDo(yy, yy_2_Sum, yy->__begin, yy->__end); } l25:; goto l23; l24:; yy->__pos= yypos24; yy->__thunkpos= yythunkpos24; } yyprintf((stderr, " ok %s @ %s\n", "Sum", yy->__buf+yy->__pos)); return 1; l22:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Sum", yy->__buf+yy->__pos)); return 0; } YY_RULE(int) yy_SPACE(yycontext *yy) { yyprintf((stderr, "%s\n", "SPACE")); l28:; { int yypos29= yy->__pos, yythunkpos29= yy->__thunkpos; if (!yymatchClass(yy, (unsigned char *)"\000\002\000\000\001\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 l29; goto l28; l29:; yy->__pos= yypos29; yy->__thunkpos= yythunkpos29; } yyprintf((stderr, " ok %s @ %s\n", "SPACE", yy->__buf+yy->__pos)); return 1; } YY_RULE(int) yy_Expr(yycontext *yy) { int yypos0= yy->__pos, yythunkpos0= yy->__thunkpos; yyprintf((stderr, "%s\n", "Expr")); { int yypos31= yy->__pos, yythunkpos31= yy->__thunkpos; if (!yy_SPACE(yy)) goto l32; if (!yy_Sum(yy)) goto l32; if (!yy_EOL(yy)) goto l32; yyDo(yy, yy_1_Expr, yy->__begin, yy->__end); goto l31; l32:; yy->__pos= yypos31; yy->__thunkpos= yythunkpos31; l33:; { int yypos34= yy->__pos, yythunkpos34= yy->__thunkpos; { int yypos35= yy->__pos, yythunkpos35= yy->__thunkpos; if (!yy_EOL(yy)) goto l35; goto l34; l35:; yy->__pos= yypos35; yy->__thunkpos= yythunkpos35; } if (!yymatchDot(yy)) goto l34; goto l33; l34:; yy->__pos= yypos34; yy->__thunkpos= yythunkpos34; } if (!yy_EOL(yy)) goto l30; yyDo(yy, yy_2_Expr, yy->__begin, yy->__end); } l31:; yyprintf((stderr, " ok %s @ %s\n", "Expr", yy->__buf+yy->__pos)); return 1; l30:; yy->__pos= yypos0; yy->__thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "Expr", 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_Expr); } 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