diff options
-rw-r--r-- | grammar.y | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,9 @@ %{ #include <stdio.h> + +extern FILE *yyin; +extern int yylex(); +extern void yyerror(); %} %define parse.error verbose @@ -46,8 +50,9 @@ expression: NUMBER ; %% -main (int argc, char **argv) +void main (int argc, char **argv) { //henshin_lex(); + yyin = fopen(argv[1], "r"); yyparse(); } |