pub fn parse(input: &str) -> Result<ParseTree, GremlinParseError>Expand description
Parses a Gremlin query list — one or more ;-separated traversals — the
grammar’s top-level queryList entry rule.
Returns the parse tree on success. If the input is syntactically invalid,
returns GremlinParseError::Syntax (which still carries the recovered
tree), or GremlinParseError::Runtime on an unrecoverable error.
§Errors
Returns GremlinParseError if the input is not valid Gremlin.