1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <stdio.h> #include <locale.h> extern int yyparse(void); int yyerror(const char *s) { fprintf(stderr, "%s\n", s); return 0; } int main(int argc, char *argv[]) { setlocale(LC_ALL, ""); yyparse(); return 0; }