Commit Graph

70 Commits

Author SHA1 Message Date
Sam Tobin-Hochstadt
59dbcade9c Handle rest args and case-lambda in app.
Fix parsing.

svn: r14722
2009-05-05 19:10:21 +00:00
Sam Tobin-Hochstadt
6b89062d6a Various constants are true.
Remove useless code.
`combine-filter' now handles producing the new type/object in appropriate cases.
Move student expansion later in pattern match.
Print out top-level tc-results.

svn: r14721
2009-05-05 16:27:18 +00:00
Sam Tobin-Hochstadt
9c538764dc `values->tc-results' needs the formals
Fix values->tc-results for ValuesDots
Don't generate problematic nested lists.
Fix stupid typo.
Parsing of tc-results now doesn't use parsing of values, which does something different.

svn: r14713
2009-05-04 18:49:56 +00:00
Sam Tobin-Hochstadt
cce7f91b78 fix values->tc-results, doesn't compile yet
svn: r14688
2009-05-02 12:46:53 +00:00
Sam Tobin-Hochstadt
b4d100d60c Fold tc/let-values/check into tc/let-values.
Remove printfs.
More metafunctions to handle splitting and merging filter sets.
Handle `delay', `list', `list*'
Implement tc/funapp for the simple case.
Make `id-from' a stxclass.
Shuffle code around so that it compiles.
Type parsing now handles multiple values properly, and has a values and results entry point.

svn: r14680
2009-05-01 21:18:23 +00:00
Sam Tobin-Hochstadt
91f5c26964 Add `single-value' function, should be used more.
Construct returns correctly in lam-result->type
Add typechecking for `values' applications.
Extend `ret' to handle dty/dbound.
Define conversions from/to values <-> results
Handle multiple values at the repl.

svn: r14665
2009-04-29 22:54:29 +00:00
Sam Tobin-Hochstadt
c5b4ac4f21 Rename id to mk-id to avoid name clashes.
Start on new tc-app as copy.

svn: r14660
2009-04-29 19:52:53 +00:00
Sam Tobin-Hochstadt
e79ece72c5 copy
svn: r14659
2009-04-29 19:38:36 +00:00
Sam Tobin-Hochstadt
b205f65bec more testing
svn: r14655
2009-04-29 16:58:20 +00:00
Sam Tobin-Hochstadt
ce0032f4c5 a couple small fixes
svn: r14643
2009-04-28 18:53:16 +00:00
Sam Tobin-Hochstadt
7b6702c9e7 fix subtyping w/ filters
svn: r14640
2009-04-28 14:56:18 +00:00
Sam Tobin-Hochstadt
077574cfe1 more fixes for lambda with expected
svn: r14639
2009-04-28 14:48:53 +00:00
Sam Tobin-Hochstadt
9118e9ef12 Fixes for letrec.
svn: r14638
2009-04-28 14:24:09 +00:00
Sam Tobin-Hochstadt
5a49e92de7 lots of let improvements
and check rationalization

svn: r14635
2009-04-27 23:25:34 +00:00
Sam Tobin-Hochstadt
2e2e9b8acf fixes for plambda
svn: r14634
2009-04-27 22:44:42 +00:00
Sam Tobin-Hochstadt
af7b966c82 more contracts
more fixes

svn: r14632
2009-04-27 21:58:35 +00:00
Sam Tobin-Hochstadt
9853ae1f0f Lots more fixes
svn: r14631
2009-04-27 21:16:34 +00:00
Sam Tobin-Hochstadt
4d8ba2bca6 use correct constructor
svn: r14630
2009-04-27 20:15:14 +00:00
Sam Tobin-Hochstadt
18f89c73e4 two fixes
svn: r14629
2009-04-27 20:11:57 +00:00
Sam Tobin-Hochstadt
8cbdf3ee95 compiles again
svn: r14625
2009-04-27 16:06:54 +00:00
Sam Tobin-Hochstadt
994f0205f4 fix conflicts
svn: r14601
2009-04-24 21:30:18 +00:00
Sam Tobin-Hochstadt
1edf62a912 resolve conflicts
svn: r14598
2009-04-24 21:21:06 +00:00
Sam Tobin-Hochstadt
ebdd60a3a3 fix some small bugs
svn: r14352
2009-03-30 12:51:02 +00:00
Sam Tobin-Hochstadt
fcc2a24545 sync ts to trunk
svn: r14257
2009-03-25 01:07:34 +00:00
Sam Tobin-Hochstadt
537d267314 disable application checking, `3' now typechecks
svn: r14128
2009-03-16 15:28:29 +00:00
Sam Tobin-Hochstadt
f1840f4eeb sync to trunk
svn: r14074
2009-03-12 15:28:19 +00:00
Sam Tobin-Hochstadt
c4f5fd3773 more work on lambda
svn: r14073
2009-03-12 15:27:24 +00:00
Sam Tobin-Hochstadt
c51dd1e8b0 new version of abstract-filters that handles multiple values/arguments properly
strengthen contracts
improve match expanders

svn: r14057
2009-03-11 19:11:50 +00:00
Sam Tobin-Hochstadt
058e78ab17 tc-lambda-unit now compiles
generalize tc-results to handle drest

svn: r14044
2009-03-11 00:15:13 +00:00
Sam Tobin-Hochstadt
79ee9fbee8 Correctly report syntax def from define-struct:
Add alias in type env when rename transformer is used.

svn: r14034
2009-03-10 20:29:02 +00:00
Sam Tobin-Hochstadt
8b7497cccf everything except lambda, app units work
svn: r14008
2009-03-07 23:19:41 +00:00
Sam Tobin-Hochstadt
18e03efc84 New true-filter and false-filter abbrevs
Fix for Stevie's d-s/c fix.
tc-expr now compiles

svn: r14007
2009-03-07 22:51:54 +00:00
Sam Tobin-Hochstadt
2dbd82e587 Add provides
Use Type/c instead fo Type? in contracts
New if typechecking.
match expanders for tc-result.

svn: r13996
2009-03-06 22:25:19 +00:00
Sam Tobin-Hochstadt
aa32d9b928 fix bugs
add env+

svn: r13994
2009-03-06 21:27:05 +00:00
Sam Tobin-Hochstadt
d293635cb7 combine-filter
update

svn: r13992
2009-03-06 20:54:39 +00:00
Sam Tobin-Hochstadt
e2a017f331 fix typo
svn: r13989
2009-03-06 19:51:33 +00:00
Sam Tobin-Hochstadt
6c30e2d9e7 Remove some old debugging printfs in soon-to-be-dead code.
Fix some requires.
Start implementing metafunctions.
Strengthen contracts on filter-sets.
Rename N B Sym.

svn: r13988
2009-03-06 19:50:42 +00:00
Sam Tobin-Hochstadt
00721c10c8 all of private, and tc-structs, now compiles
svn: r13956
2009-03-04 19:49:20 +00:00
Sam Tobin-Hochstadt
cc1265fc61 Fix contract on App.
Fix function construction for rec-lambda/check
Re-enable printing.

svn: r13687
2009-02-17 01:09:23 +00:00
Sam Tobin-Hochstadt
02efc28dff Fix error message when polymorphic inference fails because of expected type.
Add test case.

svn: r13639
2009-02-16 02:12:13 +00:00
Sam Tobin-Hochstadt
24e4cf5aca Merge in changes from type-keys branch:
- Use stxclass for defintern/dt/de
- Add type keys to optimize subtyping
- Fancier printing when regular printing is disabled for debugging.
- Caching of the results of subtyping.
- Contracts for hashtable types (still insufficent)
- add type for `last-pair' from `scheme/list'
- new "private/type-abbrev.ss" which contains things 
  from "private/type-effect-convenience.ss" that don't 
  need subtyping/unions
- Don't use the real union constructor on mu unfolding
- more work on (not yet enabled) stxclass type parser
- Naming sanity in tests

svn: r13628
2009-02-15 22:56:14 +00:00
Sam Tobin-Hochstadt
e13c4b690d new branch initial commit
svn: r13578
2009-02-14 16:03:25 +00:00
Sam Tobin-Hochstadt
e61075a4fd Default types for lambda formals.
svn: r13539
2009-02-12 23:55:53 +00:00
Sam Tobin-Hochstadt
9f77daab41 fix expr attribute
svn: r13438
2009-02-04 23:07:09 +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
Sam Tobin-Hochstadt
2962c0bfa7 Fix handling of inexact integer literals.
svn: r13294
2009-01-27 17:55:10 +00:00
Eli Barzilay
d1a0086471 newlines at EOFs
svn: r13105
2009-01-14 03:10:47 +00:00
Sam Tobin-Hochstadt
587ca08466 Don't fail early here.
svn: r12729
2008-12-08 03:37:24 +00:00
Sam Tobin-Hochstadt
dd8e878cb4 Fix time-apply, add test
svn: r12727
2008-12-08 03:12:38 +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