PEG.js is a parser generator written in JavaScript for Node.js or the browser. Its parsing expression grammar syntax is more powerful than traditional LL(k) and LR(k) parsers and accommodates expressive error messages and inline JavaScript.
4
votes
1answer
706 views
PEG.js grammar for parsing CSS selectors
I have a library that's parsing some expressions, part of which is a CSS selector. More accurately, it's a jQuery-compatible selector. The selector itself is opaque to my library - I don't need to ...