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

Function literal

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

Source from the content-addressed store, hash-verified

400}
401
402pub fn literal<'a>() -> impl Parser<'a, ParserInput<'a>, Literal, ParserError<'a>> {
403 choice((
404 binary_number(),
405 hexadecimal_number(),
406 octal_number(),
407 string(),
408 raw_string(),
409 value_and_unit(),
410 number(),
411 boolean(),
412 null(),
413 ))
414}
415
416// Helper to create number parsers with different bases
417fn parse_number_with_base<'a>(

Callers 1

tokenFunction · 0.85

Calls 9

binary_numberFunction · 0.85
hexadecimal_numberFunction · 0.85
octal_numberFunction · 0.85
stringFunction · 0.85
raw_stringFunction · 0.85
value_and_unitFunction · 0.85
numberFunction · 0.85
booleanFunction · 0.85
nullFunction · 0.85

Tested by

no test coverage detected