From a7d28593769b094d52407c92b8e5554a3e9cd178 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Sun, 28 Jul 2019 19:50:59 -0400 Subject: Add pop scope --- pc.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pc.y b/pc.y index dc6a05b..f00d4fe 100644 --- a/pc.y +++ b/pc.y @@ -159,6 +159,7 @@ sub_prog_declaration sub_prog_declarations compound_statement { + pop_scope(&cur_scope); } ; @@ -171,7 +172,6 @@ sub_prog_head cur_scope->ret_var = scope_insert(cur_scope, $2); cur_scope->ret_var->var_type = $5; - } |PROC ID arguments ';' { -- cgit v1.1