TableFun/Symtab: curried lookup and update;
authorwenzelm
Thu, 15 Sep 2005 17:17:05 +0200
changeset 17417 c56f4809fc6d
parent 17416 5093a587da16
child 17418 cd5d8b444d6e
TableFun/Symtab: curried lookup and update; nat_option trace_simp_depth_limit;
src/Pure/proof_general.ML
--- a/src/Pure/proof_general.ML	Thu Sep 15 17:17:04 2005 +0200
+++ b/src/Pure/proof_general.ML	Thu Sep 15 17:17:05 2005 +0200
@@ -596,6 +596,9 @@
     [("trace-simplifier",
       ("Trace simplification rules.",
        bool_option trace_simp)),
+     ("trace-simplifier-depth",
+      ("Trace simplifier depth limit.",
+       nat_option trace_simp_depth_limit)),
      ("trace-rules",
       ("Trace application of the standard rules",
        bool_option trace_rules)),
@@ -813,7 +816,7 @@
         case (!keywords_classification_table) of
           SOME t => t
         | NONE => (let
-                     val tab = fold (fn (c, _, k, _) => Symtab.curried_update (c, k))
+                     val tab = fold (fn (c, _, k, _) => Symtab.update (c, k))
                                     (OuterSyntax.dest_parsers ()) Symtab.empty;
                    in (keywords_classification_table := SOME tab; tab) end)
 
@@ -959,7 +962,7 @@
 
 fun xmls_of_transition (name,str,toks) =
    let
-     val classification = Symtab.curried_lookup (get_keywords_classification_table ()) name
+     val classification = Symtab.lookup (get_keywords_classification_table ()) name
    in case classification of
           SOME k => (xmls_of_kind k (name,toks,str))
         | NONE => (* an uncategorized keyword ignored for undo (maybe wrong) *)