/* Generated by re2c */ #line 1 "config6.re" #include #include #include int scan(char *s) { char *p = s; #define YYCTYPE char #define YYCURSOR p for(;;) { #line 18 "config6.c" { YYCTYPE yych; yych = *YYCURSOR; switch (yych) { case 0x00: goto yy2; case '+': goto yy6; case '-': goto yy8; case '0': goto yy10; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy12; default: goto yy4; } yy2: ++YYCURSOR; #line 23 "config6.re" { printf("EOF\n"); return 0; } #line 42 "config6.c" yy4: ++YYCURSOR; #line 24 "config6.re" { printf("ERR\n"); return 1; } #line 47 "config6.c" yy6: ++YYCURSOR; #line 21 "config6.re" { printf("+\n"); continue; } #line 52 "config6.c" yy8: ++YYCURSOR; #line 22 "config6.re" { printf("-\n"); continue; } #line 57 "config6.c" yy10: yych = *++YYCURSOR; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy15; default: goto yy11; } yy11: #line 20 "config6.re" { printf("Num\n"); continue; } #line 76 "config6.c" yy12: yych = *++YYCURSOR; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy12; default: goto yy14; } yy14: #line 19 "config6.re" { printf("Num\n"); continue; } #line 95 "config6.c" yy15: yych = *++YYCURSOR; switch (yych) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': goto yy15; default: goto yy17; } yy17: #line 18 "config6.re" { printf("Oct\n"); continue; } #line 114 "config6.c" } #line 25 "config6.re" } } int main(int argc, char **argv) { if (argc > 1) { return scan(argv[1]); } else { fprintf(stderr, "%s \n", argv[0]); return 1; } }