grammars-v4 icon indicating copy to clipboard operation
grammars-v4 copied to clipboard

Python parser -->no viable alternative at input <EOF>

Open DivyaSrivastava45 opened this issue 3 years ago • 1 comments

For the files which I have tested, there were some spaces at the last of the file for which I was getting a syntax error. So after removing that spaces when I tested most of the files passed but some of the files still have this syntax error .

Some files expect spaces at the EOF some do not.How to fix this?

DivyaSrivastava45 avatar May 16 '22 12:05 DivyaSrivastava45

I also ran into this issue or a similar one. A trailing space at the end the python input I was trying to parse with .file_input() resulted in an error in:

PythonLexerBase.py, line 81, in HandleSpaces
    next_char: str = chr(self._input.LA(1))
ValueError: chr() arg not in range(0x110000)

cybersyntactics avatar Jun 24 '22 23:06 cybersyntactics