1 个仓库
Compilers that specifically provide macro systems for extending the source language syntax.
Distinct from JavaScript Compilers: Distinct from general JS compilers as its primary purpose is the provision of a macro transformation system.
Explore 1 awesome GitHub repository matching programming languages & runtimes · Macro Compilers. Refine with filters or upvote what's useful.
Sweet-core 是一个 JavaScript 源码到源码(source-to-source)的编译器和 Lisp 风格的宏系统。它作为一个语法转换器,通过允许在编译过程中定义自定义语法和运算符来扩展 JavaScript。 该系统提供了一个框架,用于通过卫生的(hygienic)、递归的宏展开和创建新的语言结构来构建领域特定语言(DSL)。它的独特之处在于支持具有可配置结合性和优先级的自定义运算符定义,以控制表达式的求值。 该编译器包含一个专门的模块系统,用于管理编译时依赖项和运行时辅助工具的集成。其内部架构涵盖了抽象语法树(AST)转换、语法生成匹配和语法对象生成,以确保词法卫生。 提供了一个命令行接口,用于将源文件转换为标准的 JavaScript 输出文件或目录。
Functions as a JavaScript macro compiler that extends the language with custom syntax and operators during compilation.