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 /pc.l | |
parent | e9ae811ffaa08caef0acca643ca1e7a1ff72396f (diff) | |
parent | 12f50dec6a529784a360dfaec9dc562b810ae2fd (diff) |
Merge branch 'scopes' into types
Diffstat (limited to 'pc.l')
-rw-r--r-- | pc.l | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,9 +1,11 @@ %{ - +#include "node.h" +#include "scope.h" #include "y.tab.h" #include "pc.h" int line_num=1; +extern scope *cur_scope; %} @@ -39,13 +41,13 @@ id [A-Za-z][A-Za-z0-9_]* "procedure" { debug_print(PROC, NULL); - /*s = push_scope(s);*/ + push_scope(&cur_scope); return PROC; } "function" { debug_print(FUNC, NULL); - /*s = push_scope(s);*/ + push_scope(&cur_scope); return FUNC; } |