|
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. |
Answered by
msujew
Jun 15, 2023
Replies: 1 comment 1 reply
|
Hey @vlkv, you can override the |
1 reply
Answer selected by
vlkv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @vlkv,
you can override the
TokenBuilderservice to implement the Chevrotain pattern matching function in Langium.