Commit Graph

12387 Commits

Author SHA1 Message Date
Sam Tobin-Hochstadt
e99b1d028c Fix printing of `Number' - reported by Noel.
Provide `assert' from `typed/scheme'

svn: r18062
2010-02-12 15:49:58 +00:00
Eli Barzilay
5143cfcd1c Welcome to a new PLT day.
svn: r18061
2010-02-12 08:50:41 +00:00
Eli Barzilay
bffce26ded Welcome to a new PLT day.
svn: r18047
2010-02-11 08:50:46 +00:00
Matthew Flatt
38a0f6d89a fix the actual result value for unboxed flmin and flmax
svn: r18045
2010-02-11 04:00:18 +00:00
Sam Tobin-Hochstadt
8bf908d106 More restrictive handling of contracts for the `Any' type.
svn: r18043
2010-02-10 20:45:50 +00:00
Sam Tobin-Hochstadt
39a8c288ec Better error message when definition is missing. Fixes PR 10751.
svn: r18042
2010-02-10 20:32:53 +00:00
Sam Tobin-Hochstadt
c224d2ebfc More precise types for typed MrEd wrappers.
More precise types in auto-language.ss

svn: r18041
2010-02-10 20:23:59 +00:00
Casey Klein
c0ce0debbe Improved documentation of `check-metafunction'
svn: r18039
2010-02-10 18:33:53 +00:00
Jon Rafkind
21b98bb2fa add example for "with-syntax"
svn: r18038
2010-02-10 17:49:26 +00:00
Robby Findler
8f5d2e1864 apparently the 1 pixel circle under linux draws in exactly one pixel when not in smoothed mode, which broke a test case; so that's changed now
svn: r18037
2010-02-10 17:40:21 +00:00
Stevie Strickland
c1f7ba9042 Add ellipses to the compound-unit, compound-unit/infer grammars for the
import parts of link clauses.

svn: r18036
2010-02-10 16:15:45 +00:00
Eli Barzilay
c87f516327 Welcome to a new PLT day.
svn: r18035
2010-02-10 08:50:31 +00:00
Matthew Flatt
aad22e2c3e restore scheme/future
svn: r18032
2010-02-09 17:19:58 +00:00
Robby Findler
8228482d86 fixed up the regexp-match contracts to make them more specific
svn: r18030
2010-02-09 16:03:03 +00:00
Robby Findler
419a50860c probable fix to the runtime error seen in drdr
svn: r18029
2010-02-09 15:15:11 +00:00
Robby Findler
e581ac7bfd made room for some tests in here and added them
svn: r18028
2010-02-09 14:53:09 +00:00
Eli Barzilay
f4f0ffabff Welcome to a new PLT day.
svn: r18027
2010-02-09 08:50:41 +00:00
Robby Findler
2ba641e05b PR 10748
svn: r18026
2010-02-09 01:00:27 +00:00
Sam Tobin-Hochstadt
2276cb10d5 Fix subtyping for keywords.
svn: r18025
2010-02-08 23:03:55 +00:00
Jon Rafkind
e5fd8a904c document latest generator functionality
svn: r18022
2010-02-08 19:47:41 +00:00
Robby Findler
4e92d54b28 possible fix to module lang test suite
svn: r18020
2010-02-08 19:44:01 +00:00
Ryan Culpepper
c1373f8214 syntax/parse:
allow forward references from conventions
  fix progress comparison bug

svn: r18019
2010-02-08 18:39:56 +00:00
Sam Tobin-Hochstadt
89eb249b00 fix dumb typo
svn: r18018
2010-02-08 18:21:43 +00:00
Sam Tobin-Hochstadt
55a48ca594 Fix a number of bugs reported by eli
svn: r18017
2010-02-08 18:17:15 +00:00
Robby Findler
49702f8f59 moved temp files into the temp directory
svn: r18015
2010-02-08 17:40:46 +00:00
Ryan Culpepper
0f08499e54 syntax/parse: started support for backtracking into syntax classes
incomplete, need to separate descriptions from failure handlers

svn: r18013
2010-02-08 09:47:52 +00:00
Eli Barzilay
9791384b79 Welcome to a new PLT day.
svn: r18012
2010-02-08 08:50:26 +00:00
Eli Barzilay
a08f9b3d42 Welcome to a new PLT day.
svn: r18011
2010-02-07 08:50:34 +00:00
Carl Eastlund
86f0d92c26 Updated documentation for unstable/srcloc; added it for unstable/location.
svn: r18010
2010-02-06 22:44:07 +00:00
Carl Eastlund
fe40d3e888 Merged changes from trunk.
svn: r18007
2010-02-06 19:23:24 +00:00
Matthias Felleisen
2c602a08c4 svn: r18006 2010-02-06 19:05:35 +00:00
Robby Findler
75a60162b0 another attempt to get the drscheme gui test suite in shape to be run by drdr
svn: r18004
2010-02-06 17:13:49 +00:00
Mike Sperber
43e74725bf Synch German string constants with latest.
svn: r18003
2010-02-06 16:05:32 +00:00
Eli Barzilay
ecb9961bc0 Welcome to a new PLT day.
svn: r18002
2010-02-06 08:50:38 +00:00
Sam Tobin-Hochstadt
bf77c690f4 fix let/ec: and let/cc:
svn: r18000
2010-02-05 23:00:07 +00:00
Carl Eastlund
17f83a5a54 Corrected contract of datum->syntax source locations.
svn: r17997
2010-02-05 20:49:10 +00:00
Eli Barzilay
44445c3210 Welcome to a new PLT day.
svn: r17992
2010-02-05 08:50:44 +00:00
Carl Eastlund
f9ae636aea Oops, got the types of char->integer and integer->char backwards.
svn: r17991
2010-02-05 06:24:44 +00:00
Carl Eastlund
f2852257bb Added types for char->integer and integer->char.
svn: r17990
2010-02-05 05:22:49 +00:00
Carl Eastlund
578637c691 Added types for missing hash table operations.
svn: r17989
2010-02-05 04:49:49 +00:00
Eli Barzilay
0725ba7608 Reformat
svn: r17988
2010-02-05 03:22:26 +00:00
Eli Barzilay
2cc4429c62 When constructing code, use the `object-name' of the input port *only*
if it's coming from a file -- not when it's a string.  In that case, use
`#f' for the name, so other code (specifically, `input->code') will use
'program.

svn: r17987
2010-02-05 03:22:23 +00:00
Eli Barzilay
a4954b774d Use optional arguments instead of `case-lambda'.
svn: r17986
2010-02-05 03:22:21 +00:00
Eli Barzilay
536d0266df Use unsafe operations in `sort'. It has been running in safe mode for a
while with no errors reported, and this change is done now when there's
time before the next release.

svn: r17985
2010-02-05 03:22:17 +00:00
Eli Barzilay
2368290cdb Test now that the generator is not in a running state when it's called.
The previous problem was just a bug.

svn: r17984
2010-02-05 03:22:15 +00:00
Eli Barzilay
d5822a3ee5 Remove the special case hack for getting zero values at the end of a
generator.  This will make this:

  (generator (yield 1) (yield))

also repeat #<void> when it's done which will be very confusing.  Better
just add a note in the docs on (generator (yield 1)) returning no values
when it's done.

Also, remove some of the `case-lambda' optimizations...

svn: r17983
2010-02-05 03:22:12 +00:00
Eli Barzilay
3a08648dab Added a `running' state, which is visible only from inside the
generator.  (Also considered making it an error when the generator is
called while it is running, but that doesn't allow (yield (yield X))
fun.)

svn: r17982
2010-02-05 03:22:09 +00:00
Eli Barzilay
2f62cb192e Allow using `yield' with any number of arguments which will be returned
as multiple values.  (These `case-lambda's are for making it fast, which
is probably stupid given how slow this is anyway.)

svn: r17981
2010-02-05 03:22:07 +00:00
Eli Barzilay
f1dcf49d38 Added `generator-state', implemented using a local state (which also
simplifies the code that raises an error from the last change).

svn: r17980
2010-02-05 03:22:04 +00:00
Eli Barzilay
505034ea26 The generator function can now be used to send values to the generator.
For example,

  (define g (generator (yield (yield (yield 1)))))
  (list (g) (g 2) (g 3) (g 4) (g) (g))

evaluates to '(1 2 3 4 4 4).  This is something that Python does (as a
generator.send method), which might be useful for using generators as
co-routines, and it is actually easy to implement since sending values
is exactly what we get when the generator call is actually calling the
saved continuation.  So most of the change is dealing with the
technicalities of throwing an error when the generator is called with
some arguments, when that's done after it's terminated (at the stage
where it's repeating the last value for ever).

A few tests added for this.

svn: r17979
2010-02-05 03:22:01 +00:00
Eli Barzilay
18c8e41fac Make it possible for the last expression in the body of a generator to
return any number of values.  They will be collected and used as the
repeat-forever result of calling the generator again.

Note: there's an exception for using no values -- instead of returning
no values forever, use void, since no values can be more surprising, and
it can happen when someone uses something like

  (generator (yield 1) (yield 2) (yield 3))

since the result of `yield' is (values).  (This will change in a
following commit, but even then it will be popular since people will
usually invoke the generator with no arguments which leads to the zero
values.  Could be solved if you use (g (void)) -- but that's awkward, I
think.)

svn: r17978
2010-02-05 03:21:59 +00:00
Eli Barzilay
5c54f3a5ac Use readline-input' for the port name, since readline' makes error
messages confusing.

svn: r17977
2010-02-05 03:21:56 +00:00
Eli Barzilay
c88a5a6856 A bunch of additional typos
svn: r17976
2010-02-05 03:21:52 +00:00
Carl Eastlund
2e3ea3d0de Merged latest changes from the trunk.
svn: r17974
2010-02-05 02:41:24 +00:00
Matthias Felleisen
dda81dc80d fixed bug 10733
svn: r17973
2010-02-05 01:11:05 +00:00
Matthew Flatt
3812f8ca72 improve inling to support ((let (....) (lambda ....)) arg ...) patterns; allow nested 'let's for local flonum binding (which fixes a problem where unsafe flonum operations could end up much slower than safe ones)
svn: r17972
2010-02-05 00:16:06 +00:00
Sam Tobin-Hochstadt
318833f422 Add supertypes for mutable types, so that predicates work correctly.
svn: r17971
2010-02-04 23:39:15 +00:00
Robby Findler
1b39d29640 clean up temporary files
svn: r17970
2010-02-04 20:31:51 +00:00
Eli Barzilay
a3c9b87652 Welcome to a new PLT day.
svn: r17965
2010-02-04 08:50:37 +00:00
Carl Eastlund
3eb1e46eeb Merged a few more changes from the trunk.
svn: r17964
2010-02-04 03:26:31 +00:00
Carl Eastlund
137f9a3279 Fixed bugs in contract construction examples.
svn: r17963
2010-02-04 02:17:15 +00:00
Matthias Felleisen
823bbd18c9 opaque iworld structure
svn: r17962
2010-02-03 22:49:12 +00:00
Carl Eastlund
a4a25ba1e9 Wrote documentation for new contract interface. Still needs proofreading, etc.
svn: r17961
2010-02-03 21:02:02 +00:00
Carl Eastlund
2e64069d14 Re-disabled legacy (contract ...) form.
svn: r17960
2010-02-03 17:08:26 +00:00
Stevie Strickland
8bc420da4c The contract on sequencer:make requires arguments that conform to
dispatcher/c, which #f does not.

svn: r17958
2010-02-03 16:39:18 +00:00
Carl Eastlund
73407bed63 Merged a few more changes from the trunk (which I think will affect planet package compatibility).
svn: r17957
2010-02-03 16:11:05 +00:00
Robby Findler
0bda2f0e18 moved the debugging options in the details part of the module panel so they are side-by-side, which should make the dialog more likely to fit on a netbook screen
svn: r17955
2010-02-03 15:34:11 +00:00
Carl Eastlund
d7a7409fe0 Merged changes from the trunk.
svn: r17954
2010-02-03 15:15:11 +00:00
Ryan Culpepper
ffa97036a8 macro-stepper: removed drscheme,etc dep on macro-debugger
(changed capability to normal symbol constant)

svn: r17953
2010-02-03 14:43:23 +00:00
Eli Barzilay
c581b6b575 Welcome to a new PLT day.
svn: r17951
2010-02-03 08:50:28 +00:00
Robby Findler
76f41c2a1c fixed a bug and added some race-condition insurance
svn: r17946
2010-02-02 21:32:20 +00:00
Robby Findler
e74e46d9ca drdr-ized the rest of the drscheme test suite
svn: r17945
2010-02-02 21:06:07 +00:00
Ryan Culpepper
8d2f32efed syntax/parse:
fixed bug: splicing-stxclass immediately within ellipses
  added tests, docs for local-conventions

svn: r17944
2010-02-02 19:48:08 +00:00
Robby Findler
319a4a7ef0 fixed a bug revealed by drdr (but stil cant make this bad case happen on my machine, frustratingly
svn: r17942
2010-02-02 18:01:55 +00:00
Matthew Flatt
db1533fa78 fix Scribble rendering problem with 'aux tables hidden within compound paragraphs (so some inherited-method tables didn't appear in the GUI docs)
svn: r17940
2010-02-02 17:19:29 +00:00
Eli Barzilay
e02335e425 Welcome to a new PLT day.
svn: r17939
2010-02-02 08:50:29 +00:00
Ryan Culpepper
82e1e3308f syntax/parse:
fixed docs bug in ...+
  fixed bug in rep constraint messages

svn: r17938
2010-02-02 07:22:35 +00:00
Ryan Culpepper
cb7600607b syntax/parse:
added nested ~or ellipsis-head patterns
  added ~between, ...+
  cleaned up declenvs
  fixed kernel-literals (include template phase binding)
  pattern variables may not start with ~ (tilde)
  first cut of syntax-class-possible-errors

svn: r17937
2010-02-02 02:28:32 +00:00
Carl Eastlund
87712b0dd2 Clarified the recursive behavior of datum->syntax on hash tables and prefab structs.
svn: r17936
2010-02-02 01:33:39 +00:00
Jon Rafkind
a1d5573613 move bindings to different modules
svn: r17934
2010-02-01 22:57:42 +00:00
Carl Eastlund
79f537d50c Updated the macro stepper to detect steppable languages via a "capability".
svn: r17932
2010-02-01 20:39:46 +00:00
Robby Findler
8aac682691 hierlist now has the scrollbar
svn: r17931
2010-02-01 19:52:05 +00:00
Jay McCarthy
2e4c8e102a pr10727
svn: r17930
2010-02-01 19:51:06 +00:00
Matthew Flatt
09ef762e3f add accept-tab-focus to editor-canvas%
svn: r17929
2010-02-01 19:30:59 +00:00
Robby Findler
102b03311e made the check syntax tests more drdr friendly
svn: r17928
2010-02-01 17:46:17 +00:00
Robby Findler
402886bc18 fixed the macro stepper so that it shows up in the new module language
svn: r17927
2010-02-01 17:09:22 +00:00
Robby Findler
f4cd110b1a another strategy for sizing the text in the languages dialog
svn: r17926
2010-02-01 16:47:43 +00:00
Matthias Felleisen
9664c79320 mouse leave/enter behavior was wrong; failure of SPC?
svn: r17925
2010-02-01 16:05:37 +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
Robby Findler
bf67e34e87 fixed up module language test suite for new language dialog, plus misc cleanups based on last release
svn: r17922
2010-02-01 15:18:28 +00:00
Robby Findler
9d34139659 use the basic-style method instead of the name of the basic style
svn: r17921
2010-02-01 15:15:22 +00:00
Casey Klein
db0ec3eb07 Special typesetting for metafunction `where' clauses in which the
right-hand side is a call to `variable-not-in' or `variables-not-in'

svn: r17920
2010-02-01 13:46:32 +00:00
Eli Barzilay
99bebecd75 Welcome to a new PLT day.
svn: r17919
2010-02-01 08:50:38 +00:00
Carl Eastlund
2e0cb8226e Replaced every "langauge" (note swapped vowels) with "language".
svn: r17918
2010-02-01 01:41:51 +00:00
Matthew Flatt
5433c57504 wrap each top-level form in a module with a prompt
svn: r17917
2010-01-31 17:04:55 +00:00
Matthew Flatt
e8c97a5102 more readable mandelbrot-unsafe; minor benchmark harness fixes
svn: r17915
2010-01-31 14:58:26 +00:00
Matthew Flatt
a5da3f327f use MrEd:default-font-size preference
svn: r17914
2010-01-31 14:55:07 +00:00
Robby Findler
6a3518e369 used the new support for selection-less hierlists in the language menu
svn: r17913
2010-01-31 13:32:48 +00:00
Robby Findler
540f43327d added a little more error checking
svn: r17912
2010-01-31 13:32:19 +00:00
Eli Barzilay
3a0518e6f8 Welcome to a new PLT day.
svn: r17911
2010-01-31 08:50:29 +00:00