Re: [racket-users] Serializing macro transformer procedures

2017-01-20 Thread Ben Greenman
I can do this in the normal Racket repl: (define (f x) (define-syntax-rule (rev-apply x g) (g x)) (rev-apply x add1)) (f 3) ;; ==> 4 I'd like to put a `(debug-repl)` inside the definition of `f` and call `rev-apply` in that debug repl too. On Fri, Jan 20, 2017 at 6:52 AM, Philip

Re: [racket-users] Serializing macro transformer procedures

2017-01-20 Thread Philip McGrath
How would you intend to use the macro transformer functions in the debug-repl? Do you intend to call them as functions on syntax objects? I'm not sure I understand what you're trying to achieve. -Philip On Fri, Jan 20, 2017 at 3:40 AM, Alex Knauth wrote: > > On Jan 19,

Re: [racket-users] Serializing macro transformer procedures

2017-01-20 Thread Alex Knauth
> On Jan 19, 2017, at 8:44 PM, Philip McGrath wrote: > > It might help if you could explain in more detail what you're trying to do: > I'm not sure I understand what you mean by "bring macro transformer > procedures down to run-time". My goal is to have a debug-repl

Re: [racket-users] Serializing macro transformer procedures

2017-01-19 Thread Philip McGrath
It might help if you could explain in more detail what you're trying to do: I'm not sure I understand what you mean by "bring macro transformer procedures down to run-time". -Philip On Wed, Jan 18, 2017 at 6:24 PM, Alex Knauth wrote: > I'm trying to use serial-lambda in

[racket-users] Serializing macro transformer procedures

2017-01-18 Thread Alex Knauth
I'm trying to use serial-lambda in macro transformer procedures so that I can serialize them and bring them down to run-time. However, serial-lambda isn't working within a define-syntax. It says: syntax-local-lift-provide: not expanding in a module run-time body This seems to be a lie; it