Enum pobsd_parser::parser::ParsingMode
source · pub enum ParsingMode {
Strict,
Relaxed,
}
Expand description
The ParsingMode
enum is used to represent the two parsing modes
supported by Parser
:
- a strict mode in which the parsing will stop if a parsing error occurs returning the games processed before the error as well as the line in the input (file or string) where the error occured;
- a relaxed mode in which the parsing will continue even after an error is encountered, the parsing resuming when reaching the next game after the parsing error ; it returns all the games that have been parsed as well as the lines that were ignored due to parsing errors.