@lytics/segast
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @lytics/segast

Weekly Downloads

2

Version

3.0.0

License

MIT

Unpacked Size

1.57 MB

Total Files

11

Last publish

Collaborators

  • lyticsnpm