summaryrefslogtreecommitdiff
path: root/usr.bin/yacc/test/error.y
blob: 41148ea92dba0a278fd902609692a6d089bf9526 (plain)
1
2
3
4
5
6
%%
S: error
%%
main(){printf("yyparse() = %d\n",yyparse());}
yylex(){return-1;}
yyerror(s)char*s;{printf("%s\n",s);}