nom icon indicating copy to clipboard operation
nom copied to clipboard

[doc] `Check` mode does not supress fatal errors

Open lolbinarycat opened this issue 6 months ago • 2 comments

I was trying to write my own combinator and was getting very confused as to why there were two different error types, and as to why Check didn't seem to be suppressing every error, despite the docs saying that it does.

lolbinarycat avatar Jun 20 '25 20:06 lolbinarycat

Check in general is used to verified that an output or error was produced, to continue parsing after that. The fatal errors are there to indicate that parsing should stop entirely, so the error passes through

Geal avatar Aug 25 '25 21:08 Geal

yes, but that's not what the docs say.

lolbinarycat avatar Aug 25 '25 21:08 lolbinarycat