-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
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
Support :rept
expressions in PEG
#9
Conversation
7f94a38
to
a5e8d1a
Compare
You may need to parse the ABNF, and then run the You can see how it's done in the ABNF example. If it's still not working for you, please give me the example you're using and I'll work it up. If the README needs updates to clarify this, please consider a PR. |
(Sorry, thinking this was an issue, not a PR). I'll look at this more closely and consider. There are working examples that use rept, so the |
PEG didn't have the support to handle
has |
As you know, things get very meta quickly when you're working on this stuff :) This can make it challenging to keep things straight. I believe the Ideally, one of the examples in the ABNF example directory would also exercise this functionality (I'm surprised it doesn't). Also, as this is a substantive change, if you haven't already done so, and as called for in the README, please consider making a public domain dedication, as part of this PR. This will cover any future contributions, as well. |
|
Thanks, but that was the body of the unlicensed the dedication is the following
|
Whoops, I should have scrolled down farther.
|
:rept
wasn't supported in the PEG, even though it exists for ABNF.When implementing a PEG parser based on ABNF with an
a*b
-style rule, you currently get