Commit Graph

238 Commits

Author SHA1 Message Date
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
David Van Horn
c9519fd113 Fixed various spelling errors. 2011-02-03 17:42:33 -05:00
John Clements
8ccee771f8 improved dialog text for stepper jump failures 2011-01-10 16:41:19 -08:00
Robby Findler
b902cb5455 closes PR 11522 2010-12-10 06:57:24 -06:00
John Clements
368f345901 more stepper cleanup 2010-12-08 16:37:15 -08:00
John Clements
ff973b628b stepper refactoring and cleanup 2010-12-08 16:37:15 -08:00
John Clements
b0c6154ae0 cleanup of stepper's shared.rkt 2010-12-07 20:44:35 -08:00
John Clements
fec54283fb applicable structs now working, closure table is gone 2010-12-07 20:44:35 -08:00
John Clements
9eaee0e6f1 about to give up for now... 2010-12-07 20:44:34 -08:00
John Clements
0d2a4b98db moving to another machine 2010-12-07 20:44:34 -08:00
John Clements
6f84a1c143 checkpointing progress toward applicable structs instead of hash table 2010-12-07 20:44:34 -08:00
John Clements
34fbc9a06f frightening bug, #%if was capturing everything 2010-10-20 12:05:06 -07:00
John Clements
60dabc8ad7 may have fixed cond in stepper tests 2010-10-19 17:50:35 -07:00
John Clements
c2b75a6c57 updated stepper to use 1-based step numbering.
Closes PR 11166.
2010-09-07 14:45:47 -07:00
John Clements
adc7d272a8 removed stepper's application < \ > buttons, added choice boxes instead, misc. cleanup and
racket-ification of associated file.
2010-08-30 11:31:00 -07:00
Eli Barzilay
7dc4d2e5a6 Change a bunch of "~%" and "~n" in format strings to "\n". 2010-08-25 17:17:01 -04:00
Eli Barzilay
606b7f60dc Lots of "~e" to "~.s" changes. 2010-08-25 17:17:01 -04:00
John Clements
2b7797ad17 comments added, & 1 test 2010-05-28 14:57:18 -07:00
Eli Barzilay
de0cc7771b A lot of "DrScheme" -> "DrRacket"s. 2010-05-17 01:27:03 -04:00
Eli Barzilay
2d9601089d A lot of "MzScheme" -> "Racket"s. 2010-05-16 18:26:26 -04:00
Eli Barzilay
bb263675b6 Rename "drscheme-button*" -> "drracket-button*"; fix bad reference to "drscheme/syncheck-drracket-button". 2010-05-16 18:26:25 -04:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
John Clements
0e632187a0 deleting test file 2010-04-20 16:35:10 -07:00
John Clements
eda81847a5 made a change to foo.ss 2010-04-20 16:14:53 -07:00
John Clements
385f96e502 pardon me for experimenting on the master tree... 2010-04-20 16:00:42 -07:00
Robby Findler
bf9ae0f731 added support for opt-out buttons and then took advantage of it to do a better job with the check syntax, macro stepper, and debugger buttons
svn: r18785
2010-04-11 03:14:02 +00:00
Robby Findler
9ad5210bb4 oops, bugfix
svn: r18774
2010-04-09 20:10:56 +00:00
Robby Findler
c7606115e1 added support for the stepper button appearing automatically in the teaching languages (in the module language with #lang htdp/* prefix)
svn: r18771
2010-04-09 19:28:02 +00:00
John Clements
2098a19291 fixed dmda stepper bug: goes in 4.2.4 release
svn: r17805
2010-01-24 19:28:57 +00:00
John Clements
ba18a93fa6 fixed bug involving certificates appearing in different places
svn: r17793
2010-01-24 07:01:25 +00:00
Mike Sperber
0257ac515a Make the stepper ignore `check-property'.
svn: r17013
2009-11-23 20:44:47 +00:00
John Clements
505bf56db2 added first-step semaphore. Goes in 4.2.3 release
svn: r16875
2009-11-18 18:41:42 +00:00
John Clements
059ec602fb new non-blocking stepper implemented
svn: r16310
2009-10-13 18:46:29 +00:00
John Clements
eb6c26e71d added view-controller-non-blocking.ss
svn: r16260
2009-10-06 22:55:02 +00:00
John Clements
224a9546b8 hash should have been hasheq...
svn: r16200
2009-10-01 17:52:45 +00:00
John Clements
1b0a450739 goes in 4.2.2 release: fixed missing init arg to stepper-text% for errors
svn: r16182
2009-09-30 06:04:28 +00:00
Mike Sperber
c26b3b8c6c Make the Stepper behavior on and/or configurable:
In the HtDP languages, initial subexpressions that have evaluated to
#t / #f remain in the residual term, whereas in the DMdA languages,
they do not.

svn: r16018
2009-09-15 17:32:21 +00:00
John Clements
03134e9107 added dont-care defn to suppress output
svn: r15994
2009-09-13 19:10:13 +00:00
John Clements
7bb15bbbeb fixed #i printing
svn: r15993
2009-09-13 18:35:21 +00:00
John Clements
de967c2755 ignore source posn if #f
svn: r15552
2009-07-24 20:46:10 +00:00
John Clements
a08acb6aad change to gathering of posn info
svn: r15538
2009-07-23 04:36:36 +00:00
John Clements
3dab936d0f fixed a bug on jump-to feature + errors
svn: r15484
2009-07-18 03:04:22 +00:00
Eli Barzilay
a70bf64fd9 Newlines at EOFs
svn: r15380
2009-07-04 02:28:31 +00:00
Jay McCarthy
ad53d3e60d Renaming permissive? to permissive-xexprs based on Matthias suggestion
svn: r15237
2009-06-22 21:00:24 +00:00
John Clements
b181309703 removed unused debugger files
svn: r15000
2009-05-27 23:17:39 +00:00
John Clements
0666e79327 ...
svn: r14926
2009-05-22 18:40:33 +00:00
John Clements
142a990a46 eliminated extra arg to error-result construction
svn: r14923
2009-05-22 17:53:28 +00:00
John Clements
0885877641 ranges for stepper-jump
svn: r14895
2009-05-21 05:35:38 +00:00
John Clements
6f62f05ed5 ...
svn: r14893
2009-05-21 00:04:17 +00:00
John Clements
116d961f35 changed comment
svn: r14892
2009-05-20 23:59:24 +00:00
John Clements
9ff820f760 added view-controller.ss
svn: r14506
2009-04-14 03:16:30 +00:00
John Clements
9c93191241 jump-to-beginning-of-selected
svn: r14501
2009-04-13 23:48:15 +00:00
Jay McCarthy
04cdd975e9 Fixing xml snip bug
svn: r14087
2009-03-13 14:55:37 +00:00
John Clements
24fabc146a ...
svn: r13941
2009-03-04 08:29:12 +00:00
Eli Barzilay
d1a0086471 newlines at EOFs
svn: r13105
2009-01-14 03:10:47 +00:00
Jay McCarthy
5cc3b529a0 Re: Robby
svn: r12915
2008-12-20 17:42:38 +00:00
John Clements
9e7a4e9e1d fixed felix's bug
svn: r12495
2008-11-18 18:26:31 +00:00
John Clements
a3ce8a9b85 fixes for mz-level stepper tests
svn: r12220
2008-11-02 23:59:21 +00:00
Mike Sperber
f26fcdd82c Add `stepper-skipto/discard' property.
Like stepper-skipto, but discards the context.  This is for the
contracts implementation in the DMdA teaching languages.

svn: r12078
2008-10-21 07:06:48 +00:00
Robby Findler
5566ec2ef2 PR 9742
svn: r11723
2008-09-13 13:22:22 +00:00
John Clements
9c928f7e82 got mz tests working again
svn: r11623
2008-09-09 22:49:33 +00:00
Robby Findler
a073b04c3c removed extra arguments in call to highlight-range, since they were the default value (and the signature of this method is going to change)
svn: r10897
2008-07-24 11:36:54 +00:00
Danny Yoo
4535aa4537 Simplifying scheme box location-finding code.
svn: r10803
2008-07-17 00:52:47 +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
Danny Yoo
8024601262 Correcting arguments passed to open-input-text-editor.
svn: r10496
2008-06-29 01:43:50 +00:00
Danny Yoo
0e42c65d3b Adjusted xml and scheme boxes to pass in port-name as syntax source.
svn: r10495
2008-06-28 23:33:44 +00:00
Danny Yoo
1e1cb4d843 Revert r10469.
svn: r10480
2008-06-27 19:33:04 +00:00
Danny Yoo
ca7188be1e Removed hack in scheme box's read-special. This fixes error highlighting under Check Syntax for embedded scheme boxes.
svn: r10469
2008-06-27 00:05:47 +00:00
Robby Findler
c9485454a9 liberalized the XML snips so they dont require the framework
svn: r10187
2008-06-08 03:43:33 +00:00
John Clements
f2cf321d4e revision 10,000?
svn: r10000
2008-05-28 07:57:11 +00:00
John Clements
b180fe980c ...
svn: r9999
2008-05-28 07:55:42 +00:00
John Clements
645cd87c81 ...
svn: r9986
2008-05-27 20:21:44 +00:00
John Clements
7909426f60 fussing with test results
svn: r9985
2008-05-27 20:21:17 +00:00