Semantic Diff

#9362 Move the compiler's parser driver out of the parser library

1 commit

36af448df564bcdbff3a0cdb140e55f897fa9500..pr-9362

0ecb8d707 · cknitt + Claude · Nov 20, 2026, 21:28 UTC

Move the compiler's parser driver out of the parser library

The parser library printed syntax errors through the compiler's error reporting and read files through the build's file store. That part now lives in a new compiler module, Syntax_driver in compiler/common: the compiler's parse_implementation and parse_interface, Already_reported, the report printer and a parsing engine that reads through Ext_io. Res_multi_printer moves there too, and the res_parser CLI keeps its own print engine.

The parser library keeps the parse results and a pure explain_in_source for the messages. Res_driver.make_parsing_engine takes the file reader, and Res_driver.parsing_engine reads from disk.