Commit Graph

299 Commits

Author SHA1 Message Date
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
8fd1b8c69e Paths for first' and rest'
svn: r17654

original commit: 1ab2a41092d9b64a3d7744bd7f0c3fea7248c021
2010-01-14 20:00:37 +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
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
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
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
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
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
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
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
Sam Tobin-Hochstadt
9fd6b5d194 Support some keyword arguments in type parsing/type->contract.
svn: r17189

original commit: 76b10347da4dc11ac3420a0dc9b3c65f61d1696d
2009-12-05 00:48:46 +00:00
Sam Tobin-Hochstadt
445c65e12e checkpoint
svn: r17054

original commit: e3bafbe298688ec0efe47a09254492f93027fa71
2009-11-25 02:30:41 +00:00
Sam Tobin-Hochstadt
e326c243bc improve error messages with `syntax-parse'
svn: r17023

original commit: 176920530f5625da0b860e8b194f3a906dc9bcfe
2009-11-24 04:04:31 +00:00
Sam Tobin-Hochstadt
e5c1d9e02b checkpoint
svn: r16931

original commit: 750c971d0727b495c55fb090e38d3fb3001d3624
2009-11-21 00:11:37 +00:00
Sam Tobin-Hochstadt
28890f267f Skip backup files in tests.
More specific numeric types.
More subtyping relationships.

svn: r16922

original commit: 6497745560505fc1366188909543031b2925e0bb
2009-11-20 15:20:23 +00:00
Sam Tobin-Hochstadt
7d85ae8997 checkpoint
svn: r16915

original commit: 485c8a356708bb1f59c942529dd77bd455a6c82d
2009-11-20 05:20:23 +00:00
Sam Tobin-Hochstadt
9e87d52ba1 many fixes
svn: r16913

original commit: 1da2c7cd7d45b7f8a53d1892609e135820ef4301
2009-11-20 03:56:57 +00:00
Sam Tobin-Hochstadt
a1f96d6ce8 checkpoint
svn: r16908

original commit: 111b71c844707b146bbc1500dc086ef3c5ef7070
2009-11-20 00:06:32 +00:00
Sam Tobin-Hochstadt
7fe635dfee start on typed/scheme
svn: r16896

original commit: d28add0fa915e099e11fbd7ef44fb2e3e2c0ee40
2009-11-19 19:47:51 +00:00
Sam Tobin-Hochstadt
2d9267f484 Add types for with-output-to-string, open-output-nowhere
Fix time.ss test not to print

svn: r16790

original commit: 25f9bcfe030b4e1374546a8859d2170e5bf4b6eb
2009-11-15 22:38:30 +00:00
Sam Tobin-Hochstadt
2c76766c1c Move a bunch of functions from typed-scheme/utils/utils to unstable.
Add convenience lib for unstable docs.
Add char support to format-{id,symbol}
Add unstable/sequence library.

svn: r16789

original commit: fb29a2498e964c6d7651ca6cc6a19c07ca28760b
2009-11-15 22:15:29 +00:00
Eli Barzilay
33d300977a newlines at EOFs
svn: r16630

original commit: 44d88cee6b13d29d08d5bdd8e9e7681ca70a3765
2009-11-09 03:49:50 +00:00
Sam Tobin-Hochstadt
1d3800bfd8 Move mutated-vars and poly-c libraries to unstable collection.
- add docs
 - change requires
 - fix `letrec-syntaxes+values'
Fix contract on `author+email'

svn: r16628

original commit: 99a70b38d8c16c84174534d9ae9c3b413e566743
2009-11-09 02:29:02 +00:00
Sam Tobin-Hochstadt
115c7c8443 Types for all functions documented in reference/vector.scrbl
Fix docs for vector-arg{min,max}.

svn: r16602

original commit: dcb5f5cfb1a17fa652cee73fd95a4acdaf9b57ca
2009-11-07 07:11:00 +00:00
Sam Tobin-Hochstadt
382a771d75 Better error message for inference with keywords.
Do inference when loop is unannotated, even when argument are.
Don't infer for ((lambda when vars are annotated.
Make promise contracts work.
Fix types of min, max, port->lines, subbytes,  bytes-length, bytes, bytes-ref

svn: r16397

original commit: a5849fb05af85c586bbd730d220b324018a6673e
2009-10-21 13:30:03 +00:00
Sam Tobin-Hochstadt
387ee8193b Add `typed/scheme/system'
Special handling of (letrec ([x e]) x)
Allow functions with optional keyword args to be inferred when kws not supplied.
Infer instantiations for kw functions in simple cases.
Add `Path-String' type
Fix types of `filter', `with-{input-to,output-from}-file'
Add `port->lines'
New 'metrics.ss' test

svn: r16385

original commit: 37106bd6f7241277288ad56a3c75aef53cdfc3c3
2009-10-20 18:30:37 +00:00
Sam Tobin-Hochstadt
9c607d6779 Don't error for branches with wrong number of results where return type is Bot.
Allow case-lambda to be subtype of equiv union type.
Add types for path?, fold-files, assert

svn: r16357

original commit: 6a83901a8bd60ccea014f84238a378749573beb2
2009-10-18 01:10:00 +00:00
Sam Tobin-Hochstadt
bd75ded350 Elimintate printing of complex filters.
Allow parsing of ...* and ...a
Parameter for printing ...* and ...a

svn: r16225

original commit: 96f664354d80ed25ff70e27fd7d6dc7f694c6c7d
2009-10-02 20:41:56 +00:00
Eli Barzilay
43c0b93899 fix optional argument to number<->string functions
svn: r16123

original commit: cee0e5f3260e3571a54b546225aba4ee7c551f8e
2009-09-24 15:26:13 +00:00
Ryan Culpepper
8eb494615f removed old stxclass collection
Please apply to release branch.

svn: r16047

original commit: 987ab4c5e8c4548b9eb87f6f78c75b6877118065
2009-09-17 16:11:20 +00:00
Sam Tobin-Hochstadt
535ec1720f fix uses of syntax-parse attributes
svn: r15984

original commit: ed65dacdcd2c4c2d2cfe2177865598c97903dfd7
2009-09-11 22:49:56 +00:00
Sam Tobin-Hochstadt
87d48f63ef Remove last uses of stxclass.
svn: r15976

original commit: 5fc019ba6c8d0a9ca21c05c4a92f8476e348f407
2009-09-11 17:49:50 +00:00
Sam Tobin-Hochstadt
34a2dda59c Make type keywords show check syntax info
svn: r15925

original commit: bc25b75eb39e85c21fd23b95706295b158c11463
2009-09-08 20:16:48 +00:00
Sam Tobin-Hochstadt
521dee2bb5 Move parse-type2 to parse-type.
Re-enable typed-scheme tests automatically.

svn: r15924

original commit: 4907d266df8438b6f0f4a3e3fd0241702ab46b57
2009-09-08 20:02:03 +00:00
Sam Tobin-Hochstadt
cf872c4e38 New type parser, written using syntax/parse.
- uses keywords with bindings
 - : macro in separate file so it can be used earlier
 - internal function in separate file
FilterSet/c and LatentFilterSet/c contracts
Avoid returning #f when `look-for-in-orig' fails
Add type for unsafe-cdr

svn: r15923

original commit: 63d318fd4b7e7244af10fff21db74f0d09db5006
2009-09-08 19:51:34 +00:00
Sam Tobin-Hochstadt
c315e83375 Handle type ascription and type instantiation better with expected type.
Add remove-ascription
Identify incorrect element of wrongly typed list.
Use function argument types as expected types.
Allow multiple uses of orig-module-stx, older one takes precedence.

svn: r15857

original commit: b3dde2ca7f0e343e207deb2d983785a7fea64a1b
2009-09-01 22:25:35 +00:00
Sam Tobin-Hochstadt
4bc1a32ad1 fix 9979
svn: r15721

original commit: 1e5cb7d603ff13ce47ad4e09dec9ada8f9bb46ac
2009-08-12 21:55:04 +00:00