Module ast

Source
Expand description

Types representing parsed Nushell code (the Abstract Syntax Tree)

Structs§

Block
Call
Parsed call of a Command
CellPath
Represents the potentially nested access to fields/cells of a container type
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
Pipeline
PipelineElement
Range
RangeOperator
Table
ValueWithUnit

Enums§

Argument
Parsed command arguments
Assignment
Bits
Boolean
Comparison
Expr
An Expression AST node
ExternalArgument
Argument passed to an external command
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
Unit

Functions§

eval_operator