Commit Graph

8597 Commits

Author SHA1 Message Date
Stevie Strickland
af12feb729 Another example, putting in starred for dots. 2008-06-19 19:10:05 -04:00
Sam Tobin-Hochstadt
2bf691991c New test 2008-06-19 18:04:30 -04:00
Sam Tobin-Hochstadt
0f142d97e3 Do substitution properly from dmap. 2008-06-19 18:04:19 -04:00
Sam Tobin-Hochstadt
e62598ef08 More tests! 2008-06-19 16:55:26 -04:00
Sam Tobin-Hochstadt
b9e1676a55 * Add constraints when matching t1...a to t2...b
* Do inference when you have (apply f ... xs), f and xs are dotted,
   and on different bounds.
 * Add fold-right to extra-procs and its type to base-env
2008-06-19 16:55:06 -04:00
Kathy Gray
1ff835d4b3 Fix PR#9526
svn: r10380
2008-06-19 20:43:51 +00:00
John Clements
89c5ff2f18 ...
svn: r10379
2008-06-19 19:04:10 +00:00
Sam Tobin-Hochstadt
2a7dbe2a80 Add unit test for dotted instantiation, and add version of
fold-left/fold-right that explicitly instantiates the
recursive call.
2008-06-19 14:59:19 -04:00
Sam Tobin-Hochstadt
bb8d8e23d8 * Split apart identifier typechecking and type instantiation
* Add dotted instantiation (replacing bounds with different bounds)
 * Fix some macro issues, including syntax locations
 * Fix more effect inference
2008-06-19 14:57:35 -04:00
Sam Tobin-Hochstadt
36408a32d5 Fix test to expecte effects.
Remove useless annotation.
2008-06-19 13:23:27 -04:00
Sam Tobin-Hochstadt
1af866586e Fix tests, add filter tests. 2008-06-19 12:41:06 -04:00
Sam Tobin-Hochstadt
1880eb4afb Fix filter type.
svn: r10374
2008-06-19 16:07:12 +00:00
Sam Tobin-Hochstadt
3fd969651f Fix type of filter, and inference w/ effects. 2008-06-19 11:57:07 -04:00
Sam Tobin-Hochstadt
23aeff8c3b Fix macro impl. 2008-06-19 11:12:32 -04:00
Kathy Gray
08015efba8 Indenter bug corrections; indented files according to indenter
svn: r10371
2008-06-19 13:40:25 +00:00
Robby Findler
707315b1b4 restored Eli's syntax error improvements
svn: r10370
2008-06-19 06:19:16 +00:00
Robby Findler
a37493f58f svn: r10369 2008-06-19 05:48:53 +00:00
Robby Findler
c08b692afb svn: r10368 2008-06-19 05:45:46 +00:00
Stevie Strickland
f68efe9e31 Lift out the recursive call, since that'll be shared across all substitutions. 2008-06-18 23:48:31 -04:00
Greg Cooper
4dadad2d71 add support for arc-drawing to animation library
svn: r10366
2008-06-19 00:33:00 +00:00
Stevie Strickland
51ec643172 I'm not sure what to do about this, given the recursive sb call. 2008-06-18 18:53:46 -04:00
Stevie Strickland
8256f922f9 Instantiation... seems to be broken. Adding unit tests to alert us to that
fact.
2008-06-18 18:22:16 -04:00
Stevie Strickland
052849c1bb Otherwise we don't handle nesting. 2008-06-18 18:09:50 -04:00
Sam Tobin-Hochstadt
082545adc9 Just handle PolyDots of stuff not involving dots like the other cases. 2008-06-18 17:36:38 -04:00
Sam Tobin-Hochstadt
8a66c759dc Fix identifier issues in fold-left/fold-right. 2008-06-18 17:36:12 -04:00
Sam Tobin-Hochstadt
b5bfb18961 Tests in here that now succeed 2008-06-18 17:22:16 -04:00
Sam Tobin-Hochstadt
7f0a330c0c Adding drest capability to lambda formal checking. 2008-06-18 17:21:53 -04:00
Sam Tobin-Hochstadt
e77ad12feb Add debug macro, and fix check-below to return appropriate values. 2008-06-18 16:52:04 -04:00
Stevie Strickland
f1211df156 I don't know why this wasn't caught before, but with recent changes, it's now
caught correctly.
2008-06-18 16:16:11 -04:00
Stevie Strickland
3e4e5af03c Thinkoed, all of them should have -lst added. 2008-06-18 16:10:54 -04:00
Stevie Strickland
449a784c1d Remove this, as it isn't needed. 2008-06-18 16:03:45 -04:00
Stevie Strickland
6986b12618 Fix extra -lst call that shouldn't be there. 2008-06-18 16:03:33 -04:00
Stevie Strickland
5299c9fd5a Consolidate errors so they only happen once (could get rest arg-related
error and formal number mismatch error), and then consolidate code.
2008-06-18 15:57:41 -04:00
Stevie Strickland
f80711bc9e Split this out into what should succeed and what should fail. 2008-06-18 15:07:00 -04:00
Stevie Strickland
0c6ad7f08b Forgot to add stars here. 2008-06-18 15:06:48 -04:00
Stevie Strickland
467b138cda New test for lambda formal list mismatches. 2008-06-18 15:03:12 -04:00
Stevie Strickland
948286f0c6 Rework how lambda formals are handled to try and guess something more
correct when there's a mismatch.
2008-06-18 15:02:54 -04:00
Stevie Strickland
17937f5451 Fix up lambda formal handling so that if we get too many or too few formals
for the appropriate type, we associate the correct types with the formals
we do have.  If we have more formals than types, then a rest-arg function
will have the extra formals as the type of the rest-arg, else we will just
make them bottom.
2008-06-18 13:39:58 -04:00
Eli Barzilay
6864cae36f Welcome to a new PLT day.
svn: r10346
2008-06-18 17:13:24 +00:00
Matthew Flatt
f27a373b07 4.0.1
svn: r10345
2008-06-18 17:10:37 +00:00
Stevie Strickland
4b3508a890 Add * where appropriate. 2008-06-18 13:01:43 -04:00
Stevie Strickland
4010a39c2d * Should have used star (bound in syntax-case), not just * in type-of-formals
* I'm pretty sure ann should never get a starred or dotted type, since those
   can't appear outside of an arrow context.
2008-06-18 12:57:52 -04:00
Stevie Strickland
6a30c9dec9 No need for this, it's handled by a case lower down (and correctly, so why
force changes in two positions?)
2008-06-18 12:45:08 -04:00
Stevie Strickland
c2a53b316b * Enforce the use of a '*' in list-like rest args.
* Abstract out annotation errors so that we can report it in the other case
   where it's useful.
2008-06-18 12:31:08 -04:00
Kathy Gray
488f8c210e Corrected bug introduced by the introduction of match-let
svn: r10339
2008-06-18 12:51:22 +00:00
Kathy Gray
1862bffc93 Testengine test file (in wrong directory, probably).
svn: r10338
2008-06-18 12:20:17 +00:00
Robby Findler
c1217de228 fixed problem with completions
svn: r10337
2008-06-18 05:48:16 +00:00
Eli Barzilay
b93d242aa5 restore unmodified version
svn: r10336
2008-06-18 04:53:31 +00:00
Eli Barzilay
f4926472b8 remove changed code
svn: r10335
2008-06-18 04:50:58 +00:00
Greg Cooper
88edb0e088 fix small doc bug
svn: r10332
2008-06-18 02:15:05 +00:00