Skip to content
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

Merged
merged 4 commits into from
May 23, 2023
Merged

Conversation

TwoOfTwelve
Copy link
Contributor

@TwoOfTwelve TwoOfTwelve commented May 9, 2023

#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.

@TwoOfTwelve
Copy link
Contributor Author

This solution uses the python3 grammar from the official ANTLR repository.

@TwoOfTwelve TwoOfTwelve requested a review from Kr0nox May 9, 2023 08:19
@tsaglam

This comment was marked as outdated.

Copy link
Member

@tsaglam tsaglam left a 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.

@tsaglam tsaglam added bug Issue/PR that involves a bug enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change language PR / Issue deals (partly) with new and/or existing languages for JPlag labels May 16, 2023
@tsaglam
Copy link
Member

tsaglam commented May 22, 2023

@TwoOfTwelve only the sonar code smells left; then I can merge.

@sonarcloud
Copy link

sonarcloud bot commented May 22, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

87.0% 87.0% Coverage
0.0% 0.0% Duplication

@tsaglam tsaglam merged commit fd9d262 into develop May 23, 2023
@tsaglam tsaglam deleted the feature/adoptPythonGrammarFixes branch May 23, 2023 12:10
@tsaglam
Copy link
Member

tsaglam commented Jun 1, 2023

@TwoOfTwelve did this PR change the supported language version of Python? Or is it still 3.6?

@TwoOfTwelve
Copy link
Contributor Author

It is still 3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue/PR that involves a bug enhancement Issue/PR that involves features, improvements and other changes language PR / Issue deals (partly) with new and/or existing languages for JPlag minor Minor issue/feature/contribution/change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants