Expand description
PR, or “Parser Representation” is an AST representation of parsed PRQL. It takes LR tokens and converts them into a more structured form which understands expressions, such as tuples & functions.
Re-exports§
Structs§
- Expression with two operands and an operator, such as
1 + 2
. - Expr is anything that has a value and thus a type. Most of these can contain other Expr themselves; literals should be ExprKind::Literal.
- Function called with possibly missing positional arguments. May also contain environment that is needed to evaluate the body.
- Function call.
- A name. Generally columns, tables, functions, variables. This is glorified way of writing a “vec with at least one element”.
- A value and a series of functions that are to be applied to that value one after another.
- Expression with one operand and an operator, such as
-1
.
Enums§
- Built-in sets.