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

Function parse_integer

graphlite/src/ast/parser.rs:5101–5110  ·  view source on GitHub ↗

Parse integer

(tokens: &[Token])

Source from the content-addressed store, hash-verified

5099
5100/// Parse integer
5101fn parse_integer(tokens: &[Token]) -> IResult<&[Token], i64> {
5102 if let Some((Token::Integer(i), rest)) = tokens.split_first() {
5103 Ok((rest, *i))
5104 } else {
5105 Err(nom::Err::Error(nom::error::Error::new(
5106 tokens,
5107 nom::error::ErrorKind::Tag,
5108 )))
5109 }
5110}
5111
5112/// Parse table name
5113fn parse_table_name(tokens: &[Token]) -> IResult<&[Token], String> {

Callers

nothing calls this directly

Calls 1

ErrorEnum · 0.85

Tested by

no test coverage detected