Closed buinauskas closed 5 years ago
Another scanner.cc error, replace if (lookahead >= 'a' && lookahead <= 'z')
with something like if (lookahead >= 'a' && lookahead <= 'z' || lookahead == '(')
This works, but my C++ feels rusty. :)
All right. Will try that! 👍
I've found this valid code in one of Elm repositories which fails parsing (source):
The following has to be added to
parse-examples
:I've attempted to write a test case for that, however I always ended up with a failure and not so much clue how I should continue with it. That's the test I've written:
If you'd be able to point out what I did wrong - I'd appreciate it.