DrScheme notes, Foundations of Computing -- Fall 2000

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.


Language Level

Usually we will want to use the Full Scheme level:

  1. On the DrScheme menu bar, select Language
  2. On the menu, select Choose Language...
  3. In the Language dialog, pull down the Language menu and select Full Scheme
  4. In the radio button panel, select Graphical (Mr.Ed)
  5. In the Language dialog, click on OK
  6. Click on the DrScheme Execute button. This message should appear at the top fof the DrScheme Interactions window:
    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.

Teachpack

To run the examples in the textbook Simply Scheme, you must load its teachpack:

  1. On the DrScheme menu bar, select Language
  2. On the menu, select Add Teachpack
  3. In the Select a Teachpack dialog, navigate to Q:\FofC\simply-teachpack.scm and select it.
  4. Now the Language menu should have an entry, Clear simply-teachpack.scm
  5. Click on the DrScheme Execute button. This message should appear at the top fof the DrScheme Interactions window:
    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

Loading functions.scm and other files

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.

Break

Use the DrScheme Break button (the stop sign) to interrupt or exit from an executing function (such as (functions), above).

Exit

The Scheme (exit) function is not useful in DrScheme, use File > Close or File > Exit instead.

Stepper

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.

Loading trace and other libraries

To load the trace library you must use this command:

    (require-library "trace.ss") 

You can use this same method to load other libraries.


Jon Jacky, jackyj@evergreen.edu