another step closer to a working oo system

This commit is contained in:
Torsten Ruger
2014-06-03 22:16:57 +03:00
parent ca19f5cb16
commit 72d4adc7af
10 changed files with 43 additions and 43 deletions

View File

@ -35,7 +35,7 @@ module Ast
"#{self.class.name}.new(#{name})"
end
def to_s
name
name.to_s
end
def attributes
[:name]
@ -54,7 +54,7 @@ module Ast
self.class.name + '.new("' + string + '")'
end
def to_s
'"' + string + '"'
'"' + string.to_s + '"'
end
def compile context , into
value = Vm::StringConstant.new(string)