Commit Graph

38 Commits

Author SHA1 Message Date
Ryan Culpepper
d16c59f097 added with-eval-preserve-source-locations to scribble/eval
Makes it possible to show examples of redex term->pict, etc.

original commit: 516f56fc83653558d3b3bfea8cb471a213dcbe25
2013-04-04 13:28:01 -04:00
Robby Findler
abbbc02016 add interaction/no-prompt and clarify that interaction-eval
doesn't catch errors

original commit: e5d91baa2c593f88f0510f61a3a0f65fe22ea7db
2013-03-20 22:51:39 -05:00
Robby Findler
04a6e274f9 added scribble-exn->string
original commit: a29f37f18b19e8a87f01fb4da147c8c30eee788b
2013-03-20 22:51:39 -05:00
Matthew Flatt
1efd01584e scribble/eval: remove bogus top-level `namespace-require'
original commit: 5f3f3e8c54f843338feb7a5fdf76eed0240f1aa9
2012-06-27 12:28:17 -06:00
Matthew Flatt
b5f09c0d39 more error-message conversions and repairs
original commit: a137459b65b54d65595e854101aae7440d9e65f6
2012-05-27 11:29:21 -06:00
Matthew Flatt
45e9a0fd33 scribble/eval: fix error line wrapping
The `wrap-line' function from `scribble/text/wrap' wants a
string that's a single line, so break the initial string
based on explicit lines, first.

original commit: 9b7ef7bf699c7997ad2c254827ca6528491a6f10
2012-05-25 12:47:39 -06:00
Matthew Flatt
681837dc32 scribble/eval: add eval:result' and eval:results'
original commit: 2d027e7ee5885b8c70e720db968f348df7fa2949
2012-05-09 19:11:21 -06:00
Eli Barzilay
c3d02f1416 Use the new wrap-line' in scribble/eval'.
This might have output that is a little better in cases where the
wrapped string is longer than `maxlen', for example, with an input of:

  "    x xxxxxxxxxxxxxxxx..."

and wrapping at 10 characters, the output was

  "    x\nxxxxxxxxxx\nxxxxxx..."

and now it's

  "    x xxxx\nxxxxxxxxxx\nxx..."

original commit: efda1706d87045cbe2882c9c4b77b34a72e3594b
2012-05-06 06:15:04 -04:00
Matthew Flatt
548627c404 scribble/eval: change string or byte-string expression handling
Use `datum->syntax' instead of `begin' to protect the string or byte
string. Danny Yoo suggested this change.

original commit: 23296615ec7cddb34257486b62094048b085ff6e
2012-05-01 16:48:15 -06:00
Ryan Culpepper
5218126773 scribble/eval: pretty-print results by default
original commit: eed6016793c9646f5dce28e2660c2a8cd0db1122
2011-10-16 05:41:58 -06:00
Ryan Culpepper
02d8332600 removed useless requires
original commit: c7f86d276c68b12e87dc46cef4a8e1b95538f88d
2011-09-27 19:28:44 -06:00
Matthew Flatt
f622c4755c scribble: more nowraps in HTML output
Avoids line-wraps for `examples' output and in function contracts

original commit: 7a2e1aa9001ec002892be146b7e5b425fa757c01
2011-09-12 19:17:08 -06:00
Matthew Flatt
d1d35d28bf Guide corrections
original commit: bedd7b16713bcea67f44e8bc7e30a5782b8a1f66
2011-08-26 10:04:19 -06:00
Matthew Flatt
1e219c6fe1 fix plurality of `examples' label
original commit: e4729afdbff8492c9467c0a0a2d2e55a6d20b879
2011-08-17 20:43:06 -06:00
Matthew Flatt
4b7c597f04 add an #:escape' clause to all schemeblock'-like forms
original commit: a1eaecb337f2d4e55c7f8638b70226c76554f204
2011-08-16 07:53:05 -06:00
Matthew Flatt
db4d7c9add Scribble: support for "boxable" blocks in Latex output
For example, if you make a multi-column table with a
`racketblock' in each column, then the columns size
to fit the code --- instead of forcing the table width
to match the page width and forcing each column to take
an equal share width.

original commit: b7afb3cf8fbbf448af18805db2f32c130ba4d47b
2011-08-05 10:03:38 -06:00
Matthew Flatt
3a89754d6a fix mismatch between make-base-eval' and make-base-eval-factory'
original commit: 8d3aa69e9de7531f7b10f1f7c6c684be32978022
2011-08-01 04:01:40 -06:00
Eli Barzilay
45a9cd48c2 ".ss" -> ".rkt" scan done.
original commit: 3157955d40f89d83fb3d5fa7a2f20639cda69579
2011-07-02 10:37:53 -04:00
Vincent St-Amour
71fd650e3c These changes break with bad sandboxes.
Revert "Fix interface."
Revert "Add more scribble forms that evaluate code and display the results."

This reverts commit a621eaf04151f4bf830bfe3fca5c60c6dd72fcae.
This reverts commit 7e9dbded4c89c5e95945e2f91653fab0b58a0390.

original commit: 8f092e83309b0b376feb1fc1ad13914990137b50
2011-06-17 15:18:48 -04:00
Vincent St-Amour
3dc3b7ee6e Fix interface.
original commit: a621eaf04151f4bf830bfe3fca5c60c6dd72fcae
2011-06-17 14:47:16 -04:00
Vincent St-Amour
01a237406a Add more scribble forms that evaluate code and display the results.
original commit: 7e9dbded4c89c5e95945e2f91653fab0b58a0390
2011-06-17 14:04:38 -04:00
Eli Barzilay
88e9704a8b Pass around the form name so that an error from the sandbox will show a
more useful error.

original commit: 768baa5983297370ef06023400565b0a3d4c099d
2011-06-16 21:37:48 -04:00
Eli Barzilay
bf18603b97 Switch to `#lang', reformat, and some minor improvements.
original commit: d4dec81c91a3d95ce8d252a2b63bdc3fe8c79128
2011-06-16 21:37:47 -04:00
Eli Barzilay
09eb2cc7b7 Add an error message when the sandbox doesn't capture its output as a string.
original commit: 43d1c240a171943e214ac43055e6bdbfc5072f70
2011-06-16 21:37:47 -04:00
Matthew Flatt
742843af7b 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

original commit: bbc5533938b1dac8f14005210fa9fe552dfa7e8c
2011-03-30 15:12:30 -06:00
Eli Barzilay
46ffc5cf44 Add comment on how to make interactions use syntax values.
Also add `code:comment' to the keyword list.

original commit: 01089550e2f994bbc8e027478ec41c7985ec2e80
2011-03-11 15:40:13 -05:00
Matthew Flatt
67888f2c2c scribble/eval: fix evaluation of literal #f expression
Fixed part of PR 11790

original commit: ae8705611ba3ff03ed208aa5c590e8cfc52a36a6
2011-03-11 07:52:16 -06:00
Matthew Flatt
8ce5125d6c Scribble: fix multi-line print output
Closes PR 11735

original commit: 1a5f41fd712384b409c760d15961af7b83e000ff
2011-02-14 07:32:21 -07:00
Matthew Flatt
73b8f12a0d Scribble: improve interaction', examples', etc. for non-text
by setting the default output port in the sandbox to support
 content as "specials" when `current-print' is changed

original commit: 46dc2d66839f83fed424b4e214160faa0894404d
2011-01-29 09:55:40 -06:00
Matthew Flatt
8f876ea446 move racket/draw overview to the Guide and expand it
--- plus some minor collateral API improvements

original commit: 8b3165d55b85cffbe3ad28be6d8bd4c218d21529
2010-11-27 16:34:32 -07:00
Matthew Flatt
77e9dca243 fixes to make pict eval results work in Scribble
original commit: 5d386a99ec8121261fd61d61da9e5ac69a217488
2010-11-26 20:40:43 -07:00
Matthew Flatt
6ce47a9d1e change Scribble's interaction', etc. to use non-default current-print'
to format results, if one is installed in a sandboxed evaluator

original commit: a19899898f1f7774f634ad44df560f4813fec91c
2010-08-24 20:50:46 -06:00
Matthew Flatt
7ffaaf6722 add racketresultblock, etc. to Scribble
original commit: c18603f767b088625d855b8dbf68137b2b8d930d
2010-05-31 13:55:16 -06:00
Matthew Flatt
16d18c291d Fix Scribbling and eval-result copying of hasheqv/hasheq tables
Closes PR 10918

original commit: 141a37e50d11d54d28b8e90b7ed769073ad5f7c5
2010-05-21 19:40:33 -06:00
Matthew Flatt
eeee9df37e convert racket value printer to constructor+quote style; update Guide and Quick
original commit: 420ea6ee0962cac112853c23e756534cb307ad62
2010-05-06 14:57:15 -06:00
Matthew Flatt
8a38388cd7 switch printer to constructor+quote style
original commit: 43027a8d9b862d44c84bd6922716f69bf81f8f14
2010-05-06 10:33:42 -06:00
Matthew Flatt
7d91640d72 fully rackety guide
original commit: 162058036ec2fcce1905fdf746b6faa3a0342d34
2010-04-30 08:02:57 -06:00
Matthew Flatt
7e5406e889 rename all files .ss -> .rkt
original commit: 28b404307793f041bb3363135a2968e283855318
2010-04-27 16:50:15 -06:00