Matthew Flatt
0cccedabb4
export Scheme-implemented ormap (for 1 and 2 lists), which was accidentally unexported before
...
svn: r15471
2009-07-17 11:08:39 +00:00
Matthew Flatt
ba87f38f72
improve checker for optional keywords
...
svn: r15432
2009-07-11 15:23:07 +00:00
Matthew Flatt
2b5f12b6fa
fix broken 'case' improvement!
...
svn: r15429
2009-07-11 04:04:19 +00:00
Matthew Flatt
b2e39baa26
improve expansion of 'case' for a clause with 2 or 3 values
...
svn: r15428
2009-07-11 04:03:20 +00:00
Matthew Flatt
ab1db74ecc
more keyword-argument performance improvements, including general fast path for applying simple applicable-struct wrappers over plain procedures
...
svn: r15403
2009-07-08 13:57:16 +00:00
Eli Barzilay
a70bf64fd9
Newlines at EOFs
...
svn: r15380
2009-07-04 02:28:31 +00:00
Matthew Flatt
6d8c6e4f09
revise keyword implementation to reduce overhead
...
svn: r15368
2009-07-03 03:10:25 +00:00
Robby Findler
8fbc4f86aa
svn: r15364
2009-07-02 16:21:40 +00:00
Eli Barzilay
c072d23baf
reformat, etc
...
svn: r15361
2009-07-02 03:27:19 +00:00
Robby Findler
2b5e836b74
fixed a bug mentioned on the mailing list
...
svn: r15352
2009-07-01 14:02:55 +00:00
Jay McCarthy
3141c3736f
Adding struct* to scheme/match
...
svn: r15255
2009-06-24 19:36:26 +00:00
Matthew Flatt
7f019819e0
allow empty splicing-syntax-parameterize body in a defn context (PR 10311)
...
svn: r15251
2009-06-24 13:17:17 +00:00
Matthew Flatt
8e5993f99f
fix serialization problems
...
svn: r15241
2009-06-23 12:07:54 +00:00
Matthew Flatt
36f3ed4465
expose and support unreadable symbols, which are generated during expansion
...
svn: r15239
2009-06-23 00:17:45 +00:00
Robby Findler
ed4f066bb6
svn: r15213
2009-06-19 14:57:47 +00:00
Robby Findler
ec44ee7df1
added hash/c
...
svn: r15210
2009-06-18 21:31:33 +00:00
Eli Barzilay
66c855c2d3
Switch language readers to #lang s-exp
...
svn: r15188
2009-06-16 17:13:51 +00:00
Eli Barzilay
233df48709
Fixed module-specs->non-lib-paths which was very broken in several different ways (PR10305)
...
svn: r15180
2009-06-15 21:44:54 +00:00
Eli Barzilay
5f7e052469
removed old unused argument
...
svn: r15179
2009-06-15 20:43:33 +00:00
Matthew Flatt
62325eb7cf
fix bugs related to changes in keyword-argument error messages
...
svn: r15098
2009-06-05 21:45:05 +00:00
Matthew Flatt
ae7dab88d3
change expansion of application with keyword arguments to use quoted lists instead of lifting
...
svn: r15083
2009-06-04 21:44:20 +00:00
Matthew Flatt
118d0e7a3c
adjust error messages for keyword-related function-call problems
...
svn: r15068
2009-06-03 19:19:48 +00:00
Matthew Flatt
395301a1c6
scheme/gui/init reexports scheme/init
...
svn: r15064
2009-06-03 11:56:36 +00:00
Matthew Flatt
43a3a326b7
hash quasiquote on hash tables (PR 10266) (merge to 4.2)
...
svn: r15003
2009-05-28 13:02:42 +00:00
Matthew Flatt
de0fc2e745
fix syntax patterns on prefabs (PR 10268) (merge to 4.2)
...
svn: r15001
2009-05-28 03:01:45 +00:00
Matthew Flatt
070ed03d90
fix custodian problem with register-finalizer
...
svn: r14988
2009-05-26 20:01:54 +00:00
Sam Tobin-Hochstadt
1b2013dd73
Fix error reporting when first clause is not a list.
...
Ok for 4.2.
svn: r14965
2009-05-23 23:51:52 +00:00
Eli Barzilay
b9a7dc01b8
scheme' is now srfi/1-free. (All
delete-duplicate' requires were
...
not necessary.)
svn: r14956
2009-05-23 08:42:17 +00:00
Matthew Flatt
70859f0d0b
identifier-prune-lexical-context (4.2.0.2)
...
svn: r14850
2009-05-17 12:31:51 +00:00
Matthew Flatt
440a60c8ad
fix make-custom-weak-hash (PR 10232)
...
svn: r14762
2009-05-09 13:37:28 +00:00
Matthew Flatt
57ff3c2486
fix foldr/foldr argument checking (PR 10215)
...
svn: r14706
2009-05-04 02:20:06 +00:00
Matthew Flatt
16e483033c
fix define after define* in package; doc repairs
...
svn: r14701
2009-05-03 23:49:22 +00:00
Eli Barzilay
db90b44b0d
make const accept arbitrary keywords
...
svn: r14700
2009-05-03 22:08:57 +00:00
Eli Barzilay
a1d943146b
added a nullary case to compose
...
svn: r14697
2009-05-03 20:41:37 +00:00
Eli Barzilay
3ca6ac2175
added stupid make-list and stupid const
...
svn: r14693
2009-05-03 16:17:48 +00:00
Matthew Flatt
2b8b10dd40
fix problem with package, define*, and macro-introduced identifiers
...
svn: r14671
2009-04-30 23:57:45 +00:00
Robby Findler
6d08558ab7
fixed a bug in my earlier bugfix (also PR 10221)
...
svn: r14662
2009-04-29 21:08:01 +00:00
Matthew Flatt
224f9fa3a7
fix bug in tracking paren shapes; fix Scribble binding search code; add syntax/template library
...
svn: r14661
2009-04-29 20:31:07 +00:00
Robby Findler
de6c1a524d
PR 10219
...
svn: r14654
2009-04-29 16:38:31 +00:00
Robby Findler
87c9aba9e0
added a little optimization to provide/contract
...
svn: r14646
2009-04-29 03:48:45 +00:00
Matthew Flatt
f51f8c8b7f
avoid generating unnecessary struct-accessor and -mutator names
...
svn: r14566
2009-04-20 13:14:40 +00:00
Eli Barzilay
3b39cfc4b8
fixed two uses of raise-type-error (PR 10208)
...
svn: r14555
2009-04-18 18:15:33 +00:00
Matthew Flatt
4b3626c156
fix inverted argument default for editor<%> read-from-file method; better Check Sytax results on packages; added syntax/flatten-begin library
...
svn: r14548
2009-04-17 22:50:19 +00:00
Matthew Flatt
7d61c67bab
fix handling of define*-values between a syntax binding and a syntax-local-value
...
svn: r14541
2009-04-17 12:29:04 +00:00
Matthew Flatt
09320cea1c
tiny object-instantiation perf. tweak
...
svn: r14534
2009-04-16 21:24:42 +00:00
Matthew Flatt
709ad23400
performance improvements: class local-field access uses accessor with index built in (so the index is checked once); JIT partially inlines struct-field mutation
...
svn: r14530
2009-04-16 19:01:20 +00:00
Stevie Strickland
b7063fc563
Fix error message in define/contract.
...
svn: r14522
2009-04-15 15:43:04 +00:00
Matthew Flatt
0be3dca240
check-syntax binding for open-package's package id
...
svn: r14498
2009-04-13 14:52:14 +00:00
Matthew Flatt
5d0416aec9
David's build-list
...
svn: r14472
2009-04-09 00:58:13 +00:00
Eli Barzilay
4aab5e4eab
use void for true predicates, makes things run faster
...
svn: r14451
2009-04-08 00:02:57 +00:00
Matthew Flatt
de1e2fac23
scheme/package simplifications from Chongkai
...
svn: r14448
2009-04-07 20:36:08 +00:00
Matthew Flatt
1d26e97a35
Scheme-implemented editor classes; on-demand instantiation of module phases
...
svn: r14445
2009-04-07 17:12:22 +00:00
Eli Barzilay
76c2d9eceb
rehack the argument formatting hack
...
svn: r14436
2009-04-06 12:18:42 +00:00
Eli Barzilay
2cc94cbf02
reformat some
...
svn: r14435
2009-04-06 11:17:15 +00:00
Eli Barzilay
06636c1813
added in-sequences and in-cycle
...
svn: r14424
2009-04-05 08:29:17 +00:00
Eli Barzilay
9af9210aa2
added hash-ref! and hash-has-key?
...
svn: r14423
2009-04-05 04:35:12 +00:00
Eli Barzilay
cb2c85956b
removed unnecessary hash-ref passing in implementation of hash-update
...
svn: r14421
2009-04-05 00:24:47 +00:00
Eli Barzilay
daa582291c
typo
...
svn: r14410
2009-04-03 00:26:59 +00:00
Ryan Culpepper
eb349682c3
scheme/signature: fixed to recognize scheme require forms
...
svn: r14396
2009-04-01 03:14:34 +00:00
Robby Findler
2c85b7a795
improved performance of the teaching languages
...
svn: r14394
2009-04-01 00:15:20 +00:00
Matthew Flatt
4ce30226fe
change the way that hidden package ids are generated
...
svn: r14277
2009-03-25 16:51:13 +00:00
Sam Tobin-Hochstadt
e0a95e9e22
Add `tanh' with documentation.
...
svn: r14250
2009-03-24 17:48:11 +00:00
Sam Tobin-Hochstadt
40b4731106
Expand (require A ...) into (begin (require A) ...)
...
- docs (including discussion of require scoping)
- tests
svn: r14232
2009-03-23 14:13:10 +00:00
Matthew Flatt
a61e7b67f9
fix more break-progaration problems in scheme/sandbox (where recent changes were not quite right)
...
svn: r14219
2009-03-22 16:26:01 +00:00
Eli Barzilay
18fd48af97
Added `count'.
...
svn: r14210
2009-03-22 02:53:27 +00:00
Matthew Flatt
7dc8e077ed
add 'not-provide-all-defined and 'nonimal-id suport for rename transformers; fix scheme/foreign and foreign docs to use it
...
svn: r14195
2009-03-20 16:59:28 +00:00
Matthew Flatt
2109cec2f4
free-id=? propagation through module exports; add 'not-free-identifier=? syntax property to disable free-id=? propagation; add prop:rename-transformer and prop:set-transformer; fix scheme/local so that local syntax bindings are visible to later definitions (v4.1.5.3)
...
svn: r14191
2009-03-19 20:22:18 +00:00
Ryan Culpepper
d154493077
scheme/splicing: added splicing variants of local and letrec-syntaxes+values
...
svn: r14188
2009-03-19 13:45:45 +00:00
Matthew Flatt
154b73755a
sandbox break propagation
...
svn: r14182
2009-03-19 12:31:33 +00:00
Matthew Flatt
e8cbe7ff81
splicing-let, etc.
...
svn: r14165
2009-03-17 23:09:38 +00:00
Matthew Flatt
ee084ad7ff
adjust special scheme/class keywords to effectively declare themselves as expression forms (PR 10135): merge to 4.1.5
...
svn: r14137
2009-03-17 00:45:29 +00:00
Robby Findler
2556c61f9d
PR 10078 -- NOT for inclusion in the release
...
svn: r14122
2009-03-16 12:06:17 +00:00
Sam Tobin-Hochstadt
b6e340d2c9
Finally the correct fix
...
svn: r14039
2009-03-10 21:25:46 +00:00
Sam Tobin-Hochstadt
37bd154af5
revert broken change
...
svn: r14037
2009-03-10 21:12:50 +00:00
Sam Tobin-Hochstadt
56a3867644
Fix PR 10119.
...
Give better error messages from `match*' when patterns or expressions are not lists.
svn: r14036
2009-03-10 21:06:43 +00:00
Matthew Flatt
13b2bc3363
adjust define*-{values,syntaxes} to avoid certificate problems
...
svn: r14024
2009-03-09 17:19:21 +00:00
Matthew Flatt
44e7744646
fix package so that syntax-local-value works after define*
...
svn: r14021
2009-03-09 13:24:34 +00:00
Stevie Strickland
a3035a76a8
Got the struct:x name built, but forgot just the name x for the static info,
...
even though I had changed with-contract to detect (uncontracted) exports of
syntax.
svn: r14004
2009-03-07 16:48:27 +00:00
Eli Barzilay
56bb4539d0
fix error message
...
svn: r13906
2009-03-03 02:41:00 +00:00
Matthew Flatt
ff0b532864
adjust syntax/loc and some docs
...
svn: r13899
2009-03-02 22:24:25 +00:00
Matthew Flatt
f0473137e6
fix and document syntax/strip-context
...
svn: r13847
2009-02-26 13:19:25 +00:00
Eli Barzilay
97b3e6ba96
* Wrap a `#%top-interaction' around evaluations. No way to configure
...
or disable it yet.
* Instantiate scheme/class into teaching language sandboxes, to make
it possible to use the test engine (still no way to report errors
yet).
* Some minor formatting and renames
svn: r13836
2009-02-25 17:13:28 +00:00
Stevie Strickland
3c0e17d963
Add to the error message for -> in the case of optional arguments.
...
svn: r13803
2009-02-23 18:49:29 +00:00
Stevie Strickland
93d6a5fc7c
* Just use new marks instead of name mangling for the ctc-ids
...
* Set the 'inferred-name property appropriately.
svn: r13802
2009-02-23 14:36:28 +00:00
Stevie Strickland
8a6804c525
Need to use the srcinfo for the marked identifiers, not the unmarked ones.
...
If this is wrong, then we need to do the first-order checks after creating
the set! transformers.
svn: r13781
2009-02-21 19:03:49 +00:00
Stevie Strickland
b2c6dd5b9e
This should have been a reference to the already verified contract.
...
svn: r13780
2009-02-21 18:59:25 +00:00
Matthew Flatt
24e4fd407b
chat-noir literate small repairs
...
svn: r13765
2009-02-21 13:30:22 +00:00
Stevie Strickland
7e1ea98876
Pull back Robby's allowance of all struct options just a bit, plus handle
...
the ones we do allow natively.
svn: r13727
2009-02-18 21:14:50 +00:00
Robby Findler
cf856a33bf
forward keywords
...
svn: r13725
2009-02-18 13:11:08 +00:00
Stevie Strickland
7e8816ce0f
* Add initial version of define-struct/contract
...
* Allow uncontracted exports of syntax from a with-contract form.
svn: r13717
2009-02-18 02:25:45 +00:00
Stevie Strickland
770aab6700
Move first-order checks for free-var ctcs to before the body of the
...
with-contract expansion.
svn: r13713
2009-02-17 23:38:46 +00:00
Stevie Strickland
3ff2184a38
Add the first-order free variable contract checks I mentioned earlier.
...
svn: r13707
2009-02-17 20:50:56 +00:00
Stevie Strickland
d18a56a956
Okay, no infinite syntax unrolling, please.
...
svn: r13705
2009-02-17 20:32:04 +00:00
Stevie Strickland
cf916f51fa
Forgot to add rename-transformers for unprotected ids.
...
svn: r13704
2009-02-17 19:58:26 +00:00
Stevie Strickland
999d9357ab
* Fix it so we say definition or function in define/contract appropriately
...
again.
* Fix horribly complicated and ridiculous version of with-contract with
a more streamlined, and more importantly, correct version.
svn: r13703
2009-02-17 19:31:57 +00:00
Stevie Strickland
64a68db15d
Initial attempt at free var contracts. Needs a little more work, but might
...
handle Robby's use cases.
svn: r13700
2009-02-17 18:18:53 +00:00
Matthew Flatt
9927b0b576
changed htdp languages to allow identifier module paths; scribble improvements to latex back-end; added definterface
...
svn: r13681
2009-02-16 22:04:51 +00:00
Stevie Strickland
c6b92782e2
Rename cstruct to struct/ctc, to avoid confusion with cstruct from the ffi.
...
svn: r13661
2009-02-16 14:50:59 +00:00
Stevie Strickland
340035bef7
Adding cstruct, which is like the struct signature form but with contracts.
...
svn: r13647
2009-02-16 02:51:12 +00:00
Stevie Strickland
10b89445c6
Do a little better here, including using id->contract-src-info instead of
...
just the identifier.
svn: r13631
2009-02-15 23:08:56 +00:00
Stevie Strickland
1943083cf9
Fix nested with-contracts by checking explicitly for ssps. Apparently
...
painting the bindings causes the ssp to later fail when you try to access
the parameter. Not sure if this is a bug or not, will talk to Matthew.
svn: r13621
2009-02-15 21:59:22 +00:00
Robby Findler
435adfea0a
PR 10073
...
svn: r13606
2009-02-15 14:44:12 +00:00
Robby Findler
eed5f52878
PR 10073
...
svn: r13595
2009-02-15 02:49:35 +00:00
Matthew Flatt
7b11c290f5
qq fixes, so that (quasiquote #(unquote lst)) is a syntax error
...
svn: r13517
2009-02-11 15:01:04 +00:00
Matthew Flatt
767766521c
infix for literal prefab structs, quasiquote unquoting in value positions of hash-table literals, and related changes (v4.1.4.3)
...
svn: r13504
2009-02-09 15:27:51 +00:00
Matthew Flatt
e5756667d6
use PDF-based picts in the Latex build of the Quick tutorial; in general, change a .pdf image extension to .png for HTML output; add package-original-identifiers and fix package-exporte-identifiers
...
svn: r13432
2009-02-04 21:03:28 +00:00
Eli Barzilay
a2537d7dc9
second attempt at forbidding self-calls, with a long explanation why its forbidden, which is actually a sketch for how to make it work...
...
svn: r13376
2009-02-03 13:29:33 +00:00
Matthew Flatt
3d04e81fa0
fix arity error for method with optional arguments
...
svn: r13375
2009-02-03 13:13:53 +00:00
Matthew Flatt
dd67fa3cfb
disable sandbox nested-evaluator check
...
svn: r13349
2009-02-02 13:10:25 +00:00
Eli Barzilay
39e07d0843
forbid nested evaluator calls
...
svn: r13338
2009-01-31 19:44:20 +00:00
Sam Tobin-Hochstadt
5baa4390d3
Fix handling of (or) in match.
...
svn: r13295
2009-01-27 19:57:59 +00:00
Matthew Flatt
5e2dfcbac4
define-runtime-module-path
...
svn: r13283
2009-01-26 00:32:26 +00:00
Stevie Strickland
72d551082d
If we're using known-good-contract here, we won't always have an identifier
...
for the contract, so use the contract in that case. Also rename to
contract-stx in make-with-contract-transformer so its name isn't misleading.
svn: r13269
2009-01-23 20:34:59 +00:00
Matthew Flatt
db12513b65
fix #:all-defined for 'define-package' by adjusting 'identifier-remove-from-definition-context'; add for-syntax 'package?' and 'package-export-identifiers'; adjust Scribble to find definitions of phase-1 exports
...
svn: r13253
2009-01-21 20:00:55 +00:00
Stevie Strickland
ffa59b4548
Fix with-contract so that it expands slowly into a series of begins instead
...
of erroneously attempting to head expand all the expressions before it does
any work.
Remove an extra verify-contract call in define/contract while we're at it.
svn: r13198
2009-01-18 05:21:29 +00:00
Stevie Strickland
16700ed8fc
Now that I know what's going on, we no longer have to shift all the
...
generated defines towards the bottom (which didn't help anyway).
Notice how marker-f is now defined -- that's the solution Matthew presented
to me.
svn: r13196
2009-01-18 05:00:43 +00:00
Stevie Strickland
9142823419
Forgot to remove a paren from my quick edit on the command line there.
...
svn: r13190
2009-01-17 19:49:13 +00:00
Stevie Strickland
0401130784
Here, let's store this change I was working on to fix up the expansion of
...
with-contract (since I can't head-expand-all like I was erroneously thinking).
svn: r13189
2009-01-17 19:44:28 +00:00
Matthew Flatt
c33a201c43
fix splicing-syntax-parameterize with begin (patch from Stevie) --- should be merged to 4.1.4
...
svn: r13187
2009-01-17 12:27:06 +00:00
Stevie Strickland
768117b201
Sync to trunk in preparation of merging (though unit-contracts will go first).
...
svn: r13171
2009-01-16 16:59:20 +00:00
Eli Barzilay
c0bdc22085
bleh
...
svn: r13169
2009-01-16 16:36:51 +00:00
Eli Barzilay
c5f8c43dbf
better code order
...
svn: r13168
2009-01-16 16:29:53 +00:00
Eli Barzilay
99592959b8
fix display/write swap, use ~s for exn-messages
...
svn: r13161
2009-01-16 05:49:16 +00:00
Eli Barzilay
a76cdc248f
added promise-forced? and promise-running?
...
svn: r13160
2009-01-16 05:46:07 +00:00
Stevie Strickland
6672638df1
Syncing up.
...
svn: r13154
2009-01-15 17:57:25 +00:00
Matthew Flatt
6aea96cb5c
improve name of class field accessors/mutators
...
svn: r13150
2009-01-15 13:49:04 +00:00
Stevie Strickland
f72060a72b
Yep, another sync.
...
svn: r13146
2009-01-15 09:15:20 +00:00
Stevie Strickland
8b5b007a51
We want to cover the marked version of the identifier (which has the proper
...
value), not the "regular" version that's now a transformer to a contracted
version of the marked identifier (and thus double-contracting here).
svn: r13145
2009-01-15 09:11:50 +00:00
Eli Barzilay
873fe865cd
another tweak to the error message
...
svn: r13139
2009-01-15 03:24:04 +00:00
Stevie Strickland
ea3879fd8f
Syncing again, whee.
...
svn: r13136
2009-01-15 02:35:34 +00:00
Eli Barzilay
3418b1404e
plural
...
svn: r13131
2009-01-14 22:58:06 +00:00
Eli Barzilay
559363bc2b
remove #:from from error message, a little clearer code
...
svn: r13130
2009-01-14 22:57:52 +00:00
Matthew Flatt
9e341c4e0d
correct syntax-error message for 'help'
...
svn: r13129
2009-01-14 22:52:06 +00:00
Eli Barzilay
62ed5ba3ad
make it require one or more strings, just in case
...
svn: r13127
2009-01-14 22:39:17 +00:00
Eli Barzilay
ac5dcae9e6
make (help "foo") run a search for "foo"
...
svn: r13126
2009-01-14 22:35:39 +00:00
Stevie Strickland
8ef9977f57
Change contract error reporting back to how it was (at least how it is on
...
unit-contracts, which avoids the spacing issue), and just change the blame
notation so that we can still report the region/definition stuff.
svn: r13122
2009-01-14 21:21:59 +00:00
Stevie Strickland
9facb3ffaf
Forgot a quote-syntax here, so unprotected ids weren't being transformed
...
correctly.
svn: r13121
2009-01-14 20:58:38 +00:00
Stevie Strickland
5ac3135cd6
Syncing up here as well.
...
svn: r13118
2009-01-14 18:27:06 +00:00
Eli Barzilay
d1a0086471
newlines at EOFs
...
svn: r13105
2009-01-14 03:10:47 +00:00
Stevie Strickland
455999eadd
Add first-order contract checking at definition time.
...
svn: r13095
2009-01-13 20:52:58 +00:00
Stevie Strickland
4899d91b97
Lacked unprotected ids, and c should have never been false here anyway.
...
svn: r13093
2009-01-13 20:40:36 +00:00
Stevie Strickland
1cede752f9
Not sure whether we want just a simple rename transformer for non-contracted
...
ids or whether we really want a set! transformer that still disallows set!ing.
Hmm.
svn: r13090
2009-01-13 19:41:52 +00:00
Stevie Strickland
909dd82f7c
Using splicing-syntax-parameterize and a syntax-introducer instead of
...
what I had originally.
svn: r13089
2009-01-13 19:36:54 +00:00
Stevie Strickland
51da9beab4
This is a change I was toying with that shouldn't have gotten caught up in
...
the trunk sync of 13084.
svn: r13088
2009-01-13 19:01:21 +00:00
Stevie Strickland
2537508865
Syncing on up
...
svn: r13084
2009-01-13 01:05:50 +00:00
Matthew Flatt
2530e04720
add some-system-path<->string functions to scheme/path
...
svn: r13065
2009-01-11 14:47:51 +00:00
Matthew Flatt
4180d67e34
make scheme/path fuctions work on paths for any playform
...
svn: r13064
2009-01-11 13:52:26 +00:00
Matthew Flatt
a58010fd0d
scheme/class: fix local member names to provide an better message on misuse, and to declare itself as an expression form
...
svn: r13050
2009-01-09 21:00:50 +00:00
Stevie Strickland
22ee00b10f
Oh, no! Aliens, bio-duplication, nude conspiracies.. oh my God,
...
Lyndon LaRouche was right!
svn: r13037
2009-01-08 14:55:23 +00:00
Robby Findler
c9ebe9bba3
changed the way or/c works; PR 10010
...
svn: r13030
2009-01-07 16:48:17 +00:00
Matthew Flatt
821a82195e
change 'help' to open the main doc page instead of the docs for 'help' itself
...
svn: r13004
2009-01-04 23:15:50 +00:00
Robby Findler
97e00eef97
fixed a bug in the ->d contract checking (wrt tail dropping)
...
svn: r12987
2009-01-03 16:57:46 +00:00
Robby Findler
3af2ea45d0
changed ->d so that it only checks the contract just above, not many above
...
svn: r12986
2009-01-03 16:40:54 +00:00
Stevie Strickland
6d966c80af
Syncing
...
svn: r12982
2009-01-03 03:09:06 +00:00
Matthew Flatt
b2d0a37f7b
add propagated arguments to 'call-with-continuation-prompt'; streamline 'with-handlers' expansion; speed up slightly some JITted cross-module function calls
...
svn: r12979
2009-01-02 21:57:31 +00:00
Matthew Flatt
e92b588985
macro-expansion performance tweaks
...
svn: r12972
2009-01-02 16:50:32 +00:00
Robby Findler
fb821d9041
added argmin and argmax to scheme/list and to the teaching languages
...
svn: r12960
2009-01-01 00:03:31 +00:00
Matthew Flatt
8fac3dbc89
fix gui-available? to return #f for phases other than 0
...
svn: r12955
2008-12-30 21:20:55 +00:00
Matthew Flatt
1642a84e69
add equal?/recur; implement equal? for image-snip% via properties
...
svn: r12950
2008-12-29 22:36:53 +00:00
Matthew Flatt
0cd2537a82
add equal<%> ad interface*
...
svn: r12946
2008-12-28 15:05:02 +00:00
Stevie Strickland
d81776083f
Sync
...
svn: r12899
2008-12-19 05:43:50 +00:00
Eli Barzilay
13e58dc786
* Fix call-with-custodian-shutdown and call-with-killing-threads
...
* Organize similarities into a utility `nested' function
* Make trusted configuration disable the evaluation handlers
svn: r12891
2008-12-18 20:25:03 +00:00
Eli Barzilay
11107f4e22
(Second part of the previous commit)
...
svn: r12886
2008-12-18 13:43:59 +00:00
Eli Barzilay
0c85f221be
Added:
...
sandbox-eval-handlers
set-eval-handler
call-with-custodian-shutdown
call-with-killing-threads
Added optional `unrestricted?' argument to `call-in-sandbox-context'
svn: r12885
2008-12-18 13:35:49 +00:00
Stevie Strickland
0b1829e250
Sync up
...
svn: r12877
2008-12-17 14:28:56 +00:00
Matthew Flatt
efd7446b09
current-exit-handler => exit-handler
...
svn: r12874
2008-12-17 00:04:20 +00:00
Eli Barzilay
f74dc2b8c7
Added `call-with-trusted-sandbox-configuration', and used in scribble
...
and in tests.
svn: r12871
2008-12-16 20:29:17 +00:00
Stevie Strickland
236370fd9f
Syncing up this branch to get ready to clean it up for future possible
...
merging.
svn: r12870
2008-12-16 20:06:24 +00:00
Eli Barzilay
0cd1b5fea9
* reorganize termination code a bit better
...
* use it when the sandbox is being setup, so we catch an out of memory
error at that time
svn: r12854
2008-12-15 17:13:44 +00:00
Matthew Flatt
45e4684e4f
memory accounting: blame the parent instead of the child
...
svn: r12853
2008-12-15 17:09:33 +00:00
Eli Barzilay
ab115fb6e4
default global limit is 30mb
...
svn: r12852
2008-12-15 16:26:25 +00:00
Eli Barzilay
b882de2409
allow any number for memory limits
...
svn: r12851
2008-12-15 16:22:41 +00:00
Eli Barzilay
a2ef8a5aae
allow 'exists access to addon directory
...
svn: r12847
2008-12-15 02:24:32 +00:00
Eli Barzilay
c62595772f
Finally enabled using a sub code-inspector properly, with a new
...
'read-bytecode permission mode. Added tests and (crappily)
documented.
svn: r12846
2008-12-15 01:07:00 +00:00
Eli Barzilay
340b193571
minor improvements
...
svn: r12842
2008-12-14 05:17:32 +00:00
Eli Barzilay
9295a1dc27
* Fix memory test
...
* Better organization of `user-eval'
* Deal with cases when the evaluator dies outside of our control
svn: r12841
2008-12-13 23:26:44 +00:00
Eli Barzilay
5ab0de415d
formatting
...
svn: r12840
2008-12-13 22:45:35 +00:00
Eli Barzilay
39a69b30fd
Don't set memory limits or test for them when there is no memory
...
accounting.
svn: r12839
2008-12-13 22:44:02 +00:00
Eli Barzilay
813eb20e35
termination message now indicates suicides too (both killing the
...
thread or shutting the custodian)
svn: r12838
2008-12-13 22:39:49 +00:00
Eli Barzilay
188489b34f
* Added `exn:fail:sandbox-terminated' for all sandbox termination
...
kinds.
* The default exit handler kills the sandbox, with an appropriate
termination message.
* Also, sending an eof to the sandbox shows 'eof as the reason
* Added some tests for these.
* Still need to deal with termination messages for evaluator suicide.
svn: r12837
2008-12-13 22:12:16 +00:00
Eli Barzilay
bd01cda595
typo in the last commit
...
svn: r12832
2008-12-13 17:18:40 +00:00
Eli Barzilay
46e16fc206
* The sandbox now uses a new code-inspector to avoid using protected
...
bindings
* Added `sandbox-make-code-inspector' to control this
* Changed the function form of `sandbox-security-guard' to be a thunk,
to make it uniform with other sandbox settings.
svn: r12831
2008-12-13 17:17:12 +00:00
Eli Barzilay
55f1df58e1
Make sure that the module is also instantiated under the evaluation
...
limits too (the instantiation was happening outside of the limited
thunk)
svn: r12830
2008-12-13 16:41:07 +00:00
Eli Barzilay
e2221c800b
* sandbox-security-guard can now be a function that translates a given
...
security guard to a new one
* this is now used for the default to avoid grabbing the global
security guard
svn: r12828
2008-12-13 14:11:28 +00:00
Eli Barzilay
ac5d6d66c1
make call-in-nested-thread avoid potential break problem
...
svn: r12792
2008-12-12 17:25:03 +00:00
Eli Barzilay
90492a0606
avoid timer-killing problem; cust-box might not be set
...
svn: r12791
2008-12-12 17:22:24 +00:00
Eli Barzilay
3fcc58c05e
minor improvements
...
svn: r12789
2008-12-12 13:43:05 +00:00
Eli Barzilay
c76a23ed29
termination message indicates whether the sandbox died because of memory limit
...
svn: r12788
2008-12-12 13:32:20 +00:00
Eli Barzilay
a1222d66ca
* Implementer global sandbox memory limit and added
...
`sandbox-memory-limit' to set it
* Added `evaluator-alive?'
* Undo accidental commenting of most tests
svn: r12786
2008-12-12 12:45:08 +00:00
Eli Barzilay
a0d1baea00
When an expression evaluation dies out of memory, the sandbox stays alive
...
svn: r12785
2008-12-12 11:22:08 +00:00
Eli Barzilay
c979ffa85a
small fix, other minor things
...
svn: r12784
2008-12-12 10:29:28 +00:00
Eli Barzilay
f7c16fc8bb
* fix last commit
...
* when make-module-evaluator gets a path, allow reading that path
automatically (since that's where the source is)
svn: r12778
2008-12-11 18:34:58 +00:00
Eli Barzilay
baffbeeeb2
close the input after reading
...
svn: r12775
2008-12-11 18:00:43 +00:00
Stevie Strickland
dd5afccd82
Catch up to now.
...
svn: r12742
2008-12-08 17:02:26 +00:00
Matthew Flatt
89d0801d7a
change quote-syntax to include a certificate for the enclosing module, enable certificate checking of phase-1 bindings, and fix some other problems with certificates
...
svn: r12714
2008-12-05 22:45:04 +00:00
Matthew Flatt
66a0c27703
avoid shared mutation of break state across with-handlers procs
...
svn: r12706
2008-12-04 23:04:33 +00:00
Stevie Strickland
5eab2260cc
S-S-S-S-S-S-Syncing
...
svn: r12695
2008-12-04 16:15:18 +00:00
Eli Barzilay
10c9b39bfe
removed unused variable
...
svn: r12675
2008-12-02 14:39:36 +00:00
Eli Barzilay
eb54b1a5b2
* Added `call-in-nested-thread*', and used it to improve
...
`call-with-limits'; specifically, it can now distinguish killing the
main thread or shutting down the custodian from an out-of-memory
error.
* This also makes it possible to have threads created and stay alive
between evaluations.
* Added tests for this.
svn: r12673
2008-12-02 12:23:35 +00:00
Eli Barzilay
e0917e1a5e
* Added `call-in-sandbox-context'.
...
* Removed `get-namespace' since it's generalized in the above.
* Deal with killing the current thread (or the current custodian) in
the sandbox code. (Works only without per-expression limits --
still need to find a solution for `call-with-limits'.)
* Added tests for this.
svn: r12670
2008-12-02 05:26:45 +00:00
Eli Barzilay
fc920b18bb
set-eval-limits requires two arguments
...
svn: r12669
2008-12-02 00:15:58 +00:00
Eli Barzilay
ab817097b4
* Create string/bytes output port in the user's custodian (at least
...
try to do so...).
* Add tests for output collection under resources -- some are
commented since they're not working right, either a bug in this code
that I don't see, or some problem with memory accounting.
* Clarify in the docs that output collection is still under resource
limits.
svn: r12667
2008-12-01 22:19:58 +00:00
Eli Barzilay
12467b4ecd
better organization for running resource limited code
...
svn: r12666
2008-12-01 21:28:28 +00:00
Eli Barzilay
0c2410739a
cust -> user-cust
...
svn: r12665
2008-12-01 21:22:53 +00:00
Stevie Strickland
e94cadd86d
Syncing -- nothing to see here.
...
svn: r12660
2008-12-01 15:11:00 +00:00
Matthew Flatt
6e9ccd3f43
better checking of case where a local name is used before it is defined (in an int-def context)
...
svn: r12659
2008-12-01 12:54:16 +00:00
Eli Barzilay
8905cc86e5
Added `sandbox-exit-handler' to control the exit handler
...
svn: r12654
2008-11-30 21:44:47 +00:00
Stevie Strickland
581800ad8c
Splicing syntax parameterize, here I come!
...
svn: r12601
2008-11-26 22:42:32 +00:00
Matthew Flatt
2c48c2c817
splicing-syntax-parameterize and docs for scheme/splicing
...
svn: r12600
2008-11-26 21:31:58 +00:00
Stevie Strickland
6f83ed1a80
Sync that beautiful trunk footage
...
svn: r12593
2008-11-25 21:18:04 +00:00
Matthew Flatt
7a66101d30
remove broken define*-struct
...
svn: r12590
2008-11-25 18:14:57 +00:00
Matthew Flatt
ed536c002e
scheme/package (and more int-def repairs)
...
svn: r12589
2008-11-25 17:58:21 +00:00
Matthew Flatt
b7addbab82
provide open*-package
...
svn: r12586
2008-11-25 03:13:06 +00:00
Matthew Flatt
5f3b7e5c6f
another int-def binding simplification repair
...
svn: r12585
2008-11-25 03:08:08 +00:00
Matthew Flatt
a0f91d905e
revised internal-definitions context and a basic 'define-package' form
...
svn: r12579
2008-11-24 19:52:41 +00:00
Stevie Strickland
702c1b7af2
Syncerating the countryside
...
Syncerating the peasants
Syncerating all the peoples
in the thatched-roof COTTAGES!
THATCHED-ROOF COTTAGES!
svn: r12578
2008-11-24 17:52:56 +00:00
Eli Barzilay
5b9f0aa322
Implemented a `no-empty-edge-matches' function using the new
...
`make-regexp-tweaker', which produces a regexp that cannot match an
empty string at the beginning or the end of the input. This:
* simplies a whole bunch of messy and fragile code
* makes `regexp-split' and friends usable with a pattern like #px"\\b"
(which previously would match in every position, making it explode
the string to 1-character strings)
* makes it even closer to what perl does, the only way that we produce
a different result from perl now is that we don't blindly drop empty
matches at the end like perl (it *does* keep empty matches in the
beginning though)
The two tests that demonstrated the difference are now changed, and a
bunch of other tests added.
svn: r12575
2008-11-23 05:40:54 +00:00
Eli Barzilay
ecb39eedee
added make-regexp-tweaker (not used yet), and some code reorganization
...
svn: r12573
2008-11-23 00:17:39 +00:00
Stevie Strickland
537d98ac20
Mergerating.
...
svn: r12510
2008-11-19 20:34:37 +00:00
Sam Tobin-Hochstadt
4c0c3c0ff8
Fix dynamic context of use of match failure continuations.
...
svn: r12497
2008-11-18 21:17:36 +00:00
Sam Tobin-Hochstadt
d1fca9c04a
Fix PR 9918.
...
svn: r12480
2008-11-17 23:58:05 +00:00
Stevie Strickland
3212d11712
Add all changes from branches/with-contract (which this branch will replace
...
eventually), plus a couple of fixes in contract-test.ss.
svn: r12451
2008-11-14 16:48:17 +00:00
Matthew Flatt
4dd202b960
,
...
svn: r12430
2008-11-13 21:11:48 +00:00
Eli Barzilay
d9b4e619eb
add quotes
...
svn: r12404
2008-11-12 05:37:52 +00:00
Eli Barzilay
b1aee15004
improve bad access error (PR9901)
...
svn: r12403
2008-11-12 05:36:52 +00:00
Matthew Flatt
4fe1da791c
display-list[-to-file] to display-lines[-to-file]
...
svn: r12402
2008-11-12 03:25:24 +00:00
Matthew Flatt
02277342ac
substitute Scheme-implemented map, for-each, andmap, and ormap in scheme/base and mzscheme, since the JIT generates faster code for the common 1- and 2-argument cases
...
svn: r12393
2008-11-11 22:25:24 +00:00
Matthew Flatt
a6d953b6f5
add port->string, file->string, etc.
...
svn: r12388
2008-11-11 17:55:14 +00:00
Matthew Flatt
ad75c8aa58
fix problems in lex-rename simplification; other tiny improvements and doc repairs
...
svn: r12380
2008-11-10 22:50:54 +00:00
Robby Findler
773aaca3ba
made mutual recursion work for ->d
...
svn: r12366
2008-11-09 13:42:46 +00:00
Eli Barzilay
8009a73622
added get-namespace
...
svn: r12364
2008-11-09 07:35:49 +00:00
Eli Barzilay
f85ab5567c
increment line counter only on real inputs (not evaluator messages)
...
svn: r12363
2008-11-09 07:25:36 +00:00
Robby Findler
2394848555
function contracts now preserve tail recursion
...
svn: r12360
2008-11-09 02:31:25 +00:00
Sam Tobin-Hochstadt
c4deb8e5e7
Fix handling of wrong size vectors.
...
Add tests.
Fixes PR9885.
svn: r12334
2008-11-06 20:23:40 +00:00
Matthew Flatt
fadf10cf10
fix problems with template expansion when a pattern variable is used at different depths under a common ellipsis
...
svn: r12327
2008-11-06 16:21:50 +00:00
Matthew Flatt
37aae202c5
speed up doc build a little; fix bugs related to getting continuation marks from a thread and using the errortrace profiler
...
svn: r12237
2008-11-04 23:32:44 +00:00
Matthew Flatt
95bedb17fb
change contracts to reflect context via #%variable-reference instead of syntax objects; add id-less #%variable-reference form; drop link to unneeded CPort objects in delayed thunks; streamline some modules that tend to show up in deep phases
...
svn: r12231
2008-11-04 14:24:12 +00:00
Robby Findler
122f8d41dc
PR 9852
...
svn: r12076
2008-10-20 20:08:05 +00:00
Robby Findler
eb7d9be3f0
fixed the contract? predicate so that it recognizes thigns that aren't yet turned into contract structs
...
svn: r12043
2008-10-15 12:54:37 +00:00
Robby Findler
2ef287f107
added empty as a coerceable value
...
svn: r12025
2008-10-13 21:09:18 +00:00
Matthew Flatt
ec68bafa9c
add eqv hash tables; add hash-update
...
svn: r12018
2008-10-13 16:21:18 +00:00
Eli Barzilay
98975fc524
move the reader of make-module-evaluator inside the user context jail
...
svn: r11963
2008-10-07 14:20:18 +00:00
Eli Barzilay
bbceacae84
turn on read-accept-reader in the default-sandbox-reader
...
svn: r11962
2008-10-07 14:14:59 +00:00
Eli Barzilay
433819df52
Added a #:language argument to `make-module-evaluator' to enforce a
...
particular language module.
svn: r11954
2008-10-06 21:34:24 +00:00
Eli Barzilay
062152e711
fixed PR9806 and PR9807
...
svn: r11940
2008-10-05 04:42:48 +00:00
Matthew Flatt
086f3c3b44
fix int-def context binding problems, fix scheme/splicing, change rnrs/base-6 to use scheme/splicing
...
svn: r11917
2008-09-30 22:03:55 +00:00
Eli Barzilay
d892cb243e
* Move the help functionality into the search collection, so it is not
...
packaged with the mzscheme distribution
* Make scheme/help throw a helpful message if the file is missing
svn: r11896
2008-09-28 20:43:13 +00:00
Eli Barzilay
4efab4f12f
removed some unnecessary old autoloading, reformat some stuff
...
svn: r11886
2008-09-27 02:12:02 +00:00
Eli Barzilay
59b1eea0bc
fixed help with #:search, made most of the help-related overhead loaded when help is used
...
svn: r11885
2008-09-27 02:07:59 +00:00
Eli Barzilay
fa86e9ee9f
minor formatting
...
svn: r11877
2008-09-25 20:07:07 +00:00
Matthew Flatt
6f9b5ad586
correct error message for bad formal argument after keyword
...
svn: r11823
2008-09-20 11:24:53 +00:00
Robby Findler
d165c586af
PR 9760
...
svn: r11766
2008-09-15 21:58:59 +00:00
Matthew Flatt
186bf67630
msvs9-friendly patches; preliminary splicing let-syntax library; export and doc GC_resolve and GC_fixup_self
...
svn: r11758
2008-09-15 19:08:50 +00:00
Robby Findler
fb17d339ef
oops, committed too soon...
...
svn: r11731
2008-09-13 22:38:21 +00:00
Robby Findler
d69957455c
a bunch more values are now converted into contracts automatically (added bytes)
...
svn: r11730
2008-09-13 22:37:16 +00:00
Robby Findler
85e489219c
a bunch more values are now converted into contracts automatically
...
svn: r11729
2008-09-13 22:35:09 +00:00
Robby Findler
06a4d0df4a
got rid of define-struct/prop since scheme/base has a define-struct that does all that (and more) now
...
svn: r11727
2008-09-13 16:29:01 +00:00
Matthew Flatt
72055191b4
add printable<%>
...
svn: r11705
2008-09-12 22:50:09 +00:00
Kevin Tew
7068de8f67
Change place_wait and place_sleep to place-wait and place-sleep
...
svn: r11589
2008-09-09 15:52:13 +00:00
Matthew Flatt
1a8b6cb824
fix mistakes in augment corrections; fix runtime-path handling of lib paths
...
svn: r11577
2008-09-08 19:44:32 +00:00
Matthew Flatt
74addc1b71
fix checking of augment on a method that is overridable but was formerly augmentable
...
svn: r11574
2008-09-08 14:41:56 +00:00
Robby Findler
2ece9d9e95
PR 9729
...
svn: r11567
2008-09-07 12:46:17 +00:00
Eli Barzilay
e508264945
typo (PR9726)
...
svn: r11554
2008-09-05 18:13:49 +00:00
Robby Findler
44b62899fa
improved blame error message when there is no source location
...
svn: r11526
2008-09-02 16:12:13 +00:00
Robby Findler
300d1361a1
added planet bug report icon
...
svn: r11522
2008-09-02 12:46:12 +00:00
Robby Findler
facfe60934
svn: r11513
2008-09-01 20:30:04 +00:00
Robby Findler
5596aff30f
improved contract error messages so that they now always have absolute module references in them for blame information
...
svn: r11511
2008-09-01 19:54:50 +00:00
Sam Tobin-Hochstadt
5b0da0948a
Fix or not to use continuations, and to use a success/failure flag instead. Fixed PR 9689.
...
svn: r11360
2008-08-20 19:52:58 +00:00
Eli Barzilay
da3b476e80
finish the cm move: change all requires, leave stub files in mzlib
...
svn: r11314
2008-08-19 00:22:57 +00:00
Matthew Flatt
c09b9baae8
fix stxparam bug (from Olin via Sam)
...
svn: r11304
2008-08-18 22:19:18 +00:00
Matthew Flatt
9ecece65d7
place patches from Kevin
...
svn: r11273
2008-08-15 15:59:39 +00:00
Matthew Flatt
0715f3d7f9
fix rationalize on inexact arguments
...
svn: r11215
2008-08-13 10:52:53 +00:00
Eli Barzilay
6307b4bdc1
comment typo
...
svn: r11157
2008-08-08 22:35:36 +00:00
Eli Barzilay
ce7dc400f3
svn: r11129
2008-08-07 19:32:26 +00:00
Eli Barzilay
f781bc04a1
svn: r11128
2008-08-07 19:32:13 +00:00
Matthew Flatt
d0419345d8
clean up extended in-vector, in-string, and in-bytes
...
svn: r11124
2008-08-07 12:13:21 +00:00
Noel Welsh
ed0bd51c8b
Add support for start/stop/step parameters to in-vector comprehension forms. Vector like comprehensions (strings etc) actually support this as well, when used in the body of the for comprehension. However this will not be documented as support do not extend to sequences defined outside a comprehension.
...
svn: r11068
2008-08-04 18:38:47 +00:00
Sam Tobin-Hochstadt
35575378d8
Add shorthands for define-require-syntax and define-provide-syntax.
...
Document shorthands.
svn: r11025
2008-08-01 18:48:48 +00:00
Eli Barzilay
b93cdc5803
minor
...
svn: r11001
2008-07-31 04:03:28 +00:00
Matthew Flatt
16b04d0328
fix syntax pattern-matching bug (PR 9643)
...
svn: r10989
2008-07-30 19:45:59 +00:00
Matthew Flatt
8140b3644e
add 'bitwise-bit-set?' and 'in-value' (v4.0.2.6)
...
svn: r10971
2008-07-29 19:27:33 +00:00
Matthew Flatt
616ec71325
fix for/or and for/and when one of the clauses binds multiple values
...
svn: r10926
2008-07-26 21:38:39 +00:00
Matthew Flatt
763d37d775
properties can now effectively inherit properties (v4.0.2.5)
...
svn: r10848
2008-07-21 17:04:25 +00:00
Matthew Flatt
867306caff
new #lang planet reader; new sandbox-make-loger parameter
...
svn: r10833
2008-07-18 17:25:49 +00:00
Eli Barzilay
5a7ce88ac0
added filtered-in and -out
...
svn: r10826
2008-07-17 23:02:56 +00:00
Matthew Flatt
9af00fcfb4
v4.0.2.4: logging
...
svn: r10818
2008-07-17 15:20:17 +00:00
Stevie Strickland
63a4e5af2e
This was incorrectly syntaxed.
...
svn: r10700
2008-07-09 17:39:31 +00:00
Eli Barzilay
91fb6ffce0
move sandbox-coverage to scheme/private
...
svn: r10690
2008-07-09 07:20:51 +00:00
Eli Barzilay
7d50e61c7f
* Newlines at EOFs
...
* Another big chunk of v4-require-isms
* Allow `#lang framework/keybinding-lang' for keybinding files
* Move hierlist sources into "mrlib/hierlist", leave stub behind
svn: r10689
2008-07-09 07:18:06 +00:00
Robby Findler
4993e26b0a
PR 9442
...
svn: r10603
2008-07-04 20:22:33 +00:00
Eli Barzilay
f3559964fb
Added split-at' and
split-at-right', with documentation and tests,
...
and made srfi/1 use it.
svn: r10558
2008-07-02 13:12:26 +00:00
Eli Barzilay
1002366103
* Implemented drop' instead of a synonym for
list-tail' (so error
...
messages are better; speed should be comparable)
* added `take-right' and `drop-right' to scheme/list, with tests and
documentation
* also, minor documentation bug (wrong result type for `drop' can
return `any/c')
* drop the implementation of them from srfi/1, reprovide the
scheme/list versions
svn: r10555
2008-07-02 10:04:57 +00:00
Matthew Flatt
9707770ace
fix phase problem in 'make-namespace' form 'mzscheme'
...
svn: r10478
2008-06-27 18:36:31 +00:00
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