dest_parsers: sort result;
authorwenzelm
Wed, 06 Jul 2005 20:00:39 +0200
changeset 16727 e264077b68a7
parent 16726 4399016bf13e
child 16728 c4c9d5df26ba
dest_parsers: sort result;
src/Pure/Isar/outer_syntax.ML
--- a/src/Pure/Isar/outer_syntax.ML	Wed Jul 06 20:00:37 2005 +0200
+++ b/src/Pure/Isar/outer_syntax.ML	Wed Jul 06 20:00:39 2005 +0200
@@ -216,8 +216,8 @@
 fun dest_keywords () = Scan.dest_lexicon (#1 (get_lexicons ()));
 
 fun dest_parsers () =
-  map (fn (name, (((cmt, kind), (int_only, _)), _)) => (name, cmt, kind, int_only))
-    (Symtab.dest (get_parsers ()));
+  get_parsers () |> Symtab.dest |> sort_wrt #1
+  |> map (fn (name, (((cmt, kind), (int_only, _)), _)) => (name, cmt, kind, int_only));
 
 fun print_outer_syntax () =
   let