JavaScript / PHP - Source Documentor for JavaScript

I’ve begun putting together an idea for a PHP program that will document JavaScript. In the general sense, it will need to have a good lexical analyzer because it need to understand the syntax and the buildup and creation of the functions and classes. I’m going to outline some goals that are needed for me to use a program like this.

Requirements

  1. Must be autonomous
  2. Must be able to Add/Edit Comments, without having to directly change the source files
  3. Must contain revision controls
  4. Display of the output must be adaptable easily
  5. Must contain an API to access from “afar”
    With those five initial setups, I think I will start to build some thought expirements to figure out exactly what I am talking about. Should I implement SVN into it? ScriptDoc formats? JavaScript engine for analyzing? Lots of different things.

Come back to this post for more info later. I’m going to search out other programs that implement some of these things to figure out if there are any.

Help appreciated :)