Commit Graph

292 Commits

Author SHA1 Message Date
Eli Barzilay
bcde2e1424 added filter-map' and partition', with tests
--This line, and those below, will be ignored--

M    collects/scheme/list.ss
M    collects/tests/mzscheme/list.ss

svn: r9421
2008-04-23 12:53:47 +00:00
Eli Barzilay
5d4256921c remove local length? utility
svn: r9420
2008-04-23 11:48:06 +00:00
Matthew Flatt
e25e7a1098 keyword in methods and apply; procedure-reduce-keyword-arity
svn: r9396
2008-04-22 18:00:04 +00:00
Eli Barzilay
8e6b3e9ba0 Simplified remove-duplicates interface, adjusted tests.
svn: r9386
2008-04-21 19:46:11 +00:00
Matthew Flatt
a0f65ba33e dictionaries
svn: r9383
2008-04-21 17:26:35 +00:00
Eli Barzilay
9b0fc20d3e added a powerful remove-duplicates and tests
svn: r9373
2008-04-19 15:41:24 +00:00
Eli Barzilay
2736de7404 * move flatten' next to append*'
* document `add-between'

svn: r9369
2008-04-19 10:30:31 +00:00
Eli Barzilay
180dc08777 added add-between and string-join, no lists-join
svn: r9361
2008-04-18 14:00:41 +00:00
Eli Barzilay
0b7bdfe92c added scheme/string, include it in the scheme language, put string-append* in there, tested, documented
svn: r9356
2008-04-18 04:10:46 +00:00
Eli Barzilay
5ccfe300f7 better argument name
svn: r9354
2008-04-18 01:58:05 +00:00
Matthew Flatt
5aeaf7ea75 R6RS docs, other misc clean-up
svn: r9349
2008-04-17 21:29:07 +00:00
Matthew Flatt
28a3f3f0e7 r5rs and srfi docs and bindings
svn: r9336
2008-04-16 20:52:39 +00:00
Matthew Flatt
46b8b435ca export checked-struct-info?
svn: r9300
2008-04-14 19:20:58 +00:00
Matthew Flatt
9617dbbfd6 fix continuation prompt in scheme/load
svn: r9297
2008-04-14 16:39:43 +00:00
Matthew Flatt
9851d4aa0f refine namespace handling of scheme/load to that it works with both DrScheme and setting current-namespace within the program
svn: r9296
2008-04-14 16:11:22 +00:00
Matthew Flatt
d94b97b835 make scheme/load work better in DrScheme
svn: r9295
2008-04-14 15:54:20 +00:00
Matthew Flatt
febe8ce783 scheme/load
svn: r9294
2008-04-14 15:20:18 +00:00
Matthew Flatt
8036ddf5a1 remove euler from scheme/math
svn: r9290
2008-04-14 11:44:13 +00:00
Eli Barzilay
a4de7ca7c9 reformat, etc
svn: r9288
2008-04-14 05:17:09 +00:00
Matthew Flatt
b9d7824c8e more scribble rendering and doc details
svn: r9261
2008-04-11 19:09:26 +00:00
Sam Tobin-Hochstadt
13b7f8c506 Add checked-struct-info.
svn: r9227
2008-04-09 23:25:30 +00:00
Sam Tobin-Hochstadt
6a4414c82b Fix PR 9286.
svn: r9219
2008-04-09 13:21:46 +00:00
Matthew Flatt
cb3fdd8fc5 change real->decimal-string (PR 9285)
svn: r9210
2008-04-08 21:56:29 +00:00
Matthew Flatt
021d4d7527 new hash function names and ops (3.99.0.23)
svn: r9209
2008-04-08 21:42:38 +00:00
Eli Barzilay
26b283b953 fixed pr9285, added tests
svn: r9197
2008-04-08 12:33:53 +00:00
Sam Tobin-Hochstadt
ec502d4802 rename
svn: r9184
2008-04-07 21:42:15 +00:00
Eli Barzilay
7a29625659 lift handle-results, since matthew said that the compiler might not do so
svn: r9181
2008-04-07 19:55:54 +00:00
Eli Barzilay
f0547adffc fix force for dealing with (lazy 0), add a test suite (simple one for now)
svn: r9180
2008-04-07 19:33:48 +00:00
Sam Tobin-Hochstadt
f7ec875386 Add new `typechecker:called-in-tail-position' property.
svn: r9165
2008-04-04 17:33:55 +00:00
Matthew Flatt
307ca18d31 doc make-generic and add 'generic?'
svn: r9164
2008-04-04 12:13:19 +00:00
Matthew Flatt
f28726ab4d fix bytecode writing of prefabs, add prop:sequence
svn: r9149
2008-04-03 14:07:52 +00:00
Sam Tobin-Hochstadt
b5128a2874 Implement column reordering.
Fix ordering problems with non-linear or patterns.
Use `nest' in a few places.
Fix error message from match-expanders.

svn: r9141
2008-04-02 19:20:56 +00:00
Matthew Flatt
fb392dd331 adjust sort keyword arguments and docs
svn: r9131
2008-04-02 01:28:09 +00:00
Eli Barzilay
fcfaa3cc64 use sort.ss in kw.ss too
svn: r9129
2008-04-02 00:07:45 +00:00
Eli Barzilay
bfc990e3c5 Added #:key and #:cache-keys to `sort', documented and tested.
svn: r9128
2008-04-01 20:58:41 +00:00
Eli Barzilay
fac8cf7328 minor
svn: r9127
2008-04-01 20:37:55 +00:00
Sam Tobin-Hochstadt
1fd2e9b3fc Create renaming to avoid using the same identifier multiple times.
Delete dead code.

svn: r9122
2008-03-31 21:01:29 +00:00
Eli Barzilay
a4f70641b9 error message typo
svn: r9110
2008-03-29 15:45:51 +00:00
Matthew Flatt
61ea615004 optimizer inlining improvements, especially to ensure that single-use bindings are inlined
svn: r9094
2008-03-27 16:07:42 +00:00
Sam Tobin-Hochstadt
9084ac10e3 New match implementation:
- Delete old match code.
 - Create scheme/match collection.
 - Change scheme/match.ss to provide new implementation.
 - Change mzlib/match and mzlib/plt-match to refer to scheme/match/
 - Fix Typed Scheme require of private match code.

svn: r9091
2008-03-26 14:40:48 +00:00
Eli Barzilay
e7bb849899 add scheme/nest to the scheme language
svn: r9087
2008-03-25 18:27:18 +00:00
Sam Tobin-Hochstadt
ae4acf1d51 Remove old match implementation.
Fix typed-scheme to work w/ new match.
Factor out lots of common code.
Implement (mcons ..) patterns

svn: r9086
2008-03-25 18:26:39 +00:00
Eli Barzilay
8d08719ee6 added scheme/nest
svn: r9085
2008-03-25 18:09:54 +00:00
Eli Barzilay
6901fc1fd7 some minor cleanup
svn: r9078
2008-03-24 17:55:53 +00:00
Matthew Flatt
c75933cd40 fix 'enter!' and extension-implemented modules
svn: r9077
2008-03-24 14:04:33 +00:00
Matthew Flatt
c81eb6ede0 add in-lines and some doc clarifications
svn: r9072
2008-03-23 13:25:56 +00:00
Sam Tobin-Hochstadt
a37fe34a48 Factor out match expander code.
Improve error message.

svn: r9068
2008-03-22 17:10:09 +00:00
Sam Tobin-Hochstadt
63df5e13f7 add matchable?
svn: r9067
2008-03-22 17:07:59 +00:00
Sam Tobin-Hochstadt
eedaebefaf remove debugging printf
svn: r9060
2008-03-22 02:29:49 +00:00
Sam Tobin-Hochstadt
a3076b8648 certify in one more place
svn: r9058
2008-03-22 02:11:50 +00:00
Sam Tobin-Hochstadt
0ee6afc2a1 same stupid bug in the old syntax
svn: r9057
2008-03-22 01:48:19 +00:00
Sam Tobin-Hochstadt
c914aab4ea add orig-stx parameter
svn: r9056
2008-03-22 01:40:13 +00:00
Sam Tobin-Hochstadt
3552f7f73b handle empty structs
svn: r9055
2008-03-22 01:37:55 +00:00
Sam Tobin-Hochstadt
b7127dc9c7 Add new match implementation.
Does not yet work:
 - some errors about car of ()
 - some match-expander certification errors

svn: r9049
2008-03-21 23:54:58 +00:00
Eli Barzilay
fb8efd4816 added take+drop+append to scheme/list (problems with texpict providing drop too)
svn: r9045
2008-03-21 18:45:18 +00:00
Eli Barzilay
d88c6c476a * Better versions of curry/r and negate, doc improvements, tests
svn: r9043
2008-03-21 17:55:29 +00:00
Matthew Flatt
407e0bc2d9 fix serialization on prefabs, equal on cyclic hash tables
svn: r9020
2008-03-18 19:46:39 +00:00
Matthew Flatt
dba1ddc480 scribble/srcdoc experiment in net/gifwrite
svn: r9019
2008-03-18 18:19:25 +00:00
Eli Barzilay
d6cbe2b09f * New scheme/function module (added by mistake on the previous commit)
* Added it to scheme/main
* Documented it

svn: r9018
2008-03-18 14:37:04 +00:00
Eli Barzilay
d0b86a31d1 no need for the commented subtract-out, since it is swalloed by except-out now
svn: r9016
2008-03-18 13:40:25 +00:00
Matthew Flatt
3a763f3bcc generalized except-out
svn: r9015
2008-03-18 13:38:13 +00:00
Matthew Flatt
c58820e30d vyzo's thread mailboxes (3.99.0.19)
svn: r9010
2008-03-18 00:38:36 +00:00
Robby Findler
9ba432ab9c added the _ special case to ->d
svn: r8998
2008-03-17 04:01:39 +00:00
Matthew Flatt
ae75de476f fix phase of no-old-match-form
svn: r8972
2008-03-14 16:57:06 +00:00
Matthew Flatt
293ba025ba prefab structure types (3.99.0.18)
svn: r8967
2008-03-13 20:59:22 +00:00
Eli Barzilay
38e8b04be2 fixed error message
svn: r8963
2008-03-13 06:19:26 +00:00
Eli Barzilay
bb9671f27b remove subtract-out
svn: r8962
2008-03-13 04:16:02 +00:00
Eli Barzilay
bf3da735a4 subtract require/provide forms
svn: r8956
2008-03-12 07:14:57 +00:00
Matthew Flatt
9ecf9dfe4a fix some error-message reporting for mzscheme define-struct
svn: r8953
2008-03-11 21:14:40 +00:00
Eli Barzilay
c3e9f14441 split reqprov.ss to require.ss and provide.ss
svn: r8952
2008-03-11 21:12:10 +00:00
Eli Barzilay
9c0df7fc7c modspec-forms -> reqprov
svn: r8950
2008-03-11 15:22:20 +00:00
Eli Barzilay
3c29bbda9d * Moved the srfi-4 functionality back into the foreign library, so its
available from there instead of only from srfi/4
* Added scheme/modspec-forms with `matching-identifiers-in' for a
  generic regexp-based selection of identifiers
* Used this new form to get make srfi/4 reprovide the relevant stuff
  from foreign
* Did the same for srfi/66 (and added the missing renames etc to
  foreign)

svn: r8944
2008-03-11 13:06:29 +00:00
Eli Barzilay
330649b2d2 flatten and docs
svn: r8926
2008-03-08 06:58:12 +00:00
Matthew Flatt
f3d74fa4c8 R6RS fixes; fix for <, >, <=, and >= with +nan.0 and a bignum or rational; compile two-byte regexp patterns (common for hand-rolled case-insensitivity, as in the R6RS parser) to a more compact and efficient representation
svn: r8898
2008-03-06 04:56:47 +00:00
Matthew Flatt
944770a4d1 fix another(!) JIT bug related to the runstack pointer and GC --- this time when a jump to a native function has the wrong arity; more certificate-management shortcuts to avoid explosion of work for long expansion chains; changed scheme/base module-begin to not create long expansion chais in the first place
svn: r8880
2008-03-04 19:41:21 +00:00
Eli Barzilay
b76390a452 revise the way setup-plt crawls over the collection trees
svn: r8860
2008-03-03 22:04:28 +00:00
Eli Barzilay
72f82a9de4 improve error message
svn: r8848
2008-03-02 06:30:54 +00:00
Eli Barzilay
4c63166f16 fix error message
svn: r8847
2008-03-02 06:28:47 +00:00
Sam Tobin-Hochstadt
0149333d4d Provide list-immutable' in mzscheme' compatibility module.
svn: r8842
2008-03-01 23:10:48 +00:00
Sam Tobin-Hochstadt
bb5fe5e47c Provide find-method/who and do-make-object, for Typed Scheme.
svn: r8841
2008-03-01 23:09:23 +00:00
Matthew Flatt
8ffe707b76 more r6rs work
svn: r8825
2008-02-29 02:37:00 +00:00
Matthew Flatt
682f356b45 3.99.0.14, define-require-syntax, define-provide-syntax, fix extreme corner case for identifier binding (a macro-introduced identifier that is unmarked and unrenamed)
svn: r8822
2008-02-28 17:15:54 +00:00
Matthew Flatt
5a646bfe18 r6rs io
svn: r8807
2008-02-26 22:15:02 +00:00
Matthew Flatt
743db7529d r6rs io work; compiler tweaks
svn: r8805
2008-02-26 13:54:54 +00:00
Matthew Flatt
8311c8f9e4 Eli's repaired and specialized sort, fix in 'for/fold' binding, generalized integers-bytes functions, and some r6rs work
svn: r8798
2008-02-25 14:42:32 +00:00
Eli Barzilay
bb34f747b6 make all files terminate with a newline
svn: r8786
2008-02-24 21:27:36 +00:00
Eli Barzilay
31a9f69df5 typo
svn: r8784
2008-02-24 16:18:17 +00:00
Eli Barzilay
2e418f3f46 fixed sort to be stable, improved a little, properly test stability
svn: r8783
2008-02-24 16:04:17 +00:00
Eli Barzilay
1e002f2e5b fix #:help-labels
svn: r8781
2008-02-24 08:32:22 +00:00
Eli Barzilay
b1a08edd5a use new require specs in many places
svn: r8774
2008-02-23 09:42:03 +00:00
Matthew Flatt
3ed0c89b8b fix expansion of lone 'lambda' in a module body
svn: r8758
2008-02-21 21:59:57 +00:00
Matthew Flatt
5427d8c546 fix enter!
svn: r8757
2008-02-21 18:45:23 +00:00
Matthew Flatt
f39b12a555 doc repairs and r6rs repairs
svn: r8754
2008-02-21 14:49:58 +00:00
Matthew Flatt
b953b448ba expose struct:struct-info
svn: r8753
2008-02-21 13:30:25 +00:00
Robby Findler
9692473c62 changed union to or/c
svn: r8747
2008-02-20 23:25:13 +00:00
Robby Findler
f0efed2a3e PR 9200
svn: r8746
2008-02-20 22:39:07 +00:00
Robby Findler
79f4b8ff30 removed union from scheme/contract
svn: r8745
2008-02-20 21:18:48 +00:00
Matthew Flatt
ba63bd6f95 3.99.0.13: generalize require and provide to work with arbitrary phases
svn: r8742
2008-02-20 14:17:37 +00:00
Eli Barzilay
8653264868 cleaned up the interface a little
svn: r8724
2008-02-19 15:20:37 +00:00
Eli Barzilay
3a03f08900 fix arity error message
svn: r8714
2008-02-19 07:36:49 +00:00
Matthew Flatt
b87d9a986e support documentation for bindings from a hypothetical module, as opposed to a specific module
svn: r8663
2008-02-14 16:59:26 +00:00
Eli Barzilay
699c40643d * Changed setup-plt to compile collections if they have an "info.ss"
file.  (That is, it does not require the file to have a `name'
  entry.)

* The name shown when setup works is the directory name, followed by
  the `name' field from the info file when specified.

* This means that many `name's are no longer needed, so I'm removing
  them.  To see if you need a `name' entry, consider that the name
  will be shown like this:
    ... foo (<your name here>)
  This means that if the name is the same as the directory name, then
  there is no point in having it.  I also removed cases where the name
  differed only in its capitalization for collections where the case
  is obvious.

* Also, for subcollections, the name should clarify the name of the
  subcollection in context.  For example "Acknowledgments" explains
  what scribbling/acks is, but there's no need to add the context name
  as in "Scribblings: Acknowledgments".

* There may also be a point in keeping names for other uses.  One such
  example was in games, where the name field was used in the PLT Games
  application.  (This was changed to default on the directory name, so
  it is no longer needed in most games.)  Another example is in planet
  packages.

svn: r8629
2008-02-12 10:33:01 +00:00
Matthew Flatt
b03e7426eb finish mzlib docs, except for contracts
svn: r8623
2008-02-11 21:37:03 +00:00
Eli Barzilay
82d0dd13f2 handle #f for sleep
svn: r8619
2008-02-11 14:20:54 +00:00
Matthew Flatt
6f057bd68c fix syntax-local-expand/capture-lifts
svn: r8614
2008-02-10 15:52:46 +00:00
Eli Barzilay
ae087c18b6 fixed error messages
svn: r8611
2008-02-10 06:19:58 +00:00
Matthew Flatt
1959c56743 doc and test repairs
svn: r8597
2008-02-09 13:01:39 +00:00
Eli Barzilay
8a17372db3 Make regexp-split and relatives work with empty matches like other
regexp packages (eg, Dorai's pregexp and Emacs).

svn: r8556
2008-02-06 19:19:44 +00:00
Eli Barzilay
6436441ebd minor things
svn: r8554
2008-02-06 11:35:01 +00:00
Eli Barzilay
ab64d26a21 yet further improvements
svn: r8553
2008-02-06 10:14:24 +00:00
Eli Barzilay
2ae21adbff use tail-calls for regexp iterations
svn: r8549
2008-02-06 02:49:19 +00:00
Matthew Flatt
8bac4b1d28 start scribbling mzlib (about half done)
svn: r8546
2008-02-05 22:07:35 +00:00
Eli Barzilay
f3bbc44451 Major cleanup, switch regexp-fn to a macro to clarify things
svn: r8545
2008-02-05 22:02:34 +00:00
Matthew Flatt
794e6c8a39 add #:use-sources to Scribble module declarations, so that scheme/base and mzscheme can better share documentation; finish documenting legacy mzscheme bindings
svn: r8538
2008-02-05 16:33:26 +00:00
Eli Barzilay
3c72e71e24 switched info.ss files to #lang
svn: r8532
2008-02-04 23:00:35 +00:00
Matthew Flatt
096ec546a6 fix struct-out; add -I configuration option
svn: r8530
2008-02-04 21:51:39 +00:00
Matthew Flatt
4c23a44fd5 fix module->namespace problem, add link to bug report page, fix tests
svn: r8470
2008-01-30 00:21:24 +00:00
Eli Barzilay
dbd27dafc6 * Added send-url/file that consumes a path and adds the file://, use
that in places that show docs.

* Made send-url quote characters that are possibly dangerous for
  subprocesses (good uses should call it wil already quoted urls).
  Also a keyword argument that can disable this, if someone really
  wants to.

* IE7 bug workaround finally working (but will need to switch from
  regedit to mred, to avoid vista warning).

svn: r8467
2008-01-29 21:38:27 +00:00
Matthew Flatt
17d717a8ba scheme/bool and scheme/local
svn: r8394
2008-01-23 18:11:02 +00:00
Matthew Flatt
b2dbe63ed1 small doc fixes, plus change to syntax pattern matching to allow null as a dotted match after ellipses
svn: r8384
2008-01-23 01:35:26 +00:00
Robby Findler
ccceb3368a fixed PR 9155
svn: r8368
2008-01-19 18:00:16 +00:00
Eli Barzilay
cd239fc23c minor code improvements, added ninth and tenth
svn: r8364
2008-01-18 16:04:43 +00:00
Matthew Flatt
63c5d8a7cb doc improvements: enter! and 'more'
svn: r8348
2008-01-16 14:09:59 +00:00
Matthew Flatt
b014545c7a added 'more: systems' doc
svn: r8341
2008-01-16 00:21:19 +00:00
Matthew Flatt
8b16cee613 start mzc scribbling
svn: r8334
2008-01-15 13:09:40 +00:00
John Clements
6267a19122 added mappend\!
svn: r8326
2008-01-14 23:07:24 +00:00
Matthew Flatt
05434ec54d change path->main-collects-relative, and change output directory of start document
svn: r8301
2008-01-11 19:54:38 +00:00
Matthew Flatt
2d08c17725 fix bug in deserializer; also change scribble eval to not use sandbox module mode
svn: r8280
2008-01-10 19:47:13 +00:00
Matthew Flatt
6487debfee keep props in include
svn: r8267
2008-01-08 23:49:35 +00:00
Matthew Flatt
6352736822 fix include/reader
svn: r8265
2008-01-08 22:16:01 +00:00
Robby Findler
a7f300543e improved keyword error messages a little bit
svn: r8240
2008-01-07 03:41:47 +00:00
Matthew Flatt
f3cb86dc1a sandbox Scribble evaluations; fix rational exact->inexact loss of precision
svn: r8238
2008-01-06 16:54:34 +00:00
Robby Findler
cda0888ab9 renamed string/len to string-len/c
svn: r8237
2008-01-06 15:53:50 +00:00
Matthew Flatt
7fc41024c0 3.99.0.9: binding links in docs use nominal import sources
svn: r8196
2008-01-03 19:07:02 +00:00
Robby Findler
3cf6ed4673 mostly finished the contract library changes
svn: r8195
2008-01-03 18:10:43 +00:00
Robby Findler
e7b5653dd6 finished case->
svn: r8178
2008-01-02 01:24:55 +00:00
Robby Findler
90de53d2b2 finished ->d
svn: r8166
2007-12-30 23:36:58 +00:00
Matthew Flatt
b9cc763355 scheme/runtime-path
svn: r8153
2007-12-29 14:18:15 +00:00
Matthew Flatt
1d8b21f53b disallow empty application; rename regexp-match/fail-without-reading to regexp-try-match
svn: r8152
2007-12-29 13:51:32 +00:00
Matthew Flatt
92ac61e806 scheme/mpair
svn: r8151
2007-12-29 12:30:25 +00:00
Matthew Flatt
d2aa4f610b re-fix error when keywords missing in app; fix defn to allow non-keyword args withotu default after keyword args
svn: r8140
2007-12-27 16:49:27 +00:00
Eli Barzilay
c719f1c506 newline after not-found message
svn: r8138
2007-12-27 16:32:48 +00:00
Matthew Flatt
53bf8bae8e 3.99.0.7: add prop:equal+hash
svn: r8137
2007-12-27 16:19:35 +00:00
Matthew Flatt
5c76cb507e finish mz docs
svn: r8123
2007-12-26 02:58:13 +00:00
Eli Barzilay
e3f8d7e74b better code organization
svn: r8116
2007-12-24 12:24:46 +00:00
Eli Barzilay
9ba922ff1c reformatting
svn: r8114
2007-12-24 11:29:33 +00:00
Matthew Flatt
396dd54b06 call-with-exception-handler change, plus some configure/Makefile changes that didn't help fix the built-on-10.5-for-10.4 problem but are still healthier in the long run
svn: r8102
2007-12-22 12:41:48 +00:00
Robby Findler
342eb86c10 finished the new ->*
svn: r8086
2007-12-20 20:35:58 +00:00
Matthew Flatt
d794bde875 liberalize un{quote,syntax}-spliciing to allow a non-list at the end of an enclosing list
svn: r8083
2007-12-20 14:00:15 +00:00
Matthew Flatt
6f45daa5f4 fix #%app bug when it starts with a keyword; PR 9122
svn: r8077
2007-12-20 01:45:35 +00:00