MCPcopy Create free account
hub / github.com/cosdata/cosdata / parse_identifier

Function parse_identifier

src/cosql/common.rs:22–27  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

20}
21
22pub fn parse_identifier(input: &str) -> IResult<&str, &str> {
23 recognize(pair(
24 alt((alpha1, tag("_"))),
25 many0(alt((alphanumeric1, tag("_")))),
26 ))(input)
27}
28
29pub fn parse_string_literal(input: &str) -> IResult<&str, &str> {
30 delimited(char('"'), take_while1(|c| c != '"'), char('"'))(input)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected