Replies: 2 comments 1 reply
-
@swantzter You could give every token except for the delimiter token |
Beta Was this translation helpful? Give feedback.
-
Hello @swantzter Can you identify the blocks you want to ignore directly from the tokens array? If the answer to one of these questions is affirmative than you can pre-process the token stream (array) e.g: keep only sub-sections of the tokens array that start with:
|
Beta Was this translation helpful? Give feedback.
-
I'm trying to parse a DSL with two types of "blocks" in curly brackets, one of the types I want to parse, the other type I just want to ignore the whole "body" of since it's not relevant to my application and technically a completely different language (CEL), thus I just want to skip/discard this in my parsing.
Is something like this possible?
Example:
I've made a minimal example of what I have so far:
Example code
Beta Was this translation helpful? Give feedback.
All reactions