Replies: 1 comment 2 replies
-
You can take a look at the langium-lox grammar. Even though it contains semi colons (due to them being mandatory in the original grammar), I just confirmed that the language also works as expected when making them optional.
Not yet, though we are thinking about that. We do have a few example languages, but nothing concrete such as a sort of "standard library" of Langium grammars. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What may a grammar look like for a language with optional semi colons?
F.e. suppose you want to allow the following, where all of them are a function call:
On a related note, I'm interested in code re-use. Are there any grammar files published somewhere that we can
import
and may have certain useful things for C-like or JS-like languages?Beta Was this translation helpful? Give feedback.
All reactions