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

Function identifier

graphlite/src/ast/lexer.rs:1853–1858  ·  view source on GitHub ↗

Parse identifiers

(input: &str)

Source from the content-addressed store, hash-verified

1851
1852/// Parse identifiers
1853fn identifier(input: &str) -> IResult<&str, &str> {
1854 recognize(pair(
1855 alt((alpha1, tag("_"))),
1856 many0(alt((alphanumeric1, tag("_")))),
1857 ))(input)
1858}
1859
1860/// Public function to tokenize input
1861pub fn tokenize(input: &str) -> Result<Vec<Token>, String> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected