class Parser

Direct Known Subclasses

Defined in:

parsing/primitive.cr

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(io : IO) #

[View source]

Instance Method Detail

def char(sample : Array(Char) | Char | Range(Char, Char) | Array(Range(Char, Char))) : Char | Nil #

[View source]
def checkpoint(name = nil, &) #

[View source]
def consume_until(sample : String) : String #

[View source]
def multiline_whitespace #

[View source]
def one_or_more(block : -> V | Nil, separated_by : Proc(S) | Nil = nil) : Array(V) | Nil forall V, S #

[View source]
def or(*alternatives) #

[View source]
def read_fully? #

[View source]
def rollback #

[View source]
def str(sample : Array(String) | String) : String | Nil #

[View source]
def whitespace #

[View source]
def zero_or_more(block : -> V | Nil, separated_by : Proc(S) | Nil = nil) : Array(V) forall V, S #

[View source]

Macro Detail

macro rule(definition) #

[View source]