Enum mech_core::nodes::AstNode

source ·
pub enum AstNode {
Show 95 variants Root { children: Vec<AstNode>, }, Fragment { children: Vec<AstNode>, }, Head { children: Vec<AstNode>, }, Body { children: Vec<AstNode>, }, Block { children: Vec<AstNode>, src_range: SourceRange, }, Statement { children: Vec<AstNode>, src_range: SourceRange, }, Expression { children: Vec<AstNode>, }, MathExpression { children: Vec<AstNode>, }, SelectExpression { children: Vec<AstNode>, }, Data { children: Vec<AstNode>, }, Whenever { children: Vec<AstNode>, }, Wait { children: Vec<AstNode>, }, Until { children: Vec<AstNode>, }, SetData { children: Vec<AstNode>, }, SplitData { children: Vec<AstNode>, }, FlattenData { children: Vec<AstNode>, }, Binding { children: Vec<AstNode>, }, FunctionBinding { children: Vec<AstNode>, }, UserFunction { children: Vec<AstNode>, }, FunctionBody { children: Vec<AstNode>, }, FunctionArgs { children: Vec<AstNode>, }, FunctionInput { children: Vec<AstNode>, }, FunctionOutput { children: Vec<AstNode>, }, DotIndex { children: Vec<AstNode>, }, Swizzle { children: Vec<AstNode>, }, SubscriptIndex { children: Vec<AstNode>, }, Range, VariableDefine { children: Vec<AstNode>, }, TableDefine { children: Vec<AstNode>, }, FollowedBy { children: Vec<AstNode>, }, TableSelect { children: Vec<AstNode>, }, EmptyTable { children: Vec<AstNode>, }, InlineTable { children: Vec<AstNode>, }, TableHeader { children: Vec<AstNode>, }, Attribute { children: Vec<AstNode>, }, TableRow { children: Vec<AstNode>, }, Comment { children: Vec<AstNode>, }, KindAnnotation { children: Vec<AstNode>, }, AddRow { children: Vec<AstNode>, }, Transformation { children: Vec<AstNode>, }, Quantity { children: Vec<AstNode>, }, Token { token: Token, chars: Vec<char>, src_range: SourceRange, }, Add, Subtract, Multiply, MatrixMultiply, Divide, Exponent, LessThan, GreaterThan, GreaterThanEqual, LessThanEqual, Equal, NotEqual, And, Or, Xor, AddUpdate, SubtractUpdate, MultiplyUpdate, DivideUpdate, ExponentUpdate, SelectAll, Empty, True, False, ReshapeColumn, RationalNumber { children: Vec<AstNode>, }, Paragraph { children: Vec<AstNode>, }, UnorderedList { children: Vec<AstNode>, }, ListItem { children: Vec<AstNode>, }, InlineCode { children: Vec<AstNode>, }, CodeBlock { children: Vec<AstNode>, }, InlineMechCode { children: Vec<AstNode>, }, MechCodeBlock { children: Vec<AstNode>, }, Null, Transpose, Program { title: Option<Vec<char>>, children: Vec<AstNode>, }, Section { title: Option<Vec<char>>, children: Vec<AstNode>, }, WheneverIndex { children: Vec<AstNode>, }, SelectData { name: Vec<char>, id: TableId, children: Vec<AstNode>, src_range: SourceRange, }, UpdateData { name: Vec<char>, children: Vec<AstNode>, src_range: SourceRange, }, TableColumn { children: Vec<AstNode>, }, Function { name: Vec<char>, children: Vec<AstNode>, src_range: SourceRange, }, Define { name: Vec<char>, id: u64, src_range: SourceRange, }, AnonymousTableDefine { children: Vec<AstNode>, }, AnonymousMatrixDefine { children: Vec<AstNode>, }, Identifier { name: Vec<char>, id: u64, src_range: SourceRange, }, Table { name: Vec<char>, id: u64, src_range: SourceRange, }, String { text: Vec<char>, src_range: SourceRange, }, NumberLiteral { kind: u64, bytes: Vec<char>, src_range: SourceRange, }, SectionTitle { text: Vec<char>, src_range: SourceRange, }, Title { text: Vec<char>, src_range: SourceRange, }, ParagraphText { text: Vec<char>, src_range: SourceRange, }, TransposeSelect { children: Vec<AstNode>, },
}

Variants§

§

Root

Fields

§children: Vec<AstNode>
§

Fragment

Fields

§children: Vec<AstNode>
§

Head

Fields

§children: Vec<AstNode>
§

Body

Fields

§children: Vec<AstNode>
§

Block

Fields

§children: Vec<AstNode>
§src_range: SourceRange
§

Statement

Fields

§children: Vec<AstNode>
§src_range: SourceRange
§

Expression

Fields

§children: Vec<AstNode>
§

MathExpression

Fields

§children: Vec<AstNode>
§

SelectExpression

Fields

§children: Vec<AstNode>
§

Data

Fields

§children: Vec<AstNode>
§

Whenever

Fields

§children: Vec<AstNode>
§

Wait

Fields

§children: Vec<AstNode>
§

Until

Fields

§children: Vec<AstNode>
§

SetData

Fields

§children: Vec<AstNode>
§

SplitData

Fields

§children: Vec<AstNode>
§

FlattenData

Fields

§children: Vec<AstNode>
§

Binding

Fields

§children: Vec<AstNode>
§

FunctionBinding

Fields

§children: Vec<AstNode>
§

UserFunction

Fields

§children: Vec<AstNode>
§

FunctionBody

Fields

§children: Vec<AstNode>
§

FunctionArgs

Fields

§children: Vec<AstNode>
§

FunctionInput

Fields

§children: Vec<AstNode>
§

FunctionOutput

Fields

§children: Vec<AstNode>
§

DotIndex

Fields

§children: Vec<AstNode>
§

Swizzle

Fields

§children: Vec<AstNode>
§

SubscriptIndex

Fields

§children: Vec<AstNode>
§

Range

§

VariableDefine

Fields

§children: Vec<AstNode>
§

TableDefine

Fields

§children: Vec<AstNode>
§

FollowedBy

Fields

§children: Vec<AstNode>
§

TableSelect

Fields

§children: Vec<AstNode>
§

EmptyTable

Fields

§children: Vec<AstNode>
§

InlineTable

Fields

§children: Vec<AstNode>
§

TableHeader

Fields

§children: Vec<AstNode>
§

Attribute

Fields

§children: Vec<AstNode>
§

TableRow

Fields

§children: Vec<AstNode>
§

Comment

Fields

§children: Vec<AstNode>
§

KindAnnotation

Fields

§children: Vec<AstNode>
§

AddRow

Fields

§children: Vec<AstNode>
§

Transformation

Fields

§children: Vec<AstNode>
§

Quantity

Fields

§children: Vec<AstNode>
§

Token

Fields

§token: Token
§chars: Vec<char>
§src_range: SourceRange
§

Add

§

Subtract

§

Multiply

§

MatrixMultiply

§

Divide

§

Exponent

§

LessThan

§

GreaterThan

§

GreaterThanEqual

§

LessThanEqual

§

Equal

§

NotEqual

§

And

§

Or

§

Xor

§

AddUpdate

§

SubtractUpdate

§

MultiplyUpdate

§

DivideUpdate

§

ExponentUpdate

§

SelectAll

§

Empty

§

True

§

False

§

ReshapeColumn

§

RationalNumber

Fields

§children: Vec<AstNode>
§

Paragraph

Fields

§children: Vec<AstNode>
§

UnorderedList

Fields

§children: Vec<AstNode>
§

ListItem

Fields

§children: Vec<AstNode>
§

InlineCode

Fields

§children: Vec<AstNode>
§

CodeBlock

Fields

§children: Vec<AstNode>
§

InlineMechCode

Fields

§children: Vec<AstNode>
§

MechCodeBlock

Fields

§children: Vec<AstNode>
§

Null

§

Transpose

§

Program

Fields

§title: Option<Vec<char>>
§children: Vec<AstNode>
§

Section

Fields

§title: Option<Vec<char>>
§children: Vec<AstNode>
§

WheneverIndex

Fields

§children: Vec<AstNode>
§

SelectData

Fields

§name: Vec<char>
§children: Vec<AstNode>
§src_range: SourceRange
§

UpdateData

Fields

§name: Vec<char>
§children: Vec<AstNode>
§src_range: SourceRange
§

TableColumn

Fields

§children: Vec<AstNode>
§

Function

Fields

§name: Vec<char>
§children: Vec<AstNode>
§src_range: SourceRange
§

Define

Fields

§name: Vec<char>
§id: u64
§src_range: SourceRange
§

AnonymousTableDefine

Fields

§children: Vec<AstNode>
§

AnonymousMatrixDefine

Fields

§children: Vec<AstNode>
§

Identifier

Fields

§name: Vec<char>
§id: u64
§src_range: SourceRange
§

Table

Fields

§name: Vec<char>
§id: u64
§src_range: SourceRange
§

String

Fields

§text: Vec<char>
§src_range: SourceRange
§

NumberLiteral

Fields

§kind: u64
§bytes: Vec<char>
§src_range: SourceRange
§

SectionTitle

Fields

§text: Vec<char>
§src_range: SourceRange
§

Title

Fields

§text: Vec<char>
§src_range: SourceRange
§

ParagraphText

Fields

§text: Vec<char>
§src_range: SourceRange
§

TransposeSelect

Fields

§children: Vec<AstNode>

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Checks if this value is equivalent to the given key. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.