strictcli v0.39.0 /typescript/src/checks/tagdsl
On this page

Tag DSL: set-operation expressions over check tags, with operators by precedence (tightest first) NOT, AND, XOR, OR, and DIFF, plus parentheses to group.

#typescript/src/checks/tagdsl

#typescript/src/checks/tagdsl

Tag DSL: set-operation expressions over check tags, with operators by precedence (tightest first) NOT, AND, XOR, OR, and DIFF, plus parentheses to group. The operator symbols are ! (NOT), & (AND), ^ (XOR), | (OR), and - (DIFF). Error positions are byte offsets into the expression string.

Parity sources: go/strictcli/tagdsl.go and Python _tagdsl_* (~6661-6834). Errors are thrown as plain Error (the Python ValueError analog at run time); callers surface them per the sibling contract.

#matchTagExpr

TS typescript
export function matchTagExpr(expr: string, tags: ReadonlySet<string>): boolean

Tokenizes, parses, and evaluates a tag expression against a tag set. Throws on malformed expressions (empty, bad characters, syntax errors).

Search