We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
maybe_delimited
I would like something like:
delimited( opt(char('(')), many1(my_parser), opt(char(')'), )
so that outer () are optional but I would only want them optional together so unmatched () are treated as an error.
()
A maybe_delimited function that treats the delimiters as optional in combination, would help with this.
I cant provide this if needed but of course it would not work currently. :)
The text was updated successfully, but these errors were encountered:
Could be easily written as alt(body | delimited(left, body, right)), right?
alt(body | delimited(left, body, right))
Sorry, something went wrong.
No branches or pull requests
I would like something like:
so that outer
()
are optional but I would only want them optional together so unmatched()
are treated as an error.A
maybe_delimited
function that treats the delimiters as optional in combination, would help with this.Test case
I cant provide this if needed but of course it would not work currently. :)
The text was updated successfully, but these errors were encountered: