Basic parser for simple arithmetic expressions, with some extensibility.