summaryrefslogtreecommitdiff
path: root/grammar.y
diff options
context:
space:
mode:
Diffstat (limited to 'grammar.y')
-rw-r--r--grammar.y7
1 files changed, 6 insertions, 1 deletions
diff --git a/grammar.y b/grammar.y
index fd9da47..446b651 100644
--- a/grammar.y
+++ b/grammar.y
@@ -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();
}