On Fri, May 23, 2008 at 4:03 PM, Pat Nakajima <patna...@gmail.com> wrote:
> I've started working on a small project to generate code coverage
> reports for JavaScript projects. It's called ProtoCov, and while much
> work still needs to be done, I think it has some great potential.
If you're looking for other parser options, you might check out
Johnson (http://github.com/jbarnette/johnson): As well as providing a
SpiderMonkey runtime in Ruby, we also provide a parse tree with
round-trip support. We're not quite ready for a 1.0, but the parser is
pretty usable.
require "johnson"
ast = Johnson.parse("...")
# ...
ast.to_js
~ j.
We mostly develop it on OS X, so it shouldn't be too much of a
problem. Drop by #johnson on Freenode or contact me via email or GTalk
(jbarnette at the google) and I'm sure we can beat it into submission.
~ j.