src/Pure/ML/ml_compiler2.ML
author paulson <lp15@cam.ac.uk>
Thu, 04 Apr 2019 16:38:45 +0100
changeset 70045 7b6add80e3a5
parent 62944 3ee643c5ed00
child 74148 a97d5356f1d9
permissions -rw-r--r--
fixed markup in Poly_Mapping; Free_Abelian_Groups (but not yet imported by Algebra!)

(*  Title:      Pure/ML/ml_compiler2.ML
    Author:     Makarius

Isabelle/ML file operations.
*)

val {ML_file, ML_file_debug, ML_file_no_debug} =
  ML_Compiler0.ML_file_operations (fn opt_debug => fn file =>
    let val flags = ML_Compiler.verbose true (ML_Compiler.debug_flags opt_debug) in
      ML_Context.eval_file flags (Path.explode file)
        handle ERROR msg => (writeln msg; error "ML error")
    end);

val use = ML_file;