Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion format/expressions-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,21 +281,24 @@ If a function reference is a list of strings, it is the function identifier and
### Predicates

```
PREDICATE: true | false
PREDICATE: { "type": BOOLEAN_CONST }
| { "type": "not", "child": PREDICATE }
| { "type": BINARY_OP, "left": PREDICATE, "right": PREDICATE }
| { "type": UNARY_OP, "child": EXPR }
| { "type": CMP_OP, "left": EXPR, "right": EXPR }
| { "type": SET_OP, "child": EXPR, "values": LITERALS }
| DEPRECATED_PREDICATE

BOOLEAN_CONST: "true" | "false"
BINARY_OP: "and" | "or"
UNARY_OP: "is-null" | "not-null" | "is-nan" | "not-nan"
CMP_OP: "lt" | "lt-eq" | "gt" | "gt-eq" | "eq" | "not-eq"
| "starts-with" | "not-starts-with"
SET_OP: "in" | "not-in"
```

Boolean predicate constants are serialized as objects to avoid ambiguity with boolean literal values.

### Backward compatibility

Comment on lines +300 to 303
```
Expand Down
Loading