zua.compiler.ir

Undocumented in source.

Members

Aliases

FieldEntry
alias FieldEntry = Algebraic!(TableField, Expr)
Undocumented in source.
IfEntry
alias IfEntry = Tuple!(Expr, "cond", Block, "body")
Undocumented in source.

Classes

AssignStat
class AssignStat

An assignment statement

AtomicExpr
class AtomicExpr

An atomic expression

AtomicStat
class AtomicStat

An atomic statement

BinaryExpr
class BinaryExpr

A binary operation expression

Block
class Block

A block statement

BracketExpr
class BracketExpr

A bracket expression

CallExpr
class CallExpr

A function call expression

DeclarationStat
class DeclarationStat

A local variable declaration statement

Expr
class Expr

An expression

ExprStat
class ExprStat

An expression statement

ForeachStat
class ForeachStat

A foreach loop

FunctionExpr
class FunctionExpr

A function expression

GlobalExpr
class GlobalExpr

A global variable expression

IRNode
class IRNode

Represents a single IR node

IfStat
class IfStat

An if statement

IndexExpr
class IndexExpr

An index expression

LocalExpr
class LocalExpr

A local variable expression

LvalueExpr
class LvalueExpr

An expression whose value can be set

NumberExpr
class NumberExpr

A number expression

NumericForStat
class NumericForStat

A numeric for loop

RepeatStat
class RepeatStat

A repeat statement

ReturnStat
class ReturnStat

A return statement

Stat
class Stat

A statement

StringExpr
class StringExpr

A string expression

TableExpr
class TableExpr

A table constructor expression

UnaryExpr
class UnaryExpr

A unary operation expression

UpvalueExpr
class UpvalueExpr

An upvalue variable expression

WhileStat
class WhileStat

A while statement

Enums

AtomicExprType
enum AtomicExprType

A type of atomic expression

AtomicStatType
enum AtomicStatType

A type of atomic statement

BinaryOperation
enum BinaryOperation

A binary operation

UnaryOperation
enum UnaryOperation

A unary operation

Functions

compileAST
FunctionExpr compileAST(ast.Block block)

Compile an AST block into an IR block

Structs

TableField
struct TableField

A single field in a table

Meta