src/Pure/Isar/term_style.ML
changeset 17496 26535df536ae
parent 17412 e26cb20ef0cc
child 18708 4b3dadb4fe33
equal deleted inserted replaced
17495:ddb14cbec6a2 17496:26535df536ae
    26   val name = "Isar/antiquote_style";
    26   val name = "Isar/antiquote_style";
    27   type T = ((Proof.context -> term -> term) * stamp) Symtab.table;
    27   type T = ((Proof.context -> term -> term) * stamp) Symtab.table;
    28   val empty = Symtab.empty;
    28   val empty = Symtab.empty;
    29   val copy = I;
    29   val copy = I;
    30   val extend = I;
    30   val extend = I;
    31   fun merge _ tabs = Symtab.merge eq_snd tabs
    31   fun merge _ tabs = Symtab.merge (eq_snd (op =)) tabs
    32     handle Symtab.DUPS dups => err_dup_styles dups;
    32     handle Symtab.DUPS dups => err_dup_styles dups;
    33   fun print _ tab = Pretty.writeln (Pretty.strs ("antiquote styles:" :: Symtab.keys tab));
    33   fun print _ tab = Pretty.writeln (Pretty.strs ("antiquote styles:" :: Symtab.keys tab));
    34 end);
    34 end);
    35 
    35 
    36 val _ = Context.add_setup [StyleData.init];
    36 val _ = Context.add_setup [StyleData.init];