Skip to main content

parse_with_options

Function parse_with_options 

Source
pub fn parse_with_options(
    input: &str,
    options: ParseOptions,
) -> ParseResult<Statement>
Expand description

Parse a Cypher query string into a Statement AST under parse-affecting preview opt-ins (crate::lexer::ParseOptions: the ADR-0371 gate set the caller’s store resolved from RELATE_PREVIEW, threaded here by relate-front’s preview admission). crate::lexer::ParseOptions::default is the dialect floor: every option widens acceptance of a form the floor rejects, never narrows it, so the ungated parse is exactly parse_with_options with all options off. The ADR-0257 size cap rides the constructor (Parser::new’s first statement), the parser’s one tokenizing site – not this entry point.