Skip to main content

parse_script

Function parse_script 

Source
pub fn parse_script(text: &str) -> Result<Vec<Command>, ScriptError>
Expand description

Parse a .dbg script. Line-oriented; # starts a comment; blank lines are skipped.

ยงErrors

Returns ScriptError naming the offending line for an unknown verb or a malformed argument. Unknown verbs are an error rather than a skip: a silently-ignored line is a script that appears to test something it does not.