增加 JIT REPL

This commit is contained in:
TermiNexus committed 2026-09-21 16:17:19 +08:00
1 parent 9910e05760
commit a5ceb3d4eb
56 files changed
+7621 -584

No files matched your search

+2 -2
View File
@@ -597,7 +597,7 @@ class StmtGenMixin(StmtGenDeclMixin.StmtGenDeclMixin):
mod: rawptr[llvmlite.LLVMModule] = trans.Module
if pool is None or builder is None or mod is None:
return 0
items: rawptr[list[rawptr[ast.AST]]] = wt.items
items: list[ast.AST*]* = wt.items
if items is None:
return 0
n: sizet = len(items)
@@ -695,7 +695,7 @@ class StmtGenMixin(StmtGenDeclMixin.StmtGenDeclMixin):
trans, pool, builder, mod, fd_cls_bare, ctx_val)
# 2. 翻译 body
body: rawptr[list[rawptr[ast.AST]]] = wt.children
body: list[ast.AST*]* = wt.children
if body is not None:
bn: sizet = len(body)
for bi in range(bn):