equal
deleted
inserted
replaced
76 |
76 |
77 fun print_attributes thy = |
77 fun print_attributes thy = |
78 let |
78 let |
79 val ctxt = Proof_Context.init_global thy; |
79 val ctxt = Proof_Context.init_global thy; |
80 val attribs = Attributes.get thy; |
80 val attribs = Attributes.get thy; |
81 fun prt_attr (name, (_, comment)) = Pretty.block |
81 fun prt_attr (name, (_, "")) = Pretty.str name |
82 [Pretty.str (name ^ ":"), Pretty.brk 2, Pretty.str comment]; |
82 | prt_attr (name, (_, comment)) = |
|
83 Pretty.block [Pretty.str (name ^ ":"), Pretty.brk 2, Pretty.str comment]; |
83 in |
84 in |
84 [Pretty.big_list "attributes:" (map prt_attr (Name_Space.extern_table ctxt attribs))] |
85 [Pretty.big_list "attributes:" (map prt_attr (Name_Space.extern_table ctxt attribs))] |
85 |> Pretty.chunks |> Pretty.writeln |
86 |> Pretty.chunks |> Pretty.writeln |
86 end; |
87 end; |
87 |
88 |