src/Tools/Code/code_eval.ML
changeset 34032 f13b5c023e65
parent 34028 1e6206763036
child 35019 1ec0a3ff229e
--- a/src/Tools/Code/code_eval.ML	Tue Dec 08 13:41:37 2009 +0100
+++ b/src/Tools/Code/code_eval.ML	Tue Dec 08 14:31:19 2009 +0100
@@ -21,14 +21,14 @@
 
 val target = "Eval";
 
-val eval_struct_name = "Code"
+val eval_struct_name = "Code";
 
 fun evaluation_code thy tycos consts =
   let
     val (consts', (naming, program)) = Code_Thingol.consts_program thy consts;
     val tycos' = map (the o Code_Thingol.lookup_tyco naming) tycos;
     val (ml_code, target_names) = Code_ML.evaluation_code_of thy target
-      (SOME eval_struct_name) naming program (consts' @ tycos');
+      eval_struct_name naming program (consts' @ tycos');
     val (consts'', tycos'') = chop (length consts') target_names;
     val consts_map = map2 (fn const => fn NONE =>
         error ("Constant " ^ (quote o Code.string_of_const thy) const
@@ -56,7 +56,7 @@
               Code_Thingol.Fun (Term.dummy_patternN, (([], ty), [(([], t), (Drule.dummy_thm, true))])))
           |> fold (curry Graph.add_edge value_name) deps;
         val (value_code, [SOME value_name']) = Code_ML.evaluation_code_of thy
-          (the_default target some_target) NONE naming program' [value_name];
+          (the_default target some_target) "" naming program' [value_name];
         val sml_code = "let\n" ^ value_code ^ "\nin " ^ value_name'
           ^ space_implode " " (map (enclose "(" ")") args) ^ " end";
       in ML_Context.evaluate ctxt false reff sml_code end;