src/Pure/Isar/code.ML
changeset 31890 e943b039f0ac
parent 31642 ce68241f711f
child 31957 a9742afd403e
equal deleted inserted replaced
31889:fb2c8a687529 31890:e943b039f0ac
    73   val get_datatype_of_constr: theory -> string -> string option
    73   val get_datatype_of_constr: theory -> string -> string option
    74   val default_typscheme: theory -> string -> (string * sort) list * typ
    74   val default_typscheme: theory -> string -> (string * sort) list * typ
    75   val these_eqns: theory -> string -> (thm * bool) list
    75   val these_eqns: theory -> string -> (thm * bool) list
    76   val all_eqns: theory -> (thm * bool) list
    76   val all_eqns: theory -> (thm * bool) list
    77   val get_case_scheme: theory -> string -> (int * (int * string list)) option
    77   val get_case_scheme: theory -> string -> (int * (int * string list)) option
    78   val is_undefined: theory -> string -> bool
    78   val undefineds: theory -> string list
    79   val print_codesetup: theory -> unit
    79   val print_codesetup: theory -> unit
    80 end;
    80 end;
    81 
    81 
    82 signature CODE_DATA_ARGS =
    82 signature CODE_DATA_ARGS =
    83 sig
    83 sig
   896 
   896 
   897 fun del_eqns c = change_eqns true c (K (false, Lazy.value []));
   897 fun del_eqns c = change_eqns true c (K (false, Lazy.value []));
   898 
   898 
   899 fun get_case_scheme thy = Symtab.lookup ((fst o the_cases o the_exec) thy);
   899 fun get_case_scheme thy = Symtab.lookup ((fst o the_cases o the_exec) thy);
   900 
   900 
   901 val is_undefined = Symtab.defined o snd o the_cases o the_exec;
   901 val undefineds = Symtab.keys o snd o the_cases o the_exec;
   902 
   902 
   903 structure TypeInterpretation = InterpretationFun(type T = string * serial val eq = eq_snd (op =) : T * T -> bool);
   903 structure TypeInterpretation = InterpretationFun(type T = string * serial val eq = eq_snd (op =) : T * T -> bool);
   904 
   904 
   905 fun add_datatype raw_cs thy =
   905 fun add_datatype raw_cs thy =
   906   let
   906   let