pub struct StandardReporter {
    pub training: bool,
    pub trained: HashMap<(usize, String), String>,
    pub scriptinopt: Option<BufReader<File>>,
    pub scriptoutopt: Option<File>,
}
Expand description

these objects implement the ErrHandler trait. They are used in the RuntimeParser::parse_stdio, RuntimeParser::parse_stdio_train and RuntimeParser::train_from_script functions.

Fields

training: booltrained: HashMap<(usize, String), String>scriptinopt: Option<BufReader<File>>scriptoutopt: Option<File>

Implementations

creates default standard reporter, used by parse_stdio (does not train)

creates a stdio error handler with interactive training, takes as argument parser file name, to create script for future retraining.

creates a stdio error handler that trains (non-interactively) from a previously created script. It’s the user’s responsibility to match the script file with the input source.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.