Printed math expression parser