Robby Findler
cb47325215
fixed parameter contracts
...
svn: r6833
2007-07-07 15:19:46 +00:00
Matthew Flatt
9764065c6a
370.5
...
svn: r6832
2007-07-07 08:31:19 +00:00
Robby Findler
2dfd35e5c7
added parameter/c
...
svn: r6770
2007-06-29 16:44:18 +00:00
Shu-Yu Guo
5016e59f8e
fixes match
...
svn: r6674
2007-06-16 16:58:37 +00:00
Robby Findler
ea5b3493f3
fixed define-contract-struct so that it defines (via define-syntax) the struct name, following the define-struct covention
...
svn: r6664
2007-06-14 21:14:14 +00:00
Robby Findler
3857b95a7b
fixed PR 8737
...
svn: r6596
2007-06-12 15:23:54 +00:00
Robby Findler
f597eef4db
svn: r6558
2007-06-09 18:33:37 +00:00
Robby Findler
377c5b3ad0
had to find a new way to defeat the inlining
...
svn: r6413
2007-05-30 17:32:39 +00:00
Robby Findler
2f97ee61a8
fixed comment
...
svn: r6292
2007-05-25 13:22:29 +00:00
Robby Findler
e41ff4705e
improved error checking for provide/contract struct clauses
...
svn: r6155
2007-05-05 17:50:19 +00:00
Robby Findler
5ac3fdd86e
added unsafe list contract combinators
...
svn: r6096
2007-04-29 21:46:27 +00:00
Matthew Flatt
e9bf34f193
369.11
...
svn: r6085
2007-04-29 02:08:24 +00:00
Robby Findler
2cb314de1b
improved error message a little more, thanks to Jon Rafkind
...
svn: r6073
2007-04-28 21:50:05 +00:00
Robby Findler
bbb4f1c307
tweaked wording of any error message
...
svn: r6071
2007-04-28 20:21:04 +00:00
Robby Findler
ddf5ddaf68
fixed a bug in structs
...
svn: r6059
2007-04-27 22:02:14 +00:00
Robby Findler
c3e07c0a8c
removed bogus inference from matcher's optimizer
...
svn: r6034
2007-04-24 18:22:10 +00:00
Matthew Flatt
a45251d272
369.10
...
svn: r6003
2007-04-20 01:16:15 +00:00
Robby Findler
db8cba03aa
added unconstrained-domain->
...
svn: r5967
2007-04-17 18:54:19 +00:00
Matthew Flatt
a47e48fc20
fix inferred name of field values and values installed into fields with set!
...
svn: r5880
2007-04-07 23:36:24 +00:00
Eli Barzilay
433c9a57ec
new sandbox in mzlib
...
svn: r5873
2007-04-06 08:56:23 +00:00
Matthew Flatt
81b7aea7d9
fix expansion of match-define to use define-values instead of begin with set!
...
svn: r5786
2007-03-19 01:55:21 +00:00
Robby Findler
058bb56915
added guilty-party
...
svn: r5783
2007-03-17 21:39:59 +00:00
Robby Findler
69ed5483cf
improved source locations for previous fix
...
svn: r5765
2007-03-09 22:42:40 +00:00
Robby Findler
e61faf231e
fixed bug mentioned by Paulo Matos on plt-scheme mailing list
...
svn: r5764
2007-03-09 22:38:51 +00:00
Robby Findler
d67ab8b0a9
improved the expansion to make runtime error reporting better
...
svn: r5703
2007-02-27 23:48:00 +00:00
Robby Findler
81ce545d63
added define-opt/c
...
svn: r5515
2007-01-31 01:12:19 +00:00
Robby Findler
de59204fa5
some cleanup
...
svn: r5503
2007-01-30 00:54:23 +00:00
Robby Findler
7ab052ebb9
fixed a bug
...
svn: r5485
2007-01-28 15:25:46 +00:00
Robby Findler
4ad8fdadea
merged the opt/c changes back into the trunk (finally!)
...
svn: r5481
2007-01-28 02:54:16 +00:00
Matthew Flatt
272980489c
avoid chains of derived-from-... names (due to previous attempt at fixing the string vs. symbol problem)
...
svn: r5444
2007-01-24 02:37:01 +00:00
Matthew Flatt
c0c04fb2fc
make derived-from-... name a symbol in a class record
...
svn: r5443
2007-01-24 02:34:38 +00:00
Matthew Flatt
dbaccc2d5c
fix cert problem when internal and external names are provided, but no initial value is provided
...
svn: r5403
2007-01-19 01:50:17 +00:00
Eli Barzilay
19c33a8e2a
no need for string->immutable-string when creating exceptions
...
svn: r5372
2007-01-17 01:18:50 +00:00
Matthew Flatt
87c0d5754e
369.5
...
svn: r5366
2007-01-16 20:55:13 +00:00
Matthew Flatt
32ec113ed1
fix public-final-name-localized bug
...
svn: r5354
2007-01-15 05:58:28 +00:00
Matthew Flatt
7b13755dad
unit clean-up
...
svn: r5160
2006-12-22 01:26:58 +00:00
Sam Tobin-Hochstadt
2b876b1f11
Port render-test-list.scm and helpers to use new-style units.
...
svn: r5035
2006-12-05 22:51:47 +00:00
Eli Barzilay
3459c3a58f
merged units branch
...
svn: r5033
2006-12-05 20:31:14 +00:00
Shu-Yu Guo
eaf71a272a
typos, name tests for opt/c.
...
svn: r4781
2006-11-05 06:45:58 +00:00
Carl Eastlund
22fd8f51cc
Added tracing capabilities to mzscheme's class system.
...
- class-internal.ss exports two versions (traced/untraced) of macros/functions
- classidmap.ss provides expansion to both forms (traced/untraced)
- class-traced.ss exports traced versions
- class.ss (unchanged) exports untraced versions
- class-events.ss contains hooks called by traced version
Functionality will be used by tool to be released via PLaneT.
svn: r4778
2006-11-04 20:46:52 +00:00
Shu-Yu Guo
bd0b34a9ac
- refactored opt/c to its own struct/prop
...
- moved opters next to their respective original contracts where possible
- the rest moved to contract-basic-opters.ss to avoid module cycle
- fixed some typos
svn: r4774
2006-11-04 05:02:57 +00:00
Matthew Flatt
60fe398868
added trait, finally
...
svn: r4681
2006-10-25 08:02:59 +00:00
Robby Findler
90b688b143
fixed PR 8293
...
svn: r4420
2006-09-23 02:54:25 +00:00
Sam Tobin-Hochstadt
605c510b9e
Merged changes from branch:
...
http://svn.plt-scheme.org/plt/branches/samth/match2
revisions 4220:4417
Included Matthew's version of regexp-error change, not Sam's.
Major changes:
- simplification pass
- define match-letrec in terms of match-define
- show steps of match-expander in macro stepper
- substantial refactoring of gen-match
- removed unused times-used-neg field of test struct
- added match:internal-error
- general refactoring
- bug fix in parsing of quasi-patterns
svn: r4418
2006-09-22 18:35:22 +00:00
Matthew Flatt
bbcd99e537
allow regexps for pregexp pattern in match
...
svn: r4410
2006-09-22 01:59:40 +00:00
Sam Tobin-Hochstadt
0a5ff7fddd
Fix bug in definition of match-define.
2006-09-20 11:30:20 -04:00
Sam Tobin-Hochstadt
00383c4c5d
convert-pat:
...
- reformatting
- use constant-data?
render-test-list-impl:
- reformatting
- refactoring
2006-09-20 11:02:15 -04:00
Sam Tobin-Hochstadt
a6f8fbe350
Fix bug in conversion of dotted patterns.
2006-09-19 14:31:17 -04:00
Sam Tobin-Hochstadt
086db937b8
pregexp can now return a regexp object.
2006-09-19 13:01:04 -04:00
Sam Tobin-Hochstadt
b42e317e0c
Changed convert-pat to use syntax/loc.
2006-09-15 12:12:10 -04:00
Sam Tobin-Hochstadt
ee63e4e80d
Factor observe-step into separate file.
...
Use observe step in match.ss match-expanders.
2006-09-11 15:43:50 -04:00
Sam Tobin-Hochstadt
7646ee635d
Show correctly marked results in stepper.
2006-09-11 00:57:35 -04:00
Sam Tobin-Hochstadt
34aa12ddac
Added expansion of match-expanders to macro-debugger.
2006-09-10 21:24:35 -04:00
Sam Tobin-Hochstadt
506c154ea8
Add new simplification pass before render-test-list.
...
Simplification expands match expanders and removes syntactic sugar.
Also, syntax errors are checked in the simplification phase, so better
error messages can be given.
2006-09-07 12:02:41 -04:00
Sam Tobin-Hochstadt
6034e5e0d5
fix bug with list-rest in quasi-patterns
2006-09-06 14:26:19 -04:00
Sam Tobin-Hochstadt
b1bc4714d5
update-counts: Fix a really dumb bug in logical-equal? that
...
caused huge time blowup.
svn: r4259
2006-09-06 16:50:50 +00:00
Sam Tobin-Hochstadt
3a77f5a914
Work toward adding simplication pass before render-test-list.
2006-09-05 18:56:04 -04:00
Robby Findler
4a6cee9cf8
fixed bug where the name has disappeared from a contract violation (and added test cases, of course)
...
svn: r4235
2006-09-04 02:07:01 +00:00
Sam Tobin-Hochstadt
32e8e72175
gen-match:
...
- use begin-with-definitions for code clarity
- rename some variables
- better contracts (comments)
test-structure:
- delete unused field
update-counts:
- general reformatting
- delete dead code
- refactoring to eliminate duplication
2006-09-01 18:42:58 -04:00
Sam Tobin-Hochstadt
c702686b01
gen-match.ss: kill dead code, remove pointless argument
...
match-internal-func.ss:
- use match-define to implement match-letrec
- clean up match-letrec using with-syntax
2006-09-01 17:27:47 -04:00
Sam Tobin-Hochstadt
9e17a6d993
reformatting
2006-09-01 16:52:45 -04:00
Robby Findler
dd4c63ab07
upped the number of calls to 'values' in order to continue to defeat mz's optimizations
...
svn: r4216
2006-09-01 15:51:52 +00:00
Robby Findler
d8a72d982f
added contract-opt, renamed contract-helpers to be a .ss, not .scm
...
svn: r4207
2006-08-31 22:30:13 +00:00
Sam Tobin-Hochstadt
d1fe9f9645
Rewrite emit and assem to use better style.
...
Remove pointless optional arguments in getbindings.
Don't create unneccessary match-lambda*.
Implement keyword arguments to define-match-expander.
Lots of refactoring of gen-match for general clarity.
Use combinators instead of writing our own loops.
Simplify struct info accessor.
Add timing printer.
Refactor coupling/binding for general clarity.
Rewrite logical-equal not to use the expansion of match.
General replacement of () with [].
svn: r4192
2006-08-30 19:41:47 +00:00
Robby Findler
d9ac9270a8
provide/contract now grabs the source locations from the identifiers that have contracts, not some other part of itself
...
svn: r4187
2006-08-29 13:14:33 +00:00
Matthew Flatt
6864440c7e
class-level mixin syntax reports reported as from mixin
...
svn: r4159
2006-08-27 23:10:29 +00:00
Matthew Flatt
c0ce55afb4
make generic smarterabout final methods
...
svn: r4105
2006-08-22 01:26:58 +00:00
Robby Findler
eefb6a8c87
minor tweak to contract library
...
svn: r4092
2006-08-18 21:53:54 +00:00
Matthew Flatt
35d14b301f
add inherit/super and inherit/inner (to eventually replace rename-inner and rename-super)
...
svn: r4087
2006-08-18 00:47:32 +00:00
Robby Findler
2edea47556
fixed PR 8215
...
svn: r3994
2006-08-09 03:28:59 +00:00
Matthew Flatt
6dc42e3a8d
changed handling of primitive by-position-only arguments to behave like init-rest
...
svn: r3954
2006-08-04 13:33:31 +00:00
Sam Tobin-Hochstadt
0cf62c196a
Changed #:macro to #:expression in define-match-expander.
...
svn: r3945
2006-08-03 20:18:22 +00:00
Sam Tobin-Hochstadt
931d214b69
Removed obsolete mzlib/private/plt-match directory.
...
Moved match implementation to new mzlib/private/match directory.
Implement keyword arguments to define-match-expander.
svn: r3943
2006-08-03 20:01:39 +00:00
Matthew Flatt
2b7a722b33
fix scoped init names (i.e., when combined with define-local-member-name)
...
svn: r3937
2006-08-02 20:14:32 +00:00
Eli Barzilay
bb5b45b181
re-do changes that were undone in r3843
...
svn: r3859
2006-07-28 08:15:46 +00:00
Eli Barzilay
5099b078c6
Undo the following revisions:
...
r3839
r3825
r3823
r3821
r3820 (undo only the changes in drscheme/private/debug.ss)
r3792
r3791
They will be re-done after v352 is released
svn: r3843
2006-07-27 17:12:18 +00:00
Robby Findler
967cd9ab14
fixed PR 8190
...
svn: r3839
2006-07-27 14:10:55 +00:00
Robby Findler
ea3c2b9743
sped up or/c (probably) and fixed ordering in printout of or/c contract names
...
svn: r3825
2006-07-26 17:07:47 +00:00
Sam Tobin-Hochstadt
aac8dfdbe5
match: Don't ever avoid let-binding the matched expression (since
...
identifiers can have non-trivial effects). Bug pointed out by RMC.
svn: r3813
2006-07-25 19:10:14 +00:00
Robby Findler
73ce86e94b
fixed PR 8166
...
svn: r3701
2006-07-13 19:29:04 +00:00
Robby Findler
6575c9c58d
fixed performance problem with (provide/contract (struct ...))
...
svn: r3698
2006-07-13 14:49:12 +00:00
Sam Tobin-Hochstadt
1c46dde5dc
Factor out check for constant data into match-helper.ss
...
Use in parse-quasi and render-test-list-impl.
Add support for keywords.
svn: r3690
2006-07-12 19:08:55 +00:00
Sam Tobin-Hochstadt
b42a11d12d
match.ss: abstract some boilerplate, and use syntax/loc when doing conversion to plt-match
...
match-helper.ss: add helper macro
render-test-list-impl.ss: fix hygiene bug in checking for non-linear patters
(thanks to Ryan Culpepper)
gen-match.ss: Fix error reporting location in match errors.
(thanks to Ryan Culpepper)
svn: r3689
2006-07-12 18:59:07 +00:00
Robby Findler
0d07f36ab7
added first order checking and some stop-gap checking for sub-structs
...
svn: r3675
2006-07-10 20:57:33 +00:00
Robby Findler
49667529da
improved running time of contracts and moved some provide/contracts to the bottom of files (not necc yet, but may become necc)
...
svn: r3665
2006-07-09 21:07:04 +00:00
Robby Findler
79ae279b79
extended or/c to support multiple higher-order contracts
...
svn: r3606
2006-07-06 02:08:12 +00:00
Matthew Flatt
ebe051694d
350.3
...
svn: r3571
2006-07-01 18:53:09 +00:00
Robby Findler
6cd4b0009b
generalized and/c
...
svn: r3422
2006-06-20 20:49:18 +00:00
Matthew Flatt
f272ae9d7e
define-member-name and member-name-key
...
svn: r3415
2006-06-19 13:04:54 +00:00
Matthew Flatt
9877a98a00
inner default expr shouldn't evaluate when a target is available
...
svn: r3094
2006-05-28 11:49:41 +00:00
Matthew Flatt
12f990e663
fixed define-match-expander to certify properly
...
svn: r2868
2006-05-06 15:42:44 +00:00
Matthew Flatt
9f513d240e
fix cert handling for init, init-field, and field
...
svn: r2823
2006-04-27 20:30:16 +00:00
Robby Findler
0ad4118f6f
fixed image.ss to handle the case when positive and negative infinity are supplied to overlay/xy and also limited one-of/c's inputs
...
svn: r2659
2006-04-11 13:53:53 +00:00
Robby Findler
1c97b4c21f
fixed PR 7999 and added one-of/c to the contract library
...
svn: r2650
2006-04-10 03:54:55 +00:00
Eli Barzilay
16f01a1109
{quick,merge}sort -> sort
...
svn: r2569
2006-04-01 12:24:15 +00:00
Robby Findler
ea9d5bfe8b
improved internal contract stuff
...
svn: r2546
2006-03-30 19:05:54 +00:00
Robby Findler
cf86c57215
merged revision 2489:2523 from plt/branches/robby -- somehow contract-guts.ss came out messed up; I replaced it with the actual latest version from the branch and things seem okay
...
svn: r2524
2006-03-28 00:38:43 +00:00
Robby Findler
5e2f5d86de
re arranged the file names in the contract library and exported a few more things from the main library to satisfy plai
...
svn: r2488
2006-03-23 17:22:26 +00:00
Robby Findler
8617ca8fcd
defeats the inlining optimization by making procedure bodies big in order to do lazy contract checking
...
svn: r2486
2006-03-22 21:12:53 +00:00
Matthew Flatt
d2737c73a4
replace same-closure with procedure-closure-contents-eq?
...
svn: r2476
2006-03-21 15:28:59 +00:00
Robby Findler
bb9b8eb90e
finished lazy data structure contracts
...
svn: r2458
2006-03-19 00:03:48 +00:00
Robby Findler
d8217b9d27
added first stages of improvments to contract library to support lazy structure contracts. not yet complete, but contract system is in working order, so committing
...
svn: r2452
2006-03-18 05:33:08 +00:00
Matthew Flatt
17670dd89d
moddep contracts and testing
...
svn: r2407
2006-03-10 03:35:23 +00:00
Robby Findler
7249080888
svn: r2393
2006-03-08 17:23:45 +00:00
Robby Findler
873e71a9dd
fixed PR 7927
...
svn: r2341
2006-03-02 02:48:40 +00:00
Robby Findler
3172ffd027
added contract-violation->string parameter
...
svn: r2314
2006-02-24 15:37:58 +00:00
Robby Findler
106c19a461
added tests for or/c ordering and and/c ordering and fixed name of the or/c contract (so it doesn't claim to be a union contract anymore)
...
svn: r2100
2006-02-03 04:07:25 +00:00
Robby Findler
c43a6f2821
added or/c as alias for union
...
svn: r2059
2006-01-31 16:29:12 +00:00
Robby Findler
f3a8a1895d
minor improvement to provide/contract expansion (making it smaller)
...
svn: r2033
2006-01-30 01:30:47 +00:00
Robby Findler
edc4b96987
improved expansion of -> contract combinator to generate less stuff and got a very slight performance improvement. also split up contract implementation into multiple files
...
svn: r1956
2006-01-25 04:44:49 +00:00
Robby Findler
12c7c0b6c6
added this, bound in ->r and ->pp contracts, when used in object-contract
...
svn: r1841
2006-01-16 18:42:11 +00:00
Matthew Flatt
196a6fdff3
transplant-output-port needs to return #f instead of 0 when failing to write bytes
...
svn: r1593
2005-12-12 16:55:36 +00:00
Matthew Flatt
81c837ad26
export inherit-field
...
svn: r1496
2005-12-02 19:30:57 +00:00
Matthew Flatt
78622b7bb3
moved code out of macro expansion and into functions
...
svn: r1409
2005-11-25 22:50:56 +00:00
Sam Tobin-Hochstadt
4d6d674d9f
Factor render-test-list module into 3 units.
...
- getbindings contains defs for next-outer, create-test-func, getbindings
- ddk-handlers containts all the ddk junk
- render-test-list-impl contains render-test-list and simple dependencies
- render-sigs contains the signatures for all 3
Add define/opt to render-helpers (maybe this should go in etc.ss).
General cleanups in ddk-handlers.
svn: r1296
2005-11-12 16:42:23 +00:00
Sam Tobin-Hochstadt
bb69014fc7
render-test-list:
...
- cleanups and removal of quasisyntax/loc
svn: r1281
2005-11-11 18:35:08 +00:00
Matthew Flatt
e46ea7dbb2
fixed mapped id application context
...
svn: r1198
2005-11-01 20:13:36 +00:00
Matthew Flatt
f3a67ccb9a
added object-method-arity-includes
...
svn: r1123
2005-10-22 01:56:45 +00:00
Robby Findler
71a5040785
fixed pr 7628, ->d now checks the domain contract before partially applying the range function
...
svn: r1042
2005-10-11 12:57:57 +00:00
Matthew Flatt
57d39569fe
removed #kd, fixed :interface
...
svn: r944
2005-09-29 20:06:09 +00:00
Matthew Flatt
63e051aee8
removed unused :ucall
...
svn: r938
2005-09-29 15:50:14 +00:00
Matthew Flatt
74a64f50da
avoid leading colon for id
...
svn: r937
2005-09-29 15:49:48 +00:00
Sam Tobin-Hochstadt
d96e47c4b7
plt-match.ss/match.ss:
...
- don't export match:test-no-order, which is only used in generated code
test-no-order.ss
- reformat code
- use ormap instead of let loop
render-test-list:
- add define/opt sugar
- remove a lot of pointless stx arguments
- remove a lot of [quasi]syntax/loc
gen-match:
- use internal define instead of let
- remove quasisyntax/loc
- reformat
- remove pointlessly optional argument
coupling-and-binding:
- reformat
- use memf instead of custom loops
svn: r908
2005-09-23 19:55:12 +00:00
Sam Tobin-Hochstadt
24b6ae4b32
Match:
...
- Simplify code for getter and setter handling.
- Fix cons patterns
- Reformat code to make it more readable
svn: r822
2005-09-09 22:28:47 +00:00
Sam Tobin-Hochstadt
6f8d1ef4f2
getter-setter:
...
- Fix bug in handling of structures with set! patterns
nested inside other patterns.
test-structure:
- add placeholder documentation for fields
- use #f instead of (make-inspector)
svn: r812
2005-09-09 15:58:34 +00:00
Robby Findler
442e9fad32
,
...
svn: r531
2005-08-02 04:12:41 +00:00
Robby Findler
b01290c3ef
fixed bug in provide/contract
...
svn: r411
2005-07-21 00:22:36 +00:00
Robby Findler
4b0e802fe4
fixed bugs dealing with super structs in provide/contract and fixed (newly exposed) bugs in mrflow
...
svn: r391
2005-07-18 13:06:30 +00:00
Robby Findler
20aa3cef02
made struct library work better with copy-struct; still not perfect
...
svn: r381
2005-07-16 04:41:29 +00:00
Sam Tobin-Hochstadt
b752dcddef
Fix two bugs caused by clean ups, by adding requires of match-helper and provides of match:test-no-order.
...
Fix totally broken handling of structs with immutable fields, as reported in bug 7398.
svn: r354
2005-07-05 22:22:02 +00:00
Robby Findler
4070be1c1a
exported coerce-contract
...
svn: r353
2005-07-05 21:37:21 +00:00
Matthew Flatt
3d8c40afe4
fixed verify- ops to take old-format exploded signatures
...
svn: r277
2005-06-30 16:40:13 +00:00
Robby Findler
e3b5ba8ef8
moved contract library to private, in order to export a few more names to special places
...
svn: r272
2005-06-29 23:33:51 +00:00
Matthew Flatt
0d4bc2cd9d
299.107
...
svn: r259
2005-06-28 17:01:03 +00:00
Matthew Flatt
e4a71a9b3c
match phase clean-up and minor contract-expansion improvement
...
svn: r232
2005-06-22 21:31:11 +00:00
Eli Barzilay
daa18fcba0
typos
...
svn: r66
2005-06-08 00:28:39 +00:00
Eli Barzilay
017d151d59
Adding collects, with all the right properties (except eoln-style).
...
svn: r3
2005-05-27 18:56:37 +00:00