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

Function parse_condition

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

Source from the content-addressed store, hash-verified

113}
114
115pub fn parse_condition(input: &str) -> IResult<&str, Condition> {
116 let (input, first) = alt((
117 map(parse_binary_condition, Condition::Binary),
118 map(
119 tuple((char('('), ws(parse_condition), char(')'))),
120 |(_, condition, _)| condition,
121 ),
122 ))(input)?;
123
124 continue_parsing_condition(input, first)
125}
126
127#[cfg(test)]
128mod tests {

Callers 1

test_condition_parserFunction · 0.85

Calls 2

wsFunction · 0.70

Tested by 1

test_condition_parserFunction · 0.68