diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-08-17 15:59:42 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-08-17 15:59:42 +0300 |
commit | 13f7b119bb7e2184dcd623e167f507b31e73725a (patch) | |
tree | 63f144da8e583624588c0bde6e330dfac93335eb /lib/node.js | |
parent | c7c163b82e72ef8fcd5b899ffd3e003adfaf80ee (diff) | |
download | tracifyjs-13f7b119bb7e2184dcd623e167f507b31e73725a.tar.gz tracifyjs-13f7b119bb7e2184dcd623e167f507b31e73725a.zip |
code generator finally seems to work properly
Diffstat (limited to 'lib/node.js')
-rwxr-xr-x | lib/node.js | 8 |
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){ |