axiomatization: optional vars;
authorwenzelm
Tue, 24 Jan 2006 00:43:28 +0100
changeset 18766 932750b85c5b
parent 18765 97911ffe9222
child 18767 2f064e6bea7e
axiomatization: optional vars;
src/Pure/Isar/isar_syn.ML
--- a/src/Pure/Isar/isar_syn.ML	Tue Jan 24 00:43:27 2006 +0100
+++ b/src/Pure/Isar/isar_syn.ML	Tue Jan 24 00:43:28 2006 +0100
@@ -195,8 +195,10 @@
 
 val axiomatizationP =
   OuterSyntax.command "axiomatization" "axiomatic constant specification" K.thy_decl
-    (P.fixes -- Scan.optional (P.$$$ "where" |-- P.!!! (P.and_list1 P.named_spec)) []
-    >> (Toplevel.theory o (#2 oo Specification.axiomatize)));
+    (P.opt_locale_target --
+      Scan.optional P.fixes [] --
+      Scan.optional (P.$$$ "where" |-- P.!!! (P.and_list1 P.named_spec)) []
+    >> (fn ((x, y), z) => Toplevel.theory_context (#2 o Specification.axiomatization x y z)));
 
 
 (* theorems *)