diff compiler.js @ 35:bf5e88f6419d

Use a function/method call strategy that actually works
author Mike Pavone <pavone@retrodev.com>
date Mon, 09 Jul 2012 21:32:28 -0700
parents a10f1b049193
children 3b0503a67165
line wrap: on
line diff
--- a/compiler.js	Mon Jul 09 08:57:50 2012 -0700
+++ b/compiler.js	Mon Jul 09 21:32:28 2012 -0700
@@ -9,12 +9,10 @@
 	this.names = null;
 	var self = this;
 	get('/src/', function(data) {
-		console.log(data);
 		self.names = {};
 		var fakeEl = newEl("div", {
 			innerHTML: data.response
 		});
-		console.log(fakeEl);
 		each(qall('a', fakeEl), function(idx, a) {
 			var tpidx = a.textContent.indexOf('.tp');
 			if (tpidx > -1) {
@@ -24,11 +22,9 @@
 	});
 }
 topsymbols.prototype.find = function(name) {
-	console.log(this.names);
 	if (!this.names) {
 		throw new Error('data not ready');
 	}
-	console.log('toplevel', name);
 	if (name in this.names) {
 		return {
 			type: 'toplevel',
@@ -99,7 +95,6 @@
 	return curlist;
 }
 osymbols.prototype.getEnvType = function() {
-	console.log('osymbol parent', this.parent);
 	return this.parent.getEnvType();
 }
 
@@ -113,7 +108,6 @@
 	this.envtype = 'void';
 }
 lsymbols.prototype.find = function(name, nestedcall) {
-	console.log('find', name, nestedcall);
 	if (name in this.names) {
 		if (this.names[name] instanceof funcall && this.names[name].name == 'foreign:') {
 			return {
@@ -122,7 +116,6 @@
 			};
 		}
 		if (nestedcall) {
-			console.log('closedover', name);
 			this.closedover[name] = true;
 		} 
 		if (name in this.closedover) {
@@ -180,7 +173,6 @@
 };
 lsymbols.prototype.getEnvType = function() {
 	if (this.passthruenv) {
-		console.log('lsymbol parent', this.parent);
 		return this.parent.getEnvType();
 	} else {
 		return this.envtype;