From 0bffa9f8b104a4b067153d16c25b4118931d97cb Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Thu, 31 Jul 2014 23:20:18 -0800 Subject: [PATCH] Expose parseWithTokenizer in the interface. This allows callers to use tokenizers other than the PKTokenizer instances that parseString and parseStream create. --- include/PEGKit/PKParser.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/PEGKit/PKParser.h b/include/PEGKit/PKParser.h index 1b84a9f..1bdf7f5 100644 --- a/include/PEGKit/PKParser.h +++ b/include/PEGKit/PKParser.h @@ -63,6 +63,7 @@ enum { - (id)parseString:(NSString *)input error:(NSError **)outErr; - (id)parseStream:(NSInputStream *)input error:(NSError **)outErr; - (id)parseTokens:(NSArray *)input error:(NSError **)outErr; +- (id)parseWithTokenizer:(PKTokenizer *)tokenizer error:(NSError **)outErr; @property (nonatomic, assign, readonly) id delegate; // weak ref @property (nonatomic, retain) PKTokenizer *tokenizer;