eval

package
v0.0.0-...-3085ebc Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NUMBER_OBJ = "NUMBER"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Number

type Number struct {
	Value float64
}

func NewNumber

func NewNumber(f float64) *Number

func (*Number) Inspect

func (n *Number) Inspect() string

func (*Number) Type

func (n *Number) Type() ObjectType

type Object

type Object interface {
	Type() ObjectType
	Inspect() string
}

func Eval

func Eval(node ast.Node) (val Object)

type ObjectType

type ObjectType string

object

Jump to

Keyboard shortcuts

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