Commit e6b6c6aa authored by djholtby's avatar djholtby
Browse files

split into separate packages since Racket frowns upon kitchen sink packages

parent 413d83db
MIT License
Copyright (c) 2020 Dan Holtby
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
#lang info
(define collection "uwaterloo-racket")
(define collection "graphic-block")
(define deps '("drracket-plugin-lib"
"gui-lib"
"string-constants-lib"
"base"))
(define build-deps '("scribble-lib" "racket-doc"))
(define scribblings '(("scribblings/uwaterloo-racket.scrbl" ())))
(define pkg-desc "University of Waterloo Racket plugins and libraries")
;(define scribblings '(("scribblings/uwaterloo-racket.scrbl" ())))
(define pkg-desc "Plugin that adds settings to prevent insertion of non-string snips into editor files")
(define version "0.0")
(define pkg-authors '(djholtby))
(define drracket-tool-names (list "Graphic Blocker"))
(define drracket-tools (list (list "graphic-block.rkt")))
MIT License
Copyright (c) 2020 Dan Holtby
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
#lang info
(define collection "htdp-trace")
(define deps '("base"))
(define build-deps '("sandbox-lib"
"scribble-lib" "racket-doc"))
(define scribblings '(("scribblings/htdp-trace.scrbl")))
(define pkg-desc "Wrapper for racket/trace that allows it to be used in Beginning Student (HtDP)")
(define version "0.0")
(define pkg-authors '(djholtby))
#lang scribble/manual
@require[@for-label[uwaterloo-racket/trace
@require[@for-label[htdp-trace
racket/base]
scribble/example racket/sandbox
]
......@@ -9,34 +9,26 @@
[sandbox-memory-limit 50])
(make-evaluator 'racket)))
@title{UWaterloo Racket}
@title{HTDP Trace}
@author{djholtby}
Package Description Here
@section{The trace module}
@defmodule[uwaterloo-racket/trace]
@defmodule[htdp-trace]
Racket has a useful tracing tool. Unfortunately it does not work in Beginning Student.
We have provided a wrapper to work around this issue. To use it, you must add
@racket[(require uwaterloo-racket/trace)] to the top of your file (just below the header).
This allows you to use the @racket[define/trace] special form.
This package provides a wrapper that can be used in the HtDP Languages.
@defform[(define/trace (name param ...) body)
]{Behaves the same as @racket[define], but whenever the function @racket[name] is applied,
the values of its parameters will be printed to the screen.
When the function produces a value, that value will also be printed.
Examples:
@examples[#:eval my-eval
(require uwaterloo-racket/trace)
@examples[#:eval my-eval #:no-prompt
(require htdp-trace)
(define/trace (f x)
(+ 2 x))
(f 2)]
@examples[#:eval my-eval
(require uwaterloo-racket/trace)
(f 2)
(define/trace (sum-nums n)
(cond [(zero? n) 0]
[else (+ n (sum-nums (- n 1)))]))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment