aboutsummaryrefslogtreecommitdiff
path: root/lib/node.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-08-17 15:59:42 +0300
committerMihai Bazon <mihai@bazon.net>2012-08-17 15:59:42 +0300
commit13f7b119bb7e2184dcd623e167f507b31e73725a (patch)
tree63f144da8e583624588c0bde6e330dfac93335eb /lib/node.js
parentc7c163b82e72ef8fcd5b899ffd3e003adfaf80ee (diff)
downloadtracifyjs-13f7b119bb7e2184dcd623e167f507b31e73725a.tar.gz
tracifyjs-13f7b119bb7e2184dcd623e167f507b31e73725a.zip
code generator finally seems to work properly
Diffstat (limited to 'lib/node.js')
-rwxr-xr-xlib/node.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/node.js b/lib/node.js
index 69867497..ae2ec845 100755
--- a/lib/node.js
+++ b/lib/node.js
@@ -19,13 +19,15 @@
///
var filename = process.argv[2];
- console.time("parse");
+ //console.time("parse");
var ast = parse(fs.readFileSync(filename, "utf8"));
- console.timeEnd("parse");
+ //console.timeEnd("parse");
+ //console.time("generate");
var stream = OutputStream({ beautify: true });
ast.print(stream);
- console.log(stream.get());
+ //console.timeEnd("generate");
+ sys.puts(stream.get());
// console.time("walk");
// var w = new TreeWalker(function(node){