Structure expressions into a proper AST.