Class: Brainfucktt::Language::Loop

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

Overview

Instance Method Summary collapse

Methods inherited from Node

#elements, #inspect, #to_s

Instance Method Details

#run(parser) ⇒ Object

Run the loop



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

def run(parser)
  elements[0].run(parser) until parser.byte.empty?
end