rename Mystery

just unknown, mystery should be more difficult to find out.
After all we keep run time info, so just need unknown at compile time
This commit is contained in:
Torsten Ruger
2015-06-11 07:04:14 +02:00
parent d8fa266b5d
commit ee6f9d733b
9 changed files with 24 additions and 23 deletions

View File

@ -68,6 +68,7 @@ module Virtual
# attr_reader :string
def self.compile_string expression , method
# Clearly a TODO here to implement strings rather than reusing symbols
value = expression.string.to_sym
to = Return.new(Reference , value)
method.info.constants << value
@ -94,7 +95,7 @@ module Virtual
def self.compile_variable expression, method
method.info.add_code InstanceGet.new(expression.name)
Return.new( Mystery )
Return.new( Unknown )
end
end
end