module nitmetrics
import modelbuilder
-import exprbuilder
+import frontend
import metrics
# Create a tool context to handle options and paths
var modelbuilder = new ModelBuilder(model, toolcontext)
# Here we load an process all modules passed on the command line
-var mmodules = modelbuilder.parse_and_build(arguments)
-modelbuilder.full_propdef_semantic_analysis
+var mmodules = modelbuilder.parse(arguments)
+modelbuilder.run_phases
if mmodules.length == 0 then return
compute_inheritance_metrics(toolcontext, model)
end
-# Genericity usage metrics
-if all or toolcontext.opt_genericity.value then
- print ""
- compute_genericity_metrics(toolcontext, model)
-end
-
# Refinement usage metrics
if all or toolcontext.opt_refinement.value then
print ""