Javascript grammar?

[email protected] ("Andrew G. Hammond") Tue, 17 Sep 2002 14:15:42 -0400
Newsgroups perl.recdescent
Message-ID <[email protected]>
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).