-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Stack overflow at ~20,000 characters #384
Comments
Groups are never capturing in logos so you don't need This is one of those cases that really needs the codegen rewrite (#291) into a loop with enum branching working as faux-goto instead of function calls. |
I had already rewritten it as |
it still overflows at some point though, at a larger number Should I leave this issue open for tracking? |
Ye, let's do that. |
this should fix a reported stack overflow (might be related to maciejhirsz/logos#384) and should also make it easier to add additional scripts besides latin in the future
You can also avoid a stack overflow by compiling with optimizations. Apparently [profile.dev]
opt-level = 1 There currently seems to be no way to selectively optimize the generated |
I have a StringLiteral token with the following expressions on it:
And encountering a string literal above ~20,000 characters stack overflows within logos generated code
Is there an error in one of these expressions?
The text was updated successfully, but these errors were encountered: