Multiple Languages from different Projects #1375
Replies: 2 comments 13 replies
-
We explicitly decided against the option of combining languages dynamically. When you have multiple languages referencing each other in Langium, you have to build them all in one project. The reason for this decision is that we wanted to avoid the additional complexity involved with dynamic linking of languages. In Xtext, that's only possible because the underlying EMF holds complete meta-models of the ASTs in memory, enabling complex reflection at runtime. We don't have that level of reflection in Langium and we're not planning to add it as of now. |
Beta Was this translation helpful? Give feedback.
-
I wonder if this is related to #1329? At least the question stated above is exactly what I miss in Langium. My use case is restricted to different languages (from different projects) referencing each other. This restricted use case might be much simpler than the general case. |
Beta Was this translation helpful? Give feedback.
-
Hi everybody,
to let the reasoning of discussion become more clear for you, I am coming from Eclipse XText world, which is nice of course because most the concepts of the Langium are really similar.
I am interested multi dependant languages feature of the Langium as explained here..
Multi Dependant Language
My dilemma is, this article and from what I can see from the examples in the repositories, I have to implement all the languages in one single project. My wish is to bring languages as dependencies to a new Langium project.
We are able to this in Eclipse XText as declaring an OSGI dependency the referenced language, I don't see such an example or documentation in Langium, is it possible at all...
The reason I am asking, a company that I am involved has departments that are creating grammars/languages under Eclipse XText projects and this languages can be referenced other departments grammars/languages, which is not big deal as referencing those as OSGI dependencies.
Now I am evaluating that Langium can be an alternative to Eclipse XText or not but I can't figure out this possibility exist or not? It is not practical for the company that I mentioned to place all grammar/languages in one single project because it shear size of the end project would reach.
Did anybody else tried something like this?
Beta Was this translation helpful? Give feedback.
All reactions