Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Multiple language mixins
Multiple language mixins [message #998616] Thu, 10 January 2013 05:57
Alex G is currently offline Alex G
Messages: 96
Registered: January 2012
Member
Hi!

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.


Best regards,
Alex.
Previous Topic:How to add a class to the list of imports in the generated Java ?
Next Topic:Problems running Xtext project.
Goto Forum:
  


Current Time: Fri Aug 22 15:50:32 EDT 2014

Powered by FUDForum. Page generated in 0.09399 seconds