105 |
105 |
106 in |
106 in |
107 |
107 |
108 val _ = |
108 val _ = |
109 Theory.setup |
109 Theory.setup |
110 (index_ml @{binding index_ML} "" ml_val #> |
110 (index_ml \<^binding>\<open>index_ML\<close> "" ml_val #> |
111 index_ml @{binding index_ML_op} "infix" ml_op #> |
111 index_ml \<^binding>\<open>index_ML_op\<close> "infix" ml_op #> |
112 index_ml @{binding index_ML_type} "type" ml_type #> |
112 index_ml \<^binding>\<open>index_ML_type\<close> "type" ml_type #> |
113 index_ml @{binding index_ML_exception} "exception" ml_exception #> |
113 index_ml \<^binding>\<open>index_ML_exception\<close> "exception" ml_exception #> |
114 index_ml @{binding index_ML_structure} "structure" ml_structure #> |
114 index_ml \<^binding>\<open>index_ML_structure\<close> "structure" ml_structure #> |
115 index_ml @{binding index_ML_functor} "functor" ml_functor); |
115 index_ml \<^binding>\<open>index_ML_functor\<close> "functor" ml_functor); |
116 |
116 |
117 end; |
117 end; |
118 |
118 |
119 |
119 |
120 (* named theorems *) |
120 (* named theorems *) |
121 |
121 |
122 val _ = |
122 val _ = |
123 Theory.setup (Thy_Output.antiquotation_raw @{binding named_thms} |
123 Theory.setup (Thy_Output.antiquotation_raw \<^binding>\<open>named_thms\<close> |
124 (Scan.repeat (Attrib.thm -- Scan.lift (Args.parens Args.name))) |
124 (Scan.repeat (Attrib.thm -- Scan.lift (Args.parens Args.name))) |
125 (fn ctxt => |
125 (fn ctxt => |
126 map (fn (thm, name) => |
126 map (fn (thm, name) => |
127 Output.output |
127 Output.output |
128 (Document_Antiquotation.format ctxt |
128 (Document_Antiquotation.format ctxt |
183 |
183 |
184 in |
184 in |
185 |
185 |
186 val _ = |
186 val _ = |
187 Theory.setup |
187 Theory.setup |
188 (entity_antiqs no_check "" @{binding syntax} #> |
188 (entity_antiqs no_check "" \<^binding>\<open>syntax\<close> #> |
189 entity_antiqs Outer_Syntax.check_command "isacommand" @{binding command} #> |
189 entity_antiqs Outer_Syntax.check_command "isacommand" \<^binding>\<open>command\<close> #> |
190 entity_antiqs check_keyword "isakeyword" @{binding keyword} #> |
190 entity_antiqs check_keyword "isakeyword" \<^binding>\<open>keyword\<close> #> |
191 entity_antiqs check_keyword "isakeyword" @{binding element} #> |
191 entity_antiqs check_keyword "isakeyword" \<^binding>\<open>element\<close> #> |
192 entity_antiqs Method.check_name "" @{binding method} #> |
192 entity_antiqs Method.check_name "" \<^binding>\<open>method\<close> #> |
193 entity_antiqs Attrib.check_name "" @{binding attribute} #> |
193 entity_antiqs Attrib.check_name "" \<^binding>\<open>attribute\<close> #> |
194 entity_antiqs no_check "" @{binding fact} #> |
194 entity_antiqs no_check "" \<^binding>\<open>fact\<close> #> |
195 entity_antiqs no_check "" @{binding variable} #> |
195 entity_antiqs no_check "" \<^binding>\<open>variable\<close> #> |
196 entity_antiqs no_check "" @{binding case} #> |
196 entity_antiqs no_check "" \<^binding>\<open>case\<close> #> |
197 entity_antiqs Document_Antiquotation.check "" @{binding antiquotation} #> |
197 entity_antiqs Document_Antiquotation.check "" \<^binding>\<open>antiquotation\<close> #> |
198 entity_antiqs Document_Antiquotation.check_option "" @{binding antiquotation_option} #> |
198 entity_antiqs Document_Antiquotation.check_option "" \<^binding>\<open>antiquotation_option\<close> #> |
199 entity_antiqs no_check "isasystem" @{binding setting} #> |
199 entity_antiqs no_check "isasystem" \<^binding>\<open>setting\<close> #> |
200 entity_antiqs check_system_option "isasystem" @{binding system_option} #> |
200 entity_antiqs check_system_option "isasystem" \<^binding>\<open>system_option\<close> #> |
201 entity_antiqs no_check "" @{binding inference} #> |
201 entity_antiqs no_check "" \<^binding>\<open>inference\<close> #> |
202 entity_antiqs no_check "isasystem" @{binding executable} #> |
202 entity_antiqs no_check "isasystem" \<^binding>\<open>executable\<close> #> |
203 entity_antiqs no_check "isatool" @{binding tool} #> |
203 entity_antiqs no_check "isatool" \<^binding>\<open>tool\<close> #> |
204 entity_antiqs ML_Context.check_antiquotation "" @{binding ML_antiquotation} #> |
204 entity_antiqs ML_Context.check_antiquotation "" \<^binding>\<open>ML_antiquotation\<close> #> |
205 entity_antiqs (K JEdit.check_action) "isasystem" @{binding action}); |
205 entity_antiqs (K JEdit.check_action) "isasystem" \<^binding>\<open>action\<close>); |
206 |
206 |
207 end; |
207 end; |
208 |
208 |
209 end; |
209 end; |