pub fn parse_source_with_options(input: &str, options: ParseOptions) -> ParseExpand description
Parse a UTF-8 source string with explicit ParseOptions.
use maya_mel::{ParseMode, ParseOptions, parse_source_with_options};
let parse = parse_source_with_options(
"print \"hello\"",
ParseOptions {
mode: ParseMode::AllowTrailingStmtWithoutSemi,
..ParseOptions::default()
},
);
assert!(parse.errors.is_empty());