diff options
-rw-r--r-- | pc.y | 7 | ||||
-rw-r--r-- | scope.h | 2 |
2 files changed, 9 insertions, 0 deletions
@@ -97,6 +97,10 @@ program { set_ret_type($9); print_tree($9); +#ifdef DEBUG + print_scope(cur_scope); +#endif + pop_scope(&cur_scope); } ; @@ -164,6 +168,9 @@ sub_prog_declaration { set_ret_type($4); print_tree($4); +#ifdef DEBUG + print_scope(cur_scope); +#endif pop_scope(&cur_scope); } ; @@ -24,6 +24,8 @@ node* scope_search_all(scope*, char*); node* scope_search(scope*, char*); node* scope_safe_search(scope*, char*); +void print_scope(scope *); + /*hash function*/ int hashpjw(char*); #endif |