()
| 552 | } |
| 553 | |
| 554 | fn boolean<'a>() -> impl Parser<'a, ParserInput<'a>, Literal, ParserError<'a>> { |
| 555 | choice((just("true").to(true), just("false").to(false))) |
| 556 | .then_ignore(end_expr()) |
| 557 | .map(Literal::Boolean) |
| 558 | } |
| 559 | |
| 560 | fn null<'a>() -> impl Parser<'a, ParserInput<'a>, Literal, ParserError<'a>> { |
| 561 | just("null").to(Literal::Null).then_ignore(end_expr()) |