Repository navigation
Conversation
The frozen Parsetree0 that external PPXes read and write, and the code that translates between it and the current parsetree, were spread over ml and ext. They now form one compiler library, ast0 in compiler/ast0: Parsetree0, Ast_helper0, Ast_mapper_to0, Ast_mapper_from0 and Ast_dict0 move from ml, extension_of_error moves back from Builtin_attributes into Ast_mapper_from0, its only user, and the v0 magic numbers move from Config to a new Ast0_magic. Module names stay the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QchYQ7itFLVLUmZ368okjH Signed-off-by: Christoph Knittel <ck@cca.io>
Changelog🏠 Internal
Semantic Diff1 commit · Full page Move the v0 AST and its bridge into their own libraryd64227f · cknitt + Claude · Nov 21, 2026, 10:21 UTC The frozen Parsetree0 that external PPXes read and write, and the code that translates between it and the current parsetree, were spread over ml and ext. They now form one compiler library, ast0 in compiler/ast0: Parsetree0, Ast_helper0, Ast_mapper_to0, Ast_mapper_from0 and Ast_dict0 move from ml, extension_of_error moves back from Builtin_attributes into Ast_mapper_from0, its only user, and the v0 magic numbers move from Config to a new Ast0_magic. Module names stay the same. |
✅ Compiler benchmarksAllocated wordsIn total: 636,549,959 → 636,549,921 (±0.00%). Generated projects: 629,016,819 → 629,017,360 (±0.00%). None of the 265 benchmarks changed by 0.1% or more. InstructionsIn total: 9,223,229,365 → 9,224,323,260 (+0.01%).
Output sizeIn total: 25,969,532 → 25,969,532 (±0.00%). None of the 13 benchmarks changed by 0.1% or more. Pull request d64227f compared with base caa6dd2 in this run. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #9365 +/- ##
==========================================
- Coverage 82.20% 82.20% -0.01%
==========================================
Files 462 462
Lines 65763 65762 -1
==========================================
- Hits 54058 54057 -1
Misses 11705 11705
🚀 New features to boost your workflow:
|
rescript
@rescript/belt
@rescript/darwin-arm64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
|
Developer playground preview: https://rescript-lang.github.io/rescript/dev-playground/?version=pr-9365 |
External PPXes read and write a frozen AST,
Parsetree0. It and the code that translates between it and the current parsetree were spread overcompiler/mlandext. This PR moves them into one compiler library,ast0incompiler/ast0, so the frozen format and its bridge have one home, and the rule "never changeParsetree0" covers one directory.Parsetree0,Ast_helper0,Ast_mapper_to0,Ast_mapper_from0andAst_dict0move fromcompiler/ml. Module names stay the same.extension_of_errormoves back fromBuiltin_attributesintoAst_mapper_from0, its only user.Config(ext) to a newAst0_magic.exthas nothing v0-specific left.ast0sits abovemland needsmlandflow_parser. Nothing inmluses the v0 modules. Its users list it in their dune files:common(Ml_binary),core(Cmd_ppx_apply), theres_parserCLI,tools/binand the unit tests.compiler/AGENTS.md,compiler/syntax/README.mdand the dead-code script, which exemptsparsetree0.mlby path, name the new paths.🤖 Generated with Claude Code
https://claude.ai/code/session_01QchYQ7itFLVLUmZ368okjH