Commit Graph

336 Commits

Author SHA1 Message Date
Matthew Flatt
da82fe2a2d eval and phases (4.0.1.2)
svn: r10452
2008-06-25 18:54:38 +00:00
Sam Tobin-Hochstadt
15eb016e25 Fix PR 9540
svn: r10448
2008-06-24 23:52:16 +00:00
Matthew Flatt
3f60a478ad use new 'serialized=?' to tighten setup scribble fixpoint
svn: r10428
2008-06-23 19:28:08 +00:00
Eli Barzilay
04b97ff977 Make promise.ss use #%kernel directly -- this way mzscheme does not
depend on scheme/base.

svn: r10424
2008-06-23 14:32:27 +00:00
Eli Barzilay
3619ab2062 * USe a thunk for caught values, not just the exception value, since
(as Mathew notes as a bug) any value can be raised
*  Actually use an applicable struct, so we can printout something
   sensible.  The current printout is:
     #<promise!exn!...exn-message...> for exceptions
     #<promise!(raise val)> for other values

svn: r10423
2008-06-23 13:57:18 +00:00
Eli Barzilay
1ffd3f5ba0 type (PR9535)
svn: r10419
2008-06-23 06:42:43 +00:00
Eli Barzilay
b7839a4ec3 removed redundant syntax hack
svn: r10417
2008-06-23 04:33:25 +00:00
Eli Barzilay
945dc376d2 * Removed `with-handlers*' that was causing a problem in some long
nested streams example (from Jos Koot).
* Replaced with `call-with-exception-handler' which is (intentionally)
  not tail-recursive, but it seems to work fine now.
* The `lazy' form is restricted to single-valued expressions only.

svn: r10416
2008-06-23 04:07:12 +00:00
Matthew Flatt
bba93038ed 'for' macro certification needs to propagate certs
svn: r10269
2008-06-15 16:03:14 +00:00
Eli Barzilay
f6c68334a6 use evaluator-message as a generic function-application-in-user-context tool
svn: r10255
2008-06-13 17:06:33 +00:00
Carl Eastlund
4baccff55a scheme/sandbox:
Updated get-output and get-error-output to function properly regardless of user
language.  Previously, it relied on #%app and #%datum behaving similarly to the
scheme language.

svn: r10251
2008-06-13 14:41:28 +00:00
Matthew Flatt
2b1aebca19 add missig path normalization for 'enter!' (PR 9491)
svn: r10237
2008-06-12 16:55:46 +00:00
Matthew Flatt
9956e095af add for-syntax #%datum export to scheme/runtime-path
svn: r10091
2008-06-02 15:11:29 +00:00
Matthew Flatt
69f4097020 fix 'gui-dynamic?' more
svn: r9983
2008-05-27 18:34:42 +00:00
Matthew Flatt
c7201b8982 fix 'gui-available?' (PR 9415)
svn: r9976
2008-05-27 12:43:35 +00:00
Matthew Flatt
d1628d6238 fix some phase issues in 'match' implementation
svn: r9963
2008-05-26 19:51:06 +00:00
Matthew Flatt
2b48cb0a4d fill in some guide sections
svn: r9871
2008-05-16 21:23:53 +00:00
Sam Tobin-Hochstadt
61a80e85fb Fix uses of make-Dummy.
Fix handling of seen vars in ...

svn: r9870
2008-05-16 19:56:07 +00:00
Matthew Flatt
26a36a9cbe add 'false?'
svn: r9849
2008-05-15 16:03:50 +00:00
Robby Findler
9f69672740 fixed bug from the mailing list
svn: r9830
2008-05-14 11:46:49 +00:00
Matthew Flatt
a932a75708 fix rename-in bug, and try to provide a better error message for attempting to use a run-time definition in a transformer expression
svn: r9819
2008-05-12 23:13:47 +00:00
Sam Tobin-Hochstadt
2bf93a2fa0 Add mlist patterns, and handle ...
svn: r9774
2008-05-09 19:47:28 +00:00
Matthew Flatt
fad08fcd84 more drscheme repairs and tests
svn: r9721
2008-05-07 16:31:20 +00:00
Matthew Flatt
860c41d749 drs bug and test-suite fixes
svn: r9709
2008-05-06 23:27:23 +00:00
Matthew Flatt
1dd30ca031 dup-{in,out}put-port and sandbox-error-output default
svn: r9617
2008-05-03 04:47:14 +00:00
Eli Barzilay
921ef6cfcb fixed regexp-match-peek-positions* and added tests
svn: r9611
2008-05-02 23:00:57 +00:00
Eli Barzilay
0e299c5bd2 fix regexp-match-positions* with input ports
svn: r9604
2008-05-02 21:04:24 +00:00
Matthew Flatt
52581d024b improve scribble memory use (a little bit)
svn: r9601
2008-05-02 19:48:57 +00:00
Eli Barzilay
a995ba1304 fix for regexp-match-positions* on input ports
svn: r9600
2008-05-02 18:09:58 +00:00
Eli Barzilay
1054f9cdea empty matches in regexp-X* makeover, part two: better code
svn: r9597
2008-05-02 17:21:04 +00:00
Eli Barzilay
26a180f458 empty matches in regexp-X* makeover, part one
svn: r9594
2008-05-02 17:18:52 +00:00
Robby Findler
baa9ed726a moved the surrogate library to scheme/ (out of mzlib/)
svn: r9554
2008-05-01 02:51:52 +00:00
Matthew Flatt
efa0f5f396 fix syntax-case bug
svn: r9553
2008-04-30 23:38:24 +00:00
Sam Tobin-Hochstadt
03f3ee3e81 Provide match-lambda**
svn: r9532
2008-04-29 03:53:51 +00:00
Robby Findler
e5fba85ed0 fixed a bug in check syntax and a bug in the contract system
svn: r9524
2008-04-28 22:12:21 +00:00
Matthew Flatt
f579d40b82 'must-update file mode; R6RS tests and bug fixes
svn: r9511
2008-04-28 16:32:50 +00:00
Eli Barzilay
2548f7ecbb provide string-join
svn: r9459
2008-04-24 16:26:50 +00:00
Matthew Flatt
1ee0298552 struct-copy
svn: r9456
2008-04-24 13:56:36 +00:00
Matthew Flatt
f4703d8ab6 fix double evaluation in in-range (PR 9315)
svn: r9452
2008-04-24 12:06:50 +00:00
Matthew Flatt
931d93ba2f Scribble support for redirecting external links and re-rooting corss-reference paths
svn: r9448
2008-04-24 02:37:47 +00:00
Eli Barzilay
4870d9830c slightly more readable code
svn: r9444
2008-04-23 23:25:39 +00:00
Eli Barzilay
b1024c8952 Added append-map' and filter-not'.
svn: r9433
2008-04-23 17:26:41 +00:00
Eli Barzilay
f19cdb4fe2 a little better comment on filter
svn: r9431
2008-04-23 17:06:42 +00:00
Eli Barzilay
13c5e3812d Added last-pair and tests
svn: r9422
2008-04-23 13:20:05 +00:00
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