Commit Graph

16010 Commits

Author SHA1 Message Date
Jon Rafkind
32bd5c9f5f document line-numbers-mixin 2010-11-01 22:14:45 -06:00
Jon Rafkind
281138d4b8 clean up line numbers implementation 2010-11-01 22:14:45 -06:00
Jon Rafkind
dc6350244d add first draft of a mixin for text% objects that displays line numbers 2010-11-01 22:14:44 -06:00
Eli Barzilay
ea591c3c23 * Add an attempt to find the SHA1 and date from the ".git/HEAD" file.
* Try "/opt/local/bin/git" on OSX, since it's a common path for git, and
  when running through the Finder it will usually not be found in the
  $PATH.

* Explain the various results in a detailed comment.
2010-11-01 17:26:06 -04:00
Eli Barzilay
3160f821a5 Reorganize the POSIX entries in a more logical order, fix [:lower:] and
[:print:].

Fixes PR 11333.
2010-11-01 15:16:13 -04:00
Jay McCarthy
7c452ad7ea Maybe the DrDr error is related to flushing? 2010-11-01 10:20:31 -06:00
Jay McCarthy
a12feab953 Setting drdr prop 2010-11-01 10:18:54 -06:00
Eli Barzilay
3bd84c617a Describe Unicode categories, move them to a separate table.
Also, use litchar on mentions of \-escapes and unicode categories on the LHS.

Closes PR 9424.
2010-11-01 08:25:35 -04:00
Eli Barzilay
aff75b5005 Some racketization and scribble-syntax-ization, general improvements.
(No changes in the output page after this commit, except for one bogus
empty line at the beginning of the types table.)
2010-11-01 08:25:35 -04:00
Eli Barzilay
4d11d12c40 The reader for "#lang scribble/html".
(Somehow wasn't included in the earlier commit.)
2010-11-01 08:25:35 -04:00
Eli Barzilay
a7220062de old typo 2010-11-01 08:25:35 -04:00
Casey Klein
f346b246af Configures DrDr to compile, not ignore, that file in the VM model 2010-11-01 03:34:40 -05:00
Casey Klein
eb540bc044 Configures DrDr to ignore file in Redex VM model 2010-10-31 18:23:15 -05:00
Casey Klein
f9b64fa2b8 Removes `apply-reduction-relation*' trie experiment 2010-10-31 17:28:19 -05:00
Casey Klein
152084d5ce Adds an experiment in using a trie in `apply-reduction-relation*' 2010-10-31 17:26:20 -05:00
Casey Klein
e9a909a504 Adds randomized tests for Racket VM model 2010-10-31 17:26:20 -05:00
Casey Klein
7f0e712dab Renames some functions to match latest paper draft. 2010-10-31 17:26:19 -05:00
Robby Findler
d082e805b2 fix bug in error checking for save-image 2010-10-31 10:12:04 -05:00
Robby Findler
e80fb21c7c unbreak test suite 2010-10-31 10:12:03 -05:00
Matthew Flatt
aa7c4b53d9 add `codeblock' to Scribble 2010-10-31 07:09:27 -06:00
Jay McCarthy
17f1230bba Reenabling demod docs 2010-10-30 13:11:29 -06:00
Blake Johnson
199a63772a scrbl file and longer command name 2010-10-30 12:49:27 -06:00
Jay McCarthy
26c7625c79 Exposing more values to GC by not making them toplevels 2010-10-30 09:14:58 -06:00
Jay McCarthy
255489e0af Saving time by only reading zos once and saving space by limiting the extent of the hash tables 2010-10-30 08:54:13 -06:00
Jay McCarthy
46e2e7931a Removing newlines from debug messages 2010-10-30 08:31:23 -06:00
Jay McCarthy
c14382bf80 No longer running example file. Maybe it should be removed 2010-10-29 22:37:28 -06:00
Jay McCarthy
690ed259ad Wrapping standalone tests so that no stderr is produced 2010-10-29 22:35:20 -06:00
Jay McCarthy
8516001c08 Removing dead file 2010-10-29 22:24:50 -06:00
Jay McCarthy
83272e88d4 Fixing stupidity until the doc is available 2010-10-29 21:36:34 -06:00
Jay McCarthy
ef6aa7d0b2 Increasing timeout 2010-10-29 21:33:32 -06:00
Jay McCarthy
ec7157744f Repairing tests 2010-10-29 21:32:31 -06:00
Jay McCarthy
4b84fa1446 Setting responsible on raco docs 2010-10-29 21:27:47 -06:00
Jay McCarthy
3b2e14fc56 Setting responsible and DrDr cmdline 2010-10-29 21:26:37 -06:00
Jay McCarthy
7c43846b4e Removing old tests 2010-10-29 21:24:11 -06:00
Blake Johnson
783418ce37 only creating zo file 2010-10-29 19:50:12 -06:00
Blake Johnson
a315f79ebd rolling back some unnecessary changes 2010-10-29 19:50:12 -06:00
Blake Johnson
b2b5875e3e replacing self modidx refs and tests 2010-10-29 19:50:12 -06:00
Blake Johnson
0688c18593 fixing logging and running code in zo-exs 2010-10-29 19:50:11 -06:00
Blake Johnson
43e151f340 using hasheq in zo-marshal 2010-10-29 19:50:11 -06:00
Blake Johnson
77c46d07ee debugging 2010-10-29 19:50:11 -06:00
Blake Johnson
7bffbc31a2 Avoiding cycles in everything but closures 2010-10-29 19:50:11 -06:00
Blake Johnson
d84b78daab offset calculation fix 2010-10-29 19:50:11 -06:00
Blake Johnson
3ddda200e8 changed eprintfs to log-debug 2010-10-29 19:50:11 -06:00
Blake Johnson
4676662e4b moved demodularizer from github to collects and added it to raco 2010-10-29 19:50:10 -06:00
Ryan Culpepper
a3367fd0b4 macro-stepper: added thread/eventspace check
Closes PR 11364 (actually, earlier commit closed)
2010-10-29 16:54:26 -06:00
Ryan Culpepper
60f8d3854a syntax-parse: tidy up 2010-10-29 16:01:51 -06:00
Ryan Culpepper
b9961d605d macro stepper: don't create new eventspace
Closes PR 11299
2010-10-29 16:01:51 -06:00
Ryan Culpepper
f17d0001c4 Changed rackunit top-level test output to stderr
Made test-begin accept zero expressions
 Closes PR 11331
2010-10-29 16:01:50 -06:00
Ryan Culpepper
454673ddcc Documented set-count
Closes PR 11093
2010-10-29 16:00:43 -06:00
Robby Findler
822895fd68 fix minor bug in 'display-end functionality in invalidate-bitmap-cache 2010-10-29 15:06:48 -05:00
Robby Findler
cc0f246048 unbreak 2htdp/image 2010-10-29 14:55:56 -05:00
John Clements
cbe42caa41 added clarification on protect-out docs 2010-10-29 12:43:52 -07:00
Casey Klein
4542d071d5 Adds the `test-->>∃' form. 2010-10-28 20:22:35 -05:00
Matthias Felleisen
18a81f8552 record images during world program, not events; Closes PR11351 2010-10-28 18:43:19 -04:00
Robby Findler
82d11cfa6c fix up Matthias's tests so they are more drdr friendly 2010-10-28 17:20:43 -05:00
Robby Findler
ebe486886c change 2htdp/image to export image=? 2010-10-28 17:20:43 -05:00
Robby Findler
3782c2e749 change save-bitmap in 2htdp/image so that is uses the width and height of the image by default, but also so it accepts two optional arguments to change that. 2010-10-28 17:20:43 -05:00
Robby Findler
6a414bd18a fixed some bugs in the way 2htdp/images were marshalled and unmarshalled 2010-10-28 17:20:43 -05:00
Robby Findler
7ef1e8bd90 fixed a bug in the way old 2htdp/image files were parsed (those that contain bitmaps) 2010-10-28 17:20:43 -05:00
Robby Findler
abca2c91b8 added default case to avoid runtime errors when parsing bogus images 2010-10-28 17:20:42 -05:00
Robby Findler
02d8b5cebf 2htdp/image: adjusted the image you get when parsing fails so that it draws inside its bounding box 2010-10-28 17:20:42 -05:00
Jay McCarthy
69fb56189a datum doesn't need to be anfd 2010-10-28 16:07:52 -06:00
Eli Barzilay
58febe21a0 Move the #%top' binding that makes foo:' keywords self evaluating from
`scribble/html/lang' to `scribble/html'.

Since `foo:' keywords are very common in any code that uses
`scribble/html', it is much more convenient to have it provide the
custom `#%top'.  It simplifies code that uses it, for example, files in
`meta/web/common' now use

  #lang at-exp racket/base
  (require scribble/html)

instead of the (only-in scribble/html/lang #%top) which it used before,
or instead of explicitly quoting all `foo:'s.
2010-10-28 17:31:22 -04:00
Eli Barzilay
97ed1f3182 typos 2010-10-28 17:31:22 -04:00
Jay McCarthy
ac4fb05f0c Correct error in mutator quote 2010-10-28 11:18:28 -06:00
Jay McCarthy
05832af083 Correct handling of procedure env roots in mutator 2010-10-28 11:18:27 -06:00
Robby Findler
a744958fd5 added support to the 2htdp/image library for reading files when there is no GUI around.
currently the support is limited to images that can only report their sizes and pinholes and where equal?
signals an error unless the arguments are eq?.
2010-10-28 11:32:14 -05:00
Robby Findler
68b06b42d9 add missing for-label require 2010-10-28 11:32:14 -05:00
Robby Findler
a021403679 tightened the contract on read-snip 2010-10-28 11:32:14 -05:00
Matthias Felleisen
e7f042f09f Contracts for more than (simple) types 2010-10-27 18:08:44 -04:00
Vincent St-Amour
25749736c9 Fixed a typo in the scribble docs.
Merge to 5.0.2.
2010-10-27 16:15:50 -04:00
Vincent St-Amour
c633913b94 Add optional argument to make-hash and co. 2010-10-27 16:15:50 -04:00
Jon Rafkind
f21a15aef1 add some examples for port functions 2010-10-27 12:39:21 -06:00
Jon Rafkind
5633895cf0 add notes about reading entire ports 2010-10-27 12:07:36 -06:00
Jon Rafkind
b8ad3ad1cb use racket. add list-match utility 2010-10-27 12:07:36 -06:00
Mike Sperber
4bf3ca44d0 Unbreak DMdA REPL.
Follow Robby's commit to htdp-langs.rkt.
2010-10-27 19:48:59 +02:00
Matthias Felleisen
f600531e50 improved testing for record? 2010-10-27 10:35:11 -04:00
Matthias Felleisen
42bceaf900 documented record?, which has a slightly wider interface so that I can write automated tests for the raw functionality 2010-10-27 10:21:37 -04:00
Matthias Felleisen
f876a854c6 partial fix for pr11350 2010-10-27 10:21:36 -04:00
Eli Barzilay
95c3772e8a typo 2010-10-27 09:42:11 -04:00
Matthias Felleisen
07952e1408 impose contract on write-animated-gif, Closes PR11358 2010-10-26 23:22:14 -04:00
Matthias Felleisen
9c4758a456 specified rate-expr 2010-10-26 23:22:14 -04:00
Robby Findler
b121171a98 fixed a bug in the way interval maps were being used in check syntax.
please push to the release branch.
2010-10-26 19:47:35 -05:00
Matthias Felleisen
6457f1e4cc record? is working as it used, plus ability to auto-save images so I can write a test case, Closes PR11348 and PR11349 2010-10-26 19:02:43 -04:00
Sam Tobin-Hochstadt
7802f1deb7 Add source locations in match -> match* conversion 2010-10-26 18:09:45 -04:00
Sam Tobin-Hochstadt
561fdc8db5 Avoid dumb parsing bugs in require/typed. 2010-10-26 18:09:45 -04:00
Eli Barzilay
69a490c10b More name improvements: scribble/text/textlang' -> scribble/text/lang'
and the same for `scribble/html/lang'.
2010-10-26 16:17:09 -04:00
Eli Barzilay
667c682c2b Better filename conventions: "main.rkt"s that would just require the
necessary modules are now "all.rkt"s; "shard.rkt"s turn to
"resources.rkt".

Also, "navbar.rkt" changes to "all.rkt", since it was doing the same
thing (in addition to setting the navbar).
2010-10-26 16:09:16 -04:00
Eli Barzilay
82221a51db Make the scribble/html' layout mimic the one for scribble/text'.
Ie, the difference between using it as a language and as a module is now
the same in both.  Also, improve `scribble/html' (and
`scribble/html/htmllang') by reproviding most of the corresponding text
modules.

Change `meta/web' accordingly, and improve code by making a new langugae
(`#lang meta/web').  This language is similar to `scribble/html' except
that it uses the plain scribble reader (not the `-inside' one), it
doesn't use the customized module-begin feature (that uses
`output-xml'), and it adds all the relevant bits of `meta/web/common'.
(Also, "meta/web/common.rkt" is gone, since it's used only as a language
now.)

This commit has lots of details and binding games, so it's tricky, and
potentially caused some problems.  (Took me a while to track many
breakages, so I won't be surprised if there are more.)
2010-10-26 15:36:29 -04:00
Eli Barzilay
ca040ea42a Move meta/web/html' to scribble/html'.
(See http://lists.racket-lang.org/dev/archive/2010-October/004691.html
for a discussion on calling it `html' rather than `xhtml'.)
2010-10-26 13:50:17 -04:00
Eli Barzilay
95729c3e95 Fix require in a non-web file. 2010-10-26 09:27:50 -04:00
Eli Barzilay
2cda694ab7 Fix the names used by the sh', tgz', and `zip' installers to use
`racket', `racket-textual' and `racket-full' instead of `plt', `mz', and
`full'.

(Also use uniform argument names in packaging functions.)
2010-10-26 07:21:12 -04:00
Eli Barzilay
5f3718a24e Add a stub to generate a wiki template. 2010-10-26 07:21:12 -04:00
Eli Barzilay
ed5033159a Add racket/list' and racket/string' to the web language, adjust
existing requires.

(It's supposed to be a convenient language...)
2010-10-26 07:21:12 -04:00
Eli Barzilay
7ac83e25c9 Provide `process-begin/text' to make it convenient to define more
`scribble/text'-like languages.  Use it to define a convenient syntax
for html modules.

This is not used by the web content files since they define functions
rather than spit out html when required, but makes it convenient to make
an html markup language similar to scribble/text.
2010-10-26 07:21:11 -04:00
Eli Barzilay
2491ac914c Fix a couple of "~e"s to "~.s"s. 2010-10-26 07:21:11 -04:00
Jon Rafkind
b55b9adde4 better error messages 2010-10-25 15:00:49 -06:00
Jay McCarthy
c2e81d4aa0 Probably fixing a problem reported by Eli that I don't know how to recreate 2010-10-25 14:50:21 -06:00
Casey Klein
f4c4b79049 Renames delim-cont tests so that they're not stripped by the distribution script.
(Merge to release branch.)
2010-10-25 15:18:16 -05:00
Ryan Culpepper
24297a793f data/gvector: fixed typo in constructor
Merge to 5.0.2
2010-10-25 11:31:55 -06:00
Matthew Flatt
5d8e000d6d swap vector*-ref' and vector-ref', etc.
Merge to 5.0.2
2010-10-25 11:22:35 -06:00
Eli Barzilay
91f9f0c2d3 Organize dist-specs; remove bogus collection.
Merge to 5.0.2.
2010-10-25 02:42:31 -04:00
Ryan Culpepper
677867ba6c Adjusted props 2010-10-24 20:13:19 -06:00
Ryan Culpepper
f65c8c3427 Macro stepper status bar notifications 2010-10-24 13:17:04 -06:00
Matthew Flatt
c512dbd6d3 fix bogus reordering of floating-point args in unboxing mode
Merge to 5.0.2
 Closes PR 11272
2010-10-22 21:19:18 -06:00
Matthew Flatt
51d613aab2 doc improvements 2010-10-22 20:15:38 -06:00
Stevie Strickland
2847ac86bd Rearrange ->d appropriately to use proxies/chaperones.
Also remove the old tests for tail-call behavior with ->d.
I think it was a faulty way of doing the optimization, and we can't even
do it in the same way now, since we can't get the original "raw" arguments
to the right place via continuation marks.

->i has a much better chance of having this optimization where possible,
and when I start converting ->i, I'll make sure to add appropriate tests.
2010-10-22 16:06:56 -07:00
Ryan Culpepper
e38b12e3e0 Removed incorrect uses of ->i underscores 2010-10-22 15:30:24 -06:00
Ryan Culpepper
c941db0bfa Added ~peek-not, cf packrat/PEG ! operator 2010-10-22 15:30:24 -06:00
Ryan Culpepper
ff7fd55d86 Check Syntax now uses interval-maps 2010-10-22 15:30:24 -06:00
Jon Rafkind
b406e74a8e remove old parser implementation. disable honu expansion and disable
debugging output
2010-10-22 14:33:22 -06:00
Robby Findler
4f236386a9 fixed an (apparently VERY old) problem with lights out and the built-in boards
please merge to release branch
2010-10-22 14:43:58 -05:00
Robby Findler
9468982d2e removed the use of opt/direct because it currently duplicates expressions
the missing fix is to have the optimizer figure out the name for the contract
instead of evaluating the contract to get the name
2010-10-22 14:07:31 -05:00
Robby Findler
31f4a120f1 added two stress tests for ->i performance 2010-10-22 14:07:30 -05:00
Jon Rafkind
e1ca24b80d add parse file 2010-10-22 10:48:12 -06:00
Jon Rafkind
a1e26dd01b try to fix infix macros 2010-10-22 10:48:12 -06:00
Jon Rafkind
1b356476a4 change printf to debug. add infix macro parser 2010-10-22 10:48:11 -06:00
Jon Rafkind
c45aba592d allow comma in templates 2010-10-22 10:48:11 -06:00
Jon Rafkind
86e7b98d65 fix condition. patterns can take literals 2010-10-22 10:48:11 -06:00
Jon Rafkind
29ed62021c convert syntax back to honu form 2010-10-22 10:48:11 -06:00
Jon Rafkind
eeaf6b4981 fix with-syntax 2010-10-22 10:48:10 -06:00
Jon Rafkind
02e87cdc0c add with-syntax 2010-10-22 10:48:10 -06:00
Jon Rafkind
03562eb8e3 fix if. add check_expect. add some comparison operators 2010-10-22 10:48:10 -06:00
Jon Rafkind
4ee161b296 dont require core files 2010-10-22 10:48:09 -06:00
Jon Rafkind
3d26928a3c parse blocks 2010-10-22 10:48:09 -06:00
Jon Rafkind
00094ba4e3 make print a macro 2010-10-22 10:48:09 -06:00
Jon Rafkind
3d6de914b4 add print - display + newline 2010-10-22 10:48:09 -06:00
Jon Rafkind
9c30bda973 use honu/core. make a convenient macro for providing stuff 2010-10-22 10:48:08 -06:00
Jon Rafkind
00989ef01b add honu function 2010-10-22 10:48:08 -06:00
Jon Rafkind
32227e391d move rest of honu files. point core at local private files 2010-10-22 10:48:08 -06:00
Jon Rafkind
b185147a45 separate honu into core and user-level modules 2010-10-22 10:48:07 -06:00
Jon Rafkind
ebb177f28d parse assignment. add simple struct form that can be accessed by field identifiers 2010-10-22 10:48:07 -06:00
Jon Rafkind
a3fefc1c35 add struct example 2010-10-22 10:48:07 -06:00
Jon Rafkind
9a984fcc2b parse assignment 2010-10-22 10:48:06 -06:00
Jon Rafkind
a998a57000 add function tests 2010-10-22 10:48:06 -06:00
Jon Rafkind
222a3f509b allow multiple patterns in a macro. parse call before macro invocation. expressions can end with any number of semicolons 2010-10-22 10:48:06 -06:00
Jon Rafkind
44fc323cff emit macro-debugger steps. dont try to use phased macro invocation 2010-10-22 10:48:05 -06:00
Jon Rafkind
af678f40ec start to trampoline macro expansion 2010-10-22 10:48:05 -06:00
Jon Rafkind
2c6cf77b53 add another introducer. compute syntax position more accurately. parse statements 2010-10-22 10:48:05 -06:00
Jon Rafkind
befa88f1ac use literal sets 2010-10-22 10:48:05 -06:00
Jon Rafkind
99545f8a08 repeater for entire expressions 2010-10-22 10:48:04 -06:00
Jon Rafkind
81544ea644 use a different syntax for expressions 2010-10-22 10:48:03 -06:00
Jon Rafkind
9894670dbe define patterns (really syntax-classes). use different parsers depending on the context. implement provide and require 2010-10-22 10:48:00 -06:00
Jon Rafkind
0ec71da614 attach original syntax properties during expansion. add debug syntax
classes.
2010-10-22 10:48:00 -06:00
Jon Rafkind
d90235efbc dont parse raw scheme syntax. fix comma replacer 2010-10-22 10:47:59 -06:00
Jon Rafkind
59db2491d0 honu-syntax supports commas 2010-10-22 10:47:59 -06:00
Jon Rafkind
1b088f7c37 expand syntax properly. force use of syntax-parse classes 2010-10-22 10:47:59 -06:00
Jon Rafkind
d5357f6dca expose syntax-parse classes 2010-10-22 10:47:58 -06:00
Jon Rafkind
721c815d89 allow macros to reparse their input 2010-10-22 10:47:58 -06:00
Jon Rafkind
066166ce65 start to get transformers to work. weave in scheme syntax 2010-10-22 10:47:58 -06:00
Jon Rafkind
3d52f5ff12 parse macro functions 2010-10-22 10:47:58 -06:00
Jon Rafkind
31cafd7974 move syntax-rules macro to a syntax-parse pattern 2010-10-22 10:47:57 -06:00
Jon Rafkind
d5533606e6 attach honu-syntax to output from syntax-rules macros 2010-10-22 10:47:57 -06:00
Jon Rafkind
177141a852 test 2010-10-22 10:47:57 -06:00
Jon Rafkind
837f1e24e5 test 2010-10-22 10:47:56 -06:00
Jon Rafkind
64255032bb start to modify scheme's `syntax' binding 2010-10-22 10:47:56 -06:00
jon
2f5593a104 implement honu-syntax 2010-10-22 10:47:56 -06:00
jon
99e6eb5e9d fix parser so that it parses left to right 2010-10-22 10:47:56 -06:00
jon
72f83d19a9 parse transformers 2010-10-22 10:47:55 -06:00
jon
e052c33998 add hook for parsing transformers 2010-10-22 10:47:55 -06:00
Robby Findler
35f64145ca adjusted the way caching works for bitmaps to be more effective 2010-10-22 06:45:57 -05:00
Robby Findler
22ce241d4d no #%plain-app because test is not a function... 2010-10-22 06:45:56 -05:00
Robby Findler
c34bd6c28d fix the metadata parsing to be more robust so drracket does not crash when opening a corrupt htdp teaching language file
closes PR 11332
2010-10-22 06:45:56 -05:00
Sam Tobin-Hochstadt
dcd3f9a9aa Flush output in fuzz testing. 2010-10-21 23:40:12 -07:00
Jay McCarthy
34e940a8b5 Testing replacing 2010-10-21 22:29:28 -07:00
Jay McCarthy
03c1c7bf66 Filling out db interface 2010-10-21 22:29:28 -07:00
Jay McCarthy
c2f8e4c0fe Adding attributes to select-input 2010-10-21 22:29:28 -07:00
Jay McCarthy
8fb23b0825 More notes 2010-10-21 22:29:27 -07:00
Jay McCarthy
039fc7095a Describing architecture a little 2010-10-21 22:29:27 -07:00
Jay McCarthy
83bcba48a8 Database template and basic testing 2010-10-21 22:29:27 -07:00
Jay McCarthy
52ee8af48e Git Monitoring process 2010-10-21 22:29:26 -07:00
Eli Barzilay
f51fd94412 Another "/proj/scheme/" -> "/proj/racket" change. 2010-10-21 20:50:57 -04:00
Eli Barzilay
aebf9e77ef Fix require in test suite 2010-10-21 20:25:37 -04:00
Eli Barzilay
9e302a7106 Rename sequence' library to stream', move from racket/base' to racket'. 2010-10-21 19:49:39 -04:00
Eli Barzilay
2f5265854a Rename seqn-*' to stream-*'.
Later this will grow, to include a few kinds of streams in a unified
way, and possibly change the sequence protocol to a point where these
functions are not causing such big runtime penalties.
2010-10-21 19:49:39 -04:00
Eli Barzilay
655b066a93 Reformat, minor tweaks, reorganize part on sequence operations into a
new section.
2010-10-21 19:49:39 -04:00
Eli Barzilay
6d6492e9e3 "/proj/scheme/" renamed to "/proj/racket/" at CCS. 2010-10-21 19:49:39 -04:00
Stevie Strickland
b272c02548 Have unconstrained-domain-> do tail checks as well. 2010-10-21 16:22:51 -07:00
Stevie Strickland
1a9dffe78d Fix tail call behavior for ->, ->* contracts. 2010-10-21 15:03:42 -07:00
Stevie Strickland
8835f2f470 Optimizing the generated syntax.
* Avoiding `apply' when unnecessary
 * Avoiding `values' when unnecessary
 * Replacing apply+list/null with let+cons/no cons.
2010-10-21 15:03:42 -07:00
Stevie Strickland
84f3cb115b Add proxies for -> and ->*.
Attempt to do a recently intelligent job by using more specific lambdas
when possible (i.e., when the arity of the function matches the arity
specified by the contract).

Also, change testcases that test creation of proxy contracts to stop
depending on the proxy-ness of -> contracts.  This also uncovered a bug
in the testcase that checks that proxy contracts aren't allowed for
the domain in hash/c.
2010-10-21 15:03:42 -07:00
Stevie Strickland
dc415b21cc Remove dead code in an attempt to make it clear what needs to change here. 2010-10-21 15:03:42 -07:00
John Clements
e717cbc84a added drdr:command-line prop on universe-test.rkt 2010-10-21 13:13:57 -07:00
John Clements
b37187da59 added universe-test 2010-10-21 07:19:10 -07:00
Casey Klein
4577de0790 Fixes PR 11336. 2010-10-20 15:56:57 -07:00
Casey Klein
42687d26d1 Reverts most of push #21257.
That push recompiles a clause of an extended metafunction by
replacing the LHS with a recompiled form of the `lhs-pat' field of the
`metafunc-case' struct. But that field (used by the test generator)
also incorporates the clause's `where' and `side-condition' clauses,
causing them to executed twice when applying the recompiled clause (once
while matching its LHS, and once while evaluating its RHS).
2010-10-20 15:56:57 -07:00
John Clements
d18f43a488 cosmetic changes only 2010-10-20 12:05:06 -07:00
John Clements
34fbc9a06f frightening bug, #%if was capturing everything 2010-10-20 12:05:06 -07:00
John Clements
dfe6f78d80 back to old style, not sure why 2010-10-20 12:05:06 -07:00
Vincent St-Amour
a15236ea4f Fix opt-lambda:. Merge to 5.0.2. 2010-10-20 14:32:37 -04:00
Robby Findler
c5c6c1c9e6 explained #:domain 2010-10-20 12:34:14 -05:00
Robby Findler
b91a0da469 fixed and ->i bug that could cause expressions to be evaluated twice 2010-10-20 08:37:26 -05:00
Mike Sperber
594c72167e use #%plain-app to avoid possible problems with code injected into the teaching languages
Follow ae37e186e7 for DMdA.
2010-10-20 12:37:05 +02:00
John Clements
70898379c5 copied 'mzlib/convert-prop attachment from outer layer to inner layer. 2010-10-19 23:28:45 -07:00
Robby Findler
a7e72a6bae fix stupidity.... 2010-10-19 23:49:18 -05:00
Eli Barzilay
1e2d4b8169 Fix rendering in local build mode -- make it create file:// urls when
insisting on an absolute url (currently happens only in the tr pages).
2010-10-19 21:06:32 -04:00
Sam Tobin-Hochstadt
9cc35d59fe Fix fuzz tester prop. 2010-10-19 17:58:29 -07:00
John Clements
60dabc8ad7 may have fixed cond in stepper tests 2010-10-19 17:50:35 -07:00
John Clements
027450d128 increase timeout on stepper automatic tests 2010-10-19 17:50:35 -07:00
John Clements
0536d52efd looks like a fix for cond 2010-10-19 17:50:35 -07:00
Robby Findler
20b596b8f2 fix pretty big for check syntax 2010-10-19 18:41:20 -05:00
Robby Findler
ea985a81d6 added some more information to the error messages when a syncheck test case fails 2010-10-19 18:41:20 -05:00
Robby Findler
5c94ca5b7c idle attempts to reduce allocation in the matcher 2010-10-19 18:41:19 -05:00
Sam Tobin-Hochstadt
50bf3dc1be Add zo-read/parse/run fuzz tester. 2010-10-19 14:51:13 -07:00
John Clements
2083181d2e got testing harness working again. 2010-10-19 14:37:44 -07:00
Jay McCarthy
afd3a90607 Adding preamble to make-xexpr-response 2010-10-19 11:29:49 -07:00
Robby Findler
920800531c adjust drracket so that, during check syntax, there is less sharing between drracket and the user program. specifically, the gui libs are not shared 2010-10-19 07:07:09 -05:00
Robby Findler
ae37e186e7 use #%plain-app to avoid possible problems with code injected into the teaching languages 2010-10-19 07:07:08 -05:00
Robby Findler
499fe40f8a minimize dependencies 2010-10-19 07:07:08 -05:00
Mike Sperber
fd5e9d4d63 Unbreak the stepper on `check-expect'.
All kinds of things expand into (let () ...), so all kinds of things
break.
2010-10-19 11:56:24 +02:00
Matthew Flatt
ddca8cd29b fix non-inlined `in-vector' sequence on proxied vectors
Merge to 5.0.2
 Closes PR 11225
2010-10-18 13:48:22 -07:00
Mike Sperber
17c4cb9254 Two more (hopefully last) renamings "Vertrag" -> "Signatur"
(i.e. "contract" -> "signature" in German)
2010-10-18 13:30:34 +02:00
Mike Sperber
43d097cc05 Don't annoy the user with test-engine summaries.
Make sure the test-engine summary is only printed when there's
something new to say.
2010-10-18 10:10:27 +02:00
Mike Sperber
0821f694af Made sperber responsible for `test-engine-tests.rkt'. 2010-10-18 10:00:49 +02:00
Mike Sperber
32455894bc Unbreak the test-engine-test.rkt test suite.
- signatures are only in ASL now
- the error messages for the DMdA languages are different
2010-10-18 09:37:48 +02:00
Mike Sperber
2a418b9cf0 For DMdA, follow Robby's fix for htpd-langs.ss.
Namely, don't set an uncaught-exception-handler.
2010-10-18 09:36:17 +02:00
John Clements
bb160fbc04 r/exact-integer?/fixnum/ 2010-10-17 21:17:23 -07:00
John Clements
9f7eeee570 exr -> expr 2010-10-17 21:17:22 -07:00
Matthew Flatt
9f959f247e fix quotability annotation on HtDP-language structs
Merge to 5.0.2
2010-10-17 19:32:17 -07:00
Robby Findler
0614da5992 adjusted the recently opened menu items code so that it does not create all of the menu items as often 2010-10-17 10:25:08 -05:00
Robby Findler
93260c7dd0 fixed mangled test case 2010-10-16 22:24:16 -05:00
Matthew Flatt
caa747e5c6 fix an interaction of `dynamic-wind' pre thunks and composable continuations
Merge to 5.0.2
2010-10-16 19:44:33 -06:00
Robby Findler
ccdea59949 added a failing test case; fixing this one isn't simple, but hopefully will also lead to good performance improvements (for some models at least) 2010-10-16 16:29:17 -05:00
Robby Findler
99d85159b6 adjusted define-metafunction/extension so that it recompiles the old cases in the new language 2010-10-16 16:29:15 -05:00
Robby Findler
e875f262d9 added a test case to be sure that the extension's clauses come before the original clauses in an extended metafunction 2010-10-16 16:29:15 -05:00
Jay McCarthy
fae28f1bb3 Disable stress 2010-10-15 13:44:34 -06:00
Jay McCarthy
e6b2965d39 Re-enabling tests 2010-10-15 13:08:39 -06:00
Jay McCarthy
05dc137ca0 Fixing srcloc on module expressions because srclocs come from the cons 2010-10-15 13:08:39 -06:00
Jay McCarthy
4528c7657a Fixing mutator test printing modulo line numbers 2010-10-15 13:08:38 -06:00
Jay McCarthy
f6fbc85d1b Adding test printing tests 2010-10-15 13:08:38 -06:00
Jay McCarthy
e8ceade2a5 Little stress tests 2010-10-15 13:08:38 -06:00
Mike Sperber
39541c51b5 Add `tech-equal?'.
This refuses to work on inexact numbers and procedures.  Use it in
`check-expect' & friends.
2010-10-15 15:26:24 +02:00
Robby Findler
1d0ebeae62 added a check to avoid creating a new bitmap struct (so caching works better when you flip images that are not scaled) 2010-10-14 14:05:12 -05:00
Sam Tobin-Hochstadt
4311a5e5d6 disable this file too 2010-10-14 14:55:51 -04:00
Sam Tobin-Hochstadt
a826b8462e disable this file since it doesn't terminate 2010-10-14 14:54:11 -04:00
Vincent St-Amour
12a5454b14 Removed logging when no optimization actually happens. 2010-10-14 14:13:06 -04:00
Eli Barzilay
42e76eaaf4 Encode any text instead of going through a pretty-printer. 2010-10-14 13:46:51 -04:00
Eli Barzilay
dc25ef2d26 Pub links for byu and calpoly. 2010-10-14 13:46:50 -04:00
Robby Findler
dac011bc9f move the signature coverage test to ASL since signatures are now only in ASL 2010-10-14 11:45:04 -05:00
Sam Tobin-Hochstadt
c7eb46b1b3 Fix props 2010-10-14 12:21:28 -04:00
Sam Tobin-Hochstadt
24bddafa82 Add type for `compose' 2010-10-14 11:44:14 -04:00
Robby Findler
61188f3e44 adjusted to new error messages 2010-10-14 10:06:26 -05:00
Robby Findler
345707b4bc adjusted props so Matthias is notified for teaching language related tests 2010-10-14 10:06:26 -05:00
Vincent St-Amour
3f5ea8a5be Fixed a test to reflect implicit let in cond instead of implicit begin. 2010-10-14 10:53:43 -04:00
Robby Findler
2f01da7450 props 2010-10-14 07:27:40 -05:00
Robby Findler
c2d7f58e65 Rackety 2010-10-13 17:44:20 -05:00
Robby Findler
2652237559 fixed a bug in extended languages & the _ check 2010-10-13 17:44:19 -05:00
Robby Findler
3e9858b001 added an argument to open-input-text-editor so that it can lock (and unlock) the editor when editing would not be allowed. 2010-10-13 15:55:17 -05:00
Robby Findler
fc22d10b49 fixed typos 2010-10-13 15:55:17 -05:00
Robby Findler
c785235af4 made the pretty big and r5rs drracket languages use the new read-accept-lang parameter to disable #lang in the REPL 2010-10-13 15:55:17 -05:00
Robby Findler
798e35bb4c fixed a bug in the test suite so that test errors are now (all) reported to stderr instead of stdout
also added a test suite for teh 'language in the source' language
2010-10-13 15:55:17 -05:00
Robby Findler
0998934e1e only require mred/mred, not all of scheme/gui (which includes
mred/mred but also lots of stuff from the scheme library)
2010-10-13 15:55:16 -05:00
Robby Findler
8032705cf9 The call to display-results depends on the value of the current-namespace
parameter. Specifically, it is expected to be a namespace that has the GUI
bindings available. Unfortunately, during the dynamic extent of the
uncaught-exception-handler when a syntax error is raised, this may not be
the case because you get a phase 1 namespace, not a phase 0 one.

So, move the call to display-results to the code that runs the student language
programs and out of the uncaught exception handler.
2010-10-13 15:55:16 -05:00
Robby Findler
e2958e0605 don't catch break exceptions 2010-10-13 15:55:16 -05:00
Robby Findler
2de8b978ba move read-accept-lang parameter setting to the right place 2010-10-13 15:55:16 -05:00
Robby Findler
d9ea5141e9 fixed doc contract spec 2010-10-13 15:55:16 -05:00
Matthias Felleisen
49060ff57c merged two error checking files 2010-10-13 15:07:33 -04:00
Matthias Felleisen
ae04ddc7d9 the mouse and key handler shouldn't be set to defaults; when there are no on-* clauses, they should be ignored 2010-10-13 14:50:55 -04:00
Matthias Felleisen
852aaed2ea removed signatures for now 2010-10-13 12:49:26 -04:00
Matthew Flatt
6e23fcda5f fix _short' and other non-_int' integer types, and add `_intptr' test 2010-10-13 08:50:47 -06:00
Matthew Flatt
1203a89a0f fix argument checking for set operations, and also fix recursive print
in the case that the current print is to a string with a limited
  length
 Closes PR 11313
2010-10-13 08:50:47 -06:00
Matthias Felleisen
df62ca47e9 added 'function', Closes PR 11283 2010-10-13 10:31:00 -04:00
Mike Sperber
bb098fc77c Added rudimentary test suite for test engine. 2010-10-13 14:01:07 +02:00
Mike Sperber
f3191ff4d6 Define `any' signature differently.
... to actually enable the subtyping check.  Also, make named
signatures work for signature variables.
2010-10-13 09:41:10 +02:00
Eli Barzilay
615d8f1329 Add _intptr etc; closes PR11311. 2010-10-12 20:58:08 -04:00
Eli Barzilay
b3cfbe77c9 Minor typo in error call 2010-10-12 20:58:07 -04:00
Matthias Felleisen
8fb58bb74e making the stepper (mostly) happy 2010-10-12 18:10:35 -04:00
Vincent St-Amour
27e722f27b Inexact-Complex -> Float-Complex 2010-10-12 16:47:46 -04:00
Vincent St-Amour
52bd739d00 Added the Float-Complex type for consistency with the new float types.
Inexact-Complex has been kept as a synonym for backward compatibility.
2010-10-12 16:47:45 -04:00
Vincent St-Amour
a59a99c42d Changed the TR numeric tower to use the new flonums. 2010-10-12 16:47:45 -04:00
Vincent St-Amour
f3ae9c73b0 Changed the interface for running single optimizer tests. 2010-10-12 16:47:45 -04:00
Vincent St-Amour
2c4d6fbb01 Added optimization for first, second and co when possible. 2010-10-12 16:47:44 -04:00
Matthew Flatt
bf4fc2574c fix syntax colorer for #true and #false 2010-10-12 08:22:12 -06:00
Mike Sperber
b80d327d40 DMdA typo fix.
--HG--
extra : rebase_source : d6f5e160c655713f30df544a60c8033410945103
2010-10-12 14:53:12 +02:00
Mike Sperber
03c2fa266b Update DMdA docs on generators for `check-property'.
--HG--
extra : rebase_source : 0cfb8434a19c3d2f2783a0f1d882fecd85c5d432
2010-10-12 14:50:22 +02:00
Matthew Flatt
99df8e1267 allow internal definitions in when', unless', cond, case', `match' 2010-10-12 06:41:49 -06:00
Eli Barzilay
7847872400 Fix some missing uses of @num 2010-10-11 15:07:28 -04:00
Eli Barzilay
6295824851 Some additional tests, and use () instead of {} for racket sexprs 2010-10-11 15:07:28 -04:00
Eli Barzilay
40ecda1a77 Sandboxes make up and remember a reasonable default source to filter
uncovered expressions on.

(See http://lists.racket-lang.org/users/archive/2010-October/042008.html
for a detailed description.)
2010-10-11 15:07:28 -04:00
Mike Sperber
c4b590d9bf Add "image2" teachpack for DMdA.
This is just our copy of 2htdp/image.
2010-10-11 13:54:29 +02:00
Mike Sperber
eebe5b2e2b 2nd attempt at generators for records/structs.
This time, with feeling.
2010-10-11 13:34:16 +02:00
Matthew Flatt
cc79890f71 rephrase `eq-hash-code', etc. docs in terms of fixnums 2010-10-10 20:39:29 -06:00
Matthew Flatt
696360d5f3 document new gc-callback protocols 2010-10-10 20:39:29 -06:00
Mike Sperber
f35477b82b Make the weak table for the signature-checked pairs truly weak.
... by wrapping ephemerons around the values.
2010-10-09 17:51:30 +02:00
Mike Sperber
f706b0d7a7 Revert "Create arbitraties off parametric struct/record signature constructors."
This reverts commit 7df9a22a67.

It was broken in several ways.  New attempt later.
2010-10-09 17:48:58 +02:00
Matthew Flatt
a0e4eb990d document racket/fasl 2010-10-09 08:15:26 -06:00
Matthew Flatt
6ac33a62be set `read-accept-lang' to #t by default, plus related adjustments
including adding some uses of `with-module-read-parameterization'
 so that `read-accept-lang' is set right anyway; still, so many
 many places just set `read-accept-reader' to #t that making
 `read-accept-lang' #f by default looks like too big of an
 incompatibility
2010-10-08 19:01:33 -06:00
Matthew Flatt
fe301b1ff4 print-boolean-long-form, #true, #false, read-accept-lang, flonum? 2010-10-08 15:13:04 -06:00
Matthias Felleisen
0eed02bd0d typo in world.rkt 2010-10-08 16:31:52 -04:00
Matthias Felleisen
58684bbf4e merged keywords back into universe 2010-10-08 16:17:41 -04:00
Matthias Felleisen
995ce61434 to-draw and on-draw check 2010-10-08 16:17:03 -04:00
Matthias Felleisen
96bf9d2518 deleted 2010-10-08 16:16:04 -04:00
Matthias Felleisen
963adb64ce run tests all at once 2010-10-08 14:04:32 -04:00
Mike Sperber
4ec7cb1d88 Unbreak coverage for *SL `define-struct'. 2010-10-08 19:56:51 +02:00
Mike Sperber
7df9a22a67 Create arbitraties off parametric struct/record signature constructors.
This enables QuickCheck value generations for structs/records.
2010-10-08 17:21:07 +02:00
Mike Sperber
219c91d8e7 Check parametric struct/record signatures eagerly. 2010-10-08 17:01:47 +02:00
Mike Sperber
5dad68b384 Zap `DMdA-' from primitive procedures in DMdA.
Meaning the the procedure names are displayed without the "DMdA-"
prefix in the stepper and the REPL.
2010-10-08 15:25:44 +02:00
Mike Sperber
b4493fdab4 Add cons' and cons?' as synonyms for make-pair' and pair?' to DMdA.
Requested by Michael Hanus & Peter Thiemann.
2010-10-08 15:25:44 +02:00
Mike Sperber
29a0511439 Give the type-name signature off `define-record-procedures' a name. 2010-10-08 15:25:44 +02:00
Mike Sperber
9b1188c77a Re-instate Robby's hack to display test results off REPL errors.
... and generalize it so there's an action before (clearing the old
tests out) in addition to after (displaying the test results).

Also, do for DMdA as for HtDP.
2010-10-08 15:25:44 +02:00