added an ase parser that calculates the median expression