feat(clew): extract Ren'Py ASTs #20

Merged
alexion merged 1 commits from clew-renpy-object-dump into main 2026-09-07 20:02:41 -04:00
Owner

Summary

  • extract Ren'Py AST JSON after Clew prepares game files
  • add a bundled-runtime extractor that loads compiled scripts with the matching Ren'Py runtime
  • write AST exports under output/ast/<game>/<path>.json
  • skip existing archive and AST extraction outputs unless --overwrite is set

Validation

  • python3 -m py_compile src/clew/clew.py src/clew/extract_renpy_ast.py
  • PYTHON_TOOLCHAIN_ROOT=<python-prefix> bazel build //src/clew:clew
  • full local extraction produced 684 AST JSON files for 684 compiled scripts under output/extracted/*/game
  • all AST files parsed as JSON with schema clew-renpy-ast-v1, slot 2, and no truncated or attribute-error entries
## Summary - extract Ren'Py AST JSON after Clew prepares game files - add a bundled-runtime extractor that loads compiled scripts with the matching Ren'Py runtime - write AST exports under `output/ast/<game>/<path>.json` - skip existing archive and AST extraction outputs unless `--overwrite` is set ## Validation - `python3 -m py_compile src/clew/clew.py src/clew/extract_renpy_ast.py` - `PYTHON_TOOLCHAIN_ROOT=<python-prefix> bazel build //src/clew:clew` - full local extraction produced 684 AST JSON files for 684 compiled scripts under `output/extracted/*/game` - all AST files parsed as JSON with schema `clew-renpy-ast-v1`, slot 2, and no truncated or attribute-error entries
alexion added 1 commit 2026-09-07 20:02:17 -04:00
alexion force-pushed clew-renpy-object-dump from bb6600ba9d to 3e36db4d89 2026-09-07 20:02:17 -04:00 Compare
alexion changed title from feat(clew): dump Ren'Py compiled script objects to feat(clew): extract Ren'Py ASTs 2026-09-07 20:02:26 -04:00
alexion merged commit 3e36db4d89 into main 2026-09-07 20:02:41 -04:00
alexion deleted branch clew-renpy-object-dump 2026-09-07 20:02:41 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alexion/dev#20