From c9889f7c6622def3b6badde2738c3e912b48144f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 11 Jun 2026 13:42:31 -0700 Subject: Basic if statements work. I need to tweak the parser to get mid-tags working, then we can have else, and maybe elif. After that is expressions. --- src/context.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/context.rs') diff --git a/src/context.rs b/src/context.rs index 78a7940..e4cd5c2 100644 --- a/src/context.rs +++ b/src/context.rs @@ -44,6 +44,7 @@ pub enum Value { String(String), Int(i64), Float(f64), + Bool(bool), Identifier(Identifier), } @@ -71,6 +72,12 @@ impl From for Value { } } +impl From for Value { + fn from(val: bool) -> Value { + Value::Bool(val) + } +} + impl From> for Value { fn from(val: Vec) -> Value { Value::List(val) -- cgit v1.2.3