|Generate templates.xml? [message #1852777]
||Fri, 03 June 2022 12:51
| Joerg Holtmann
Registered: July 2018
Short background info on our project: We have quite a large grammar that bases on a pre-defined metamodel, where particularly the grammar currently evolves quite often. Additionally, we want to make use of the template proposal approach for the mandatory parts of the production rules. That is, the templates should propose skeletons of the metamodel elements so that only the mandatory, non-optional (according to the metamodel and thereby the grammar) attributes have already a dummy value.
This works fine with the conventional templates.xml approach, where you specify the templates manually. However, due to the fact that the grammar is large and often evolves, this would end up in a maintenance nightmare. Did anyone try to automatically generate a templates.xml based on the grammar or a metamodel, or are you aware of any examples (or point me to a different direction if I have a bad idea)? Of course, such a generated templates.xml might be quite generic and not so much customized towards the language or the users, but I think it would pay off.
Powered by FUDForum
. Page generated in 0.05578 seconds