Commit Graph

487 Commits

Author SHA1 Message Date
Eli Barzilay
95f4d1eefe use spaces instead of tabs to indent output
svn: r15719
2009-08-12 21:37:33 +00:00
Sam Tobin-Hochstadt
50b7a0b190 improve types for numeric predicates
fix pr 9767

svn: r15717
2009-08-12 20:42:20 +00:00
Sam Tobin-Hochstadt
35336e77b8 Improve error messages from require/contract
svn: r15716
2009-08-12 20:28:08 +00:00
Sam Tobin-Hochstadt
50545830f2 Allow filters/objects to be provided to untyped code.
svn: r15706
2009-08-11 21:00:57 +00:00
Sam Tobin-Hochstadt
c27783830a add getenv and pretty-print etc.
svn: r15705
2009-08-11 20:44:45 +00:00
Sam Tobin-Hochstadt
28be0897c3 Move student expansion above or.
Improve printing when no object.

svn: r15704
2009-08-11 20:19:19 +00:00
Sam Tobin-Hochstadt
9649e10df8 document define-struct/exec:
svn: r15703
2009-08-11 20:05:31 +00:00
Sam Tobin-Hochstadt
b23016f86a Prohibit predicates, unions of tvars in contracts
Add vector?

svn: r15701
2009-08-11 19:35:34 +00:00
Sam Tobin-Hochstadt
1ea71ea94b New contracts for hashtables, vectors, boxes
svn: r15646
2009-07-30 21:15:16 +00:00
Sam Tobin-Hochstadt
55c9f55cf3 struct->vector
svn: r15645
2009-07-30 21:00:04 +00:00
Sam Tobin-Hochstadt
1977ab0709 remove c
svn: r15644
2009-07-30 20:13:28 +00:00
Sam Tobin-Hochstadt
7888fa5dc6 Add some hash functions
svn: r15642
2009-07-30 19:30:05 +00:00
Noel Welsh
9c7584b8c8 Add types for:
- regexp? 
- pregexp? 
- byte-regexp? 
- byte-pregexp? 
- regexp 
- pregexp 
- byte-regexp 
- byte-pregexp 
- regexp-quote 
- read-bytes-line

svn: r15595
2009-07-28 10:41:27 +00:00
Eli Barzilay
a70bf64fd9 Newlines at EOFs
svn: r15380
2009-07-04 02:28:31 +00:00
Sam Tobin-Hochstadt
5b79cd7c0c Use let/ec instead of let/cc
let/ec: and let/cc:
type for call-with-current-continuation
Start on ImpFilters

svn: r15220
2009-06-19 18:01:33 +00:00
Sam Tobin-Hochstadt
d7f0c681c7 add index entries
svn: r15206
2009-06-18 17:02:40 +00:00
Carl Eastlund
a06c6b38aa Added types for string-copy and string->immutable-string.
svn: r15202
2009-06-18 00:59:04 +00:00
Carl Eastlund
21033a3e3c Added types to the srcloc structure.
svn: r15201
2009-06-17 22:28:21 +00:00
Carl Eastlund
f110157ac2 Added types for:
- keyword?
 - string->keyword
 - keyword->string
 - char-upcase
 - char-downcase
 - char-titlecase
 - make-rectangular
 - make-polar

svn: r15200
2009-06-17 21:08:35 +00:00
Sam Tobin-Hochstadt
cfd65e7fa2 Use vector-immutableof' and box-immutable/c' to handle boxes and vectors.
svn: r15199
2009-06-17 20:49:13 +00:00
Sam Tobin-Hochstadt
bc6d606a60 Merge in changes to Syntax types from Carl.
svn: r15156
2009-06-12 20:53:47 +00:00
Sam Tobin-Hochstadt
7b82069fa0 Add NoFilter and NoObject to represent no information about filter/object.
Handle these properly in check-below (with test).
Use NoFilter and NoObject to make if typechecking work properly with filters.
Reject mismatched filters/objects (with test).

New version of require/typed that handles opaque and struct requires.
Reorganize docs around this.

svn: r15155
2009-06-12 19:04:39 +00:00
Carl Eastlund
e53b944fb3 Corrected types for source location in lists passed to datum->syntax.
Corrected types for peek-* functions (which may return EOF).
Added type for read-byte.

svn: r15137
2009-06-10 23:38:52 +00:00
Sam Tobin-Hochstadt
7d9f506760 Fix a bunch of types and function types
svn: r15133
2009-06-10 21:46:52 +00:00
Sam Tobin-Hochstadt
5139875199 add split-at and append*
svn: r15119
2009-06-08 15:54:05 +00:00
Sam Tobin-Hochstadt
e14e58c8df hash table keys are contravariant, not covariant
svn: r15077
2009-06-04 14:38:59 +00:00
Sam Tobin-Hochstadt
a255514ba1 change define-requirer to use library paths to fix build
svn: r15041
2009-06-01 17:15:22 +00:00
Sam Tobin-Hochstadt
c1eb25e47f move additional tests to test dir
svn: r14963
2009-05-23 23:00:23 +00:00
Sam Tobin-Hochstadt
c27dccb9d8 Improve error messages and printing.
Turn off contracts.

svn: r14947
2009-05-22 22:30:24 +00:00
Sam Tobin-Hochstadt
844cbc6782 move new-if to if.
svn: r14942
2009-05-22 22:06:48 +00:00
Sam Tobin-Hochstadt
2a55bec335 remove obselete code
svn: r14941
2009-05-22 22:05:56 +00:00
Sam Tobin-Hochstadt
7d239a4dfa Instances can have any Type as their class.
Fix some handling of tc-results as pertains to classes.
Bottom is an ok Class.

svn: r14938
2009-05-22 21:41:12 +00:00
Sam Tobin-Hochstadt
0feb99f6bc Use tc-result1: instead of tc-result: in object handling.
Use tc-results->values instead of bogus version.

svn: r14937
2009-05-22 21:19:46 +00:00
Sam Tobin-Hochstadt
e92a8dd2f5 Avoid spurious quoting.
Use display instead of printf.

svn: r14936
2009-05-22 20:23:15 +00:00
Sam Tobin-Hochstadt
2ee1d2b596 Untyped top-level variables are not an internal error.
Handle latent filter of LBot in values->tc-results when there are no formals.
Use check-below properly in tc/mono-lambda/type

svn: r14935
2009-05-22 20:07:36 +00:00
Sam Tobin-Hochstadt
23a735ee2f Add contract for make-pred-ty
svn: r14934
2009-05-22 19:43:31 +00:00
Sam Tobin-Hochstadt
7237ad6046 Fix construction of predicate type for `declare-refinement'.
svn: r14933
2009-05-22 19:26:06 +00:00
Sam Tobin-Hochstadt
7e6c1be6b0 Handle return of Bottom to context which expectes multiple values.
Check values length before using for/and.
Add back ormap/andmap special case for ... args.

svn: r14930
2009-05-22 19:09:19 +00:00
Sam Tobin-Hochstadt
c8828d0638 Fix keyword argument handling - sort of hackish.
svn: r14924
2009-05-22 18:18:34 +00:00
Sam Tobin-Hochstadt
06e252b1a1 Convert to syntax-parse.
Use tc-results->values where appropriate.

svn: r14891
2009-05-20 23:54:14 +00:00
Sam Tobin-Hochstadt
c4762078e3 Remove lots of debugging code.
Use `needs-resolving?' in subtype.
Make resolve-{app,name} handle not-yet-bound names.

svn: r14890
2009-05-20 23:40:03 +00:00
Sam Tobin-Hochstadt
19c4aa6ba4 Sort unions on re-construction to make contract happy.
Use resolve-once more.
Improve `overlap', in particular use keys.
Resolve names and apps before doing structure comparison.

svn: r14884
2009-05-20 18:35:59 +00:00
Sam Tobin-Hochstadt
6d1257e624 Pass the right argument to unfold.
Fix tc/rec-lambda/check for tc-results in appropriate places.

svn: r14871
2009-05-19 16:27:44 +00:00
Sam Tobin-Hochstadt
eedafc034b Add flag for testing unreachability in env+.
Use flag in if-unit.

svn: r14870
2009-05-19 15:24:55 +00:00
Sam Tobin-Hochstadt
5f1895cfb5 Remove tc/if-twoarm/check
svn: r14860
2009-05-18 22:19:05 +00:00
Sam Tobin-Hochstadt
b8f944679e take path elems from the end
svn: r14859
2009-05-18 22:18:47 +00:00
Sam Tobin-Hochstadt
e269f7aa7c Parse (A -> B : C) correctly, B can't be a `values'
svn: r14858
2009-05-18 22:18:19 +00:00
Sam Tobin-Hochstadt
ef095c931a Make env struct transparent.
svn: r14857
2009-05-18 22:17:32 +00:00
Sam Tobin-Hochstadt
ddefd28d6d Fix handling of structs-as-functions.
Subtyping should look up names in both positions.

svn: r14827
2009-05-15 15:47:22 +00:00
Sam Tobin-Hochstadt
b2cf9c0006 Fix typo so cdrs in paths are handled.
svn: r14826
2009-05-15 15:05:53 +00:00