Skip to main content

parse_with

Function parse_with 

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

Parse under a chosen dialect.

parse admits every vendor extension, which is what a tool reading files it did not write needs. Dialect::STRICT is OMG IDL 4.2 and nothing else: a file that parses under it is one every vendor’s compiler also reads. Spec §3.5.