ANTLR with Java 9+ Module system

98 views
Skip to first unread message

Machello Hengsti

unread,
Apr 24, 2021, 6:23:57 AM4/24/21
to antlr-discussion
I am using the latest ANTLR 4.8 jar in my Project. Since Java 9 the Java modules were introduced (Jigsaw). My Application uses this Module system, where essentially you can define modules and define required other modules and the interface of the module. Unfortunately ANTLR does not support this. Could the support be added in the next version? It would not be hard to do, ANTLR would essentially only need to add the module definition, which would mean to add a module-info.java.
As a result Applications that use Java 9+ could be error/warning free be modularized. Will the Project lead consider to add this?

BR Martin

eric vergnaud

unread,
Apr 24, 2021, 8:07:15 AM4/24/21
to antlr-discussion
Hi,
how about you submit a PR to that end?
Eric

Machello Hengsti

unread,
Apr 25, 2021, 3:07:50 PM4/25/21
to antlr-discussion
does this has a chance to be accepted? if I do it nicely, will it be in the next release?

Mike Lischke

unread,
Apr 26, 2021, 2:45:41 AM4/26/21
to 'Eben Haber' via antlr-discussion

does this has a chance to be accepted? if I do it nicely, will it be in the next release?

If this is a change in the tool itself then it's not be very likely that it will be included. PRs for one of the ANTLR4 targets has much higher chances to be taken in. But even then it will take til the end of the year before a new release comes out.


Eric Vergnaud

unread,
Apr 27, 2021, 8:00:38 PM4/27/21
to 'Mike Lischke' via antlr-discussion
I don’t have the final word, but it doesn’t touch the code, so I will support it

-- 
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/68b49bda-6064-459d-b329-3a73fd23fdean%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages