summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-06-22 23:57:44 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-06-22 23:57:44 +0200
commit90dd81762b1c62246a31245d8bbb27966b1d5452 (patch)
treea4f1c47eae693a1b68015eeb896d4cdadad8db1e
parentfeff6d33b25d0e61d09a08129c7f15c44c2609e0 (diff)
Interpreter: Fix QUOTE and empty PROGN forms.
-rw-r--r--MLKInterpreter.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/MLKInterpreter.m b/MLKInterpreter.m
index 1b4ddbb..1c011d2 100644
--- a/MLKInterpreter.m
+++ b/MLKInterpreter.m
@@ -120,7 +120,7 @@ static MLKSymbol *_DEFMACRO;
}
else if (car == PROGN)
{
- id result;
+ id result = nil;
id rest = program;
while ((rest = [rest cdr]))
{
@@ -133,7 +133,7 @@ static MLKSymbol *_DEFMACRO;
}
else if (car == QUOTE)
{
- return [program cdr];
+ return [[program cdr] car];
}
else if (car == TAGBODY)
{
@@ -171,7 +171,7 @@ static MLKSymbol *_DEFMACRO;
else
{
[NSException raise:@"MLKNoSuchOperatorException"
- format:@"%@ does not name an known operator.",
+ format:@"%@ does not name a known operator.",
[car descriptionForLisp]];
}
}