class Syntaks::EBNF::NonTerminal(R, V)
- Syntaks::EBNF::NonTerminal(R, V)
- Syntaks::EBNF::Component(V)
- Syntaks::EBNF::AbstractComponent
- Reference
- Object
Defined in:
syntaks/ebnf/non_terminal.crConstructors
Class Method Summary
- .build(name : String, referenced_rule : -> Component(R))
- .build(name : String, referenced_rule : -> Component(R), &action : R -> V)
Instance Method Summary
- #==(other : NonTerminal)
- #action : R -> V
- #call_impl(state : State, ctx : Context = EmptyContext.new) : Success(V) | Failure | Error
- #inspect(io)
- #name : String
-
#referenced_rule : -> Component(R)
getter referenced_rule : (-> Component(V)) | (-> Terminal(V)) | (-> NonTerminal(V))
- #simple? : Bool
- #to_s(io)
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)
#
Class Method Detail
Instance Method Detail
getter referenced_rule : (-> Component(V)) | (-> Terminal(V)) | (-> NonTerminal(V))