doc (WIP)

This commit is contained in:
Mihai Bazon
2012-08-19 22:46:00 +03:00
parent 6c35135ace
commit 1fe0ff9fff
5 changed files with 69 additions and 2 deletions

17
tmp/browser.js Normal file
View File

@@ -0,0 +1,17 @@
var func = function TEST () {
};
console.time("parse");
var ast = parse(func.toString());
console.timeEnd("parse");
ast.walk({
_visit: function(node, descend) {
console.log(node);
console.log(node.TYPE, ":", node.start.pos);
if (descend) descend.call(node);
}
});