forked from pmougin/F-Script
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathFSExecutor.h
47 lines (39 loc) · 1.42 KB
/
FSExecutor.h
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
/* Executor.h Copyright (c) 1998-2009 Philippe Mougin. */
/* This software is open source. See the license. */
#import <objc/objc.h>
#import "FSArray.h"
@class Space;
@class FSCompiler;
@class FSSymbolTable;
@class FSInterpreter;
@class FSInterpreterResult;
@interface FSExecutor:NSObject <NSCoding>
{
FSInterpreter *interpreter;
// WARNING: No retain done on this pointer, in order to avoid a cycle.
// I add this ivar in order for a FSSystem object to be able to implement the object browser opening.
BOOL should_journal;
NSInteger verboseLevel;
NSFileHandle *journal;
NSString *journalName;
FSSymbolTable *localSymbolTable;
FSCompiler *compiler;
}
- (FSArray *) allDefinedSymbols;
- (void)breakCycles;
- (FSInterpreterResult *)execute:(NSString *)command;
- (id)initWithInterpreter:(FSInterpreter *)theInterpreter;
- (void)installFlightTutorial;
- (FSInterpreter *)interpreter; // Will return nil if the associated interpreter no longer exists
- (void)interpreterIsDeallocating;
- (id)objectForSymbol:(NSString *)symbol found:(BOOL *)found; // found may be passed as NULL
- (BOOL)setJournalName:(NSString *)filename;
- (void)setShouldJournal:(BOOL)shouldJournal;
- (void)setObject:(id)object forSymbol:(NSString *)symbol;
- (void)setVerboseLevel:(NSInteger)theVerboseLevel;
- (BOOL)shouldJournal;
// ULSYSTEM PROTOCOL (informal)
- (void)setSpace:(Space*)space;
- (Space*)space;
- (FSSymbolTable *)symbolTable;
@end