-
I cannot figure out how to ignore any text outside of brackets or parentheses using langium.
It consists of one or many commands. A command is enclosed by a simple pair of curly brackets:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @Pooideae, The default lexer won't get you very far with this, since the language you're attempting to build needs to encode state during the tokenization phase. Essentially, you need to start with the free text state, enter the expression state with |
Beta Was this translation helpful? Give feedback.
Hey @Pooideae,
The default lexer won't get you very far with this, since the language you're attempting to build needs to encode state during the tokenization phase.
Essentially, you need to start with the free text state, enter the expression state with
{
and(
and leave it again on[
. This is rather non-trivial, but here is a guide that tries to explain this.