module TreeStack::TreeElement

a class that includes NodeType is expected to have push method to include child nodes, and a class that includes LeafType module is expected to have concat method.

Attributes

depth[RW]

Public Instance Methods

accept(visitor, memo=nil) click to toggle source
# File lib/pseudohiki/treestack.rb, line 14
def accept(visitor, memo=nil)
  visitor.visit(self, memo)
end