src/Tools/Code/code_ml.ML
changeset 69950 dbc2426a600d
parent 69926 110fff287217
child 70352 ce3c1d8791eb
equal deleted inserted replaced
69949:a7a0115061ec 69950:dbc2426a600d
   887     (target_OCaml, {serializer = serializer_ocaml, literals = literals_ocaml,
   887     (target_OCaml, {serializer = serializer_ocaml, literals = literals_ocaml,
   888       check = {env_var = "ISABELLE_OCAMLEXEC",
   888       check = {env_var = "ISABELLE_OCAMLEXEC",
   889         make_destination = fn p => Path.append p (Path.explode "ROOT.ml")
   889         make_destination = fn p => Path.append p (Path.explode "ROOT.ml")
   890           (*extension demanded by OCaml compiler*),
   890           (*extension demanded by OCaml compiler*),
   891         make_command = fn _ =>
   891         make_command = fn _ =>
   892           "\"$ISABELLE_OCAMLFIND\" ocamlopt -w pu -package zarith -linkpkg ROOT.ml"},
   892           "\"$ISABELLE_OCAMLFIND\" ocamlopt -w pu -package zarith -linkpkg ROOT.ml </dev/null"},
   893       evaluation_args = []})
   893       evaluation_args = []})
   894   #> Code_Target.set_printings (Type_Constructor ("fun",
   894   #> Code_Target.set_printings (Type_Constructor ("fun",
   895     [(target_SML, SOME (2, fun_syntax)), (target_OCaml, SOME (2, fun_syntax))]))
   895     [(target_SML, SOME (2, fun_syntax)), (target_OCaml, SOME (2, fun_syntax))]))
   896   #> fold (Code_Target.add_reserved target_SML) ML_Syntax.reserved_names
   896   #> fold (Code_Target.add_reserved target_SML) ML_Syntax.reserved_names
   897   #> fold (Code_Target.add_reserved target_SML)
   897   #> fold (Code_Target.add_reserved target_SML)