aboutsummaryrefslogtreecommitdiff
path: root/src/ast/mod.rs
diff options
context:
space:
mode:
authorCody <cody@codyq.dev>2023-02-27 12:14:16 -0600
committerCody <cody@codyq.dev>2023-02-27 12:14:16 -0600
commite4199d2837d2179f17e97b8d50366d96c8babded (patch)
treee07543001ba1aa7e05ff8b289b4d3154d7123fd6 /src/ast/mod.rs
parentf464fe944808df7865262962b8231c0009874692 (diff)
downloadsloth-e4199d2837d2179f17e97b8d50366d96c8babded.tar.gz
Added while loops & guessing game
Diffstat (limited to 'src/ast/mod.rs')
-rw-r--r--src/ast/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index d006737..4e1d639 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -36,6 +36,10 @@ pub enum Stmt {
range: (Expr, Expr),
body: Vec<Stmt>,
},
+ While {
+ condition: Expr,
+ body: Vec<Stmt>,
+ },
Return {
value: Expr,
},