David Van Horn
213430f728
Add #:lang and input-program inputs to make-base-eval and friends.
...
This commit extends make-base-eval, make-base-eval-factory, and
make-eval-factory with an #:eval and input-program inputs so that
these functions are more like racket/sandbox make-evaluator.
2013-04-06 09:00:41 -06:00
Ryan Culpepper
516f56fc83
added with-eval-preserve-source-locations to scribble/eval
...
Makes it possible to show examples of redex term->pict, etc.
2013-04-04 13:28:01 -04:00
Robby Findler
e5d91baa2c
add interaction/no-prompt and clarify that interaction-eval
...
doesn't catch errors
2013-03-20 22:51:39 -05:00
Robby Findler
a29f37f18b
added scribble-exn->string
2013-03-20 22:51:39 -05:00
Matthew Flatt
5f3f3e8c54
scribble/eval: remove bogus top-level `namespace-require'
2012-06-27 12:28:17 -06:00
Matthew Flatt
a137459b65
more error-message conversions and repairs
2012-05-27 11:29:21 -06:00
Matthew Flatt
9b7ef7bf69
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.
2012-05-25 12:47:39 -06:00
Matthew Flatt
2d027e7ee5
scribble/eval: add eval:result' and
eval:results'
2012-05-09 19:11:21 -06:00
Eli Barzilay
efda1706d8
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..."
2012-05-06 06:15:04 -04:00
Matthew Flatt
23296615ec
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.
2012-05-01 16:48:15 -06:00
Ryan Culpepper
eed6016793
scribble/eval: pretty-print results by default
2011-10-16 05:41:58 -06:00
Ryan Culpepper
c7f86d276c
removed useless requires
2011-09-27 19:28:44 -06:00
Matthew Flatt
7a2e1aa900
scribble: more nowraps in HTML output
...
Avoids line-wraps for `examples' output and in function contracts
2011-09-12 19:17:08 -06:00
Matthew Flatt
bedd7b1671
Guide corrections
2011-08-26 10:04:19 -06:00
Matthew Flatt
e4729afdbf
fix plurality of `examples' label
2011-08-17 20:43:06 -06:00
Matthew Flatt
a1eaecb337
add an #:escape' clause to all
schemeblock'-like forms
2011-08-16 07:53:05 -06:00
Matthew Flatt
b7afb3cf8f
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.
2011-08-05 10:03:38 -06:00
Matthew Flatt
8d3aa69e9d
fix mismatch between make-base-eval' and
make-base-eval-factory'
2011-08-01 04:01:40 -06:00
Eli Barzilay
3157955d40
".ss" -> ".rkt" scan done.
2011-07-02 10:37:53 -04:00
Vincent St-Amour
8f092e8330
These changes break with bad sandboxes.
...
Revert "Fix interface."
Revert "Add more scribble forms that evaluate code and display the results."
This reverts commit a621eaf041
.
This reverts commit 7e9dbded4c
.
2011-06-17 15:18:48 -04:00
Vincent St-Amour
a621eaf041
Fix interface.
2011-06-17 14:47:16 -04:00
Vincent St-Amour
7e9dbded4c
Add more scribble forms that evaluate code and display the results.
2011-06-17 14:04:38 -04:00
Eli Barzilay
768baa5983
Pass around the form name so that an error from the sandbox will show a
...
more useful error.
2011-06-16 21:37:48 -04:00
Eli Barzilay
d4dec81c91
Switch to `#lang', reformat, and some minor improvements.
2011-06-16 21:37:47 -04:00
Eli Barzilay
43d1c240a1
Add an error message when the sandbox doesn't capture its output as a string.
2011-06-16 21:37:47 -04: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
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
ae8705611b
scribble/eval: fix evaluation of literal #f expression
...
Fixed part of PR 11790
2011-03-11 07:52:16 -06:00
Matthew Flatt
1a5f41fd71
Scribble: fix multi-line print output
...
Closes PR 11735
2011-02-14 07:32:21 -07:00
Matthew Flatt
46dc2d6683
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
2011-01-29 09:55:40 -06:00
Matthew Flatt
8b3165d55b
move racket/draw overview to the Guide and expand it
...
--- plus some minor collateral API improvements
2010-11-27 16:34:32 -07:00
Matthew Flatt
5d386a99ec
fixes to make pict eval results work in Scribble
2010-11-26 20:40:43 -07:00
Matthew Flatt
a19899898f
change Scribble's interaction', etc. to use non-default
current-print'
...
to format results, if one is installed in a sandboxed evaluator
2010-08-24 20:50:46 -06:00
Matthew Flatt
c18603f767
add racketresultblock, etc. to Scribble
2010-05-31 13:55:16 -06:00
Matthew Flatt
141a37e50d
Fix Scribbling and eval-result copying of hasheqv/hasheq tables
...
Closes PR 10918
2010-05-21 19:40:33 -06:00
Matthew Flatt
420ea6ee09
convert racket value printer to constructor+quote style; update Guide and Quick
2010-05-06 14:57:15 -06:00
Matthew Flatt
43027a8d9b
switch printer to constructor+quote style
2010-05-06 10:33:42 -06:00
Matthew Flatt
162058036e
fully rackety guide
2010-04-30 08:02:57 -06:00
Matthew Flatt
28b4043077
rename all files .ss -> .rkt
2010-04-27 16:50:15 -06:00