<div dir="ltr"><div><div><div><div><div><div><div>I have:<br><br></div>1. a macro to define functions<br><br></div>(define-syntax the-macro<br>  ...<br></div>  #'(define (name) ...))<br><br></div>2. a file filled with "user" definitions in expression form<br>
<br></div>(this is a definition that shall be passed to the macro)<br></div><div>(so is this)<br></div><div>...<br><br></div>3. I would like to do something to the effect of<br><br>(define-namespace-anchor nsa)<br>(with-input-from-file ...<br>
  (λ ()<br>    (eval `(the-macro ,@(read))<br>            (namespace-anchor->namespace nsa))))<br><br></div>which works, but then I cannot provide the defined functions as they happen at phase runtime compile shift meta 34 (?).  Is there some way to sort of pre-run the file reading so the definitions already exist for exporting?<br>
</div>