(input: &str)
| 74 | } |
| 75 | |
| 76 | pub fn parse_binary_condition(input: &str) -> IResult<&str, BinaryCondition> { |
| 77 | map( |
| 78 | tuple(( |
| 79 | parse_variable, |
| 80 | ws(parse_binary_condition_operator), |
| 81 | parse_value, |
| 82 | )), |
| 83 | |(left, operator, right)| BinaryCondition { |
| 84 | left: left.to_string(), |
| 85 | operator, |
| 86 | right, |
| 87 | }, |
| 88 | )(input) |
| 89 | } |
| 90 | |
| 91 | pub fn parse_logical_operator(input: &str) -> IResult<&str, LogicalOperator> { |
| 92 | alt(( |