opcode

package
v0.0.0-...-93a834a Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 816

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Op

type Op int

Op is opcode type.

const (
	LogicAnd Op = iota + 1
	LeftShift
	RightShift
	LogicOr
	GE
	LE
	EQ
	NE
	LT
	GT
	Plus
	Minus
	And
	Or
	Mod
	Xor
	Div
	Mul
	Not
	Not2
	BitNeg
	IntDiv
	LogicXor
	NullEQ
	In
	Like
	Case
	Regexp
	IsNull
	IsTruth
	IsFalsity
)

List operators.

func (Op) Format

func (o Op) Format(w io.Writer)

Format the ExprNode into a Writer.

func (Op) IsKeyword

func (o Op) IsKeyword() bool

IsKeyword returns whether the operator is a keyword.

func (Op) Restore

func (o Op) Restore(ctx *format.RestoreCtx) error

Restore the Op into a Writer

func (Op) String

func (o Op) String() string

String implements Stringer interface.

Jump to

Keyboard shortcuts

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