Tony Garnock-Jones
54285e2f92
Correct type on typed variant of module->namespace.
2011-08-04 13:34:14 -04:00
Vincent St-Amour
5d4e5ed393
Break long lines.
2011-08-03 17:39:16 -04:00
Vincent St-Amour
b124d68f40
Improve error message for calls to 'sort' when inference fails.
2011-08-03 17:39:15 -04:00
Vincent St-Amour
1a661256f8
Abstract printing of function types.
2011-08-03 17:39: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
5f4c577d5b
Get rid of pseudo-syntax.
2011-07-29 18:31:10 -04:00
Vincent St-Amour
4164b04324
Remove serialization.
2011-07-29 18:23:16 -04:00
Vincent St-Amour
0ff3aafed6
Speed up Performance Report on unsaved files.
2011-07-29 18:23:16 -04:00
Vincent St-Amour
191f7a5f17
Add an early failure case for portname matching.
2011-07-29 18:23:16 -04:00
Vincent St-Amour
30ea1afc58
Fix Performance Report on unsaved files.
2011-07-29 18:23:15 -04:00
Vincent St-Amour
aa235ac959
Use `call-with-sandbox-context'.
...
This should make it possible to avoid serialization.
2011-07-29 18:23:15 -04:00
Vincent St-Amour
7775779e6a
Do expansion inside a sandbox.
2011-07-29 18:23:14 -04:00
Vincent St-Amour
ea1ae29e0f
Have log entries carry pseudo-syntax instead of syntax.
...
Unlike syntax, pseudo-syntax is serializable, and it only carries the
information that Performance Report needs. Serializability is
necessary to be able to expand the program inside a sandbox and get
log entries out.
2011-07-29 18:23:14 -04: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
968f3b0905
Restore proper error handling.
2011-07-29 12:54:29 -04:00
Vincent St-Amour
d794d33b5e
Go back to previous expansion strategy.
...
The DrRacket expansion functions don't offer anything more than plain
expand + a sandbox, and using them made the code less readable.
This reverts commit 96eee2b317
.
This reverts commit 19ce4d44a5
.
This reverts commit 58fbd8ba75
.
This reverts commit b305ea9c62
.
This reverts commit 860feb30ae
.
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
5521e3ad5e
Lock the top-level editor of the popup.
2011-07-29 12:54:28 -04:00
Vincent St-Amour
c085f51aa2
Fix for empty case-lambdas.
2011-07-22 17:24:14 -04:00
Vincent St-Amour
df0ae80a7f
Display ellipses even if the :print-type message was already displayed.
2011-07-22 17:07:49 -04:00
Vincent St-Amour
93787f6215
Change :print-type message.
2011-07-22 17:05:03 -04:00
Vincent St-Amour
dcff8854fb
Only suggest using :print-type once per REPL session.
2011-07-22 17:03:43 -04:00
Vincent St-Amour
3ba93cb165
Add a heuristic for case-lambda type simplification.
...
Makes simplification _much_ faster for types that have a single most
general case. That includes most numeric functions.
2011-07-22 16:55:21 -04:00
Vincent St-Amour
86490943a3
Remove stale comment.
2011-07-22 16:46:10 -04:00
Vincent St-Amour
02b76d7741
Omit a redundant pass.
2011-07-22 16:40:11 -04:00
Vincent St-Amour
84931448b5
Flip order of type simplification passes.
2011-07-22 16:38:15 -04:00
Vincent St-Amour
5b6d0ae167
Refactoring.
2011-07-22 16:22:36 -04:00
Vincent St-Amour
f7be12d313
Typecheck pregexp literals correctly.
2011-07-22 16:22:36 -04:00
Vincent St-Amour
27cd6aca6f
Use set coverage for union printing.
2011-07-22 16:22:36 -04:00
Vincent St-Amour
10e79ba2ec
Clean up printing of unions that involve numeric types.
2011-07-22 11:41:27 -04:00
Vincent St-Amour
96eee2b317
Refactor.
2011-07-22 11:41:27 -04:00
Vincent St-Amour
19ce4d44a5
Don't block DrRacket if expansion exits abnormally.
2011-07-21 17:14:05 -04:00
Vincent St-Amour
58fbd8ba75
Report errors during expansion in the interactions window, not as internal errors.
2011-07-21 17:06:04 -04:00
Vincent St-Amour
b305ea9c62
Use DrRacket's program-expansion mechanisms instead of directly calling expand.
2011-07-21 17:06:03 -04:00
Vincent St-Amour
860feb30ae
Unitize performance report, to get access to some DrRacket internals.
2011-07-21 17:06:03 -04:00
Vincent St-Amour
30146b7b8c
Expose more of the TR opt logging.
2011-07-21 17:06:03 -04:00
Vincent St-Amour
fe58048844
Remove stale comment.
2011-07-21 17:06:03 -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
59027c6b40
Moved handling of empty pruned case-lambdas.
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
a71db7c15c
Document how to start a TR REPL from the command line.
2011-07-21 17:06:03 -04:00
Vincent St-Amour
4735ad3523
Refactoring.
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
Vincent St-Amour
1a66f60eb4
Don't print full function intersection types at the REPL, if possible.
2011-07-21 17:06:02 -04:00
Sam Tobin-Hochstadt
7a763a2da8
Fix types of kernel struct constructors to include parent fields.
...
Merge to 5.1.2.
2011-07-20 15:19:53 -04:00
Sam Tobin-Hochstadt
8a608ed840
Conditionalize use of contract.
2011-07-19 16:47:13 -04:00
Eric Dobson
e07ce478af
Switched name field in struct type to identifier. Closes PR 11728.
...
Closes PR 11998. Closes PR11859.
2011-07-19 16:47:13 -04:00