src/Tools/Code/code_eval.ML
changeset 38669 9ff76d0f0610
parent 37950 bc285d91041e
child 38921 15f8cffdbf5d
equal deleted inserted replaced
38668:e8236c4aff16 38669:9ff76d0f0610
    60         val (value_code, [SOME value_name']) = Code_ML.evaluation_code_of thy
    60         val (value_code, [SOME value_name']) = Code_ML.evaluation_code_of thy
    61           (the_default target some_target) "" naming program' [value_name];
    61           (the_default target some_target) "" naming program' [value_name];
    62         val sml_code = "let\n" ^ value_code ^ "\nin " ^ value_name'
    62         val sml_code = "let\n" ^ value_code ^ "\nin " ^ value_name'
    63           ^ space_implode " " (map (enclose "(" ")") args) ^ " end";
    63           ^ space_implode " " (map (enclose "(" ")") args) ^ " end";
    64       in ML_Context.evaluate ctxt false reff sml_code end;
    64       in ML_Context.evaluate ctxt false reff sml_code end;
    65   in Code_Thingol.eval thy postproc evaluator t end;
    65   in Code_Thingol.dynamic_eval_value thy postproc evaluator t end;
    66 
    66 
    67 
    67 
    68 (** instrumentalization by antiquotation **)
    68 (** instrumentalization by antiquotation **)
    69 
    69 
    70 local
    70 local