The Department of Computer Science & Engineering
cse@buffalo

CSE202: Programming in Lisp

Course
Grades
Email

Welcome

Policies
    Grades
    Inc
    Intgrty

Preface
Part I
  Chap 1
  Chap 2
  Chap 3
  XEmacs
  Chap 4
  Chap 5
  Chap 6
  Chap 7
  Chap 8
  Chap 9
Part II
  Chap 10
  Chap 11
  Chap 12
  Chap 13
  Chap 14
  Chap 15
  Chap 16
  Chap 17
  Chap 18
  Chap 19
  Chap 20
  Chap 21
  Chap 22
  Chap 23
Part III
  Chap 24
  Chap 25
  Chap 26
  Chap 27
  Chap 28
  Chap 29
  Chap 30
  Chap 31
  Chap 32
Chapter 1: Getting Started
Notes
  1. Either use the machine yeager.cse.buffalo.edu or the machine denali.cse.buffalo.edu for all your work in this course, and do it all in the directory you have created named CSE202
  2. We will be using Allegro Common Lisp (called "ACL") version 5.0.1.
  3. Read Chapter 1.
  4. Arrange your computer's desktop so that you have the browser open to these notes, and a window open with a shell running in it. Put them side-to-side, or one above the other so that you can read both at the same time. Do this throughout the entire course.
  5. Do all the exercises in Chapter 1. The following notes will help:
    1. to enter ACL, enter the shell command cl
    2. To exit ACL, enter the Lisp command :exit
    3. The ACL interrupt key is ^C (or C-c), which is read "control c", and is entered by holding down the Control key and simultaneously typing the C key.
    4. To leave the debugger, enter C-d.
    5. To pop up a single level in the debugger, enter C-d once.
    6. To pop all the way up to the top-level listener from any debugger level, enter the command :res
  6. Get out of acl, and back to the shell level.
  7. Do the following:
    1. Create an empty file named ch1.txt
    2. Run acl.
    3. Have Lisp evaluate the number 0
    4. Type the interrupt key, going into debugger level 1, and have Lisp evaluate the number 1 here.
    5. Continue this down to debugger level 3, at each level, have Lisp evaluate the number of that level (2 on level 2, 3 on level 3).
    6. Go up to debugger level 2.
    7. Go up to the top-level listener.
    8. Exit acl.
    9. Paste the preceding interaction (from entering acl to exiting it) into your ch1.txt file.
    10. Submit that file by executing the shell command submit_cse202 ch1.txt
  8. Go on to Chapter 2.
  9. When I have read your submission, assuming you have done it correctly, I will record your progress in the grade sheet. If you have not done it correctly, I will send you email.

Next

Copyright © 1999, 2000 by Stuart C. Shapiro. All rights reserved.

Stuart C. Shapiro <shapiro@cse.buffalo.edu>