equal
deleted
inserted
replaced
453 |
453 |
454 (* dummy patterns *) |
454 (* dummy patterns *) |
455 |
455 |
456 val prepare_dummies = |
456 val prepare_dummies = |
457 let val next = ref 1 in |
457 let val next = ref 1 in |
458 fn t => |
458 fn t => CRITICAL (fn () => |
459 let val (i, u) = Term.replace_dummy_patterns (! next, t) |
459 let val (i, u) = Term.replace_dummy_patterns (! next, t) |
460 in next := i; u end |
460 in next := i; u end) |
461 end; |
461 end; |
462 |
462 |
463 fun reject_dummies t = Term.no_dummy_patterns t |
463 fun reject_dummies t = Term.no_dummy_patterns t |
464 handle TERM _ => error "Illegal dummy pattern(s) in term"; |
464 handle TERM _ => error "Illegal dummy pattern(s) in term"; |
465 |
465 |