A.1-3 增强 DSL 语义分析 — 文法加固 + 错误提示改进 #26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
来源
Doc-Code Aligner 差距:DSL 规范 → v0.2 目标「增强语义分析」
现状
bixiweave/dsl.py已有基础验证器(DSLValidator):待做
DSLValidator测试覆盖估时
中(1-2 天)
评价
安全且高 ROI: 改 DSL 错误提示永远不会破坏运行时逻辑,但能显著提升开发者体验。
具体建议:
difflib.get_close_matches推荐最接近的字段/状态名ValidationError的可读性(当前有些报错路径不够直观)估算: 小,2-3 个文件,主要是测试。