Is langium appropriate to add browser/ide support to an existing language? #1736
-
My team used Jexl (Apache Java expression language ) as scripting in a project. There's no tooling available for IDEs to help with jexl and ideally our Monaco web inputs would support it too) I was wondering if that's an appropriate use case for langium or if it's more tailored specifically for creating new languages. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @RickeyWard, I wasn't aware of Jexl yet, but it looks like a good use case for Langium. In fact, existing languages are often times easier to support using Langium compared to novel languages, because they usually have a well-defined grammar that can be poured into our grammar format. Looking closer at Jexl, it seems to import Java types - this isn't a problem for Langium in general (our linking feature is very generic), but getting this to work often times requires some sort of JDK bridge/adapter. We built something like that for this project (see The current version of the yeoman generator we offer for langium (see here and here) supports creating a VS Code extension and a monaco web-worker for online IDE support. |
Beta Was this translation helpful? Give feedback.
Hey @RickeyWard,
I wasn't aware of Jexl yet, but it looks like a good use case for Langium. In fact, existing languages are often times easier to support using Langium compared to novel languages, because they usually have a well-defined grammar that can be poured into our grammar format.
Looking closer at Jexl, it seems to import Java types - this isn't a problem for Langium in general (our linking feature is very generic), but getting this to work often times requires some sort of JDK bridge/adapter. We built something like that for this project (see
java-interop
folder for more info), in case you're interested to see what I'm talking about.The current version of the yeoman generator w…