summaryrefslogtreecommitdiff
path: root/MLKInterpretedClosure.h
diff options
context:
space:
mode:
authorMatthias Benkard <mulk@Minimulk.local>2008-08-24 18:07:16 +0200
committerMatthias Benkard <mulk@Minimulk.local>2008-08-24 18:07:16 +0200
commit03f8b9a2dd1a41baee46fd82e07545ad7c10986d (patch)
tree379451ffec91546a874bdfe4f1a4e934eeadd48b /MLKInterpretedClosure.h
parent926dce9dc2c7afa009cacab46fb6f1b704c80ca7 (diff)
MLKInterpretedClosure: Adapt to the new interpreter.
Diffstat (limited to 'MLKInterpretedClosure.h')
-rw-r--r--MLKInterpretedClosure.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/MLKInterpretedClosure.h b/MLKInterpretedClosure.h
index 4955c4c..9651c70 100644
--- a/MLKInterpretedClosure.h
+++ b/MLKInterpretedClosure.h
@@ -16,7 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#import "MLKForm.h"
#import "MLKFuncallable.h"
+#import "MLKInterpreter.h"
#import "MLKLexicalContext.h"
#import "MLKLexicalEnvironment.h"
@@ -26,16 +28,12 @@
@interface MLKInterpretedClosure : NSObject <MLKFuncallable>
{
- id bodyForm;
- MLKSymbol *lambdaListName;
- MLKLexicalContext *context;
- MLKLexicalEnvironment *environment;
+ MLKSimpleLambdaForm *_form;
+ MLKLexicalEnvironment *_environment;
}
--(id) initWithBodyForms:(id)forms
- lambdaListName:(MLKSymbol *)symbol
- context:(MLKLexicalContext *)lexctx
- environment:(MLKLexicalEnvironment *)lexenv;
+-(id) initWithForm:(MLKSimpleLambdaForm *)aForm
+ environment:(MLKLexicalEnvironment *)lexenv;
-(NSArray *) applyToArray:(NSArray *)arguments;