src/Pure/Syntax/mixfix.ML
changeset 4697 101d384b69b2
parent 4143 4bd5f4c05cf6
child 4823 588538fb9308
equal deleted inserted replaced
4696:ff89fc67cc7a 4697:101d384b69b2
    66 fun strip ("'" :: c :: cs) = c :: strip cs
    66 fun strip ("'" :: c :: cs) = c :: strip cs
    67   | strip ["'"] = []
    67   | strip ["'"] = []
    68   | strip (c :: cs) = c :: strip cs
    68   | strip (c :: cs) = c :: strip cs
    69   | strip [] = [];
    69   | strip [] = [];
    70 
    70 
    71 val strip_esc = implode o strip o explode;
    71 val strip_esc = implode o strip o Symbol.explode;
    72 
    72 
    73 fun type_name t (InfixlName _) = t
    73 fun type_name t (InfixlName _) = t
    74   | type_name t (InfixrName _) = t
    74   | type_name t (InfixrName _) = t
    75   | type_name t (Infixl _) = strip_esc t
    75   | type_name t (Infixl _) = strip_esc t
    76   | type_name t (Infixr _) = strip_esc t
    76   | type_name t (Infixr _) = strip_esc t