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

Rewrite path parser with PEG.js #307

Open
nlepage opened this issue Jul 3, 2018 · 4 comments
Open

Rewrite path parser with PEG.js #307

nlepage opened this issue Jul 3, 2018 · 4 comments
Assignees
Milestone

Comments

@nlepage
Copy link
Member

nlepage commented Jul 3, 2018

https://nearley.js.org/

@nlepage nlepage added this to the 2.0 milestone Jul 3, 2018
@nlepage nlepage self-assigned this Jul 3, 2018
@nlepage
Copy link
Member Author

nlepage commented Jul 10, 2018

I can't get nearley to work like I would want...

PEG.js seems to work fine though, and it generates a parser that doesn't need any runtime dependency !

Renaming the issue...

@nlepage nlepage changed the title Rewrite path parser with nearley Rewrite path parser with PEG.js Jul 10, 2018
@frinyvonnick
Copy link
Contributor

Does PEG.js generate path grammar documentation too ?

@nlepage
Copy link
Member Author

nlepage commented Jul 16, 2018

No it doesn't seem so, but the grammar file in itself is almost a documentation (just a little polluted by post processors)...
See for yourself https://github.com/Zenika/immutadot/blob/8078a98fa4d2e43100a95a5933df07155b680eba/packages/parser-peg/src/path.pegjs

@frinyvonnick
Copy link
Contributor

Yes, that's nice !

@nlepage nlepage modified the milestones: 2.0, Future Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants