-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Labels
A-combinatorArea: combinatorsArea: combinatorsC-enhancementCategory: Raise on the bar on expectationsCategory: Raise on the bar on expectations
Description
Please complete the following tasks
- I have searched the discussions
- I have searched the open and rejected issues
winnow version
0.6.20
Describe your use case
I found myself always need to surround my parser in trace
function, so why don't we add a "trace" macro to make us more lazy?
Describe the solution you'd like
Something like:
#[trace]
fn my_parser(input: I) -> PResult<O> {
...
}
will be expanded to:
fn my_parser(input: I) -> PResult<O> {
trace("my_parser", move |input: &mut _| {
...
}).parse_next(input)
}
Alternatives, if applicable
No response
Additional Context
No response
segiddins
Metadata
Metadata
Assignees
Labels
A-combinatorArea: combinatorsArea: combinatorsC-enhancementCategory: Raise on the bar on expectationsCategory: Raise on the bar on expectations