Struct snoot::Result [] [src]

pub struct Result {
    pub roots: Vec<Sexpr>,
    pub diagnostics: DiagnosticBag,
}

The result of a text parse.

Since Snoot has good error recovery, parses can produce both valid trees, and error messages.

Fields

A list of Sexpr tree roots

A bag of diagnostics collected during parse.

All parse errors in the bag are ErrorLevel::Error.