ankit
2017-6-28 08:57:31

@ankit has joined the channel


thinkmoore
2017-6-28 11:35:17

@zenspider if its a module language (and doesn’t have a special reader), you can read the file in, construct a module with the language xxx and the read in stuff as the body, and eval that. might be an easier way though


mflatt
2017-6-28 13:52:23

@zenspider If the module language does have a reader, you can call it directory, but another option is to use input-port-append to add the #lang line. In any case, to handle relative paths, you’ll want to set current-load-relative-directory while reading; to get the module declaration associated with the original path, set current-module-declare-name during eval.


jim.sandridge
2017-6-28 16:53:24

@jim.sandridge has joined the channel


vic
2017-6-29 05:32:08

@vic has joined the channel