Skip to main content

MEP-56 note 05: Codegen design

Author: research pass for MEP-56 (Mochi to Ruby transpiler). Date: 2026-05-29 (GMT+7).

Why rtree (a structural Ruby shadow AST) rather than RuboCop AST or string templates. Stable item ordering, 2-space indent, rubocop-compatible output with frozen_string_literal: true, aotir reuse, colour pass.

Full research note content for MEP-56 note 05.