1.1.1 Expressions Flashcards

1
Q

combinations

A

Expressions representing numbers that are combined with an expression representing a primitive procedure (such as * or +) to form a compound expression that represents the application of the procedure to those numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The values to which an operation is being performed

A

operands

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The type of operation being performed

A

operator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The convention of placing the operator to the left of the operands

A

prefix notation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the advantages of prefix notation?

A
  1. no ambiguity
  2. nested combinations

  1. opeator is always the leftmost element and the entire combination is delimited by paranthesis
  2. there is no limit (in principle) to the depth of such nesting and overall complexity of the expressions that the interpreter can evaluate
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Formatting convention in which each long combination is written so that the operands are aligned vertically.

A

pretty-printing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly