Logical operators priority with NAND, NOR, XNOR
operator precedence have to be defined by a language, and what you have here doesn't seem to be a formal language, in such cases it's often assumed to be evaluated as you read from left to right.
If the expression is written like the way it is mentioned in the question(without brackets in between), it should be solved in the order they are written. Thats the only correct way to do this.
eg. If its written line
A NOR B XOR C, It simply means
(A NOR B) XOR C
Manlio 3 months
I've searched the web but I've found no solution to this problem.
What is the logical priority for operators
I mean, considering as example the expression
A AND B NAND C
which operator should be evaluated first?
NANDcan be translated as
(A AND B) NAND C != A AND (B NAND C) = A AND NOT(B AND C)
According to my researches there's no a defined priority for such an expression, so I think the simplest solution is to evaluate the operators according to the order they appear in the expression, but I may be wrong.