Replies: 2 comments 1 reply
-
Hey @maxir269, our internal lexer engine requires us to explicitly specify whether one token is a possible longer alternative of another token. See: langium/packages/langium/src/parser/token-builder.ts Lines 151 to 159 in e9d0c27 While this is easily possible to identify for keyword tokens, this is quite difficult to accomplish for arbitrary terminal/regex definitions. In order to fix this you can:
|
Beta Was this translation helpful? Give feedback.
-
Hallo @msujew yes i want to make alle keywords in my grammar case-Insensitive. when i use "caseInsensitive": true, is that make the Identifer also caseInsensitive. VAR i want to both (VAR , var ) to refer to the same ID how should i define a keywords in langium? inside ' ' like in lok grammar or as terminal? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hier is simple grammar
grammar HelloWorld
even when no space between keyword and ID it see the keyword Func
Funcdsd // that should be ID but it parser it as Func and the rest a ID.
How can I change the behavior?
Beta Was this translation helpful? Give feedback.
All reactions