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

What are the Pest v3 goals? #12

Open
chriskrycho opened this issue Jun 14, 2024 · 1 comment
Open

What are the Pest v3 goals? #12

chriskrycho opened this issue Jun 14, 2024 · 1 comment

Comments

@chriskrycho
Copy link

Hey folks, started using Pest v2 yesterday, am quite happy with it, and saw this while poking around. I would love to know what the goals and motivations here are!

@tomtau
Copy link
Contributor

tomtau commented Jun 15, 2024

@chriskrycho thanks for your interest! In short, its goals and motivations are to improve the areas that pest focuses on (accessibility, correctness, and performance).

See pest-parser/pest#1016 and pest-parser/pest#885 for more details.

Many years ago, the "original vision" for pest3 was two-fold:

  1. to have an improved simplified grammar. This new grammar should be easier to use, avoiding some pitfalls learned from pest2, as well as easier to optimize and analyze, thus allowing potentially faster code execution and more comprehensive error messages.
  2. to have an alternative API for the parser output that would better leverage Rust's type system (unlike the existing Pairs API), thus reducing boilerplate and avoiding unnecessary errors arising from Pairs API output processing without a need for a third-party crate, such as pest-ast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants