【问题标题】:clojure source code position in macros宏中的clojure源代码位置
【发布时间】:2015-07-27 09:15:08
【问题描述】:

对于我的宏,我需要以复杂形式获取有关某些子符号的源代码位置的信息,以便正确报告错误。我可以将 :line :column 元数据用于更复杂的部分,例如子列表,但不能用于符号。这可能吗?

【问题讨论】:

    标签: parsing error-handling clojure macros


    【解决方案1】:

    是啊……这是符号、字符串等的问题……如果需要使用源码分析,可以试试rewrite-clj。这将有关于定位的信息

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多