Implement py.sx: self-hosting SX-to-Python bootstrapper

py.sx is an SX-to-Python translator written in SX. Running it on the
Python evaluator against the spec files produces byte-for-byte identical
output to the hand-written bootstrap_py.py (128/128 defines match,
1490 lines, 88955 bytes).

The bootstrapper bootstraps itself: G0 (Python) == G1 (SX).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 01:12:50 +00:00
parent e4e8b45cb4
commit b4944aa2b6
2 changed files with 1305 additions and 0 deletions

1182
shared/sx/ref/py.sx Normal file

File diff suppressed because it is too large Load Diff