util

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stack

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

Stack is a stack for any parser objects.

func NewStack

func NewStack() *Stack

NewStack creates a new stack.

func (*Stack) PeekObject

func (s *Stack) PeekObject() interface{}

PeekObject returns a top parser object

func (*Stack) PopObject

func (s *Stack) PopObject() interface{}

PopObject removes and returns a top parser object

func (*Stack) PushObject

func (s *Stack) PushObject(obj interface{})

PushObject adds a parser object to the stack.

func (*Stack) Size

func (s *Stack) Size() int

Size return a count of the stack objects

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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