Implemented parser for mathematical expressions.