Added ratio support in parse_expr