diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-08-03 20:48:13 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-08-03 20:48:39 -0400 |
commit | 8c59ccd6e23ac63d59f5839ad410c04b393ff0c0 (patch) | |
tree | 7f73ed2cf6450614599514ca77a2646624484da8 /main.c | |
parent | e9ae811ffaa08caef0acca643ca1e7a1ff72396f (diff) | |
parent | 12f50dec6a529784a360dfaec9dc562b810ae2fd (diff) |
Merge branch 'scopes' into types
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |