Commit Graph

213 Commits

Author SHA1 Message Date
Matthew Flatt
82943df351 another *SL error-message repair 2012-06-12 06:02:57 +08:00
Matthew Flatt
255e3cbe2e another *SL error-rewriting fix
Arity errors no include supplied arguments, but strip them
away for *SL messages.
2012-06-06 13:25:14 +08:00
Matthew Flatt
e44c0809e8 rewrite contract error messages for *SL
The rewrite involves parsing contract expressions and constructing
replacement prose.
2012-06-05 17:53:27 +08:00
Matthew Flatt
cc0b887106 adjust *SL error-message rewriting 2012-06-03 11:09:32 +08:00
Matthias Felleisen
f1c1376d87 added 'range' to *sl per jpr's request and #lang-ified a couple of files 2012-05-29 12:00:27 -04:00
Matthias Felleisen
cc8e988346 fixed mistakes in posn documentation; Closes PR 12755 2012-05-09 12:04:44 -04:00
Matthias Felleisen
e04b74f22a fix mistake in memf documentation, Closes PR 12745 2012-05-01 16:48:17 -04:00
Matthias Felleisen
1711ab96ba added vector->list 2012-03-27 10:19:52 -04:00
Sam Tobin-Hochstadt
c5e30d8af5 Use the correct #%app for applications of `local' bound identifiers in the student languages. 2012-03-24 16:04:08 -04:00
Matthias Felleisen
190fbcd7ce fixed docs for quotient; Closes PR 12593 2012-02-22 08:33:16 -05:00
Eli Barzilay
c007c345f9 A bunch of more typos like the ones in David's commit. 2012-02-21 14:21:43 -05:00
Matthew Flatt
7ddbc95b51 clean up `set!' implementation in ASL to avoid catching failures
The code seems to pre-date the failure thunk to `syntax-local-value'.
A problem with letting an exception get raised is that it triggers
the `error-value->string' handler, which loads Slideshow pict support
in DrRacket, which loads `racket/draw' at phase 1 --- which isn't
inherenty bad, but a lot of work that can be avoided.
2011-12-02 16:02:11 -07:00
Eli Barzilay
a9b1f993d4 Remove redundant execution bit from some files, convert one CRLF file to LFs. 2011-12-01 03:54:32 -05:00
Robby Findler
a40f288e48 relaxed the restrictions on planet requires in the teaching languages to allow the new forms 2011-10-07 11:48:24 -05:00
Robby Findler
25413a4c05 fix the expansion of beginner-true and beginner-false so
they don't throw away source locations.

related to PR 12253
2011-10-03 17:11:54 -05:00
Matthew Flatt
0197902309 add var-ref->mod-decl-insp' and switch cur-code-insp' uses
Macros and other tools that need syntax privilege used
`(current-code-inspector)' at the module top-level to try to
capture the right code inspector at load time. It's more
consistent to instead use the enclosing module's declaration-time
inspector, and `var-ref->mod-decl-insp' provides that. The
new function works only on references to anonymous variables,
which limits access to the inspector.

The real function name is longer, of course.
2011-09-20 13:50:36 -06:00
Guillaume Marceau
9b49de16e7 Fixed 'reference to an identifier before its definition' error in *SL. 2011-09-17 22:37:45 -04:00
Matthew Flatt
d3c56c9f13 generalized `begin-for-syntax' 2011-09-08 14:06:00 -06:00
John Clements
e781072bf3 eliminate quasiquote-the-cons-application tag 2011-09-06 10:05:42 -07:00
Matthew Flatt
a53f51d92d fix HtDP local' to work better with macros that expand to begin'
In particular, the forms within `begin' need to be partially
expanded before checking whether they're allowed.
2011-09-03 15:15:24 -06:00
Matthew Flatt
001cb75bac syntax-taint repairs
for problems exposed by more agressive arming of `lambda'
and `#%app'
2011-08-09 16:33:17 -06:00
Matthias Felleisen
59f0732fa0 fixed docs for >=; Closes PR 12066 2011-07-20 15:20:22 -04:00
Guillaume Marceau
2ae0376476 Fixes the (cons an image empty) error message 2011-07-19 13:01:07 -04:00
Guillaume Marceau
adf965e92a Undoes the 'produces -> return' part of commit c31d352f, keeping the 'changes -> mutates' change and the assorted bug fixes it contained. 2011-07-17 16:48:12 -04:00
Robby Findler
e4e1792bbe made the htdp lang's executable creation code use the modules that
string->lib-path asks it to use, but for both GUI and non-GUI mode
also refactored that code to move it into a separate file so
  eventually can add a drdr test for it
2011-07-15 21:25:16 -05:00
Guillaume Marceau
c31d352f2b Standartize the vocabulary to "the function returns" and "set! mutates" 2011-07-15 03:27:27 -04:00
Matthias Felleisen
03dc212d61 small edit to doc of atan; Closes PR 12039 2011-07-13 18:00:35 -04:00
Matthew Flatt
0acf9834f7 make ISL local' and letrec' expand more the old way
That is, force expansion to use a single `letrec',
 instead of a mixture of `let' and `letrec' that an
 internal-definition expansion would now use.
2011-07-09 16:57:09 -06:00
Guillaume Marceau
ff1ab35a12 Catches another way images prints. 2011-07-08 18:23:15 -04:00
Matthew Flatt
2840e2367b fix ASL `(begin0)' error message 2011-07-07 10:57:04 -06:00
Matthew Flatt
917d190877 more consistent *SL primitive descriptions 2011-07-07 10:45:43 -06:00
John Clements
77a31dc2af fix a stepper bug related to recent change to handling of module-level defines 2011-07-06 23:22:29 -07:00
Eli Barzilay
0ee3aef9cb Redo some of the ".ss" -> ".rkt" conversion that were undone in the last push. 2011-07-06 06:21:49 -04:00
Guillaume Marceau
9706920055 Updated the error messages of the world and universe teachpacks. 2011-07-06 05:35:27 -04:00
Guillaume Marceau
aa9dbd21f5 Updated the error message of check-expect. Fine tuning of the error messages. 2011-07-06 05:35:25 -04:00
Guillaume Marceau
6fc14b269d The rewriting machanism no longer inserts with-handler everywhere. 2011-07-06 00:28:45 -04:00
Guillaume Marceau
01b9bde7fa The documentation for htdp-lang now uses the new vocabulary. 2011-07-06 00:27:28 -04:00
Guillaume Marceau
6eea5b1793 The new error messages now pass the tests/language-test.rkt suite
(except for contract runtime error messages in levels higher than
 beginner.)
2011-07-06 00:19:26 -04:00
Guillaume Marceau
f858b8bb5c Htdp no longer throws exceptions that have no source information 2011-07-06 00:19:24 -04:00
Guillaume Marceau
79589b9b9f The htdp test suite now checks that the correct error messages are thrown. 2011-07-06 00:19:22 -04:00
Guillaume Marceau
2f3da4c4cd Changed the wording of BSL error messages 2011-07-05 17:57:19 -04:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
John Clements
e367f1d0f2 added missing argument to parameter set 2011-06-29 14:35:47 -07:00
John Clements
d839b9fea6 renamed define-struct-hint to black-box-expr, applied to require as well 2011-06-29 00:28:08 -07:00
Eli Barzilay
40124a0619 A long overdue scan to eliminate files without terminating newlines.
(DrRacket should really do that.)
2011-06-28 02:01:41 -04:00
Matthias Felleisen
e3c552b785 boolean-valued functions in Intermediate and up now check their results; also fixed some error messages; Closes PR 11745 2011-05-25 14:05:45 -04:00
Matthias Felleisen
84cb649b87 removed pair? from language primitives so that HTDP works; Closes PR 10148 2011-05-13 12:55:45 -04:00
Sam Tobin-Hochstadt
f9bf318a90 Fix `ormap' error messages in HTDP languages. 2011-04-12 14:28:33 -04:00
Kathy Gray
7758f508c5 Addition of define-wish to the teaching languages and corresponding addition of support for wishes in test reports and check-expects 2011-02-21 12:46:39 +00:00
Matthew Flatt
655f6045a2 fix shared' for #:auto' fields and constructors without `make-'
Closes PR 11588
 Closes PR 11591
2011-01-05 13:52:11 -07:00