-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/adopt python grammar fixes #1069
Conversation
This solution uses the python3 grammar from the official ANTLR repository. |
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few things.
languages/python-3/src/main/java/de/jplag/python3/grammar/Python3LexerBase.java
Outdated
Show resolved
Hide resolved
languages/python-3/src/test/java/de/jplag/python3/PythonLanguageCoverageTest.java
Outdated
Show resolved
Hide resolved
@TwoOfTwelve only the sonar code smells left; then I can merge. |
Kudos, SonarCloud Quality Gate passed! |
@TwoOfTwelve did this PR change the supported language version of Python? Or is it still 3.6? |
It is still 3.6 |
#280
This pr replaces the antlr grammar taken from bkiers/python3-parser by the one provided in the official antlr repositories. Both implementations follow the same general structure and all changes mentioned in (#280) seem to be present in the new grammar to.
There are also new tests for the python language module, which work with the old implementation as well as the new one. Sonarcloud does report some code smells in the grammar, but I think, it is better to leave that code as it is in the official repository.