Strumenta / antlr-kotlin

Support for Kotlin as a target for ANTLR 4
Apache License 2.0
221 stars 47 forks source link

Add option to mark generated classes as internal #58

Open wilkomanger opened 3 years ago

wilkomanger commented 3 years ago

Now the classes are by default marked as public, it would be nice for libraries using this package to have these classes marked as internal so they won't be exported.

lppedd commented 8 months ago

This request should probably go into the main ANTLR repo, as that's where the StringTemplate template data is generated.

cc @ftomassetti, I'd close this one as we can't do it.

ftomassetti commented 8 months ago

If I understand correctly, we would need a change in the ANTLR tool to have the possibility to selectively mark some classes as internal. We could however mark all the generated classes as internal (or not), based on some flag