struct Agave::Parser

Defined in:

parser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : IO) #

Initialize a parser to read from the given IO


[View source]

Instance Method Detail

def crlf #

[View source]
def read : Value #

Read an Agave::Value from the parser's IO

Example:

io = IO::Memory.new
io << "$3\r\n"
io << "foo\r\n"
io.rewind

Parser.new(io).read # => "foo"

[View source]
def read_array #

[View source]
def read_attributes #

[View source]
def read_boolean #

[View source]
def read_double #

[View source]
def read_map #

[View source]
def read_set #

[View source]
def read_string #

[View source]
def read_timestamp #

[View source]
def read_verbatim_string #

[View source]