*** empty log message ***
authorwenzelm
Sat, 11 Mar 2006 16:53:27 +0100
changeset 19245 b8c110f38bef
parent 19244 1d7e51d9828b
child 19246 aa45f5e456d3
*** empty log message ***
src/Pure/Isar/isar_syn.ML
--- a/src/Pure/Isar/isar_syn.ML	Sat Mar 11 16:53:23 2006 +0100
+++ b/src/Pure/Isar/isar_syn.ML	Sat Mar 11 16:53:27 2006 +0100
@@ -89,6 +89,12 @@
   OuterSyntax.command "defaultsort" "declare default sort" K.thy_decl
     (P.sort >> (Toplevel.theory o Theory.add_defsort));
 
+val axclassP =
+  OuterSyntax.command "axclass" "define axiomatic type class" K.thy_decl
+    ((P.name -- Scan.optional ((P.$$$ "\\<subseteq>" || P.$$$ "<") |--
+        P.!!! (P.list1 P.xname)) []) -- Scan.repeat P.spec_name
+      >> (Toplevel.theory o (snd oo uncurry AxClass.add_axclass)));
+
 
 (* types *)
 
@@ -867,9 +873,9 @@
   headerP, chapterP, sectionP, subsectionP, subsubsectionP, textP,
   text_rawP, sectP, subsectP, subsubsectP, txtP, txt_rawP,
   (*theory sections*)
-  classesP, classrelP, defaultsortP, typedeclP, typeabbrP, nontermP,
-  aritiesP, judgmentP, constsP, finalconstsP, syntaxP, no_syntaxP,
-  translationsP, axiomsP, defsP, constdefsP, definitionP,
+  classesP, classrelP, defaultsortP, axclassP, typedeclP, typeabbrP,
+  nontermP, aritiesP, judgmentP, constsP, finalconstsP, syntaxP,
+  no_syntaxP, translationsP, axiomsP, defsP, constdefsP, definitionP,
   abbreviationP, axiomatizationP, theoremsP, lemmasP, declareP,
   globalP, localP, hideP, useP, mlP, ml_commandP, ml_setupP, setupP,
   method_setupP, parse_ast_translationP, parse_translationP,