My parser is defined in a core library, which is cross-built for 2.12 and 2.13. I have a simple test case that parses successfully under +test.
When I use the core library from somewhere else, including in an ammonite session, parsing the identical text fails with a parse error. I've tried both fastparse 3.0.2 and 2.3.1, and both 2.12 and 2.13 clients; same result.
Hi there, I have a really weird bug.
My parser is defined in a
core
library, which is cross-built for 2.12 and 2.13. I have a simple test case that parses successfully under+test
.When I use the
core
library from somewhere else, including in an ammonite session, parsing the identical text fails with a parse error. I've tried both fastparse 3.0.2 and 2.3.1, and both 2.12 and 2.13 clients; same result.This is the parser:
The text that passes in
core
but fails through a dependency is:struct<"timestamp":timestamp(3),"level":string,"message":string>
Also, I'm certain my grammar is bad for any number of reasons, please feel free to suggest improvements. :)
Thanks!