change the debug output to be more readable

This commit is contained in:
Torsten Ruger
2014-06-02 15:11:48 +03:00
parent 7c1c5431bc
commit 88a26414eb
9 changed files with 28 additions and 13 deletions

View File

@ -53,7 +53,9 @@ module Ast
def inspect
self.class.name + '.new("' + string + '")'
end
def to_s
'"' + string + '"'
end
def compile context , into
value = Vm::StringConstant.new(string)
context.object_space.add_object value