> On Oct 18, 2016, at 6:10 PM, Chris GauthierDickey <chris...@gmail.com> wrote: > > Greetings all, > > Googled around and searched through documents but I couldn't find an > answer. Me and a colleague built a #lang on top of racket and I've been able > to get it to run in the Definitions window of Dr Racket but not in the REPL > (either in Dr. Racket or from the command line). I'm not getting any errors. > My module has a (provide #%top-interactive) so the interactive window does > open up, it just doesn't parse anything at all. Any suggestions on how to > make it use the reader/expander we built for our #lang so it works in the > REPL?
I'm inferring that your #lang probably uses a non s-expression syntax. If your #lang has a non-s-expression syntax, then you will need to need either use the 'language-info syntax property with or use a configure-runtime submodule. The first method is introduced here, and it's the one I've used before https://docs.racket-lang.org/guide/module-runtime-config.html <https://docs.racket-lang.org/guide/module-runtime-config.html> But either way, you would want to override the current-read or the current-readtable parameter to use your new reader. How are you implementing your reader? Are you using syntax/module-reader, or are you providing the read, read-syntax, and get-info functions directly? If you're providing them directly, are you generating them using a function like make-meta-reader, are you using a readtable, are you using a parser library, or something else? > Pretty sure I've seen this work with Redex, so I *think* it's possible! > > Thanks in advance for any help! > Chris -- 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.