Support for Xtext enum #1475
-
We had a language in Xtext. We are migrating into Langium. Xtext had concept of enum values like this.
I haven't seen any mention of this in Langium grammar.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I'd recommend you read this article: https://www.typefox.io/blog/xtext-to-langium/ and this discussion: #521. But answering your question using the article approach, then it would be something like this: Xtext:
Langium:
|
Beta Was this translation helpful? Give feedback.
-
Thank you for that great reference. We could convert our old xtext based grammar into Langium. There were couple of issues. The ML and SL comments were not working when we migrated. We had to redo that part. Other than that we haven't seen other issues. Will keep an eye and post about any issues here. |
Beta Was this translation helpful? Give feedback.
I'd recommend you read this article: https://www.typefox.io/blog/xtext-to-langium/ and this discussion: #521.
But answering your question using the article approach, then it would be something like this:
Xtext:
Langium: