Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants