class Syntaks::EBNF::Opt(V)

Defined in:

syntaks/ebnf/opt.cr

Constructors

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(rule : Component(V)) #

[View source]

Instance Method Detail

def ==(other : Opt) #

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

[View source]
def inspect(io) #

[View source]
def rule : Component(V) #

[View source]
def simple? : Bool #

[View source]
def to_s(io) #

[View source]