Skip to content
Snippets Groups Projects
Commit 885b044b authored by Kilyan Le Gallic's avatar Kilyan Le Gallic Committed by Loïc Correnson
Browse files

[wp] PoC for opening module, TBD

parent 64d43991
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,21 @@ let open_theories_of_user (env) (theories) = ...@@ -78,6 +78,21 @@ let open_theories_of_user (env) (theories) =
) (extract_last_segments theories) ) (extract_last_segments theories)
let open_modules_of_user (env) (modules) =
List.iter
(fun (theory_name, theory_path) ->
try
let pmodule = (W.Pmodule.read_module env (theory_path) (theory_name)) in
List.iter ( fun (modunit : W.Pmodule.mod_unit) ->
L.debug ~level:0 "Meta";
) pmodule.mod_units;
with W.Env.LibraryNotFound paths ->
L.debug ~level:0 "Library %s not found at %s " theory_name (String.concat "." paths);
) (extract_last_segments modules)
let () = let () =
Boot.Main.extend Boot.Main.extend
begin fun () -> begin fun () ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment