Commit Graph

233 Commits

Author SHA1 Message Date
Mike Sperber
f29b6483f9 Export `posn' contract to the HtDP teaching languages. 2010-06-09 13:46:51 +02:00
Mike Sperber
744b45f470 Rename HtDP list' contract to list-of'. 2010-06-09 12:07:47 +02:00
Mike Sperber
5b4d25295d Make `define-struct' define contracts.
In particular, in

(define-struct foo (a b))

... foo is a contract, and a contract combinator `foo-of' is defined.
2010-06-09 11:07:22 +02:00
Mike Sperber
da88f22b0e Change do-define-struct' to use make-struct-type' explicitly.
This is to enable the contracts work that is to come.
2010-06-08 14:20:07 +02:00
Mike Sperber
97a04e9f9d Fix error message to match the test suite's check for it. 2010-06-08 11:22:35 +02:00
Mike Sperber
dee21e9e73 Add what's needed, delete what's in the way.
Stuff I had forgotten earlier.
2010-06-08 09:26:07 +02:00
Mike Sperber
b0e6e6b55d Merge remote branch 'origin/master' 2010-06-07 17:26:34 +02:00
Robby Findler
c96bbe640d makes image=? work on 2htdp/image images. 2010-05-26 20:55:24 -05:00
Mike Sperber
f899fdf15d Report the correct position for a blamed procedure.
... if the `lambda' of that procedure was the result of expanding a `define':
Attach the `define''s source location to the `lambda' expression.
2010-05-21 19:39:27 +02:00
Mike Sperber
8d39c15b17 Make contracts available in HtDP languages.
Known breakage: when blame is assigned to a procedure defined via
(define (f ...) ...), its source position isn't reported because its
lambda expression is generated.
2010-05-21 19:30:37 +02:00
Mike Sperber
8590e8cadf Merge deinprogramm contract test-engine into the regular one.
This adds support for contracts.
2010-05-20 15:31:45 +02:00
Matthew Flatt
9fc5cbfa2c Fix syntax error in ASL
Closes PR 10914
 Merge to v5.0
2010-05-19 15:11:41 -06:00
Eli Barzilay
de0cc7771b A lot of "DrScheme" -> "DrRacket"s. 2010-05-17 01:27:03 -04:00
Eli Barzilay
7f6efdc8be A lot of "MrEd" -> "GRacket"s. 2010-05-16 23:46:05 -04:00
Matthew Flatt
b26bf5e225 fix DrRacket printing styles and distinguish 'print' vs. 'write' 2010-05-08 10:18:50 -06:00
Matthew Flatt
eb15dceb34 rackety misc docs 2010-05-07 09:13:51 -06:00
Matthew Flatt
043f97df97 fix more test files 2010-05-01 07:23:05 -06:00
Robby Findler
f46ad89200 fixed a preference setting 2010-04-29 11:06:27 -05:00
Matthew Flatt
32de6647dc fix HtDP language printing 2010-04-28 08:55:16 -06:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
Matthew Flatt
616080c7c4 change 'define-struct' to bind the type name as a constructor, add an #:extra-constructor-name option, etc. 2010-04-25 12:10:36 -06:00
Matthias Felleisen
6bc3484ae0 added member? as an alias for member to BSL 2010-04-20 22:48:41 -04:00
Matthew Flatt
0550cc3680 htdp language readers introduce explicit #%module-begin (for consistency with other #lang-based languages, as requested by JPR); merge to4.2.5
svn: r18605
2010-03-23 13:34:00 +00:00
Robby Findler
50a6a585b1 fixed some repl-printing related bugs that would make 'write' sensitive to pretty-print's parameters in drscheme's repl
svn: r18321
2010-02-24 17:35:09 +00:00
Robby Findler
6f4c164793 improved the implementation of error in the teaching languages, added test casees
svn: r17923
2010-02-01 15:39:33 +00:00
Matthew Flatt
1086cefc7a add empty to the list of things that are not structs for HtDP langs
svn: r17563
2010-01-08 13:38:48 +00:00
Matthew Flatt
1e2cb09f39 fix HtDP advanced docs for random
svn: r17470
2010-01-03 18:04:44 +00:00
Matthias Felleisen
560234138c error docs fixed
svn: r17455
2009-12-31 19:08:19 +00:00
Matthias Felleisen
7f2bce0130 added with-in/out from/to string for Bloch
svn: r17453
2009-12-31 14:50:47 +00:00
Matthias Felleisen
5296a0a877 added gensym, current-millisecond, sleep, assoc, with-i/o-from-to
svn: r17444
2009-12-30 22:45:12 +00:00
Matthias Felleisen
e9be5c92fe added (random) to ASL
svn: r17438
2009-12-30 15:26:28 +00:00
Robby Findler
e821a0c461 separated 2htdp/universe from htdp/image, allowing either htdp/image or 2htdp/image to be used
svn: r17430
2009-12-29 23:59:39 +00:00
Matthias Felleisen
bd0f694803 svn: r17109 2009-11-30 16:16:50 +00:00
Matthias Felleisen
2bb3403f88 modified error to take arbitrary number of arguments
svn: r17108
2009-11-30 15:31:38 +00:00
Eli Barzilay
09c8baf7e7 Re-enable context searches for the htdp languages, with results that
come from the language or the teachpacks.

svn: r16945
2009-11-21 22:05:28 +00:00
Matthias Felleisen
2153c258db fixed to docs of eq?, eqv?, memq, and memv
svn: r16742
2009-11-13 03:30:46 +00:00
Matthias Felleisen
26bf0a7297 added list* to advanced
svn: r16492
2009-10-31 16:13:57 +00:00
Matthew Flatt
f3de56f742 fix 'append' in ISL+ to disallow a non-list last argument (merge to 4.2.2)
svn: r16166
2009-09-29 15:28:44 +00:00
Matthias Felleisen
d39c717b69 fixed argmax doc bug; please propagate
svn: r16118
2009-09-23 22:27:13 +00:00
Matthias Felleisen
4ad2d25e1d error takes just a string
svn: r16071
2009-09-19 17:20:34 +00:00
Kathy Gray
e3c2721052 Adding check-member-of and check-range to the htdp languages and updating the docs.
svn: r16064
2009-09-18 12:37:18 +00:00
Mike Sperber
c26b3b8c6c Make the Stepper behavior on and/or configurable:
In the HtDP languages, initial subexpressions that have evaluated to
#t / #f remain in the residual term, whereas in the DMdA languages,
they do not.

svn: r16018
2009-09-15 17:32:21 +00:00
Matthias Felleisen
3c6f5e5c98 append takes 1 or more arguments now in ISL+
svn: r15779
2009-08-18 20:01:31 +00:00
Matthias Felleisen
fd813e111e added make-pair to beginner
svn: r15742
2009-08-14 23:27:54 +00:00
Mike Sperber
28d27a5074 Make sure the test results are displayed, even when an exception
occurs running the tests.

svn: r15724
2009-08-13 06:42:40 +00:00
Matthew Flatt
3cb2775f7c preserve original id use in expansion of first-order->higher-order
svn: r15699
2009-08-11 01:58:03 +00:00
Matthias Felleisen
1fe887fd9a doc bug for replicate fixed
svn: r15686
2009-08-07 18:37:09 +00:00
Eli Barzilay
03f91ccbeb set svn:eol-style
svn: r15561
2009-07-25 10:06:55 +00:00
Matthias Felleisen
5e638cc8fe andmap, ormap (10326); remove added
svn: r15555
2009-07-24 22:06:24 +00:00
Matthew Flatt
68a2257f2a better interaction of HtDP languages with scheme/match
svn: r15462
2009-07-16 16:11:12 +00:00