src/Tools/Code/code_thingol.ML
changeset 39566 87a5704673f0
parent 39487 80b2cf3b0779
child 40711 81bc73585eec
equal deleted inserted replaced
39565:f4f87c6e2fad 39566:87a5704673f0
   273    of SOME class => thyname_of_class thy class
   273    of SOME class => thyname_of_class thy class
   274     | NONE => (case Code.get_type_of_constr_or_abstr thy c
   274     | NONE => (case Code.get_type_of_constr_or_abstr thy c
   275        of SOME (tyco, _) => Codegen.thyname_of_type thy tyco
   275        of SOME (tyco, _) => Codegen.thyname_of_type thy tyco
   276         | NONE => Codegen.thyname_of_const thy c);
   276         | NONE => Codegen.thyname_of_const thy c);
   277   fun purify_base "==>" = "follows"
   277   fun purify_base "==>" = "follows"
       
   278     | purify_base "==" = "meta_eq"
   278     | purify_base s = Name.desymbolize false s;
   279     | purify_base s = Name.desymbolize false s;
   279   fun namify thy get_basename get_thyname name =
   280   fun namify thy get_basename get_thyname name =
   280     let
   281     let
   281       val prefix = get_thyname thy name;
   282       val prefix = get_thyname thy name;
   282       val base = (purify_base o get_basename) name;
   283       val base = (purify_base o get_basename) name;