contrib/online_ide: fix import of interpreter modules
[nit.git] / contrib / online_ide / sources / nit / pnacl_nit.nit
index 8274f44..f4a02f2 100644 (file)
 # A version of the naive Nit interpreter for PNaCl.
 module pnacl_nit
 
-import naive_interpreter
-import debugger
+import interpreter::naive_interpreter
+import interpreter::debugger
 import pnacl
 intrude import toolcontext
 intrude import modelbuilder
 intrude import standard::file
 
-redef interface Object
-       # We redefine exit to start a new thread before killing the one that called exit.
-       redef fun exit(exit_value: Int)
-       do
-               var dictionary = new PepperDictionary
-               dictionary["exit"] = exit_value
-               dictionary["exit_thread"] = "A new thread has been made available for Nit."
-               create_thread
-               app.post_dictionary dictionary
-               exit_thread exit_value
-       end
+# We redefine exit to start a new thread before killing the one that called exit.
+redef fun exit(exit_value: Int)
+do
+       var dictionary = new PepperDictionary
+       dictionary["exit"] = exit_value
+       dictionary["exit_thread"] = "A new thread has been made available for Nit."
+       create_thread
+       app.post_dictionary dictionary
+       exit_thread exit_value
 end
 
 #hack realpath.