Class: Brainfucktt::Language::OutputByte

Inherits:
Node
  • Object
show all
Defined in:
lib/brainfucktt/language/output_byte.rb

Overview

.

Instance Method Summary collapse

Methods inherited from Node

#elements, #inspect, #to_s

Instance Method Details

#run(parser) ⇒ Object

Output the byte at the pointer as an ASCII character.



10
11
12
# File 'lib/brainfucktt/language/output_byte.rb', line 10

def run(parser)
  parser.output.print parser.byte.to_s
end