Notation - prefix notation, infix notation, postfix notation

2019. 12. 29. 06:09Java

728x90

1. Prefix notatoin 전위 표현식

 예) + 3 5

  Operators precede their operands.

  연산자가 피연산자 앞에 나온다.

 

 

2. Infix notation 중위 표현식

  우리가 흔히 표기하는 방법.

  예) 3 + 5

 

 Infix notation is more difficult to parse by computers. However many programming languages use it due to its familiarity.

 중위 표현식은 컴퓨터가 파싱하기에 어려운 표현식이다. 하지만 가장 친숙한 방식이기에 많은 프로그래밍 언어에서 이를 사용하고 있다.

 

In infix notation, parentheses surrounding groups of operands and operators are necessary to indicate the intended order in which operations are to be performed.

의도된 연산 순서를 따르기 위해서는 피연산자와 연산자를 둘러싸고 있는 괄호를 신경써야 한다.

 

 

3. Postfix notation 후위 표현식

  Operator follow their operands.

  연산자가 피연산자 뒤에 온다.

  예) 3 5 +

 

 

728x90
반응형