I'm looking for a grammar to parse javascript. Anybody know where I could get one?
The goal is to create a javascript compressor which maintains semantic equivilance while minimizing size of a javascript file (remove whitespace & comments without mangling strings, rename identifiers using variable length huffman codes).