1 #import <Cocoa/Cocoa.h>
3 @interface RInterpreter
: NSObject
{
6 unsigned char *readerBuffer
,*readerTemp
;
7 int readerBufferLength
,readerBufferUsed
;
8 int readerAddToHistory
;
12 BOOL configured
,suppressOutput
,allowTerminal
;
14 int (*ptr_R_OldReadConsole
)(char*,unsigned char*,int,int);
15 void (*ptr_R_OldWriteConsole
)(char*,int);
16 void (*ptr_R_OldFlushConsole
)();
17 int (*ptr_R_OldShowFiles
)(int,char**,char**,char*,int,char*);
20 NSMutableAttributedString
*buffer
;
22 NSMutableArray
*deviceList
;
30 + (RInterpreter
*)sharedInterpreter
;
34 #pragma mark Configuration
35 - (void)setArgv
:(char**)argv argc
:(int)argc
;
37 - (void)setDelegate
:(id
)delegate
;
40 - (void)setBufferSize
:(long)bufferSize
;
43 - (void)setAllowTerminal
:(BOOL
)aBool
;
44 - (BOOL
)allowTerminal
;
46 - (void)setHomePath
:(NSString
*)aPath
;
47 - (NSString
*)homePath
;
49 - (void)setLocaleIdentifier
:(NSString
*)aLocale
;
50 - (NSString
*)localeIdentifier
;
53 #pragma mark Interaction Protocol
55 - (void)evaluateInput
:(NSString
*)aString
;