Permalink
Browse files

Remove debug print and add line break at end of output.

  • Loading branch information...
1 parent f723a77 commit 8b57e2dca499af156d9f9ff3bf094355f9da4a7b @zaach committed Jul 18, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/js/codegen.js
View
@@ -188,7 +188,6 @@ var codegens = exports.nodes = {
+'\n'+idt(lvl-1)+'}';
},
'Case': function Case_codegen (lvl) {
- print(this.children[1]);
return 'case ' +this.children[0].toJS()+':\n'+idt(lvl)+this.children.slice(1).map(function(node){return node.blockgen(lvl+1)}).join('\n'+idt(lvl));
},
'DefaultCase': function DefaultCase_codegen (lvl) {
@@ -223,10 +222,10 @@ var codegens = exports.nodes = {
+'{\n'+idt(lvl)+genStmts(this.children.slice(2), lvl+1) +'\n'+idt(lvl-1)+'}';
},
'ParamDecl': function ParamDecl_codegen (lvl) {
- return this.children.map(function(node){print(node.nodeType);return node.toJS(lvl)}).join(', ');
+ return this.children.map(function(node){return node.toJS(lvl)}).join(', ');
},
'Program': function Program_codegen (lvl) {
- return this.children.map(function(node){return node.blockgen(lvl+1)}).join('\n')
+ return this.children.map(function(node){return node.blockgen(lvl+1)}).join('\n')+'\n';
}
};

0 comments on commit 8b57e2d

Please sign in to comment.