Commit Graph

361 Commits

Author SHA1 Message Date
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
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
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