JSAPI User Guide

I am looking for a way to parse javascript files, and output the original source code, each statement on a separate line. Does SpiderMonkey has this ability? As far as I know by looking through the docs, SpiderMonkey only parse the javascript files, and execute them. How can I get to the parsed tree and access the original source code? I must find the end of each javascript statement. What other parser (lex, yacc, etc..) can help?

See , and narcissus and proposed spidermonkey API, both referenced there. --Nickolay 16:09, 15 February 2006 (PST)

Document Tags and Contributors

Contributors to this page: Nickolay, Khai, Jorend
Last updated by: Jorend,