Regex that accepts any character as unquoted string #1010
idiosyncrasy00
started this conversation in
General
Replies: 1 comment 2 replies
-
Hey @LockedAwya, I'm not sure what you're trying to achieve is easily doable with an LL parser (and therefore with Langium). The issue is that LL parsers first need to tokenize the whole text, before attempting to parse it. During this tokenization step, it cannot take context into account. So it can't differentiate between a normal ID ( At least that's what I'm gathering from your question. Maybe you can elaborate a bit on what you're trying to achieve? I can only give you minimal advice with this little context. |
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
-
Hello, I am trying to build a DSL and there is a piece of work like this:
_sale.isComplete = false
Sequence{prdDesc.desc, prdDesc.price, prdDesc.upc}
_item.salesLineItem->isEmpty()
I want Langium to treat the above expression as an unquoted String. What I have tried so far is to implement a regex that matches any character but langium does not accept me to do this.
How can I solve the problem? Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions