diff options
author | Matthias Benkard <mulk@minimulk.mst-plus> | 2008-08-16 22:51:22 +0200 |
---|---|---|
committer | Matthias Benkard <mulk@minimulk.mst-plus> | 2008-08-16 22:51:22 +0200 |
commit | 5cd4de577c08637cb5d78d1c3376b1ff80e74065 (patch) | |
tree | c9e0e279f0c95b5f7fc5c691821344cb2e5d3ce4 /MLKRoot.m | |
parent | d858e84c0778dc1851b3a0e324caaf0bef05f274 (diff) | |
parent | 3f11cb6b3ddd03d3211dd355cbac23884fa5a6e3 (diff) |
Merge branch 'master' of http://matthias.benkard.de/code/mulklisp
Diffstat (limited to 'MLKRoot.m')
-rw-r--r-- | MLKRoot.m | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -22,6 +22,7 @@ #import "MLKDynamicContext.h" #import "MLKInterpretedClosure.h" #import "MLKInterpreter.h" +#import "MLKLLVMCompiler.h" #import "MLKNumber.h" #import "MLKPackage.h" #import "MLKRoot.h" @@ -702,4 +703,16 @@ as provided by method %@ of object %@", cons:forms with:nil]]); } + +#ifdef USE_LLVM ++(NSArray *) compile:(NSArray *)args +{ + NSLog (@"Compiling lambda form."); + id thing = [MLKLLVMCompiler compile:denullify([args objectAtIndex:0]) + inContext:[MLKLexicalContext globalContext]]; + NSLog (@"Compilation done."); + NSLog (@"Compiled: %@", thing); + RETURN_VALUE (thing); +} +#endif @end |