an opensource string tokenizing and parsing toolkit written in Objective-C. For use on Mac OS X and iOS. Supports BNF-style grammars.
ParseKit is an Objective-C implementation of the tools described in "Building Parsers with Java" by Steven John Metsker. ParseKit includes additional features beyond the designs from the book and also some changes to match common Cocoa/Objective-C conventions.
The ParseKit Framework offers 3 basic services of general interest to Cocoa developers:
- String Tokenization via the Objective-C
PKTokenizer
andPKToken
classes. - High-Level Language Parsing via Objective-C - An Objective-C parser-building API (the
PKParser
class and sublcasses). - Objective-C Parser Generation via Grammars - Generate an Objective-C parser for your custom language using a BNF-style grammar syntax (similar to yacc or ANTLR). While parsing, the parser will provide callbacks to your Objective-C code.