Commit Graph

1155 Commits

Author SHA1 Message Date
Carl Eastlund
a5d6cf0cd4 Added unstable/cce/match macros to unstable/match.
original commit: a22a1a4c1561389c320b297811ff29adda9b1f44
2010-06-06 20:29:55 -04:00
Carl Eastlund
544d9dd599 Renamed bindings from unstable/hash and unstable/debug that will clash
with subsequent adaptation of (planet cce/scheme) to collects/unstable.
These bindings are temporary, and will be replaced in the adaptation.

original commit: e52fb81aacb27318903a407eb9ca9225557f2093
2010-06-06 19:57:15 -04:00
Sam Tobin-Hochstadt
420d38ec9c Add require to base env to fix tests.
original commit: 0199e11edd314c0c7270a0875065799ccf1c64a3
2010-06-02 11:26:48 -04:00
Matthew Flatt
80e25e5cb0 try to fix Typed Racket after 'apply' changes
original commit: 4ebe2a0f52e23085b719752437cdededf45975f6
2010-06-01 21:25:54 -06:00
Sam Tobin-Hochstadt
6b35e1cb24 Test for PR 10946.
original commit: 0e3c2b71cc827236f4695e0271b869c416489557
2010-06-01 13:38:45 -04:00
Vincent St-Amour
58c87429da Changed the types of some numerical operations to be closed on naturals.
original commit: 2229173b82b295a74269a11b9ff360a840f15b8f
2010-05-29 11:31:47 -04:00
Sam Tobin-Hochstadt
30120ded59 Change `typed-scheme' numerics.
- `number?' no longer `real?'
 - Number no longer Real
 - remove obsolete environments
 - Fix tests to use Real where necessary.
 - Fix typed/mred and typed/framework
 - Fix insert-large-letters to use `sub1' for type-safe loop

Merge to 5.0.

original commit: d323a794e86993dc6a594d3d732d1cd623945d21
2010-05-28 19:24:46 -04:00
Vincent St-Amour
999ff9ebfa Documented the for: macros.
original commit: 046d95293ac806e628bc804548cf3189598959d1
2010-05-28 19:05:44 -04:00
Vincent St-Amour
d7ef7a2bad Disabled multi-valued seq-exprs in the for: macros because using them
triggers an internal error in the typechecker.

original commit: e9a00146303991e4517fc0f406c484f1f6cca646
2010-05-28 19:05:44 -04:00
Vincent St-Amour
506bf7890c Wrote tests for the for: macros.
original commit: c92ae7385976f99bb5aa3d7a0ee29950d38a3d30
2010-05-28 19:05:44 -04:00
Vincent St-Amour
19a6f3f61d Added the for*/X: macros.
original commit: 49caa00890a6bc89bb80210e041cc443cb5df2a8
2010-05-28 19:05:43 -04:00
Vincent St-Amour
a3edb55e69 Punted #:when clause expansion in the for: macros to their
non-annotated counterparts, except in the case of for: itself, where
it doesn't break the semantics of the underlying macro.

original commit: 08baa400c3cc03de6a5f7181a15f960238f1eaaa
2010-05-28 19:05:43 -04:00
Vincent St-Amour
48c3edca84 Added the for/lists: and for/fold: macros.
original commit: 1ec6bd448b4dc325603ed41ec81cf04cc33866b8
2010-05-28 19:05:43 -04:00
Vincent St-Amour
7ef168c27d Better support for #:when clauses in the for: macros.
original commit: 3518428635a7adb9f591d4cb9b8905e8add439ee
2010-05-28 19:05:42 -04:00
Sam Tobin-Hochstadt
8c0e9178ac Guard type-equal? test.
original commit: 8194bcc4d41c79c39cb0a4a13a810f2b6bbc35d3
2010-05-27 12:46:37 -04:00
Sam Tobin-Hochstadt
2681178ffc Avoid requiring old base-types.
original commit: 9701ae0065dbc54f36059b20a78a917a20ae18e5
2010-05-27 10:56:18 -04:00
Sam Tobin-Hochstadt
53c630bc14 Simpler has-name? implementation.
original commit: bd0bcda85e0526e22b31a8dd64dbaf083d0d992a
2010-05-27 10:50:15 -04:00
Sam Tobin-Hochstadt
97c4253166 Fix test for new `do:' behavior.
original commit: 63dbde1e9eff5cf7b4d2965a6d26fbc2dc7280e9
2010-05-27 10:10:26 -04:00
Sam Tobin-Hochstadt
371934cf82 Fix error message for multiple values.
original commit: d4a8c52c7102778e6b1ef8fae8b5c75774069487
2010-05-27 10:10:26 -04:00
Sam Tobin-Hochstadt
b1e9e9ea82 Better type for `round'.
original commit: 40c77586a059efc6a09a6ef0bdf73a35808f24b0
2010-05-27 10:10:26 -04:00
Vincent St-Amour
c7db08fcf7 Typed Scheme's optimizer now recognizes specialized (safe) float
operations.

original commit: e3b994abfffb0ebc3a5460a0a8730441875ebbb1
2010-05-26 19:48:30 -04:00
Vincent St-Amour
3e3b203726 Fixed a bug in typed Scheme's optimizer when using binary arithmetic
operators in a unary fashion with floats.

original commit: 762f108c04b78f14d851b6b93b5bf0c873658399
2010-05-26 19:48:30 -04:00
Vincent St-Amour
1bd4bf1e82 Extended the type signatures of bitwise operations to be closed on naturals.
original commit: 664ef2c0a3bb478634591b596f2473f249095e4f
2010-05-26 19:48:29 -04:00
Vincent St-Amour
312671d85d Added the for:, for/list:, etc macros.
original commit: 5213f54f56e6d9d1a14b16fd0348495a20a648e9
2010-05-26 19:48:15 -04:00
Vincent St-Amour
3bbf39b86a Rewrote do: to expand into do.
original commit: 23f30af459b4157c87b62dff535cdd0b7eb46927
2010-05-26 19:20:32 -04:00
Eli Barzilay
4306ef78a7 A few more stray "racunit"s.
original commit: 5c702976c216362aab695a1c973fb17948b23149
2010-05-26 15:21:55 -04:00
Sam Tobin-Hochstadt
3355f0d731 Fix Typed Scheme printing of types.
Merge to 5.0.

original commit: 85b59a2f4c99e19948865cabbcfcc0d9b7cca6c0
2010-05-25 07:58:06 -07:00
Sam Tobin-Hochstadt
09151b1037 Remove `define-struct' from typed/racket.
Closes PR 10619.

original commit: 3885ba4f543626e9fa1df8d4580cdad907ce5a40
2010-05-25 00:09:04 -07:00
Sam Tobin-Hochstadt
f5c6d808af Test for former bug. Closes PR 10470.
original commit: 775e1b06a577a1306ab50de05174a6e26f944d40
2010-05-25 00:09:03 -07:00
Sam Tobin-Hochstadt
987521b9eb Check that at least one require spec is provided.
Closes PR 10617.
 Merge to v5.0.

original commit: 27e971dce20634fa6be551fecd64e639fbd909aa
2010-05-24 22:33:31 -07:00
Sam Tobin-Hochstadt
1c955c4e56 Better internal error messages.
original commit: 460bb348e10f07534bc74e7f91b8b4bc8655ac68
2010-05-24 14:05:05 -07:00
Sam Tobin-Hochstadt
bbf633a95c Tests for bug found by David Van Horn.
original commit: af689b253188d61ae12c01f0f0240817c767c474
2010-05-24 14:04:43 -07:00
Sam Tobin-Hochstadt
e345eb7448 Print empty filters as -
original commit: b21f70408687afa5617230478146ece76d71d53b
2010-05-24 14:04:01 -07:00
Sam Tobin-Hochstadt
af4ff86f52 Remove tc-toplevel from the typechecking unit.
original commit: 986318065d71817c59c9571e72fe8abcce4944cd
2010-05-24 14:03:14 -07:00
Sam Tobin-Hochstadt
5ba6d3297f Only do abstraction of filters at `let's.
original commit: 5b0f705b8374a3a136250a40560d4e5e00c6fba3
2010-05-24 14:01:00 -07:00
Sam Tobin-Hochstadt
7692d06741 Fix parsing of All on RHS of ->
original commit: f320d36e9c7fc2698d1becff28511dd8413430da
2010-05-24 13:26:29 -07:00
Sam Tobin-Hochstadt
b656915497 Improve verbose printer.
- Fewer newlines.
 - Avoid printing hidden fields.

original commit: fac0e197cfe75a4a811b0d953674731e8be14e7b
2010-05-24 13:23:37 -07:00
Sam Tobin-Hochstadt
3a0485de2b Improve type of count and vector-count.
original commit: 601e693b01e3091612c3690d834becd0a83d69fb
2010-05-22 18:07:50 -04:00
Sam Tobin-Hochstadt
3257de4bff Document Exact-Nonnegative-Integer
original commit: e6d85175f3713d7e65bdc0219853ff43a94f3e48
2010-05-22 18:03:18 -04:00
Vincent St-Amour
8a00140b63 Fixed a bug with Typed Scheme's do: with no finish-expr.
Include in 5.0 release.

original commit: fece1f6d03caea796b99921f1979a652e1a6b97c
2010-05-21 19:31:43 -04:00
Vincent St-Amour
00444e8b41 Extended the type signatures of trigonometric operations.
Include in 5.0 release.

original commit: 88dc30aa3c1fcc0707a440aa9e9558d0e1764bb5
2010-05-21 19:31:42 -04:00
Sam Tobin-Hochstadt
5a0e07e296 More precise types for: truncate, floor ceiling
original commit: 230f1a59c6bb51bf69c1651cadb3a77868bcbef5
2010-05-21 10:41:24 -04:00
Sam Tobin-Hochstadt
c679415de3 Add test file.
Closes PR 10594.

original commit: e9ac3651a47233a278eb332e011cd24a1c042bbc
2010-05-19 15:22:22 -05:00
Sam Tobin-Hochstadt
291937c278 Allow expected type to have weaker filters and objects.
Closes PR 10729.

original commit: 9fe3747a19e38d2041814d897f7db0e67d02a0e0
2010-05-19 15:14:18 -05:00
Sam Tobin-Hochstadt
1e25674287 Allow recursive types in type annotations for `list'.
Closes PR 10562.
 Tests for fixed bugs.

original commit: 7e9313bad3c8f8b7d6e0241f6904dce45ac77786
2010-05-19 15:14:18 -05:00
Vincent St-Amour
d27153b74c Added logging to typed Scheme's optimizer.
original commit: 3e757d0fb199d0cd565d2c094584a737be00942f
2010-05-19 13:10:37 -04:00
Vincent St-Amour
e78937195c Extended the typed Scheme optimizer to handle all the core forms.
original commit: 7adedacf2b6acb1c8cea34aae4e8e12009141adf
2010-05-19 13:10:37 -04:00
Vincent St-Amour
a781b50533 Extended typed Scheme's optimizer to traverse more forms.
original commit: b543177868f97a7cfe0bdf57f555da4d580ef726
2010-05-19 13:10:37 -04:00
Vincent St-Amour
1f7ab8285d Typed Scheme's optimizer can now generate unsafe car and cdr.
original commit: f2edae0e9a42e0bdb5c53224a3525edc8a6fd4d7
2010-05-19 13:10:37 -04:00
Vincent St-Amour
f824817aa9 Wrote tests for the new pair accessor type signatures.
original commit: 790658886b043085ec9f325e08565e52304cdd85
2010-05-19 13:10:36 -04:00
Vincent St-Amour
40360c095e Added some special cases to type signatures for pair accessors.
original commit: f77e4eeb418ffc1a626d40b97e56d1cfbac6c47d
2010-05-19 13:10:36 -04:00
Vincent St-Amour
3ba7e83662 Fixed a typo in typed Scheme's base env.
original commit: eb95b35a12e886f6678f62f69990b4553684680c
2010-05-19 13:10:36 -04:00
Vincent St-Amour
e381611808 Added type signatures to more pair accessors in typed Scheme's base env.
original commit: 849ee86c855999daf91947bd26fadb4e296dfaa3
2010-05-19 13:10:36 -04:00
Vincent St-Amour
548e080a03 Added type signatures for caar and some others to typed Scheme's base env.
original commit: b64fb126f652a239404413db2db87c239db9b967
2010-05-19 13:10:35 -04:00
Sam Tobin-Hochstadt
7bc6e2e79e Add test for PR 10318.
Closes PR 10318.

original commit: 3fd5c491728c720727785fec266d9893e163738b
2010-05-19 11:12:13 -05:00
Sam Tobin-Hochstadt
87ff7915f6 Documentation for heterogenous vectors.
Closes PR 10291.

original commit: 756bcc8a5e6509b2729ecfb5a20fed448224381f
2010-05-19 11:08:28 -05:00
Sam Tobin-Hochstadt
eb9f6a9916 Better type annotation support.
- Delay more errors for additional reporting.
 - Don't re-check expressions that were checked for inference.
 Closes PR 10098.

original commit: 638245e4c52f6bdaba7d62ac3d88a24462a09ace
2010-05-19 10:10:54 -05:00
Sam Tobin-Hochstadt
d30ba6ac02 More fixes for Vincent.
original commit: 535dc73fad6d22a5a057d18aa0ba4ff00f926810
2010-05-17 18:03:34 -04:00
Sam Tobin-Hochstadt
29cd6cac2f Fix repeated type ascription.
original commit: d2a1470ea51b5ca55656833f95dacd5ae7ba1285
2010-05-17 16:20:44 -05:00
Sam Tobin-Hochstadt
2776f825c2 Fix internal error detected by vincent.
original commit: 7ecf424ff88d0365da3be7af3051b0acc2cfe1ab
2010-05-17 16:06:27 -05:00
Sam Tobin-Hochstadt
15c23cc374 rename to .rkt
original commit: 0d1d61c725e58889dcda23a44ecb9b32f87e4002
2010-05-17 15:55:23 -05:00
Sam Tobin-Hochstadt
fcf6876f28 Fix for git/rkt
original commit: 68391b2d7fd0e9a092d663b56d761524aafc8d77
2010-05-17 15:36:28 -05:00
Sam Tobin-Hochstadt
3efae1a1dc rename to rkt
original commit: ce874bb0a16cc65348bfeaf3c2de958d86c3aa94
2010-05-17 15:29:12 -05:00
Eli Barzilay
1cc6dee899 "Racunit" -> "Rackunit"
original commit: 7b14a1f585d368bca8967072fbf3530d568e1391
2010-05-17 12:07:32 -04:00
Sam Tobin-Hochstadt
7b401c4e80 Add annotation to test.
Fix default case for `vector-set!'

original commit: 21b5c25c90a323d443b9611d9c0d30d30afb7dea
2010-05-14 11:00:23 -04:00
Sam Tobin-Hochstadt
479db80e36 sensible handling of literal vectors
original commit: ff36a6e8d1595cd0ee0c495efe240ebc23707419
2010-05-14 11:00:23 -04:00
Sam Tobin-Hochstadt
6f16d9e2d6 more sensible version of het vectors.
add vector-length, vector-set!

original commit: 7ac925695fadf3c8af20b2d65037c8bc6310f9b4
2010-05-14 11:00:23 -04:00
Sam Tobin-Hochstadt
597a8151b3 fix typo
original commit: 798a7f2a3c2189f14cc99143143be86c4eb0b2b5
2010-05-14 11:00:22 -04:00
Sam Tobin-Hochstadt
a4717c49ef Fix het vec with strange expected types
original commit: f40000c9c752b79d029cf2328425c5b012c16d47
2010-05-14 11:00:22 -04:00
Sam Tobin-Hochstadt
cd0c71d923 Finish het vectors
original commit: ec14f2c0b81ee4e5052555cbdabfd0a53c821bec
2010-05-14 11:00:22 -04:00
Sam Tobin-Hochstadt
094d75b4e6 more testing
original commit: 0558d11abb3233852f891d8f1dab2c1fefe50061
2010-05-14 11:00:22 -04:00
Sam Tobin-Hochstadt
2fdcb1ef9a mostly done with heterogenous vectors
original commit: 2c03f2223b55483bc02d66946097ed17e63529f3
2010-05-14 11:00:22 -04:00
Sam Tobin-Hochstadt
15b1f6378b Fix w/c to handle expression form of with-contract, and disable internal contracts.
original commit: 684ae395e648f22e38f1fa55aa6c0f48a60fbd5e
2010-05-13 14:41:59 -04:00
Sam Tobin-Hochstadt
bf8b4e8080 Don't generate extra filters unless they're useful.
original commit: 814c02664ee7892af26f6c0d0b8d90cbf55bdc4a
2010-05-13 13:37:24 -04:00
Sam Tobin-Hochstadt
15a844f9f3 fix more tests
original commit: a8931163918c4996a18b4cff2c69d9685fd3ef12
2010-05-13 13:36:54 -04:00
Sam Tobin-Hochstadt
7cff4534ab Don't generate type filters for mutated variables.
original commit: 8d59ee77e4eefca21f2e27140d2b8bcdf691105e
2010-05-13 13:24:41 -04:00
Sam Tobin-Hochstadt
1725a8a95a Fix incorrect tests.
original commit: dcf8507fd69ddd1c822feeb02e76a916a39e02fe
2010-05-13 12:35:14 -04:00
Sam Tobin-Hochstadt
2f061da0ea abstract even when out of bindings
original commit: a7a56ce856e4082b951be6c51d762eb19f97d5e7
2010-05-12 21:34:18 -04:00
Sam Tobin-Hochstadt
fe7130a964 fix more tests
original commit: 60aed123ce0ffbd4a9a153b239be7ea863b0dedc
2010-05-12 21:33:55 -04:00
Sam Tobin-Hochstadt
2ceba6db20 Fix typo
original commit: 264bf78559a67d49e87581944d25a9a6b0bd0150
2010-05-12 18:43:55 -04:00
Sam Tobin-Hochstadt
772abbfa81 Updates along useless paths are not errors.
original commit: 4ceda9970005b4da3b56b0e48a0d69de05e3fa54
2010-05-12 18:24:19 -04:00
Sam Tobin-Hochstadt
5fb5d7125b Allow dummy filtersets
original commit: 41f0152435e5f8ae7edefa75b1c4e965cf6349df
2010-05-12 17:31:58 -04:00
Sam Tobin-Hochstadt
d1153d23e0 more lost changes
original commit: daf43d1702800a47210489080f47a1bc14386ace
2010-05-12 17:25:53 -04:00
Sam Tobin-Hochstadt
35a4584929 re-add bindings lost in merge
original commit: 70d498beeb438e871c7d9b140584fc0d581af4ae
2010-05-12 17:22:13 -04:00
Sam Tobin-Hochstadt
620fb6182a debugging
original commit: dbe9a0f997461f209c6893479b2fe76f9c0384e0
2010-05-12 17:06:04 -04:00
Sam Tobin-Hochstadt
0517b50456 add simple test
original commit: 499f36ee69a9946a0ad06cc23110bb8362668c44
2010-05-12 17:05:09 -04:00
Sam Tobin-Hochstadt
136f0942bd Descend into path elements.
original commit: 6f7e88cfef024c4207d8187c0c9c2a4d0da19875
2010-05-12 17:04:43 -04:00
Sam Tobin-Hochstadt
b0b01fa807 flatten and filters before using them
original commit: e0c82c8ac6d4400c723d2ebace2f8efadd3fd923
2010-05-12 15:10:37 -04:00
Sam Tobin-Hochstadt
2f671bdbff Fix contracts.
Handle improper formals lists.

original commit: e7c8ffb834f78bbe83033a8a1dbbfa27c829eddc
2010-05-12 11:53:27 -04:00
Sam Tobin-Hochstadt
da5bdb841a switch to typed/
original commit: 5a8fac0bdf9f4a93d2407c309c7c7110d5c029b3
2010-05-12 11:52:11 -04:00
Sam Tobin-Hochstadt
507309df27 add test for bug found by vincent
original commit: a81de56b302dcf9a44c496967df3d40e3d5779f5
2010-05-10 17:55:29 -04:00
Sam Tobin-Hochstadt
ecbd63562b fix handling when subtype doesn't have rest arg
original commit: 2d1625336e2512ba4df3a93fc28682c32be48ceb
2010-05-10 17:53:48 -04:00
Sam Tobin-Hochstadt
5cb9ec4f09 add #:optimize keyword
original commit: a6e314d367062858e1bf23027638c8ee66ff31ea
2010-05-10 17:32:53 -04:00
Sam Tobin-Hochstadt
cd4744d11b use aux function to avoid generating useless filters
original commit: c031729e4bcd46fab66ed1c3b0aa6578563126ec
2010-05-10 17:03:21 -04:00
Sam Tobin-Hochstadt
d71a420fa4 more test errors
original commit: fe10457f4e3a662cc49e7c3b1b122bc6a389facd
2010-05-10 16:22:41 -04:00
Sam Tobin-Hochstadt
83e5843577 fix test suite errors
original commit: 08d0df52562a72507aa82db19b9bcef496315e55
2010-05-10 16:09:58 -04:00
Sam Tobin-Hochstadt
fb755e912c don't add to identifiers
original commit: 6baef71d57af67f230a0f8efb23fb2d7294f1e9c
2010-05-10 16:09:47 -04:00
Sam Tobin-Hochstadt
5912a6243a more contract fixes
original commit: 52c1f41a2036906ab6462abd5479053e2894b1ca
2010-05-10 15:50:24 -04:00
Sam Tobin-Hochstadt
5557322514 use racket/base
original commit: 1bbb857b18fa2fa6fb3be2387c51367d984a1799
2010-05-10 15:43:03 -04:00
Sam Tobin-Hochstadt
bd2e4e09ad fix contract error, use the same contract for drest everywhere
original commit: d75232baa0a6076b2e16e73afcdc3fa79eb682a1
2010-05-10 15:42:45 -04:00
Sam Tobin-Hochstadt
d483be21af avoid trying to reconstruct bogus arrow type, use dummy instead
original commit: 8461045e8cfaf2dbd4fffb88eed046c44276796a
2010-05-10 15:42:23 -04:00
Sam Tobin-Hochstadt
3dfdcf9722 fix `implied-atomic?'
original commit: b1a49470eeaae287a8b2754308c476c3257434af
2010-05-10 11:51:18 -04:00
Sam Tobin-Hochstadt
1da306516a rackety TS docs
original commit: 9ccd44e8fd023e6e607233cd46dfae31f90679d3
2010-05-09 12:35:59 -04:00
Sam Tobin-Hochstadt
9bf9016106 add typed/racket and typed/racket/base
original commit: 820040abc14381dc4b2ad7e4f11bcadbd821e089
2010-05-09 11:44:38 -04:00
Sam Tobin-Hochstadt
80e644c20d produce the correct type
original commit: 62af50867a825aab3572a442276921b205180a3a
2010-05-05 17:50:20 -04:00
Sam Tobin-Hochstadt
8335533ea2 minor test edits
original commit: 90f7f522f8b53d6460fc0da2113605e538969762
2010-05-04 19:47:38 -04:00
Sam Tobin-Hochstadt
153a5db15b Remove unnecessary requires which caused bizarre errors
original commit: ad537cce84c9c0f16183563419512c67ad1d9ccc
2010-05-04 19:47:38 -04:00
Sam Tobin-Hochstadt
fe3eee50bd avoid error when not transforming
original commit: 646bc0ecab63e350d69af5e8517503c2ab6d7fcb
2010-05-04 19:47:38 -04:00
Sam Tobin-Hochstadt
0c4ea82ca1 use racunit better to get expected/actual info
original commit: a728bae3cb83770c8e293e90acebe4ff1d7491da
2010-05-04 19:47:38 -04:00
Sam Tobin-Hochstadt
e30cd94960 checks can sometimes return #t
original commit: d7d157b441457e4bbcb07c328c9b8e350f3c92ce
2010-05-04 19:47:38 -04:00
Sam Tobin-Hochstadt
9781bbfbf4 Require '#%paramz at the correct phase (thanks ryan)
original commit: 087c5129e33458acb20ee4fa9c7d07a4735c719d
2010-05-04 19:47:37 -04:00
Sam Tobin-Hochstadt
9b40abb674 Don't wrap booleans, print typed values
original commit: 08ca97bf9e8650f204228ebee4252805db0fcb0f
2010-05-04 19:47:37 -04:00
Sam Tobin-Hochstadt
41634b8e34 use `test-begin' in test
original commit: d678e7657deee54921e332157367979b90e36971
2010-05-04 19:47:37 -04:00
Sam Tobin-Hochstadt
11ae3af9b3 add type for 2-arg `atan'
original commit: 9ab4887e580d17d756e70642168c8c2171b92df1
2010-05-04 19:47:37 -04:00
Sam Tobin-Hochstadt
7d53ae96a1 doc fix
original commit: 4183a3f32a254897d956f607a8b092767d098885
2010-05-04 19:47:37 -04:00
Sam Tobin-Hochstadt
b45d2f1a0c handle full generality of extend-parameterization
original commit: 4984345657eda9736b458cf73f97996e3da1ce95
2010-05-04 19:47:37 -04:00
Sam Tobin-Hochstadt
bbf8fe4b54 use hairy macro rewriting to make more of racunit work
original commit: b00b72a73a78f5b24a18fd79d907d987efe61530
2010-05-04 19:47:37 -04:00
Sam Tobin-Hochstadt
c1415c98c2 typed/racunit:
- fix more contracts
- make test tests not fail

original commit: 3ebd04550a14e52ed1ce44abe2c1d9f4b7c3374a
2010-05-04 19:47:37 -04:00
Sam Tobin-Hochstadt
9e9ee0aee4 fix some racunit types, add test case
original commit: 0a2b16f804502b169e1b1a7ab89fe25f5f6bb0ed
2010-05-04 19:47:37 -04:00
Ryan Culpepper
5f732f0a0a syntax/parse: literals, literal-sets, and phases (todo: docs)
typed-scheme: added missing import for literal

original commit: eff9147ddcf6b8fefb51cb1753ae678c2ac8f0ae
2010-05-04 14:12:49 -06:00
Jay McCarthy
80a48b4a6e Adding typed/racunit and fixing racunit exports vis a vis documentation
original commit: 445a143f5193e874d88bddfa9fc9ef1b52211f26
2010-05-03 22:30:32 -06:00
Sam Tobin-Hochstadt
419307edd1 add some vector functions
original commit: 105a560698dfa979ab592ceb3c443e9425f2c956
2010-05-03 18:13:12 -04:00
Sam Tobin-Hochstadt
db9ffaaae8 use `vector-member'
original commit: d5776a12666c507525df54c2f217f819dd407f33
2010-05-03 18:03:01 -04:00
Sam Tobin-Hochstadt
19c4c523f3 Add test for bug 10868
Add 'unit' command line arg to 'run.rkt' command to just run the unit tests

original commit: 34e64b650fd55c99aff3c79279663becd4da4249
2010-05-03 15:13:33 -04:00
Sam Tobin-Hochstadt
d4d0b811cd rename
original commit: 92a3085658a7addbfd8261a8c6573918d2a4235a
2010-05-03 13:18:56 -04:00
Sam Tobin-Hochstadt
55fb37ff16 fix problem reported by Sigrid on plt-scheme
original commit: 996405af9c5ba32c49d1051c85b573d1383e244a
2010-05-03 13:15:19 -04:00
Sam Tobin-Hochstadt
60812be652 fix PR 10868
original commit: 8c22099aec99b15867cbf47bff5f6998e5cab988
2010-05-03 13:07:30 -04:00
Sam Tobin-Hochstadt
a15708cba8 run .rkt files
original commit: 6b5305afe742cdb399d049c6732fc92ddabbad3d
2010-05-03 13:01:58 -04:00
Sam Tobin-Hochstadt
59971400af change error message for `define:' (fixes PR 10883)
original commit: 55929072bb5b8cb35a113678690418fde048390d
2010-05-03 11:35:30 -04:00
Sam Tobin-Hochstadt
bb79a8eb11 fix literal hashtables and pairs
original commit: abc83496b358557a96af72dbd3d8ffecf5982c9a
2010-05-03 11:31:27 -04:00
Sam Tobin-Hochstadt
11d39ed32c don't need d/c/p any more
original commit: 96da4276591c93687885780e58a14d06bd21962a
2010-04-30 16:04:22 -04:00
Sam Tobin-Hochstadt
3bfbc7da7f fix to work w/ racket renamings
original commit: b308a52240c9edcdd0c51bad5612314d44894b51
2010-04-30 16:04:03 -04:00
Jay McCarthy
b91ae08c0e Renaming rktunit to racunit
original commit: bc5cf30ebe1ba3743f7097d81ebf1297435e0201
2010-04-30 10:57:32 -06:00
Sam Tobin-Hochstadt
2addf717a0 rename to rkt
original commit: 459a675b90443b59e46bccae476a6f040fa8434d
2010-04-30 09:51:32 -04:00
Jay McCarthy
331f098693 Renaming schemeunit to rktunit and adding compat layer
original commit: f70ffca75665f86a380c3df846c8a63b1e941b8b
2010-04-29 15:00:02 -06:00
Robby Findler
8692a5c39e renamed the preferences to drracket:
original commit: fbf52d6957bde0011b654291b5ba3fd714f976c5
2010-04-29 11:03:06 -05:00
Jay McCarthy
d2b748a318 Changing unstable, xml, html, and web-server to be rackety
original commit: 7d1c7d874b6693e9d74722149a40ae43ac56e90f
2010-04-28 13:21:30 -06:00
Sam Tobin-Hochstadt
b922e088d6 move d/c/p
fix tc-e/t

original commit: b5acbe3168012661272f6ea3866efca693fa6c35
2010-04-27 19:29:10 -04:00
Sam Tobin-Hochstadt
18e9d91e0a Split filter operations into their own file.
Take into account the type of arguments in filter generation.

original commit: 27b0c01cdd4b07201ba95281dae4b24346e9dabd
2010-04-27 19:12:06 -04:00
Matthew Flatt
94184a7671 rename all files .ss -> .rkt
original commit: 28b404307793f041bb3363135a2968e283855318
2010-04-27 16:50:15 -06:00
Sam Tobin-Hochstadt
da59949249 substitute in the dtype
original commit: 35f090cde86420b1618ac4a127a30c380fb22699
2010-04-27 11:39:31 -04:00
Sam Tobin-Hochstadt
95dfc50d12 fix the fold for Class types
original commit: 826eeab7cb2fb738da9b56a8dd02010dc5174e53
2010-04-27 11:39:15 -04:00
Sam Tobin-Hochstadt
a288c49d64 remove debugging printfs, comment out fail test
original commit: 53a4e4a2e46b98f009487e3357b8eb6cc2a1b586
2010-04-27 10:23:30 -04:00
Sam Tobin-Hochstadt
f792d08edb strnum? works
original commit: 83c16719725e6aa423e9f2ef4adab8483def4436
2010-04-27 10:16:21 -04:00
Sam Tobin-Hochstadt
1505c7c3de so close
original commit: d935b63290b1aae41b61c772f9a3a728350a1b11
2010-04-27 09:50:39 -04:00
Sam Tobin-Hochstadt
6ae59dc036 fix contract error
original commit: 884375ce96155d795a927a6cec473b3078e185cf
2010-04-26 12:19:11 -04:00
Sam Tobin-Hochstadt
47dce89a25 more progress towards let
original commit: f7bf6d8a220e3d07eb27f6213273dcee5a585b46
2010-04-23 18:36:15 -04:00
Sam Tobin-Hochstadt
f50ace2729 progress towards let
original commit: 788630d26a479363f8abe244f70a9b36c107ebab
2010-04-23 16:40:05 -04:00
Sam Tobin-Hochstadt
d5a9325d48 implication works
original commit: 2d88d698c20722f59f82e0dd2352e1e1cd067234
2010-04-23 12:31:22 -04:00
Sam Tobin-Hochstadt
f09a00fb81 better filter printing
original commit: 64a6f7c3d53bcf81269513dc95f9911d55d36cb7
2010-04-23 09:59:00 -04:00
Sam Tobin-Hochstadt
8c25785856 fix asym pred not to use identifiers
original commit: 3311b2bb3a888d0d7f30f64fdd53667f1d464be6
2010-04-22 18:27:08 -04:00
Sam Tobin-Hochstadt
8ab2ccb53f add first steps in real solving
original commit: b0918cd8b90972bd0b134e2e67f20020444be65e
2010-04-22 16:46:06 -04:00
Matthew Flatt
8cf31c8de6 change #:module-info to #:language-info for consistency with module->language-info
original commit: 7503f8c6e948a7e949cc4bb48e4fad71f877c90c
2010-04-21 18:50:16 -06:00
Sam Tobin-Hochstadt
07d4b90de3 progress, fix some dumb bugs
original commit: 9c59782a37502e0cc45a0261df3930306201f930
2010-04-21 19:00:12 -04:00
Sam Tobin-Hochstadt
88ae88c901 everything but or and implies works
original commit: 0804e64695ab0d04a8db1d1f95e1fc8f14b32217
2010-04-21 18:13:13 -04:00
Sam Tobin-Hochstadt
f71591ed45 rename scheme to racket
original commit: bff6400fb4a6ba102f087b04ab38dfcaaf53b8a8
2010-04-21 16:06:44 -04:00
Sam Tobin-Hochstadt
f4bd6d4285 typecheck-tests compiles
original commit: a979bbdbdfbda13d499533d59f6c304575cfb5a1
2010-04-21 15:07:53 -04:00
Sam Tobin-Hochstadt
74aa20fcc0 annotated eta works
original commit: 5b5a6980d5906b8af376d7dedcd5e010517031d3
2010-04-21 14:57:05 -04:00
Sam Tobin-Hochstadt
4ee3734052 icfp-examples no longer errors
original commit: 86c6f3e9c06de95e950cc3a55b3235f44be78a8e
2010-04-21 11:41:26 -04:00
Sam Tobin-Hochstadt
f06b81ba16 eta abstraction seems to work
original commit: 462b7f1b92300fae8d4a9632ba97432426982aef
2010-04-21 11:34:04 -04:00
Matthew Flatt
7f3cf8a3ef move most of the 'scheme' collection to the 'racket' collection
original commit: c95a39875453e7f057395a7bf626e5d2ed732e7e
2010-04-20 15:24:48 -06:00
Sam Tobin-Hochstadt
ed36f40a4a finished with the examples
original commit: 8bea31d725a3178144d90b53c43dec12bf5c4a4d
2010-04-20 15:30:07 -04:00
Sam Tobin-Hochstadt
083b1e10ae add tests for occurrence typing work
original commit: 5f0597b83463080681d97830708a1a72e3f9bb38
2010-04-20 14:49:38 -04:00
Sam Tobin-Hochstadt
e3733c768f simple-occur now works
original commit: 99cfb23f22226a210192433db53351884df67b9f
2010-04-20 13:07:38 -04:00
Sam Tobin-Hochstadt
686171190a relocate object subst code, work on fixing for indexes
original commit: 7b875d58a974a959a38a84197b413f91de83b5d1
2010-04-20 12:39:25 -04:00
Sam Tobin-Hochstadt
8f93f965fc use the provide infrastructure for arr
original commit: 613f02a26637b4658715f8873a195979ec42f3a6
2010-04-20 12:38:00 -04:00
Sam Tobin-Hochstadt
5184639b22 re-enable abstract-filter
original commit: c3304b20f04bbe6732bac3ec52f0c6d7a76b47a3
2010-04-19 19:42:08 -04:00
Sam Tobin-Hochstadt
017accf104 Everything now compiles without names
original commit: f57ef37a6657ac43848ae09ac20fedbec438db93
2010-04-19 18:42:25 -04:00
Sam Tobin-Hochstadt
b797c59d21 start removing names
original commit: df1572231ea34907db23f7c930a19bea7e4e6249
2010-04-19 17:52:10 -04:00
Sam Tobin-Hochstadt
6890aab175 Update structure types to have constructor ids.
Use constructor to generate better contracts for poly structs.

original commit: 41e469d7aefd9aab480594caaba62dd7019ec0fd
2010-04-14 15:06:14 -04:00
Sam Tobin-Hochstadt
ce7df53455 test improvements
svn: r18814

original commit: 0c730ae50a4b60a982c0a1e6fee24875f2c630a1
2010-04-14 17:11:21 +00:00
Sam Tobin-Hochstadt
063e588872 Fix thinko in subtyping.
svn: r18802

original commit: 25a817e4aa7a74f3148b56ffb9f627ee4f0329f3
2010-04-12 22:23:39 +00:00
Sam Tobin-Hochstadt
f07551ef24 Enable proper reader and repl config for typed/scheme
svn: r18773

original commit: 0b55e34853ab9a4483703148aa522acaa532f698
2010-04-09 20:06:53 +00:00
Sam Tobin-Hochstadt
e1c724381b fix doc bugs reported by danny
svn: r18765

original commit: 24ad4005e802bca01e540f38aa6ea49fe7c3cfb6
2010-04-08 20:11:39 +00:00
Noel Welsh
707dae25ca Add type definition for unsafe-vector*-ref and unsafe-vector*-length, which have recently been introduced, and a test case for in-vector (which uses the above).
svn: r18667

original commit: cfab7a8d97c62814973a8b0e74089233873a896e
2010-03-30 13:33:45 +00:00
Sam Tobin-Hochstadt
af7254875a a new branch of the whole tree
svn: r18648

original commit: d4e0c16d55c167dbef9eefac8b4820fbada0f6b1
2010-03-27 14:49:58 +00:00
Sam Tobin-Hochstadt
8e2865524c add simple tests
svn: r18638

original commit: 752e93fc88111d4edd189eef4a3dc133dd7269d5
2010-03-27 00:31:29 +00:00
Noel Welsh
501766dde0 Add types for most of Byte and String Output (Section 12.3 of the Reference). Only functions that need an Event type (i.e. matching evt?) are missing. They are commented out as a placeholder for future additions.
svn: r18628

original commit: 302555cf0154206242d6f72f1a5572f76a16f536
2010-03-26 14:48:33 +00:00
Noel Welsh
e1072ebb22 Add the fx to fl conversion functions to Typed Scheme
Add tests for flonum operations to Typed Scheme test suite

Fix the compiler bug tests above uncovered

svn: r18609

original commit: af84b331a13c53709eaba9f0faf7af0c64a000a1
2010-03-24 13:18:37 +00:00
Noel Welsh
f18f8b8bf1 Add the full suite of fl and unsafe-fl operations to Typed Scheme
Correct an error in documentation of flmin and flmax -- they were documented as taking a single argument when in fact they take two.

svn: r18604

original commit: 7c552421792a3f91a504fefefa9e77768180b9d0
2010-03-23 12:24:50 +00:00
Noel Welsh
39e98488a7 Fix a problem generating contracts for FlVector exports. Add test for problem.
svn: r18603

original commit: cf017110a982fb24451691200dc05830136e9833
2010-03-23 10:30:24 +00:00
Sam Tobin-Hochstadt
47fbb81f64 add FlVector as a type
svn: r18559

original commit: 31911dba551fad0135cc8655585d352e611ca3c2
2010-03-17 17:00:14 +00:00
Sam Tobin-Hochstadt
8dfb2370e7 these operations do not exist
svn: r18558

original commit: fe68168e3d1c5139f74b9b4861151948b06ff4bb
2010-03-17 16:51:04 +00:00
Noel Welsh
ba3d01e519 Check that the FlVector type is exported. Currently this test fails.
svn: r18557

original commit: 5f6aeb364ff0007914809017a4e14f4f3bc65a53
2010-03-17 15:26:30 +00:00
Noel Welsh
9cf45f3392 Add FlVector types to Typed Scheme and bindings for all flvector operations in scheme/flonum and scheme/unsafe/ops.
svn: r18555

original commit: 39a1489403db3184b23622dfde17548d65681f6a
2010-03-17 14:49:29 +00:00
Sam Tobin-Hochstadt
3086c4e339 Actual contracts for classes. Yay sstrickl!
svn: r18547

original commit: b9902e514541039ac87d47c35e9bcd9d3f37d1f3
2010-03-15 18:21:15 +00:00
Stevie Strickland
7387b32825 Need scheme/class's init for use in class/c form.
svn: r18543

original commit: bf56a108fe3c3f05976223dd81dbbf5b80baed33
2010-03-15 09:04:10 +00:00
Stevie Strickland
d22cdbcee1 Add handling of by-name inits to commented-out class/c use in typed-scheme.
Also, fix class/c section of reference slightly by mentioning the role of
external contracts in class instantiation.

svn: r18542

original commit: 5a488ae7cbf9f973cf89169f5557c12e355a3f39
2010-03-15 08:57:41 +00:00
Stevie Strickland
78214ab410 Correct with-type so it handles result types of the form (values t ...).
svn: r18531

original commit: 7b831e86a6e70edafb2993f3169d891d27fa5d77
2010-03-14 02:32:20 +00:00
Sam Tobin-Hochstadt
0a828f2262 Prevent unbound identifiers from being in the base env.
Fix some bugs caught by this.

svn: r18526

original commit: 9035e2e58457bd635ceb739f3d021e30fc7262b2
2010-03-12 16:25:40 +00:00
Noel Welsh
19cdb4f096 Add tests for all the fixnum operations. This only checks that the operations have types; semantics and completely specified types aren't rigourously checked.
svn: r18523

original commit: 97924ffc65b5b5ded6f2b4436cde51ed00462e03
2010-03-12 12:13:10 +00:00
Noel Welsh
2545da16a9 Add scheme/fixnum to the list of require'd modules, meaning the type declarations for fixnum operations are actually bound to the correct functions and so Typed Scheme programs using fixnum ops will actually compile.
svn: r18522

original commit: a8b5f4275ac3118b027dbf679b5c4e024280c6f5
2010-03-12 10:58:26 +00:00
Sam Tobin-Hochstadt
db56dfd7d6 Null does not overlap with structs.
svn: r18508

original commit: b3be4f32f7dceb402dbfc2bce35a8db466c16219
2010-03-10 23:43:47 +00:00
Sam Tobin-Hochstadt
b207bb9c0f update docs to use `define-type'
document `define-predicate'

svn: r18498

original commit: 24b9078560d936d046fe14b3198432a3f64cbd1c
2010-03-10 00:17:33 +00:00
Sam Tobin-Hochstadt
2f1771b849 Add `define-predicate'
svn: r18497

original commit: c24daa5dbb2e4a503e81385620008b70d044f76c
2010-03-10 00:10:03 +00:00
Sam Tobin-Hochstadt
79c93700c7 Fix PR 10813
svn: r18477

original commit: 87f978e59ecb88b19391e2210b6b3cb550e4df25
2010-03-05 21:52:54 +00:00
Sam Tobin-Hochstadt
3edcfaf5f5 fix PR10810
svn: r18470

original commit: e703d52b945d51623a781dc97eda74a10430e1f9
2010-03-04 21:42:55 +00:00
Sam Tobin-Hochstadt
04dbfaf38e fix some unfortunate bugs
svn: r18433

original commit: b020c8dc216c48d52dab9a78134c34405210da81
2010-03-02 20:37:36 +00:00
Sam Tobin-Hochstadt
1e35d3a083 Use `current-contract-region' appropriately.
Maintain source locations.
Fix PR 10776.

svn: r18421

original commit: 65b12a2af3a487da88a0d354586e533516273d39
2010-03-01 23:43:15 +00:00
Sam Tobin-Hochstadt
b94868a43b Re-enable printing
svn: r18420

original commit: 3ea26dee8440f9e72bc51142e050eefccb04869a
2010-03-01 22:56:03 +00:00
Sam Tobin-Hochstadt
9eabaf2109 fix PR 10735
svn: r18419

original commit: 33db456f9ee83fe38e97ac1c006c5bb3dd0407c2
2010-03-01 22:51:42 +00:00
Sam Tobin-Hochstadt
ff6ad0c29d Fix bug 10763.
svn: r18418

original commit: 12257912e3a39efcd20bcd0ec3e778c630879577
2010-03-01 22:48:11 +00:00
Sam Tobin-Hochstadt
008ecc173f fix doc typo
svn: r18417

original commit: 079c430e89846fda4e6925abda664300d1142572
2010-03-01 22:32:48 +00:00
Sam Tobin-Hochstadt
b0a1fde7aa Add `with-type' for defintions, add #:result keyword.
Fix contract for top-arr.
Remove static version of printing conditional.
Fix brokenness in print-converting.

svn: r18416

original commit: 78c14e434b7f6dffc6c404d090b449b097e96cfb
2010-03-01 22:31:24 +00:00
Sam Tobin-Hochstadt
fd3a9e042a fix with-types requires on windows
svn: r18387

original commit: 68c46cca9a57835f38cb42e6eee45c86755f7cd8
2010-02-27 19:21:42 +00:00
Sam Tobin-Hochstadt
7e4367c9cd remove obsolete doc files
eliminate repeated expansion

svn: r18382

original commit: 6c4b1234bf7545fded38270fed92c886a0e49b48
2010-02-27 16:24:22 +00:00
Sam Tobin-Hochstadt
a47ed6d95a Fix tests to use `test-suite' to delay execution.
Move hiding of errors down in stack.

svn: r18381

original commit: 31f0b5e305f95af45772ff11e4b04bf332ead59a
2010-02-27 15:07:45 +00:00
Stevie Strickland
a92cd6cdce Add `unregister-type'
Add type regions.
Untyped lexical vars not an internal error.

svn: r18374

original commit: 8e3a67936eeb14fc08279a075966f93e35209f23
2010-02-27 01:26:16 +00:00
Sam Tobin-Hochstadt
cdb7b62f5e whoops
svn: r18364

original commit: 144a25ffd4abe289cbab74c4b353e404164b6a8a
2010-02-26 21:04:00 +00:00
Sam Tobin-Hochstadt
e3cf00137d fix no-check
svn: r18362

original commit: 5d3e46bb2f098eac10678e1d4d401c2f0401f382
2010-02-26 20:50:14 +00:00
Sam Tobin-Hochstadt
d98d962195 use new schemeunit
svn: r18361

original commit: 21d0dfcf09b7ef168f7d4e861aad2e3ee062352a
2010-02-26 20:44:30 +00:00
Sam Tobin-Hochstadt
36ee83368d add inst to no-check
svn: r18357

original commit: d06b3ed1df34d1ac9f0628eb3ca87073e40ca658
2010-02-26 19:59:40 +00:00
Sam Tobin-Hochstadt
0ad41fd737 fix obvious bug pointed out by noel
svn: r18351

original commit: 013b12b19d56e051fddd6bd09d6c07115088b14e
2010-02-26 15:15:43 +00:00
Sam Tobin-Hochstadt
56732a6d6e Re-enable typechecking of auto-language.ss
Add `syntax-e' as a path.
Turn on contracts for objects.
Refactor Noel's additions.
Fix `require/typed' at the REPL.

svn: r18345

original commit: 2e90dfc081a3160abaa49aff9f535a901999c6a5
2010-02-26 00:25:23 +00:00
Noel Welsh
bb22e41f6d Fix order of cases in case-lambda expressions for some unsafe-fx operations.
Add the safe equivalents of the unsafe-fx operations.

svn: r18334

original commit: dcb01829a0f13bcdb86f9eb7a794555a5aedc9d6
2010-02-25 13:00:55 +00:00
Noel Welsh
b7d27869fd Add types for unsafe fixnum operations. This allows support for some sequences; in particular in-range now works in some cases (though still requires type annotations).
svn: r18333

original commit: 3d95ef650c1908d79f9b2bf5e3086322cdb494bc
2010-02-25 11:48:33 +00:00
Sam Tobin-Hochstadt
43c22f41e5 fix comment, add test
svn: r18307

original commit: 1616e27b4b0a2a8cb1ad419933fdd38894c7a882
2010-02-23 21:36:53 +00:00
Sam Tobin-Hochstadt
349755c446 Fix bad hashtable type inference.
svn: r18284

original commit: f2ee3aa7b6a71320d00d75d0b18191dba2e2c23c
2010-02-23 02:05:40 +00:00
Sam Tobin-Hochstadt
bcebf867f4 revert this change, since it breaks insert large letters
svn: r18267

original commit: 8a11336b51936c0b465ed399f64579e2e73d75df
2010-02-22 20:06:34 +00:00
Carl Eastlund
8f366a3613 Renamed simple-contract and simple-flat-contract to make-contract and make-flat-contract.
svn: r18259

original commit: 1d6111c5328dc9b9ecfc14832879a7c47717d7a3
2010-02-22 02:51:16 +00:00
Sam Tobin-Hochstadt
b0a08fe0b8 providing static struct information to untyped code works
svn: r18198

original commit: 33c18b3985bce1bab5028c67e06eec5335722eb4
2010-02-19 23:27:06 +00:00
Stevie Strickland
ae00f56a11 Fix up Sam's use of make-provide/contract-transformer after Robby's change
to it for bug 10645.

svn: r18195

original commit: de859a88798b89c78da5386ab0a8bfdf76f118da
2010-02-19 21:57:03 +00:00
Sam Tobin-Hochstadt
3cfe752100 disable contracts
svn: r18156

original commit: d9f24d94e7887956ec497ea97721b7c4e9196634
2010-02-18 21:25:06 +00:00
Sam Tobin-Hochstadt
5a47ebf0c7 New representation for free variables, now stored in struct.
Interning now merely used to create key, eq? not = for types.

svn: r18107

original commit: 1039e68e034196550e4def3e9f0233e6751201ab
2010-02-17 00:09:38 +00:00
Sam Tobin-Hochstadt
03ae8d6f21 Improve some framework contracts, and provide scheme/base at phase 1 from typed/scheme.
svn: r18106

original commit: 0920b493c84cf2e8306325bd98f5ae9759acdd51
2010-02-17 00:02:44 +00:00
Carl Eastlund
0d5a01f2a7 Corrected types of hash-update and hash-update!
svn: r18093

original commit: 52f2ec2e30e7ffdb3d0f44d3cb2a07e52e0b5be7
2010-02-16 00:55:03 +00:00
Carl Eastlund
8c9670ca0c Added types for full exception hierarchy.
svn: r18092

original commit: 08b53c715d9116ecefb7e1dd83da6527b2c20348
2010-02-15 23:22:40 +00:00
Sam Tobin-Hochstadt
f25f361bbc remove debugging code
svn: r18087

original commit: 89da61307393a19dbf7ae90942c1301616939edb
2010-02-15 18:36:26 +00:00
Carl Eastlund
05c08898a6 Added automatic blame-tracking to poly/c contract in unstable (and updated use in Typed Scheme).
svn: r18075

original commit: 1b28ea1a6c1c499d0d4f5d0a13d2496c2bfc0ec8
2010-02-12 23:03:11 +00:00
Sam Tobin-Hochstadt
a61aef0339 Generate proper contracts for polymorphic struct types.
Document `Nothing'.

svn: r18074

original commit: 90c8fcff1194799ed6f522e7554d49571b1f3074
2010-02-12 21:57:58 +00:00
Sam Tobin-Hochstadt
b2ea0474f2 Fix printing of `Number' - reported by Noel.
Provide `assert' from `typed/scheme'

svn: r18062

original commit: e99b1d028c89c2b3b027f861260fa57d2790abf1
2010-02-12 15:49:58 +00:00
Sam Tobin-Hochstadt
00bd3adab8 More restrictive handling of contracts for the `Any' type.
svn: r18043

original commit: 8bf908d1061510198bb6a155fee7a25312bea714
2010-02-10 20:45:50 +00:00
Sam Tobin-Hochstadt
7eec279e96 Better error message when definition is missing. Fixes PR 10751.
svn: r18042

original commit: 39a8c288ec409cef59ec5a3cfec16b13a0a7c1b5
2010-02-10 20:32:53 +00:00
Sam Tobin-Hochstadt
e2b4318dfa More precise types for typed MrEd wrappers.
More precise types in auto-language.ss

svn: r18041

original commit: c224d2ebfc878ddb2758cdd409cacd2dbf49e891
2010-02-10 20:23:59 +00:00
Sam Tobin-Hochstadt
cacbfb9b91 Fix subtyping for keywords.
svn: r18025

original commit: 2276cb10d54bd24a35bcb75f856b9be254f1bb6d
2010-02-08 23:03:55 +00:00
Sam Tobin-Hochstadt
f6c223fc05 fix dumb typo
svn: r18018

original commit: 89eb249b00c307f9ff8af3094d7292b3b9939146
2010-02-08 18:21:43 +00:00
Sam Tobin-Hochstadt
0db7c6d821 Fix a number of bugs reported by eli
svn: r18017

original commit: 55a48ca594bc7e3834bfbebea7fc5a1967c278d1
2010-02-08 18:17:15 +00:00
Sam Tobin-Hochstadt
40b9514197 fix let/ec: and let/cc:
svn: r18000

original commit: bf77c690f4d1a97fb530ea23602bf590f32f2479
2010-02-05 23:00:07 +00:00
Carl Eastlund
f3030b5775 Oops, got the types of char->integer and integer->char backwards.
svn: r17991

original commit: f9ae636aead96beb7ceac5fbeb5a0fd2185c08ac
2010-02-05 06:24:44 +00:00
Carl Eastlund
779cdbe53f Added types for char->integer and integer->char.
svn: r17990

original commit: f2852257bb0987a0ffd5ca51d06ac0adf3d4a34d
2010-02-05 05:22:49 +00:00
Carl Eastlund
2d0c950305 Added types for missing hash table operations.
svn: r17989

original commit: 578637c691ec0301554d0170ff6ba713446c1790
2010-02-05 04:49:49 +00:00
Eli Barzilay
32dcd7960c A bunch of additional typos
svn: r17976

original commit: c88a5a685674ea70991a97f35972bd5144483e7a
2010-02-05 03:21:52 +00:00
Sam Tobin-Hochstadt
4c1cf6b520 Add supertypes for mutable types, so that predicates work correctly.
svn: r17971

original commit: 318833f4226d9249077c772f87ee705ecfd4c617
2010-02-04 23:39:15 +00:00
Sam Tobin-Hochstadt
70118d8ebe fix some contract errors
original commit: 492cab22cbebcdfeed9a4bc467d147b4722308e9
2010-02-03 11:44:10 -05:00
Sam Tobin-Hochstadt
3e18a985d7 new files
original commit: 1e6aaf5928d25a650e3642f84657c6cd78476672
2010-02-02 20:42:53 -05:00
Sam Tobin-Hochstadt
3842628342 new branch
original commit: 536b94c3052559ae51a63807d8190b01d97f7326
2010-02-02 20:42:22 -05:00
Sam Tobin-Hochstadt
b1a442d1f0 Stop using eq? for types.
More contracts.
Fix some contract errors.

svn: r17943

original commit: 9939f4b6194f61ff1bbed48ef3b36c7dba41363d
2010-02-02 18:09:25 +00:00
Sam Tobin-Hochstadt
cec76e7ad4 most of the way to real printing
svn: r17935

original commit: 8b120675bc02d0ad4396cc3a5ece7b5b19613972
2010-02-02 01:24:06 +00:00
Sam Tobin-Hochstadt
879e22a666 Progress on Rep.
svn: r17924

original commit: 94029a06c9af5dce0e7712cc1cc38e96e8b9b7ca
2010-02-01 15:51:32 +00:00
Sam Tobin-Hochstadt
30e08424ec merge to trunk
svn: r17877

original commit: 9789615ed9840f09a6708d27276cf892d334b653
2010-01-29 00:08:15 +00:00
Sam Tobin-Hochstadt
d20ee9bf2b progress on refactoring rep
svn: r17875

original commit: bbc195c0fb6d54bb645b163fe6540af342fbc004
2010-01-28 21:47:05 +00:00
Sam Tobin-Hochstadt
8d5eb1decf Fix the handling of with-handlers that returns multiple values
svn: r17823

original commit: af2ef07d05adc6ca454467f3f9fd3ed8a8f5a501
2010-01-25 19:51:16 +00:00
Sam Tobin-Hochstadt
c6c381a207 use syntax-parse
support #:predicate option to `define-typed-struct-internal'

svn: r17822

original commit: c9b246a8d2f15a27cc438b8827ec6eef0232b16e
2010-01-25 19:35:56 +00:00
Sam Tobin-Hochstadt
674c88a752 Improve `internal-forms'
First step to custom predicates in `define-typed-struct-internal'

svn: r17820

original commit: bb541fd03fa0b35e22f0c82f6c9b3a8a6d5b0591
2010-01-25 18:38:56 +00:00
Sam Tobin-Hochstadt
3dc58b3a44 improve internal error messages
svn: r17819

original commit: e493ba5c6ad1a53b01a50b2a80592baa694ece91
2010-01-25 17:23:19 +00:00
Sam Tobin-Hochstadt
0a8b1acb6f work on new guide
svn: r17814

original commit: e65535c88037da8c21876c9c4a7fcd62efdbe9d4
2010-01-25 15:36:56 +00:00
Sam Tobin-Hochstadt
9821c485c0 new doc branch
svn: r17813

original commit: e071050f7f498fc4c23c33facbe5880e9124cbfc
2010-01-25 14:48:11 +00:00
Sam Tobin-Hochstadt
5cb93424d5 Simplify pattern for expressions in type env.
Attempt to avoid doing local-expansion repeatedly.

svn: r17812

original commit: 2cd7fe5499fab307a6b2287111cdb02fa5fb06ab
2010-01-25 14:46:34 +00:00
Carl Eastlund
e9503a6993 Replaced uses of quote-srcloc with quote-syntax.
svn: r17757

original commit: 7f58c26709c9a97623f50ec812727daa080b155b
2010-01-19 23:25:07 +00:00
Carl Eastlund
d7fe71a64b Updated typed scheme to use a module path for blame.
svn: r17754

original commit: 87645ebd114088d1b1fb368df01c1ba2253eb90c
2010-01-19 10:44:27 +00:00
Carl Eastlund
2fda2984ab Updated local-expand of contract forms in require/contract.
svn: r17725

original commit: 9e540043bca10416a07cdb7dc36729cd62b648d9
2010-01-19 00:20:54 +00:00
Sam Tobin-Hochstadt
34bb0090a0 Correct typing for `or'.
svn: r17665

original commit: 3fc133a0b84476a121b129f41e2c260e0d4593c0
2010-01-15 19:39:46 +00:00
Sam Tobin-Hochstadt
12be4e80ab Syntax for predicates with non-empty paths
svn: r17660

original commit: 5e1b355e325a8a910911caaa25069b51eea7cd7b
2010-01-14 23:17:56 +00:00
Sam Tobin-Hochstadt
aac0a48ef4 update to the final version of this code
svn: r17658

original commit: d69c96cf06ccc0f6bef7734d679329e9fa320db1
2010-01-14 22:09:31 +00:00
Sam Tobin-Hochstadt
a1062c49f9 Types for the other `check-expect'-style forms.
svn: r17657

original commit: 104adf9c62a458e848019fc2331184c8c83ab29e
2010-01-14 21:24:47 +00:00
Sam Tobin-Hochstadt
8fd1b8c69e Paths for first' and rest'
svn: r17654

original commit: 1ab2a41092d9b64a3d7744bd7f0c3fea7248c021
2010-01-14 20:00:37 +00:00
Sam Tobin-Hochstadt
fba861f6df Typecheck `or' correctly.
svn: r17653

original commit: 33592b4f6c40faf63015fcf33e1874322007b03c
2010-01-14 19:53:28 +00:00
Sam Tobin-Hochstadt
46365587b2 Reject some cases of nested types.
svn: r17619

original commit: 91629fd31ace6700a6864c0db826c89e2987c1a2
2010-01-12 20:36:30 +00:00
Sam Tobin-Hochstadt
2022bc7b80 `reverse' is special on all tuples
svn: r17612

original commit: 81e963bd465ed66018506002a3b9a18f9c648493
2010-01-11 22:13:22 +00:00
Sam Tobin-Hochstadt
62d3dc1466 Propogate expected type through `reverse'.
New loop special case for `for/list'.

svn: r17609

original commit: 4fa4f6fd2d814de10e84300d1da76a311bf85160
2010-01-11 20:48:26 +00:00
Sam Tobin-Hochstadt
b7c5360562 `andmap' now works as a predicate in Typed Scheme
svn: r17575

original commit: f13453e8893ed86e7f90a596e80aed9e61755d89
2010-01-08 19:05:58 +00:00
Sam Tobin-Hochstadt
9364f5b9cc use of member, memq, memv as predicates working properly
svn: r17568

original commit: 05a0e722f9b64d0d53fb5b168181b467a4711ec7
2010-01-08 15:55:32 +00:00
Sam Tobin-Hochstadt
9e17eab6d8 Create new `typed/test-engine' collection.
Remove dependence of `typed-scheme' on `test-engine'.

svn: r17567

original commit: 0d46fcb48a2865dd8bae8e229e8ffb4e3a2c9521
2010-01-08 15:38:17 +00:00
Sam Tobin-Hochstadt
e0ceba24a8 `member' can now be used a predicate.
svn: r17554

original commit: b7f989943931dbd7aec58f238a9e9c66c1142f3b
2010-01-07 22:11:54 +00:00
Sam Tobin-Hochstadt
cffc0e2563 Better error message for functions that don't have the same arity as
the expected.
Add some tests for errors.

svn: r17551

original commit: eaad64d6120e70e59200fb2cec58f4af5a777ed4
2010-01-07 21:45:57 +00:00
Sam Tobin-Hochstadt
7b4164e4cb Error on duplicate type annotations.
svn: r17549

original commit: 62653d3c41b97de732aacc932bd123a8fd9ecb21
2010-01-07 21:20:45 +00:00
Sam Tobin-Hochstadt
6a1e740b74 Fix error messages on malformed All.
svn: r17546

original commit: 6199fc88670eab71e59e34aa244f6531547e7576
2010-01-07 20:31:23 +00:00
Sam Tobin-Hochstadt
0482c90bfa Improve error messages.
svn: r17545

original commit: a40d5c55693037f2a260512c74a6ef4d58d5ba5e
2010-01-07 20:16:05 +00:00
Sam Tobin-Hochstadt
b1869b6882 Improve error messages in the simple case.
Change 'typecheck to Type Checker in error messages.

svn: r17542

original commit: 08457d35e3faa1a8dccbcbfc6b193c63fda45fb6
2010-01-07 19:41:42 +00:00
Sam Tobin-Hochstadt
34e36bf350 More type names
Fixes PR 10646 (as it evolved)

svn: r17533

original commit: b71b1967641584d4ad1a5280598e9c6d60f929e3
2010-01-07 16:48:05 +00:00
Sam Tobin-Hochstadt
d82d82029e fix typo
svn: r17530

original commit: bcee60dfd8670192bce12693ebc7ce17c5ec5e67
2010-01-07 15:14:33 +00:00
Sam Tobin-Hochstadt
e044410d4e Fix `type-apply'
Fix duplicate filters

svn: r17522

original commit: a8e1c829c2e78744c20d6bd2b33bdb800f2a3b31
2010-01-07 00:55:51 +00:00
Sam Tobin-Hochstadt
a431e55952 fix lots of numeric types
svn: r17520

original commit: 8b7fb016923da57df016ade78089468a902483d2
2010-01-06 23:21:31 +00:00
Sam Tobin-Hochstadt
1eeef8e717 Put dynamic behavior of `check-expect' into functions.
Give those functions types.

svn: r17519

original commit: c7cb124c954cb533d31d2dac165697780322e7c6
2010-01-06 23:03:08 +00:00
Sam Tobin-Hochstadt
860376e33f Use syntax-parse and syntax-classes for type annotation macros.
Add `let-values:' and `let*-values:', fixes PR 9793

svn: r17516

original commit: 582ca03d1898ffc89b142e0e38398861c7d8549f
2010-01-06 22:15:18 +00:00
Matthew Flatt
32df5b59d0 change expand and local-expand to lift certificates
svn: r17439

original commit: e68aabd67a1187a878b1d3c15e3b38e5e430ed31
2009-12-30 17:27:38 +00:00
Sam Tobin-Hochstadt
77c8bacdb4 Add `make-list'
Fix `let/ec:'

svn: r17340

original commit: 5af212e8257663780515e4c842f973ba5ca2faaf
2009-12-17 19:01:23 +00:00
Sam Tobin-Hochstadt
16b7190098 Fix type of string->number
svn: r17313

original commit: b9fd34b925d37125553464bde37e0591dfaa16f8
2009-12-15 22:03:10 +00:00
Sam Tobin-Hochstadt
53fa4bb8ce fix typo
svn: r17294

original commit: 9b13bbb89cbd55f653a0f2b8c70a19de7c0be3db
2009-12-14 20:00:12 +00:00
Sam Tobin-Hochstadt
e820082489 Fix type of sqrt
svn: r17273

original commit: a1f647121d84c02b9224b11500db5a2732db6087
2009-12-11 23:08:48 +00:00
Sam Tobin-Hochstadt
2669a3269a Fix abstraction of implications.
Fix contract for lookup-typed/lexical.
Default cases for printing.
Abstract out indexing functions for Nat/Integer split.

svn: r17272

original commit: d0c8a19ce84ce1ef674c1c43e69b56ee7e0a63a2
2009-12-11 23:00:37 +00:00
Sam Tobin-Hochstadt
43c534dbdf fix sorting
svn: r17270

original commit: dde2c1fb18fa716928af955d889f205caacbc378
2009-12-11 17:09:51 +00:00
Sam Tobin-Hochstadt
09c67a3952 fix unit tests
svn: r17269

original commit: 3e497704aafae52c6c12ec7c45436573210212d9
2009-12-11 17:01:55 +00:00
Sam Tobin-Hochstadt
21f9c0ec16 fixes
svn: r17265

original commit: 791ec557876881eaeafc29a43b339b7a7d632d84
2009-12-11 00:25:59 +00:00
Sam Tobin-Hochstadt
4741518170 logic works properly now, it seems
svn: r17264

original commit: 92dbf999651f54b7efd8167427db9aa2f38512d1
2009-12-10 23:35:28 +00:00
Sam Tobin-Hochstadt
1261ce2cdb revert all of the interning changes since they didn't work
svn: r17262

original commit: 16c152e5a4ca1797f20c127d443e4689e292e55f
2009-12-10 17:15:17 +00:00
Sam Tobin-Hochstadt
b68c553664 checkpoint
svn: r17258

original commit: 5767e23d875f1248e23132fe11f5b6b4ffb5cc39
2009-12-10 15:32:17 +00:00
Sam Tobin-Hochstadt
e0d1c27a9e Fix parsing of quoted lists in types to produce list types.
svn: r17237

original commit: be77cee733f3dbe42bb9581710bbe8d94bfdd906
2009-12-07 15:50:51 +00:00
Sam Tobin-Hochstadt
c29e86edca conversion to contracts for optional keywords
svn: r17236

original commit: eae4c140fae6f31fec65a9296a0d3e17d13172d7
2009-12-07 15:34:54 +00:00
Sam Tobin-Hochstadt
4534ac0d19 PR 10647
svn: r17235

original commit: 70f085713dd47992f73e44cf088d71837bc818f0
2009-12-07 13:55:36 +00:00