Expand description
Parsers for reading data in hini format.
Low level nom parsers for hini file data, and a simple DeclIterator built atop them.
Structs
- An assignment declaration with optional comment.
- An
Iterator
implementation over hini Decls. - A section heading declaration with optional comment.
Enums
- A single declaration from a hini file.
Constants
- Characters that are not allowed to comprise names or values in hini declarations.
Functions
- Parse an assignment, optional comment, and newline (whitespace is allowed and ignored in the given locations):
name = value # comment
- Parse the next declaration out of the string, whatever it may be. Returns
None
at the end of the input. - Parse optional whitespace, a comment if present, and a newline.
- Parse a section name, optional comment, and newline (whitespace is allowed and ignored in the given locations):
[ name ] # comment