-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add -public
flag that will publicly expose a rule for parsing.
#42
Comments
This is a bit half-baked. For example, what exactly should the method signatures be?
Obviously, not all are possible. Do we need to satisfy all of these contracts? What are our actual use cases? |
One known use case: #25 Composite Grammars. This would require an interface such as |
Another possible use case: #32 Higher-order Rules Higher order rules will need a delegate-passing interface and will benefit most from the same interface as Composite Grammars, |
I would use -public to gain access to a rule to use for restarting the parse. The signature need not change. At present I do this via the partial class. |
This is now complete in the develop branch. I also included an The difference is that the |
Example:
Here, program would still be the start rule and a method called
ParseExpression
would be exposed.A warning will be emitted if the
-public
flag is added to a rule whose name starts with a lower case letter.The text was updated successfully, but these errors were encountered: