Создание генераторов и шаблонов MPS
★ 7.9 · vibe-coding
mps-aspect-generator is a Claude Code skill that guides the creation and editing of MPS generator modules — the components that transform source DSL models into a target language such as BaseLanguage or another DSL. The skill covers the full generator workflow: creating a `MappingConfiguration`, adding `Root_MappingRule`, `Reduction_MappingRule`, and `Weaving_MappingRule` entries, authoring templates annotated with macros (`$COPY_SRC`, `$LOOP`, `$IF`, `$PROPERTY`, `$REF`, `$SWITCH`, `$MAP_SRC`, `$WEAVE`, `$INSERT`, `$LABEL`, `$TRACE`, `$VAR`), wiring mapping labels, and writing pre/post mapping scripts. It also addresses common failure modes: rules that don't fire, empty output, infinite reduction loops, unresolved references, and compile errors in generated Java. Aimed at MPS language engineers implementing model-to-code generation or multi-stage model transformation pipelines.
- #mps
- #generation
- #templates
- #macros
- #transformation