Class: Brainfucktt::Language::IncrementByte

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

Overview

+

Instance Method Summary collapse

Methods inherited from Node

#elements, #elements_with_treetop, #inspect, #to_s

Instance Method Details

#run(parser) ⇒ Object

Increment the byte at the pointer.



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

def run(parser)
  parser.byte += 1
end