fstk

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: 4 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 FileStackElement

type FileStackElement struct {
	S_LineNo int
	C_LineNo int
	File     *os.File
	Name     string // name of the item
	Scanner  *bufio.Scanner
}

type FileStackType

type FileStackType struct {
	Stack []FileStackElement
	Top   int
}

func NewFileStackType

func NewFileStackType() (rv *FileStackType)

func (*FileStackType) Dump1

func (ns *FileStackType) Dump1()

func (*FileStackType) GetNames

func (ns *FileStackType) GetNames() (names []string)

func (*FileStackType) IsEmpty

func (ns *FileStackType) IsEmpty() bool

func (*FileStackType) Length

func (ns *FileStackType) Length() int

func (*FileStackType) Peek

func (ns *FileStackType) Peek() (FileStackElement, error)

func (*FileStackType) Pop

func (ns *FileStackType) Pop()

func (*FileStackType) Push

func (ns *FileStackType) Push(S, C int, fp *os.File, name string)

func (*FileStackType) SetLineNo

func (ns *FileStackType) SetLineNo(n int)

func (*FileStackType) SetScanner

func (ns *FileStackType) SetScanner(ss *bufio.Scanner)

Jump to

Keyboard shortcuts

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