src/Pure/Syntax/parser.ML
changeset 60924 610794dff23c
parent 56438 7f6b2634d853
child 62669 c95b76681e65
equal deleted inserted replaced
60923:020becec359c 60924:610794dff23c
   427         val nt_prods =
   427         val nt_prods =
   428           fold (union (op =) o snd) (snd (Vector.sub (prods, tag))) [] @
   428           fold (union (op =) o snd) (snd (Vector.sub (prods, tag))) [] @
   429             map prod_of_chain (these (AList.lookup (op =) chains tag));
   429             map prod_of_chain (these (AList.lookup (op =) chains tag));
   430       in map (pretty_prod name) nt_prods end;
   430       in map (pretty_prod name) nt_prods end;
   431 
   431 
   432   in maps pretty_nt (sort_wrt fst (Symtab.dest tags)) end;
   432   in maps pretty_nt (sort_by fst (Symtab.dest tags)) end;
   433 
   433 
   434 
   434 
   435 
   435 
   436 (** Operations on gramars **)
   436 (** Operations on gramars **)
   437 
   437