Skip to main content


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 10:57
Alex G is currently offline Alex GFriend
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 Apr 26 03:35:24 GMT 2024

Powered by FUDForum. Page generated in 0.02713 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top