YY_RULE(int) yy_primary(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "primary")); { int yypos57= G->pos, yythunkpos57= G->thunkpos; if (!yy_identifier(G)) { goto l58; } yyDo(G, yy_1_primary, G->begin, G->end); if (!yy_COLON(G)) { goto l58; } if (!yy_identifier(G)) { goto l58; } { int yypos59= G->pos, yythunkpos59= G->thunkpos; if (!yy_EQUAL(G)) { goto l59; } goto l58; l59:; G->pos= yypos59; G->thunkpos= yythunkpos59; } yyDo(G, yy_2_primary, G->begin, G->end); goto l57; l58:; G->pos= yypos57; G->thunkpos= yythunkpos57; if (!yy_identifier(G)) { goto l60; } { int yypos61= G->pos, yythunkpos61= G->thunkpos; if (!yy_EQUAL(G)) { goto l61; } goto l60; l61:; G->pos= yypos61; G->thunkpos= yythunkpos61; } yyDo(G, yy_3_primary, G->begin, G->end); goto l57; l60:; G->pos= yypos57; G->thunkpos= yythunkpos57; if (!yy_OPEN(G)) { goto l62; } if (!yy_expression(G)) { goto l62; } if (!yy_CLOSE(G)) { goto l62; } goto l57; l62:; G->pos= yypos57; G->thunkpos= yythunkpos57; if (!yy_literal(G)) { goto l63; } yyDo(G, yy_4_primary, G->begin, G->end); goto l57; l63:; G->pos= yypos57; G->thunkpos= yythunkpos57; if (!yy_class(G)) { goto l64; } yyDo(G, yy_5_primary, G->begin, G->end); goto l57; l64:; G->pos= yypos57; G->thunkpos= yythunkpos57; if (!yy_DOT(G)) { goto l65; } yyDo(G, yy_6_primary, G->begin, G->end); goto l57; l65:; G->pos= yypos57; G->thunkpos= yythunkpos57; if (!yy_action(G)) { goto l66; } yyDo(G, yy_7_primary, G->begin, G->end); goto l57; l66:; G->pos= yypos57; G->thunkpos= yythunkpos57; if (!yy_BEGIN(G)) { goto l67; } yyDo(G, yy_8_primary, G->begin, G->end); goto l57; l67:; G->pos= yypos57; G->thunkpos= yythunkpos57; if (!yy_END(G)) { goto l56; } yyDo(G, yy_9_primary, G->begin, G->end); } l57:; { int yypos68= G->pos, yythunkpos68= G->thunkpos; if (!yy_errblock(G)) { goto l68; } yyDo(G, yy_10_primary, G->begin, G->end); goto l69; l68:; G->pos= yypos68; G->thunkpos= yythunkpos68; } l69:; yyprintf((stderr, " ok %s @ %s\n", "primary", G->buf+G->pos)); return 1; l56:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "primary", G->buf+G->pos)); return 0; }
YY_RULE(int) yy_primary() { int yypos0= yypos, yythunkpos0= yythunkpos; yyprintf((stderr, "%s\n", "primary")); { int yypos54= yypos, yythunkpos54= yythunkpos; if (!yy_identifier()) goto l55; yyDo(yy_1_primary, yybegin, yyend); if (!yy_COLON()) goto l55; if (!yy_identifier()) goto l55; { int yypos56= yypos, yythunkpos56= yythunkpos; if (!yy_EQUAL()) goto l56; goto l55; l56:; yypos= yypos56; yythunkpos= yythunkpos56; } yyDo(yy_2_primary, yybegin, yyend); goto l54; l55:; yypos= yypos54; yythunkpos= yythunkpos54; if (!yy_identifier()) goto l57; { int yypos58= yypos, yythunkpos58= yythunkpos; if (!yy_EQUAL()) goto l58; goto l57; l58:; yypos= yypos58; yythunkpos= yythunkpos58; } yyDo(yy_3_primary, yybegin, yyend); goto l54; l57:; yypos= yypos54; yythunkpos= yythunkpos54; if (!yy_OPEN()) goto l59; if (!yy_expression()) goto l59; if (!yy_CLOSE()) goto l59; goto l54; l59:; yypos= yypos54; yythunkpos= yythunkpos54; if (!yy_literal()) goto l60; yyDo(yy_4_primary, yybegin, yyend); goto l54; l60:; yypos= yypos54; yythunkpos= yythunkpos54; if (!yy_class()) goto l61; yyDo(yy_5_primary, yybegin, yyend); goto l54; l61:; yypos= yypos54; yythunkpos= yythunkpos54; if (!yy_DOT()) goto l62; yyDo(yy_6_primary, yybegin, yyend); goto l54; l62:; yypos= yypos54; yythunkpos= yythunkpos54; if (!yy_action()) goto l63; yyDo(yy_7_primary, yybegin, yyend); goto l54; l63:; yypos= yypos54; yythunkpos= yythunkpos54; if (!yy_BEGIN()) goto l64; yyDo(yy_8_primary, yybegin, yyend); goto l54; l64:; yypos= yypos54; yythunkpos= yythunkpos54; if (!yy_END()) goto l53; yyDo(yy_9_primary, yybegin, yyend); } l54:; yyprintf((stderr, " ok %s @ %s\n", "primary", yybuf+yypos)); return 1; l53:; yypos= yypos0; yythunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "primary", yybuf+yypos)); return 0; }
YY_RULE(int) yy_suffix() { int yypos0= yypos, yythunkpos0= yythunkpos; yyprintf((stderr, "%s\n", "suffix")); if (!yy_primary()) goto l66; { int yypos67= yypos, yythunkpos67= yythunkpos; { int yypos69= yypos, yythunkpos69= yythunkpos; if (!yy_QUESTION()) goto l70; yyDo(yy_1_suffix, yybegin, yyend); goto l69; l70:; yypos= yypos69; yythunkpos= yythunkpos69; if (!yy_STAR()) goto l71; yyDo(yy_2_suffix, yybegin, yyend); goto l69; l71:; yypos= yypos69; yythunkpos= yythunkpos69; if (!yy_PLUS()) goto l67; yyDo(yy_3_suffix, yybegin, yyend); } l69:; goto l68; l67:; yypos= yypos67; yythunkpos= yythunkpos67; } l68:; yyprintf((stderr, " ok %s @ %s\n", "suffix", yybuf+yypos)); return 1; l66:; yypos= yypos0; yythunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "suffix", yybuf+yypos)); return 0; }
YY_RULE(int) yy_pin() { int yypos0= yypos, yythunkpos0= yythunkpos; yyprintf((stderr, "%s\n", "pin")); { int yypos31= yypos, yythunkpos31= yythunkpos; if (!yy_word()) goto l32; l33:; { int yypos34= yypos, yythunkpos34= yythunkpos; if (!yy_word()) goto l34; goto l33; l34:; yypos= yypos34; yythunkpos= yythunkpos34; } if (!yy_eof()) goto l32; yyDo(yy_1_pin, yybegin, yyend); goto l31; l32:; yypos= yypos31; yythunkpos= yythunkpos31; yyText(yybegin, yyend); if (!(YY_BEGIN)) goto l30; if (!yymatchDot()) goto l30; l35:; { int yypos36= yypos, yythunkpos36= yythunkpos; if (!yymatchDot()) goto l36; goto l35; l36:; yypos= yypos36; yythunkpos= yythunkpos36; } yyText(yybegin, yyend); if (!(YY_END)) goto l30; yyDo(yy_2_pin, yybegin, yyend); } l31:; yyprintf((stderr, " ok %s @ %s\n", "pin", yybuf+yypos)); return 1; l30:; yypos= yypos0; yythunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "pin", yybuf+yypos)); return 0; }
YY_RULE(int) yy_sequence() { int yypos0= yypos, yythunkpos0= yythunkpos; yyprintf((stderr, "%s\n", "sequence")); if (!yy_prefix()) goto l82; l83:; { int yypos84= yypos, yythunkpos84= yythunkpos; if (!yy_prefix()) goto l84; yyDo(yy_1_sequence, yybegin, yyend); goto l83; l84:; yypos= yypos84; yythunkpos= yythunkpos84; } yyprintf((stderr, " ok %s @ %s\n", "sequence", yybuf+yypos)); return 1; l82:; yypos= yypos0; yythunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "sequence", yybuf+yypos)); return 0; }
YY_RULE(int) yy_trailer() { int yypos0= yypos, yythunkpos0= yythunkpos; yyprintf((stderr, "%s\n", "trailer")); if (!yymatchString("%%")) goto l96; yyText(yybegin, yyend); if (!(YY_BEGIN)) goto l96; l97:; { int yypos98= yypos, yythunkpos98= yythunkpos; if (!yymatchDot()) goto l98; goto l97; l98:; yypos= yypos98; yythunkpos= yythunkpos98; } yyText(yybegin, yyend); if (!(YY_END)) goto l96; yyDo(yy_1_trailer, yybegin, yyend); yyprintf((stderr, " ok %s @ %s\n", "trailer", yybuf+yypos)); return 1; l96:; yypos= yypos0; yythunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "trailer", yybuf+yypos)); return 0; }
YY_RULE(int) yy_ident() { int yypos0= yypos, yythunkpos0= yythunkpos; yyprintf((stderr, "%s\n", "ident")); yyText(yybegin, yyend); if (!(YY_BEGIN)) goto l21; if (!yymatchClass((unsigned char *)"\000\000\000\000\000\000\000\000\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l21; l22:; { int yypos23= yypos, yythunkpos23= yythunkpos; if (!yymatchClass((unsigned char *)"\000\000\000\000\000\000\000\000\376\377\377\007\376\377\377\007\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000")) goto l23; goto l22; l23:; yypos= yypos23; yythunkpos= yythunkpos23; } yyText(yybegin, yyend); if (!(YY_END)) goto l21; if (!yy__()) goto l21; yyDo(yy_1_ident, yybegin, yyend); yyprintf((stderr, " ok %s @ %s\n", "ident", yybuf+yypos)); return 1; l21:; yypos= yypos0; yythunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "ident", yybuf+yypos)); return 0; }
YY_RULE(int) yy_definition() { int yypos0= yypos, yythunkpos0= yythunkpos; yyprintf((stderr, "%s\n", "definition")); if (!yy_identifier()) goto l99; yyDo(yy_1_definition, yybegin, yyend); if (!yy_EQUAL()) goto l99; if (!yy_expression()) goto l99; yyDo(yy_2_definition, yybegin, yyend); { int yypos100= yypos, yythunkpos100= yythunkpos; if (!yy_SEMICOLON()) goto l100; goto l101; l100:; yypos= yypos100; yythunkpos= yythunkpos100; } l101:; yyprintf((stderr, " ok %s @ %s\n", "definition", yybuf+yypos)); return 1; l99:; yypos= yypos0; yythunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "definition", yybuf+yypos)); return 0; }
YY_RULE(int) yy_definition(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "definition")); if (!yy_identifier(G)) { goto l104; } yyDo(G, yy_1_definition, G->begin, G->end); if (!yy_EQUAL(G)) { goto l104; } if (!yy_expression(G)) { goto l104; } yyDo(G, yy_2_definition, G->begin, G->end); { int yypos105= G->pos, yythunkpos105= G->thunkpos; if (!yy_SEMICOLON(G)) { goto l105; } goto l106; l105:; G->pos= yypos105; G->thunkpos= yythunkpos105; } l106:; yyprintf((stderr, " ok %s @ %s\n", "definition", G->buf+G->pos)); return 1; l104:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "definition", G->buf+G->pos)); return 0; }
YY_RULE(int) yy_trailer(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "trailer")); if (!yymatchString(G, "%%")) goto l101; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l101; l102:; { int yypos103= G->pos, yythunkpos103= G->thunkpos; if (!yymatchDot(G)) goto l103; goto l102; l103:; G->pos= yypos103; G->thunkpos= yythunkpos103; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l101; yyDo(G, yy_1_trailer, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "trailer", G->buf+G->pos)); return 1; l101:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "trailer", G->buf+G->pos)); return 0; }
YY_RULE(int) yy_eol() { int yypos0= yypos, yythunkpos0= yythunkpos; yyprintf((stderr, "%s\n", "eol")); { int yypos2= yypos, yythunkpos2= yythunkpos; if (!yymatchString("\r\n")) goto l3; goto l2; l3:; yypos= yypos2; yythunkpos= yythunkpos2; if (!yymatchChar('\r')) goto l4; goto l2; l4:; yypos= yypos2; yythunkpos= yythunkpos2; if (!yymatchChar('\n')) goto l1; } l2:; yyDo(yy_1_eol, yybegin, yyend); yyprintf((stderr, " ok %s @ %s\n", "eol", yybuf+yypos)); return 1; l1:; yypos= yypos0; yythunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "eol", yybuf+yypos)); return 0; }
YY_RULE(int) yy_number() { int yypos0= yypos, yythunkpos0= yythunkpos; yyprintf((stderr, "%s\n", "number")); yyText(yybegin, yyend); if (!(YY_BEGIN)) goto l16; { int yypos17= yypos, yythunkpos17= yythunkpos; if (!yymatchChar('-')) goto l17; goto l18; l17:; yypos= yypos17; yythunkpos= yythunkpos17; } l18:; if (!yymatchClass((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 l16; l19:; { int yypos20= yypos, yythunkpos20= yythunkpos; if (!yymatchClass((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 l20; goto l19; l20:; yypos= yypos20; yythunkpos= yythunkpos20; } yyText(yybegin, yyend); if (!(YY_END)) goto l16; if (!yy__()) goto l16; yyDo(yy_1_number, yybegin, yyend); yyprintf((stderr, " ok %s @ %s\n", "number", yybuf+yypos)); return 1; l16:; yypos= yypos0; yythunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "number", yybuf+yypos)); return 0; }
YY_RULE(int) yy_declaration() { int yypos0= yypos, yythunkpos0= yythunkpos; yyprintf((stderr, "%s\n", "declaration")); if (!yymatchString("%{")) goto l102; yyText(yybegin, yyend); if (!(YY_BEGIN)) goto l102; l103:; { int yypos104= yypos, yythunkpos104= yythunkpos; { int yypos105= yypos, yythunkpos105= yythunkpos; if (!yymatchString("%}")) goto l105; goto l104; l105:; yypos= yypos105; yythunkpos= yythunkpos105; } if (!yymatchDot()) goto l104; goto l103; l104:; yypos= yypos104; yythunkpos= yythunkpos104; } yyText(yybegin, yyend); if (!(YY_END)) goto l102; if (!yy_RPERCENT()) goto l102; yyDo(yy_1_declaration, yybegin, yyend); yyprintf((stderr, " ok %s @ %s\n", "declaration", yybuf+yypos)); return 1; l102:; yypos= yypos0; yythunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "declaration", yybuf+yypos)); return 0; }
YY_RULE(int) yy_suffix(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "suffix")); if (!yy_primary(G)) { goto l71; } { int yypos72= G->pos, yythunkpos72= G->thunkpos; { int yypos74= G->pos, yythunkpos74= G->thunkpos; if (!yy_QUESTION(G)) { goto l75; } yyDo(G, yy_1_suffix, G->begin, G->end); goto l74; l75:; G->pos= yypos74; G->thunkpos= yythunkpos74; if (!yy_STAR(G)) { goto l76; } yyDo(G, yy_2_suffix, G->begin, G->end); goto l74; l76:; G->pos= yypos74; G->thunkpos= yythunkpos74; if (!yy_PLUS(G)) { goto l72; } yyDo(G, yy_3_suffix, G->begin, G->end); } l74:; goto l73; l72:; G->pos= yypos72; G->thunkpos= yythunkpos72; } l73:; yyprintf((stderr, " ok %s @ %s\n", "suffix", G->buf+G->pos)); return 1; l71:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "suffix", G->buf+G->pos)); return 0; }
YY_RULE(int) yy_prefix(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "prefix")); { int yypos82= G->pos, yythunkpos82= G->thunkpos; if (!yy_AND(G)) { goto l83; } if (!yy_action(G)) { goto l83; } yyDo(G, yy_1_prefix, G->begin, G->end); goto l82; l83:; G->pos= yypos82; G->thunkpos= yythunkpos82; if (!yy_AND(G)) { goto l84; } if (!yy_suffix(G)) { goto l84; } yyDo(G, yy_2_prefix, G->begin, G->end); goto l82; l84:; G->pos= yypos82; G->thunkpos= yythunkpos82; if (!yy_NOT(G)) { goto l85; } if (!yy_suffix(G)) { goto l85; } yyDo(G, yy_3_prefix, G->begin, G->end); goto l82; l85:; G->pos= yypos82; G->thunkpos= yythunkpos82; if (!yy_suffix(G)) { goto l81; } } l82:; yyprintf((stderr, " ok %s @ %s\n", "prefix", G->buf+G->pos)); return 1; l81:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "prefix", G->buf+G->pos)); return 0; }
YY_RULE(int) yy_expression() { int yypos0= yypos, yythunkpos0= yythunkpos; yyprintf((stderr, "%s\n", "expression")); if (!yy_sequence()) goto l86; l87:; { int yypos88= yypos, yythunkpos88= yythunkpos; if (!yy_BAR()) goto l88; if (!yy_sequence()) goto l88; yyDo(yy_1_expression, yybegin, yyend); goto l87; l88:; yypos= yypos88; yythunkpos= yythunkpos88; } yyprintf((stderr, " ok %s @ %s\n", "expression", yybuf+yypos)); return 1; l86:; yypos= yypos0; yythunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "expression", yybuf+yypos)); return 0; }
YY_RULE(int) yy_prefix() { int yypos0= yypos, yythunkpos0= yythunkpos; yyprintf((stderr, "%s\n", "prefix")); { int yypos77= yypos, yythunkpos77= yythunkpos; if (!yy_AND()) goto l78; if (!yy_action()) goto l78; yyDo(yy_1_prefix, yybegin, yyend); goto l77; l78:; yypos= yypos77; yythunkpos= yythunkpos77; if (!yy_AND()) goto l79; if (!yy_suffix()) goto l79; yyDo(yy_2_prefix, yybegin, yyend); goto l77; l79:; yypos= yypos77; yythunkpos= yythunkpos77; if (!yy_NOT()) goto l80; if (!yy_suffix()) goto l80; yyDo(yy_3_prefix, yybegin, yyend); goto l77; l80:; yypos= yypos77; yythunkpos= yythunkpos77; if (!yy_suffix()) goto l76; } l77:; yyprintf((stderr, " ok %s @ %s\n", "prefix", yybuf+yypos)); return 1; l76:; yypos= yypos0; yythunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "prefix", yybuf+yypos)); return 0; }
YY_RULE(int) yy_sequence(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "sequence")); if (!yy_prefix(G)) { goto l87; } l88:; { int yypos89= G->pos, yythunkpos89= G->thunkpos; if (!yy_prefix(G)) { goto l89; } yyDo(G, yy_1_sequence, G->begin, G->end); goto l88; l89:; G->pos= yypos89; G->thunkpos= yythunkpos89; } yyprintf((stderr, " ok %s @ %s\n", "sequence", G->buf+G->pos)); return 1; l87:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "sequence", G->buf+G->pos)); return 0; }
YY_RULE(int) yy_expression(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "expression")); if (!yy_sequence(G)) { goto l91; } l92:; { int yypos93= G->pos, yythunkpos93= G->thunkpos; if (!yy_BAR(G)) { goto l93; } if (!yy_sequence(G)) { goto l93; } yyDo(G, yy_1_expression, G->begin, G->end); goto l92; l93:; G->pos= yypos93; G->thunkpos= yythunkpos93; } yyprintf((stderr, " ok %s @ %s\n", "expression", G->buf+G->pos)); return 1; l91:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "expression", G->buf+G->pos)); return 0; }
YY_RULE(int) yy_declaration(GREG *G) { int yypos0= G->pos, yythunkpos0= G->thunkpos; yyprintf((stderr, "%s\n", "declaration")); if (!yymatchString(G, "%{")) goto l107; yyText(G, G->begin, G->end); if (!(YY_BEGIN)) goto l107; l108:; { int yypos109= G->pos, yythunkpos109= G->thunkpos; { int yypos110= G->pos, yythunkpos110= G->thunkpos; if (!yymatchString(G, "%}")) goto l110; goto l109; l110:; G->pos= yypos110; G->thunkpos= yythunkpos110; } if (!yymatchDot(G)) goto l109; goto l108; l109:; G->pos= yypos109; G->thunkpos= yythunkpos109; } yyText(G, G->begin, G->end); if (!(YY_END)) goto l107; if (!yy_RPERCENT(G)) { goto l107; } yyDo(G, yy_1_declaration, G->begin, G->end); yyprintf((stderr, " ok %s @ %s\n", "declaration", G->buf+G->pos)); return 1; l107:; G->pos= yypos0; G->thunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "declaration", G->buf+G->pos)); return 0; }
YY_RULE(int) yy_l_bracket() { int yypos0= yypos, yythunkpos0= yythunkpos; yyprintf((stderr, "%s\n", "l_bracket")); if (!yymatchChar('[')) goto l12; if (!yy__()) goto l12; yyDo(yy_1_l_bracket, yybegin, yyend); yyprintf((stderr, " ok %s @ %s\n", "l_bracket", yybuf+yypos)); return 1; l12:; yypos= yypos0; yythunkpos= yythunkpos0; yyprintf((stderr, " fail %s @ %s\n", "l_bracket", yybuf+yypos)); return 0; }