OLD | NEW |
(Empty) | |
| 1 // -*- mode: ObjC -*- |
| 2 |
| 3 // This file is part of class-dump, a utility for examining the Objective-C seg
ment of Mach-O files. |
| 4 // Copyright (C) 1997-1998, 2000-2001, 2004-2010 Steve Nygard. |
| 5 |
| 6 #import <Foundation/Foundation.h> |
| 7 |
| 8 #define TK_EOS 0 |
| 9 #define TK_NUMBER 257 |
| 10 #define TK_IDENTIFIER 258 |
| 11 #define T_NAMED_OBJECT 259 |
| 12 #define TK_QUOTED_STRING 260 |
| 13 #define TK_TEMPLATE_TYPE TK_IDENTIFIER |
| 14 |
| 15 typedef enum { |
| 16 CDTypeLexerStateNormal = 0, |
| 17 CDTypeLexerStateIdentifier = 1, |
| 18 CDTypeLexerStateTemplateTypes = 2, |
| 19 } CDTypeLexerState; |
| 20 |
| 21 @interface CDTypeLexer : NSObject |
| 22 { |
| 23 NSScanner *scanner; |
| 24 CDTypeLexerState state; |
| 25 NSString *lexText; |
| 26 |
| 27 BOOL shouldShowLexing; |
| 28 } |
| 29 |
| 30 - (id)initWithString:(NSString *)aString; |
| 31 - (void)dealloc; |
| 32 |
| 33 - (NSScanner *)scanner; |
| 34 |
| 35 - (CDTypeLexerState)state; |
| 36 - (void)setState:(CDTypeLexerState)newState; |
| 37 |
| 38 - (BOOL)shouldShowLexing; |
| 39 - (void)setShouldShowLexing:(BOOL)newFlag; |
| 40 |
| 41 - (NSString *)string; |
| 42 - (int)scanNextToken; |
| 43 |
| 44 - (NSString *)lexText; |
| 45 - (void)_setLexText:(NSString *)newString; |
| 46 |
| 47 - (unichar)peekChar; |
| 48 - (NSString *)remainingString; |
| 49 - (NSString *)peekIdentifier; |
| 50 |
| 51 @end |
OLD | NEW |