aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.c b/main.c
index 3d1401c..dba3b7f 100644
--- a/main.c
+++ b/main.c
@@ -2,12 +2,16 @@
#include <stdlib.h>
#include <assert.h>
+#include "node.h"
+#include "scope.h"
#include "y.tab.h"
#include "pc.h"
extern char *yytext;
extern int line_num;
+scope *cur_scope;
+
char* pretty_type(t)
int t;
{
@@ -134,6 +138,9 @@ char* msg;
int main()
{
+ cur_scope = mkscope();
+ assert(cur_scope);
+
yyparse();
return 0;