Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove useless lines

  • Loading branch information...
commit b4204a610973e7258b67b23327b4a33395cf67d7 1 parent 977e0e5
@txus authored
Showing with 15 additions and 17 deletions.
  1. +14 −14 lib/lambra/bootstrap.rb
  2. +1 −3 lib/lambra/bytecode_compiler.rb
View
28 lib/lambra/bootstrap.rb
@@ -10,20 +10,20 @@ def call(*args)
end
end
-class Function
- def initialize(blk_env)
- @block_environment = blk_env
- @executable = blk_env.compiled_code
- end
-
- def call(*args)
- @executable.invoke(:anonymous, @executable.scope.module, Object.new, args, nil)
- end
-
- def to_proc
- Proc.__from_block__(@block_environment)
- end
-end
+# class Function
+# def initialize(blk_env)
+# @block_environment = blk_env
+# @executable = blk_env.compiled_code
+# end
+#
+# def call(*args)
+# @executable.invoke(:anonymous, @executable.scope.module, Object.new, args, nil)
+# end
+#
+# def to_proc
+# Proc.__from_block__(@block_environment)
+# end
+# end
class PrimitiveScope
def initialize(bindings, parent=nil)
View
4 lib/lambra/bytecode_compiler.rb
@@ -8,8 +8,6 @@ class BytecodeCompiler
def initialize(generator=nil)
@generator = generator || Rubinius::Generator.new
- # parent_scope = parent ? parent.scope : nil
- # @scope = Scope.new(@generator, parent_scope)
end
def compile(ast, debugging=false)
@@ -63,7 +61,7 @@ def visit_SpecialForm(car, cdr)
name = cdr.shift.name
cdr.first.accept(self)
-
+
local = g.state.scope.new_local(name)
g.set_local local.slot
when 'fn'
Please sign in to comment.
Something went wrong with that request. Please try again.