symtab

package
v0.5.643 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry added in v0.5.375

type Entry struct {
	Type string
	In   string
	Data interface{}
}

func NewSymTabEntry

func NewSymTabEntry(t string, data interface{}, in string) Entry

type HashMapTreeSymTab

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

func (*HashMapTreeSymTab) GetSymbol

func (st *HashMapTreeSymTab) GetSymbol(k interface{}) (Entry, error)

func (*HashMapTreeSymTab) Merge added in v0.5.451

func (st *HashMapTreeSymTab) Merge(rhs SymTab, prefix string) error

func (*HashMapTreeSymTab) NewLeaf

func (st *HashMapTreeSymTab) NewLeaf(k interface{}) (SymTab, error)

func (*HashMapTreeSymTab) SetSymbol

func (st *HashMapTreeSymTab) SetSymbol(k interface{}, v Entry) error

type SymTab

type SymTab interface {
	GetSymbol(interface{}) (Entry, error)
	NewLeaf(k interface{}) (SymTab, error)
	SetSymbol(interface{}, Entry) error
	Merge(SymTab, string) error
}

func NewHashMapTreeSymTab

func NewHashMapTreeSymTab() SymTab

Jump to

Keyboard shortcuts

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