diff --git a/src/parser.rs b/src/parser.rs index 7a3ca6f..fa6d118 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