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
Robby Findler
daa048719a
fixed a bug in the ordering of how printing parameters are set up
...
There was an exception raised and then handled internally when the
slideshow/pict-convert library was loaded; DrRacket loaded this
library during the dynamic-extent of a handler it installed into
the global-port-print-handler, which causes a (non-tail) infinite
loop.
2012-05-30 22:31:55 -05:00
Matthew Flatt
248301c9ed
disable nested `#lang'
...
A `syntax/module-reader' reader disables `#lang' when looping to
read a module body. The HtDP languages require a little additional
treatment.
2012-05-29 11:01:52 -06: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
Eli Barzilay
17090fca4f
A bunch of fprintf' ->
eprintf' conversions (and a few related things).
2012-05-06 12:06:00 -04:00
Stephen Bloch
8f4178e7eb
Eli's suggested patch to enable searching for picturing-programs library
...
functions (which includes image and universe) using F1 from teaching
languages.
2012-05-04 14:56:28 -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
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
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
Robby Findler
20bcf80e8b
add a check to make sure we don't try to select a teachpack when the
...
user clicks on empty space
closes PR 12472
2012-01-05 23:04:07 -06: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
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
Matthew Flatt
c7464dcbd3
mzlib/pconvert: `add-make-prefix-to-constructor' parameter
...
Defaults to #f, which fixes constructor-style printing in `plai'
and `racket', and is set to #t for the HtDP languages.
2011-11-22 19:42:35 -07: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
45331d1ae8
fix errortrace-conversion problem in HtDP languages
2011-09-14 12:24:41 -06:00
Matthew Flatt
d3c56c9f13
generalized `begin-for-syntax'
2011-09-08 14:06:00 -06:00
Robby Findler
ac8b5a7d03
fix up the teachpack code to be friendly to the drracket test suites
2011-09-06 14:40:50 -05: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
Eli Barzilay
ffbd9e16ea
Some info.rkt cleanups.
2011-08-29 16:33:13 -04:00
Matthias Felleisen
6716b9b96a
made 23238 stable w/ shared file prefix; Closes PR 12093 again
2011-08-14 22:29:20 -04:00
Robby Findler
b300bae75c
added the lang/htdp-langs-save-file-prefix library
...
to help detect HtDP-lang save files
2011-08-13 15:03:29 -05: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
Robby Findler
9595145d79
adjust the teaching languages so they print images specially.
...
I picked "#<image>" not because I think it is a good way to print,
but just so that there is something there to be easily changed later,
when someone who has an opinion decides to change it.
2011-07-19 16:17:06 -05: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
John Clements
9cdeda1e04
added purpose statement to expand-teaching-program
2011-07-09 16:19:16 -07:00
Matthew Flatt
3d03e8f884
fix define-primitive' and
provide-primitive'
...
Allow the implement to follow the `define-primitive'
or `provide-primitive' declaration.
2011-07-09 16:57:56 -06: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
Matthew Flatt
584a96a4e0
fix define-primitive' and
porvide-primitive' to check binding
...
Closes PR 12031
2011-07-09 08:54:36 -06:00
Guillaume Marceau
2c075978fd
Merged htdp-lib.scblr and teachpacks/error-composition.scrbl into htdp/htdp.scrbl,
...
to form a single manual titled "Implementing HtDP Teachpacks, Libraries, and
Customized Teaching Languages"
2011-07-08 18:23:17 -04: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