There are three things you could do here:
1. Start the racket REPL, use `enter!` to run the program, and then
type in your expression. This is very similar to how DrRacket works.
2. Make sure the relevant things are `provide`d by your module, then
`require` the module and execute an expression. Here's an example:
[samth@huor:~/sw/plt/extra-pkgs/racket-lang-org (master) plt] cat a.rkt
#lang racket
(define x 1)
(provide x)
[samth@huor:~/sw/plt/extra-pkgs/racket-lang-org (master) plt] racket
-e "(require \"a.rkt\")" -e "(displayln x)"
1
3. Write the program you want as a module which uses `require` to
depend on the code you've already written, and then just run that
program as `racket program.rkt`.
I strongly recommend option 3, but any of them should work for you.
Sam
> --
> You received this message because you are subscribed to the Google Groups "Racket Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
racket-dev+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/racket-dev/73dd4ef7-9bb4-47c9-9c10-d369b2a30b67%40googlegroups.com.