variable

package
v0.0.0-...-6a25f69 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table struct {
	Vars map[string]*Variable
}

func NewTable

func NewTable() Table

func (*Table) Add

func (t *Table) Add(name string, typ types.Types) bool

func (*Table) AddManually

func (t *Table) AddManually(v *Variable) bool

func (Table) Contains

func (t Table) Contains(name string) bool

func (Table) Get

func (t Table) Get(name string) (*Variable, bool)

func (*Table) Join

func (t *Table) Join(t2 Table) bool

type Variable

type Variable struct {
	Name string
	Type types.Types

	WasInitialize bool
	CurrentType   types.Types
	FromIfElse    bool
}

func NewVariable

func NewVariable(name string, typ types.Types) *Variable

func (*Variable) AddType

func (v *Variable) AddType(ts types.Types, inBranching bool)

func (*Variable) GenerateAccess

func (v *Variable) GenerateAccess(inAssignLvalue, inAssignRvalue, inPrint, inCompare, inBoolean, inIsT bool) string

func (*Variable) GenerateDefinition

func (v *Variable) GenerateDefinition() string

func (Variable) String

func (v Variable) String() string

Jump to

Keyboard shortcuts

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