expressions

package
v0.0.0-...-8039d59 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node interface {
	Evaluate(deploymentProvider functions.DeploymentData) interface{}
	Evaluate1(generalFuncs map[string]func(...interface{}) interface{}) interface{}
}

func NewExpressionTree

func NewExpressionTree(code string) (Node, error)

type Token

type Token struct {
	Type TokenType
	Data interface{}
}

type TokenType

type TokenType uint16
const (
	TokenName TokenType = iota
	TokenOpenParen
	TokenCloseParen
	TokenOpenBracket
	TokenCloseBracket
	TokenComma
	TokenDot
	TokenLiteralString
	TokenLiteralInteger
	TokenLiteralFloat
	TokenNewLine
)

Jump to

Keyboard shortcuts

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