TigerPython-Parser
TigerPython-Parser copied to clipboard
Enhanced error recognition in Python
Hi Tobias, When testing my application in the classroom, one student encountered this problem:  I unfortunately don't have the Python code that caused the error, but if the error...
I don't know what they currently do for syntax checking but I suspect they didn't hire a Ph.D. to do it. :-)
The Python grammar allows underscores in the number litterals to increase readability. For instance, Python accepts litterals like `1_000_000` for 1 million. It would be great if the parser would...
One common mistake for the novices, at least in french speaking part of switzerland, is to use the comma instead of the `.` for floating point literals. This is because...
See #11 -- global keyword followed by nothing causes an exception. This simple PR adds a test proving the issue, and then a fix which makes the test work. (I'm...
If you try to run on code like this: def func(): global Then TigerPython throws an exception like this: ``` java.lang.NullPointerException: Cannot invoke "tigerpython.parser.lexer.Token.pos()" because the return value of "tigerpython.parser.lexer.TokenBuffer.head()"...