simplify anon fun parse and parse if then else exprs