This is simple Recursive Descent Parser for parsing and solving simple arithmetic expressions.
Its sample code for my blog post Recursive Descent Parser for arithmetic expressions with real numbers http://blog.roboblob.com/2014/12/16/recursive-descent-parser-for-arithmetic-expressions-with-real-numbers/