| // -*- mode: ObjC -*- |
| |
| // This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files. |
| // Copyright (C) 1997-2019 Steve Nygard. |
| |
| @class CDType, CDTypeLexer; |
| |
| extern NSString *CDExceptionName_SyntaxError; |
| extern NSString *CDErrorDomain_TypeParser; |
| |
| extern NSString *CDErrorKey_Type; |
| extern NSString *CDErrorKey_RemainingString; |
| extern NSString *CDErrorKey_MethodOrVariable; |
| extern NSString *CDErrorKey_LocalizedLongDescription; |
| |
| #define CDTypeParserCode_Default 0 |
| #define CDTypeParserCode_SyntaxError 1 |
| |
| @interface CDTypeParser : NSObject |
| |
| - (id)initWithString:(NSString *)string; |
| |
| @property (readonly) CDTypeLexer *lexer; |
| |
| - (NSArray *)parseMethodType:(NSError **)error; |
| - (CDType *)parseType:(NSError **)error; |
| |
| @end |