Class: Sol::Interpreter

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

Instance Method Summary collapse

Constructor Details

#initializeInterpreter

Returns a new instance of Interpreter.



8
9
10
11
12
# File 'lib/sol/interpreter.rb', line 8

def initialize

	@parser = Sol::Parser.new

end

Instance Method Details

#eval(input) ⇒ Object



14
15
16
17
18
# File 'lib/sol/interpreter.rb', line 14

def eval(input)

	@parser.parse(input).eval(RuntimeModel::Runtime)

end