stackvar

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StackVars

type StackVars struct {
	VarName func(idx int) string
	// contains filtered or unexported fields
}

func (*StackVars) Empty

func (s *StackVars) Empty() bool

func (*StackVars) IncludesInNonTop

func (s *StackVars) IncludesInNonTop(str string) bool

IncludesInNonTop reports whether str is included in the exprs except for the top expr.

func (*StackVars) Len

func (s *StackVars) Len() int

func (*StackVars) Peep

func (s *StackVars) Peep() ([]string, string)

func (*StackVars) Pop

func (s *StackVars) Pop() (string, Type)

func (*StackVars) Push

func (s *StackVars) Push(expr string, t Type)

func (*StackVars) PushLhs

func (s *StackVars) PushLhs(t Type) string

type Type

type Type int
const (
	I32 Type = iota
	I64
	F32
	F64
)

func (Type) Cpp

func (t Type) Cpp() string

Jump to

Keyboard shortcuts

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