-
Hello, I am trying to figure out how to use some more sophisticated lexer instead of simple declaration of several terminal regexps. More specifically, I want lexer to produce into the resulting token stream additional tokens INDENT and DEDENT (which will mark out beginning of scope and ending of scope correspondingly). I found that in pure Chevrotain this task is accomplished with a bunch of JavaScript logic. But how to integrate such a logic (or similar) into Languim? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @vlkv, you can override the |
Beta Was this translation helpful? Give feedback.
Hey @vlkv,
you can override the
TokenBuilder
service to implement the Chevrotain pattern matching function in Langium.