From ce920b6ff47f32bc06dd27124e1b882f82f3d6ae Mon Sep 17 00:00:00 2001 From: zinc Date: Wed, 14 Oct 2026 10:05:40 +0000 Subject: split compiler.zc into files by phase src/compiler/compiler.zc is now twelve files under src/compiler/, listed in order in src/compiler/parts. cat of the parts in order is byte-identical to the old file, so every compiler and image except the language server's is unchanged. no function was edited. consumers read the list: the makefile, bootstrap-check, genmap (which still writes one compiler.zc into a generated map directory), tinyvm.bat, test.sh, test_win.ps1 and the lsp drivers. the language server embeds each part and serves them joined as the one document tinyvm:/compiler.zc. --- src/tools/mklsp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/mklsp.sh') diff --git a/src/tools/mklsp.sh b/src/tools/mklsp.sh index 1c44998..81cabcc 100755 --- a/src/tools/mklsp.sh +++ b/src/tools/mklsp.sh @@ -1,6 +1,6 @@ #!/bin/bash # builds the language server: src/tools/mklsp.sh [outdir] leaves outdir/zclsp. -# the server is the real compiler (src/compiler/compiler.zc) in check mode plus +# the server is the real compiler (src/compiler/, listed in parts) in check mode plus # src/lsp/server.zc. its memory map is sized to that program by src/tools/automap.sh, # so the genome slot is as big as it needs to be and no bigger. the image carries # the doc comments (DOCS=1) and, through embed declarations in server.zc, its own -- cgit v1.2.3