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§
- Annotation
- Binary
Expr - Expression with two operands and an operator, such as
1 + 2
. - Expr
- Expr is anything that has a value and thus a type. Most of these can contain other Expr themselves; literals should be ExprKind::Literal.
- Func
- Function called with possibly missing positional arguments. May also contain environment that is needed to evaluate the body.
- Func
Call - Function call.
- Func
Param - Generic
Type Param - Ident
- A name. Generally columns, tables, functions, variables. This is glorified way of writing a “vec with at least one element”.
- Import
Def - Module
Def - Pipeline
- A value and a series of functions that are to be applied to that value one after another.
- Query
Def - Stmt
- Ty
- TyFunc
- TypeDef
- Unary
Expr - Expression with one operand and an operator, such as
-1
. - VarDef