From 1f8d6a8ec22f7c7d72c7517af3dc1a0c9aca7214 Mon Sep 17 00:00:00 2001 From: Erin Date: Tue, 27 Jul 2021 12:14:11 +0200 Subject: [PATCH] Extracted construction of carts to separate function --- src/parser.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index 7a3ca6f1..fa6d1186 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -197,7 +197,7 @@ impl<'source> Parser<'source> { }, start..self.lexer.span().end, )), - None => todo!("cart construction"), + None => Ok(Expr::new(self.cart_flow()?, start..self.lexer.span().end)), }, // Operations @@ -231,6 +231,11 @@ impl<'source> Parser<'source> { } } + /// Flow for creating carts + fn cart_flow(&mut self) -> Result { + todo!("cart construction") + } + /// Flow for operators /// /// Generates operation from LHS buffer and next expression as RHS