next up previous
Next: 2.1 関数の定義 Up: ソフトウェア特論 講義資料 Scheme言語とインタプリタ Previous: 1.4 特殊シンボルと組み込み手続き(関数)の初期化

2 インタプリタの実行例

実行例は以下のようになります.

<cl> (scheme-interpreter)
==> 1
1 
==> 2
2 
==> 3
3 
==> (begin 1 2 3)
3 
==> (begin (car '(a b c)))
A 
==> (car '(a b c))
A 
==> ((if (= (+ 1 1) 2) list cons) 'a 'b)
(A B)




generated through LaTeX2HTML. M.Inaba 平成18年5月6日