Elixir Macros 系列文章译文在前一篇文章中, 我向你展示了分析输入 AST 并对其进行处理的一些根本方法. 今天我们将研究一些更复杂的 AST 转换. 这将重提已经解释过的技术. 如许做的目的是为了表明深入研究 AST 并不是很难的, 只管最终的结果代码很容易变得相当复杂, 而且有点黑科技(hacky).
- [1] (译) Understanding Elixir Macros, Part 1 Basics
- [2] (译) Understanding Elixir Macros, Part 2 - Macro Theory
- [3] (译) Understanding Elixir Macros, Part 3 - Getting into the AST
- [4] (译) Understanding Elixir Macros, Part 4 - Diving Deeper
- [5] (译) Understanding Elixir Macros, Part 5 - Reshaping the AST
- [6] (译) Understanding Elixir Macros, Part 6 - In-place Code Generation
原文 GitHub 仓库, 作者: Saša Jurić.
原文: https://www.theerlangelist.com/article/macros_4
本文由博客群发一文多发等运营工具平台 OpenWrite 发布
欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) | Powered by Discuz! X3.4 |