I used stribehou's Infix Expression Calculator for Objective C to add math expression parsing and computation functions to a text field in my app. Woot! It uses the shunting yard algorithm, and I found it by googling about that. This algorithm is like how train yards control trains. So the interwebs aren't a series of tubes... they're a series of trains! Unless you're in London.