jast, a JavaScript parser, AST, and tools

Credit to UglifyJS by mishoo for the parser base.
jast is released under the modified BSD license.

AST Definition

Each AST node is a JSON hash with the property "type" corresponding to the node type ("script-context", "sub-op-expr", etc) and the property "ln" corresponding to line number. Each node has properties about the node as described below: