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

Add Rust frontend #585

Merged
merged 25 commits into from
Aug 24, 2022
Merged

Add Rust frontend #585

merged 25 commits into from
Aug 24, 2022

Conversation

robinmaisch
Copy link
Contributor

@robinmaisch robinmaisch commented Aug 10, 2022

This PR introduces a Rust frontend to JPlag. Its design is similar to the other frontends based on ANTLR4.
Some challenges regarding the syntax of Rust and its formulation in the ANTLR4 grammar are discussed in the README.
To the best of my understanding, it now produces consistent, correct TokenLists. Still, this frontend may very well be subject to further redesign in the future.

Adressing #345 and completing the set of frontends proposed there.

@JanWittler JanWittler linked an issue Aug 11, 2022 that may be closed by this pull request
@tsaglam tsaglam requested review from a team August 15, 2022 06:28
@tsaglam tsaglam added enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change labels Aug 15, 2022
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 issues and questions...

jplag.frontend.rust/README.md Outdated Show resolved Hide resolved
jplag.frontend.rust/README.md Outdated Show resolved Hide resolved
jplag.frontend.rust/README.md Show resolved Hide resolved
Copy link
Contributor

@JanWittler JanWittler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General remarks without checking the actual tokenization

@robinmaisch robinmaisch marked this pull request as ready for review August 16, 2022 16:12
Copy link
Member

@dfuchss dfuchss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one minor comment at one class

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.

Looks good, now this PR only depends on the token printer changes.

@tsaglam tsaglam added this to the v4.0.0 milestone Aug 24, 2022
@robinmaisch
Copy link
Contributor Author

The code smells are acceptable for my part. Should be ready to merge.

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.

@robinmaisch one final request: Could you update the newly added language table in the project readme? Either here or in a separate PR.

@sonarqubecloud
Copy link

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 6 Code Smells

76.9% 76.9% Coverage
1.3% 1.3% Duplication

@robinmaisch
Copy link
Contributor Author

@robinmaisch one final request: Could you update the newly added language table in the project readme? Either here or in a separate PR.

Ah, sure! There you go.

@tsaglam tsaglam merged commit 4109691 into jplag:master Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Rust frontend in development -- questions
4 participants