Skip to content

Add hidden and labeled combinators - #20

Merged
mkantor merged 2 commits into
mainfrom
descriptive-combinators
Sep 2, 2026
Merged

mkantor merged 2 commits into
mainfrom
descriptive-combinators

Conversation

@mkantor

@mkantor mkantor commented Sep 1, 2026

Copy link
Copy Markdown
Owner

These give control over what things are included in error messages and how those things are described.

Now that failures survive backtracking "expected" lists are much longer
and often contain noise.

The new `hidden` combinator excludes a parser's expectations, meant for
parsers handling trivia and other mundane stuff. An error message saying
"whitespace could have gone here" is not typically helpful.
`labeled` makes it possible to describe a set of possible values with a
short phrase rather than listing out all the possibilities.
@mkantor
mkantor merged commit b9ae792 into main Sep 2, 2026
1 check passed
@mkantor
mkantor deleted the descriptive-combinators branch September 2, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant