Struct cfg_lib::config::Parser [−][src]
pub struct Parser<'a> { /* fields omitted */ }
Expand description
This implements the low-level parser of CFG source text.
Implementations
Return a new instance of the parser using the provided reader for the source text. The first token is read.
Return true
if the parser has reached the end of the source, else false
.
Parse the contents of a configuration, which should be a mapping or a list, and return the parsed value or a syntax error.
Parse an expression and return an AST node representing it, or a syntax error.