/* main routine and yyerror for use with yacc and bison */ #include extern int yyparse(void); int main() { int reject; reject = yyparse(); if(reject) { printf("rejected \n"); } else { printf("accepted \n"); } } void yyerror(char *message) { printf("\n yyerror reports %s \n", message); }