macro-systems

Solid

Expert skill for designing and implementing macro systems including hygienic macros, procedural macros, and macro expansion. Supports pattern-based macros, quasi-quotation, and hygiene management.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Macro Systems Skill Design and implement macro systems for programming languages, from simple text-based macros to sophisticated hygienic macro systems. ## Capabilities - Design macro invocation syntax and patterns - Implement pattern-based macro matching and expansion - Implement hygienic macro expansion with scope management - Handle macro-generated identifier collision avoidance - Implement procedural/syntax macros with AST manipulation - Design quasi-quotation systems for code generation - Handle macro debugging and error reporting - Implement macro expansion tracing for development ## Usage Invoke this skill when you need to: - Design a macro system for a new language - Implement hygienic macro expansion - Create procedural macro APIs - Build quasi-quotation facilities - Debug macro expansion issues ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | macroType | string | Yes | Type of macro system (pattern, procedural, hygienic) | | targetLanguage | string | Yes | Language for macro implementation (Rust, Scheme, etc.) | | syntax | object | No | Custom syntax specifications | | hygieneModel | string | No | Hygiene model (sets-of-scopes, marks, none) | | features | array | No | Features to implement | ### Feature Options ```json { "features": [ "pattern-matching", "quasi-quotation", "hygiene", "procedural-macros", "expansion-tracing", "error-recovery", "recursive-macros", "macr...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills