Our boolean values are also constant, so we can do it the same way
(i: &'a str)
| 164 | |
| 165 | /// Our boolean values are also constant, so we can do it the same way |
| 166 | fn parse_bool<'a>(i: &'a str) -> IResult<&'a str, Atom, VerboseError<&'a str>> { |
| 167 | alt(( |
| 168 | map(tag("#t"), |_| Atom::Num(Wrapping(1))), |
| 169 | map(tag("#f"), |_| Atom::Num(Wrapping(0))), |
| 170 | ))(i) |
| 171 | } |
| 172 | |
| 173 | /// The next easiest thing to parse are keywords. |
| 174 | /// We introduce some error handling combinators: `context` for human readable errors |
nothing calls this directly
no outgoing calls
no test coverage detected