What does the phrase “binds stronger” mean?

折月煮酒 提交于 2019-12-31 03:36:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!