-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chevrotain error: Unable to use "first char" lexer optimizations #77
Comments
Hello @bankyadam and thanks for reporting this. I am currently investigating deprecating the regexp-to-ast package and replacing its usage in Chevrotain This means this issue will have a low priority as it may become redundant. What this means for the Chevrotain Parser is that some performance optimizations will not take effect for your lexer. You may be able to work-around this by specifying additional metadata on your Token object. |
this is still a problem in 2024... :/
|
Hello @masukomi This library was moved to https://github.com/Chevrotain/chevrotain/tree/master/packages/regexp-to-ast The error message you are printing shows you are using an old version of Chevrotain. |
If the issue still reproduces open an issue at https://github.com/Chevrotain/chevrotain/issues |
To help to understand the regexp, here are my test strings that this expression accepts:
The text was updated successfully, but these errors were encountered: