feat: DB管线补全 + 新增orchestrator_db/program_schema/to_sql + 清理临时脚本
This commit is contained in:
@@ -29,10 +29,10 @@ def _is_fixed_format(source: str) -> bool:
|
||||
return fixed_hits >= free_hits if (fixed_hits + free_hits) > 0 else True
|
||||
|
||||
|
||||
def preprocess(source: str) -> str:
|
||||
def preprocess(source: str, extra_search_paths: list[str] = None) -> str:
|
||||
# COPY 预处理:展开或移除 COPY 语句
|
||||
# Lark 语法不支持 COPY(这是预处理指令),必须在解析前处理
|
||||
source = resolve_copybooks(source, '.')
|
||||
source = resolve_copybooks(source, '.', extra_search_paths=extra_search_paths)
|
||||
|
||||
# Strip EXEC ... END-EXEC blocks (CICS/SQL) before Lark parsing
|
||||
source = re.sub(
|
||||
|
||||
Reference in New Issue
Block a user