ml_switcheroo.core.rewriter.normalization¶
Normalization Helpers for AST Rewriting (The Argument Pivot).
This module provides the NormalizationMixin, a component of the PivotRewriter responsible for reshaping function arguments and call structures during translation.
Updates: - Supports argument value mapping (Enums) via arg_values. - Supports variadic argument packing via pack_to_tuple.
Classes¶
Mixin class providing argument normalization and operator transformation logic. |
Module Contents¶
- class ml_switcheroo.core.rewriter.normalization.NormalizationMixin(semantics: ml_switcheroo.semantics.manager.SemanticsManager, config: ml_switcheroo.config.RuntimeConfig)¶
Bases:
ml_switcheroo.core.rewriter.base.BaseRewriterMixin class providing argument normalization and operator transformation logic.