src/Tools/Code/code_ml.ML
changeset 48568 084cd758a8ab
parent 48072 ace701efe203
child 50022 286dfcab9833
equal deleted inserted replaced
48566:6e5702395491 48568:084cd758a8ab
   809       @ map snd (Code_Namespace.print_hierarchical {
   809       @ map snd (Code_Namespace.print_hierarchical {
   810         print_module = print_module, print_stmt = print_stmt,
   810         print_module = print_module, print_stmt = print_stmt,
   811         lift_markup = apsnd } ml_program));
   811         lift_markup = apsnd } ml_program));
   812     fun write width NONE = writeln o format [] width
   812     fun write width NONE = writeln o format [] width
   813       | write width (SOME p) = File.write p o format [] width;
   813       | write width (SOME p) = File.write p o format [] width;
       
   814     fun prepare names width p = ([("", format names width p)], try (deresolver []));
   814   in
   815   in
   815     Code_Target.serialization write (rpair (try (deresolver [])) ooo format) p
   816     Code_Target.serialization write prepare p
   816   end;
   817   end;
   817 
   818 
   818 val serializer_sml : Code_Target.serializer =
   819 val serializer_sml : Code_Target.serializer =
   819   Code_Target.parse_args (Scan.optional (Args.$$$ "no_signatures" >> K false) true
   820   Code_Target.parse_args (Scan.optional (Args.$$$ "no_signatures" >> K false) true
   820   >> (fn with_signatures => serialize_ml print_sml_module print_sml_stmt with_signatures));
   821   >> (fn with_signatures => serialize_ml print_sml_module print_sml_stmt with_signatures));