let print ppf =
function
| Illegal_token s -> fprintf ppf "Illegal token (%s)" s
| Keyword_as_label kwd ->
fprintf ppf
"`%s' is a keyword, it cannot be used as label name"
kwd
| Illegal_token_pattern (p_con, p_prm) ->
fprintf ppf "Illegal token pattern: %s %S" p_con p_prm
| Illegal_constructor con ->
fprintf ppf "Illegal constructor %S" con