From 662bc1d55d9fecf173e873b5d00e95fd7635e73d Mon Sep 17 00:00:00 2001 From: Tolmachev Igor Date: Fri, 22 May 2026 21:22:25 +0300 Subject: Implement If expression support I forgor --- compiler/src/ast/models.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compiler/src/ast/models.rs') diff --git a/compiler/src/ast/models.rs b/compiler/src/ast/models.rs index 64fec19..1cb705d 100644 --- a/compiler/src/ast/models.rs +++ b/compiler/src/ast/models.rs @@ -31,6 +31,11 @@ pub enum Expr { vars: Vec>, body: Vec>, }, + If { + condition: Spanned>, + then_expr: Spanned>, + else_expr: Option>>, + }, For { loop_var: Spanned>, from: Spanned>, -- cgit v1.3