grammars-v4
grammars-v4 copied to clipboard
Python parser -->no viable alternative at input <EOF>
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?
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)