Commit Graph

180 Commits

Author SHA1 Message Date
Robby Findler
cce6f28d4d remove 'create executable' functionality from drracket for all
langauges except The Racket Language and the HtDP and DMdA languages
2013-01-05 12:19:26 -06:00
Robby Findler
e449e275ab removed the deinprogramm one-line-summary's because they are
just the same as the language names, and so look a bit silly
in tooltips now
2012-11-17 20:15:19 -06:00
Eli Barzilay
672910f27b Lots of bad TAB eliminations.
I started from tabs that are not on the beginning of lines, and in
several places I did further cleanings.

If you're worried about knowing who wrote some code, for example, if you
get to this commit in "git blame", then note that you can use the "-w"
flag in many git commands to ignore whitespaces.  For example, to see
per-line authors, use "git blame -w <file>".  Another example: to see
the (*much* smaller) non-whitespace changes in this (or any other)
commit, use "git log -p -w -1 <sha1>".
2012-11-07 11:22:20 -05:00
Mike Sperber
41d6d8f579 Provide `provide' in the DMdA languages.
(The course at U Kiel needs this for the term project following the
intro course.)
2012-10-03 17:28:19 +02:00
Robby Findler
44161d73c8 adjust DMdA languages so they do the same error rewriting that the HtDP
languages are doing. This seems to make the error messages in DMdA
behave like they did in 5.2.1 (and so I'm pushing this to see how DrDr
reacts)
2012-08-01 18:20:06 -05:00
John Clements
c01e8c1564 refactored to reduce stepper dependencies 2012-06-19 23:51:59 -07:00
Mike Sperber
35f141b7bc Add some missing `delay's in DeinProgramm signatures.
Spotted by: Stephen Chang
2012-06-17 09:21:58 +02:00
Matthew Flatt
5ff3087677 scribble: adjust `def...' box to show a background label in HTML
For example, a syntactic form box is labeled with "SYNTAX". Forms
such as `defform' and `defthing' now support a `#:kind' option
for setting the label.
2012-06-17 09:19:58 +08:00
Eli Barzilay
17090fca4f A bunch of fprintf' -> eprintf' conversions (and a few related things). 2012-05-06 12:06:00 -04:00
Matthew Flatt
68e005fb2c racket/draw: make-immutable-{color,brush,pen} => make-{color,brush,pen}
Also, use keywords for `make-pen' and `make-brush'.

Adding `make-pen' and `make-color' creates many conflicts among
teaching libraries, such as `2htdp/image'. These are easy to fix
up in the tree, but adding such obvious names to `racket/draw'
may create other compatibility problems, so we might have to reconsider
the names.

In consultation with Asumu.
2012-05-01 21:04:40 -06:00
John Clements
8d6e9e79a4 cleanup and refactoring of run-teaching-program, minor teachpack stepper fix
It looks like run-teaching-program hasn't been touched in quite a while.
To begin with, the "rewrite-module" function used to add code to print
out values of non-define exprs, but this is no longer necessary. In fact,
the only thing that it does now is to discard "provide" statements, and
even this may be unnecessary. I rewrote big chunks of this (short) file
to introduce defines, eliminate unnecessary functions, and add stepper-
skip-completely annotations to the requires associated with teachpacks.

Also, it appears that the 'rep' argument to expand-teaching-program
was entirely superfluous; I removed it from the argument list, and also
from the three places in the main tree (deinprogramm, lang, and the stepper)
that call this function.

Let me know of any problems seen with teachpack requires....
2012-03-13 12:09:41 -07:00
Mike Sperber
f02ec48e16 Export `read' in DMdA languages. 2012-01-21 15:43:52 +01:00
Mike Sperber
a657b0217e Fix for line3d's `create-viewport-matrix'.
Submitted by David Herrmann.
2011-12-18 14:37:34 +01:00
Mike Sperber
16a27c6391 For DMdA languages, document which signatures work with `check-property'.
Namely, not the singular record signature, but the signature
constructors of `define-record-procedures-parametric'.

(We'd done this before, but that patch got reverted, without the
doc part getting reinstated.)
2011-12-18 14:18:42 +01:00
Mike Sperber
7fac9193fa In the DMdA languages, create arbitrary for record signature without fields.
This way, you don't have to use define-record-procedures-parametric
for records like this:

(define-record-procedures empty
  make-empty empty?
  ())
2011-12-18 14:18:42 +01:00
Mike Sperber
c080940d02 Fix infinite recursive signatures.
Such as this, submitted by Torsten Grust:

(define-record-procedures-parametric stream_ stream-of
  make-stream
  stream?
  (stream-head stream-tail))

(define stream
  (lambda (t)
    (signature (stream-of t (-> (stream t))))))

(: from (number -> (stream number)))
(define from
  (lambda (n)
    (make-stream n (lambda () (from (+ n 1))))))

(: foo (stream number))
(define foo (from 1))

The problem was that the arbitaries got evaluated too eagerly.
2011-12-18 14:18:42 +01:00
Robby Findler
462a348f19 fix bugs in the way the Racket|Disable Tests menu item worked
also adjust the test-engine-test.rkt test suite to bring it into
sync with the changes to the way the DrRacket REPL works from
commit bfa6b1d953
2011-11-28 00:13:59 -06:00
Mike Sperber
36d3745d4c Unbreak "Enable signature checking".
Previously, if you disabled it once, it would stay disabled.
2011-10-21 20:43:50 +02:00
Robby Findler
7acc5b7852 adjust HtDP teaching languages' first and rest so that they accept circular lists.
This commit fix an unintentional change introduced by this commit:
  c7d67f9bab
(and it also adds in test cases for what that commit appears to have
been doing)

Assuming everyone agrees that the behavior for first rest from back
in 2010 is the behavior we still want (and the lack of release notes
on the subject makes me believe that we do), then:

Please include in 5.2.
2011-10-21 08:09:34 -05:00
Mike Sperber
e637806306 fix errortrace-conversion problem in DMdA languages
Follow commit 45331d1ae8 for the HtDP
languages.
2011-09-16 09:02:25 +02:00
Matthew Flatt
d3c56c9f13 generalized `begin-for-syntax' 2011-09-08 14:06:00 -06:00
Eli Barzilay
d61eb53686 Lots of documentation formatting.
Started as fixing misindented definitions, then more indentations, then
a bunch of similar things (square brackets, huge spaces at end-of-lines,
etc).
2011-08-15 07:50:04 -04:00
Matthew Flatt
fc914dfac8 restore deinprogramm reader module suffix 2011-07-16 20:15:15 -06:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Ryan Culpepper
1b702a2ae3 docs reorganization
added tutorial, racket categories
  relabeled some other categories
  normalized manual names: de-bolded, changed some names
2011-07-01 17:16:53 -06:00
John Clements
b1d791a02e renamed stepper-define-struct-hint to stepper-black-box-expr 2011-06-29 10:03:44 -07:00
Eli Barzilay
a38f384a00 Finish converting scheme' -> racket'.
Everything compiles fine now even if the compatibility bindings are
gone.
2011-06-28 00:45:38 -04:00
Eli Barzilay
ac26fe7554 A ton of @scheme*' -> @racket*' and related updates.
Also, updates some of the mzlib files to point at `racket/*' libraries
rather than to `scheme/*' ones.
2011-06-25 04:08:47 -04:00
Eli Barzilay
debd1f9f1e Recketizing much in `net/*', mass ".ss" -> ".rkt" conversion in .scrbl files.
(Some other minor things here and there.)
2011-06-20 04:27:14 -04:00
Robby Findler
060b4e9b32 deinprogramm: tweak files to make scribble happy 2011-05-28 09:02:53 -05:00
Mike Sperber
a94287a076 Document lambda' and define' for DMdA/assignments. 2011-05-28 15:10:01 +02:00
Mike Sperber
a52e59a61b Add alpha-rgb-color contract to teachpack/deinprogramm/image. 2011-05-28 12:31:05 +02:00
Mike Sperber
f2f2784ae7 Add missing documentation for DMdA teachpacks. 2011-05-28 12:29:08 +02:00
Mike Sperber
24961f750c Fix predicate signatures in DMdA.
Use any -> boolean instead of %a -> boolean.
2011-05-28 12:10:51 +02:00
Robby Findler
d40b43c0a9 make the deinprogramm documentation drdr messages be accurate
(that is, I think that the complaints coming from the
   tests\deinprogramm\test-docs-complete.rkt message are
   now pointing out things for which there is actually no
   documentation, instead of pointing out the need for
   different declare-exporting declarations)
2011-05-04 18:54:28 -05:00
Robby Findler
2230605301 add a #:use-sources keyword to deinprogramm docs to get scribble to know about more of the docs 2011-05-02 05:52:59 -05:00
Mike Sperber
d582dd55dd Fix bug in vector signatures. 2011-05-01 11:18:10 +02:00
Robby Findler
e7d0029aea added lots of new tests that our documentation is complete 2011-04-25 13:24:43 -05:00
Mike Sperber
18662741fb Fix signature-checking bug with DMdA's `define-record-procedures'.
Define the predicate before the constructor, as the predicate may be
used in checking the signature of the constructor.
2011-01-22 16:23:23 +01:00
Robby Findler
2ddf90f3fc adjusted deinprogramm preferences to use the framework preference system so that drracket still starts up when there is a locked preference file under windows 2011-01-20 14:08:32 -06:00
Mike Sperber
1b97013496 In QuickCheck, fix bug in lift->generator.
This would result in aggregates where all the generators start from
the same seed.
2011-01-16 20:04:32 +01:00
Mike Sperber
894c531f6c Make DMdA's fold more robust. 2011-01-15 13:08:00 +01:00
Mike Sperber
69963a1f2c Fix bug in struct-wrap signature checking.
Only check the fields if we know the struct type is right.
2011-01-06 13:53:51 +01:00
Mike Sperber
fa854f62fc Add vector signatures, and `vector-of' to the HtDP signature syntax. 2010-12-19 11:20:51 +01:00
Matthew Flatt
489c5de9e8 another module-body duplication 2010-12-15 12:28:09 -07:00
Mike Sperber
3f74e662ed Add tool.rkt needed for "Disable Signature Check".
I'd screwed up previously.
2010-12-15 08:17:57 +01:00
Matthew Flatt
de271aa698 temporary workaround for missing(?) tool module 2010-12-14 14:53:47 -07:00
Casey Klein
8368dcaca1 Fixes apparent copy-paste error 2010-12-14 12:26:11 -06:00
Mike Sperber
6bee489091 Add menu item to disable signature checking. 2010-12-14 17:29:30 +01:00
Mike Sperber
dbd1cfaf10 Don't use teach-equal?' for one-of' signature.
I did this under the mistaken assumption `equal?' would not work for
cycles, I think.
2010-11-26 11:10:29 +01:00