lots'o'fixes in the output routines; still a looong way to go.
This commit is contained in:
@@ -23,6 +23,10 @@
|
||||
var ast = parse(fs.readFileSync(filename, "utf8"));
|
||||
console.timeEnd("parse");
|
||||
|
||||
var stream = OutputStream({ beautify: true });
|
||||
ast.print(stream);
|
||||
console.log(stream.get());
|
||||
|
||||
// console.time("walk");
|
||||
// var w = new TreeWalker(function(node){
|
||||
// console.log(node.TYPE + " [ start: " + node.start.line + ":" + node.start.col + ", end: " + node.end.line + ":" + node.end.col + "] " + node.name);
|
||||
|
||||
Reference in New Issue
Block a user