Commit 79eff8db

79eff8db41ffMerged

Yukihiro "Matz" Matsumoto <[email protected]> · 8 months ago · 7 files · +4 added · ~3 modified

Description

Split codegen.c (12200 lines) into 5 files

codegen.c (2318) — orchestrator, utils, class analysis, lambda, require type.c (2093) — type inference, type resolution, type helpers expr.c (3692) — expression code generation stmt.c (1938) — statement code generation emit.c (2152) — C code emission (header, structs, methods) codegen.h (365) — shared type definitions and function declarations

All 53 tests pass. No functional changes.

Co-Authored-By: Claude Opus 4.6 (1M context) [email protected]

Details

Commit
79eff8db41ff
Parent
0aca9dd7e8ab

MakefilemodifiedView file

@@ -18,7 +18,7 @@
1818 PRISM_CFLAGS = -I$(PRISM_DIR)/include
1919
2020 # Sources
21-SRCS = src/main.c src/codegen.c
21+SRCS = src/main.c src/codegen.c src/type.c src/expr.c src/stmt.c src/emit.c
2222 OBJS = $(SRCS:.c=.o)
2323
2424 # Default target