rust-peg icon indicating copy to clipboard operation
rust-peg copied to clipboard

Basic default rules?

Open khionu opened this issue 7 years ago • 2 comments

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.

khionu avatar Oct 10 '18 06:10 khionu

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

khionu avatar Feb 12 '20 09:02 khionu

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.

kevinmehall avatar Feb 12 '20 15:02 kevinmehall