Skip to content
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

Basic default rules? #201

Open
khionu opened this issue Oct 10, 2018 · 2 comments
Open

Basic default rules? #201

khionu opened this issue Oct 10, 2018 · 2 comments
Labels
feature Something not supported that perhaps should be

Comments

@khionu
Copy link

khionu commented Oct 10, 2018

I think it might be a nice addition, maybe as a Crate Feature, to have some basic defaults, such as for matching alphanumerics, newlines, etc. use peg::preset_rules; at the top of a grammar, and have access to a set of "primitives", so to speak.

@kevinmehall kevinmehall added the feature Something not supported that perhaps should be label Oct 6, 2019
@khionu
Copy link
Author

khionu commented Feb 12, 2020

Can this get a "Help wanted" or "Good first issue" label, to bring some contributor attention to this?

@kevinmehall
Copy link
Owner

This is blocked on an imports mechanism (#25) or some other way to inject the library into your grammar, which requires some design and deeper implementation work.

However, we could start collecting these basic rules into a file under tests/run-pass/, which in the mean time would be a handy reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Something not supported that perhaps should be
Projects
None yet
Development

No branches or pull requests

2 participants