aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index fbd96d0..dba3b7f 100644
--- a/main.c
+++ b/main.c
@@ -10,6 +10,8 @@
extern char *yytext;
extern int line_num;
+scope *cur_scope;
+
char* pretty_type(t)
int t;
{
@@ -136,6 +138,9 @@ char* msg;
int main()
{
+ cur_scope = mkscope();
+ assert(cur_scope);
+
yyparse();
return 0;