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.
2
Q
The values to which an operation is being performed
A
operands
3
Q
The type of operation being performed
A
operator
4
Q
The convention of placing the operator to the left of the operands
A
prefix notation
5
Q
What are the advantages of prefix notation?
A
- no ambiguity
- nested combinations
- opeator is always the leftmost element and the entire combination is delimited by paranthesis
- there is no limit (in principle) to the depth of such nesting and overall complexity of the expressions that the interpreter can evaluate
6
Q
Formatting convention in which each long combination is written so that the operands are aligned vertically.
A
pretty-printing