Module ast

Source
Expand description

Types representing parsed Nushell code (the Abstract Syntax Tree)

Re-exports§

pub use unit::*;

Modules§

unit

Structs§

AssignmentIter
An iterator over the variants of Assignment
Attribute
AttributeBlock
BitsIter
An iterator over the variants of Bits
Block
BooleanIter
An iterator over the variants of Boolean
Call
Parsed call of a Command
CellPath
Represents the potentially nested access to fields/cells of a container type
ComparisonIter
An iterator over the variants of Comparison
Expression
Wrapper around Expr
FullCellPath
ImportPattern
The pattern specifying modules in a use statement
ImportPatternHead
The first item of a use statement needs to specify an explicit module
Keyword
MatchPattern
AST Node for match arm with optional match guard
MathIter
An iterator over the variants of Math
Pipeline
PipelineElement
Range
RangeInclusionIter
An iterator over the variants of RangeInclusion
RangeOperator
Table
ValueWithUnit

Enums§

Argument
Parsed command arguments
Assignment
Bits
Boolean
Comparison
Expr
An Expression AST node
ExternalArgument
Argument passed to an external command
FindMapResult
Result of find_map closure
ImportPatternMember
possible patterns after the first module level in an ImportPattern.
ListItem
Expressions permitted inside a list expression/literal
Math
Operator
PathMember
One level of access of a CellPath
Pattern
AST Node for pattern matching rules
PipelineRedirection
RangeInclusion
RecordItem
Expressions permitted inside a record expression/literal
RedirectionSource
RedirectionTarget

Traits§

Traverse
Trait for traversing the AST

Functions§

eval_operator