|Multiple language mixins [message #998616]
||Thu, 10 January 2013 10:57
| Alex G
Registered: January 2012
Lets assume I have two languages A and B.
Now I want to define another language C which mixes A and B.
This can be of course problematic, if names of parser rules in A and B are the same. Therefore XText doesn't allow multiple language mixins.
However, is there some convenient possibility to create such a multiple mixin without redefining (e.g.) B with A and C with B ?
I could for example just write every parser rule of A, B and C in only one language X. But then I want that only specific language elements of X (e.g. keywords) are accepted (parsed correctly), depending on which configuration the user chooses (outside the XText framework).
Sure, I can of course modify the content assist, by reading the user configuration. But I want more: don't even parse rules, which are not in the configuration.
Powered by FUDForum
. Page generated in 0.01485 seconds