ast

package
v0.0.0-...-33a8185 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IRTypeFromEvalType

func IRTypeFromEvalType(tp types.EvalType) irTypes.Type

Types

type BinOp

type BinOp struct {
	Left  Node
	Right Node
	Op    opcode.Op
}

func (*BinOp) Compile

func (o *BinOp) Compile(ctx gen.CodeGenContext) value.Value

func (*BinOp) GetIRType

func (o *BinOp) GetIRType() (irTypes.Type, error)

type ColNode

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

func NewColNodeWithIdx

func NewColNodeWithIdx(colIdx int, tp types.EvalType) *ColNode

func NewColNodeWithPlaceholder

func NewColNodeWithPlaceholder(placeholder string, tp types.EvalType) *ColNode

func (*ColNode) Compile

func (c *ColNode) Compile(ctx gen.CodeGenContext) value.Value

func (*ColNode) GetIRType

func (c *ColNode) GetIRType() (irTypes.Type, error)

type Constant

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

func (Constant) Compile

func (c Constant) Compile(ctx gen.CodeGenContext) value.Value

func (Constant) GetIRType

func (c Constant) GetIRType() (irTypes.Type, error)

type DecimalBinOp

type DecimalBinOp struct {
	Left  Node
	Right Node
	Op    opcode.Op
}

func (*DecimalBinOp) Compile

func (o *DecimalBinOp) Compile(ctx gen.CodeGenContext) value.Value

func (*DecimalBinOp) GetIRType

func (o *DecimalBinOp) GetIRType() (irTypes.Type, error)

type Node

type Node interface {
	Compile(ctx gen.CodeGenContext) value.Value
	GetIRType() (irTypes.Type, error)
}

Jump to

Keyboard shortcuts

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