src/Pure/Isar/named_target.ML
changeset 57065 2869310dae2a
parent 57057 e54713f22a88
child 57066 78651e94746f
equal deleted inserted replaced
57064:8a1be5efe628 57065:2869310dae2a
    76         orelse same_shape);
    76         orelse same_shape);
    77     in
    77     in
    78       not is_canonical_class ? Generic_Target.generic_const same_shape prmode ((b', mx), rhs')
    78       not is_canonical_class ? Generic_Target.generic_const same_shape prmode ((b', mx), rhs')
    79     end) #>
    79     end) #>
    80   Generic_Target.const_declaration
    80   Generic_Target.const_declaration
    81     (fn this_level => fn level => level <> 0 andalso level <> this_level) prmode ((b, mx), rhs);
    81     (fn (this, other) => other <> 0 andalso this <> other) prmode ((b, mx), rhs);
    82 
    82 
    83 
    83 
    84 (* define *)
    84 (* define *)
    85 
    85 
    86 fun locale_foundation ta (((b, U), mx), (b_def, rhs)) params =
    86 fun locale_foundation ta (((b, U), mx), (b_def, rhs)) params =
   129   if target = "" then Generic_Target.theory_declaration decl lthy
   129   if target = "" then Generic_Target.theory_declaration decl lthy
   130   else
   130   else
   131     lthy
   131     lthy
   132     |> pervasive ? Generic_Target.background_declaration decl
   132     |> pervasive ? Generic_Target.background_declaration decl
   133     |> Generic_Target.locale_declaration target syntax decl
   133     |> Generic_Target.locale_declaration target syntax decl
   134     |> Generic_Target.standard_declaration (fn _ => fn level => level <> 0) decl;
   134     |> Generic_Target.standard_declaration (fn (_, other) => other <> 0) decl;
   135 
   135 
   136 
   136 
   137 (* subscription *)
   137 (* subscription *)
   138 
   138 
   139 fun target_subscription (Target {target, ...}) =
   139 fun target_subscription (Target {target, ...}) =