A shift/reduce parsing framework for Mac OS X and iOS