Expand description
This module contains the parsing code to convert the tokens into an AST.
Structs§
- Assignment
- The output of an expression is assigned to a pattern.
- Call
- Call expression.
- Expression
- An expression is something that returns a value.
- Function
- Definition of a function.
- Function
Param - Parameter of a function.
- Match
- Match expression.
- Match
Arm - Arm of a match expression.
- Module
- Module
Assignment - Module
Program - Program root when parsing modules.
- Program
- A program is a sequence of items.
- Single
Expression - A single expression directly returns a value.
- Type
Alias - A type alias.
Enums§
- Call
Name - Name of a call.
- Expr
Tree - Expression
Inner - The kind of expression.
- Item
- An item is a component of a program.
- Match
Pattern - Pattern of a match arm.
- Module
Item - Item when parsing modules.
- Rule
- Single
Expression Inner - The kind of single expression.
- Statement
- A statement is a component of a block expression.
Traits§
- Parse
From Str - Copy of
FromStr
that internally uses the PEST parser.