Hello Fellow MetaProgrammerS.
Is it possible to generate multiple files from a single concept instance?
I'm working on a data schema language for my company.
The goal is to generate, from a single DSL, parsing implementation and classes in multiple languages. We generate java already successfully.
I decided to go directly through TextGen to C++ text for now.
I've added "text gen component for concept Protein".
At first it didn't do any generation.
So I thought that maybe my Java generator is intercepting it.
So I deleted root mapping rule in generator.
This resulted in the textgen component actually being triggered – good.
Now my question is how do I allow both the textgen-to-C++ and the to-java generator to work side-by-side?
That is a requirement for our stuff to really work for our cross-platform projects.
If it is not possible now, I could probably create a patch to enable that - please advise (how difficult would that be and where to start).
Another question is, how do configure file name for text-gen?
Right now it takes the concept instance name directly, but I need to do some name mangling/suffixing. I already know how to provide file extension programmatically. But what about providing a custom name?
Btw, what do you think about C++ AST/generator implementation coming from mbeddr project?
I just need simple stuff like generating C++ classes, getters. Although I might need support of calling generic methods from another lib for my parsing purposes; is it supported?
Thanks in advance for replies.
Karol Depka Pradzinski