Infix notation
"infix notation" 即 "中缀表达式",这是我们平时书写的时候使用的方式。
infogalactic Infix notation
Infix notation is the notation commonly used in arithmetical and logical formulae and statements. It is characterized by the placement of operators between operands – "infixed operators" – such as the plus sign in "2 + 2".
Usage
Infix notation is more difficult to parse by computers than prefix notation ( e.g. + 2 2 ) or postfix notation ( e.g. 2 2 + ). However many programming languages use it due to its familiarity. It is more used in arithmetic, e.g. 2+2, 5×6.
Shunting yard algorithm
Shunting yard algorithm, used to convert infix notation to postfix notation or to a tree