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)
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
#%
2 matches
Mail list logo