runtime

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnInfo added in v0.0.4

type ColumnInfo struct {
	Name     string
	RefCount int
}

type ExprOpeType added in v0.0.4

type ExprOpeType int
const (
	NA ExprOpeType
	PUSH
	POP
	ADD
	SUB
	MUL
	DIV
	MOD
	STORE
	CALL
	PICK
	EQ
	NEQ
	LT
	LTE
	GT
	GTE
	AND
	OR
	NOT
	CAST
	JMP
	JMPC
	JMPNC
	JMPL
	LABEL
	SWAP
)

func (ExprOpeType) String added in v0.0.4

func (o ExprOpeType) String() string

type ExprVMCode added in v0.0.4

type ExprVMCode struct {
	Operator ExprOpeType
	Operand  value.Value
}

func (ExprVMCode) String added in v0.0.4

func (c ExprVMCode) String() string

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

func New

func New() *Runtime

func (*Runtime) ExprRun added in v0.0.4

func (r *Runtime) ExprRun(codes []ExprVMCode, vals map[ast.Column]value.Value) (value.Value, error)

func (*Runtime) Start

func (r *Runtime) Start(sql string) ([][]value.Value, error)

func (*Runtime) Translate added in v0.0.4

func (r *Runtime) Translate(expr *ast.Expression) []ExprVMCode

Directories

Path Synopsis
aq

Jump to

Keyboard shortcuts

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