This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
Language Server implementation for the structurizr dsl #243
Replies: 1 comment 12 replies
-
@torsten-systemticks You have done a great job! I saw that you are using a TextMate Grammar to describe the syntax. I just started a journey to learn how to use ANTLR to create a parser and then a Prettier formatter plugin or perhaps something like you did. |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just in case someone is interested in a generic way of integrating the structurizr dsl into any editor/IDE that supports Language Server Protocol (short: LSP):
For my C4 DSL VS Code Extension I have meanwhile split the software stack into two major components:
• The pure VS Code Extension (i.e. the UI and client-specific part)
• A general C4 DSL language server, which is triggered from the VS Code extension and is doing the "real work" like code completion, cross-referencing, validation, text decorations, etc.
The C4 DSL language server fully supports the LSP. and can then be adopted by any editor/IDE that supports LSP on the client side. Here is the current complete list: https://microsoft.github.io/language-server-protocol/implementors/tools/.
I have also implemented a first version of an Eclipse plugin. Only very rudimentary, just to proof that it works.
Beta Was this translation helpful? Give feedback.
All reactions