Math syntax is only a syntax error when there are undefined symbols, or when the expression has no numbers in it. So 6÷2(1+2)=9 with no syntax error.
Also, parentheses have precedence over brackets.

This question is for testing whether you are a human visitor and to prevent automated spam submissions.