* Reorganize the -inside readers in the scribble reader

* #:start-inside? is gone -- it never made sense
* Instead, there's a new `make-at-reader/inside' (with the same
  arguments) that returns an inside syntax reader.

svn: r15073

original commit: 2be3ac0178e242a0cd88ca280a1ac4d25bd6a33a
This commit is contained in:
Eli Barzilay 2009-06-04 03:51:22 +00:00
parent 8fa810e842
commit 59b28a6874
2 changed files with 10 additions and 13 deletions

View File

@ -701,8 +701,6 @@ resulting reader in several ways.
#'cmd)])
(syntax/loc stx (mk-cmd rest ...)))]))
* #:start-inside? -- used internally by the above `-inside' variants.
> (use-at-readtable [keyword-args])
Installs the Scribble readtable as the default. Useful for REPL

View File

@ -891,14 +891,16 @@ Useful for implementing languages that are textual by default (see
@filepath{docreader.ss} for example).
}
@defproc[(make-at-readtable [#:readtable readtable readtable? (current-readtable)]
[#:command-char command-char character? #\@]
[#:start-inside? start-inside? any/c #f]
[#:datum-readtable datum-readtable
(or/c readtable? boolean?
(readtable? . -> . readtable?))
#t]
[#:syntax-post-processor syntax-post-proc (syntax? . -> . syntax?) values])
@defproc[(make-at-readtable
[#:readtable readtable readtable? (current-readtable)]
[#:command-char command-char character? #\@]
[#:datum-readtable datum-readtable
(or/c readtable? boolean?
(readtable? . -> . readtable?))
#t]
[#:syntax-post-processor syntax-post-proc
(syntax? . -> . syntax?)
values])
readtable?]{
Constructs an @"@"-readtable. The keyword arguments can customize the
@ -934,9 +936,6 @@ resulting reader in several ways:
[_else (error "@ forms must have a body")])))
]}
@item{@scheme[start-inside?] --- if true, creates a readtable for
use starting in text mode, instead of S-expression mode.}
]}
@defproc[(use-at-readtable ...) void?]{