(toks: &[Tok<'_>])
| 74 | } |
| 75 | |
| 76 | pub(super) fn parse_path(toks: &[Tok<'_>]) -> Option<NodedbStatement> { |
| 77 | let src = quoted_after(toks, "FROM")?; |
| 78 | let dst = quoted_after(toks, "TO")?; |
| 79 | let max_depth = usize_after(toks, "MAX_DEPTH").unwrap_or(10); |
| 80 | let edge_label = quoted_after(toks, "LABEL"); |
| 81 | Some(NodedbStatement::Graph(GraphStmt::GraphPath { |
| 82 | src, |
| 83 | dst, |
| 84 | max_depth, |
| 85 | edge_label, |
| 86 | })) |
| 87 | } |
| 88 | |
| 89 | pub(super) fn parse_algo(toks: &[Tok<'_>]) -> Option<NodedbStatement> { |
| 90 | let algorithm = |
no test coverage detected