Commit Graph

99 Commits

Author SHA1 Message Date
Vincent St-Amour
70aaf6bf24 Delay evaluation of numeric base env types. 2011-08-30 17:00:25 -04:00
Sam Tobin-Hochstadt
534d89b983 Fix type of `make-temporary-file'. 2011-08-30 11:33:40 -04:00
Sam Tobin-Hochstadt
3e1eb67336 Make environments much lazier about computing types; remove useless requires.
Allow duplicate type annotations when they are the same type.
2011-08-30 11:33:40 -04:00
Vincent St-Amour
15aeb099ea Add Nonnegative-Integer as a synonym for Natural. 2011-08-29 15:26:12 -04:00
Sam Tobin-Hochstadt
e67415171a Improve types for some date operations; fix typo. 2011-08-29 12:08:13 -04:00
Sam Tobin-Hochstadt
ba09e906d8 Generalize #t and #f to `Boolean'. 2011-08-26 08:05:44 -04:00
Sam Tobin-Hochstadt
717476f84d Repair type of `find-relative-path'. 2011-08-25 19:00:49 -04:00
Sam Tobin-Hochstadt
4185da9035 Support vector arguments to `datum->syntax'.
Related to PR 10290.
2011-08-25 14:10:05 -04:00
Sam Tobin-Hochstadt
8ecc2a4da4 Refactor base-special-env to run at phase 0.
Unfortunately, it can no longer be required normally, and forces changes to test suites.
2011-08-15 21:39:31 -04:00
Sam Tobin-Hochstadt
13ef3849fc Fix type of file->bytes-lines 2011-08-15 21:39:30 -04:00
Sam Tobin-Hochstadt
b25aae230b re-enable type for port->bytes-lines 2011-08-15 21:39:30 -04:00
Sam Tobin-Hochstadt
fdcb22ea32 comment out type that produces strange duplicate error message. 2011-08-14 13:40:42 -04:00
Sam Tobin-Hochstadt
54c044c36a Fix initial type environment for new-style keyword functions. 2011-08-14 13:40:42 -04:00
Robby Findler
997813680d change the #:get-lock-file argument of call-with-file-lock/timeout to #:lock-file 2011-08-11 09:29:31 -05:00
Tony Garnock-Jones
54285e2f92 Correct type on typed variant of module->namespace. 2011-08-04 13:34:14 -04:00
Robby Findler
b972a0940d Added online expansion and compilation of files
being edited in DrRacket (via places)

Added an API to let tools have access to that
  information (and compute more stuff)

Used that to make an online version of Check Syntax
  which led to a separately callable Check Syntax API.
2011-08-02 16:28:16 -05:00
Vincent St-Amour
0951ad5b1b Add types for #%kernel's memq, memv and member. 2011-07-29 13:43:11 -04:00
Vincent St-Amour
88a3d93e9e Add a type for #%kernel's reverse.
Present in the expansion of for/list.
2011-07-29 12:54:29 -04:00
Vincent St-Amour
5b22dfb6b0 Add for*/sum: and for*/product: to TR.
These currently don't play nice with inference, so they only work in
limited cases.
2011-07-29 12:54:29 -04:00
Vincent St-Amour
6a8011854b Add for/sum: and for/product: to TR. 2011-07-29 12:54:29 -04:00
Vincent St-Amour
fae966146f Handle desired types being outside of the function's range. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
c0d0211ebb Add a function to query how to get a given return type from a function. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
51b98138d5 Fix :print-type to use tc-setup. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
70e1d63bed Add a function to print whole types.
With this, it's possible to get more information than the simplified
types shown at the REPL. The types are as unwieldy as ever, but you
have to ask for them explicitly.

This is not an adequate long-term solution, and will be replaced by a
"Type Explorer" tool.
2011-07-21 17:06:02 -04:00
Eric Dobson
a7f0f7591d Fixed types for path operations. Closes PR12057. 2011-07-19 16:47:13 -04:00
Eric Dobson
e6030295ff Fix kernel-struct tests in TR. 2011-07-14 17:06:52 -04:00
Eric Dobson
abc8e514d9 Fixed require typed struct 2011-07-14 17:06:52 -04:00
Sam Tobin-Hochstadt
49444460d5 Add types for `check-in-{port,bytes,bytes-lines}'. 2011-07-07 14:24:28 -04:00
Vincent St-Amour
7debd46621 Recognize multiple argument types for flvector accessors.
With only Integer possible as type for the index argument, Integer was
used as expected type, and any information we had about the argument
(sign, range, etc.) was lost.
2011-07-06 18:09:31 -04:00
Vincent St-Amour
d75d6c7ee4 Move flvector types with other indexing functions. 2011-07-06 18:09:30 -04:00
Eric Dobson
805e1fb309 Correctly require/typed structs with parents. Closes PR11509. 2011-07-05 11:25:10 -04:00
Eric Dobson
046d476970 Add types for kernel struct constructors. 2011-07-05 11:25:10 -04:00
Eric Dobson
4439638308 Don't export required bindings with all-defined-out and require/typed.
Closes PR11425.
2011-07-01 16:06:15 -04:00
Vincent St-Amour
43efe6adf0 Remove trailing whitespace. 2011-06-30 14:01:47 -04:00
Eric Dobson
b5e4515752 Changed order of imports in require/typed to order written.
Closes PR11193.
2011-06-30 14:01:47 -04:00
Matthew Flatt
1160d3df62 remove syntax certificates; add syntax taints 2011-06-29 19:15:48 -06:00
Eric Dobson
9721409b39 Cleaned up define-struct: and struct:. 2011-06-29 17:38:05 -04:00
Eric Dobson
e87ff268c2 Added legacy support for require/typed and require-typed-struct.
Added FIXME for duplicated code.
2011-06-29 17:38:05 -04:00
Eric Dobson
ecaf5f40a0 Cleaned up define-typed-struct-internal and require/typed.
Also fixed a test for require/typed.
2011-06-29 17:38:05 -04:00
Eric Dobson
f3692eae29 Added support for configurable constructor names in require/typed.
Closes PR11171. Closes PR11194. Closes PR11314.
2011-06-29 17:38:05 -04:00
Eli Barzilay
40124a0619 A long overdue scan to eliminate files without terminating newlines.
(DrRacket should really do that.)
2011-06-28 02:01:41 -04:00
Sam Tobin-Hochstadt
f6be5447dd Rename to follow TR naming conventions. 2011-06-24 20:20:53 -04:00
Eric Dobson
e4bb1ba7d9 Documented new types and minor corrections. 2011-06-24 20:10:37 -04:00
Eric Dobson
0f0b9ebc7a TR: Added tests for new identifiers and export type names. 2011-06-24 20:10:37 -04:00
Eric Dobson
b88d85f79a Added types for many miscellaneous operations.
Including Places, Wills, Semaphores, Psuedo-Random-Generators,
Byte-Converters, Loggers, Promises and Structure-Type-Properties.
2011-06-24 20:10:37 -04:00
Eric Dobson
41e23fee69 Add types for evaluation and compilation operations. 2011-06-24 20:10:37 -04:00
Eric Dobson
8a67707353 Added types for security operations. 2011-06-24 20:10:37 -04:00
Eric Dobson
20ed3b8096 Added types for subprocess operations. 2011-06-24 20:10:37 -04:00
Eric Dobson
1a44a82868 Added types for dynamic module access operations. 2011-06-24 20:10:37 -04:00
Eric Dobson
78b68171ea Added types for continuation prompt and mark operations. 2011-06-24 20:10:37 -04:00