nmodules.add(mmodule2nmodule[mm])
end
toolcontext.run_phases(nmodules)
+
+ if toolcontext.opt_only_metamodel.value then
+ self.toolcontext.info("*** ONLY METAMODEL", 1)
+ exit(0)
+ end
end
# Instantiate a modelbuilder for a model and a toolcontext
self.toolcontext.info("*** END PARSE: {time1-time0} ***", 2)
self.toolcontext.check_errors
+
+ if toolcontext.opt_only_parse.value then
+ self.toolcontext.info("*** ONLY PARSE...", 1)
+ exit(0)
+ end
+
return mmodules
end
var mmodules = modelbuilder.parse([progname])
modelbuilder.run_phases
-if toolcontext.opt_only_metamodel.value then exit(0)
-
# Here we launch the interpreter on the main module
assert mmodules.length == 1
var mainmodule = mmodules.first
# Here we load an process all modules passed on the command line
var mmodules = modelbuilder.parse([progname])
+
if mmodules.is_empty then return
modelbuilder.run_phases
-if toolcontext.opt_only_metamodel.value then exit(0)
-
# Here we launch the interpreter on the main module
assert mmodules.length == 1
var mainmodule = mmodules.first