[][src]Module luaparse::ast

Syntax tree nodes.

Structs

AssignmentStat

An assignment statement.

BinOp

An operator node.

BinOpExpr

A binary operation expression.

Block

A block, which is a list of statements.

BlockStat

A block statement (do ... end).

BooleanLit

A boolean literal.

Brackets

A node that stores a pair of brackets of some kind (parentheses, braces, brackets).

BreakStat

A break statement.

Else

An else branch.

ElseIf

An elseif branch.

EmptyStat

A no-op statement ;.

FunctionBody

A function body.

FunctionCall

A function call.

FunctionExpr

An anonymous function expression.

GenericFor

A generic for loop:

GotoStat

A goto statement.

IfStat

An if statement.

LabelStat

A label statement.

LocalDeclarationStat

A local variable declaration statement.

LocalDefinition

A local variable initialization.

Name

A name (a.k.a. identifier).

NilLit

A nil literal.

NumberLit

A number literal.

NumericalFor

A numerical for loop:

ParenthesizedExpr

An expression wrapped in parentheses.

ParenthesizedList

A punctuated list wrapped in brackets.

Punctuated

A list of nodes separated with a token.

RepeatStat

A repeat-until loop statement.

ReturnStat

A return statement.

StringLit

A string literal.

TableConstructor

A table constructor.

TableField

A table field.

TokenReference

Holds a significant token and any insignificant tokens (comments, whitespace) around it.

UnOp

An operator node.

UnOpExpr

An unary operation expression.

Vararg

A vararg (...).

WhileStat

A while statement.

Enums

BinOpKind

Operator kind.

Expr

An expression.

ForStat

A for statement.

FunctionArgs

Function call arguments.

FunctionCallee

A callee object.

FunctionDeclarationStat

A function declaration statement.

FunctionName

A non-local function name.

PrefixExpr

A prefix expression (an expression that can be used as a callee).

Statement

A statement.

TableKey

A table key.

UnOpKind

Operator kind.

Var

A variable.

VarField

A node that represents table indexing.