Macro Code gen - Generate code from Chemical compiler macros
Parses Chemical compiler macros and generates AST-based HTML, CSS, JavaScript, SSR, hydration, serialization, and Markdown code.
Tags
Updated: 2026-12-02Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Parse block macros
- Generate Chemical AST nodes
- Emit HTML page calls
- Generate scoped CSS
- Generate page JavaScript
- Generate SSR functions
- Generate hydration dispatches
- Generate serializer implementations
- Convert Markdown to HTML
Inputs
- Chemical source code
- Macro block syntax
- ASTBuilder API
- HtmlPage methods
- SSR helper definitions
Outputs
- Generated Chemical AST nodes
- HTML page emission calls
- CSS class names
- Scoped component declarations
- SSR functions
- Client JavaScript
- Hydration dispatches
- Serializer implementations
- Generated HTML
Requirements
- TinyCC build-time compilation
- Registered CBI plugins
- Chemical compiler
- HtmlPage library
- Compiler and parser dependencies
