lib/lasp.rb in lasp-0.8.0 vs lib/lasp.rb in lasp-0.9.0

- old
+ new

@@ -1,8 +1,10 @@ require "lasp/version" -require "lasp/eval" +require "lasp/env" require "lasp/parser" +require "lasp/interpreter" +require "lasp/ext" module Lasp STDLIB_PATH = File.expand_path("../lasp/stdlib.lasp", __FILE__) module_function @@ -10,10 +12,10 @@ def execute_file(path) execute("(do #{File.read(path)})") end def execute(program, env = global_env) - Lasp::eval(Parser.new.parse(program), env) + Interpreter.eval(Parser.parse(program), env) end def load_stdlib! Lasp::execute_file(STDLIB_PATH) end