class Syntaks::EBNF::NonTerminal(R, V)

Defined in:

syntaks/ebnf/non_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(name : String, referenced_rule : -> Syntaks::EBNF::Component(R), action : R -> V) #

[View source]

Class Method Detail

def self.build(name : String, referenced_rule : -> Component(R)) #

[View source]
def self.build(name : String, referenced_rule : -> Component(R), &action : R -> V) #

[View source]

Instance Method Detail

def ==(other : NonTerminal) #

[View source]
def action : R -> V #

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

[View source]
def inspect(io) #

[View source]
def name : String #

[View source]
def referenced_rule : -> Component(R) #

getter referenced_rule : (-> Component(V)) | (-> Terminal(V)) | (-> NonTerminal(V))


[View source]
def simple? : Bool #

[View source]
def to_s(io) #

[View source]