class Cabbage::Grammar(T)
- Cabbage::Grammar(T)
- Reference
- Object
Defined in:
cabbage/grammar.crConstructors
Instance Method Summary
- #lr0(key : Tuple(Rule(T), UInt8))
- #parse(input)
- #rules : Hash(Nonterminal, Array(Rule(T)))
- #rules=(rules : Hash(Nonterminal, Array(Rule(T))))
- #start : GrammarSymbol
- #start=(start : GrammarSymbol)
- #terminal : Proc(Terminal, T)
- #terminal=(terminal : Proc(Terminal, T))
Constructor Detail
def self.new(start : Char | Symbol, terminal : Char -> T, rules : Hash(Symbol, Array(Cabbage::Rule(T))))
#