equal
deleted
inserted
replaced
932 |> split_list |
932 |> split_list |
933 |> (fn (decls, body) => (flat decls, body)) |
933 |> (fn (decls, body) => (flat decls, body)) |
934 val stmt_names' = (map o try) |
934 val stmt_names' = (map o try) |
935 (deresolver (if is_some module_name then the_list module_name else [])) stmt_names; |
935 (deresolver (if is_some module_name then the_list module_name else [])) stmt_names; |
936 val p = Pretty.chunks2 (map snd includes @ snd (print_nodes [] nodes)); |
936 val p = Pretty.chunks2 (map snd includes @ snd (print_nodes [] nodes)); |
|
937 fun write width NONE = writeln_pretty width |
|
938 | write width (SOME p) = File.write p o string_of_pretty width; |
937 in |
939 in |
938 Code_Target.mk_serialization |
940 Code_Target.mk_serialization write (fn width => (rpair stmt_names' o string_of_pretty width)) p |
939 (fn width => (fn NONE => writeln_pretty width | SOME file => File.write file o string_of_pretty width)) |
|
940 (fn width => (rpair stmt_names' o string_of_pretty width)) p |
|
941 end; |
941 end; |
942 |
942 |
943 end; (*local*) |
943 end; (*local*) |
944 |
944 |
945 |
945 |