From df6a6fe6807edabf1b3c3e904eb2ead20eedf0ca Mon Sep 17 00:00:00 2001 From: Jim Pryor Date: Thu, 23 Sep 2010 04:07:16 -0400 Subject: [PATCH] tweak lambda evaluator Signed-off-by: Jim Pryor --- code/parse.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/code/parse.js b/code/parse.js index 2e0745ba..cb412f7f 100644 --- a/code/parse.js +++ b/code/parse.js @@ -65,24 +65,25 @@ var make_parse = function () { } }; + try { + if (console && console.debug) { + function print() { + console.debug.apply(this, arguments); + } + } + } catch (e) {} + var symbol = function (id) { var s = symbol_table[id]; if (!s) { s = Object.create(original_symbol); s.id = s.value = id; symbol_table[id] = s; + print(s, s.arity); } return s; }; -// try { -// if (console && console.debug) { -// function print() { -// console.debug.apply(this, arguments); -// } -// } -// } catch (e) {} - var var_table; var name_table; -- 2.11.0