问题
I know this might be a newbie question, but I'm trying to make sense of this sentence(from a paper on a meta language that uses EBNF):
Logical and (&) binds stronger than logical or (|).
Before that it says:
Conditions are:
condition ::= condition (`&´ | `|´ ) condition | `!´ condition | relation
relation ::= expression ( `=´ | `#´ | `<´ | `<=´ | `>´ | `>=´ ) expression
thanks
回答1:
This refers to precedence. In other words, if you have A & B | C
, you really have (A & B) | C
. Operations with higher precedence/that bind stronger are evaluated first.
来源:https://stackoverflow.com/questions/16876455/what-does-the-phrase-binds-stronger-mean