I’ve got a simple Alex lexer file, and for some reason, I’m getting a “parse error” on 23:88 with no explanation whatsoever.
For context, here’s the full file: Lexer.x · GitHub
$hexdigit = [a-fA-F$digit]
@string_char = \\[nrt\\]|\\u[$hexdigit]{4}|[^\\]
tokens :-
-- ...
"\"" @string_char* "\"" { String $ pack . read $ unpack . replace "\\u" "\\" . pack }
I’ve tried figuring this out for a whole day now, but I can’t seem to find anything, and it doesn’t help that I have nothing to go off of from the error message.