Fixed precedence/associativity issue - mathematical and logical operators should now have the correct precedence, and
are left-associative.