let extract_string =
function
| KEYWORD s | SYMBOL s | LIDENT s | UIDENT s | INT (_, s) |
INT32 (_, s) | INT64 (_, s) | NATIVEINT (_, s) |
FLOAT (_, s) | CHAR (_, s) | STRING (_, s) | LABEL s |
OPTLABEL s | COMMENT s | BLANKS s | ESCAPED_IDENT s -> s
| tok ->
invalid_arg
("Cannot extract a string from this token: " ^
(to_string tok))