Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top