Closed ghost closed 2 years ago
The error is being caused some issue in your grammar. What does the parser look like?
Is there a reduce/reduce conflict reported?
No
If the input file is literally what you show above, then it's being fed to the parser line-by-line. The first line with the comment in it is "empty" (contains no statement or expression). That's most likely the source of the error.
So, I tried with
#
And it gives to me sly: Parse error in input. EOF
Right. Because you're giving the parser empty input (no tokens). There are no parsing rules to match empty input.
Hi. I'm getting this error every time, when I'm using this code:
How can I fix it?