You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.The text was updated successfully, but these errors were encountered: