Here are some notes on using the DrScheme installation in the ACC lab. If you install DrScheme on your own computer, you will need to do similar procedures but the paths may be different.
Language Level
Teachpack
Loading functions.scm and other files
Break
Exit
Stepper
Loading trace and other libraries
Last revised November 2, 2000. Use your browser's Reload or Refresh button to get the latest version.
Back to Fall quarter lab schedule page.
Usually we will want to use the Full Scheme level:
Language
menu and select Full SchemeGraphical (Mr.Ed)
Language: Graphical Full Scheme (Mr Ed)
From now on this language level should be selected automatically each time you start DrScheme. You can always confirm this by looking at the top of the interactions window.
You can use the same procedure to change the language level at any time.
To run the examples in the textbook Simply Scheme, you must load its teachpack:
Q:\FofC\simply-teachpack.scm
and select it.Clear simply-teachpack.scm
Teachpack: Q:\FofC\simply-teachpack.scm.
From now on this teachpack should be loaded automatically each time you start DrScheme. You can always confirm this by looking at the top of the interactions window, or the Language menu.
You can use the same procedure to load other teachpacks.
To confirm that you have loaded the teachpack successfully, type this command in the DrScheme interactions window:
(word 'comp 'uter)
DrScheme should respond
computer
To do the examples in Chapter 2 in Simply Scheme you must load the
file functions.scm
.
The command given in the textbook, (load "functions.scm")
does not work in the ACC lab.
Instead you must use this command:
(load "Q:\\FofC\\functions.scm")
Note the double backslashes in the path.
You can use this same method to load other files. Remember to put the double backslashes in the path, where normally you would type a single backslash.
After you have loaded functions.scm
, type the command
(functions)
and then type the Enter key a few times
to get the program started.
Use the DrScheme Break button (the stop sign) to interrupt or exit
from an executing function (such as (functions)
, above).
The Scheme (exit)
function is not useful in DrScheme,
use File > Close or File > Exit instead.
The DrScheme stepper (Step button) only works in the Beginning Student and Intermediate Student language levels.
If you want to use the stepper, choose the Intermediate Student level (but some programs will not work at this level). After you are done using the stepper, remember to change back to Full Scheme.
To load the trace
library you must use this command:
(require-library "trace.ss")
You can use this same method to load other libraries.