diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-09-12 19:56:21 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-09-12 19:56:21 -0400 |
commit | d8f19b2f532d0a0d7131c1141ca481fa2d08b946 (patch) | |
tree | 65eb71f683ab737f17c3412a38509d1325700da8 /pc.y | |
parent | 11b46650941f54bf7b95648de04c897656b9867b (diff) |
Add some debug print methods to pc.y
Diffstat (limited to 'pc.y')
-rw-r--r-- | pc.y | 7 |
1 files changed, 7 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); } ; |