nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/model: fix mdoc_or_fallback for MClasses and MProperties
[nit.git]
/
src
/
nitvm.nit
diff --git
a/src/nitvm.nit
b/src/nitvm.nit
index
c0887db
..
e81b20d
100644
(file)
--- a/
src/nitvm.nit
+++ b/
src/nitvm.nit
@@
-18,6
+18,7
@@
module nitvm
import vm
module nitvm
import vm
+import frontend
# Create a tool context to handle options and paths
var toolcontext = new ToolContext
# Create a tool context to handle options and paths
var toolcontext = new ToolContext
@@
-44,7
+45,7
@@
var mmodules = modelbuilder.parse([progname])
mmodules.add_all modelbuilder.parse(opt_mixins.value)
modelbuilder.run_phases
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
var mainmodule: nullable MModule
@@
-59,4
+60,4
@@
end
var self_mm = mainmodule
var self_args = arguments
var self_mm = mainmodule
var self_args = arguments
-modelbuilder.run_naive_interpreter(self_mm, self_args)
+modelbuilder.run_virtual_machine(self_mm, self_args)