Parse NOT expressions: [NOT] comparison
(tokens: &[Token])
| 1634 | |
| 1635 | /// Parse NOT expressions: [NOT] comparison |
| 1636 | fn not_expression(tokens: &[Token]) -> IResult<&[Token], Expression> { |
| 1637 | alt(( |
| 1638 | map( |
| 1639 | tuple((expect_token(Token::Not), comparison)), |
| 1640 | |(_, expr)| { |
| 1641 | Expression::Unary(UnaryExpression { |
| 1642 | operator: Operator::Not, |
| 1643 | expression: Box::new(expr), |
| 1644 | location: Location::default(), |
| 1645 | }) |
| 1646 | }, |
| 1647 | ), |
| 1648 | comparison, |
| 1649 | ))(tokens) |
| 1650 | } |
| 1651 | |
| 1652 | /// Parse shorthand label predicate: identifier:label (e.g., n:Person) |
| 1653 | fn shorthand_label_predicate(tokens: &[Token]) -> IResult<&[Token], Expression> { |
nothing calls this directly
no test coverage detected