Commit Graph

17972 Commits

Author SHA1 Message Date
Stephen Chang
e41ba9c77b in lazy/lazy.rkt
- modify cond for stepper
- add support for multiple values in stepper
  - add inspector to multiple-values struct
  - hide split-values call in ~define-values

in tests/stepper/
- add tests for cond

in stepper/private/annotate.rkt
- in annotate/top-level, allow arbitrary top-level terms
  (no error in else case), otherwise exprs like let throws error

in stepper/private/
   reconstruct.rkt
   lazy-highlighting.rkt
- add support for eq? eqv? equal? lazy fns
2011-04-06 18:44:35 -04:00
Stephen Chang
c0f8f1cdb2 lazy stepper working with infinite lists
in stepper/private/marks.rkt
- in mark-binding-value, add exception handler to catch undefined vars, so
  display-mark in break works with recursive fns

in /tests/stepper/automatic-tests.rkt
                  through-tests.rkt
- add inf list example from icfp paper

in stepper/private/model.rkt
- refactor send-step to use cond instead of unless
- in send-step, when highlight-stack = null and last-rhs != null (and lhs !=
  last-rhs), send a step with lhs = last-rhs (previously skipped whenever
  highlight-stack = null)
  - basic filter example wasnt showing result without this
  - in icfp inf list example, this shows some intermediate forcing states
  - all other existing tests passed
2011-04-06 18:42:57 -04:00
Stephen Chang
2227516673 fixing some bugs
in macro-unwind.rkt:
- in unwind-mz-let, last line, ",label" should just be "label" (no unquote)

in reconstruct.rkt
- in reconstruct-completed-define, last line, arg to attach-info should be a
quasisyntax (#`), not syntax (#')
2011-04-06 18:42:57 -04:00
Stephen Chang
348a20c0e5 in stepper/private/reconstruct.rkt
- in recon-inner, called app case, add first fn to list of special lazy fns
- in recon-value, add handling of running promises not found by
  recon-inner search
  - add optional so-far param to recon-value
- add unknown-promises-table and add case in recon-value to handle

in stepper/private/lazy-highlighting.rkt
- add (first,0) pair

in stepper/private/model.rkt
- modify lazy fn "skipping" (from lazy-highlighting.rkt) to use the skips
  only when last-rhs-exp = null; o.w. skipping is handled solely by
  examining last-rhs-exp

in tests/stepper/
- add take example from icfp paper
- add tests for unknown promises
2011-04-06 18:42:56 -04:00
Stephen Chang
d04d3fadc3 - add if tests for lazy stepper
in stepper/private/reconstruct.rkt
- in recon-inner, in called app case, add "take" to lazy fn case and fix to
  handle more than unary fns
2011-04-06 18:42:55 -04:00
Stephen Chang
49fd1fb0e0 in stepper/private/reconstruct.rkt
- in recon-value, add cases to handle list and cons
- in recon-inner, in app called case, add case to handle lazy list fns
  that contain unannotated !'s (ie cadr, cdddr, second, third, etc)

in stepper/private/model.rkt
- add highlight-stack
- in send-step, add various skip conditions when lhs = ellipses

add file stepper/private/lazy-highlighting.rkt

in tests/stepper/through-tests.rkt
   tests/stepper/automatic-tests.rkt
- add tests for list and cons fns
2011-04-06 18:42:54 -04:00
Stephen Chang
c41123ce6c existing lazy stepper tests passing
in tests/stepper/
test-engine.rkt
- add racket/private/promise to test-namespace using namespace-attach-module

automatic-tests.rkt
- add lazy tests

through-tests.rkt
- fix existing lazy tests lazy1, lazy2, lazy3

language-level-model.rkt
- fix lazy ll-model

in stepper/private/model-settings.rkt
- edit settings for lazy racket
2011-04-06 18:42:53 -04:00
Stephen Chang
6921960c5e simple example working: (define (f x) (+ x x)) (f (+ 1 2))
in stepper/private/model.rkt
- add debugging outputs
- reformat code

in stepper/private/macro-unwind.rkt:
- in fall-through
  - add case for lazy racket app
  - add case for procedure-extract-target
- in unwind, change recur procedure for fn hints to unwind
  (was recur-on-pieces)

in racket/private/promise.rkt
- add unwind fn as stepper-hint syntax property

in stepper/private/reconstruct.rkt
- add constructor application case back
- in recon-inner
  - in app called case, dont show ellipses for force
  - initialize partially-eval-promise table
  - reformat answer code
  - add caching of running promises
- in recon-value, add reconstructing of partially evaluated promises

in stepper-private/annotate.rkt
- in annotate/module-top-level, add lazy racket top level case - to hide top
  level forcer

in lazy/lazy.rkt
- use hidden-~ and hidden-! instead of ~ and !
2011-04-06 18:42:53 -04:00
Stephen Chang
2d204dc6ea in stepper/private/reconstruct.rkt:
- in find-special-value, add case for Lazy Racket
- delete final-mark-list? (unused fn)
- in skip-redex-step?
  - reformat code
  - remove constructor app case
- in recon-value
  - reformat code
  - add thunk rendering (need to require racket/private/promise)
2011-04-06 18:40:06 -04:00
Stephen Chang
0d21131a8d in lazy.rkt:
- in !*app:
  - add stepper-skipto property to skip (if lazy-proc? ...)
  - for lazy-proc, extract proc from lazy-proc struct before applying
- redefine ~define to use inferred name, so stepper can recon properly
2011-04-06 18:40:05 -04:00
Stephen Chang
89d1a1feb0 in lazy/lazy.rkt:
- remove all stepper hints and properties
- change !*app to use application instead of let
  (stepper has difficulty with temp vars of let)
2011-04-06 18:40:04 -04:00
Stephen Chang
ca4ea39123 in stepper/private/annotate.rkt:
- add cases to annotate/top-level to recognize Lazy Racket programs
2011-04-06 18:40:03 -04:00
Stephen Chang
da456f2e37 add stepper button to Lazy Racket 2011-04-06 18:40:03 -04:00
Jay McCarthy
2ebcb2afd1 Fix drdr discovered problem 2011-04-06 16:00:54 -06:00
Jay McCarthy
af57e0419c Fixes PR11793.
It was very hard to figure out why � is invalid. Both the XML 1.0 and 1.1 specs say that a CharRef can be '&#' [0-9]+ ';' (sec 4.1), but there is a note on the side that it must also be a valid Char. The Char definition (sec 2.2) then lays out which characters are valid. (The 1.0 and 1.1 specs disagree though.) I've gone with the 1.1 definition.

I did not update the rest of the reader to disallow those characters in pcdata segments. If this hurts you or you morally disagree, submit another PR, please.
2011-04-06 11:14:25 -06:00
Jay McCarthy
b80728f4b9 Add another useful method re: Robby 2011-04-06 11:14:25 -06:00
Robby Findler
e928bd840c Two improvements to the mrlib/graph library and the module browser:
- improved the drawing speed in mrlib's graph pasteboard
  by caching the background arrows (optionally; only turned
  on for the module browser. in redex, this probably won't
  speed anything up so it isn't used)

- added a search feature to the module graph to help find
  dependencies; type in string and some of the graph changes
  color
2011-04-06 11:35:31 -05:00
Robby Findler
09a0109605 adjusted racket/contract/base to include fewer parts of the contract system 2011-04-06 11:35:29 -05:00
Robby Findler
2893470f27 eliminate one more use of mzlib/contract 2011-04-06 11:35:26 -05:00
Casey Klein
6fc20125b0 Adds the STLC example to the test script 2011-04-06 11:11:43 -05:00
Casey Klein
1ad2b1b938 Makes cross' work better with hide-hole'
Fixes PR 11579
2011-04-06 10:17:15 -05:00
Casey Klein
e8130a2fd1 Fixes bug in `cross' pattern handling 2011-04-06 10:17:15 -05:00
Stevie Strickland
6494bf863e Changing absent so that fields may be specified as well as methods. 2011-04-05 15:03:46 -04:00
Stevie Strickland
b35b7d98f8 Use of unsyntax inside a syntax, change to a quasisyntax. 2011-04-04 23:20:58 -04:00
Matthew Flatt
d359daa5f5 fix problem with chaperones and keywrd procedures
Closes PR 11833
2011-04-04 21:15:44 -06:00
Stevie Strickland
eafacc78a0 Adding `absent' to class contracts.
The `absent' clause lists public methods which must _not_ exist in the
contracted class.
2011-04-04 19:38:27 -04:00
Matthew Flatt
c38118f0e5 Scribble: add `alt-tag' HTML property to set HTML tag in output 2011-04-04 14:33:38 -06:00
Jon Rafkind
f50c480446 add N as an accelerator in the view menu to toggle line numbers 2011-04-04 13:46:46 -06:00
Jon Rafkind
576916d4d7 line numbers separator uses the same color as the text 2011-04-04 13:07:25 -06:00
Matthew Flatt
ef4ea23646 fix `secref' docs; document some Latex macros available for redefinition 2011-04-04 11:26:41 -06:00
Matthew Flatt
df2a875ff4 Scribble: simplify content that is conditioned on the render mode
including a new `scriblib/render-cond' library
2011-04-04 10:45:02 -06:00
Matthew Flatt
8e289018c8 adjust `scriblib/gui-eval' docs
since it's no longer needed for `racket/draw' images
2011-04-04 10:43:38 -06:00
Matthew Flatt
37f9363b90 win32: another try for horizontal wheel events 2011-04-03 16:09:11 -06:00
Matthew Flatt
342964b10a win32: ignore inapplicable WM_HSCROLL and WM_VSCROLL events 2011-04-03 15:17:10 -06:00
Matthew Flatt
b0115ee360 add 'wheel-left and 'wheel-right events 2011-04-03 09:49:56 -06:00
Matthew Flatt
cd9eb5a75c simply dependencies 2011-04-03 09:37:03 -06:00
Matthew Flatt
4c5c46deed avoid Cairo and Pango functions missing in CentOS 5.5 libs 2011-04-02 17:52:03 -06:00
Kevin Tew
0c4d90b1db codeblock line numbers 2011-04-02 16:01:21 -06:00
Robby Findler
5522c72ecb Rackety 2011-04-02 13:36:33 -05:00
Robby Findler
362f7392ed fixed add-parent bug 2011-04-02 13:36:31 -05:00
Robby Findler
77c25430af added an example with a type checker 2011-04-02 13:36:29 -05:00
Casey Klein
a4644d4d49 Disallows unquote in Redex patterns
Fixes PR 11296
2011-04-01 14:00:45 -05:00
Casey Klein
121f1761bd Fixes redex/gui typos
Closes PR 11174
2011-04-01 14:00:45 -05:00
Casey Klein
02c7680076 Fixes Guide typos 2011-04-01 14:00:45 -05:00
Casey Klein
7edfa58ef1 Adds caron s to LaTeX renderer 2011-04-01 14:00:45 -05:00
Vincent St-Amour
5200b93a0c Fix ~literal patterns in syntax-parse. 2011-04-01 14:56:17 -04:00
Vincent St-Amour
9c3bee03e7 Fix bounded-fixnum opts to only fire with the right number of arguments. 2011-04-01 14:56:17 -04:00
Robby Findler
d1414748a1 fix the contract on get-module-code
closes PR 11836
2011-04-01 11:57:55 -05:00
Robby Findler
b926b17d7e fix the obvious bug wrt to procedures returned from make-keyword-procedure, but something is still wrong
related to PR 11833
2011-04-01 09:12:05 -05:00
Ryan Culpepper
c677932baf syntax/parse: added define/syntax-parse, like define/with-syntax 2011-04-01 02:12:30 -06:00
Ryan Culpepper
896cb86dc4 syntax/parse: added phase options to define-literal-set 2011-04-01 00:57:04 -06:00
Ryan Culpepper
2e2bc02303 syntax/parse: fixed obsolete test cases 2011-04-01 00:54:29 -06:00
Robby Findler
e8eea05afc rewrote uses of mzlib/contract into racket/contract
(and other minor rackety when the occasion arose)
2011-03-31 18:21:11 -05:00
Robby Findler
44193bda4c fix ->r docs 2011-03-31 18:05:35 -05:00
Robby Findler
d4e6f99b74 fix the algorithm for determining if a > that is typed in an
XML box ends an opening tag or not
  closes PR 11792
2011-03-31 17:26:03 -05:00
Robby Findler
56ab3eecb6 make the front-end deadlock avoidance (aka pospone io) wrapper handle specials
closes PR 11831
2011-03-31 15:21:45 -05:00
Kevin Tew
26d7768d3d Rename place-channel-recv place-channel-receive 2011-03-31 13:36:40 -06:00
Kevin Tew
f7ab3fe2b3 Move raco and compiler to front of parallel compile list 2011-03-31 12:59:31 -06:00
Eli Barzilay
43275e7b0a Make the web page header a link to the main page. 2011-03-31 11:05:52 -04:00
Eli Barzilay
00a9247fa9 Add "[pdf]" links to the doc links in the learning page. 2011-03-31 10:51:09 -04:00
Eli Barzilay
b757e502af Reuse documentation links from common/links.rkt.
This also fixes the "plt-scheme.org" reference, so also fix the redex
link to use "racket-lang.org".
2011-03-31 09:57:48 -04:00
Eli Barzilay
65bfae09a3 Fix `techreport-location' use in TR pages.
Closes PR11820.
2011-03-31 06:21:45 -04:00
Eli Barzilay
bad4a40741 Fix `regexp-quote' description.
Closes PR11818.
2011-03-31 06:16:53 -04:00
Matthew Flatt
d00c8a6c71 Scribble: fixes for text output, especially inset nested flows 2011-03-30 19:53:32 -06:00
Matthew Flatt
4703265503 Scribble: use \abovedisplayskip and \belowdisplayskip for code insets 2011-03-30 18:11:33 -06:00
Robby Findler
82933e8019 fixed the 'find the word behind the insertion point' function for racket-mode completion
closes PR 11800
2011-03-30 19:07:08 -05:00
Matthew Flatt
bbc5533938 Scribble: change the way `racketblock' etc. indent/inset works
- introduce 'code-inset style for nested blocks
 - use style instead of spaces for code indentation
 - sigplanconf adds vertical space around 'code-inset
 - more ...0 variants to compose better
2011-03-30 15:12:30 -06:00
Casey Klein
8a283650c4 Updates typesetting tests
Spacing is now different by a few pixels. The change does not seem to
be Redex specific
2011-03-30 13:59:39 -05:00
Casey Klein
1312a2e52e Improves `reduction-relation' documentation
Fixes PR 10665
2011-03-30 13:59:39 -05:00
Casey Klein
6cdfa2ff73 Updates typesetting tests for new arrow drawing 2011-03-30 10:20:53 -05:00
Casey Klein
d97a2b505c Fixes matching of ..._x and ..._!_x inside ellipses 2011-03-30 10:15:17 -05:00
Robby Findler
d265231452 added some examples for pen cap and join styles 2011-03-30 09:44:54 -05:00
Robby Findler
e28a6832ca fixes descent/ascept problems and text highlighting problems in number snips
closes PR 11825
2011-03-29 22:43:26 -05:00
Robby Findler
ee82d86bd1 added docs for the mzlib/contract function combinators 2011-03-29 22:43:23 -05:00
Robby Findler
6461b1feae Rackety 2011-03-29 22:43:21 -05:00
Robby Findler
5b879d0680 add missing require, fix opt/c test suite 2011-03-29 22:43:18 -05:00
Matthew Flatt
68f7e9f33b doc clarifications 2011-03-29 19:53:06 -06:00
Casey Klein
0839f763ec Fixes a bug in the deref rule 2011-03-29 16:05:54 -05:00
Casey Klein
8f006f1a1f Fixes bugs in error transitions 2011-03-29 15:57:50 -05:00
Casey Klein
b958e21f46 Fixes another bug in the stepper's diff highlighting 2011-03-29 13:05:03 -05:00
Casey Klein
df3bc8980b Fixes a bug in the stepper's diff highlighting 2011-03-29 13:05:02 -05:00
Jay McCarthy
113e0aa184 Fix issue found by Eric Tanter 2011-03-29 09:24:36 -06:00
Matthew Flatt
ba70e05ae2 Scribble: fix Latex-renderer bug introduced by 67b7c8f3f4 2011-03-29 08:32:14 -06:00
Robby Findler
9245f4b19a move away from mzlib/contract and towards racket/contract 2011-03-28 23:04:43 -05:00
Robby Findler
6a4688b505 adjusted the comment in racket/contract/base.rkt to be more accurate 2011-03-28 23:04:40 -05:00
Robby Findler
b8c7a753d3 removed the re-providing from internal files in the contract impl. 2011-03-28 23:04:36 -05:00
Robby Findler
eb06e38065 removed commented out, long unused code (also: rackety) 2011-03-28 23:04:33 -05:00
Matthias Felleisen
8dbc1994bc small change to registration format 2011-03-28 20:14:46 -04:00
Matthias Felleisen
5e7ac9a038 fix naming of name of universe state window 2011-03-28 20:14:45 -04:00
Matthias Felleisen
5fee2676dc leftover debugging aide 2011-03-28 20:14:44 -04:00
Matthew Flatt
60dc3a5773 fix typo 2011-03-28 15:26:25 -06:00
Matthew Flatt
437f2585c9 revert "mzscheme" and "mred" collection versions
and turn off automatic "mzscheme" version dependency for
 package .plt files
2011-03-28 15:17:17 -06:00
Matthew Flatt
0fda70b7ca fix region% problems
- fail gracefully with pre 1.4 Cairo
 - clip all drawing for an empty clipping region
 - disallow `is-empty?' on a region without a DC
   (since the test depends on the DC dimensions)
2011-03-28 15:15:57 -06:00
Matthew Flatt
b0a3025c48 disable hack that turns off kerning for bitmap DCs
because it intereferes with pict metrics; also, I can't find
 a case where it is needed, maybe because other repairs
 corrected the original problem in a better way
2011-03-28 10:46:34 -06:00
Matthew Flatt
9acab4ad17 win32: 'swiss font family maps to "Arial" instead of "Helvetica" 2011-03-28 10:44:40 -06:00
Matthew Flatt
789081e2c3 fix xref 2011-03-28 10:43:25 -06:00
Matthew Flatt
5844b56a10 doc typos 2011-03-28 06:45:06 -06:00
Matthew Flatt
ad922d545c document Unix lib dependencies for racket/draw' and racket/gui/base' 2011-03-28 06:23:14 -06:00
Matthew Flatt
6e1f35a319 fix WXME stream write-bytes' and write' method results 2011-03-27 16:30:44 -06:00
Matthew Flatt
84ad491837 fix docs to explain pen cap and join styles
--- in prose, but pictures would be good, if anyone wants to add them
2011-03-27 16:27:19 -06:00
Matthew Flatt
1f790d9428 fix pen-cap support for narrow pens
by limiting a hack for bitmap drawing so that it doesn't
 affect PS/PDF drawing
2011-03-27 16:27:19 -06:00
Matthew Flatt
a20a77508f adjust inline-PDF descent to account for rounding
of the PDF bounding box
2011-03-27 16:27:19 -06:00
Matthew Flatt
67b7c8f3f4 fix PS/PDF size
since a PS/PDF bounding box is an integer, take the ceiling
 of a requested width & height
2011-03-27 16:27:19 -06:00
Robby Findler
4021f55c61 fixed up broken tests 2011-03-27 16:13:44 -05:00
Matthew Flatt
95f0d16761 clean up drawing with 0-width pens (hairline mode) 2011-03-27 14:21:21 -06:00
Matthew Flatt
009468d6a8 scriblib doc corrections and clarification 2011-03-27 14:20:17 -06:00
Robby Findler
7a427be2fd improve Redex's arrow drawing 2011-03-27 14:49:34 -05:00
Vincent St-Amour
4b4d7f5f0b Document here-figures. 2011-03-27 14:48:17 -04:00
Matthew Flatt
4e72817688 win32: clipboard fix 2011-03-27 11:22:15 -06:00
Matthew Flatt
d77c92d087 fix support for a string result from get-data' of clipboard-client%'
and properly report an error when the result from `get-data' is not
  allowed
 Closes PR 11821
2011-03-27 10:51:46 -06:00
Matthew Flatt
deab2ddede cocoa: fix line height in `list-box%'
Closes PR 11822
2011-03-27 10:23:34 -06:00
Matthew Flatt
84d8bb3726 racket/sequence repairs
including addition of `sequence-generate*'
2011-03-27 10:02:11 -06:00
Matthew Flatt
d81ace1031 fix CSS typo 2011-03-27 07:30:18 -06:00
Vincent St-Amour
c1ab718ad7 Add here-figures to scribble and avoid putting figures on their own page if possible. 2011-03-27 07:30:18 -06:00
Robby Findler
fe75ed9a39 adjusted the color preferences button placement to avoid such a wide prefs dialog 2011-03-26 10:53:23 -05:00
Robby Findler
f69ff3b6b7 added support for 'or', \vee, and \cup as builtins to the define-metafunction codomain contracts 2011-03-26 10:04:39 -05:00
Robby Findler
f3b0a7454a improved the error messages for #:pre and #:post violations in ->i by including the bindings for the variables 2011-03-26 08:12:30 -05:00
Robby Findler
3b4ba31d74 set the save-as menu shortcut to s and the prefix to shift 2011-03-25 20:18:52 -05:00
Kevin Tew
00696cbfac variable-reference->module-source test 2011-03-25 15:04:02 -06:00
Robby Findler
e6633d2af1 use the new extend-position functionality to adjust the shift-based key bindings implemented in the framework
closes PR 11768
  closes PR 11806
2011-03-25 15:19:55 -05:00
Robby Findler
288caacdfd added get-extend-start-position and get-extend-end-position
added the extend-position method
adjusted the wxme.rkt test suite so that it only prints when tests fail
2011-03-25 15:10:49 -05:00
Robby Findler
4e81299e98 added examples to struct-copy docs 2011-03-25 11:04:17 -05:00
Robby Findler
614ec41ab7 extended struct-copy so that you copy adjust fields from super structs 2011-03-25 08:47:27 -06:00
Casey Klein
faef39cbc6 Fixes the docs for non-terminal styles 2011-03-24 14:58:31 -05:00
Casey Klein
3214861420 Fixes rendering of (hole t ...+)
There was some old named holes code still in use.
2011-03-24 14:35:02 -05:00
Vincent St-Amour
2e811060c5 Add the capital version of an accented character to Scribble. 2011-03-23 18:21:27 -04:00
Robby Findler
85b846f5f3 added one more accented char to scribble 2011-03-23 17:03:58 -05:00
Robby Findler
99e9bd9543 exported arrow->pict 2011-03-23 17:03:57 -05:00
Casey Klein
87934752b5 Adds a parameter that provides a default for redex-check's #:attempt argument 2011-03-22 21:20:29 -05:00
Vincent St-Amour
4b1e4f9312 Fix Scribble's handling of the trademark symbol. 2011-03-22 16:27:12 -04:00
Vincent St-Amour
6e9fea94e0 Fix Scribble's handling of L with stroke. 2011-03-22 12:30:29 -04:00
Vincent St-Amour
60cc8c4453 Fix type of sqr. 2011-03-21 16:06:37 -04:00
Vincent St-Amour
0641d7bd78 Handle more accented characters in Scribble. 2011-03-21 12:08:36 -04:00
Matthew Flatt
60c4acb094 Scribble: clean up text-mode output
- line-flow paragraphs to fit in 72 columns
 - better indentation for itemizations
 - format tables with paragraphs and nested tables
2011-03-20 17:19:03 -06:00
Matthew Flatt
b2e338cc43 add missing autobib test 2011-03-20 15:38:51 -06:00
Matthew Flatt
50ca70703f scriblib/autobib: fix `in-bib' to not generate a new bib entry 2011-03-20 15:35:02 -06:00
Matthew Flatt
ed96b89c45 JIT-inline `list?' 2011-03-20 09:51:32 -06:00
Vincent St-Amour
58c3c84c1b Raise drdr timeouts for TR tests, since typechecking now takes longer. 2011-03-19 14:29:32 -04:00
Matthew Flatt
cbca2f395b Scribble: add 'multicommand support to `nested-flow' 2011-03-19 09:26:41 -06:00
Matthew Flatt
e652546bf5 add streams to `racket'
- rename old `racket/stream' to `racket/sequence', and adjust
   to avoid stateful iterations
 - add a new `racket/stream' library with a `strean-cons' that is based
   on SRFI 41
 - adjust `for' and some sequence constructors like `in-range' to
   work more directly with streams
2011-03-18 19:05:23 -06:00
Kevin Tew
ae8b326522 [Places] added place-kill 2011-03-18 15:06:11 -06:00
Carl Eastlund
325516556a Updated define-syntax-block to subsume define-syntax-set,
and referred to define-syntax-set in the documentation.
2011-03-18 16:54:52 -04:00
Carl Eastlund
d903298264 Added and documented 'define-syntax-block' in unstable/define,
a convenience macro for defining macros that rely on phase 1
definitions of macros or mutually recursive functions.
2011-03-18 13:38:21 -04:00
Vincent St-Amour
4ba3f1a6dd Fix type names. 2011-03-18 13:25:06 -04:00
Vincent St-Amour
3ebe9e78f9 Optimize add1 and sub1 on floats and fixnums. 2011-03-18 13:25:05 -04:00
Vincent St-Amour
d06bf0de91 Use subtype test, just in case. 2011-03-18 13:25:05 -04:00
Vincent St-Amour
17afa91c09 Provide the index? predicate. 2011-03-18 13:24:58 -04:00
Vincent St-Amour
1f0386b46c Improve TR's fixnum optimizations, using the new sub-fixnum types. 2011-03-18 10:25:22 -04:00
Vincent St-Amour
bde2ee0b8d Changes to the regular base type environment. 2011-03-18 10:25:22 -04:00
Vincent St-Amour
ee29d371c9 Updated TR's base type environment to use the new numeric types.
This ended up being an almost complete rewrite of the base environment.
Note: While the commit is dated Jan 27, the work was finished on Mar 2.
2011-03-18 10:25:21 -04:00
Vincent St-Amour
bf6379c363 Add a helper function to add filters en masse to express propositions
that are true about a function's arguments if the function returns.
2011-03-18 10:25:20 -04:00
Vincent St-Amour
88fac43d55 Add an Exact-Number type. 2011-03-18 10:25:20 -04:00
Vincent St-Amour
80a9027f1e Take the meet of constraints earlier in the inference process.
This avoids constraint explosions in some cases, notably when working
with polydots and plain variable arity functions at the same time.

However, this also weakens inference a bit (breaks it for
unholy-terror and related tests), but not in a way that affects any
practical use cases that I know of.
2011-03-18 10:25:19 -04:00
Vincent St-Amour
d0bab99535 Move subtype check in inference engine earlier, for performance reasons. 2011-03-17 18:43:59 -04:00
Vincent St-Amour
e450e2815b Share dotted variables to make inference faster. 2011-03-17 18:43:58 -04:00
Vincent St-Amour
bd301912c0 Remove duplicate constraints when taking their meet. 2011-03-17 18:43:58 -04:00
Vincent St-Amour
3d43724e4c Share TR responsibility with samth. 2011-03-17 18:43:58 -04:00
Vincent St-Amour
f8528ac892 Change type of make-sequence to reflect changes to its implementation. 2011-03-17 18:43:57 -04:00
Ryan Culpepper
bf591d4d01 syntax/parse: added #:disable-colon-notation option 2011-03-17 13:47:38 -06:00
Ryan Culpepper
b5154b444f syntax/parse: docs for define-simple-macro 2011-03-17 13:47:38 -06:00
Ryan Culpepper
012746540c syntax/parse: added define-simple-macro form (needs docs) 2011-03-17 13:47:38 -06:00
Ryan Culpepper
1353d40612 syntax/parse: allow zero syntax-parse clauses and zero syntax-class variants 2011-03-17 13:47:38 -06:00
Robby Findler
d0d2285c4c Adjust the dependencies in redex/pict so it doesn't depend on racket/gui/base anymore 2011-03-17 13:35:32 -05:00
Robby Findler
6e1ffc24cf fix some for-label requires 2011-03-17 13:35:31 -05:00
Kevin Tew
5b0f12b1c1 Cleanup CollectsQueue get-job 2011-03-17 11:47:11 -06:00
Vincent St-Amour
35161a0ba6 Fix expected optimization logs to reflect changes to for. 2011-03-17 13:10:19 -04:00
Vincent St-Amour
498ee4bea1 Fix TR's GUI test harness. 2011-03-17 13:10:19 -04:00
Vincent St-Amour
fe8f1c3591 Fix contract. 2011-03-17 13:10:19 -04:00
Vincent St-Amour
e9789c6697 Fix the 2-argument case of atan to conform to the documentation and
fix the documentation.
2011-03-17 13:10:19 -04:00
Matthew Flatt
ad8e959a98 tweak performance of `for' with non-inlined sequences 2011-03-16 17:02:53 -06:00
Matthew Flatt
c51daeb392 clean up sequence & generator tests 2011-03-16 16:21:26 -06:00
Matthew Flatt
4b39efdee4 fix `syntax-local-bind-syntaxes' argument checking
Closes PR 11808
2011-03-16 06:36:48 -06:00
Matthew Flatt
0efcf22ed4 racket/generator: clean-ups, including planned generalization
- syntax is now (generator formals body ...+)
 - add `generator?'
 - remove common run-time code from the `generator' macro expansion
 - doc fixes
 - start test suite
2011-03-15 20:14:01 -06:00
Matthew Flatt
b9c4bbae67 futures: limit parallelism via custodians
Closes PR 11682
2011-03-15 14:43:18 -06:00
Matthew Flatt
6a79ebdc97 adjust racket/gui test to cover no-border tab-panel% 2011-03-15 12:44:11 -06:00
Matthew Flatt
7ecf8e6c0b cocoa: fix crashing bug related to canvas sizing 2011-03-15 12:42:04 -06:00
Matthew Flatt
a2d968a5d2 fix `init-manual-scrollbars'
Closes PR 11781
2011-03-15 12:41:59 -06:00
Matthew Flatt
17a1322fe5 match': document var' pattern 2011-03-15 12:25:53 -06:00
Matthew Flatt
03e42ce618 revese accidental change in 28be0c6e89 2011-03-15 11:12:50 -06:00
Matthew Flatt
343b6fb008 Scribble: fix caching of hyperlinked identifiers 2011-03-15 11:09:10 -06:00
Eli Barzilay
64e4b73a9f Minor typo and other small things. 2011-03-15 11:46:16 -04:00
Eli Barzilay
09698c800c Improve the error message from scribble text rendering tests. 2011-03-15 11:45:40 -04:00
Robby Findler
28be0c6e89 adjust the size calculation of picts in the file/convertible connection to take into account the current-ps-setup's scale 2011-03-15 09:00:37 -05:00
Matthew Flatt
e8cb27c08c add `get-device-scale' to dc<%> 2011-03-15 07:37:42 -06:00
Matthew Flatt
3207efddb0 fix Scribble Latex/PDF handling of images w/o bounding boxes 2011-03-15 07:20:36 -06:00
Matthew Flatt
2f907afde6 code clarification 2011-03-15 06:46:36 -06:00
Robby Findler
615bc86668 added pdf-bytes+bounds to the docs for file/convertible and then used it
to make scribble render inline picts with a nearly good looking baseline
2011-03-14 19:38:29 -05:00
Robby Findler
bd3a43db98 changed some nonnegative-real?'s into (and/c real? (not/c negative?))'s 2011-03-14 19:38:24 -05:00
Robby Findler
466abb9896 typo 2011-03-14 19:38:18 -05:00
Kevin Tew
867ae7fd8b [Places] places enabled builds now use places to build collects 2011-03-14 11:46:50 -06:00
Matthew Flatt
991745108c Scribble: experiment with non-bold as syntactic-form font 2011-03-13 09:02:41 -06:00
Matthew Flatt
0101d12d49 hyperlink #<void> and #<undefined> in docs 2011-03-13 09:02:40 -06:00
Matthew Flatt
cf69cb2aff special treatment of void as 'inferred-name property
allows keyword-based application to hide temporary
 names that happen to be bound to procedure arguments
2011-03-13 09:02:39 -06:00
Matthew Flatt
3fb4561a62 scribble/manual: document `this-obj' 2011-03-13 09:02:39 -06:00
Matthew Flatt
1a6dacc4c5 clarify `path-element->string' docs 2011-03-13 09:02:39 -06:00
Eli Barzilay
01089550e2 Add comment on how to make interactions use syntax values.
Also add `code:comment' to the keyword list.
2011-03-11 15:40:13 -05:00
Matthew Flatt
449a634b2f add missing test for commit ae8705611b 2011-03-11 13:19:52 -06:00
Matthew Flatt
5afacbbb1c fix `pretty-print' confusion about quasiquote
Closes PR 11796
2011-03-11 08:02:30 -06:00
Matthew Flatt
ae8705611b scribble/eval: fix evaluation of literal #f expression
Fixed part of PR 11790
2011-03-11 07:52:16 -06:00
Eli Barzilay
5a9d954f2a Several typos from Jussi Salmela. Fixes PR 11790 -- all typos.
(Two issues remain that will be resolved later.)
2011-03-11 06:47:36 -05:00
Eli Barzilay
a18197ff25 Add a warning about the current state of racket/stream. 2011-03-11 06:47:36 -05:00
Matthew Flatt
051ec4736d gtk: fix slider value display 2011-03-11 02:50:06 -06:00
Matthew Flatt
2ba8927ba5 cocoa: flip vertical slider direction 2011-03-11 02:50:06 -06:00
Matthew Flatt
a5a7076fe0 `file-or-directory-permissions': expose more info, add write mode
and add `user-read-bit', etc., to `racket/file'
2011-03-11 02:50:06 -06:00
Matthew Flatt
2b3827504b make test suite hit tab panels more 2011-03-11 02:50:05 -06:00
Matthew Flatt
0ec4c3ae8f cocoa: fix initialization of screen bitmaps 2011-03-11 02:50:05 -06:00
Robby Findler
7378c2e42f added cdot 2011-03-10 09:18:00 -06:00
Matthew Flatt
968bf81990 win32: fix `play-sound'
by fixing path handling and preventing non-async
 play from blocking all Racket threads
2011-03-10 07:35:51 -07:00
Matthew Flatt
ca8c6a8133 cocoa: fix `play-sound'
by expanding paths properly and checking whether playing
 succeeds
2011-03-10 07:35:50 -07:00
Matthew Flatt
0b496d5275 a round of doc corrections from Gwyth 2011-03-10 06:34:33 -06:00
John Clements
ca88fdd7e5 oops rename in tests subdir too 2011-03-08 17:37:38 -08:00
John Clements
683f6b0fe4 renamed foldts to foldts-test-suite 2011-03-08 13:40:39 -08:00
Matthew Flatt
a1b79387b9 cocoa: restore "New Folder" button in put-file' and get-directory'
Closes PR 11784
2011-03-08 08:42:03 -06:00
Matthew Flatt
5f797b8f0b cocoa: fix put-file with extension as "" 2011-03-08 08:37:16 -06:00
Matthew Flatt
2eac694a3a fix `define-wish' docs 2011-03-08 08:33:04 -06:00
Matthew Flatt
501892c0ca slideshow: add a couple of contracts
--- more needed
2011-03-08 07:55:53 -06:00
Matthew Flatt
cd4d3e3d95 gtk: fix dragging events
Closes PR 11786
2011-03-08 07:55:53 -06:00
Matthew Flatt
679e9ef2e0 slideshow/pict: adjust `linewidth' to allow #f => transparent 2011-03-08 07:55:52 -06:00
Matthew Flatt
4f93672666 slideshow/code: handle infix notation
and also improve `code:line' alignment across lines
 Closes PR 8334
2011-03-08 07:55:52 -06:00
Matthew Flatt
63d465f114 SirMail: grepable message-index file format 2011-03-08 07:55:51 -06:00
Jay McCarthy
6b907d6b61 Fixing problem from Alok Thapa 2011-03-07 10:54:06 -07:00
Mike Sperber
2bdb9884d3 Don't pop up test-engine window upon innocent REPL interaction.
Closes PR 11775
2011-03-05 17:48:02 +01:00
Kevin Tew
074c76b0e6 Fix thread based places test failures. Turn on testing of places 2011-03-04 10:41:59 -07:00
Eli Barzilay
adf18c7dc0 Use runtime paths to make this work from a different directory 2011-03-03 12:25:19 -05:00
Eli Barzilay
1e3516cb26 Set responsible for tests/openssl 2011-03-03 11:10:12 -05:00
Eli Barzilay
22afec432c Use "127.0.0.1" instead of "localhost" which can be more fragile.
(It's possible to have issues with "localhost", for example when there's
something in a $LOCALDOMAIN environment variable, which made this test
fail on certain machines.)
2011-03-03 11:10:12 -05:00
Eli Barzilay
f6f7e4eb35 Clarify licensing of deflate code.
A similar comment holds for inflate.rkt in the same place, but since
that file says "Not copyrighted ..." then there doesn't seem to be an
issue that needs clarification.
2011-03-03 11:10:11 -05:00
Eli Barzilay
a3d00a910a More LGPL permissions from Chongkai, Neil, and Olin.
Also, removed the LGPL blurbs from srfi/1, and redirect to the Racket
license.  (To avoid possible future issues with license changes, such as
LGPL version.)
2011-03-03 11:09:09 -05:00
Matthew Flatt
8ea32d675c add tests from Curtis Dutton 2011-03-03 07:24:15 -07:00
Matthew Flatt
ff6da2e43e add docs for openssl additions 2011-03-03 07:18:51 -07:00
Curtis Dutton
7a33c9cebb Adds ssl-try-verify! to the openssl package along with supporting procedures.
This enables an ssl server the option to communicate with both verified and unverified peers with the same listener.

Supporting API calls...

ssl-peer-verified? -> returns #t if an ssl-port's peer has presented a valid and verified certificate
ssl-peer-subject-name -> returns the subject field of the certificate presented by an ssl-port's peer
ssl-peer-issuer-name -> returns the issuer field of the certificate presented by an ssl-port's peer
2011-03-03 07:07:53 -07:00
Matthew Flatt
107b349da0 cocoa: fix `play-sound' handling of async flag 2011-03-03 05:48:43 -07:00
Matthew Flatt
4afd36c9fd openssl: use libcrypto and libssl version 1.0 if available
and single point of control for all uses
2011-03-02 12:07:45 -07:00
Matthew Flatt
ec2a917749 Scribble: add #:left?' optional argument to margin-note' 2011-03-02 11:00:21 -07:00
Robby Findler
68b5d2abf8 adjust module lexer to handle the case of specials in the editor properly 2011-03-01 15:20:55 -06:00
Matthew Flatt
fdef90e482 fix get-column-width' method of list-box%'
by changing the name to match the docs, plus some other
  bug fixes triggered by better testing
 Closes PR 11780
2011-02-28 19:12:34 -07:00
Kevin Tew
eaebcf5fd6 [Places] fall back to threads 2011-02-28 16:03:05 -07:00
Kevin Tew
3fa033e27b doc typo fix 2011-02-28 16:03:05 -07:00
Matthew Flatt
733eab5805 fix 0-field prefab immutability flag
Closes PR 11777
2011-02-28 15:24:11 -07:00
Mike Sperber
95b5c49b9b Synch German string constants with latest. 2011-02-28 10:40:54 +01:00
Robby Findler
6f48aaeaa7 added a test case for this commit:
http://git.racket-lang.org/plt/commit/2482816d3d
2011-02-27 19:05:06 -06:00
Robby Findler
07a2ace943 added the #:pre/name and #:post/name keywords to ->i 2011-02-25 13:42:09 -06:00
Robby Findler
4b68377af1 Revert "started adding comments to the #:pre and #:post parts of ->i"
This reverts commit a27b7d5c61.

ack, sorry.
2011-02-25 09:44:34 -06:00
Robby Findler
a27b7d5c61 started adding comments to the #:pre and #:post parts of ->i 2011-02-25 09:42:23 -06:00
Robby Findler
2187773474 adjusted to change in the module language dialog 2011-02-25 09:42:16 -06:00
Matthew Flatt
93e1467b8b racket/gui: scrollbar support panels 2011-02-24 13:23:51 -07:00
Robby Findler
83b00c0cf1 adjust the module-lexer so it explicitly notes malformed #lang lines before going into "no-lang-line" mode
closes PR 11766
2011-02-22 20:42:19 -06:00
Robby Findler
2704b578b2 changed compiled/ to "compiled" in English, drop the / in French, and leave the rest to translators
closes PR 11764
2011-02-21 21:02:00 -06:00
Matthew Flatt
137d96c089 multi-column support in list-box% 2011-02-21 13:58:57 -07:00
Matthew Flatt
a01b7434b1 remove file that was added accidentally 2011-02-21 08:14:14 -07:00
Kathy Gray
4311f3401d Documentation for how wishes are used within the Beginner language. 2011-02-21 14:27:12 +00:00
Kathy Gray
7758f508c5 Addition of define-wish to the teaching languages and corresponding addition of support for wishes in test reports and check-expects 2011-02-21 12:46:39 +00:00
Eli Barzilay
59be514889 Use LGPL, after permission from Dorai and Jens 2011-02-21 07:04:42 -05:00
Robby Findler
6fff26ad12 2htdp/image: relax the constraints on 'crop' so that you can crop outside the bounding box 2011-02-21 05:28:37 -06:00
Robby Findler
c1668d894e added overlay/align, underlay/align, overlay/align/offset, and underlay/align/offset 2011-02-20 15:37:16 -06:00
Robby Findler
5822f1e95f started on overlay/offset 2011-02-20 15:37:15 -06:00
Matthew Flatt
33d01a681e racket/system: fix problems with checking and empty-string arguments 2011-02-20 11:25:25 -07:00
Eli Barzilay
fca0ed2111 Fix error message, use a faster regexp test to search for NULs, forbid empty byte strings. 2011-02-20 12:47:53 -05:00
Matthew Flatt
97870282c2 gtk: keep popup menus on the screen
Closes PR 11414
2011-02-19 19:42:20 -07:00
Matthew Flatt
85951bf665 gtk: smoother editor-canvas resize
- call `on-size' on setting the canvas size, like Win32 and Cocoa,
   which mainly shows/hides auto-shown scrollbars more on time
   (e.g., DrRacket doesn't start with horizontal scrollbars that
   immediately disappear)
 - switch mouse tracking to "hint" mode, instead of catching every
   single mouse position
 - when queueing `on-size' methos in response to client-size changes,
   cancel and queued but undelivered calls; in the case of editor
   canvases, this doesn't really have an effect, due to the other
   `on-size' call
 Closes PR 11369, hopefully
2011-02-19 16:10:00 -07:00
Robby Findler
8ae72bc29c added preference for the test coverage colors in the module language 2011-02-19 16:14:59 -06:00
Matthew Flatt
c8acebce8b fix race in subprocess test 2011-02-19 08:51:10 -07:00
Matthew Flatt
010e6fc2a4 racket/system: fix argument checking with 'exact 2011-02-19 08:43:06 -07:00
Matthew Flatt
5754269ae1 win32: fix some key events
Closes PR 11757
2011-02-19 08:36:17 -07:00
Matthew Flatt
b4056373be generalizations to `subprocess' & company
- allow byte strings in more places
  - allow stderr spec to be 'stdout to redirect stderr to stdout
 Closes PR 11711
2011-02-19 08:30:34 -07:00
Matthew Flatt
9325fe0f25 fix `peek-string-evt' and related docs
Closes PR 11748
2011-02-19 06:54:35 -07:00
Matthew Flatt
9cc7333fa9 fix `in-vector' error reporting
and also refrain from exporting some internal bindings
 frm `racket/base'
2011-02-19 06:50:54 -07:00
Matthew Flatt
ce82c74b75 win32: fix ALT-space to pop up system menu
Closes PR 11754
2011-02-19 06:39:33 -07:00
Eli Barzilay
0978b54dd2 New version for srfi-17. 2011-02-18 15:02:41 -05:00
Robby Findler
783945f96b adjust the test coverage test suite to the changes in test coverage 2011-02-18 13:20:37 -06:00
Matthew Flatt
6041833ac5 fsemaphore cleanup
- abstract over JIT inlining of fsemaphore operations
 - fix problems with non-parallel fsemaphores
 - adjust tests so they don't assume too much concurrency
 - clarify fsemaphore vs. semaphore in the docs
2011-02-18 09:55:01 -07:00
Matthias Felleisen
43da90a6bc changed write-file to return the name of the file, period 2011-02-18 09:40:04 -05:00
Kevin Tew
bdbb9fe336 Parallel Places Build 2011-02-17 16:22:49 -07:00
Kevin Tew
ad0c22a77a parallel-do refactor 2011-02-17 16:21:32 -07:00
Robby Findler
1cf98d3033 fix when check syntax is clearing out its error message editor
closes PR 11751
2011-02-17 13:53:15 -06:00
Robby Findler
3cb3b9fa83 fix a bug in PLTDRPAR 2011-02-17 12:28:22 -06:00
Robby Findler
87e637a1cc - adjust the teaching language test coverage style implementation
so that it changes immediately when the black-on-white and
  white-on-black buttons are pushed in the preferences dialog

- expanded the color preferences api a little
  to allow the specification of background colors
  in addition to the foreground/style information
  already there

- changed the test coverage style so that the colors are
  settable in the preferences dialog

  closes PR 11704
2011-02-17 12:27:00 -06:00
Robby Findler
7cc3465486 clarify the style<%>'s get-delta's docs 2011-02-17 12:26:52 -06:00
James Swaine
ca5c061a71 Fix fsemaphore-try-wait? so the sema's count is decremented. Make fsemaphore-wait and other futures-related functions cooperate with the GC better. 2011-02-16 21:14:14 -06:00
Eli Barzilay
1be26400cb Some random tidyings. 2011-02-16 15:26:15 -05:00
Eli Barzilay
8886b87876 Reformat this mess. 2011-02-16 15:26:15 -05:00
Eli Barzilay
0801525931 Merge in the docs test into the rest of the scribble tests.
Also fixed it to scan all scrbl files in the docs directory, use
runtime-path, and change the rest to racket to get the quoted printout
right.
2011-02-16 15:26:15 -05:00
James Swaine
6571bc0b0e Merge branch 'master' of pltgit:plt 2011-02-16 12:43:19 -06:00
Kevin Tew
f7d89009a4 [Scribble] Fix width of multicolumn table cells 2011-02-16 09:26:17 -07:00
Matthew Flatt
e59b96e26c fix jpeg structs to better adapt to jpeglib versions and platforms
--- specifically fixing jpeglib version 8 on x86_64
2011-02-16 07:31:37 -07:00
James Swaine
c6642de116 Added future semaphores (fsemaphores) 2011-02-15 23:27:03 -06:00
James Swaine
a98553f99b Merge branch 'master' of pltgit:plt 2011-02-15 22:58:08 -06:00
Robby Findler
7af41fddc3 We no longer need to avoid IO or worry about exceptions, so drop the with-handlers.
Revert "This is a change to paper over a bug elsewhere in the system that threatens the release."

This reverts commit 25adab8cbb.
2011-02-15 19:05:21 -06:00
Robby Findler
e3c26a2aa4 improved the setup for the front-end method so that
printing to stdout and stderr is safe and to better document
the issues
2011-02-15 18:10:03 -06:00
Robby Findler
8e94ce49e4 lift the restriction that the text:ports mixin
cannot do io from the eventspace handler thread
and add a test suite for text:ports
2011-02-15 18:10:02 -06:00
Robby Findler
62c961410c adjust the framework test suite so that queue-sexp-to-mred catches and propogates exceptions 2011-02-15 18:10:00 -06:00
Robby Findler
d5c753be88 adjusted printfs to make them a little narrower 2011-02-15 18:09:59 -06:00
John Clements
9de3f25d15 added docs, changed to optional param 2011-02-15 14:57:51 -08:00
John Clements
1b843ea161 added checking on planet unlink 2011-02-15 14:10:57 -08:00
John Clements
c1f76d418f bug fixed 2011-02-15 14:10:57 -08:00
Kevin Tew
156153f692 calling sync on a place-channel now returns the channel message just like standard racket channels 2011-02-15 13:53:01 -07:00
Matthew Flatt
21c6a9f5c8 Slideshow/Scribble: fix size of PDF generated for pict in a doc 2011-02-15 13:17:17 -07:00
Eli Barzilay
3358b40377 Forgot the meat of the change... 2011-02-15 11:34:09 -05:00
Eli Barzilay
6dccc8f059 5.1 improvement to sierpinski code from robby, can go live now 2011-02-15 11:20:51 -05:00
Eli Barzilay
2880edcb8c v5.1 stuff 2011-02-14 22:04:44 -05:00