Beginnings of an Objective-C (Foundation) implementation of the docopt language, under a MIT license.
Written (so far) by Ole Begemann, April 2013.
This project began with the intention to implement docopt in Objective-C. Its current status (as of May 2013) is fundamentally incomplete. In fact, this project does not implement any docopt feature so far.
All it does is provide a starting point by parsing the official docopt testing fixtures at testcases.docopt and executing these test cases against the largely empty Docopt
class.
Currently (as of May 7th, 2013), all tests that do not expect a result of "user-error"
fail because the Docopt
class has no working functionality.
Your contributions to this project are highly welcome. These are the steps you should do:
- Open
docopt.xcodeproj
in Xcode. - Run the tests by pressing
Cmd+U
. - Read the failing test cases and fix them one by one by adding functionality to the
-[Docopt parse]
method. - Refactor your implementation into nice code.