next up previous
Next: Symbol Equality Up: No Title Previous: No Title

Symbols and Quote

Scheme uses the character ' to distinguish between symbols and their values. The value of 'x is the symbol x and not the value of the thing named x.

The quote syntax 'expr is interpreted by the reader as syntactic sugar for (quote expr).

Practice giving the printed representation and the box-and-pointer diagram for each of the following:

Given the definitions above the line below, what does the Scheme interpreter print for each of the expressions below the line?



Michael E. Leventon
Tue Mar 23 09:50:05 EST 1999