Precedence or operator strength determines order of evaluation; an operator with higher precedence is evaluated before one of lower precedence.
优先级或者说操作符的强度决定求值顺序;优先级高的操作符比优先级低的操作符先求值。
The associativity of an operator defines the order in which operators of the same precedence are grouped (right-to-left or left-to-right).
操作符的结合性定义了相同优先级操作符组合的顺序(从右至左或从左至右)。
If the character is an operator, pop operators until you reach an opening parenthesis, an operator of lower precedence, or a right associative symbol of equal precedence.
如果字符是个操作符,弹出(pop)操作符,直至遇见开括号(opening parenthesis)、优先级较低的操作符或者同一优先级的右结合符号。
应用推荐