Commit Graph

1576 Commits

Author SHA1 Message Date
James Ian Johnson
def3834aa2 Fixed a comment inconsistency about double quotation. 2011-08-19 11:09:24 -04:00
James Ian Johnson
06edc3153f Adding clarifying comments to rep-utils.rkt 2011-08-19 11:09:24 -04:00
Sam Tobin-Hochstadt
bdcc63b229 Handle apply for functions with no rest arguments. 2011-08-17 18:19:47 -04:00
Sam Tobin-Hochstadt
5870fec9c9 Simplify definition of (legacy) `typed-scheme' language. 2011-08-16 14:54:46 -04:00
Vincent St-Amour
ff0d843a09 Fix handling of impersonated vectors when bounds are fixnums. 2011-08-16 12:09:39 -04:00
Vincent St-Amour
a6e633ae2f Formatting. 2011-08-16 12:09:38 -04:00
Vincent St-Amour
59f5f24736 Make error messages more consistent. 2011-08-16 12:09:38 -04:00
Sam Tobin-Hochstadt
39459ec9c4 Document typed/scheme' versions of require/typed' and `require-typed-struct'. 2011-08-16 12:07:53 -04:00
Sam Tobin-Hochstadt
8ecc2a4da4 Refactor base-special-env to run at phase 0.
Unfortunately, it can no longer be required normally, and forces changes to test suites.
2011-08-15 21:39:31 -04:00
Sam Tobin-Hochstadt
11167aa214 Better error message when id is unbound in `make-env'. 2011-08-15 21:39:31 -04:00
Sam Tobin-Hochstadt
13ef3849fc Fix type of file->bytes-lines 2011-08-15 21:39:30 -04:00
Sam Tobin-Hochstadt
b25aae230b re-enable type for port->bytes-lines 2011-08-15 21:39:30 -04:00
Vincent St-Amour
8dba93646a Remove redundant logging message. 2011-08-15 12:19:54 -04:00
Vincent St-Amour
2a80582ed9 Fix arity raising for letrec. 2011-08-15 12:19:54 -04:00
Vincent St-Amour
63b5747018 Formatting. 2011-08-15 12:19:54 -04:00
Vincent St-Amour
becaac8c18 Have arity raising play nice with Check Syntax. 2011-08-15 12:19:54 -04:00
Vincent St-Amour
b536445cde Fix visibility of arity-raised bindings. 2011-08-15 12:19:54 -04:00
Sam Tobin-Hochstadt
fdcb22ea32 comment out type that produces strange duplicate error message. 2011-08-14 13:40:42 -04:00
Sam Tobin-Hochstadt
54c044c36a Fix initial type environment for new-style keyword functions. 2011-08-14 13:40:42 -04:00
Sam Tobin-Hochstadt
2d094db270 Fix typechecking of `#%variable-reference' 2011-08-14 13:40:42 -04:00
Sam Tobin-Hochstadt
d948626fac Use syntax-track-origin more pervasively to get the right arrows in check syntax. 2011-08-12 11:09:11 -04:00
Vincent St-Amour
281e1003e3 Add disappeared uses to have optimized code play nice with check-syntax. 2011-08-11 18:25:46 -04:00
Vincent St-Amour
271f696c58 Refactoring. 2011-08-11 18:25:46 -04:00
Vincent St-Amour
cef410f5e2 Rename a parameter to better reflect what it's for. 2011-08-11 18:25:46 -04:00
Robby Findler
997813680d change the #:get-lock-file argument of call-with-file-lock/timeout to #:lock-file 2011-08-11 09:29:31 -05:00
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