winnow-rs / winnow

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

Add a non-consuming combinator that returns `()` #399

Closed epage closed 9 months ago

epage commented 11 months ago

Please complete the following tasks

winnow version

0.5.30

Describe your use case

success only handles the equivalent of Parser::value but there is also Parser::void, Parser::default_value (#398).

Describe the solution you'd like

chumsky::primitive::empty would be nice

The main question is in naming

Alternatives, if applicable

No response

Additional Context

Split out of #82

baoyachi commented 10 months ago

Provide a few name references: