Where is Langium placed compared to XText,Xtend,Maven,Gradle #144
Replies: 1 comment 6 replies
-
Hi @mehmetsalgar, Regarding code generation, we are relying on a mixture of TypeScripts template strings and our own generator utility, which we are currently in the process of improving (see #133). We don't plan to integrate another third party language into that workflow. Maven/Gradle are tools mainly for the JVM, while we work exclusively with the node.js/web stack. For that reason, we provide everything via You should be able to set up IntelliJ with a language server that is provided by Langium. We don't plan to support that use case out-of-the-box, but it should be possible. You would probably have to create a script file (bash or similiar) to actually start the language server. In our examples, vscode takes care of that. Xtext actually does something similiar with its own language servers. Your speculation is correct. Langium is built with the language server protocol in mind. Compared to Xtext, we omit most abstraction layers between our own framework and the lsp and work directly on the lsp structure internally. Does that answer all of your questions? |
Beta Was this translation helpful? Give feedback.
-
Hi everybody,
recently I was researching about the feature of the XText and potential frameworks to replace it and I found the web page for Langium but I can't place it which role it is exactly playing.
At first it seems, it is replacing XText but the biggest attraction of XText for me, it is deep integration with XTend for code generation but I can't see any component in Langium for code generation (may be it is naturally matched with TypeScript but I am not sure, my knowledge with TypeScript is rudimentary).
I also see no integration with Maven/Gradle, which is quite important for my use cases (we are generating code from our CI pipelines and not from Eclipse UI).
And finally, my main motivation for looking what happening after XText, the XText's close integration with Eclipse (My project uses exclusively IntelliJ and it is reducing the acceptance of using DSL for scenarios that will make sense) and .p2 repositories are pain in the ass for CI Integration over Maven/Gradle....
Now what I am going to write is pure speculation but is the purpose of Langium is to provide a Language Server from DSL Grammar so we can connect with, lets say, IntelliJ and work from there?
Thx for answers?
Beta Was this translation helpful? Give feedback.
All reactions