-
Notifications
You must be signed in to change notification settings - Fork 21
pest to chumsky migration #185
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
base: master
Are you sure you want to change the base?
pest to chumsky migration #185
Conversation
|
cc @canndrew may want to keep an eye on progress here |
6db55db to
1b1e751
Compare
|
Right now there is a working parser using the Error reporting is currently broken because we need to replace the logic of The code will be refactored because some parts are only half-finished (such as adding |
|
cc @canndrew |
| } | ||
|
|
||
| #[test] | ||
| #[ignore] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1b1e751 It's nice to see that chumsky seems to be faster than pest here.
This adds parsing via `chumsky` and some necessary changes for it to work: - Change `error::Span` type to use byte offset for position. Also add the `line-index` crate to replace the `line_col` method which was previously used with the `pest` parser. - Replace the `PestParse` trait with the `ChumskyParse` trait and the `ParseFromStr` implementation for it.
it's not slow anymore
1b1e751 to
1e7c61b
Compare
No description provided.