From 220d38c05362986534865abff3572cccd7dd395c Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Mon, 3 Nov 2014 12:49:45 -0700 Subject: [PATCH] document `current-read-interaction` adjustment by `at-exp` i.e., document the change in commit 015986fb4f. original commit: 168e76ac0ef00ca503b60f662807105f7a63d13b --- .../scribblings/scribble/reader-internals.scrbl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/scribble-pkgs/scribble-doc/scribblings/scribble/reader-internals.scrbl b/pkgs/scribble-pkgs/scribble-doc/scribblings/scribble/reader-internals.scrbl index c0a1c23b..a46cdeec 100644 --- a/pkgs/scribble-pkgs/scribble-doc/scribblings/scribble/reader-internals.scrbl +++ b/pkgs/scribble-pkgs/scribble-doc/scribblings/scribble/reader-internals.scrbl @@ -145,7 +145,8 @@ is an example of this. @section[#:tag "at-exp-lang"]{Adding @"@"-expressions to a Language} @defmodulelang[at-exp]{The @racketmodname[at-exp] language installs -@seclink["reader"]{@"@"-reader} support in the readtable, and then chains to the reader of +@seclink["reader"]{@"@"-reader} support in the readtable used to read +a module, and then chains to the reader of another language that is specified immediately after @racketmodname[at-exp].} @@ -160,6 +161,15 @@ at-exp racket/base reports @racket["Hello, friend."]. +In addition to configuring the reader for a module body, +@racketmodname[at-exp] attaches a run-time configuration annotation to +the module, so that it if it used as the main module, the +@racket[current-read-interaction] parameter is adjusted to use the +@seclink["reader"]{@"@"-reader} readtable extension. + +@history[#:changed "1.2" @elem{Added @racket[current-read-interaction] + run-time configuration.}] + @;-------------------------------------------------------------------- @section{Interface}