Skip to main content

parse_with_dialect

Function parse_with_dialect 

Source
pub fn parse_with_dialect(text: &str, dialect: Dialect) -> Parse
Expand description

Parse text as dialect into a lossless CST. Never panics; never loses input.

The dialect drives tokenization (so the lexer’s quoting/special-token rules match) and gates which dialect-specific statements and operators the grammar accepts.