Interactive Environment

2.1  Introduction

DrScheme provides an interactive environment. The upper, or Definitions, window is a full-featured, graphical editor with Emacs-like key bindings. The editor supports on-the-fly syntax coloring that respects the rules of Scheme syntax (and is therefore accurate in a way many other syntax coloring systems are not).

[./images/on-the-fly.gif]

The lower, or Interactions, window implements a read-eval-print loop (REPL).

[./images/editor-repl.gif]

The Run button loads the contents of the Definitions window into the Interactions window.

2.2  The Transparent REPL

The REPL in DrScheme is transparent (as described in the DrScheme paper). This avoids subtle history-induced errors and misunderstandings. DrScheme's REPL avoids these problems in two ways:

[./images/trans-repl.gif]

2.3  Tabbed Editing

The DrScheme editor lets you edit multiple files in separate tabs, rather than having to edit each file in its own window. The menu entry File | New Tab creates a new tab, and File | Close Tab closes one (if more than one is present).

[./images/tabbed-edit.gif]