| Inherits from | NSObject |
| Declared in | GBObjectiveCParser.h<br />GBObjectiveCParser.m |
Implements Objective-C source code parser.
The main responsibility of this class is encapsulation of Objective-C source code parsing into in-memory representation. As we're only parsing a small subset of Objective-C and even then we don't need to handle much specifics beyond recognizing different classes, variables, methods etc., overall the parsing process is quite simple. Basically we use ParseKit's PKTokenizer to split given input string into tokens and then traverse the list of tokens to get the data we need.
+ parserWithSettingsProvider:
Returns autoreleased parser to work with the given GBApplicationSettingsProvider implementor.
- initWithSettingsProvider:
Initializes the parser to work with the given GBApplicationSettingsProvider implementor.
- parseObjectsFromString:sourceFile:toStore:
Parses all objects from the given string.
Returns autoreleased parser to work with the given GBApplicationSettingsProvider implementor.
+ (id)parserWithSettingsProvider:(id)settingsProvider Returns initialized instance or nil if initialization fails.
Returns autoreleased parser to work with the given GBApplicationSettingsProvider implementor.
This is the designated initializer.
nil . GBObjectiveCParser.hGBObjectiveCParser.m Initializes the parser to work with the given GBApplicationSettingsProvider implementor.
- (id)initWithSettingsProvider:(id)settingsProvider Returns initialized instance or nil if initialization fails.
Initializes the parser to work with the given GBApplicationSettingsProvider implementor.
This is the designated initializer.
nil . GBObjectiveCParser.hGBObjectiveCParser.mParses all objects from the given string.
- (void)parseObjectsFromString:(NSString *)input sourceFile:(NSString *)filename toStore:(id)storeParses all objects from the given string.
The method adds all detected objects to the given store.
nil . GBObjectiveCParser.hGBObjectiveCParser.m