-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
Very weird bug using otherwise OK parsers in Union #389
Comments
I can't really parse this as-is. Can you paste a link to a failing example on https://play.golang.org that illustrates the issue? |
sure, here it is https://go.dev/play/p/tais4cSPVOz |
Hi @alecthomas, any way I can help ? If you point me in the right direction I might try a PR |
You need to configure Participle to use enough lookahead that it will be able to backtrack if a branch fails. In this case |
Oh thanks ! |
Hi !
I'm a bit new to Participle, but I've been writting parsers for a while, and I'm falling a bit short on why the last test fails to parse
Any idea ?
Thanks
The text was updated successfully, but these errors were encountered: