1 /*
2  * [test] btyacc
3  * [test] cc -pedantic -Wall -Werror
4  */
5 %%
6 S: error
7 %%
8 int main() { int rv = yyparse(); printf("yyparse() = %d\n", rv); return rv; }
yylex()9 int yylex() { return-1; }
yyerror(const char * s,...)10 void yyerror(const char *s, ...) { printf("%s\n",s); }
11