Rewrite path parser with PEG.js
nlepage opened this issue · 4 comments
nlepage commented
nlepage commented
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...
frinyvonnick commented
Does PEG.js generate path grammar documentation too ?
nlepage commented
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 commented
Yes, that's nice !