added @{theory_ref};
authorwenzelm
Mon, 24 Sep 2007 21:07:41 +0200
changeset 24696 b5e68fe31eba
parent 24695 2892482a4e62
child 24697 b37d3980da3c
added @{theory_ref};
src/Pure/Thy/thy_info.ML
--- a/src/Pure/Thy/thy_info.ML	Mon Sep 24 21:07:40 2007 +0200
+++ b/src/Pure/Thy/thy_info.ML	Mon Sep 24 21:07:41 2007 +0200
@@ -207,6 +207,12 @@
     >> (fn name => (name ^ "_thy", "ThyInfo.theory " ^ ML_Syntax.print_string name))
   || Scan.succeed ("thy", "ML_Context.the_context ()"));
 
+val _ = ML_Context.value_antiq "theory_ref"
+  (Scan.lift Args.name
+    >> (fn name => (name ^ "_thy",
+        "Theory.check_thy (ThyInfo.theory " ^ ML_Syntax.print_string name ^ ")"))
+  || Scan.succeed ("thy", "Theory.check_thy (ML_Context.the_context ())"));
+
 
 
 (** thy operations **)