blob: 73e53c0b4fcb01313ad25f98618098cf94299131 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
//
// LispREPL.h
// Moxie
//
// Created by Brian Cully on Sat Aug 14 2004.
// Copyright (c) 2004 Brian Cully. All rights reserved.
//
#define LispFinishedLoadingNotification @"LispFinishedLoadingNotification"
@interface LispREPL : NSObject
{
NSFileHandle *theStdinWriter;
NSFileHandle *theStdoutReader;
NSFileHandle *theResultReader;
NSMutableDictionary *theCommandHandlers;
NSMutableArray *theREPLResults;
NSTimer *theDispatcherTimer;
NSLock *theDispatcherLock;
BOOL theLispIsLoaded;
}
+ (LispREPL *)sharedREPL;
- (BOOL)isLoaded;
- (void)addCommand: (NSString *)command
handler: (id)object
selector: (SEL)handler;
- (void)removeCommand: (NSString *)command;
- (void)runCommand: (NSString *)command withObjects: (id)objects;
- (BOOL)commandHasHandler: (NSString *)command;
- (id)handlerForCommand: (NSString *)command;
- (SEL)selectorForCommand: (NSString *)command;
- (void)eval: (id)aForm;
@end
@interface LispREPL (Accessors)
- (NSMutableDictionary *)commandHandlers;
- (NSFileHandle *)stdinWriter;
- (NSFileHandle *)stdoutReader;
- (NSFileHandle *)resultReader;
@end
|