This commit is contained in:
Torsten Ruger
2014-06-26 17:52:15 +03:00
parent 33c62a7db1
commit 525f9d45c5
16 changed files with 134 additions and 54 deletions

View File

@ -5,7 +5,7 @@ module Ast
class IntegerExpression < Expression
# attr_reader :value
def compile context
Vm::IntegerConstant.new value
Virtual::IntegerConstant.new value
end
end
@ -34,7 +34,7 @@ module Ast
class StringExpression < Expression
# attr_reader :string
def compile context
value = Vm::StringConstant.new(string)
value = Virtual::StringConstant.new(string)
context.object_space.add_object value
value
end