Class: SyntaxTree::Bf::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree/bf/nodes.rb

Direct Known Subclasses

Decrement, Increment, Input, Loop, Output, Root, ShiftLeft, ShiftRight

Instance Method Summary collapse

Instance Method Details

#format(q) ⇒ Object



6
7
8
# File 'lib/syntax_tree/bf/nodes.rb', line 6

def format(q)
  Format.new(q).visit(self)
end

#pretty_print(q) ⇒ Object



10
11
12
# File 'lib/syntax_tree/bf/nodes.rb', line 10

def pretty_print(q)
  PrettyPrint.new(q).visit(self)
end