Feedback using winnow
as a replacement for nom
in jql
#385
yamafaktory
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Thanks for the feedback! #387 adds a migration guide |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is basically a follow-up discussion of the initial PR I made to switch from
nom
towinnow
after getting some good feedback on Mastodon.I'd like to thanks @epage for taking the time to jump into this initial PR, providing very good hints on how to better use the capabilities of the library - and improving performance.
I'm not going to dive into details since most of the changes were pretty straightforward based on the direct feedback. What I really liked was:
Parser
being implemented for strings and byte strings out of the box (no need to usetag
most of the time)separated
directly taking arange
as first argumentParser
trait compared tonom
which has more cumbersome typesstr
to some number with e.g.digit1.parse_to().parse_next(input)
map
on aParser
compared tonom
where it's a another combinatorrepeat
as a way to accumulate the output of a parser into aVec
What would be very beneficial would be to have an official how-to for users migrating from
nom
towinnow
, condensing all the examples from:Beta Was this translation helpful? Give feedback.
All reactions