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
-
- 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
- We will be using Allegro Common Lisp (called "ACL") version
5.0.1.
- Read Chapter 1.
- 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.
- Do all the exercises in Chapter 1. The following notes will help:
- to enter ACL, enter the shell command
cl
- To exit ACL, enter the Lisp command
:exit
- 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.
- To leave the debugger, enter C-d.
- To pop up a single level in the debugger, enter C-d once.
- To pop all the way up to the top-level listener from any debugger
level, enter the command
:res
- Get out of acl, and back to the shell level.
- Do the following:
- Create an empty file named
ch1.txt
- Run acl.
- Have Lisp evaluate the number
0
- Type the interrupt key, going into debugger level 1, and have
Lisp evaluate the number
1 here.
- 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).
- Go up to debugger level 2.
- Go up to the top-level listener.
- Exit acl.
- Paste the preceding interaction (from entering acl to exiting it)
into your
ch1.txt file.
- Submit that file by executing the shell command
submit_cse202 ch1.txt
- Go on to Chapter 2.
- 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.
|