Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dan Holtby
uwaterloo-racket
Commits
342dcf04
Commit
342dcf04
authored
Nov 14, 2020
by
djholtby
Browse files
updated README.md
parent
e826cd19
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
342dcf04
# University of Waterloo Racket Tools
## Graphic Block
Dr.Racket allows non-text elements to be embedded in Racket files.
Unfortunately this format is in constant flux, so it's not possible
to automatically convert this graphical format to plain text so that the code can be run
by our testing servers (or read by the TAs doing hand marking). This is because the servers
are always much behind the students in terms of which version of Racket they are running.
The graphic-block plug-in for Dr.Racket blocks the user from pasting this content. This can be
toggled in the user's settings.
## HTDP Trace
Racket has a useful tracing tool. Unfortunately it does not work in Beginning Student.
This package provides a wrapper that can be used in the HtDP Languages.
To use it,
`(require htdp-trace)`
Examples:
```
(define/trace (f x)
(+ 2 x))
(f 2)
>(f 2)
<4
4
(define/trace (sum-nums n)
(cond [(zero? n) 0]
[else (+ n (sum-nums (- n 1)))]))
(sum-nums 3)
>(sum-nums 3)
> (sum-nums 2)
> >(sum-nums 1)
> > (sum-nums 0)
< < 0
< <1
< 3
<6
6
```
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment