winnow-rs / winnow

Making parsing a breeze
https://docs.rs/winnow
Other
573 stars 46 forks source link

Helping users know how to create combinators #588

Open guissalustiano opened 3 months ago

guissalustiano commented 3 months ago

Please complete the following tasks

winnow version

v0.6.18

Describe your use case

When I learn nom I had problem on how to create generic parse combinators, I think it should be documented in somewhere.

Describe the solution you'd like

My first suggestion was add an example (#583).

Alternatives, if applicable

I don't think this is the most discoverable place as we are putting it in one example among a bunch and the likelihood of the user finding it is low. Finding an appropriate place within the tutorial would likely be the best approach.

  • @epage

Additional Context

No response

epage commented 2 months ago

@baoyachi could you explain why you think this could be closed? @guissalustiano had a real need for this as shown in #583 and I'm not seeing the tutorial covering this which is likely the most appropriate place.