Another implementation of HtDP Beginning Student with Abbreviations. This implementation can show the stack diagrams whenever function calls begin and return.
Please follow these instructions to install or update
- Make sure you are in the
DrRacket
app. - Go to the menu
File
|Package Manager...
. A window will pop up. - Make sure you are in
Do What I Mean
tab of the pop-up window. - Set the
Package Source
field tohttps://github.com/brownplt/cs19-stacker.git
- Click the
Show Details
button. - Set the
Dependencies Mode
field toAuto
. - Click the
Install
button. (If you have already installed, you will see "Update" instead of "Install".) Most buttons will grey out immediately (except theAbort Install
). - After the color of those buttons come back, you can close the pop-up window. This usually takes less than 1 min.
To uninstall
- Make sure you are in the
DrRacket
app. - Go to the menu
File
|Package Manager...
. A window will pop up. - Make sure you are in
Currently Installed
tab of the pop-up window. - Set the
Filter
field tocs19-stacker
. - Select the first result.
- Click the
Remove
button. A confirmation window will pop up. - Click the
Remove
button in the confirmation window. Most buttons will grey out immediatel (except theAbort Install
). - After the color of those buttons come back, you can close the pop-up window. This usually takes less than 1 min.
First, make sure you are in the Racket language:
- Make sure you are in the
DrRacket
app. - Go to the menu
Language
|Choose Language...
. A window will pop up. - Select
The Racket Language
. - Click the
OK
button.
Run the following program in DrRacket
#lang cs19-stacker
(define x 2)
(define (add1 n)
(+ n 1))
(add1 x)
You should see a screenshot like this.