Skip to main content

parse_many

Function parse_many 

Source
pub fn parse_many(input: &str) -> Result<Vec<Statement>, QueryError>
Expand description

The real implementation behind lib.rs’s public parse_many (Phase 3 cutover) – parses a ;-separated batch of one or more statements ("CREATE (a); CREATE (b); MATCH (n) RETURN n"). queries : query (SEMI query)* EOF is a mars-specific grammar extension (see grammar/README.md), including stripping a single genuinely-trailing ; in Rust before parsing – the grammar rule itself has no trailing SEMI?, to avoid a queries/script prefix ambiguity.