Add parsing of more logical combinators
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
d222573a3a
commit
437584c844
3 changed files with 54 additions and 6 deletions
|
|
@ -663,6 +663,7 @@ fn parse_expression<'input>(
|
|||
TokenOperator::Divide => Left(7, |_, lhs, rhs| Ok(TemplateAstExpr::Operation { op: TokenOperator::Divide, lhs: Box::new(lhs), rhs: Box::new(rhs) })),
|
||||
TokenOperator::And => Left(7, |_, lhs, rhs| Ok(TemplateAstExpr::Operation { op: TokenOperator::And, lhs: Box::new(lhs), rhs: Box::new(rhs) })),
|
||||
TokenOperator::Or => Left(5, |_, lhs, rhs| Ok(TemplateAstExpr::Operation { op: TokenOperator::Or, lhs: Box::new(lhs), rhs: Box::new(rhs) })),
|
||||
_ => winnow::combinator::todo
|
||||
}),
|
||||
)
|
||||
.parse_next(input)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue