From bf2e73a5d15c670e19b615ef66d134f7992130e6 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