summaryrefslogtreecommitdiff
path: root/MLKRoot.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-24 19:10:21 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-24 19:10:21 +0200
commitaa3f4a2b760c3d890aa51b3afa904ab604de794c (patch)
treec031c1242e0c1ad2ae92cf00347f36ec343065de /MLKRoot.m
parentbaae263841853c289d48ce172e614171167cf1dd (diff)
parenta34b771cd9cc823260407b2905312b3be05390db (diff)
Merge mulk_benkard@ssh.phx.nearlyfreespeech.net:/home/htdocs/code/mulklisp
Diffstat (limited to 'MLKRoot.m')
-rw-r--r--MLKRoot.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/MLKRoot.m b/MLKRoot.m
index 361ce16..8045f54 100644
--- a/MLKRoot.m
+++ b/MLKRoot.m
@@ -776,4 +776,12 @@ as provided by method %@ of object %@",
? (id)[arglist array]
: (id)[NSArray array])];
}
+
++(NSArray *) eval:(NSArray *)args
+{
+ id evaluand = denullify ([args objectAtIndex:0]);
+ return [MLKInterpreter eval:evaluand
+ inLexicalContext:[MLKLexicalContext globalContext]
+ withEnvironment:[MLKLexicalEnvironment globalEnvironment]];
+}
@end