-
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
Re-write/Fix antlr-utils #1263
Re-write/Fix antlr-utils #1263
Conversation
1b965b7
to
ef9dce3
Compare
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.
Looks really good. I should have done a lot of this in the first place.
language-antlr-utils/src/main/java/de/jplag/antlr/AbstractAntlrParserAdapter.java
Outdated
Show resolved
Hide resolved
language-antlr-utils/src/main/java/de/jplag/antlr/AbstractAntlrParserAdapter.java
Outdated
Show resolved
Hide resolved
language-antlr-utils/src/main/java/de/jplag/antlr/AbstractAntlrListener.java
Show resolved
Hide resolved
6258e95
to
cc156ec
Compare
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 minor things, but besides them, this PR is ready to merge.
language-antlr-utils/src/main/java/de/jplag/antlr/TokenCollector.java
Outdated
Show resolved
Hide resolved
language-antlr-utils/src/main/java/de/jplag/antlr/TokenCollector.java
Outdated
Show resolved
Hide resolved
language-antlr-utils/src/main/java/de/jplag/antlr/AbstractAntlrListener.java
Show resolved
Hide resolved
language-antlr-utils/src/main/java/de/jplag/antlr/AbstractAntlrParserAdapter.java
Outdated
Show resolved
Hide resolved
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.
The Typescript Listener will also have to be adjusted
ea7da49
to
3efd496
Compare
[JPlag Plagiarism Detector] Kudos, SonarCloud Quality Gate passed! |
Should be ready now, sorry for the delay |
The existing antrl-utils lacks some critical functionality (support for listeners, updating semantics upon adding tokens) and is, in my eyes, a bit more complicated than necessary. This pull request adds the missing functionality, streamlines the interface, and simplifies the internal code.