Commit Graph

379 Commits

Author SHA1 Message Date
Sam Tobin-Hochstadt
3860454c7b Use stxclass for require/opaque-type
svn: r13682

original commit: c7809e5838816fee70e74622390d05c07b809062
2009-02-16 23:06:23 +00:00
Sam Tobin-Hochstadt
d009eb6db2 Use stxclass for `require/typed'.
svn: r13658

original commit: 54d17355c3fbcfdf15aec20c3d17e9a1e802ac06
2009-02-16 14:16:36 +00:00
Sam Tobin-Hochstadt
55f8d3f67e docs for provide:
svn: r13645

original commit: eba3b5d54d297673a7ba9ef2c1f8a036e99a88f0
2009-02-16 02:29:33 +00:00
Sam Tobin-Hochstadt
c7e0ef61e9 Add provide:
svn: r13643

original commit: 3205875736f90161f6773d9e7182f25a9f949cc2
2009-02-16 02:23:50 +00:00
Sam Tobin-Hochstadt
d6efd0acc3 Fix error message when polymorphic inference fails because of expected type.
Add test case.

svn: r13639

original commit: 02efc28dff062b60e0ee5e1c425b438d44ce9c28
2009-02-16 02:12:13 +00:00
Sam Tobin-Hochstadt
5312746af4 revert back to regular parse type
svn: r13619

original commit: 204806a13acc831a2c6954c4b9ef00e3239c2e86
2009-02-15 21:57:30 +00:00
Sam Tobin-Hochstadt
727c5bb0b0 subtype caching
svn: r13615

original commit: ed83737d5f6943687c2148457e582dc707363f34
2009-02-15 21:30:02 +00:00
Sam Tobin-Hochstadt
474f810031 Use stxclass for defintern.
Use stxclass for dt and de, and refactor/simplify.
Don't use the real union for unfolding mu types.
Add some descriptions to syntax classes for type parsing.

svn: r13597

original commit: 345abb820bf34bf7a9e1763a964b23143c07219f
2009-02-15 04:01:30 +00:00
Sam Tobin-Hochstadt
b0da5d65da re-enable printing
svn: r13581

original commit: 7830091d42fc7204957a9947d52ad7999d4abd6b
2009-02-14 20:48:26 +00:00
Sam Tobin-Hochstadt
fe0a947bb0 type keys now work, mostly
svn: r13580

original commit: e198478055f13631ec9ab6154edcf71c6c3f7ef3
2009-02-14 20:27:37 +00:00
Sam Tobin-Hochstadt
7bd2447d44 new branch initial commit
svn: r13578

original commit: e13c4b690d8c257de1e08252b1bb0199cb6a1f63
2009-02-14 16:03:25 +00:00
Ryan Culpepper
26d517cfa8 stxclass:
fixed scoping of attributes (wrt declare)
  added 'attribute' form
  added internal/external literals form

svn: r13574

original commit: 44efc7cb48ab4f231a024b037c80de6528b99b7c
2009-02-14 12:17:14 +00:00
Sam Tobin-Hochstadt
2076decb19 Default types for lambda formals.
svn: r13539

original commit: e61075a4fd7a40c2641f06553aecdfedff48ed23
2009-02-12 23:55:53 +00:00
Sam Tobin-Hochstadt
aafbd385f1 add Text% type, new function
svn: r13536

original commit: 80c8ac3b5f79924faa86bb671fe8e975b2e03f0f
2009-02-12 19:55:02 +00:00
Sam Tobin-Hochstadt
3ac20b4930 test fix
svn: r13456

original commit: 2b5413539433b9a0b2a8d615b74b16cdb49c6d95
2009-02-05 15:05:59 +00:00
Sam Tobin-Hochstadt
e2b8fc48b8 typed/mred
- use (Listof Any) instead of List
 

svn: r13439

original commit: 8416536f441d0bd1f010a75a264e02e096921840
2009-02-04 23:33:24 +00:00
Sam Tobin-Hochstadt
c1a6ffd46e fix expr attribute
svn: r13438

original commit: 9f77daab416df94eab23067bf333d0ee17eaef69
2009-02-04 23:07:09 +00:00
Sam Tobin-Hochstadt
2f4a6079e0 use exact-integer? instead of integer?
use (Listof Any) instead of List

svn: r13437

original commit: 52d711e0bdaddd9f516a63cbc19b7e478fde9c77
2009-02-04 23:06:35 +00:00
Sam Tobin-Hochstadt
bb5298992b take out work on paths, now compiles
svn: r13431

original commit: f867eea8c313ff53bdfa4edd9f4e5af0d89ef657
2009-02-04 20:57:28 +00:00
Sam Tobin-Hochstadt
cfab8a698f commit work to new branch, doesn't work yet
svn: r13427

original commit: 3ab3c8d3685d30c827c600d93a0930eff7e1902d
2009-02-04 20:19:41 +00:00
Sam Tobin-Hochstadt
5570ebc151 Fix handling of inexact integer literals.
svn: r13294

original commit: 2962c0bfa7f13a16406248abf891c574fe08b006
2009-01-27 17:55:10 +00:00
Eli Barzilay
86e0c521fc fix the type of > and indent
svn: r13275

original commit: 4288ba636ec132eb91ede11dd9ab1f24263d01e8
2009-01-24 21:13:15 +00:00
Ryan Culpepper
00daf4391f stxclass: created stxclass collection, with docs
svn: r13255

original commit: eb9fe4847f7eacc7ae69560872e337642a366ea8
2009-01-22 05:50:55 +00:00
Eli Barzilay
9f15554e02 newlines at EOFs
svn: r13105

original commit: d1a0086471bf5e9553a9b056b26286c427831d38
2009-01-14 03:10:47 +00:00
Sam Tobin-Hochstadt
76b262cb20 checkpoint
svn: r12954

original commit: ed48078523c1282d0df9f2133cfca50102f8849b
2008-12-30 19:47:21 +00:00
Matthew Flatt
547102b2b4 fine-tune typechecking index entry
svn: r12920

original commit: ec600c59bb9caa15f10fb68844677e56a4ce86dc
2008-12-21 13:57:46 +00:00
John Clements
d6c37aaf3d ...
svn: r12919

original commit: 424ec50bfb3b755103b0516c4a0e69d40ed67811
2008-12-21 10:00:47 +00:00
Sam Tobin-Hochstadt
1ec87308cf Lots of unit contracts, plus some bug fixing.
svn: r12820

original commit: 57f1dd0c4d41b044f99718b4e9a8158a0ce9ae80
2008-12-12 20:33:21 +00:00
Sam Tobin-Hochstadt
59481295ef Update typed collection to use struct inheritance.
svn: r12747

original commit: da7b6978eefdc1d476361cb56cbf577dbf32c825
2008-12-08 20:48:25 +00:00
Sam Tobin-Hochstadt
53a5f53d15 Make inference work in subtype tests.
Add test for top-arr.

svn: r12746

original commit: 08fa300d14085b678a0d0fd357613649e2e459b9
2008-12-08 18:26:58 +00:00
Sam Tobin-Hochstadt
d24a116dcb Handle top-arr in infer. Add convenience binding for function top.
svn: r12745

original commit: ea0873adb29728625be95474b79ff75dda6521fd
2008-12-08 18:24:33 +00:00
Sam Tobin-Hochstadt
48f5927093 Initialize `infer' for env-lang.
svn: r12740

original commit: 8c4789a627e812698a92e5f01b5e63e2b02ae966
2008-12-08 16:54:13 +00:00
Sam Tobin-Hochstadt
d0a893f9a1 Don't fail early here.
svn: r12729

original commit: 587ca084669594f2d58b8a9152127e78ec364acb
2008-12-08 03:37:24 +00:00
Sam Tobin-Hochstadt
fe7eb33c59 Fix time-apply, add test
svn: r12727

original commit: dd8e878cb442a7b9e6b7204552a3856073b6131d
2008-12-08 03:12:38 +00:00
Sam Tobin-Hochstadt
f168aa06c3 Add `current-continuation-marks'
Add some exns
Test require substructs

svn: r12726

original commit: 238b248ad5304189396008634e8a62780fb8fb7f
2008-12-08 03:10:12 +00:00
Sam Tobin-Hochstadt
df8d714918 Enable require-typed-struct with substructures.
Fixes PR 9053.
Move test to succeed.
Add some new bindings.

svn: r12709

original commit: e6eb482de48b8d82a09a9a18db71a2879a5e620a
2008-12-05 00:25:02 +00:00
Sam Tobin-Hochstadt
54035a23e6 bindings for the rest of scheme/bool
svn: r12548

original commit: e27ae4d4577ee78df53fb6afee0152007112e244
2008-11-20 22:30:29 +00:00
Eli Barzilay
8cfc33caf9 set svn:eol-style
svn: r12520

original commit: 447cea73d08c145385fc75a236cb705c5d2a705f
2008-11-20 00:16:25 +00:00
Sam Tobin-Hochstadt
8c097679ea Typed wrappers for file/gif and almost all of net/*.
svn: r12518

original commit: 7124d1e1a1a4e04f4fb23fb2a2d02a82fd6b5426
2008-11-19 22:51:24 +00:00
Sam Tobin-Hochstadt
ec1e13a286 Refactor require/typed/provide and dt into new private dir.
svn: r12517

original commit: 66b9b932ef7d5b5eec53731ec7f196ba4d6b263f
2008-11-19 22:50:54 +00:00
Sam Tobin-Hochstadt
bf579f30e7 Add scheme/tcp bindings.
svn: r12516

original commit: a4ac14b124cb70127897fcb117d4d9312ab17518
2008-11-19 22:50:10 +00:00
Sam Tobin-Hochstadt
3f501c1a2f Handle (Instance Foo) where Foo is unbound.
Return correct error behavior.

svn: r12410

original commit: 541a47f7fd943f77f82983bd52a837db47b736a8
2008-11-12 15:59:24 +00:00
Sam Tobin-Hochstadt
c9e6071981 Add collection for typed version of collections.
Start with mred and framework.

svn: r12409

original commit: 48c90f1c10857f0a486bacd3d01b71cb1f19ba90
2008-11-12 15:57:45 +00:00
Sam Tobin-Hochstadt
2a450f220f Store contract in Base type representation.
Fix tests, pattern matches.
Contract is *ignored* in equality testing.

svn: r12227

original commit: 477fa5581e1c9923df030e0eea86a62c367f014f
2008-11-03 23:58:29 +00:00
Sam Tobin-Hochstadt
ea2ca9402c Reorganize initial type definitions to use DSL.
Split special type names into base-types-extra.ss
Fix test require.
Base types are now require in main.ss

svn: r12203

original commit: e69f6e126ad851175ea2ca8ce5f8381d238d1a40
2008-10-31 17:12:16 +00:00
Sam Tobin-Hochstadt
6235dc2c8b Split typed scheme docs into guide and reference.
svn: r12202

original commit: 9851b3ab783dd81cbf7989f813563874e79a8b02
2008-10-31 16:52:35 +00:00
Sam Tobin-Hochstadt
76916addfd Fix types of syntax tests.
Test for double instantiation.

svn: r12164

original commit: acfba8a390e9f5638daad8ff8220da4ffc04f004
2008-10-29 02:15:50 +00:00
Sam Tobin-Hochstadt
3e692e993e Less polymorphic type for `syntax->datum'.
svn: r12163

original commit: c4d183fcfc7f405e50a7593485011cbc717be3ef
2008-10-28 22:40:43 +00:00
Sam Tobin-Hochstadt
e9bc755fb5 More specific type for quote-syntax (this hides an infinite loop)
svn: r12162

original commit: b7df781999305482ca8e4afaa7718a4af20adf9d
2008-10-28 22:40:19 +00:00
Sam Tobin-Hochstadt
3919075cb3 Handle multiple instantiation of a single expression.
svn: r12148

original commit: 0c44c5ce409512b2f2fb41b70d6ae9ef9a64259d
2008-10-27 20:06:31 +00:00
Sam Tobin-Hochstadt
3082052ffb Remove stray printf.
svn: r12147

original commit: d60ae208e12a72c0788cb907b6870e3d748351e0
2008-10-27 20:04:41 +00:00
Sam Tobin-Hochstadt
f24c93b475 Add `warn-unreachable'
svn: r12145

original commit: 5db61f199fff5b2a8c0d8595de984184336a5bac
2008-10-27 20:02:34 +00:00
Sam Tobin-Hochstadt
c988220e11 Add type for Procedure.
Fix types to use Integer instead of Number where appropriate.
add type for maybe-print-message.

svn: r12141

original commit: a7b5d4af4b478e4c29e2cc52cd760fe0f6b7a596
2008-10-27 15:16:22 +00:00
Eli Barzilay
e94b7c2f70 TS tests now work, and are not noisy when succeeding
svn: r12119

original commit: 0ccbac0647a6a0dd129d9b7531514cfdca24d58d
2008-10-24 19:50:24 +00:00
Sam Tobin-Hochstadt
fd7442f6ed New test from John, fix tests to work with new code.
svn: r12108

original commit: d93505082f85d471ea62f73ae0c402443d0e15c4
2008-10-23 23:34:00 +00:00
Sam Tobin-Hochstadt
757a6ac532 Document `List'.
svn: r12107

original commit: 101ca7ada7e4003e6964200c7c1559349c8beb5a
2008-10-23 22:56:30 +00:00
Sam Tobin-Hochstadt
ec58da0ff0 Improve printing of effects for functions with simple effects.
Reject contract creation of overloaded types.

svn: r12105

original commit: ae1fd58e2b085dbd605f41b17a8ad360aa2bb830
2008-10-23 21:43:23 +00:00
Sam Tobin-Hochstadt
9971f1730d Static info for require-typed-struct
svn: r12096

original commit: d02748f0fa2794e3eab37db264b6166c587625f9
2008-10-22 21:07:47 +00:00
Sam Tobin-Hochstadt
5308710cd1 Fix tests with even?
Add test for struct syntax info.

svn: r12095

original commit: 24c4d0b3fc067072677cd6037657247a315aaccb
2008-10-22 21:07:31 +00:00
Sam Tobin-Hochstadt
6eb9152bd1 Fix type of odd and even.
svn: r12086

original commit: 0ec881dc60a15b185c0c07ed2c36eaf992a368e9
2008-10-21 20:55:07 +00:00
Eli Barzilay
e07bf6e209 look -- a let!
svn: r12085

original commit: b349b4baa2da4b0d92ea33e3b3dcb21a18eeadee
2008-10-21 19:52:40 +00:00
Sam Tobin-Hochstadt
6db06c53cd New error handling for type parsing errors.
New error type that is both top/bot.
Fix provide handling if identifier is provided twice.
Note that require/typed is really a definition.
Fix require of #%kernel.

svn: r12083

original commit: 3a9928474523b042f83a7a707346daa01ef63899
2008-10-21 18:01:03 +00:00
Sam Tobin-Hochstadt
a8185f5048 Add new test for better error reporting.
svn: r12082

original commit: c6c4a049ee8b658459b5bf6b1564aced1afdd7b8
2008-10-21 17:58:57 +00:00
Sam Tobin-Hochstadt
4bed8042a1 revert this change to fix drscheme.
svn: r12075

original commit: b173fb073efdcf3f5a9acc9188de84de32ee3cf4
2008-10-20 20:04:15 +00:00
Sam Tobin-Hochstadt
dc77ba4148 revert previous change
svn: r12074

original commit: 714e356fb48a1bb78c850a1d2e676645c3ab0e8e
2008-10-20 19:01:52 +00:00
Sam Tobin-Hochstadt
e347aea92c require/typed is really a definition for the purpose of provide.
svn: r12073

original commit: aad41cc46e026059e17dc0737fd140f03835b8f9
2008-10-20 16:55:55 +00:00
Sam Tobin-Hochstadt
693829c961 Document singleton symbol types.
svn: r12072

original commit: 2b4a60ced6c62b02d13d4c0fbb7ffc3ad702a9c0
2008-10-20 14:04:10 +00:00
Eli Barzilay
a418e160c0 a little improvement (see PR9847) but still not working
svn: r12068

original commit: 72198bf8561aa280ed12850e99e16ba92c6677f8
2008-10-20 02:52:23 +00:00
Eli Barzilay
4c5a780062 allow the arrow to appear anywhere (since no inputs is a possible case)
svn: r12039

original commit: 05db2f04af30f21c35e7de2d064ac3a3511a482c
2008-10-14 19:07:27 +00:00
Eli Barzilay
cec84d33dd Allow an implicit paren for (: <id> : T ... -> T)
svn: r12038

original commit: 9cc7f90a0aa877aab3310a83b1f3133105d2aefa
2008-10-14 18:44:05 +00:00
Sam Tobin-Hochstadt
557bd01043 add args to error
svn: r12036

original commit: e802682c4df62cdb320b931c09d89db8bbb3d15a
2008-10-14 16:34:14 +00:00
Sam Tobin-Hochstadt
69474a750e Better error message for extra ->.
svn: r12034

original commit: 453deb8a5d47b8cfd5ea849bba46fa51d9de8a5e
2008-10-14 15:58:34 +00:00
Eli Barzilay
d2c755f005 make-Listof -> -lst
svn: r12021

original commit: beec99c12eb0ade6b780c6618a4e154a811398ea
2008-10-13 17:17:30 +00:00
Sam Tobin-Hochstadt
15bc9ba914 Fix type of error.
svn: r12019

original commit: 6a0b9b4e20d660410238fa68273f2f532c06b122
2008-10-13 16:22:52 +00:00
Eli Barzilay
e87cb50bd2 list-tail
svn: r12017

original commit: c08e09ae6ca4cdcffb3bd79d6f5b01c3f752fbe6
2008-10-13 16:16:18 +00:00
Eli Barzilay
01be0f1dd8 rem{ove,q,v} and rem[qv]*
svn: r12016

original commit: 72f8e1d3e6396b6447d0c254a999868760e4a21b
2008-10-13 15:58:29 +00:00
Eli Barzilay
9d30470a38 gcd & lcm, move sqrt with its friends
svn: r12015

original commit: fd89ef7d419ae721d90008930dbb8e8b0250f34f
2008-10-13 15:56:06 +00:00
Eli Barzilay
579c36806d sleep and time-apply
svn: r12014

original commit: b58b3d72fccf0c9302b827b65a3dfa3bac04a179
2008-10-13 15:51:02 +00:00
Eli Barzilay
52399cdc09 trigonometric functions
svn: r12013

original commit: b9866e0af2158c5ad2cd1341a33bad319828374d
2008-10-13 15:48:46 +00:00
Eli Barzilay
98d2ec4846 bitwise functions
svn: r12012

original commit: dbadf365a3533ab2554ebe966e4e713e23b95c66
2008-10-13 15:47:52 +00:00
Eli Barzilay
7c6b674141 Some more arithmetic functions
svn: r12011

original commit: 757c51957eb0c4089e13dcee78b88488c4e1a4eb
2008-10-13 15:47:24 +00:00
Eli Barzilay
ee7c4dc30b bad non-typo fix, go back, and change to Univ
svn: r12010

original commit: d5028463f23e07e04c84950d32c11db4218e9301
2008-10-13 15:42:53 +00:00
Eli Barzilay
279939d40b some more sensible grouping of similar functions
svn: r12009

original commit: 86d70f52d8a09e9654be57be0e52cc74be8fa486
2008-10-13 15:42:19 +00:00
Eli Barzilay
cd157e5175 capitalization typo
svn: r12008

original commit: 1beabaf5e8b7d43894e7fdc9eb5bf7395f1b1c75
2008-10-13 15:37:16 +00:00
Eli Barzilay
46c7fe5eb9 * Grouped the ass* functions
* Made them all use -opt

svn: r12007

original commit: e114ca005e53aa8f35b118f990922b9ce46fd350
2008-10-13 15:36:59 +00:00
Eli Barzilay
21700fdf68 use all of scheme/list, so the types for first and friends actually works
svn: r12006

original commit: f4ae28d7149fd5c3f90fe2af60fb2589cc3e8688
2008-10-13 15:33:06 +00:00
Eli Barzilay
d6372cf515 (random) returns a floating point number
svn: r12005

original commit: fea96706f189c950ee43825618d0a99774f5494f
2008-10-13 15:32:17 +00:00
Eli Barzilay
d3affbf868 * Move write' next to display'
* Make it have the same type (can write anything)
* Add `print' with the same type

svn: r12004

original commit: 0209663ec75b138c505d101e6f8dfb636c51ec6a
2008-10-13 15:30:55 +00:00
Eli Barzilay
57cfc5d3d5 minor reformatting (brackets, spaces, indents)
svn: r12003

original commit: 9ba08bc5583e2f7248fdd1668b84cdff7fa78707
2008-10-13 15:29:13 +00:00
Eli Barzilay
3bf7774adb removed unused leftover file
svn: r11992

original commit: 078ce5f8c6dc17d41c45b9686c5333a0383b0915
2008-10-11 19:17:17 +00:00
Eli Barzilay
07ec9bfd86 fix whitespace before open-brace issues
svn: r11991

original commit: cff6f07259c2fc2656c6e27aa07c19d5cf5331fe
2008-10-11 19:09:50 +00:00
Sam Tobin-Hochstadt
2f7553ada9 Fix inference for simple fns with ...
svn: r11977

original commit: 3db02a50e168ae8f22c056919cc1413bfb1b7c73
2008-10-08 15:34:05 +00:00
Sam Tobin-Hochstadt
5239b94d65 New test for bug found by eli.
svn: r11969

original commit: 665da912c8d1ed05a973a1cb3d2679678a94187b
2008-10-07 21:55:45 +00:00
Sam Tobin-Hochstadt
687faf6d08 Fix bug in inference when tvars in env.
svn: r11968

original commit: dbf4462228a4094e2fa71617cd88ae61e80e12d2
2008-10-07 21:55:25 +00:00
Sam Tobin-Hochstadt
09ac3ccc7f Fix automated TS tests.
svn: r11953

original commit: c953007f633340d0f32ab6024bb297d64adc0cab
2008-10-06 19:41:30 +00:00
Eli Barzilay
b63bdbb842 oops, revert this line
svn: r11938

original commit: a1bbd7dd3c17b48ddd0cad18baf2a173c33b5066
2008-10-05 03:41:17 +00:00
Eli Barzilay
d14979c7d7 planet-requires moved to tests/typed-scheme/util-tests
svn: r11937

original commit: 2899c1f1cce30f7aacb5032e92c87cf06378722c
2008-10-05 03:40:55 +00:00
Eli Barzilay
a2f34edb53 rename holder -> keep
svn: r11932

original commit: 8d06e0c707295a6dee60e722dfafe40c4e2d7992
2008-10-04 19:10:38 +00:00
Sam Tobin-Hochstadt
74d7ac4276 Fix handling of explicit maker in tc-struct.
svn: r11881

original commit: 98c02cb887c493ed5aa9c371b382200f0600049d
2008-09-26 12:23:33 +00:00
Sam Tobin-Hochstadt
e7bc490d7f Fix error in use of tc-error/delayed.
Fix expansion of with-handlers:
add test

svn: r11875

original commit: cd6a37ff4c83505ceef5fbc747235160d03d2aee
2008-09-25 19:35:00 +00:00