Bugs fixed: the parser now initialises itself properly, advances beyond strings and numbers, and converts the incoming text to lowercase. Also: the document file will need to be Objective-C++ to call this stuff.
Switched to Objective-C++, wrote a quick, leaky (unique_ptrs needed?), parser test.
Removed a piece of Xcode fluff I'd missed before.