Parsing/RPN to infix conversion: Difference between revisions

m
added a fourth column to the operator precedence table, added highlighting to better read the operator symbols, elided the necessity of a "Note".
m (added a fourth column to the operator precedence table, added highlighting to better read the operator symbols, elided the necessity of a "Note".)
Line 17:
|}
 
* Operator precedence and operator associativity is given in this table:
:{| class="wikitable"
 
! operator !! [[wp:Order_of_operations|precedence]] !! [[wp:Operator_associativity|associativity]] !! operation
|- || align="center"
| <big><big> ^ </big></big> || 4 || right || exponentiation
| ^ || 4 || Right
|- || align="center"
| <big><big> * </big></big> || 3 || left || multiplication
| * || 3 || Left
|- || align="center"
| <big><big> / </big></big> || 3 || left || division
| / || 3 || Left
|- || align="center"
| <big><big> + </big></big> || 2 || left || addition
| + || 2 || Left
|- || align="center"
| <big><big> - </big></big> || 2 || left || subtraction
| - || 2 || Left
|}
 
 
;Note:
* &nbsp; The (above) symbol &nbsp; <big><big>''' ^ ''' </big></big> &nbsp; indicates exponentiation.