remove parse code from main
This commit is contained in:
parent
6c26c0b538
commit
9822f3d770
@ -30,26 +30,6 @@ 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user