class Syntaks::EBNF::Terminal(V)

Defined in:

syntaks/ebnf/terminal.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(matcher : Regex | String, action : Token -> V) #

[View source]

Class Method Detail

def self.build(matcher : Matcher, action : Token -> V) #

[View source]
def self.build(matcher : Matcher) #

[View source]

Instance Method Detail

def ==(other : Terminal) #

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

[View source]
def inspect(io) #

[View source]
def matcher : Matcher #

[View source]
def simple? : Bool #

[View source]
def to_s(io) #

[View source]