Interaction with a reader in scribble

Hi,

is it possible to use interaction in scribble with a reader?, example of what i mean:

#lang scribble/manual
@(require scribble/core)
@(require scribble/eval)

@interaction[
#lang reader SRFI-105
(require Scheme+)
{3 · 5 + 2 ³}
]

the above example will not parse and use #lang reader SRFI-105 correctly and will fail compiling the document.

1 Like

Does the examples form from scribble/example` work?

I honestly don’t know this at all - I just noticed that the docs suggest the scribble/example library should be used instead of scribble/eval.

Regards
Stephen

thank for your help Stephen, i tested the sole example of the doc and it does not seems to accept a reader,only a module as racket/base.

This is a bit the problem of Racket, i often encounter, the #lang language or #lang reader program that is so far from sexpr that it could not be used in any context. In fact #lang language could be replaced by (module program-name language... but there is no equivalent for #lang reader a-reader or #reader a-reader could not be represented as a sexpr module.

I can not find a solution and i do not think it is possible in Racket.

Damien

1 Like