summaryrefslogtreecommitdiff
path: root/MLKInterpreter.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-06-23 19:02:42 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-06-23 19:02:42 +0200
commit3aa255629a915314b71c04820833b683ff9234fc (patch)
treeef0ed440cadee353c3800cd8232ee483bf7508c0 /MLKInterpreter.m
parent1c181e7b07ee551d6f76416972fe38ff411ffc40 (diff)
Initialise the global environment on startup.
Diffstat (limited to 'MLKInterpreter.m')
-rw-r--r--MLKInterpreter.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/MLKInterpreter.m b/MLKInterpreter.m
index 35d73cf..1f158ec 100644
--- a/MLKInterpreter.m
+++ b/MLKInterpreter.m
@@ -81,6 +81,7 @@ static MLKSymbol *_DEFMACRO;
if (!program || [program isKindOfClass:[MLKSymbol class]])
{
+ //NSLog (@"Processing symbol.");
if ([context symbolNamesSymbolMacro:program])
{
id macrofun = [context macroForSymbol:program];
@@ -93,10 +94,12 @@ static MLKSymbol *_DEFMACRO;
}
else if ([context variableIsLexical:program])
{
+ //NSLog (@"Processing lexical variable.");
return [lexenv valueForSymbol:program];
}
else
{
+ //NSLog (@"Processing special variable.");
return [dynamicContext valueForBinding:program];
}
}