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

Function vector_literal

graphlite/src/ast/parser.rs:2586–2595  ·  view source on GitHub ↗

Parse vector literal

(tokens: &[Token])

Source from the content-addressed store, hash-verified

2584
2585/// Parse vector literal
2586fn vector_literal(tokens: &[Token]) -> IResult<&[Token], Vec<f64>> {
2587 if let Some(Token::Vector(v)) = tokens.first() {
2588 Ok((&tokens[1..], v.clone()))
2589 } else {
2590 Err(nom::Err::Error(nom::error::Error::new(
2591 tokens,
2592 nom::error::ErrorKind::Tag,
2593 )))
2594 }
2595}
2596
2597/// Parse catalog statement (DDL operations)
2598fn catalog_statement(tokens: &[Token]) -> IResult<&[Token], CatalogStatement> {

Callers

nothing calls this directly

Calls 3

ErrorEnum · 0.85
cloneMethod · 0.80
firstMethod · 0.45

Tested by

no test coverage detected