src/HOL/Tools/numeral_syntax.ML
changeset 13110 ca8cd110f769
parent 11701 3d51fbf81c17
child 13491 ddf6ae639f21
--- a/src/HOL/Tools/numeral_syntax.ML	Tue May 07 14:28:34 2002 +0200
+++ b/src/HOL/Tools/numeral_syntax.ML	Tue May 07 14:28:34 2002 +0200
@@ -69,6 +69,9 @@
         if not (! show_types) andalso can Term.dest_Type T then t'
         else Syntax.const Syntax.constrainC $ t' $ Syntax.term_of_typ show_sorts T
       end
+  | numeral_tr' _ (*"number_of"*) T (t :: ts) =
+      if T = dummyT then Syntax.const "_Numeral" $ Syntax.free (dest_bin_str t)
+      else raise Match
   | numeral_tr' _ (*"number_of"*) _ _ = raise Match;