Commit Graph

86 Commits

Author SHA1 Message Date
Eli Barzilay
39a0ab60a7 Some more #lang racket' -> #lang racket/base' conversions
(And some other related minor racketisms.)
2012-11-07 08:03:44 -05:00
John Clements
c01e8c1564 refactored to reduce stepper dependencies 2012-06-19 23:51:59 -07:00
Matthew Flatt
9ca0c34cb2 lazy: fix or' and and' to not force last argument
The `or' and `and' functions already worked correctly; this
fix is for `or' and `and' as applied directly to arguments, which
expands to the `racket/base' `or' and `and' forms.
2012-02-19 07:38:29 -07:00
Stephen Chang
79dd7df945 fix lazy stepper bug: annota of non-identifier fns
- fix lazy stepper bug where delaying of non-identifier fns
  wasnt being properly hidden
- add test case for this bug

include in 5.2
2011-10-08 15:59:32 -04:00
Eli Barzilay
1db5ad97f8 Fix another bunch of "language" typos. 2011-08-26 05:26:46 -04:00
Stephen Chang
d0175722e8 fix lazy.scrbl so it compiles properly 2011-08-17 02:07:43 -04:00
Stephen Chang
af3e0cea01 updated Lazy Racket to use racket/base
updated Lazy Racket to use racket/base instead of mzscheme
2011-08-17 01:48:58 -04:00
Eli Barzilay
d61eb53686 Lots of documentation formatting.
Started as fixing misindented definitions, then more indentations, then
a bunch of similar things (square brackets, huge spaces at end-of-lines,
etc).
2011-08-15 07:50:04 -04:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Ryan Culpepper
1b702a2ae3 docs reorganization
added tutorial, racket categories
  relabeled some other categories
  normalized manual names: de-bolded, changed some names
2011-07-01 17:16:53 -06:00
Eli Barzilay
40124a0619 A long overdue scan to eliminate files without terminating newlines.
(DrRacket should really do that.)
2011-06-28 02:01:41 -04:00
Eli Barzilay
a38f384a00 Finish converting scheme' -> racket'.
Everything compiles fine now even if the compatibility bindings are
gone.
2011-06-28 00:45:38 -04:00
Eli Barzilay
ac26fe7554 A ton of @scheme*' -> @racket*' and related updates.
Also, updates some of the mzlib files to point at `racket/*' libraries
rather than to `scheme/*' ones.
2011-06-25 04:08:47 -04:00
Eli Barzilay
debd1f9f1e Recketizing much in `net/*', mass ".ss" -> ".rkt" conversion in .scrbl files.
(Some other minor things here and there.)
2011-06-20 04:27:14 -04:00
Eli Barzilay
7918d921ee Fix documentation for `cycle'.
Closes PR 11040.
2011-05-11 13:54:18 -04:00
Robby Findler
fcfb422294 weeded out some more of the test-docs-complete.rkt files 2011-04-25 21:20:52 -05:00
Robby Findler
e7d0029aea added lots of new tests that our documentation is complete 2011-04-25 13:24:43 -05:00
Stephen Chang
718b9709bc fix struct constructor application in lazy racket 2011-04-19 01:21:19 -04:00
Matthew Flatt
e655e1e6fe restore `lazy' docs 2011-04-14 13:15:51 -06:00
Stephen Chang
225c011502 fix toplevel variable dereferencing in lazy stepper
in lazy/lazy.rkt
- add 'lazy-op stepper-syntax-property to op in lazy #%app

in stepper/private/annotate.rkt
- in varref-abstraction, check for 'lazy-op operator for toplevel vars, and use
  varref-break-wrap if property = #t
2011-04-09 15:55:12 -04:00
Stephen Chang
5d47c0b49b in stepper/private/reconstruct.rkt
- in recon-inner, in called app case
  - add other force fns to force case (!!, !list, !!list)
  - add other list fns
    (list?, length, list-ref, etc)

in stepper/private/lazy-highlighting.rkt
- add various list fns (list?, length, list-ref, etc)

in stepper/private/macro-unwind.rkt
- in unwind-cond, disable check of user-source and user-position

in tests/stepper/
- add test for various list fns
2011-04-06 18:44:36 -04:00
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
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
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
da456f2e37 add stepper button to Lazy Racket 2011-04-06 18:40:03 -04:00
David Van Horn
c9519fd113 Fixed various spelling errors. 2011-02-03 17:42:33 -05:00
Eli Barzilay
6b5e09073a Reorganize, improve, and extend lazy tests. 2011-01-30 13:52:04 -05:00
Stephen Chang
808361b789 fix lazy take bug -- invariant being tested on unforced argument 2011-01-30 12:10:57 -05:00
Eli Barzilay
40610643bf Make `take' less forceful -- so now (take 0 (error "foo")) returns '()
instead of throwing an error.
2011-01-26 17:06:17 -05:00
Stephen Chang
39194ba5da in lazy.rkt, fix bug in take, where (take 0 non-null-list) was not evaluating to null 2011-01-26 15:27:18 -05:00
Eli Barzilay
698b3a6c90 Throw an error if the number input for `take' is too big.
Note that this is usually delayed so it's not too useful.  Note that it
*doesn't* force the list -- see the explanation in the comment.

(Related to PR 11458.)
2010-11-23 14:13:26 -05:00
Eli Barzilay
f3c62a0efd Require a non-negative exact integer argument for `take'.
Closes PR 11458.
2010-11-23 10:28:14 -05:00
Eli Barzilay
2d9601089d A lot of "MzScheme" -> "Racket"s. 2010-05-16 18:26:26 -04:00
Matthew Flatt
c023c460bc misc racket renamings 2010-05-07 11:03:02 -06:00
Matthew Flatt
eb15dceb34 rackety misc docs 2010-05-07 09:13:51 -06:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
Eli Barzilay
b4ec71329f fix scribble references -- I have no idea how they worked before, since they weren't requiring it anyway.
svn: r17231
2009-12-06 20:58:17 +00:00
Eli Barzilay
66c855c2d3 Switch language readers to #lang s-exp
svn: r15188
2009-06-16 17:13:51 +00:00
Eli Barzilay
4288c6c2c7 The Scribble reader was improved to make it pull out the syntax
punctuations outside of the form, as it does with quote punctuations.
So things like this

  #, @foo{...}

that required the space to make the @foo read as a scribble form are
now better written as

  @#,foo{...}

This changes all such occurrences.  (In case you see this change in
your files and are worried that there might be changes: I mechanically
verified that the result of `read'ing the modified files is identical
to the previous version.)

svn: r15111
2009-06-07 10:12:32 +00:00
Eli Barzilay
dbc196c246 make (values x) return just x
svn: r14420
2009-04-04 18:41:57 +00:00
Matthew Flatt
0f18d68649 Scribble: change handling of argumentd in defproc, etc., to use lexical bidning instead of parameters and symbols; fix some docs
svn: r13688
2009-02-17 01:15:38 +00:00
Matthew Flatt
9453aaaccf assign authors to manuals
svn: r11287
2008-08-15 20:16:06 +00:00
Eli Barzilay
6994edd977 * Revised lazy/force so it actually works:
- `!!' now scans the same kind of data that `make-reader-graph'
    handles (except that hash-tables are not implemented)
  - this means no structs, no mpairs, and a bunch of other stuff
  - `!!!' is gone (lazy procedures are not wrapped)
  - dealing with multiple values moved into lazy/lazy.ss itself (and
    in the future everything will move in there)
* Removed lazy/promise, and use scheme/promise instead.  Also remove
  the docs for lazy/promise that were bogus (since scheme/promise *is*
  doing the same thing now).
* Other adjustments to the docs.  They should be considered incomplete
  now, and will need a major rewrite when the whole thing works again
  (multiple values things are just commented out for now).
* Added a test macro and a quick test suite for lazy/promise.
* The lazy tests are added to the nightly build tests

svn: r11042
2008-08-03 06:28:25 +00:00
Eli Barzilay
39af76b953 typo
svn: r10842
2008-07-20 05:38:05 +00:00
Eli Barzilay
7d50e61c7f * Newlines at EOFs
* Another big chunk of v4-require-isms
* Allow `#lang framework/keybinding-lang' for keybinding files
* Move hierlist sources into "mrlib/hierlist", leave stub behind

svn: r10689
2008-07-09 07:18:06 +00:00
Eli Barzilay
648286fa52 more numbers
svn: r10425
2008-06-23 14:58:10 +00:00
Matthew Flatt
20fcb6314c honu-module -> honu; misc doc and slideshow tweaks
svn: r10230
2008-06-12 13:02:41 +00:00
Matthew Flatt
5f85bbce17 'experimental doc category
svn: r9725
2008-05-07 20:11:13 +00:00
Eli Barzilay
f1d36345c2 oops, get it back, it's not efficient, but it works
svn: r9625
2008-05-03 06:48:29 +00:00