Extracted construction of carts to separate function

This commit is contained in:
Erin 2021-07-27 12:14:11 +02:00 committed by ondra05
parent fa87efa7e8
commit 1f8d6a8ec2

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