Module yaml_rust2::scanner
source · Expand description
Home to the YAML Scanner.
The scanner is the lowest-level parsing utility. It is the lexer / tokenizer, reading input a
character at a time and emitting tokens that can later be interpreted by the crate::parser
to check for more context and validity.
Due to the grammar of YAML, the scanner has to have some context and is not error-free.
Structs§
- A location in a yaml document.
- An error that occurred while scanning.
- The YAML scanner.
- A scanner token.
Enums§
- Chomping, how final line breaks and trailing empty lines are interpreted.
- The encoding of the input. Currently, only UTF-8 is supported.
- The style as which the scalar was written in the YAML document.
- The contents of a scanner token.
Type Aliases§
- A convenience alias for scanner functions that may fail without returning a value.