Started reformulating as a document-based project.
Performed basic project setup. Enabled lots of warnings, ticked to run in a sandbox with read-only access to user-selected files, put an NSOpenGLView into our only window, enabled it for full screen use, removed redundant menu bar items.
This is the plan then: update and include one class at a time. Starting with the condition class because it’s likely least tied to the outgoing EBGF stuff.
Made a start trying to factor this thing sensibly. Doesn’t build yet.
Started making an attempt to factor parsing these things out separately from running them. Sound sensible?
Fingers crossed that’s the instruction builder — the thing that parses FCL scripts — complete. I even managed to simplify it versus the old version.
Deleted those parts that have successfully migrated elsewhere.
Filled in implementation.
Fleshed out implementation.
Whoops; forgot to declare destructor.
Made an attempt to cut down on the pointless Xcode/OS X git chatter.
Forgot to include these files.
Merge branch 'master' into development
Cleared some migrated parts out of here also.
Commented out pretty much the entirety of CCondition, to get back to building. Removed an old reference to a member variable named ‘string’ from FCLInstruction. Renamed InstructionBuilder to the much more sensible Parser.
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.
Where’s my brain? FCL numbers are all signed. Adjusted for that and factored some more trivial stuff out of Condition.
Added ‘getBit’, which is related to how 8-bit FCL scripts are upconverted to 16-bit scripts.