stk

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyStack = errors.New("Empty Stack")

Functions

This section is empty.

Types

type NameStackElement

type NameStackElement struct {
	S_LineNo int
	C_LineNo int
	TF       bool
	Tag      string // name of the item
	Nested   bool
}

type NameStackType

type NameStackType struct {
	Stack []NameStackElement
	Top   int
}

func NewNameStackType

func NewNameStackType() (rv *NameStackType)

func (*NameStackType) Dump1

func (ns *NameStackType) Dump1()

func (*NameStackType) IsEmpty

func (ns *NameStackType) IsEmpty() bool

func (*NameStackType) Length

func (ns *NameStackType) Length() int

func (*NameStackType) Peek

func (ns *NameStackType) Peek() (NameStackElement, error)

func (*NameStackType) Pop

func (ns *NameStackType) Pop()

func (*NameStackType) Push

func (ns *NameStackType) Push(S, C int, tf bool, tag string, N bool)

Jump to

Keyboard shortcuts

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