From 7a1850b859041a990ab93416f7b3d76a5d946191 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Sat, 17 Aug 2019 13:02:49 -0400 Subject: Add allows expressions as statements --- pc.y | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.1