A Handbook of Mathematical Discourse
syntax
The syntax of an expression is an analysis of the manner in which the expression has been constructed from its parts.
Example 1 The syntax of the expression $5 + 3$ consists partly of the fact that “5” is placed before “+” and “3” after it, but the syntax is more than that; it also includes the fact that “+” is a binary operation written in infix notation, so that the expression $5 + 3$ is a term and not an assertion. The expression $3 + 5$ is a different expression; the semantics usually used for this expression tells us that it has the same value as $5+3$.
Example 2 The syntax of the expression $5 > 3$ tells us that it is an assertion; the semantics tells us that it is a true assertion.
Example 3 The syntax of the expression $3x +y$ is different from the syntax of $3(x +y)$. In the common tree notation for syntax the two expressions are parsed as in the diagrams in the margin.

Using syntax The syntax of an expression gives it structure beyond being merely a string of symbols. The structure must be deduced by the reader with clues given by convention (in the case of Example 3, that multiplication takes precedence over addition), parentheses, and the context. (See also Example 3 under symbolic expression.)
Successful students generally have the functional knowledge needed to determine the structure without much explicit instruction, and in many cases without much conscious awareness of the process. For example, college students may be able to calculate $3(x +y)$ and $3x +y$ correctly for given instantiations of $x$ and $y$, but they may have never consciously noticed that in calculating $3x +y$ you must calculate the product before the sum, and the other way around for $3(x +y)$. (A reverse Polish calculator forces you to notice things like that.) See also compositional.
The way the order of calculation is determined by the syntactic structure and the observation in section (b) under substitution that substitution commutes with evaluation are basic aspects of learning to deal with mathematical expressions that are essentially never made explicit in teaching. (No teacher under whom I studied ever made them explicit.)
Students vary widely on how much they are able to use the syntax to help decode mathematical expressions. Even college engineering and science students don’t always understand the difference between expressions such as $-2^{2}$ and $(-2)^{2}$.
Similarly, the syntax of a complicated English sentence may help some understand it while communicating little or nothing to others. Thus a student may be able to understand a very complicated statement in English that is in context, but will find meaningless a statement with the same logical structure about abstract objects.
See also compositional, substitution.
Acknowledgments: Some of this discussion was suggested by [Dubinsky, 1997]. A good reference to the syntax of English is [McCawley, 1988a], [McCawley, 1988b]. Thanks also to Atish Bagchi and Eric Schedler.
Pages 246–247 of the book (PDF).