equal
deleted
inserted
replaced
440 in ((pats', ths, (to', ctxt)), ctxt'') end |
440 in ((pats', ths, (to', ctxt)), ctxt'') end |
441 |
441 |
442 val to_parser = Scan.option ((Args.$$$ "to") |-- Parse.term) |
442 val to_parser = Scan.option ((Args.$$$ "to") |-- Parse.term) |
443 |
443 |
444 val subst_parser = |
444 val subst_parser = |
445 let val scan = raw_pattern -- to_parser -- Parse.xthms1 |
445 let val scan = raw_pattern -- to_parser -- Parse.thms1 |
446 in context_lift scan prep_args end |
446 in context_lift scan prep_args end |
447 in |
447 in |
448 Method.setup @{binding rewrite} (subst_parser >> |
448 Method.setup @{binding rewrite} (subst_parser >> |
449 (fn (pattern, inthms, (to, pat_ctxt)) => fn orig_ctxt => |
449 (fn (pattern, inthms, (to, pat_ctxt)) => fn orig_ctxt => |
450 SIMPLE_METHOD' (rewrite_export_tac orig_ctxt ((pattern, to), SOME pat_ctxt) inthms))) |
450 SIMPLE_METHOD' (rewrite_export_tac orig_ctxt ((pattern, to), SOME pat_ctxt) inthms))) |