I'm thinking about language modularity and a good DSL architecture. Thereby the question came up whether it is possible to distribute the generator over the different language modules.
For example if I have two languages L1 and L2 (and L1 imports L2), is it possible to define the generator rules for L2 directly in L2 (and, of course, those for L1 directly in L1)? Or do I have to specify my generation plan in a central way, i.e. in L1?
Or, as a third solution suggestion, is it better to create a third language L3 just for the generator aspect?
Thank you very much in advance,