equal
deleted
inserted
replaced
188 val (evls, evl) = split_last evaluators; |
188 val (evls, evl) = split_last evaluators; |
189 val t' = case get_first (fn f => try (f thy) t) evls |
189 val t' = case get_first (fn f => try (f thy) t) evls |
190 of SOME t' => t' |
190 of SOME t' => t' |
191 | NONE => evl thy t; |
191 | NONE => evl thy t; |
192 val ty' = Term.type_of t'; |
192 val ty' = Term.type_of t'; |
193 val p = Pretty.block [Pretty.quote (ProofContext.pretty_term ctxt t'), |
193 val p = Pretty.block [Pretty.quote (Syntax.pretty_term ctxt t'), |
194 Pretty.fbrk, Pretty.str "::", Pretty.brk 1, |
194 Pretty.fbrk, Pretty.str "::", Pretty.brk 1, |
195 Pretty.quote (ProofContext.pretty_typ ctxt ty')]; |
195 Pretty.quote (Syntax.pretty_typ ctxt ty')]; |
196 in Pretty.writeln p end; |
196 in Pretty.writeln p end; |
197 |
197 |
198 val evaluate = gen_evaluate (map snd evaluators); |
198 val evaluate = gen_evaluate (map snd evaluators); |
199 |
199 |
200 fun evaluate' name = gen_evaluate |
200 fun evaluate' name = gen_evaluate |