Wraps a parser to log when it succeeds and fails, and at what index.
Wraps a parser to log when it succeeds and fails, and at what index. Useful for seeing what is going on within your parser. Nicely indents the logs for easy reading
Prints the given message, nicely indented, after the wrapped parser finishes
Prints the given message, nicely indented, before the wrapped parser starts
Separated out from ByNameOps because
.log
isn't easy to make an AnyVal extension method, but it doesn't matter since.log
calls are only for use in development while the other ByNameOps operators are more performance-sensitive