implemented right-associativity for assignment