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

Maybe it's easier to cooperate/use cpp-peglib or chpeg #1

Closed
mingodad opened this issue Jun 28, 2022 · 1 comment
Closed

Maybe it's easier to cooperate/use cpp-peglib or chpeg #1

mingodad opened this issue Jun 28, 2022 · 1 comment

Comments

@mingodad
Copy link

mingodad commented Jun 28, 2022

I'm actually coopearitng/using cpp-peglib https://github.com/yhirose/cpp-peglib and chpeg https://github.com/ChrisHixon/chpeg and I think that both of then can be used/customized to produce a pegn parser interpreter and a playground too (https://chrishixon.github.io/chpeg/playground/ and https://yhirose.github.io/cpp-peglib/ ).

Here rwxrob/pegn-spec#15 (comment) I attached a pegn grammar usable by cpp-peglib and here it's ChrisHixon/chpeg#20 (comment) for chpeg.

Both projects cpp-peglib and chpeg welcome collaboration/ideas/improvements and I invite you and anyone interested on similar problems to join !

@rwxrob
Copy link
Owner

rwxrob commented Nov 10, 2022

That looks like an excellent project that is solving different problems. The only thing in common is seeking to have a language-agnostic meta language, and I'm happy to see a lot of similar ideas to the syntax I've been using.

Unfortunately, there is just too much missing from that project for me to really get behind it. The method of capture is sub-optimal, I didn't see named captures within a given rule scope, and there is absolutely no sign anywhere of building out a large, reserved set of rule definitions with verbose human-friendly documentation for each reserved rule, potentially in multiple languages.

@rwxrob rwxrob closed this as completed Nov 10, 2022
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