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

Function variable

graphlite/src/ast/lexer.rs:1845–1850  ·  view source on GitHub ↗

Parse variables (starting with $)

(input: &str)

Source from the content-addressed store, hash-verified

1843
1844/// Parse variables (starting with $)
1845fn variable(input: &str) -> IResult<&str, &str> {
1846 map(
1847 recognize(pair(char('$'), identifier)),
1848 |s: &str| &s[1..], // Strip the $ prefix
1849 )(input)
1850}
1851
1852/// Parse identifiers
1853fn identifier(input: &str) -> IResult<&str, &str> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected