Skip to content
Discussion options

You must be logged in to vote

Hey @LockedAwya,

so for one, importing other grammars can be done through a simple import mechanism. See here for an example.

We have also added a type declaration format similar to Ecore back in v0.3. However, it is not as extensive as Ecore/EMF is. This is by design to keep the library simple.

The two features above can obviously be combined. So you can build a .langium file purely consisting of interfaces, while another implements the grammar rules for these elements.

By the way, we have also released a tool to automatically migrate from Xtext grammars to Langium. It might not do a full migration for complex setups though: https://github.com/TypeFox/xtext2langium

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by idiosyncrasy00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants