diff options
| author | Shagun Agrawal <agrawalshagun07@gmail.com> | 2024-08-30 21:30:02 +0530 |
|---|---|---|
| committer | Shagun Agrawal <agrawalshagun07@gmail.com> | 2024-08-30 21:30:02 +0530 |
| commit | 5de5a81e8a652d2a01e793ca4e39bc0fd5974f58 (patch) | |
| tree | f4d31ed7b51ed3d557eb73b2ca03cc1fb133d07e /src/cljcc/parser.clj | |
| parent | 552c41552c71c7bb3c0497d8b92c52688a14d22b (diff) | |
Implement if and conditional expressions in Tacky IR
Diffstat (limited to 'src/cljcc/parser.clj')
| -rw-r--r-- | src/cljcc/parser.clj | 5 |
1 files changed, 1 insertions, 4 deletions
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 |
