(input: &str)
| 89 | } |
| 90 | |
| 91 | pub fn parse_logical_operator(input: &str) -> IResult<&str, LogicalOperator> { |
| 92 | alt(( |
| 93 | map(tag("and"), |_| LogicalOperator::And), |
| 94 | map(tag("or"), |_| LogicalOperator::Or), |
| 95 | ))(input) |
| 96 | } |
| 97 | |
| 98 | pub fn continue_parsing_condition(input: &str, left: Condition) -> IResult<&str, Condition> { |
| 99 | if let Ok((input, (operator, right))) = |
no outgoing calls