문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top