Re: [racket-users] Producing syntax from a submodule

2017-02-01 Thread Alexis King
Syntax templates used in syntax transformers are effectively at “phase -1” relative to the phase they are defined at. For that reason, you need to insert a for-template require in your utils submodule: (module utils racket (require (for-template racket/base)) (provide bar-impl)

[racket-users] Producing syntax from a submodule

2017-02-01 Thread Milo Turner
Hello, I'm new to writing #lang s-expr languages in Racket and I'm having trouble understanding what's going wrong. I've re-provided the essential syntax transformers and then defined a macro, and this works fine: > lang.rkt #lang racket (provide #%module-begin #%app #%datum #%