aboutsummaryrefslogtreecommitdiff
path: root/pc.y
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-08-03 21:40:54 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-08-03 21:40:54 -0400
commit9c6c1af62993bdb2474ddde4384215f95fede85f (patch)
treea79de9569782288010576ce7d6eef9ccb01dbb23 /pc.y
parent6c559b49b2203c4815d652ab4501099be652f8d3 (diff)
Fix print_tree placement in parse tree
Diffstat (limited to 'pc.y')
-rw-r--r--pc.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/pc.y b/pc.y
index 8e0130c..d63d8fc 100644
--- a/pc.y
+++ b/pc.y
@@ -92,6 +92,7 @@ program
compound_statement
'.'
{
+ print_tree($9);
}
;
@@ -157,6 +158,7 @@ sub_prog_declaration
sub_prog_declarations
compound_statement
{
+ print_tree($4);
pop_scope(&cur_scope);
}
;
@@ -201,7 +203,6 @@ compound_statement
:BEG opt_statements END
{
$$ = $2;
- print_tree($$);
}
;