P1: 条件表达式 DSL 化 — 从字符串解析升级为树形条件节点 #36
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?
背景
当前
judge的 condition 已支持运算符表达式字符串解析:但这是字符串解析(
_parse_literal+_match_condition,见pipeline.py第 450-510 行),存在几个问题:需求
将条件表达式升级为树形 DSL 节点:
设计
and/or/not(逻辑节点)+==/!=/>/</>=/<=/=~(比较节点)"confidence > 0.8"继续支持,内部自动转换为树形节点关联
pipeline.py_parse_literal/_match_condition— 现有实现