Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add pTrace function #63
Here's a basic tool I hacked up back in the day to help in debugging parsers, and I've found it indispensable.
@pchiusano added a wrapper to show backtracking too.
I don't have a strong opinion on where it lands in the parsec package, but it seems that a few people have now found it useful and it only really exists as folklore. It would be nice to add it to the parsec package proper in an appropriate location: