Module ast

Source

Structs§

Assign
An assignment operation.
Atom
An atom constant.
Binary
A binary operation.
Block
A code block.
Bool
A boolean constant.
Break
A break statement.
Call
A function call.
Continue
A continue statement.
Else
An else branch.
ElseIf
An else if branch.
Fun
A function declaration.
Ident
An identifier literal.
If
An if statement.
InlineFun
An inline function.
ListLit
A list literal.
MapLit
A map literal.
None
A none value.
Num
A number constant.
Range
A range operation.
Return
A return statement.
Str
A string literal.
Struct
A struct declaration.
StructProp
A property of a struct.
Unary
A unary operation.
Var
A variable declaration.
VarPatternList
A pattern to match in a variable.
VarPatternMap
A pattern to match in a variable.
While
A while statement.

Enums§

AssignOp
An assignment operator.
BinaryOp
A operator which takes two operands.
Expr
An xlang expression.
IfBranch
A branch from an if statement.
MapPair
A key and value in a map literal.
NumKind
The kind of a number.
PatternExpr
A pattern expression to match.
RangeOp
An operator used to create a range.
StructMember
A member of a struct.
UnaryOp
An operator which takes only one operand.
VarDeco
The decorator used to initialize a variable.
VarKind
The kind of a variable.

Traits§

Locate
A trait which can locate an expression in its source file.

Type Aliases§

Loc
The location of an expression.