expression

package
v0.0.0-...-56add83 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Evaluate

func Evaluate(scope Scope, expr ast.Expr) (_ constant.Value, err error)

func New

func New(in string) (ast.Expr, error)

func String

func String(expr ast.Expr) (string, error)

Types

type Node

type Node = ast.Expr

type Scope

type Scope interface {
	Resolve(string) (constant.Value, error)
}

type UnsupportedError

type UnsupportedError struct {
	ast.Expr
}

func (*UnsupportedError) Error

func (e *UnsupportedError) Error() string

Jump to

Keyboard shortcuts

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