Racket

Solo disponible en BuenasTareas
  • Páginas : 3 (729 palabras )
  • Descarga(s) : 0
  • Publicado : 22 de noviembre de 2011
Leer documento completo
Vista previa del texto
Dr. Racket Tutorial
Copyright c 2010 CSIL Maclab, University of Chicago

i

Table of Contents
1 2 3 4 Starting Dr. Racket and Picking a Language................................................. 1 Using Dr. Racket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Saving and Printing Your Work . . . . . . . . . . . . . . . 5 Frequently Asked Questions . . . . . . . . . . . . .. . . . . . 6

Chapter 1: Starting Dr. Racket and Picking a Language

1

1 Starting Dr. Racket and Picking a Language
Starting Dr. Racket
To start Dr. Racket, first click its icon on thelaunch bar:

It will take a while to actually open. When it does, you should see this:

(points of interest have been labeled).

Chapter 1: Starting Dr. Racket and Picking a Language

2Picking a Language
The first time you start Dr. Racket, you have to pick a language with the Language Chooser in the lower left.

The rest of this tutorial will use the language “How to Design Programs:Advanced Student”. Select it in the menu, then press OK.

After you’ve picked your language, you need to press the Run Button to load it. The Maclab deletes all personal data from our machinesovernight, so when you come in again tomorrow you’ll have to pick your language again.

Chapter 2: Using Dr. Racket

3

2 Using Dr. Racket

Dr. Racket’s interface has two windows—the DefinitionsWindow and the Interactions Window (also called a REPL for Read-Eval-Print Loop). The Definitions Window is where you type your program; everything in there will be executed when you press the RunButton. The Interactions Window is an interactive prompt; if you type a Racket expression there and press enter, the expression will be evaluated and its value printed below the prompt. If you’ve runyour program, any functions or variables you’ve defined will be available for use in the Interactions Window.

For instance, let’s say we write the follow simple program to find out what 101 squared...
tracking img