Module parse

Source
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.
FunctionParam
Parameter of a function.
Match
Match expression.
MatchArm
Arm of a match expression.
Module
ModuleAssignment
ModuleProgram
Program root when parsing modules.
Program
A program is a sequence of items.
SingleExpression
A single expression directly returns a value.
TypeAlias
A type alias.

Enums§

CallName
Name of a call.
ExprTree
ExpressionInner
The kind of expression.
Item
An item is a component of a program.
MatchPattern
Pattern of a match arm.
ModuleItem
Item when parsing modules.
Rule
SingleExpressionInner
The kind of single expression.
Statement
A statement is a component of a block expression.

Traits§

ParseFromStr
Copy of FromStr that internally uses the PEST parser.