Commit Graph

260 Commits

Author SHA1 Message Date
Sam Tobin-Hochstadt
e61075a4fd Default types for lambda formals.
svn: r13539
2009-02-12 23:55:53 +00:00
Sam Tobin-Hochstadt
8802b83c0a typed-scheme
- use syntax classes for tc-literal
 - remove one-armed if
 - fix comments
 - use syntax classes for find-annotation
 - unit contracts for inference unit and typechecker unit
 - macro to enable/disable unit contracts
 - correct fold/free-var calculation for latent effects
 - documentation improvements
 - add bindings for additional special type forms
 - U and Un are the same binding, same with Tuple and List
 - fix types for integer?, exact-integer?
 - write not-yet-enabled syntax-class based type parser

svn: r13440
2009-02-04 23:39:38 +00:00
Sam Tobin-Hochstadt
f867eea8c3 take out work on paths, now compiles
svn: r13431
2009-02-04 20:57:28 +00:00
Sam Tobin-Hochstadt
3ab3c8d368 commit work to new branch, doesn't work yet
svn: r13427
2009-02-04 20:19:41 +00:00
Eli Barzilay
4288ba636e fix the type of > and indent
svn: r13275
2009-01-24 21:13:15 +00:00
Ryan Culpepper
eb9fe4847f stxclass: created stxclass collection, with docs
svn: r13255
2009-01-22 05:50:55 +00:00
Eli Barzilay
d1a0086471 newlines at EOFs
svn: r13105
2009-01-14 03:10:47 +00:00
Sam Tobin-Hochstadt
ea0873adb2 Handle top-arr in infer. Add convenience binding for function top.
svn: r12745
2008-12-08 18:24:33 +00:00
Sam Tobin-Hochstadt
8c4789a627 Initialize `infer' for env-lang.
svn: r12740
2008-12-08 16:54:13 +00:00
Sam Tobin-Hochstadt
dd8e878cb4 Fix time-apply, add test
svn: r12727
2008-12-08 03:12:38 +00:00
Sam Tobin-Hochstadt
238b248ad5 Add `current-continuation-marks'
Add some exns
Test require substructs

svn: r12726
2008-12-08 03:10:12 +00:00
Sam Tobin-Hochstadt
e6eb482de4 Enable require-typed-struct with substructures.
Fixes PR 9053.
Move test to succeed.
Add some new bindings.

svn: r12709
2008-12-05 00:25:02 +00:00
Sam Tobin-Hochstadt
e27ae4d457 bindings for the rest of scheme/bool
svn: r12548
2008-11-20 22:30:29 +00:00
Sam Tobin-Hochstadt
a4ac14b124 Add scheme/tcp bindings.
svn: r12516
2008-11-19 22:50:10 +00:00
Sam Tobin-Hochstadt
541a47f7fd Handle (Instance Foo) where Foo is unbound.
Return correct error behavior.

svn: r12410
2008-11-12 15:59:24 +00:00
Sam Tobin-Hochstadt
477fa5581e Store contract in Base type representation.
Fix tests, pattern matches.
Contract is *ignored* in equality testing.

svn: r12227
2008-11-03 23:58:29 +00:00
Sam Tobin-Hochstadt
e69f6e126a 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
2008-10-31 17:12:16 +00:00
Sam Tobin-Hochstadt
c4d183fcfc Less polymorphic type for `syntax->datum'.
svn: r12163
2008-10-28 22:40:43 +00:00
Sam Tobin-Hochstadt
a7b5d4af4b Add type for Procedure.
Fix types to use Integer instead of Number where appropriate.
add type for maybe-print-message.

svn: r12141
2008-10-27 15:16:22 +00:00
Sam Tobin-Hochstadt
ae1fd58e2b Improve printing of effects for functions with simple effects.
Reject contract creation of overloaded types.

svn: r12105
2008-10-23 21:43:23 +00:00
Sam Tobin-Hochstadt
d02748f0fa Static info for require-typed-struct
svn: r12096
2008-10-22 21:07:47 +00:00
Sam Tobin-Hochstadt
0ec881dc60 Fix type of odd and even.
svn: r12086
2008-10-21 20:55:07 +00:00
Eli Barzilay
b349b4baa2 look -- a let!
svn: r12085
2008-10-21 19:52:40 +00:00
Sam Tobin-Hochstadt
3a99284745 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
2008-10-21 18:01:03 +00:00
Eli Barzilay
72198bf856 a little improvement (see PR9847) but still not working
svn: r12068
2008-10-20 02:52:23 +00:00
Eli Barzilay
05db2f04af allow the arrow to appear anywhere (since no inputs is a possible case)
svn: r12039
2008-10-14 19:07:27 +00:00
Eli Barzilay
9cc7f90a0a Allow an implicit paren for (: <id> : T ... -> T)
svn: r12038
2008-10-14 18:44:05 +00:00
Sam Tobin-Hochstadt
453deb8a5d Better error message for extra ->.
svn: r12034
2008-10-14 15:58:34 +00:00
Eli Barzilay
beec99c12e make-Listof -> -lst
svn: r12021
2008-10-13 17:17:30 +00:00
Sam Tobin-Hochstadt
6a0b9b4e20 Fix type of error.
svn: r12019
2008-10-13 16:22:52 +00:00
Eli Barzilay
c08e09ae6c list-tail
svn: r12017
2008-10-13 16:16:18 +00:00
Eli Barzilay
72f8e1d3e6 rem{ove,q,v} and rem[qv]*
svn: r12016
2008-10-13 15:58:29 +00:00
Eli Barzilay
fd89ef7d41 gcd & lcm, move sqrt with its friends
svn: r12015
2008-10-13 15:56:06 +00:00
Eli Barzilay
b58b3d72fc sleep and time-apply
svn: r12014
2008-10-13 15:51:02 +00:00
Eli Barzilay
b9866e0af2 trigonometric functions
svn: r12013
2008-10-13 15:48:46 +00:00
Eli Barzilay
dbadf365a3 bitwise functions
svn: r12012
2008-10-13 15:47:52 +00:00
Eli Barzilay
757c51957e Some more arithmetic functions
svn: r12011
2008-10-13 15:47:24 +00:00
Eli Barzilay
d5028463f2 bad non-typo fix, go back, and change to Univ
svn: r12010
2008-10-13 15:42:53 +00:00
Eli Barzilay
86d70f52d8 some more sensible grouping of similar functions
svn: r12009
2008-10-13 15:42:19 +00:00
Eli Barzilay
1beabaf5e8 capitalization typo
svn: r12008
2008-10-13 15:37:16 +00:00
Eli Barzilay
e114ca005e * Grouped the ass* functions
* Made them all use -opt

svn: r12007
2008-10-13 15:36:59 +00:00
Eli Barzilay
f4ae28d714 use all of scheme/list, so the types for first and friends actually works
svn: r12006
2008-10-13 15:33:06 +00:00
Eli Barzilay
fea96706f1 (random) returns a floating point number
svn: r12005
2008-10-13 15:32:17 +00:00
Eli Barzilay
0209663ec7 * Move write' next to display'
* Make it have the same type (can write anything)
* Add `print' with the same type

svn: r12004
2008-10-13 15:30:55 +00:00
Eli Barzilay
9ba08bc558 minor reformatting (brackets, spaces, indents)
svn: r12003
2008-10-13 15:29:13 +00:00
Eli Barzilay
8d06e0c707 rename holder -> keep
svn: r11932
2008-10-04 19:10:38 +00:00
Sam Tobin-Hochstadt
cd6a37ff4c Fix error in use of tc-error/delayed.
Fix expansion of with-handlers:
add test

svn: r11875
2008-09-25 19:35:00 +00:00
Sam Tobin-Hochstadt
77e9b026b3 fix type of assq
svn: r11872
2008-09-25 15:56:55 +00:00
Eli Barzilay
943b22ebeb set svn:eol-style
svn: r11858
2008-09-24 20:08:05 +00:00
Sam Tobin-Hochstadt
15e7be91f5 Reorg to separate out files.
svn: r11857
2008-09-24 19:56:48 +00:00