Class: Lol

Inherits:
Object
  • Object
show all
Defined in:
lib/lol.rb

Instance Method Summary collapse

Constructor Details

#initialize(tree) ⇒ Lol

Returns a new instance of Lol.



5
6
7
8
# File 'lib/lol.rb', line 5

def initialize(tree)
  @tree = tree
  @variables = { }
end

Instance Method Details

#executeObject



10
11
12
# File 'lib/lol.rb', line 10

def execute
  execute_statement_list(@tree)
end