Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add #:no-read-output and #:no-read-definitions options #10

Open
SuzanneSoy opened this issue Mar 31, 2016 · 0 comments
Open

Add #:no-read-output and #:no-read-definitions options #10

SuzanneSoy opened this issue Mar 31, 2016 · 0 comments
Assignees

Comments

@SuzanneSoy
Copy link
Owner

Disable calling read on the output expressions and definitions, which can be useful when the output contain unbalanced parenthesis, or do not otherwise match the language’s syntax, for example:

#lang repltest racket
> (displayln "(unbalanced")
(unbalanced
> (displayln "#invalid (syntax . too . many . dots)")
#invalid (syntax . too . many . dots)

This will also have the side-effect of allowing the prompt to be matched inside s-expressions.

The #:no-read-definitions can be useful if the first prompt could be part of an s-expression, for example using #lang reader "literal.rkt" from the docs:

#lang repltest #:no-read-definitions #:prompt-start-of-line reader "literal.rkt"
This > text > is > in > the > definitions
> 'first-prompt
'first-prompt
> data
"This > text > is > in > the > definitions"
@SuzanneSoy SuzanneSoy self-assigned this Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant