VT::Parser
src/vt/parser.cr
Constructors
new(handler : Handler)
Initializes a new Paul Williams state machine that dispatches events
to the provided handler.
Instance methods
Parses a slice of bytes, synchronously dispatching events to the handler.
Consumes from an IO stream until EOF, parsing byte chunks as they arrive. The default chunk buffer size is 4096 bytes.
reset
Forcefully resets the parser back to the ground state and clears all intermediate and parameter state.