Extracted construction of carts to separate function

pull/37/head
ondra05 2021-07-27 12:14:11 +02:00
parent 14b329264d
commit 07f5b022d9
1 changed files with 6 additions and 1 deletions

View File

@ -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<ExprKind, Error> {
todo!("cart construction")
}
/// Flow for operators
///
/// Generates operation from LHS buffer and next expression as RHS