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

#[cache_left_rec] not work in peg v0.7.0 #278

Closed
Lucifier129 opened this issue Nov 25, 2021 · 4 comments
Closed

#[cache_left_rec] not work in peg v0.7.0 #278

Lucifier129 opened this issue Nov 25, 2021 · 4 comments

Comments

@Lucifier129
Copy link

When I attach #[cache_left_rec] in a left-recursion rule, I got an error like below.

image

@Lucifier129
Copy link
Author

It seems like cache_left_rec is an unpublished feature that was not in peg v0.7.0, any plan or roadmap to ship this extremely useful feature?

@kevinmehall
Copy link
Owner

It was implemented after the release of 0.7.0. I haven't had a chance to finish a new release yet but will do so soon.

@zsol
Copy link
Contributor

zsol commented Dec 21, 2021

I just wanted to say a big thank you @kevinmehall for being supportive of new ideas and implementations like cache_left_rec (as well as #269 which I still haven't gotten around to 😄 ). Your work has helped me write a full Python 3.9 CST parser in Instagram/LibCST#566 (feel free to shoot drive-by comments on it BTW), which will power new Python 3.10 syntax for all users of LibCST. If there's anything I can do to help with the maintenance burden of rust-peg, let me know! Can't wait to depend on a released version of rust-peg instead of git :)

@kevinmehall
Copy link
Owner

0.8.0 has been released with #[cache_left_rec] support. 🎉

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

3 participants