What problem does it solve?
This Skill provides comprehensive guidance on compiling and building macro packages within the Cangjie language ecosystem, addressing common challenges in dependency management and build processes.
Core Features & Use Cases
- Macro Package Compilation: Learn to use
cjc --compile-macro for compiling macro packages.
- Project Structure: Understand the recommended project layout for macro modules using
cjpm.toml.
- Dependency Management: Effectively manage dependencies between macro packages and regular packages.
- Advanced Features: Explore parallel macro expansion and debugging modes for enhanced development.
- Use Case: When developing a new Cangjie library that utilizes macros, this Skill will guide you through setting up the project, compiling the macro components, and integrating them with your main application.
Quick Start
Use the cangjie-macro-build skill to compile the macro package located in the 'macros/m.cj' directory and then compile the calling package 'src/demo.cj' linking against the compiled macros.