From 5de5a81e8a652d2a01e793ca4e39bc0fd5974f58 Mon Sep 17 00:00:00 2001 From: Shagun Agrawal Date: Fri, 30 Aug 2024 21:30:02 +0530 Subject: Implement if and conditional expressions in Tacky IR --- src/cljcc/parser.clj | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/cljcc/parser.clj') diff --git a/src/cljcc/parser.clj b/src/cljcc/parser.clj index 0aec1dc..6525c24 100644 --- a/src/cljcc/parser.clj +++ b/src/cljcc/parser.clj @@ -113,10 +113,7 @@ (defn if-statement-node ([cond then] - {:type :statement - :statement-type :if - :condition cond - :then-statement then}) + (if-statement-node cond then nil)) ([cond then else] {:type :statement :statement-type :if -- cgit v1.2.3