(Note: some of the links on this page point to documentation not maintained by the University of Delaware. When you click on one of these links, that page will open in a separate browser window (if your browser supports this feature). Subsequent clicks on non-UD links will load in the same window.)
DrScheme's features include:
The current UNIX version of DrScheme is available on Strauss. You must run this version in an X11 windows evironment.
DrScheme is available for other operating systems. You can download a copy from the DrScheme web page.
DrScheme is an X-windows frontend to the entire PLT installation of Scheme. You not need to enter commands, but you must be at an Sun Ray terminal or running X server software (such as cigwin or Hummingbird Exceed) in order to use DrScheme. If you are using a non-graphical interface (i.e., telnet or secure shell), you can only run 'mzscheme' (the underlying scheme implementation on which DrScheme is based).
To start DrScheme use the command:
drschemeInvoking DrScheme on other platforms may require a different command or may be done via an icon. On the Sun Ray terminals drsheme appears on the menu as
Applications -> Programming -> drscheme on StraussThe information below will apply to all platforms.
This will bring up an opening screen with the PLT logo and a progress bar. If this is the first time you are running DrScheme, you will be prompted to select a spoken language (e.g. English) and a programming language - most users will want to select "Standard". You can change either language at any time - the programming language is selected from the "Language" menu, and the spoken language is selected from the "Help" menu. You may also be prompted to "Check for Updates". Users on Strauss should ignore this prompt (click "Next"). If you are running DrScheme on your own PC, you can check for updates, although there probably are none if you just installed it.
When DrScheme finishes loading, the opening screen will be replaced by the DrScheme interactive window, which looks like this:
The upper window is called the definitions window; the lower window is called the interactions window.
PLT scheme programs can be entered on the command line in what is called listener mode. To enter listener mode type the command
mzschemeIn listener mode mzsheme is waiting of a scheme command. All scheme commands are enclosed in parenthesis; even the exit command to terminate your session. Here is a complete mzscheme session where a simple "hello world" program is typed and evaluated.
bash-2.05$ mzscheme Welcome to MzScheme v371 [3m], Copyright (c) 2004-2007 PLT Scheme Inc. > (begin (display "Hello, World") (newline)) Hello, World > (exit) bash-2.05$
For more extensive programs you can prepare the program in any text editor for loading into a mzscheme session. Here is the simple "Hello World" example file you can name hello.scm.
; First scheme program (begin (display "Hello, World!") (newline) )To load and evaluate this program type the strauss command
mzscheme -r hello.scm
The PLT Scheme distribution has more than just drscheme and mzscheme. In most cases one of these will be sufficient, but you may want to add the entire set of PLT tools to your shell path. It is best to start a shell just for PLT work and begin by executing the necessary shell commands. to add the PLT Scheme binaries to your execution path and add the PLT scheme man page directory to your man page path.
For csh and tcsh
setenv PATH /opt/plt/current/bin:$PATH setenv MANPATH /opt/plt/current/man:$MANPATH
for sh and bash
PATH=/opt/plt/current/bin:$PATH export MANPATH=/opt/plt/current/man:$MANPATH
In this shell you can run any PLT scheme tool which are all documented in the man pages. You may want to add these commands to your dot files so you do not have to type them each time you start a new shell. After saving the modifications, log out and log in again to make the changes take effect.
Click the Help menu and choose Help Desk to invoke the on-line help system.
For additional information, refer to the PLT (Programming Language Team) web page.
If you still need help
If you need help, call the University of Delaware's
IT Help Center at 831-6000 between
8 a.m. and 5 p.m. Monday through Friday. Or you can submit a question
via a
web request form
or e-mail.