Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AST From Function

0 views
Skip to first unread message

Kris Zyp

unread,
Oct 8, 2008, 9:15:31 AM10/8/08
to
What is the best way to get the AST representation
(org.mozilla.javascript.Node or appropriate subclass) of an existing
function (one that was created by evaluation)? Currently I am calling
JS toString for the function and then creating a new Parser and
parsing that string, but seems pretty awkward. Is there a better way?
0 new messages