Dsxir. Predicate. AST
(dsxir v0.3.0)
Copy Markdown
Parsed predicate tree.
expr is a tagged-tuple AST; source is the original predicate string
the parser was given. The AST is intentionally minimal — see
Dsxir.Predicate.Parser for the productions that build it.
Summary
Types
@type comp() :: {comp_op(), field() | length_expr(), lit() | lit_list()}
@type comp_op() :: :eq | :neq | :lt | :lte | :gt | :gte | :in | :not_in
@type length_expr() :: {:length, field()}
@type lit() :: {:lit, term()}
@type lit_list() :: {:lit_list, [term()]}
@type type() :: :boolean | :integer | :float | :string | :atom | :any