2 个仓库
Programmatic generation of function declarations including bodies, parameters, and return types.
Distinct from Generated Function Configuration: Distinct from Generated Function Configuration which refers to compiler-generated special members; this is about arbitrary source function synthesis.
Explore 2 awesome GitHub repositories matching programming languages & runtimes · Source Function Generation. Refine with filters or upvote what's useful.
KotlinPoet 是一个基于 Java 的 API,用于以编程方式创建和格式化 Kotlin 源文件。它作为一个源代码生成器和类型系统映射器,通过语言元素的类型安全模型提供框架,以构建 Kotlin 代码结构并自动化样板代码的生产。 该项目利用流式构建器模式逐步构建语言元素,并维护一个将逻辑结构与最终文本格式分离的内部对象模型表示。它通过基于缩进的格式化和感知关键字的名称转义来处理源代码生成的复杂性,以确保输出有效。 该库涵盖了广泛声明的生成,包括类、接口、函数、属性和伴生对象。它包含用于管理复杂参数化类型、枚举类和类型别名的工具,以及用于嵌入字面量和构建控制流块的工具。自动导入管理和声明引用已集成,以通过限定名称解析成员。 KotlinPoet 提供了将反射数据和符号转换为源代码表示的能力,并支持导出文件规范以供注解处理工具使用。
Provides comprehensive utilities for defining and generating Kotlin functions with configurable bodies and signatures.
Php-generator is a metaprogramming library for programmatically generating, inspecting, parsing, and manipulating PHP source code using expressive object-oriented structures. It allows developers to construct classes, interfaces, traits, enums, functions, closures, and complete files without writing raw strings. The library features automated namespace resolution to manage fully qualified class names and use statements, preventing naming collisions in generated output. It also includes configurable formatting utilities that transform abstract syntax trees into text strings adhering to establ
Builds global functions, anonymous closures, and short arrow functions with customizable signatures, parameters, return types, and bodies.