Commit Graph

210 Commits

Author SHA1 Message Date
Stephen Chang
35f3a29020 fix lazy stepper tests
add case to annotate/module-top-level in stepper/private/annotate.rkt
2011-08-22 17:58:22 -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
Stephen Chang
8956364387 change recon-val in stepper to use render-to-sexpr for non-lazy lists 2011-07-24 12:18:09 -04:00
Stephen Chang
3f79c37ce6 add make-lazy-proc to lazy stepper skipped fns list 2011-07-13 18:54:45 -04:00
John Clements
35c9bd90ab preserve user origin field... it may be useful 2011-07-09 17:18:13 -07:00
John Clements
a1cc083737 preserve origin field 2011-07-09 16:19:16 -07:00
John Clements
592f28382b refactoring, no semantic changes 2011-07-09 16:19:15 -07:00
John Clements
2cebd8f4cb retabbing, dumping a 'local', no longer using parenthesized module form 2011-07-09 16:19:15 -07:00
John Clements
53db721ee9 retabbing only 2011-07-09 16:19:15 -07:00
John Clements
ba82f46a07 retabbing and dead code removal only 2011-07-09 16:19:15 -07:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Matthew Flatt
1160d3df62 remove syntax certificates; add syntax taints 2011-06-29 19:15:48 -06:00
John Clements
d81a95ef26 cleanup, tentatively annotating all top-level-vars 2011-06-29 12:44:35 -07:00
John Clements
e88ec555bb added parameter to control STC's debug printout 2011-06-29 12:44:09 -07:00
John Clements
ae9cab6ee0 Updated stepper-syntax property to only permit known & documented stepper properties,
discovered quite a number of strange old errors. Also fixed an
error on setting current-directory when the tab has no directory,
no infrastructure for testing this automatically.
Requires are now handled correctly, except that required bindings aren't treated
as top-level (that is, their reductions are skipped). Should be an easy fix...
2011-06-29 00:32:38 -07:00
John Clements
d839b9fea6 renamed define-struct-hint to black-box-expr, applied to require as well 2011-06-29 00:28:08 -07:00
John Clements
7d782b6fd3 fixed undiscovered bug in reconstruction of let*, added test case too 2011-06-29 00:25:56 -07:00
John Clements
673f99417b removed a space 2011-06-28 18:43:04 -07:00
John Clements
b9a802386e set the current directory based on the tab's get-directory before starting the stepper.
Closes PR 11048
2011-06-28 17:07:12 -07: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
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
Stephen Chang
b4ab1bb093 fix bug in lazy stepper handling of cyclic lists 2011-05-22 01:54:46 -04:00
Robby Findler
507b1cd8fd moved the docs-complete library into rackunit
to avoid having a separate, new manual for the
  one library
2011-05-05 16:10:42 -05:00
Robby Findler
a22d370818 fix copy and paste bug (and re-indent a mis-indented line) 2011-04-29 21:11:23 -05:00
John Clements
d2a21d717c refactored stepper tool to work with tabs instead of frames 2011-04-28 13:22:12 -07:00
John Clements
e4a834e9b0 housekeeping, changed to drracket-tool, moved files to private 2011-04-28 13:22:12 -07:00
John Clements
437baf905a added simple scribblings from old doc.txt 2011-04-28 13:22:12 -07: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
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
341ed19e58 remove stepper/private/lazy-highlighting.rkt 2011-04-09 13:50:24 -04:00
Stephen Chang
d8517af898 fix stepper rendering of non constructor-style lists
in stepper/private/reconstruct.rkt
- in recon-value, list case, add quasiquote rendering when constructor-style
  printing = #f
2011-04-08 20:41:36 -04:00
Stephen Chang
4ef7e1fae3 improve lazy stepper recon of unannotated fn apps
remove stepper/private/lazy-highlighting.rkt

in stepper/private/macro-unwind.rkt:
- in fall-through, add lazy-proc to lazy #%app special case

in stepper/private/model.rkt
- in send-step, dont use highlight-table, just match top called fn in mark-list
  instead

in tests/stepper/
- add lazy stepper tests for filter and fold
2011-04-08 20:41:35 -04:00
Stephen Chang
5238c338b6 fix stepper tests broken by lazy stepper 2011-04-07 15:11:40 -04:00
Stephen Chang
9f848863ff fix lazy stepper to work with print and write output-styles
in stepper/stepper-tool.rkt
- in simple-module-based-language-convert-value, add print and trad-write case

in stepper/private/macro-unwind.rkt
- in fall-through, add to procedure-extract-target case

in drracket/tool-lib.rkt
- in contract for drracket:language:simple-settings-printing-style, add
  'trad-write
2011-04-07 12:49:27 -04:00
Stephen Chang
c8dd95b3cf fix user-position stepper-property bug in lazy cond stepper unwinding
in stepper/private/macro-unwind.rkt
 - in fall-through, add special #%app case for force

 in stepper/private/reconstruct.rkt
 - in recon-inner, in called app case, combine force case with other lazy fns

 in tests/stepper/
 - add test for lazy cond unwinding problem
2011-04-06 22:29:48 -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
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
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
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
David Van Horn
760a58b65d Fixes more spelling errors. 2011-02-04 19:44:13 -07:00