Merge: doc: fixed some typos and other misc. corrections
[nit.git] / src / nitvm.nit
index fe12c15..dae856b 100644 (file)
@@ -18,7 +18,7 @@
 module nitvm
 
 import vm
-import frontend
+import frontend::code_gen
 
 # Create a tool context to handle options and paths
 var toolcontext = new ToolContext
@@ -45,7 +45,7 @@ var mmodules = modelbuilder.parse([progname])
 mmodules.add_all modelbuilder.parse(opt_mixins.value)
 modelbuilder.run_phases
 
-if toolcontext.opt_only_metamodel.value then exit(0)
+if toolcontext.opt_only_metamodel.value then toolcontext.quit
 
 var mainmodule: nullable MModule
 
@@ -60,4 +60,4 @@ end
 var self_mm = mainmodule
 var self_args = arguments
 
-modelbuilder.run_naive_interpreter(self_mm, self_args)
+modelbuilder.run_virtual_machine(self_mm, self_args)