zenika-open-source / immutadot

immutadot is a JavaScript library to deal with nested immutable structures.

Home Page:https://immutadot.zenika.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rewrite path parser with PEG.js

nlepage opened this issue · comments

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...

Does PEG.js generate path grammar documentation too ?

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

Yes, that's nice !