Semantic Diff

#9365 Move the v0 AST and its bridge into their own library

1 commit

caa6dd22dea351422f9f6b0f70751a4dd4c0c4aa..pr-9365

d64227f60 · cknitt + Claude · Nov 21, 2026, 10:21 UTC

Move the v0 AST and its bridge into their own library

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.