class Cabbage::DerivationNode(T)

Included Modules

Defined in:

cabbage/derivation.cr

Constructors

Instance Method Summary

Instance methods inherited from module Cabbage::Derivation(T)

add_another_derivation(previous, child) add_another_derivation, add_derivation(previous, child) add_derivation, add_second_derivation(previous, child) add_second_derivation, child : Item(T) | DerivationNode(T) | Nil child, child=(child : Item(T) | DerivationNode(T) | Nil) child=, derivation_list? derivation_list?, evaluate(prev, &) evaluate, next_derivation : Item(T) | DerivationNode(T) | Nil next_derivation, next_derivation=(next_derivation : Item(T) | DerivationNode(T) | Nil) next_derivation=, previous : Item(T) | DerivationNode(T) | Nil previous, previous=(previous : Item(T) | DerivationNode(T) | Nil) previous=, rhs rhs, same?(previous, child) same?, walk walk

Constructor Detail

def self.new(previous : Cabbage::DerivationNode(T) | Cabbage::Item(T) | Nil, child : Cabbage::DerivationNode(T) | Cabbage::Item(T) | Nil, next_derivation : Cabbage::DerivationNode(T) | Cabbage::Item(T) | Nil) #

[View source]

Instance Method Detail

def lhs #

[View source]
def nonterminal_action(item) #

[View source]
def rule! #

[View source]
def tag #

[View source]
def terminal_action(char) #

[View source]