Closed oguimbal closed 7 months ago
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 participle.UseLookahead(4)
seems to work.
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