Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (21 sloc) 458 Bytes
//
// YKParser.h
// YAMLKit
//
// Created by Patrick Thomson on 12/29/08.
//
#import <Foundation/Foundation.h>
#import "yaml.h"
@interface YKParser : NSObject {
BOOL readyToParse;
FILE* fileInput;
const char *stringInput;
yaml_parser_t parser;
}
- (void)reset;
- (BOOL)readString:(NSString *)path;
- (BOOL)readFile:(NSString *)path;
- (NSArray *)parse;
- (NSArray *)parseWithError:(NSError **)e;
@property(readonly) BOOL readyToParse;
@end