How to use existing macros - e.g. `let-values` - from a macro expander procedure in Chicken Scheme?

风流意气都作罢 提交于 2019-12-29 09:18:07

问题


How do I call built-in Chicken Scheme macros - specifically let-values in this instance - from my own macros?

(define-syntax ...
 (ir-macro-transformer
  (lambda (expr inject compare)
   (let-values (...) ...
    ...

unbound variable: let-values


回答1:


This is a bit of a bug I'm afraid. A simple (import-for-syntax chicken) did the trick for me.

In CHICKEN 5, this works without such a strange import.



来源:https://stackoverflow.com/questions/38884486/how-to-use-existing-macros-e-g-let-values-from-a-macro-expander-procedure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!