API for parsing mathematical expressions