equal
deleted
inserted
replaced
171 |> fold (add_eval_constr o apsnd pr) constr_map |
171 |> fold (add_eval_constr o apsnd pr) constr_map |
172 |> fold (add_eval_const o apsnd pr) const_map |
172 |> fold (add_eval_const o apsnd pr) const_map |
173 end |
173 end |
174 | process (code_body, _) _ (SOME file_name) thy = |
174 | process (code_body, _) _ (SOME file_name) thy = |
175 let |
175 let |
176 val preamble = "(* Generated from " ^ Path.implode (Thy_Load.thy_path (Context.theory_name thy)) |
176 val preamble = |
|
177 "(* Generated from " ^ Path.implode (Thy_Header.thy_path (Context.theory_name thy)) |
177 ^ "; DO NOT EDIT! *)"; |
178 ^ "; DO NOT EDIT! *)"; |
178 val _ = File.write (Path.explode file_name) (preamble ^ "\n\n" ^ code_body); |
179 val _ = File.write (Path.explode file_name) (preamble ^ "\n\n" ^ code_body); |
179 in |
180 in |
180 thy |
181 thy |
181 end; |
182 end; |