src/Tools/code/code_target.ML
changeset 27372 29a09358953f
parent 27353 71c4dd53d4cb
child 27436 9581777503e9
equal deleted inserted replaced
27371:f89aa7bd4602 27372:29a09358953f
  1841 fun eval_term reff = eval CodeThingol.eval_term I reff;
  1841 fun eval_term reff = eval CodeThingol.eval_term I reff;
  1842 
  1842 
  1843 
  1843 
  1844 (* instrumentalization by antiquotation *)
  1844 (* instrumentalization by antiquotation *)
  1845 
  1845 
  1846 val ml_code_antiq = (Scan.state >> Context.theory_of) -- Scan.repeat1 Args.term >> (fn (thy, ts) =>
  1846 val ml_code_antiq = Args.theory -- Scan.repeat1 Args.term >> (fn (thy, ts) =>
  1847   let
  1847   let
  1848     val cs = map (CodeUnit.check_const thy) ts;
  1848     val cs = map (CodeUnit.check_const thy) ts;
  1849     val (cs', program) = CodeThingol.consts_program thy cs;
  1849     val (cs', program) = CodeThingol.consts_program thy cs;
  1850   in sml_code_of thy program cs' ^ " ()" end);
  1850   in sml_code_of thy program cs' ^ " ()" end);
  1851 
  1851