src/Pure/Syntax/syn_trans.ML
changeset 8560 2278de8bde59
parent 7473 fd03510c6841
child 8575 7d79d2473b5e
equal deleted inserted replaced
8559:fd3753188232 8560:2278de8bde59
   315           else antiquote_tr' i t $ antiquote_tr' i u
   315           else antiquote_tr' i t $ antiquote_tr' i u
   316       | antiquote_tr' i (Abs (x, T, t)) = Abs (x, T, antiquote_tr' (i + 1) t)
   316       | antiquote_tr' i (Abs (x, T, t)) = Abs (x, T, antiquote_tr' (i + 1) t)
   317       | antiquote_tr' i a = no_loose_bvar i a;
   317       | antiquote_tr' i a = no_loose_bvar i a;
   318 
   318 
   319     fun quote_tr' (Abs (x, T, t) :: ts) =
   319     fun quote_tr' (Abs (x, T, t) :: ts) =
   320           Term.list_comb ( Lexicon.const quoteN $ Term.incr_boundvars ~1 (antiquote_tr' 0 t), ts)
   320           Term.list_comb (Lexicon.const quoteN $ Term.incr_boundvars ~1 (antiquote_tr' 0 t), ts)
   321       | quote_tr' _ = raise Match;
   321       | quote_tr' _ = raise Match;
   322   in (name, quote_tr') end;
   322   in (name, quote_tr') end;
   323 
   323 
   324 
   324 
   325 
   325