added 'const_syntax';
authorwenzelm
Tue, 16 May 2006 21:33:09 +0200
changeset 19659 88d246e5f4bd
parent 19658 0cff73279f34
child 19660 e3ec6839c631
added 'const_syntax';
src/Pure/Isar/isar_syn.ML
--- a/src/Pure/Isar/isar_syn.ML	Tue May 16 21:33:07 2006 +0200
+++ b/src/Pure/Isar/isar_syn.ML	Tue May 16 21:33:09 2006 +0200
@@ -218,8 +218,14 @@
   OuterSyntax.command "abbreviation" "constant abbreviation" K.thy_decl
     (P.opt_locale_target -- opt_mode --
       Scan.repeat1 (Scan.option constdecl -- P.prop)
-    >> (fn ((loc, revert), args) =>
-         Toplevel.local_theory loc (Specification.abbreviation revert args)));
+    >> (fn ((loc, mode), args) =>
+        Toplevel.local_theory loc (Specification.abbreviation mode args)));
+
+val const_syntaxP =
+  OuterSyntax.command "const_syntax" "constant syntax" K.thy_decl
+    (P.opt_locale_target -- opt_mode -- Scan.repeat1 (P.xname -- P.mixfix)
+    >> (fn ((loc, mode), args) =>
+        Toplevel.local_theory loc (Specification.const_syntax mode args)));
 
 
 (* constant specifications *)
@@ -890,11 +896,12 @@
   classesP, classrelP, defaultsortP, axclassP, typedeclP, typeabbrP,
   nontermP, aritiesP, judgmentP, constsP, finalconstsP, syntaxP,
   no_syntaxP, translationsP, no_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, print_translationP, typed_print_translationP,
-  print_ast_translationP, token_translationP, oracleP, localeP,
+  constdefsP, definitionP, abbreviationP, const_syntaxP,
+  axiomatizationP, theoremsP, lemmasP, declareP, globalP, localP,
+  hideP, useP, mlP, ml_commandP, ml_setupP, setupP, method_setupP,
+  parse_ast_translationP, parse_translationP, print_translationP,
+  typed_print_translationP, print_ast_translationP,
+  token_translationP, oracleP, localeP,
   (*proof commands*)
   theoremP, lemmaP, corollaryP, haveP, henceP, showP, thusP, fixP,
   assumeP, presumeP, defP, obtainP, guessP, letP, caseP, thenP, fromP,