Today I needed a library that takes a regular expression and gives you a string that matches. https://github.com/fent/randexp.js fits that need nicely.
Unfortunately, reading the docs has introduced me to evil patterns like /a^/ and /\1 (a)/. Yikes.
Microsoft is writing a PHP parser that handles error recovery well, and the internals docs are really accessible.
It includes a discussion of handling trivia and even some sample parsing code.
I haven't seen any docs that make it easy to transition from "here's a usage example" to "use this functionality in your project".
I've seen "add foolib==1.2 to your clipboard" for easy installation, but could we do the same for code samples?