@lytics/segast
v3.0.0
Published
SegmentAST for segment builders
Downloads
5
Readme
segast
SegmentQL Grammar (https://github.com/lytics/lio/tree/develop/src/segments/segast)
Segment = Expr
Expr = {"op": Op, "args": Args}
Op = "and" | "or" | "not" | ">" | ">=" | "<" | "<=" | "=" | "!="
| "between" | "contains" | "exists" | "in" | "intersects"
| "include" | "like" | "*"
Args = [ Node, Node, ... ]
Node = Expr | Literal | Identifier | SegmentRef
Literal = {"val": "..."}
Identifier = {"ident": "..."}
SegmentRef = {"ident": "..."}
Exhibit: the original segast grammar for nostalgia's sake