module nitvm
import vm
-import frontend
+import frontend::code_gen
# Create a tool context to handle options and paths
var toolcontext = new ToolContext
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