added function to parse number expressions