MCPcopy Create free account
hub / github.com/cosdata/cosdata / parse_logical_operator

Function parse_logical_operator

src/cosql/condition.rs:91–96  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

89}
90
91pub 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
98pub fn continue_parsing_condition(input: &str, left: Condition) -> IResult<&str, Condition> {
99 if let Ok((input, (operator, right))) =

Callers 1

Calls

no outgoing calls

Tested by 1