From 8a6eb35a900081967db16d313ab7ed470de6570f Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 23 Oct 2021 22:01:52 +0200 Subject: Loop expressions and concrete walker errors. --- src/parse/ast/nodes.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/parse/ast/nodes.rs') diff --git a/src/parse/ast/nodes.rs b/src/parse/ast/nodes.rs index 822ffb6..2a4f7c0 100644 --- a/src/parse/ast/nodes.rs +++ b/src/parse/ast/nodes.rs @@ -106,6 +106,12 @@ pub struct IfNode { pub else_block: Option, } +#[derive(Debug, Clone)] +pub struct LoopNode { + pub condition: Option, + pub body: BlockNode, +} + #[derive(Debug, Clone)] pub struct BlockNode { pub statements: Vec, -- cgit 1.4.1