iso8601 date parser for winnow #633
Replies: 2 comments 2 replies
-
Great work! I wonder if we should advertise integration crates like this.
Maybe I'm biased but I feel like the mindset isn't all that different. For most people, writing parsers is just writing functions. We just have a few more combinators. Only when you get into stream types are things weird, with checkpoints and stuff. Is there a reason you are doing Is there a reason you are doing Can't you Why |
Beta Was this translation helpful? Give feedback.
-
While working through the suggestions mentioned, I remembered why the sign parser isn't just passing literal a char. Input is The other fixes are in version 0.3.0, which I just released, and also has a feature for converting to time-rs and fixed a few issues around durations. |
Beta Was this translation helpful? Give feedback.
-
I have been using the iso8601 crate since it was fairly new, and missed it terribly when moving to winnow. So I forked it and swapped out nom for winnow, and should be fairly trivial to move existing code over from the nom version. I've published the crate as winnow_iso8601.
I tried to keep bindings as close to the stock winnow parsers as I could, and so assume this should work with any input those do. If anyone finds otherwise, please open an issue so I can fix this.
Since I am coming from a nom mindset, I welcome feedback anywhere that I am not following winnow best practices.
Beta Was this translation helpful? Give feedback.
All reactions