1 #import <Cocoa/Cocoa.h>
3 #import "REnvironment.h"
5 @interface RInterpreter
: NSObject
{
8 unsigned char *readerBuffer
,*readerTemp
;
9 int readerBufferLength
,readerBufferUsed
;
10 int readerAddToHistory
;
14 BOOL configured
,suppressOutput
,allowTerminal
,vend
,waiting
;
17 NSMutableAttributedString
*buffer
;
18 NSDictionary
*outputTag
,*errorTag
,*promptTag
;
20 NSMutableArray
*deviceList
;
28 + (RInterpreter
*)sharedInterpreter
;
32 #pragma mark Configuration
33 - (void)setArgv
:(char**)argv argc
:(int)argc
;
35 - (void)setDelegate
:(id
)delegate
;
38 - (void)setBufferSize
:(long)bufferSize
;
41 - (void)setAllowTerminal
:(BOOL
)aBool
;
42 - (BOOL
)allowTerminal
;
44 - (void)setVend
:(BOOL
)aBool
;
47 - (void)setHomePath
:(NSString
*)aPath
;
48 - (NSString
*)homePath
;
50 - (void)setLocaleIdentifier
:(NSString
*)aLocale
;
51 - (NSString
*)localeIdentifier
;
54 #pragma mark Interaction Protocol
55 - (NSString
*)serverName
;
58 - (void)evaluateInput
:(NSString
*)aString
;
60 - (RDevice
*)deviceCopyOfType
:(NSString
*)aType withTarget
:(NSString
*)aTarget
;
62 #pragma mark Moving Data Between Servers
65 - (REnvironment
*)environment
;