diff options
Diffstat (limited to 'usr.bin/yacc/test/error.y')
-rw-r--r-- | usr.bin/yacc/test/error.y | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/yacc/test/error.y b/usr.bin/yacc/test/error.y new file mode 100644 index 0000000..41148ea --- /dev/null +++ b/usr.bin/yacc/test/error.y @@ -0,0 +1,6 @@ +%% +S: error +%% +main(){printf("yyparse() = %d\n",yyparse());} +yylex(){return-1;} +yyerror(s)char*s;{printf("%s\n",s);} |