added cpat antiquotation for reading certified patterns
authorchaieb
Sat, 19 May 2007 18:19:06 +0200
changeset 23033 a7e23f993c5e
parent 23032 b6cb6a131511
child 23034 b3a6815754d6
added cpat antiquotation for reading certified patterns
src/Pure/Thy/ml_context.ML
--- a/src/Pure/Thy/ml_context.ML	Sat May 19 14:05:05 2007 +0200
+++ b/src/Pure/Thy/ml_context.ML	Sat May 19 18:19:06 2007 +0200
@@ -256,6 +256,11 @@
 
 end;
 
+val _ = proj_value_antiq "cpat" (Scan.lift Args.name >> 
+      (fn ns => ("cpat", 
+      "((cterm_of (ML_Context.the_context ())) o Library.the_single o " ^ 
+      "(ProofContext.read_term_pats TypeInfer.logicT (ML_Context.the_local_context ())))"
+      ^ (ML_Syntax.print_list ML_Syntax.print_string [ns]), "")));
 
 (*final declarations of this structure!*)
 nonfix >>;