In addition to what Matthew has said, I guess you need to have a 'main' module
in your language, and provide it to raco exe, too. It can be a dummy module or
not. The requirement of such a module is unclear to me, but it exists.
Here is my working script to pack a standalone interpreter of a language 'slon'
raco exe -o slon-racket ++lib slon/slon-language ++lib slon/lang/reader ++lib
raco distribute slon-racket slon-racket.exe
On February 1, 2018 8:53:50 PM EET, Deren Dohoda <deren.doh...@gmail.com> wrote:
>I'm having a hard time understanding the docs for raco exe and raco
>tl;dr main.rkt has to (dynamic-require user-selected.rkt) and
>user-selected.rkt is written in a different #lang and requires a file
>this program. How do I glue these pieces together for raco exe / raco
>My program has two things which seem to be hanging me up. The first is
>a file is grabbed with (dynamic-require) based on a path obtained by
>user with (get-file ...). This file is written in a different #lang and
>uses (require ...) for some syntax transformers.
>The exe builds alright but chokes when used because it can't find the
>and can't find the (require ...).
>Ideally the file which is given to (dynamic-require ...) could be in
>folder the user chooses, but then the (require ...) statement would be
>over the map and I don't understand what I'm supposed to do to resolve
>this. If it helps, the file is already required by the program and
>used only by the user-selected file. ++copy-collects doesn't seem to
>#lang folders correctly or I don't understand how to use it.
>Can someone give me some guidance here?
>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.
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
For more options, visit https://groups.google.com/d/optout.