src/HOL/Tools/code_evaluation.ML
changeset 59151 a012574b78e7
parent 59058 a78612c67ec0
child 59153 b5e253703ebd
equal deleted inserted replaced
59150:71b416020f42 59151:a012574b78e7
   172 (** evaluation **)
   172 (** evaluation **)
   173 
   173 
   174 structure Evaluation = Proof_Data
   174 structure Evaluation = Proof_Data
   175 (
   175 (
   176   type T = unit -> term
   176   type T = unit -> term
   177   (* FIXME avoid user error with non-user text *)
   177   fun init _ () = raise Fail "Evaluation"
   178   fun init _ () = error "Evaluation"
       
   179 );
   178 );
   180 val put_term = Evaluation.put;
   179 val put_term = Evaluation.put;
   181 val cookie = (Evaluation.get, put_term, "Code_Evaluation.put_term");
   180 val cookie = (Evaluation.get, put_term, "Code_Evaluation.put_term");
   182 
   181 
   183 fun mk_term_of t = HOLogic.mk_term_of (fastype_of t) t;
   182 fun mk_term_of t = HOLogic.mk_term_of (fastype_of t) t;