expr

package
v0.0.0-...-f825106 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttrValueExpr

type AttrValueExpr interface {
	Interface
	Lit() string
}

func NewAttrValueExpr

func NewAttrValueExpr(lit string) AttrValueExpr

type BoolExpr

type BoolExpr interface {
	Interface
	Lit() bool
}

func NewBoolExpr

func NewBoolExpr(lit bool) BoolExpr

type CompareExpr

type CompareExpr interface {
	Interface
	LHE() Interface
	Operator() string
	RHE() Interface
}

func NewCompareExpr

func NewCompareExpr(lhe Interface, operator string, rhe Interface) CompareExpr

type IdentifierExpr

type IdentifierExpr interface {
	Interface
	Lit() string
}

func NewIdentifierExpr

func NewIdentifierExpr(lit string) IdentifierExpr

type Interface

type Interface interface {
	// contains filtered or unexported methods
}

Expr is an interface to group AST nodes that are expressions

type LogExpr

type LogExpr interface {
	Interface
	LHE() Interface
	Operator() string
	RHS() Interface
}

func NewLogExpr

func NewLogExpr(lhe Interface, operator string, rhS Interface) LogExpr

type NumberExpr

type NumberExpr interface {
	Interface
	Lit() int
}

func NewNumberExpr

func NewNumberExpr(lit int) NumberExpr

type ParenExpr

type ParenExpr interface {
	Interface
	Operator() string
	SubExpr() Interface
}

func NewParenExpr

func NewParenExpr(operator string, subExpr Interface) ParenExpr

type Position

type Position struct {
	Line   int
	Column int
}

type PresenceExpr

type PresenceExpr interface {
	Interface
	Attr() Interface
	Operator() string
}

func NewPresenceExpr

func NewPresenceExpr(attr Interface, operator string) PresenceExpr

type RegexExpr

type RegexExpr interface {
	Interface
	LHE() Interface
	Operator() string
	Value() interface{}
}

func NewRegexExpr

func NewRegexExpr(lhe Interface, operator string, value interface{}) RegexExpr

type ValuePath

type ValuePath interface {
	Interface
	ParentAttr() Interface
	SubAttr() Interface
	SubExpr() Interface
}

func NewValuePath

func NewValuePath(parentAttr Interface, subAttr Interface, subExpr Interface) ValuePath

Jump to

Keyboard shortcuts

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