MCPcopy Create free account
hub / github.com/adam-mcdaniel/reckon / parse_complement

Function parse_complement

src/parse.rs:321–325  ·  view source on GitHub ↗
(i: &str)

Source from the content-addressed store, hash-verified

319}
320
321fn parse_complement(i: &str) -> IResult<&str, Term, Error> {
322 let (i, _) = ws(tag("~"))(i)?;
323 let (i, term) = parse_term_atom(i)?;
324 Ok((i, term.negate()))
325}
326
327pub(super) fn parse_term(i: &str) -> IResult<&str, Term, Error> {
328 alt((parse_complement, parse_term_atom))(i)

Callers

nothing calls this directly

Calls 3

wsFunction · 0.85
parse_term_atomFunction · 0.85
negateMethod · 0.80

Tested by

no test coverage detected