parsed

package
v2.0.0-...-4b7107c Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namespace

type Namespace struct {
	// contains filtered or unexported fields
}

Namespace - a map of Token objects

func (*Namespace) Add

func (ns *Namespace) Add(name *string, typ types.ArgTypes, value *any) error

Add - Add a new token to the Namespace

func (*Namespace) Count

func (ns *Namespace) Count() int

Count - Return the number of items in the Namespace

func (*Namespace) Exists

func (ns *Namespace) Exists(n *string) bool

Exists - return object if found or nil of not found

func (*Namespace) Get

func (ns *Namespace) Get(n string) any

Get - Return a data value associated with descriptor n.

func (*Namespace) GetName

func (ns *Namespace) GetName(n *string) (string, error)

GetName - Return a data value associated with descriptor n.

func (*Namespace) GetType

func (ns *Namespace) GetType(n *string) (t types.ArgTypes, e error)

GetType - Lookup and return the token's type

func (*Namespace) GetValue

func (ns *Namespace) GetValue(n *string) (any, error)

GetValue - Lookup and return the token's value

func (*Namespace) Lookup

func (ns *Namespace) Lookup(n *string) *token.Token

Lookup - return object if found or nil of not found

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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