return getcwd.join_path(path).simplify_path
end
- # loaded module by absolute path
- private var loaded_nmodules = new HashMap[String, AModule]
-
# Try to load a module AST using a path.
# Display an error if there is a problem (IO / lexer / parser) and return null
fun load_module_ast(filename: String): nullable AModule
return null
end
- var module_path = module_absolute_path(filename)
- if loaded_nmodules.keys.has(module_path) then
- return loaded_nmodules[module_path]
- end
-
self.toolcontext.info("load module {filename}", 2)
# Load the file
return null
end
- loaded_nmodules[module_path] = nmodule
return nmodule
end