class Syntaks::EBNF::Alt(L, R, V)

Defined in:

syntaks/ebnf/alt.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Syntaks::EBNF::Component(V)

as_component as_component, call(state : State, ctx : Context = EmptyContext.new) : Success(V) | Failure | Error call, call_impl(state : State, ctx : Context = EmptyContext.new) : Success(V) | Failure | Error call_impl, short_name short_name, simple? : Bool simple?

Constructor Detail

def self.new(left : Component(L), right : Component(R), action : V -> V = ->(v : V) do v end) #

[View source]

Class Method Detail

def self.build(left : Component(L), right : Component(R)) #

[View source]
def self.build(*args) #

[View source]

Instance Method Detail

def ==(other : Alt) #

[View source]
def call_impl(state : State, ctx : Context = EmptyContext.new) : Success(V) | Failure | Error #

[View source]
def inspect(io) #

[View source]
def left : Component(L) #

[View source]
def right : Component(R) #

[View source]
def simple? : Bool #

[View source]
def to_s(io) #

[View source]