Extract platform_py.py: single source of truth for bootstrapper platform sections
bootstrap_py.py (G0) and run_py_sx.py (G1) now both import static platform sections from platform_py.py instead of duplicating them. bootstrap_py.py shrinks from 2287 to 1176 lines — only the PyEmitter transpiler and build orchestration remain. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
1377
shared/sx/ref/platform_py.py
Normal file
1377
shared/sx/ref/platform_py.py
Normal file
File diff suppressed because it is too large
Load Diff
@@ -22,10 +22,9 @@ sys.path.insert(0, _PROJECT)
|
||||
|
||||
from shared.sx.parser import parse_all
|
||||
from shared.sx.types import Symbol
|
||||
from shared.sx.ref.bootstrap_py import (
|
||||
from shared.sx.ref.platform_py import (
|
||||
PREAMBLE, PLATFORM_PY, PRIMITIVES_PY_PRE, PRIMITIVES_PY_POST,
|
||||
PLATFORM_DEPS_PY, FIXUPS_PY, CONTINUATIONS_PY,
|
||||
ADAPTER_FILES, SPEC_MODULES,
|
||||
_assemble_primitives_py, public_api_py,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user