Lexer reports false negative at end of input #680
-
The lexer I wrote in #679 is now working better, but unfortunately it still gives this weird error:
It lists several unexpected EOIs, one of whom is is reported twice, and the other in them middle of the file (where the input doesn't end at all). What am I doing wrong here? Lexer code: https://gist.github.com/TheOnlyTails/c37a5d6eddf6dccfb0ed6fc5238ca084 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Ah, |
Beta Was this translation helpful? Give feedback.
It doesn't falsely report anything ;) You have a bug in your string parsing logic.
Copy paste bit you in the butt :D