Closed sergv closed 7 years ago
I accidentally named my variable foo'' and got really confusing error message which was quite a challenge to figure out in a big file.
foo''
Input, TestTwoSingleQuotes.x:
TestTwoSingleQuotes.x
%wrapper "basic" $digit = 0-9 tokens :- $digit+ ; { main :: IO () main = foo'' }
Output:
$ alex TestTwoSingleQuotes.x TestTwoSingleQuotes.x:25:1: lexical error in code fragment at end of file
Fixed by #111.
I accidentally named my variable
foo''
and got really confusing error message which was quite a challenge to figure out in a big file.Input,
TestTwoSingleQuotes.x
:Output: