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 @class CDMethodType, CDType, CDTypeLexer, CDTypeName; |
| 9 |
| 10 extern NSString *CDSyntaxError; |
| 11 extern NSString *CDTypeParserErrorDomain; |
| 12 |
| 13 #define CDTypeParserCodeDefault 0 |
| 14 #define CDTypeParserCodeSyntaxError 1 |
| 15 |
| 16 @interface CDTypeParser : NSObject |
| 17 { |
| 18 CDTypeLexer *lexer; |
| 19 int lookahead; |
| 20 } |
| 21 |
| 22 - (id)initWithType:(NSString *)aType; |
| 23 - (void)dealloc; |
| 24 |
| 25 - (CDTypeLexer *)lexer; |
| 26 |
| 27 - (NSArray *)parseMethodType:(NSError **)error; |
| 28 - (CDType *)parseType:(NSError **)error; |
| 29 |
| 30 @end |
| 31 |
| 32 @interface CDTypeParser (Private) |
| 33 |
| 34 - (void)match:(int)token; |
| 35 - (void)match:(int)token enterState:(int)newState; |
| 36 - (void)error:(NSString *)errorString; |
| 37 |
| 38 - (NSArray *)_parseMethodType; |
| 39 - (CDType *)_parseType; |
| 40 - (CDType *)_parseTypeInStruct:(BOOL)isInStruct; |
| 41 |
| 42 - (NSArray *)parseUnionTypes; |
| 43 - (NSArray *)parseOptionalMembers; |
| 44 - (NSArray *)parseMemberList; |
| 45 - (CDType *)parseMember; |
| 46 |
| 47 - (CDTypeName *)parseTypeName; |
| 48 - (NSString *)parseIdentifier; |
| 49 - (NSString *)parseNumber; |
| 50 |
| 51 - (BOOL)isTokenInModifierSet:(int)aToken; |
| 52 - (BOOL)isTokenInSimpleTypeSet:(int)aToken; |
| 53 - (BOOL)isTokenInTypeSet:(int)aToken; |
| 54 - (BOOL)isTokenInTypeStartSet:(int)aToken; |
| 55 |
| 56 @end |
OLD | NEW |