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)/include1919
2020
# Sources21-
SRCS = src/main.c src/codegen.c21+
SRCS = src/main.c src/codegen.c src/type.c src/expr.c src/stmt.c src/emit.c2222
OBJS = $(SRCS:.c=.o)2323
2424
# Default targetsrc/codegen.cmodifiedView file
Loading diff…
src/codegen.hmodifiedView file
Loading diff…
src/emit.caddedView file
Loading diff…
src/expr.caddedView file
Loading diff…
src/stmt.caddedView file
Loading diff…
src/type.caddedView file
Loading diff…