localized @{class} and @{type};
authorwenzelm
Sun, 14 Mar 2010 14:10:21 +0100
changeset 35786 9d8cd1ca8c61
parent 35785 cdaf99fddd17
child 35787 afdf1c4958b2
localized @{class} and @{type};
doc-src/more_antiquote.ML
--- a/doc-src/more_antiquote.ML	Sun Mar 14 00:51:58 2010 -0800
+++ b/doc-src/more_antiquote.ML	Sun Mar 14 14:10:21 2010 +0100
@@ -53,13 +53,13 @@
 
 val pr_text = enclose "\\isa{" "}" o Pretty.output o Pretty.str;
 
-fun pr_class ctxt = Sign.read_class (ProofContext.theory_of ctxt)
-  #> Sign.extern_class (ProofContext.theory_of ctxt)
+fun pr_class ctxt = ProofContext.read_class ctxt
+  #> Type.extern_class (ProofContext.tsig_of ctxt)
   #> pr_text;
 
-fun pr_type ctxt = Sign.intern_type (ProofContext.theory_of ctxt)
-  #> tap (Sign.arity_number (ProofContext.theory_of ctxt))
-  #> Sign.extern_type (ProofContext.theory_of ctxt)
+fun pr_type ctxt = ProofContext.read_type_name_proper ctxt true
+  #> (#1 o Term.dest_Type)
+  #> Type.extern_type (ProofContext.tsig_of ctxt)
   #> pr_text;
 
 in