Vityou, I will give you an example though I myself sometimes doubt that I did it in the right way.
Anyway, here is what I did when I had exactly the same problem: - redefine and reexport #% top-interaction - provide #:language-info to the DrRacket's REPL (I am not sure if racket's REPL needs it too, but doing it will not hurt). The provided call should respond to 'configure-runtime key - the 'configure-runtime should trigger a setting of (current-read-interaction) parameter. - at the end of the implementation of (current-read-interaction), it should set another (current-read-interaction) that just returns EOF -- and then sets the original (current-read-interaction) back, so it is kind of a loop. The example (made long ago) is available at: https://github.com/kugelblitz/calc Relevant parts: /language.rkt (see top-interaction) /lang/reader.rkt (reference to lang-info) /lang/lang-info.rkt (calling of "configure runtime" handler) /lang/configure-runtime.rkt (the handler itself) Hope this helps. Dmitry On 05/18/2017 06:45 AM, Vityou wrote:
I did reprovide all of the #%... forms from racket, and the repl works with base.rkt, it's when I have a reader that the repl doesn't work.
-- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.