MCPcopy Create free account
hub / github.com/PRQL/prql / boolean

Function boolean

prqlc/prqlc-parser/src/lexer/mod.rs:554–558  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

552}
553
554fn 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
560fn null<'a>() -> impl Parser<'a, ParserInput<'a>, Literal, ParserError<'a>> {
561 just("null").to(Literal::Null).then_ignore(end_expr())

Callers 1

literalFunction · 0.85

Calls 3

end_exprFunction · 0.85
mapMethod · 0.80
toMethod · 0.80

Tested by

no test coverage detected