converting syntax priority and associativity