Builds trees for functions and most primary expressions.