src/Pure/Syntax/syntax.ML
changeset 4496 16187138463d
parent 4487 9b4c1db5aca1
child 4618 731bed12f762
equal deleted inserted replaced
4495:8648ba842d14 4496:16187138463d
    94 
    94 
    95 
    95 
    96 (** tables of token translation functions **)
    96 (** tables of token translation functions **)
    97 
    97 
    98 fun lookup_tokentr tabs modes =
    98 fun lookup_tokentr tabs modes =
    99   let val trs = distinct_fst_string (flat (map (assocs tabs) (modes @ [""])))
    99   let val trs = gen_distinct eq_fst (flat (map (assocs tabs) (modes @ [""])))
   100   in fn c => apsome fst (assoc (trs, c)) end;
   100   in fn c => apsome fst (assoc (trs, c)) end;
   101 
   101 
   102 fun merge_tokentrtabs tabs1 tabs2 =
   102 fun merge_tokentrtabs tabs1 tabs2 =
   103   let
   103   let
   104     fun eq_tr ((c1, (_, s1)), (c2, (_, s2))) = c1 = c2 andalso s1 = s2;
   104     fun eq_tr ((c1, (_, s1)), (c2, (_, s2))) = c1 = c2 andalso s1 = s2;