MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / float_literal

Function float_literal

graphlite/src/ast/lexer.rs:1753–1758  ·  view source on GitHub ↗

Parse float literals

(input: &str)

Source from the content-addressed store, hash-verified

1751
1752/// Parse float literals
1753fn float_literal(input: &str) -> IResult<&str, f64> {
1754 map(
1755 recognize(pair(opt(char('-')), pair(digit1, pair(char('.'), digit1)))),
1756 |s: &str| s.parse::<f64>().unwrap(),
1757 )(input)
1758}
1759
1760/// Parse timewindow literals
1761///

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.80

Tested by

no test coverage detected