aboutsummaryrefslogtreecommitdiff
path: root/pc.y
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-08-17 13:02:49 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-08-17 13:02:49 -0400
commit7a1850b859041a990ab93416f7b3d76a5d946191 (patch)
treea50b6579c46b9621dad16f210d7ab284feac1844 /pc.y
parent7449656c35052b29c65f0b7b53895b22b958a259 (diff)
Add allows expressions as statements
Diffstat (limited to 'pc.y')
-rw-r--r--pc.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/pc.y b/pc.y
index ed4872c..97bf33e 100644
--- a/pc.y
+++ b/pc.y
@@ -258,6 +258,10 @@ statement
/*TODO design tree structure for FOR loops*/
$$ = NULL;
}
+ | expr
+ {
+ $$ = $1;
+ }
;
TD: TO | DT;