-
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
Expanded the language-antlr-utils to allow the extraction of semantic… #1177
Conversation
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.
I'm not sure how this framework pans out in practice, but I think I'll just make adjustements myself if needed.
language-antlr-utils/src/main/java/de/jplag/antlr/InternalListenerException.java
Outdated
Show resolved
Hide resolved
I know, that there are still some builder methods missing, but I think it is easier to add them, one you need them. I tried to base this on how the java module uses the semantics. If you think I missed something big, I can always change the framework. The attempt was to keep everything as simple and concise as possible while keeping it flexible. |
I can't really make a call on the framework until I've tried using it. I think you can merge @tsaglam |
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.
Some issues we need to address.
language-antlr-utils/src/main/java/de/jplag/antlr/ContextTokenBuilder.java
Outdated
Show resolved
Hide resolved
language-antlr-utils/src/main/java/de/jplag/antlr/TokenBuilder.java
Outdated
Show resolved
Hide resolved
language-antlr-utils/src/main/java/de/jplag/antlr/InternalListenerException.java
Show resolved
Hide resolved
language-antlr-utils/src/main/java/de/jplag/antlr/SemanticsDataHolder.java
Outdated
Show resolved
Hide resolved
language-antlr-utils/src/main/java/de/jplag/antlr/TokenBuilder.java
Outdated
Show resolved
Hide resolved
language-antlr-utils/src/main/java/de/jplag/antlr/TokenBuilder.java
Outdated
Show resolved
Hide resolved
# Conflicts: # language-antlr-utils/src/main/java/de/jplag/antlr/AbstractAntlrListener.java
[JPlag Plagiarism Detector] Kudos, SonarCloud Quality Gate passed! |
Adds the option to extract semantics information to the AbstractAntlrListener. For an example how to use, take a look at the tests in language-antlr-utils.