I'm working on generating code from an existing model with XPAND. This model contains nested packages as one knows them from Java for example.
As far as I understand there are no loops or anything, so that I could concatenate for example the package declaration string.
I would like to do something like this:
model:
package kitchen
--package electronics
--package food
----class tomatoe
wanted output:
package kitchen.food;
class tomatoe{}
I should add that it should have the possibility to ask the classes for their parent classes. How to generate the import string for nested packages?