stmt

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForEachLoop

func ForEachLoop(block est.New, itemExpr *op.Expression, sliceExpr *op.Expression) (est.New, error)

func ForLoop

func ForLoop(init, post est.New, condition *op.Expression, block est.Compute) (est.New, error)

func NewBlock

func NewBlock(stmtsNew []est.New) est.New

func NewIf

func NewIf(condition *op2.Expression, block, elseIf est.New) (est.New, error)

func Selector

func Selector(expr *op.Expression, derefLast bool) est.New

Types

type Block

type Block struct {
	Stmt []est.Compute
}

type For

type For struct {
	Block     est.Compute
	Init      est.Compute
	Condition *op.Operand

	Post est.Compute
}

type ForEach

type ForEach struct {
	Block est.Compute

	Item *op.Operand
	X    *op.Operand

	*xunsafe.Slice
}

type If

type If struct {
	ElseIf    est.Compute
	Block     est.Compute
	Condition *op2.Operand
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL