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

Function from_clause

graphlite/src/ast/parser.rs:1007–1018  ·  view source on GitHub ↗

Parse FROM clause: FROM graph_expression [match_statement] (, graph_expression [match_statement])

(tokens: &[Token])

Source from the content-addressed store, hash-verified

1005
1006/// Parse FROM clause: FROM graph_expression [match_statement] (, graph_expression [match_statement])*
1007fn from_clause(tokens: &[Token]) -> IResult<&[Token], FromClause> {
1008 map(
1009 tuple((
1010 expect_token(Token::From),
1011 separated_list1(expect_token(Token::Comma), from_graph_expression),
1012 )),
1013 |(_, graph_expressions)| FromClause {
1014 graph_expressions,
1015 location: Location::default(),
1016 },
1017 )(tokens)
1018}
1019
1020/// Parse FROM graph expression: graph_expression [match_statement] OR just match_statement
1021///

Callers

nothing calls this directly

Calls 1

expect_tokenFunction · 0.85

Tested by

no test coverage detected