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

Add common patterns in code #28

Open
goodmami opened this issue Jun 17, 2023 · 0 comments
Open

Add common patterns in code #28

goodmami opened this issue Jun 17, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@goodmami
Copy link
Owner

The documentation has some common patterns defined, but it would also be useful to have some defined in code. But until there's a feature to add external definitions (e.g., a parameter to pe.compile() or some kind of import syntax within a grammar), these patterns will only be useful for non-parsed grammars using operator primitives.

More inspiration:

  • Lark has some basics, like digits and whitespace (link)
  • PEG.js includes unicode categories (link)
@goodmami goodmami added the enhancement New feature or request label Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant