equal
deleted
inserted
replaced
161 |
161 |
162 val trace = ref false; |
162 val trace = ref false; |
163 |
163 |
164 fun eval_wrapper pr verbose pos txt = |
164 fun eval_wrapper pr verbose pos txt = |
165 let |
165 let |
|
166 val _ = Position.report Markup.ML_source pos; |
166 val struct_name = |
167 val struct_name = |
167 if Multithreading.available then "Isabelle" ^ serial_string () |
168 if Multithreading.available then "Isabelle" ^ serial_string () |
168 else "Isabelle"; |
169 else "Isabelle"; |
169 val ((env, body), env_ctxt) = eval_antiquotes struct_name (txt, pos) (Context.thread_data ()); |
170 val ((env, body), env_ctxt) = eval_antiquotes struct_name (txt, pos) (Context.thread_data ()); |
170 val _ = if ! trace then tracing (cat_lines [env, body]) else (); |
171 val _ = if ! trace then tracing (cat_lines [env, body]) else (); |