Commit Graph

367 Commits

Author SHA1 Message Date
Mike Sperber
b98b83b672 Make uncaught exceptions in teaching languages pop up test-engine display.
... so as to catch any test-case failures or signature violations that
may have occurred.
2010-10-08 10:25:37 +02:00
Mike Sperber
6997b08fa2 Remove front-end/interaction hack for test-engine.
It's not needed anymore after Robby's fix to namespace handling in the
teaching languages.
2010-10-08 09:28:07 +02:00
Robby Findler
fed1e3dc3e adjusted the way the teaching languages work so that signature
violations in the REPL are tracked.
2010-10-07 14:27:56 -05:00
Eli Barzilay
2189957b6f Change the errortrace protocol for `initialize-test-coverage-point' and
`test-covered' to use just the expression -- looks like there's no
reason to use an additional key.

Also, change its uses to map each syntax to an mcons where its mcar is
used to track coverage.  This is done everywhere, since it turns out to
be much faster to insert a `set-mcar!' with a 3d mpair, rather than a
call to a thunk.

Note that it still uses mpairs as a hack.  It "works" in the same way
that this simplified example does:

  (define-syntax m
    (let ([b (mcons 0 0)])
      (lambda (stx)
        (with-syntax ([b b])
          #'(case-lambda [() (mcar b)]
                         [(x) (set-mcar! b x)])))))

I think that it's fragile, and likely to stop working at some point, but
I don't see anything better for now.
2010-10-04 17:24:22 -04:00
Matthias Felleisen
725da3b2ed fix string-ith problem, Closes PR 11261 2010-09-28 18:07:10 -04:00
Robby Findler
feddcdaef9 closes PR 11241 2010-09-23 06:25:21 -05:00
Mike Sperber
65bd667be2 Make parametric signatures work in BSL. 2010-09-22 11:35:00 +02:00
Mike Sperber
7304c061e3 Add `cons-of' signature constructor to HtDP languages. 2010-09-22 11:31:24 +02:00
Mike Sperber
593f8588fe Implement lazy signature checking for ordinary pairs. 2010-09-22 11:03:01 +02:00
Mike Sperber
98c9ad4d22 Add `Any' contract to HtDP languages. 2010-09-21 16:23:58 +02:00
Mike Sperber
333d82e6df Fix some error messages for invalid : signature declarations. 2010-09-17 18:02:33 +02:00
Mike Sperber
8bc95ace01 Unbreak signatures for BSL. 2010-09-17 18:02:33 +02:00
Robby Findler
4bbb1f4cd9 Added a second column for the 2htdp teachpacks to the choose-a-teachpack dialog
closes PR 11170
2010-09-07 17:34:08 -05:00
Robby Findler
5e04a5c6d9 When opening a new window where the language is one of the htdp languages (via the
language dialog, not the #lang htdp/* variants), teachpacks are put into the
initial REPL (instead of just having the language primitives).

closes PR 11160
2010-09-04 19:37:02 -05:00
Matthew Flatt
036ed57000 fix *SL `define-struct' expand-time info: omit non-existent struct type 2010-08-30 16:11:08 -06:00
Robby Findler
b1550d6c9b changed the expansion of the ... macro in the teaching languages so that
it cooperates with the test coverage annotations in drracket.
closes PR 11138
2010-08-30 09:23:34 -05:00
Robby Findler
7020cb6e4c adjusted the language dialog so that the output-style and fraction-style radio boxes aren't adjacent 2010-08-29 08:20:53 -05:00
Eli Barzilay
8e0f8dd39c More "~n" -> "\n" changes 2010-08-26 12:11:00 -04:00
Jay McCarthy
45a8854398 Adding immutable hash operations to ASL 2010-08-25 10:36:36 -06:00
Jay McCarthy
368d711ae2 Optional arguments to hash table constructors in ASL 2010-08-25 10:36:34 -06:00
Matthew Flatt
0955ed6e8b fix custom printer attached to *SL structure types 2010-08-24 06:23:22 -06:00
Robby Findler
611e04abda adjusted the expansion so that the references to "foo" in this ISL program:
(define-struct foo (x))

(: make-foo (Number -> foo))
(: foo-x (foo -> Number))

(define x (make-foo 5))
(foo-x x)

don't get colored the "not yet executed" color.
2010-08-23 10:23:34 -05:00
Matthew Flatt
a7bc964c69 fix problem with binding of *SL struct-type name and application 2010-08-19 07:38:25 -06:00
Robby Findler
ee3a837ee2 fixes the other aspect of PR 11062 2010-07-31 09:15:11 -05:00
Matthew Flatt
0e8af6bc5d fix acc/mut error msgs from `define-struct' in teaching languages
Merge to 5.0.1
 Closes PR 11062
2010-07-30 11:16:32 -06:00
Jay McCarthy
407dcee206 Adding match to ASL 2010-07-22 15:39:53 -06:00
Jay McCarthy
eeada45868 Fixing error string 2010-07-22 15:12:07 -06:00
Jay McCarthy
9eb053d4db Adding define-datatype to ASL 2010-07-22 11:36:04 -06:00
Jay McCarthy
c9ccf6d48b Adding all hash prims per SK 2010-07-16 09:43:03 -06:00
Jay McCarthy
d17deb5fef Adding hash table functions to ASL 2010-07-15 15:45:54 -06:00
Mike Sperber
5cd0a37d5e Re-export struct:posn from lang/posn.
I hadn't checked someone is using it.
2010-06-28 15:00:32 +02:00
Mike Sperber
faf8ec358f Rename DMdA/HtDP "contract" to "signature". 2010-06-28 14:58:16 +02:00
Mike Sperber
3319fa41d0 Add properties to the HtDP teaching languages. 2010-06-09 14:16:34 +02:00
Mike Sperber
c7a7eb0a58 Export Symbol contract into HtDP teaching languages. 2010-06-09 13:57:17 +02:00
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
Eli Barzilay
a70bf64fd9 Newlines at EOFs
svn: r15380
2009-07-04 02:28:31 +00:00
Matthew Flatt
81f9622b58 HtDP lang doc repairs
svn: r15203
2009-06-18 07:47:36 +00:00
Matthew Flatt
b09e905da0 fix intm+ function export to omit replaced beg math ops
svn: r14841
2009-05-16 02:20:13 +00:00
Matthias Felleisen
6a4c101859 arithmetic functions should be standard
svn: r14831
2009-05-15 16:30:39 +00:00
Matthias Felleisen
0e43e6a0dc added functins for analyzing strings as 1-letter strings
svn: r14830
2009-05-15 16:22:17 +00:00
Matthias Felleisen
299cba5adf svn: r14823 2009-05-14 22:50:43 +00:00
Matthias Felleisen
bac292acc6 second draft of char/string
svn: r14755
2009-05-08 21:55:05 +00:00
Matthias Felleisen
4d3d16ef48 char replacement functions, first draft
svn: r14741
2009-05-07 21:41:44 +00:00
Matthias Felleisen
5f2a62f37c svn: r14689 2009-05-02 15:25:15 +00:00
Matthew Flatt
b07a536ae3 bind λ in HtDP Intermediate+Lambda and Advanced (patch from Todd O'Bryan)
svn: r14539
2009-04-17 11:18:30 +00:00
Matthias Felleisen
05ae98e55b fixed error message for sqr
svn: r14515
2009-04-14 22:04:52 +00:00
Matthias Felleisen
d0841e6c74 random modified to take just one argument
svn: r14514
2009-04-14 21:52:45 +00:00
Robby Findler
2c85b7a795 improved performance of the teaching languages
svn: r14394
2009-04-01 00:15:20 +00:00
Ryan Culpepper
cf87504e00 Fixed startup errors caused by tool dependencies (see PR 10125)
removed htdp-lang dependency on debugger
  removed deinprogramm dependency on stepper, debugger, and htdp-langs
  both still depend on test-engine tool, but only for execution
Probably apply to release branch, but needs review.

svn: r14119
2009-03-16 06:25:31 +00:00
Robby Findler
53af4d6a9a moved tracing support from the htdp tool into drscheme proper
svn: r14054
2009-03-11 17:42:04 +00:00
Robby Findler
11cd0a5691 fixed tracing in the teaching languages
svn: r14026
2009-03-10 13:49:40 +00:00
Matthew Flatt
9927b0b576 changed htdp languages to allow identifier module paths; scribble improvements to latex back-end; added definterface
svn: r13681
2009-02-16 22:04:51 +00:00
Matthias Felleisen
f302dbfb91 integer-sqrt and make-rectangular added
svn: r13591
2009-02-15 01:34:54 +00:00
Matthias Felleisen
d43f58df4c annotated integer inputs
svn: r13590
2009-02-15 01:31:08 +00:00
Robby Findler
62993e9df3 fixed the style deltas so that covered ranges that are inside uncovered ranges now color properly
svn: r13231
2009-01-19 21:09:08 +00:00
Matthias Felleisen
cba8e0d079 doc request: 10022; fixed
svn: r13085
2009-01-13 02:47:26 +00:00
Matthias Felleisen
f5714c2086 added universe via a 2htdp teachpack
svn: r12980
2009-01-03 02:38:09 +00:00
Robby Findler
fb821d9041 added argmin and argmax to scheme/list and to the teaching languages
svn: r12960
2009-01-01 00:03:31 +00:00
Matthew Flatt
1642a84e69 add equal?/recur; implement equal? for image-snip% via properties
svn: r12950
2008-12-29 22:36:53 +00:00
Robby Findler
fca3c228a7 reader didnt get set up properly for the teaching languages
svn: r12823
2008-12-12 21:25:04 +00:00
Matthew Flatt
56ffc62ee2 when embedding source modules for an executable, includes any needed reader modules
svn: r12758
2008-12-09 22:07:28 +00:00
Robby Findler
2c78076fe6 svn: r12606 2008-11-27 00:46:56 +00:00
Robby Findler
b8687f7957 change 'list' contract to (listof any)
svn: r12469
2008-11-17 14:32:15 +00:00
Matthew Flatt
fc68840124 fix first-order->higher-order
svn: r12400
2008-11-12 03:08:15 +00:00
Matthew Flatt
a63a20bd83 first-order->higher-order from lang/prim
svn: r12369
2008-11-10 03:21:51 +00:00
Robby Findler
a4b6310507 a fix to the way tabs switch around, plus a few additions (that are disabled for now) in preparation for making drscheme automatically compile files that it runs
svn: r12344
2008-11-07 18:13:33 +00:00
Matthias Felleisen
e9ca169869 string functions take at least two arguments
svn: r12167
2008-10-29 15:13:17 +00:00
Robby Findler
23a541177b changed test coverage highlighting to be more color-blind friendly
svn: r12161
2008-10-28 21:36:06 +00:00
Matthew Flatt
8cf2306979 adjust HtDP language module-begin to work right if 'provide' shows up
svn: r12157
2008-10-28 13:27:22 +00:00
Matthew Flatt
bb7d3d1a28 fix 'local-expand' checking of stop list to disallow symbols; extend 'continuation-marks' to work on threads; fix HtDP language module-level stop list
svn: r12101
2008-10-23 13:38:03 +00:00
Robby Findler
5f5faacf29 fixed a bug Mike Sperber reported
svn: r12092
2008-10-22 12:55:48 +00:00
Matthew Flatt
d8a5a4e1c6 fix macro-introduced define-values-for-syntax in HtDP languages
svn: r12080
2008-10-21 11:26:35 +00:00
Matthias Felleisen
d5e3fdf639 svn: r12067 2008-10-20 02:24:04 +00:00
Eli Barzilay
9c92ce8cc9 disable htdp languages context for now
svn: r11939
2008-10-05 04:17:26 +00:00
Robby Findler
ce217355f8 PR 9761
svn: r11779
2008-09-16 20:26:15 +00:00
Robby Findler
9c1f3eda0c removed a race condition in the way the colors were initialized
svn: r11757
2008-09-15 12:52:55 +00:00
John Clements
6547db5039 misspelling
svn: r11621
2008-09-09 22:10:17 +00:00
Robby Findler
8c9e4bcfe0 some white-on-black fixes
svn: r11447
2008-08-27 04:42:45 +00:00
Matthew Flatt
fea6ea12bf tune htdp language #%module-begin to avoid unnecessary macro trampolining
svn: r11405
2008-08-24 12:34:04 +00:00
Kathy Gray
0f01d3202d Turning on exceptions in check-expect
svn: r11385
2008-08-22 14:25:53 +00:00
Kathy Gray
bd12705f83 svn: r11380 2008-08-22 12:25:03 +00:00
Kathy Gray
b0aeb1d259 Getting source of error into test reports
svn: r11333
2008-08-19 17:03:40 +00:00
Matthew Flatt
23edcfc129 fix name of sort function in htdp languages
svn: r11193
2008-08-11 23:55:08 +00:00
Eli Barzilay
a871476756 typo
svn: r10954
2008-07-29 04:33:36 +00:00
Eli Barzilay
3bcbdc1924 * set svn:eol-style
* This commit also adds drscheme:help-context-term capability for the
  teaching languages, with a couple of #|!!!|# comments that will go
  away soon.  (This part was committed by mistake.)

svn: r10940
2008-07-28 04:01:15 +00:00
Robby Findler
391272c73a fixed a bug in preference unmarshalling
svn: r10844
2008-07-20 19:02:09 +00:00
Matthew Flatt
9af00fcfb4 v4.0.2.4: logging
svn: r10818
2008-07-17 15:20:17 +00:00
John Clements
b334fa476b doc fixes
svn: r10812
2008-07-17 06:48:46 +00:00
Eli Barzilay
7d50e61c7f * Newlines at EOFs
* Another big chunk of v4-require-isms
* Allow `#lang framework/keybinding-lang' for keybinding files
* Move hierlist sources into "mrlib/hierlist", leave stub behind

svn: r10689
2008-07-09 07:18:06 +00:00
Matthew Flatt
44c5a75739 fix some phase problems in program-processing programs
svn: r10503
2008-06-29 15:11:20 +00:00
Matthias Felleisen
269595665c added sort as duplicate of quicksort
svn: r10283
2008-06-16 13:56:35 +00:00
Matthias Felleisen
913fa9408f fixed doc for member to -> boolean
svn: r10282
2008-06-16 12:54:56 +00:00
Robby Findler
c2fa893403 set up a namespace around the call to compile
svn: r10244
2008-06-13 01:43:27 +00:00
Matthew Flatt
20fcb6314c honu-module -> honu; misc doc and slideshow tweaks
svn: r10230
2008-06-12 13:02:41 +00:00
Robby Findler
31df920bd7 disabled tracing in the teaching languages
svn: r10152
2008-06-05 16:56:04 +00:00
Robby Findler
a3c2d438de fixed a bug in the teaching languages highlighting
svn: r10148
2008-06-05 16:29:43 +00:00
Robby Findler
8f10fbe17d removed order-manuals method and the optional argument to language-dialog that shows help-desk manual ordering
svn: r10106
2008-06-03 03:01:36 +00:00
Matthew Flatt
c8cbc555e5 fix HtDP executables (PR 9158)
svn: r10037
2008-05-30 14:21:22 +00:00
Matthias Felleisen
ad1838c72b exporting list? now
svn: r9990
2008-05-27 22:28:33 +00:00
Robby Findler
1a3f3799b2 minor tweak to about box and fixed executable generation for teaching languages
svn: r9866
2008-05-16 18:35:33 +00:00
Matthew Flatt
26a36a9cbe add 'false?'
svn: r9849
2008-05-15 16:03:50 +00:00