require salaam doesn't work

This commit is contained in:
Torsten Ruger 2015-07-09 22:43:07 +03:00
parent 6961ae3030
commit bddc15d578

View File

@ -2,6 +2,7 @@ require 'opal/pixi'
require 'native'
require "main/lib/registers_view"
require "main/lib/space_view"
require "salama"
class MainView
@ -29,6 +30,26 @@ class MainView
end
animate.call
string_input = '"Hello again\n".putstring()'
machine = ::Virtual::Machine.boot
expressions = machine.compile_main string_input
if( expressions.first.is_a? Parfait::Method )
# stops the whole objectspace beeing tested
# with the class comes superclass and all methods
expressions.first.instance_variable_set :@for_class , nil
expressions.first.secret_layout_hammer
expressions.first.code.secret_layout_hammer
end
if( expressions.first.is_a? Virtual::Self )
# stops the whole objectspace beeing tested
# with the class comes superclass and all methods
expressions.first.type.instance_variable_set :@of_class , nil
end
is = Sof.write(expressions)
#puts is
is.gsub!("\n" , "*^*")
end
attr_reader :container