forked from pmougin/F-Script
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathFSCNBase.h
27 lines (22 loc) · 1.01 KB
/
FSCNBase.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
/* FSCNBase.h Copyright (c) 2007-2009 Philippe Mougin. */
/* This software is open source. See the license. */
#import <Cocoa/Cocoa.h>
#import "FSArray.h"
#import "FSMsgContext.h"
enum FSCNType {IDENTIFIER, MESSAGE, STATEMENT_LIST, OBJECT, ARRAY, TEST_ABORT, BLOCK, ASSIGNMENT, NUMBER, CASCADE,
UNARY_MESSAGE, BINARY_MESSAGE, KEYWORD_MESSAGE, SUPER, CLASS_DEFINITION, CATEGORY, METHOD, RETURN, DICTIONARY};
// Note: in older versions of F-Script, the node type was archived directly as its FSCNType integer value.
// Therefore, for backward compatibility with older archives, the order of this enum should not be modified.
@interface FSCNBase : NSObject <NSCoding>
{
@public
enum FSCNType nodeType;
int32_t firstCharIndex;
int32_t lastCharIndex;
}
- (void)encodeWithCoder:(NSCoder *)aCoder;
- (id)initWithCoder:(NSCoder *)aDecoder;
- (id)init;
- (void)setFirstCharIndex:(int32_t)first lastCharIndex:(int32_t)last;
- (void)translateCharRange:(int32_t)translation;
@end