src/Pure/Tools/codegen_package.ML
changeset 20194 c9dbce9a23a1
parent 20192 956cd30ef3be
child 20213 2b319e945905
equal deleted inserted replaced
20193:46f5ef758422 20194:c9dbce9a23a1
   754       trns
   754       trns
   755       |> exprgen_type thy tabs ty
   755       |> exprgen_type thy tabs ty
   756       |-> (fn ty => pair (IVar v))
   756       |-> (fn ty => pair (IVar v))
   757   | exprgen_term thy tabs (Abs (raw_v, ty, raw_t)) trns =
   757   | exprgen_term thy tabs (Abs (raw_v, ty, raw_t)) trns =
   758       let
   758       let
   759         val (v, t) = Term.variant_abs (Symbol.alphanum raw_v, ty, raw_t);
   759         val (v, t) = Syntax.variant_abs (Symbol.alphanum raw_v, ty, raw_t);
   760       in
   760       in
   761         trns
   761         trns
   762         |> exprgen_type thy tabs ty
   762         |> exprgen_type thy tabs ty
   763         ||>> exprgen_term thy tabs t
   763         ||>> exprgen_term thy tabs t
   764         |-> (fn (ty, e) => pair ((v, ty) `|-> e))
   764         |-> (fn (ty, e) => pair ((v, ty) `|-> e))