Importing dsl files in another dsl file #914
-
This might be a dumb question.
//someDifferentFile.mydsl |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I have not practiced it myself, but the builtin libraries guide seems like a good place to start. You may also want to read more about how cross-reference are resolved in document lifecycle's document. If I understand your question correctly, #853 seems to be a perfect answer. |
Beta Was this translation helpful? Give feedback.
-
See also #458 . This may clarify how to "import" and reference elements from other DSL files. |
Beta Was this translation helpful? Give feedback.
-
There is one example included in langium, where two DSLs are combined and elements from one DSL reference elements from the other DSL (w/o import statements, using global visibility). |
Beta Was this translation helpful? Give feedback.
I have not practiced it myself, but the builtin libraries guide seems like a good place to start. You may also want to read more about how cross-reference are resolved in document lifecycle's document.
If I understand your question correctly, #853 seems to be a perfect answer.