src/Tools/code/code_target.ML
changeset 27868 a28b3cd0077b
parent 27845 141772c866c9
child 28054 2b84d34c5d02
equal deleted inserted replaced
27867:6e6a159671d4 27868:a28b3cd0077b
  2319     ((filter OuterLex.is_proper o OuterSyntax.scan Position.none) cmd)
  2319     ((filter OuterLex.is_proper o OuterSyntax.scan Position.none) cmd)
  2320    of SOME f => (writeln "Now generating code..."; f (theory thyname))
  2320    of SOME f => (writeln "Now generating code..."; f (theory thyname))
  2321     | NONE => error ("Bad directive " ^ quote cmd)))
  2321     | NONE => error ("Bad directive " ^ quote cmd)))
  2322   handle TOPLEVEL_ERROR => OS.Process.exit OS.Process.failure;
  2322   handle TOPLEVEL_ERROR => OS.Process.exit OS.Process.failure;
  2323 
  2323 
  2324 val _ = ML_Context.add_antiq "code" (Args.term >> ml_code_antiq);
  2324 val _ = ML_Context.add_antiq "code" (fn _ => Args.term >> ml_code_antiq);
  2325 
  2325 
  2326 
  2326 
  2327 (* serializer setup, including serializer defaults *)
  2327 (* serializer setup, including serializer defaults *)
  2328 
  2328 
  2329 val setup =
  2329 val setup =