[MyMachine:cs170/Scheme] ./scheme
A prototype evaluator for Scheme.
Type Scheme expressions using quote,
car, cdr, cons and symbol?.
The function call (exit) quits.

scheme> (quote (a b c))
 ( a  b  c )

scheme> a
 a 

scheme> (car (quote (a b c)))
 a 

scheme> (cdr (quote (a b c)))
 ( b  c )

scheme> (car (cdr (quote (a b c))))
 b 

scheme> (cons (quote a) (quote (b c)))
 ( a  b  c )

scheme> (cons (quote (a b c)) #f)
 (( a  b  c ))

scheme> (car (cons (quote (a b c)) #f))
 ( a  b  c )

scheme> (symbol? a)
 #t 

scheme> (symbol? (quote (a b c)))
 () 

scheme> (exit)
Have a nice day!
[MyMachine:cs170/Scheme]