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

Example grammar that parses JSON like JSON.parse? #2090

Open
fabiospampinato opened this issue Feb 17, 2025 · 1 comment
Open

Example grammar that parses JSON like JSON.parse? #2090

fabiospampinato opened this issue Feb 17, 2025 · 1 comment

Comments

@fabiospampinato
Copy link

Hello, I'd like to benchmark my little parser generator against Chevrotain, but I can't find a first-party grammar for it that parses JSON. I see there's this one, but it parses JSON to a CST, in order to compare it against my grammar it would have to parse JSON in the JSON.parsesense. Is a first-party grammar like that available?

Thanks.

@robocoder
Copy link

You can find the performance section of other peg-like parsers in chevrotain's gh-pages branch.

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