Documentation ¶
Index ¶
- type Args
- type Assignment
- type BinopExp
- type Block
- type Chunk
- type ComplexExp
- type DoBlock
- type ElseIf
- type Exp
- type Field
- type ForBlock
- type ForInBlock
- type FuncBody
- type FuncName
- type Function
- type FunctionCall
- type IfBlock
- type LastStatement
- type Local
- type LocalFunction
- type ParList
- type PrefixExp
- type PrefixExpFragment
- type RepeatBlock
- type SimpleExp
- type Statement
- type TableConstructor
- type UnopExp
- type Var
- type WhileBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { ExpList []Exp TableConstructor ComplexExp String token.Token }
Args is an argument list when calling a function.
type Assignment ¶
Assignment is a Lua assignment. An expression list is assigned to a variable list.
type Block ¶
type Block []Statement
Block is a list of statements. At least one statement is present. The last Statement may be of type LastStatement.
func (Block) LastStatement ¶
LastStatement returns the LastStatement in this Block, or false, if there is no LastStatement in this Block.
func (Block) StatementsWithoutLast ¶
StatementsWithoutLast returns all statements in this Block that are not a LastStatement.
type ComplexExp ¶
type ComplexExp interface {
// contains filtered or unexported methods
}
ComplexExp is a not necessarily constant expression.
type Exp ¶
type Exp interface {
// contains filtered or unexported methods
}
Exp is a Lua expression. This is either a SimpleExp or a ComplexExp.
type ForInBlock ¶
ForInBlock is a Lua for in construct.
type FunctionCall ¶
type FunctionCall struct {
PrefixExp PrefixExp
}
FunctionCall is a Lua function call.
type LastStatement ¶
LastStatement is a Lua last statement in a Block.
type LocalFunction ¶
LocalFunction is a Lua local function construct.
type PrefixExp ¶
type PrefixExp struct { Name token.Token Exp Exp Fragments []PrefixExpFragment }
PrefixExp is a prefix expression.
type RepeatBlock ¶
RepeatBlock is a Lua repeat construct.
type SimpleExp ¶
type SimpleExp struct { Nil token.Token False token.Token True token.Token Number token.Token String token.Token Ellipsis token.Token }
SimpleExp is a simple and constant expression.
type Statement ¶
type Statement interface {
// contains filtered or unexported methods
}
Statement is a Lua statement.
type TableConstructor ¶
type TableConstructor struct {
Fields []Field
}
TableConstructor is a table constructor, which consists of a list of Fields.
type WhileBlock ¶
WhileBlock is a Lua while construct.