tuned antiquote_tr';
authorwenzelm
Sat, 25 Mar 2000 12:59:31 +0100
changeset 8575 7d79d2473b5e
parent 8574 bed3b994ab26
child 8576 142065da303d
tuned antiquote_tr';
src/Pure/Syntax/syn_trans.ML
--- a/src/Pure/Syntax/syn_trans.ML	Sat Mar 25 12:52:06 2000 +0100
+++ b/src/Pure/Syntax/syn_trans.ML	Sat Mar 25 12:59:31 2000 +0100
@@ -305,16 +305,13 @@
 
 (* quote / antiquote *)
 
-fun no_loose_bvar i t =
-  if Term.loose_bvar1 (t, i) then raise Match else t;
-
 fun quote_antiquote_tr' quoteN antiquoteN name =
   let
     fun antiquote_tr' i (t $ u) =
-          if u = Bound i then Lexicon.const antiquoteN $ no_loose_bvar i t
+          if u = Bound i then Lexicon.const antiquoteN $ antiquote_tr' i t
           else antiquote_tr' i t $ antiquote_tr' i u
       | antiquote_tr' i (Abs (x, T, t)) = Abs (x, T, antiquote_tr' (i + 1) t)
-      | antiquote_tr' i a = no_loose_bvar i a;
+      | antiquote_tr' i a = if a = Bound i then raise Match else a;
 
     fun quote_tr' (Abs (x, T, t) :: ts) =
           Term.list_comb (Lexicon.const quoteN $ Term.incr_boundvars ~1 (antiquote_tr' 0 t), ts)