Module input

Module input 

Source
Expand description

Utilities to create a source of input to the parser.

Input must be implemented for the parser to fetch input. Make sure your needs aren’t covered by the BufferedInput.

Structs§

BufferedInput
A wrapper around an Iterator of chars with a buffer.

Enums§

SkipTabs
Behavior to adopt regarding treating tabs as whitespace.

Traits§

Input
Interface for a source of characters.

Functions§

is_alpha
Check whether the character is a digit, letter, _ or -.
is_blank
Check whether the character is a whitespace ( or \t).
is_blank_or_breakz
Check whether the character is nil, a linebreak or a whitespace.
is_break
Check whether the character is a line break (\r or \n).
is_breakz
Check whether the character is nil or a line break (\0, \r, \n).
is_digit
Check whether the character is an ascii digit.
is_flow
Check whether the character is a YAML flow character (one of ,[]{}).
is_z
Check whether the character is nil (\0).