node

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeUnknown = iota
	TypeString  = iota
	TypeFloat   = iota
	TypeInteger = iota
	TypeDouble  = iota
)

Types

Variables

This section is empty.

Functions

func ArrayIsUsed

func ArrayIsUsed(tab map[string]ArraySymbol, name string) bool

ArrayIsUsed checks whether array is used

func ArraySetDeclared

func ArraySetDeclared(tab map[string]ArraySymbol, name string, dimensions []string) error

ArraySetDeclared sets array as declared

func ArraySetUsed

func ArraySetUsed(tab map[string]ArraySymbol, name string, dimensions int) error

ArraySetUsed sets array as used

func BuildReturnGlobal

func BuildReturnGlobal(options *BuildOptions, outputf FuncPrintf)

func FuncBuildType

func FuncBuildType(options *BuildOptions, name string, variables []NodeExp) string

func FuncSetDeclared

func FuncSetDeclared(tab map[string]FuncSymbol, f *NodeDefFn) error

func FuncSetUsed

func FuncSetUsed(tab map[string]FuncSymbol, name string, parameters []NodeExp, typeTable []int) error

func IsFuncName

func IsFuncName(name string) bool

fna => true fn1 => false fn => false

func RemoveSigil

func RemoveSigil(s string) string

func RenameArray

func RenameArray(table []int, name string) string

RenameArray renames a.B$ => array_str_a_b

func RenameFunc

func RenameFunc(table []int, name string) string

RenameFunc renames a.B$ => func_str_a_b

func RenameVar

func RenameVar(table []int, name string) string

RenameVar renames a.B$ => str_a_b

func RenameVarType

func RenameVarType(name string, t int) string

func TypeCompare

func TypeCompare(t1, t2 int) bool

TypeCompare reports whether types are comparable.

func TypeLabel

func TypeLabel(t int) string

func TypeName

func TypeName(name string, t int) string

func TypeNumeric

func TypeNumeric(t int) bool

TypeNumeric reports whether type is numeric.

func VarMatch

func VarMatch(s1, s2 string) bool

VarMatch matches names of two variables

func VarOrArrayIsUsed

func VarOrArrayIsUsed(options *BuildOptions, e NodeExp) bool

func VarType

func VarType(table []int, name string) int

VarType finds var type: a$ => string

func VarTypeDouble

func VarTypeDouble(table []int, name string) int

Types

type ArraySymbol

type ArraySymbol struct {
	UsedDimensions     int      // used
	DeclaredDimensions []string // DIM
}

func (ArraySymbol) ArrayType

func (a ArraySymbol) ArrayType(table []int, name string) string

type BuildOptions

type BuildOptions struct {
	Headers      map[string]struct{}
	Vars         map[string]VarSymbol
	Arrays       map[string]ArraySymbol
	LineNumbers  map[string]LineNumber // numbers used by GOTO, GOSUB etc
	CountGosub   int
	CountReturn  int
	ReadData     []string // DATA for READ
	RestoreTable map[string]int
	TypeTable    []int
}

BuildOptions holds state required for issuing Go code

func (*BuildOptions) VarIsUsed

func (o *BuildOptions) VarIsUsed(name string, t int) bool

VarIsUsed checks whether variable is used

func (*BuildOptions) VarSetUsed

func (o *BuildOptions) VarSetUsed(name string, t int)

VarSetUsed sets variable as used

type ByLineNumber

type ByLineNumber []Node

ByLineNumber helper type to sort lines by number

func (ByLineNumber) Len

func (a ByLineNumber) Len() int

func (ByLineNumber) Less

func (a ByLineNumber) Less(i, j int) bool

func (ByLineNumber) Swap

func (a ByLineNumber) Swap(i, j int)

type FuncPrintf

type FuncPrintf func(format string, v ...interface{}) (int, error)

FuncPrintf is func type for printf

type FuncSymbol

type FuncSymbol struct {
	Func *NodeDefFn
	Used bool
}

func FuncGet

func FuncGet(tab map[string]FuncSymbol, name string) (FuncSymbol, bool)

type LineImmediate

type LineImmediate struct {
	Nodes   []Node
	RawLine string
}

LineImmediate is unnumbered line

func (*LineImmediate) Build

func (n *LineImmediate) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*LineImmediate) FindUsedVars

func (n *LineImmediate) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*LineImmediate) Name

func (n *LineImmediate) Name() string

Name returns the name of the node

func (*LineImmediate) Show

func (n *LineImmediate) Show(printf FuncPrintf)

Show displays the node

type LineNumber

type LineNumber struct {
	Used        bool // GOTO 10, GOSUB 10 etc
	UsedRestore bool // RESTORE 30 -- do NOT create label
	Defined     bool // 10 print
}

LineNumber track used+undefined line numbers

type LineNumbered

type LineNumbered struct {
	LineNumber string
	Nodes      []Node
	RawLine    string
}

LineNumbered is numbered line

func (*LineNumbered) Build

func (n *LineNumbered) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*LineNumbered) FindUsedVars

func (n *LineNumbered) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*LineNumbered) Name

func (n *LineNumbered) Name() string

Name returns the name of the node

func (*LineNumbered) Show

func (n *LineNumbered) Show(printf FuncPrintf)

Show displays the node

type Node

type Node interface {
	Show(printf FuncPrintf)
	Name() string
	Build(options *BuildOptions, outputf FuncPrintf)
	FindUsedVars(options *BuildOptions)
}

Node is element for syntax tree

type NodeAssign

type NodeAssign struct {
	Left  NodeExp
	Right NodeExp
}

NodeAssign is assignment

func (*NodeAssign) Build

func (n *NodeAssign) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeAssign) FindUsedVars

func (n *NodeAssign) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeAssign) Name

func (n *NodeAssign) Name() string

Name returns the name of the node

func (*NodeAssign) Show

func (n *NodeAssign) Show(printf FuncPrintf)

Show displays the node

type NodeAssignArray

type NodeAssignArray struct {
	Left  *NodeExpArray
	Right NodeExp
}

NodeAssignArray is array assignment

func (*NodeAssignArray) Build

func (n *NodeAssignArray) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeAssignArray) FindUsedVars

func (n *NodeAssignArray) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeAssignArray) Name

func (n *NodeAssignArray) Name() string

Name returns the name of the node

func (*NodeAssignArray) Show

func (n *NodeAssignArray) Show(printf FuncPrintf)

Show displays the node

type NodeChdir

type NodeChdir struct {
	Value NodeExp
}

NodeChdir is chdir

func (*NodeChdir) Build

func (n *NodeChdir) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeChdir) FindUsedVars

func (n *NodeChdir) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeChdir) Name

func (n *NodeChdir) Name() string

Name returns the name of the node

func (*NodeChdir) Show

func (n *NodeChdir) Show(printf FuncPrintf)

Show displays the node

type NodeClose

type NodeClose struct {
	Label   string
	Numbers []NodeExp
}

NodeClose is close

func (*NodeClose) Build

func (n *NodeClose) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeClose) FindUsedVars

func (n *NodeClose) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeClose) Name

func (n *NodeClose) Name() string

Name returns the name of the node

func (*NodeClose) Show

func (n *NodeClose) Show(printf FuncPrintf)

Show displays the node

type NodeCls

type NodeCls struct{}

NodeCls is cls

func (*NodeCls) Build

func (n *NodeCls) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeCls) FindUsedVars

func (n *NodeCls) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeCls) Name

func (n *NodeCls) Name() string

Name returns the name of the node

func (*NodeCls) Show

func (n *NodeCls) Show(printf FuncPrintf)

Show displays the node

type NodeColor

type NodeColor struct {
	Foreground NodeExp
	Background NodeExp
}

NodeColor is color

func (*NodeColor) Build

func (n *NodeColor) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeColor) FindUsedVars

func (n *NodeColor) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeColor) Name

func (n *NodeColor) Name() string

Name returns the name of the node

func (*NodeColor) Show

func (n *NodeColor) Show(printf FuncPrintf)

Show displays the node

type NodeData

type NodeData struct {
	Expressions []NodeExp
}

NodeData is data

func (*NodeData) Build

func (n *NodeData) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeData) FindUsedVars

func (n *NodeData) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeData) Name

func (n *NodeData) Name() string

Name returns the name of the node

func (*NodeData) Show

func (n *NodeData) Show(printf FuncPrintf)

Show displays the node

type NodeDefFn

type NodeDefFn struct {
	FuncName  string
	Variables []NodeExp
	Body      NodeExp
}

NodeDefFn is DEF FN

func (*NodeDefFn) Build

func (n *NodeDefFn) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeDefFn) FindUsedVars

func (n *NodeDefFn) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeDefFn) Name

func (n *NodeDefFn) Name() string

Name returns the name of the node

func (*NodeDefFn) Show

func (n *NodeDefFn) Show(printf FuncPrintf)

Show displays the node

type NodeDim

type NodeDim struct {
	Arrays []NodeExp
}

NodeDim is dim

func (*NodeDim) Build

func (n *NodeDim) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeDim) FindUsedVars

func (n *NodeDim) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeDim) Name

func (n *NodeDim) Name() string

Name returns the name of the node

func (*NodeDim) Show

func (n *NodeDim) Show(printf FuncPrintf)

Show displays the node

type NodeEmpty

type NodeEmpty struct {
	Value string
}

NodeEmpty is empty

func (*NodeEmpty) Build

func (n *NodeEmpty) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeEmpty) FindUsedVars

func (n *NodeEmpty) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeEmpty) Name

func (n *NodeEmpty) Name() string

Name returns the name of the node

func (*NodeEmpty) Show

func (n *NodeEmpty) Show(printf FuncPrintf)

Show displays the node

type NodeEnd

type NodeEnd struct {
	Message string
}

NodeEnd is end

func (*NodeEnd) Build

func (n *NodeEnd) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeEnd) FindUsedVars

func (n *NodeEnd) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeEnd) Name

func (n *NodeEnd) Name() string

Name returns the name of the node

func (*NodeEnd) Show

func (n *NodeEnd) Show(printf FuncPrintf)

Show displays the node

type NodeEnviron

type NodeEnviron struct {
	Value NodeExp
}

NodeEnviron is environ

func (*NodeEnviron) Build

func (n *NodeEnviron) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeEnviron) FindUsedVars

func (n *NodeEnviron) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeEnviron) Name

func (n *NodeEnviron) Name() string

Name returns the name of the node

func (*NodeEnviron) Show

func (n *NodeEnviron) Show(printf FuncPrintf)

Show displays the node

type NodeErase

type NodeErase struct {
	Arrays []NodeExp
}

NodeErase is erase

func (*NodeErase) Build

func (n *NodeErase) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeErase) FindUsedVars

func (n *NodeErase) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeErase) Name

func (n *NodeErase) Name() string

Name returns the name of the node

func (*NodeErase) Show

func (n *NodeErase) Show(printf FuncPrintf)

Show displays the node

type NodeExp

type NodeExp interface {
	String() string                   // Literal cosmetic display
	Exp(options *BuildOptions) string // For code generation in Go
	Type(table []int) int
	FindUsedVars(options *BuildOptions)
}

NodeExp is interface for expressions

type NodeExpAbs

type NodeExpAbs struct {
	Value NodeExp
}

NodeExpAbs holds value

func (*NodeExpAbs) Exp

func (e *NodeExpAbs) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpAbs) FindUsedVars

func (e *NodeExpAbs) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpAbs) String

func (e *NodeExpAbs) String() string

String returns value

func (*NodeExpAbs) Type

func (e *NodeExpAbs) Type(table []int) int

Type returns type

type NodeExpAnd

type NodeExpAnd struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpAnd holds value

func (*NodeExpAnd) Exp

func (e *NodeExpAnd) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpAnd) FindUsedVars

func (e *NodeExpAnd) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpAnd) String

func (e *NodeExpAnd) String() string

String returns value

func (*NodeExpAnd) Type

func (e *NodeExpAnd) Type(table []int) int

Type returns type

type NodeExpArray

type NodeExpArray struct {
	Name    string
	Indices []NodeExp
}

NodeExpArray holds value

func (*NodeExpArray) Exp

func (e *NodeExpArray) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpArray) FindUsedVars

func (e *NodeExpArray) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpArray) String

func (e *NodeExpArray) String() string

String returns value

func (*NodeExpArray) Type

func (e *NodeExpArray) Type(table []int) int

Type returns type

type NodeExpAsc

type NodeExpAsc struct {
	Value NodeExp
}

NodeExpAsc holds value

func (*NodeExpAsc) Exp

func (e *NodeExpAsc) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpAsc) FindUsedVars

func (e *NodeExpAsc) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpAsc) String

func (e *NodeExpAsc) String() string

String returns value

func (*NodeExpAsc) Type

func (e *NodeExpAsc) Type(table []int) int

Type returns type

type NodeExpAtn

type NodeExpAtn struct {
	Value NodeExp
}

NodeExpAtn holds value

func (*NodeExpAtn) Exp

func (e *NodeExpAtn) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpAtn) FindUsedVars

func (e *NodeExpAtn) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpAtn) String

func (e *NodeExpAtn) String() string

String returns value

func (*NodeExpAtn) Type

func (e *NodeExpAtn) Type(table []int) int

Type returns type

type NodeExpBinary

type NodeExpBinary interface {
	Values() (left, right NodeExp)
}

NodeExpBinary helper interface

type NodeExpChr

type NodeExpChr struct {
	Value NodeExp
}

NodeExpChr holds value

func (*NodeExpChr) Exp

func (e *NodeExpChr) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpChr) FindUsedVars

func (e *NodeExpChr) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpChr) String

func (e *NodeExpChr) String() string

String returns value

func (*NodeExpChr) Type

func (e *NodeExpChr) Type(table []int) int

Type returns type

type NodeExpCos

type NodeExpCos struct {
	Value NodeExp
}

NodeExpCos holds value

func (*NodeExpCos) Exp

func (e *NodeExpCos) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpCos) FindUsedVars

func (e *NodeExpCos) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpCos) String

func (e *NodeExpCos) String() string

String returns value

func (*NodeExpCos) Type

func (e *NodeExpCos) Type(table []int) int

Type returns type

type NodeExpCsrlin

type NodeExpCsrlin struct{}

NodeExpCsrlin holds value

func (*NodeExpCsrlin) Exp

func (e *NodeExpCsrlin) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpCsrlin) FindUsedVars

func (e *NodeExpCsrlin) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpCsrlin) String

func (e *NodeExpCsrlin) String() string

String returns value

func (*NodeExpCsrlin) Type

func (e *NodeExpCsrlin) Type(table []int) int

Type returns type

type NodeExpDate

type NodeExpDate struct {
}

NodeExpDate holds value

func (*NodeExpDate) Exp

func (e *NodeExpDate) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpDate) FindUsedVars

func (e *NodeExpDate) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpDate) String

func (e *NodeExpDate) String() string

String returns value

func (*NodeExpDate) Type

func (e *NodeExpDate) Type(table []int) int

Type returns type

type NodeExpDiv

type NodeExpDiv struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpDiv holds value

func (*NodeExpDiv) Exp

func (e *NodeExpDiv) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpDiv) FindUsedVars

func (e *NodeExpDiv) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpDiv) String

func (e *NodeExpDiv) String() string

String returns value

func (*NodeExpDiv) Type

func (e *NodeExpDiv) Type(table []int) int

Type returns type

type NodeExpDivInt

type NodeExpDivInt struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpDivInt holds value

func (*NodeExpDivInt) Exp

func (e *NodeExpDivInt) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpDivInt) FindUsedVars

func (e *NodeExpDivInt) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpDivInt) String

func (e *NodeExpDivInt) String() string

String returns value

func (*NodeExpDivInt) Type

func (e *NodeExpDivInt) Type(table []int) int

Type returns type

type NodeExpEnviron

type NodeExpEnviron struct {
	Key NodeExp
}

NodeExpEnviron holds value

func (*NodeExpEnviron) Exp

func (e *NodeExpEnviron) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpEnviron) FindUsedVars

func (e *NodeExpEnviron) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpEnviron) String

func (e *NodeExpEnviron) String() string

String returns value

func (*NodeExpEnviron) Type

func (e *NodeExpEnviron) Type(table []int) int

Type returns type

type NodeExpEof

type NodeExpEof struct {
	Number NodeExp
}

NodeExpEof holds value

func (*NodeExpEof) Exp

func (e *NodeExpEof) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpEof) FindUsedVars

func (e *NodeExpEof) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpEof) String

func (e *NodeExpEof) String() string

String returns value

func (*NodeExpEof) Type

func (e *NodeExpEof) Type(table []int) int

Type returns type

type NodeExpEqual

type NodeExpEqual struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpEqual holds value

func (*NodeExpEqual) Exp

func (e *NodeExpEqual) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpEqual) FindUsedVars

func (e *NodeExpEqual) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpEqual) String

func (e *NodeExpEqual) String() string

String returns value

func (*NodeExpEqual) Type

func (e *NodeExpEqual) Type(table []int) int

Type returns type

func (*NodeExpEqual) Values

func (e *NodeExpEqual) Values() (NodeExp, NodeExp)

Values returns children from binary exp

type NodeExpEqv

type NodeExpEqv struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpEqv holds value

func (*NodeExpEqv) Exp

func (e *NodeExpEqv) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpEqv) FindUsedVars

func (e *NodeExpEqv) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpEqv) String

func (e *NodeExpEqv) String() string

String returns value

func (*NodeExpEqv) Type

func (e *NodeExpEqv) Type(table []int) int

Type returns type

type NodeExpFix

type NodeExpFix struct {
	Value NodeExp
}

NodeExpFix holds value

func (*NodeExpFix) Exp

func (e *NodeExpFix) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpFix) FindUsedVars

func (e *NodeExpFix) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpFix) String

func (e *NodeExpFix) String() string

String returns value

func (*NodeExpFix) Type

func (e *NodeExpFix) Type(table []int) int

Type returns type

type NodeExpFloat

type NodeExpFloat struct{ Value float64 }

NodeExpFloat holds value

func (*NodeExpFloat) Exp

func (e *NodeExpFloat) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpFloat) FindUsedVars

func (e *NodeExpFloat) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpFloat) String

func (e *NodeExpFloat) String() string

String returns value

func (*NodeExpFloat) Type

func (e *NodeExpFloat) Type(table []int) int

Type returns type

type NodeExpFuncCall

type NodeExpFuncCall struct {
	Name       string
	Parameters []NodeExp
}

NodeExpFuncCall holds value

func (*NodeExpFuncCall) Exp

func (e *NodeExpFuncCall) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpFuncCall) FindUsedVars

func (e *NodeExpFuncCall) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpFuncCall) String

func (e *NodeExpFuncCall) String() string

String returns value

func (*NodeExpFuncCall) Type

func (e *NodeExpFuncCall) Type(table []int) int

Type returns type

type NodeExpFuncString

type NodeExpFuncString struct {
	Value NodeExp
	Char  NodeExp
}

NodeExpFuncString holds value

func (*NodeExpFuncString) Exp

func (e *NodeExpFuncString) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpFuncString) FindUsedVars

func (e *NodeExpFuncString) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpFuncString) String

func (e *NodeExpFuncString) String() string

String returns value

func (*NodeExpFuncString) Type

func (e *NodeExpFuncString) Type(table []int) int

Type returns type

type NodeExpGE

type NodeExpGE struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpGE holds value

func (*NodeExpGE) Exp

func (e *NodeExpGE) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpGE) FindUsedVars

func (e *NodeExpGE) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpGE) String

func (e *NodeExpGE) String() string

String returns value

func (*NodeExpGE) Type

func (e *NodeExpGE) Type(table []int) int

Type returns type

func (*NodeExpGE) Values

func (e *NodeExpGE) Values() (NodeExp, NodeExp)

Values returns children from binary exp

type NodeExpGT

type NodeExpGT struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpGT holds value

func (*NodeExpGT) Exp

func (e *NodeExpGT) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpGT) FindUsedVars

func (e *NodeExpGT) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpGT) String

func (e *NodeExpGT) String() string

String returns value

func (*NodeExpGT) Type

func (e *NodeExpGT) Type(table []int) int

Type returns type

func (*NodeExpGT) Values

func (e *NodeExpGT) Values() (NodeExp, NodeExp)

Values returns children from binary exp

type NodeExpGofunc

type NodeExpGofunc struct {
	Name      *NodeExpString
	Arguments []NodeExp
}

NodeExpGofunc holds value

func (*NodeExpGofunc) Exp

func (e *NodeExpGofunc) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpGofunc) FindUsedVars

func (e *NodeExpGofunc) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpGofunc) String

func (e *NodeExpGofunc) String() string

String returns value

func (*NodeExpGofunc) Type

func (e *NodeExpGofunc) Type(table []int) int

Type returns type

type NodeExpGroup

type NodeExpGroup struct{ Value NodeExp }

NodeExpGroup holds value

func (*NodeExpGroup) Exp

func (e *NodeExpGroup) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpGroup) FindUsedVars

func (e *NodeExpGroup) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpGroup) String

func (e *NodeExpGroup) String() string

String returns value

func (*NodeExpGroup) Type

func (e *NodeExpGroup) Type(table []int) int

Type returns type

type NodeExpHex

type NodeExpHex struct {
	Number NodeExp
}

NodeExpHex holds value

func (*NodeExpHex) Exp

func (e *NodeExpHex) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpHex) FindUsedVars

func (e *NodeExpHex) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpHex) String

func (e *NodeExpHex) String() string

String returns value

func (*NodeExpHex) Type

func (e *NodeExpHex) Type(table []int) int

Type returns type

type NodeExpIdent

type NodeExpIdent struct {
	Value    string
	SaveType int
}

NodeExpIdentifier holds value

func NewNodeExpIdent

func NewNodeExpIdent(table []int, s string) *NodeExpIdent

func (*NodeExpIdent) Exp

func (e *NodeExpIdent) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpIdent) FindUsedVars

func (e *NodeExpIdent) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpIdent) String

func (e *NodeExpIdent) String() string

String returns value

func (*NodeExpIdent) Type

func (e *NodeExpIdent) Type(table []int) int

Type returns type

type NodeExpImp

type NodeExpImp struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpImp holds value

func (*NodeExpImp) Exp

func (e *NodeExpImp) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpImp) FindUsedVars

func (e *NodeExpImp) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpImp) String

func (e *NodeExpImp) String() string

String returns value

func (*NodeExpImp) Type

func (e *NodeExpImp) Type(table []int) int

Type returns type

type NodeExpInkey

type NodeExpInkey struct{}

NodeExpInkey holds value

func (*NodeExpInkey) Exp

func (e *NodeExpInkey) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpInkey) FindUsedVars

func (e *NodeExpInkey) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpInkey) String

func (e *NodeExpInkey) String() string

String returns value

func (*NodeExpInkey) Type

func (e *NodeExpInkey) Type(table []int) int

Type returns type

type NodeExpInput

type NodeExpInput struct {
	Count NodeExp
}

NodeExpInput holds value

func (*NodeExpInput) Exp

func (e *NodeExpInput) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpInput) FindUsedVars

func (e *NodeExpInput) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpInput) String

func (e *NodeExpInput) String() string

String returns value

func (*NodeExpInput) Type

func (e *NodeExpInput) Type(table []int) int

Type returns type

type NodeExpInputFile

type NodeExpInputFile struct {
	Count  NodeExp
	Number NodeExp
}

NodeExpInputFile holds value

func (*NodeExpInputFile) Exp

func (e *NodeExpInputFile) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpInputFile) FindUsedVars

func (e *NodeExpInputFile) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpInputFile) String

func (e *NodeExpInputFile) String() string

String returns value

func (*NodeExpInputFile) Type

func (e *NodeExpInputFile) Type(table []int) int

Type returns type

type NodeExpInstr

type NodeExpInstr struct {
	Begin NodeExp
	Str   NodeExp
	Sub   NodeExp
}

NodeExpInstr holds value

func (*NodeExpInstr) Exp

func (e *NodeExpInstr) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpInstr) FindUsedVars

func (e *NodeExpInstr) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpInstr) String

func (e *NodeExpInstr) String() string

String returns value

func (*NodeExpInstr) Type

func (e *NodeExpInstr) Type(table []int) int

Type returns type

type NodeExpInt

type NodeExpInt struct {
	Value NodeExp
}

NodeExpInt holds value

func (*NodeExpInt) Exp

func (e *NodeExpInt) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpInt) FindUsedVars

func (e *NodeExpInt) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpInt) String

func (e *NodeExpInt) String() string

String returns value

func (*NodeExpInt) Type

func (e *NodeExpInt) Type(table []int) int

Type returns type

type NodeExpLE

type NodeExpLE struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpLE holds value

func (*NodeExpLE) Exp

func (e *NodeExpLE) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpLE) FindUsedVars

func (e *NodeExpLE) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpLE) String

func (e *NodeExpLE) String() string

String returns value

func (*NodeExpLE) Type

func (e *NodeExpLE) Type(table []int) int

Type returns type

func (*NodeExpLE) Values

func (e *NodeExpLE) Values() (NodeExp, NodeExp)

Values returns children from binary exp

type NodeExpLT

type NodeExpLT struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpLT holds value

func (*NodeExpLT) Exp

func (e *NodeExpLT) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpLT) FindUsedVars

func (e *NodeExpLT) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpLT) String

func (e *NodeExpLT) String() string

String returns value

func (*NodeExpLT) Type

func (e *NodeExpLT) Type(table []int) int

Type returns type

func (*NodeExpLT) Values

func (e *NodeExpLT) Values() (NodeExp, NodeExp)

Values returns children from binary exp

type NodeExpLeft

type NodeExpLeft struct {
	Value NodeExp
	Size  NodeExp
}

NodeExpLeft holds value

func (*NodeExpLeft) Exp

func (e *NodeExpLeft) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpLeft) FindUsedVars

func (e *NodeExpLeft) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpLeft) String

func (e *NodeExpLeft) String() string

String returns value

func (*NodeExpLeft) Type

func (e *NodeExpLeft) Type(table []int) int

Type returns type

type NodeExpLen

type NodeExpLen struct {
	Value NodeExp
}

NodeExpLen holds value

func (*NodeExpLen) Exp

func (e *NodeExpLen) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpLen) FindUsedVars

func (e *NodeExpLen) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpLen) String

func (e *NodeExpLen) String() string

String returns value

func (*NodeExpLen) Type

func (e *NodeExpLen) Type(table []int) int

Type returns type

type NodeExpLof

type NodeExpLof struct {
	Number NodeExp
}

NodeExpLof holds value

func (*NodeExpLof) Exp

func (e *NodeExpLof) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpLof) FindUsedVars

func (e *NodeExpLof) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpLof) String

func (e *NodeExpLof) String() string

String returns value

func (*NodeExpLof) Type

func (e *NodeExpLof) Type(table []int) int

Type returns type

type NodeExpLog

type NodeExpLog struct {
	Value NodeExp
}

NodeExpLog holds value

func (*NodeExpLog) Exp

func (e *NodeExpLog) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpLog) FindUsedVars

func (e *NodeExpLog) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpLog) String

func (e *NodeExpLog) String() string

String returns value

func (*NodeExpLog) Type

func (e *NodeExpLog) Type(table []int) int

Type returns type

type NodeExpMid

type NodeExpMid struct {
	Value NodeExp
	Begin NodeExp
	Size  NodeExp
}

NodeExpMid holds value

func (*NodeExpMid) Exp

func (e *NodeExpMid) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpMid) FindUsedVars

func (e *NodeExpMid) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpMid) String

func (e *NodeExpMid) String() string

String returns value

func (*NodeExpMid) Type

func (e *NodeExpMid) Type(table []int) int

Type returns type

type NodeExpMinus

type NodeExpMinus struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpMinus holds value

func (*NodeExpMinus) Exp

func (e *NodeExpMinus) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpMinus) FindUsedVars

func (e *NodeExpMinus) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpMinus) String

func (e *NodeExpMinus) String() string

String returns value

func (*NodeExpMinus) Type

func (e *NodeExpMinus) Type(table []int) int

Type returns type

type NodeExpMod

type NodeExpMod struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpMod holds value

func (*NodeExpMod) Exp

func (e *NodeExpMod) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpMod) FindUsedVars

func (e *NodeExpMod) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpMod) String

func (e *NodeExpMod) String() string

String returns value

func (*NodeExpMod) Type

func (e *NodeExpMod) Type(table []int) int

Type returns type

type NodeExpMult

type NodeExpMult struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpMult holds value

func (*NodeExpMult) Exp

func (e *NodeExpMult) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpMult) FindUsedVars

func (e *NodeExpMult) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpMult) String

func (e *NodeExpMult) String() string

String returns value

func (*NodeExpMult) Type

func (e *NodeExpMult) Type(table []int) int

Type returns type

type NodeExpNot

type NodeExpNot struct {
	Value NodeExp
}

NodeExpNot holds value

func (*NodeExpNot) Exp

func (e *NodeExpNot) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpNot) FindUsedVars

func (e *NodeExpNot) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpNot) String

func (e *NodeExpNot) String() string

String returns value

func (*NodeExpNot) Type

func (e *NodeExpNot) Type(table []int) int

Type returns type

type NodeExpNull

type NodeExpNull struct{}

NodeExpNull holds value

func (*NodeExpNull) Exp

func (e *NodeExpNull) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpNull) FindUsedVars

func (e *NodeExpNull) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpNull) String

func (e *NodeExpNull) String() string

String returns value

func (*NodeExpNull) Type

func (e *NodeExpNull) Type(table []int) int

Type returns type

type NodeExpNumber

type NodeExpNumber struct{ Value string }

NodeExpNumber holds value

func (*NodeExpNumber) Exp

func (e *NodeExpNumber) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpNumber) FindUsedVars

func (e *NodeExpNumber) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpNumber) String

func (e *NodeExpNumber) String() string

String returns value

func (*NodeExpNumber) Type

func (e *NodeExpNumber) Type(table []int) int

Type returns type

type NodeExpOct

type NodeExpOct struct {
	Number NodeExp
}

NodeExpOct holds value

func (*NodeExpOct) Exp

func (e *NodeExpOct) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpOct) FindUsedVars

func (e *NodeExpOct) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpOct) String

func (e *NodeExpOct) String() string

String returns value

func (*NodeExpOct) Type

func (e *NodeExpOct) Type(table []int) int

Type returns type

type NodeExpOr

type NodeExpOr struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpOr holds value

func (*NodeExpOr) Exp

func (e *NodeExpOr) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpOr) FindUsedVars

func (e *NodeExpOr) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpOr) String

func (e *NodeExpOr) String() string

String returns value

func (*NodeExpOr) Type

func (e *NodeExpOr) Type(table []int) int

Type returns type

type NodeExpPeek

type NodeExpPeek struct{}

NodeExpPeek holds value

func (*NodeExpPeek) Exp

func (e *NodeExpPeek) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpPeek) FindUsedVars

func (e *NodeExpPeek) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpPeek) String

func (e *NodeExpPeek) String() string

String returns value

func (*NodeExpPeek) Type

func (e *NodeExpPeek) Type(table []int) int

Type returns type

type NodeExpPlus

type NodeExpPlus struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpPlus holds value

func (*NodeExpPlus) Exp

func (e *NodeExpPlus) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpPlus) FindUsedVars

func (e *NodeExpPlus) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpPlus) String

func (e *NodeExpPlus) String() string

String returns value

func (*NodeExpPlus) Type

func (e *NodeExpPlus) Type(table []int) int

Type returns type

type NodeExpPos

type NodeExpPos struct{}

NodeExpPos holds value

func (*NodeExpPos) Exp

func (e *NodeExpPos) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpPos) FindUsedVars

func (e *NodeExpPos) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpPos) String

func (e *NodeExpPos) String() string

String returns value

func (*NodeExpPos) Type

func (e *NodeExpPos) Type(table []int) int

Type returns type

type NodeExpPow

type NodeExpPow struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpPow holds value

func (*NodeExpPow) Exp

func (e *NodeExpPow) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpPow) FindUsedVars

func (e *NodeExpPow) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpPow) String

func (e *NodeExpPow) String() string

String returns value

func (*NodeExpPow) Type

func (e *NodeExpPow) Type(table []int) int

Type returns type

type NodeExpRight

type NodeExpRight struct {
	Value NodeExp
	Size  NodeExp
}

NodeExpLeft holds value

func (*NodeExpRight) Exp

func (e *NodeExpRight) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpRight) FindUsedVars

func (e *NodeExpRight) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpRight) String

func (e *NodeExpRight) String() string

String returns value

func (*NodeExpRight) Type

func (e *NodeExpRight) Type(table []int) int

Type returns type

type NodeExpRnd

type NodeExpRnd struct {
	Value NodeExp
}

NodeExpRnd holds value

func (*NodeExpRnd) Exp

func (e *NodeExpRnd) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpRnd) FindUsedVars

func (e *NodeExpRnd) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpRnd) String

func (e *NodeExpRnd) String() string

String returns value

func (*NodeExpRnd) Type

func (e *NodeExpRnd) Type(table []int) int

Type returns type

type NodeExpScreen

type NodeExpScreen struct {
	Row       NodeExp
	Col       NodeExp
	ColorFlag NodeExp
}

NodeExpScreen holds value

func (*NodeExpScreen) Exp

func (e *NodeExpScreen) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpScreen) FindUsedVars

func (e *NodeExpScreen) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpScreen) String

func (e *NodeExpScreen) String() string

String returns value

func (*NodeExpScreen) Type

func (e *NodeExpScreen) Type(table []int) int

Type returns type

type NodeExpSgn

type NodeExpSgn struct {
	Value NodeExp
}

NodeExpSgn holds value

func (*NodeExpSgn) Exp

func (e *NodeExpSgn) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpSgn) FindUsedVars

func (e *NodeExpSgn) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpSgn) String

func (e *NodeExpSgn) String() string

String returns value

func (*NodeExpSgn) Type

func (e *NodeExpSgn) Type(table []int) int

Type returns type

type NodeExpSin

type NodeExpSin struct {
	Value NodeExp
}

NodeExpSin holds value

func (*NodeExpSin) Exp

func (e *NodeExpSin) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpSin) FindUsedVars

func (e *NodeExpSin) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpSin) String

func (e *NodeExpSin) String() string

String returns value

func (*NodeExpSin) Type

func (e *NodeExpSin) Type(table []int) int

Type returns type

type NodeExpSpace

type NodeExpSpace struct {
	Value NodeExp
}

NodeExpSpace holds value

func (*NodeExpSpace) Exp

func (e *NodeExpSpace) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpSpace) FindUsedVars

func (e *NodeExpSpace) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpSpace) String

func (e *NodeExpSpace) String() string

String returns value

func (*NodeExpSpace) Type

func (e *NodeExpSpace) Type(table []int) int

Type returns type

type NodeExpSpc

type NodeExpSpc struct {
	Value NodeExp
}

NodeExpSpc holds value

func (*NodeExpSpc) Exp

func (e *NodeExpSpc) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpSpc) FindUsedVars

func (e *NodeExpSpc) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpSpc) String

func (e *NodeExpSpc) String() string

String returns value

func (*NodeExpSpc) Type

func (e *NodeExpSpc) Type(table []int) int

Type returns type

type NodeExpSqr

type NodeExpSqr struct {
	Value NodeExp
}

NodeExpSqr holds value

func (*NodeExpSqr) Exp

func (e *NodeExpSqr) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpSqr) FindUsedVars

func (e *NodeExpSqr) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpSqr) String

func (e *NodeExpSqr) String() string

String returns value

func (*NodeExpSqr) Type

func (e *NodeExpSqr) Type(table []int) int

Type returns type

type NodeExpStr

type NodeExpStr struct {
	Value NodeExp
}

NodeExpStr holds value

func (*NodeExpStr) Exp

func (e *NodeExpStr) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpStr) FindUsedVars

func (e *NodeExpStr) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpStr) String

func (e *NodeExpStr) String() string

String returns value

func (*NodeExpStr) Type

func (e *NodeExpStr) Type(table []int) int

Type returns type

type NodeExpString

type NodeExpString struct{ Value string }

NodeExpString holds value

func NewNodeExpString

func NewNodeExpString(s string) *NodeExpString

func NewNodeExpStringEmpty

func NewNodeExpStringEmpty() *NodeExpString

func (*NodeExpString) Exp

func (e *NodeExpString) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpString) FindUsedVars

func (e *NodeExpString) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpString) String

func (e *NodeExpString) String() string

String returns value

func (*NodeExpString) Type

func (e *NodeExpString) Type(table []int) int

Type returns type

type NodeExpTab

type NodeExpTab struct {
	Value NodeExp
}

NodeExpTab holds value

func (*NodeExpTab) Exp

func (e *NodeExpTab) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpTab) FindUsedVars

func (e *NodeExpTab) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpTab) String

func (e *NodeExpTab) String() string

String returns value

func (*NodeExpTab) Type

func (e *NodeExpTab) Type(table []int) int

Type returns type

type NodeExpTan

type NodeExpTan struct {
	Value NodeExp
}

NodeExpTan holds value

func (*NodeExpTan) Exp

func (e *NodeExpTan) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpTan) FindUsedVars

func (e *NodeExpTan) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpTan) String

func (e *NodeExpTan) String() string

String returns value

func (*NodeExpTan) Type

func (e *NodeExpTan) Type(table []int) int

Type returns type

type NodeExpTime

type NodeExpTime struct {
}

NodeExpTime holds value

func (*NodeExpTime) Exp

func (e *NodeExpTime) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpTime) FindUsedVars

func (e *NodeExpTime) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpTime) String

func (e *NodeExpTime) String() string

String returns value

func (*NodeExpTime) Type

func (e *NodeExpTime) Type(table []int) int

Type returns type

type NodeExpTimer

type NodeExpTimer struct {
}

NodeExpTimer holds value

func (*NodeExpTimer) Exp

func (e *NodeExpTimer) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpTimer) FindUsedVars

func (e *NodeExpTimer) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpTimer) String

func (e *NodeExpTimer) String() string

String returns value

func (*NodeExpTimer) Type

func (e *NodeExpTimer) Type(table []int) int

Type returns type

type NodeExpUnaryMinus

type NodeExpUnaryMinus struct{ Value NodeExp }

NodeExpUnaryMinus holds value

func (*NodeExpUnaryMinus) Exp

func (e *NodeExpUnaryMinus) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpUnaryMinus) FindUsedVars

func (e *NodeExpUnaryMinus) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpUnaryMinus) String

func (e *NodeExpUnaryMinus) String() string

String returns value

func (*NodeExpUnaryMinus) Type

func (e *NodeExpUnaryMinus) Type(table []int) int

Type returns type

type NodeExpUnaryPlus

type NodeExpUnaryPlus struct{ Value NodeExp }

NodeExpUnaryPlus holds value

func (*NodeExpUnaryPlus) Exp

func (e *NodeExpUnaryPlus) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpUnaryPlus) FindUsedVars

func (e *NodeExpUnaryPlus) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpUnaryPlus) String

func (e *NodeExpUnaryPlus) String() string

String returns value

func (*NodeExpUnaryPlus) Type

func (e *NodeExpUnaryPlus) Type(table []int) int

Type returns type

type NodeExpUnequal

type NodeExpUnequal struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpUnequal holds value

func (*NodeExpUnequal) Exp

func (e *NodeExpUnequal) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpUnequal) FindUsedVars

func (e *NodeExpUnequal) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpUnequal) String

func (e *NodeExpUnequal) String() string

String returns value

func (*NodeExpUnequal) Type

func (e *NodeExpUnequal) Type(table []int) int

Type returns type

func (*NodeExpUnequal) Values

func (e *NodeExpUnequal) Values() (NodeExp, NodeExp)

Values returns children from binary exp

type NodeExpVal

type NodeExpVal struct {
	Value NodeExp
}

NodeExpVal holds value

func (*NodeExpVal) Exp

func (e *NodeExpVal) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpVal) FindUsedVars

func (e *NodeExpVal) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpVal) String

func (e *NodeExpVal) String() string

String returns value

func (*NodeExpVal) Type

func (e *NodeExpVal) Type(table []int) int

Type returns type

type NodeExpXor

type NodeExpXor struct {
	Left  NodeExp
	Right NodeExp
}

NodeExpXor holds value

func (*NodeExpXor) Exp

func (e *NodeExpXor) Exp(options *BuildOptions) string

Exp returns value

func (*NodeExpXor) FindUsedVars

func (e *NodeExpXor) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeExpXor) String

func (e *NodeExpXor) String() string

String returns value

func (*NodeExpXor) Type

func (e *NodeExpXor) Type(table []int) int

Type returns type

type NodeFiles

type NodeFiles struct {
	Pattern NodeExp
}

NodeFiles is files

func (*NodeFiles) Build

func (n *NodeFiles) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeFiles) FindUsedVars

func (n *NodeFiles) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeFiles) Name

func (n *NodeFiles) Name() string

Name returns the name of the node

func (*NodeFiles) Show

func (n *NodeFiles) Show(printf FuncPrintf)

Show displays the node

type NodeFor

type NodeFor struct {
	Index    int // FOR and NEXT are linked thru the same index
	Variable NodeExp
	First    NodeExp
	Last     NodeExp
	Step     NodeExp
}

NodeFor is for

func (*NodeFor) Build

func (n *NodeFor) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeFor) FindUsedVars

func (n *NodeFor) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeFor) Name

func (n *NodeFor) Name() string

Name returns the name of the node

func (*NodeFor) Show

func (n *NodeFor) Show(printf FuncPrintf)

Show displays the node

type NodeGodecl

type NodeGodecl struct {
	Value *NodeExpString
}

NodeGodecl is _GODECL

func (*NodeGodecl) Build

func (n *NodeGodecl) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeGodecl) FindUsedVars

func (n *NodeGodecl) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeGodecl) Name

func (n *NodeGodecl) Name() string

Name returns the name of the node

func (*NodeGodecl) Show

func (n *NodeGodecl) Show(printf FuncPrintf)

Show displays the node

type NodeGoimport

type NodeGoimport struct {
	Value *NodeExpString
}

NodeGoimport is _GOIMPORT

func (*NodeGoimport) Build

func (n *NodeGoimport) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeGoimport) FindUsedVars

func (n *NodeGoimport) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeGoimport) Name

func (n *NodeGoimport) Name() string

Name returns the name of the node

func (*NodeGoimport) Show

func (n *NodeGoimport) Show(printf FuncPrintf)

Show displays the node

type NodeGoproc

type NodeGoproc struct {
	ProcName  *NodeExpString
	Arguments []NodeExp
}

NodeGoproc is _GOPROC

func (*NodeGoproc) Build

func (n *NodeGoproc) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeGoproc) FindUsedVars

func (n *NodeGoproc) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeGoproc) Name

func (n *NodeGoproc) Name() string

Name returns the name of the node

func (*NodeGoproc) Show

func (n *NodeGoproc) Show(printf FuncPrintf)

Show displays the node

type NodeGosub

type NodeGosub struct {
	Index int
	Line  string
}

NodeGosub is gosub

func (*NodeGosub) Build

func (n *NodeGosub) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeGosub) FindUsedVars

func (n *NodeGosub) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeGosub) Name

func (n *NodeGosub) Name() string

Name returns the name of the node

func (*NodeGosub) Show

func (n *NodeGosub) Show(printf FuncPrintf)

Show displays the node

type NodeGoto

type NodeGoto struct {
	Line string
}

NodeGoto is goto

func (*NodeGoto) Build

func (n *NodeGoto) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeGoto) FindUsedVars

func (n *NodeGoto) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeGoto) Name

func (n *NodeGoto) Name() string

Name returns the name of the node

func (*NodeGoto) Show

func (n *NodeGoto) Show(printf FuncPrintf)

Show displays the node

type NodeIf

type NodeIf struct {
	Index int
	Cond  NodeExp
	Then  []Node
	Else  []Node
}

NodeIf is IF

func (*NodeIf) Build

func (n *NodeIf) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeIf) FindUsedVars

func (n *NodeIf) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeIf) Name

func (n *NodeIf) Name() string

Name returns the name of the node

func (*NodeIf) Show

func (n *NodeIf) Show(printf FuncPrintf)

Show displays the node

type NodeInput

type NodeInput struct {
	Variables    []NodeExp
	PromptString NodeExp
	AddQuestion  bool
}

NodeInput handles input

func (*NodeInput) Build

func (n *NodeInput) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeInput) FindUsedVars

func (n *NodeInput) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeInput) Name

func (n *NodeInput) Name() string

Name returns the name of the node

func (*NodeInput) Show

func (n *NodeInput) Show(printf FuncPrintf)

Show displays the node

type NodeInputFile

type NodeInputFile struct {
	Number    NodeExp
	Variables []NodeExp
}

NodeInputFile handles input

func (*NodeInputFile) Build

func (n *NodeInputFile) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeInputFile) FindUsedVars

func (n *NodeInputFile) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeInputFile) Name

func (n *NodeInputFile) Name() string

Name returns the name of the node

func (*NodeInputFile) Show

func (n *NodeInputFile) Show(printf FuncPrintf)

Show displays the node

type NodeKill

type NodeKill struct {
	Value NodeExp
}

NodeKill is kill

func (*NodeKill) Build

func (n *NodeKill) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeKill) FindUsedVars

func (n *NodeKill) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeKill) Name

func (n *NodeKill) Name() string

Name returns the name of the node

func (*NodeKill) Show

func (n *NodeKill) Show(printf FuncPrintf)

Show displays the node

type NodeLine

type NodeLine struct {
	X1    NodeExp
	Y1    NodeExp
	X2    NodeExp
	Y2    NodeExp
	Color NodeExp
	Style NodeExp
	Box   bool
	Fill  bool
}

NodeLine is line

func (*NodeLine) Build

func (n *NodeLine) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeLine) FindUsedVars

func (n *NodeLine) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeLine) Name

func (n *NodeLine) Name() string

Name returns the name of the node

func (*NodeLine) Show

func (n *NodeLine) Show(printf FuncPrintf)

Show displays the node

type NodeList

type NodeList struct {
}

NodeList lists lines

func (*NodeList) Build

func (n *NodeList) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeList) FindUsedVars

func (n *NodeList) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeList) Name

func (n *NodeList) Name() string

Name returns the name of the node

func (*NodeList) Show

func (n *NodeList) Show(printf FuncPrintf)

Show displays the node

type NodeLocate

type NodeLocate struct {
	Row    NodeExp
	Col    NodeExp
	Cursor NodeExp
}

NodeLocate is locate

func (*NodeLocate) Build

func (n *NodeLocate) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeLocate) FindUsedVars

func (n *NodeLocate) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeLocate) Name

func (n *NodeLocate) Name() string

Name returns the name of the node

func (*NodeLocate) Show

func (n *NodeLocate) Show(printf FuncPrintf)

Show displays the node

type NodeMid added in v0.9.0

type NodeMid struct {
	Variable NodeExp
	Begin    NodeExp
	Size     NodeExp
	Value    NodeExp
}

NodeMid holds value

func (*NodeMid) Build added in v0.9.0

func (n *NodeMid) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeMid) FindUsedVars added in v0.9.0

func (n *NodeMid) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeMid) Name added in v0.9.0

func (n *NodeMid) Name() string

Name returns the name of the node

func (*NodeMid) Show added in v0.9.0

func (n *NodeMid) Show(printf FuncPrintf)

Show displays the node

type NodeMkdir

type NodeMkdir struct {
	Value NodeExp
}

NodeMkdir is mkdir

func (*NodeMkdir) Build

func (n *NodeMkdir) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeMkdir) FindUsedVars

func (n *NodeMkdir) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeMkdir) Name

func (n *NodeMkdir) Name() string

Name returns the name of the node

func (*NodeMkdir) Show

func (n *NodeMkdir) Show(printf FuncPrintf)

Show displays the node

type NodeName

type NodeName struct {
	From NodeExp
	To   NodeExp
}

NodeName is name

func (*NodeName) Build

func (n *NodeName) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeName) FindUsedVars

func (n *NodeName) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeName) Name

func (n *NodeName) Name() string

Name returns the name of the node

func (*NodeName) Show

func (n *NodeName) Show(printf FuncPrintf)

Show displays the node

type NodeNext

type NodeNext struct {
	Variables []NodeExp
	Fors      []*NodeFor
}

NodeNext is next

func (*NodeNext) Build

func (n *NodeNext) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeNext) FindUsedVars

func (n *NodeNext) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeNext) Name

func (n *NodeNext) Name() string

Name returns the name of the node

func (*NodeNext) Show

func (n *NodeNext) Show(printf FuncPrintf)

Show displays the node

type NodeOnGosub

type NodeOnGosub struct {
	Cond  NodeExp
	Lines []string
	Index int
}

NodeOnGosub is ongosub

func (*NodeOnGosub) Build

func (n *NodeOnGosub) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeOnGosub) FindUsedVars

func (n *NodeOnGosub) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeOnGosub) Name

func (n *NodeOnGosub) Name() string

Name returns the name of the node

func (*NodeOnGosub) Show

func (n *NodeOnGosub) Show(printf FuncPrintf)

Show displays the node

type NodeOnGoto

type NodeOnGoto struct {
	Cond  NodeExp
	Lines []string
}

NodeOnGoto is ongoto

func (*NodeOnGoto) Build

func (n *NodeOnGoto) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeOnGoto) FindUsedVars

func (n *NodeOnGoto) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeOnGoto) Name

func (n *NodeOnGoto) Name() string

Name returns the name of the node

func (*NodeOnGoto) Show

func (n *NodeOnGoto) Show(printf FuncPrintf)

Show displays the node

type NodeOpen

type NodeOpen struct {
	File   NodeExp
	Number NodeExp
	Mode   int
}

NodeOpen is open

func (*NodeOpen) Build

func (n *NodeOpen) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeOpen) FindUsedVars

func (n *NodeOpen) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeOpen) Name

func (n *NodeOpen) Name() string

Name returns the name of the node

func (*NodeOpen) Show

func (n *NodeOpen) Show(printf FuncPrintf)

Show displays the node

type NodeOpenShort added in v0.9.0

type NodeOpenShort struct {
	File   NodeExp
	Number NodeExp
	Mode   NodeExp
}

NodeOpenShort is open

func (*NodeOpenShort) Build added in v0.9.0

func (n *NodeOpenShort) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeOpenShort) FindUsedVars added in v0.9.0

func (n *NodeOpenShort) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeOpenShort) Name added in v0.9.0

func (n *NodeOpenShort) Name() string

Name returns the name of the node

func (*NodeOpenShort) Show added in v0.9.0

func (n *NodeOpenShort) Show(printf FuncPrintf)

Show displays the node

type NodePReset

type NodePReset struct {
	X     NodeExp
	Y     NodeExp
	Color NodeExp
}

NodePReset is preset

func (*NodePReset) Build

func (n *NodePReset) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodePReset) FindUsedVars

func (n *NodePReset) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodePReset) Name

func (n *NodePReset) Name() string

Name returns the name of the node

func (*NodePReset) Show

func (n *NodePReset) Show(printf FuncPrintf)

Show displays the node

type NodePSet

type NodePSet struct {
	X     NodeExp
	Y     NodeExp
	Color NodeExp
}

NodePset is pset

func (*NodePSet) Build

func (n *NodePSet) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodePSet) FindUsedVars

func (n *NodePSet) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodePSet) Name

func (n *NodePSet) Name() string

Name returns the name of the node

func (*NodePSet) Show

func (n *NodePSet) Show(printf FuncPrintf)

Show displays the node

type NodePrint

type NodePrint struct {
	Newline     bool
	Tab         bool
	Expressions []NodeExp
}

NodePrint is print

func (*NodePrint) Build

func (n *NodePrint) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodePrint) FindUsedVars

func (n *NodePrint) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodePrint) Name

func (n *NodePrint) Name() string

Name returns the name of the node

func (*NodePrint) Show

func (n *NodePrint) Show(printf FuncPrintf)

Show displays the node

type NodePrintFile

type NodePrintFile struct {
	Number      NodeExp
	Expressions []NodeExp
	Newline     bool
}

NodePrintFile handles print file

func (*NodePrintFile) Build

func (n *NodePrintFile) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodePrintFile) FindUsedVars

func (n *NodePrintFile) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodePrintFile) Name

func (n *NodePrintFile) Name() string

Name returns the name of the node

func (*NodePrintFile) Show

func (n *NodePrintFile) Show(printf FuncPrintf)

Show displays the node

type NodeRandomize

type NodeRandomize struct {
	Seed NodeExp
}

NodeRandomize is randomize

func (*NodeRandomize) Build

func (n *NodeRandomize) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeRandomize) FindUsedVars

func (n *NodeRandomize) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeRandomize) Name

func (n *NodeRandomize) Name() string

Name returns the name of the node

func (*NodeRandomize) Show

func (n *NodeRandomize) Show(printf FuncPrintf)

Show displays the node

type NodeRead

type NodeRead struct {
	Variables []NodeExp
}

NodeRead is read

func (*NodeRead) Build

func (n *NodeRead) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeRead) FindUsedVars

func (n *NodeRead) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeRead) Name

func (n *NodeRead) Name() string

Name returns the name of the node

func (*NodeRead) Show

func (n *NodeRead) Show(printf FuncPrintf)

Show displays the node

type NodeRem

type NodeRem struct {
	Value string
}

NodeRem is rem

func (*NodeRem) Build

func (n *NodeRem) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeRem) FindUsedVars

func (n *NodeRem) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeRem) Name

func (n *NodeRem) Name() string

Name returns the name of the node

func (*NodeRem) Show

func (n *NodeRem) Show(printf FuncPrintf)

Show displays the node

type NodeRestore

type NodeRestore struct {
	Line string
}

NodeRestore is restore

func (*NodeRestore) Build

func (n *NodeRestore) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeRestore) FindUsedVars

func (n *NodeRestore) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeRestore) Name

func (n *NodeRestore) Name() string

Name returns the name of the node

func (*NodeRestore) Show

func (n *NodeRestore) Show(printf FuncPrintf)

Show displays the node

type NodeReturn

type NodeReturn struct {
	Line string
}

NodeReturn is return

func (*NodeReturn) Build

func (n *NodeReturn) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeReturn) FindUsedVars

func (n *NodeReturn) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeReturn) Name

func (n *NodeReturn) Name() string

Name returns the name of the node

func (*NodeReturn) Show

func (n *NodeReturn) Show(printf FuncPrintf)

Show displays the node

type NodeRmdir

type NodeRmdir struct {
	Value NodeExp
}

NodeRmdir is rmdir

func (*NodeRmdir) Build

func (n *NodeRmdir) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeRmdir) FindUsedVars

func (n *NodeRmdir) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeRmdir) Name

func (n *NodeRmdir) Name() string

Name returns the name of the node

func (*NodeRmdir) Show

func (n *NodeRmdir) Show(printf FuncPrintf)

Show displays the node

type NodeScreen

type NodeScreen struct {
	Mode int
}

NodeScreen is screen

func (*NodeScreen) Build

func (n *NodeScreen) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeScreen) FindUsedVars

func (n *NodeScreen) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeScreen) Name

func (n *NodeScreen) Name() string

Name returns the name of the node

func (*NodeScreen) Show

func (n *NodeScreen) Show(printf FuncPrintf)

Show displays the node

type NodeSwap

type NodeSwap struct {
	Var1 NodeExp
	Var2 NodeExp
}

NodeSwap is swap

func (*NodeSwap) Build

func (n *NodeSwap) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeSwap) FindUsedVars

func (n *NodeSwap) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeSwap) Name

func (n *NodeSwap) Name() string

Name returns the name of the node

func (*NodeSwap) Show

func (n *NodeSwap) Show(printf FuncPrintf)

Show displays the node

type NodeViewPrint

type NodeViewPrint struct {
	Top    NodeExp
	Bottom NodeExp
}

NodeViewPrint is view print

func (*NodeViewPrint) Build

func (n *NodeViewPrint) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeViewPrint) FindUsedVars

func (n *NodeViewPrint) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeViewPrint) Name

func (n *NodeViewPrint) Name() string

Name returns the name of the node

func (*NodeViewPrint) Show

func (n *NodeViewPrint) Show(printf FuncPrintf)

Show displays the node

type NodeWend

type NodeWend struct {
	While *NodeWhile
}

NodeWend is wend

func (*NodeWend) Build

func (n *NodeWend) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeWend) FindUsedVars

func (n *NodeWend) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeWend) Name

func (n *NodeWend) Name() string

Name returns the name of the node

func (*NodeWend) Show

func (n *NodeWend) Show(printf FuncPrintf)

Show displays the node

type NodeWhile

type NodeWhile struct {
	Index int // WHILE and WEND are linked thru the same index
	Cond  NodeExp
}

NodeWhile is while

func (*NodeWhile) Build

func (n *NodeWhile) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeWhile) FindUsedVars

func (n *NodeWhile) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeWhile) Name

func (n *NodeWhile) Name() string

Name returns the name of the node

func (*NodeWhile) Show

func (n *NodeWhile) Show(printf FuncPrintf)

Show displays the node

type NodeWidth

type NodeWidth struct {
	Width NodeExp
}

NodeWidth is width

func (*NodeWidth) Build

func (n *NodeWidth) Build(options *BuildOptions, outputf FuncPrintf)

Build generates code

func (*NodeWidth) FindUsedVars

func (n *NodeWidth) FindUsedVars(options *BuildOptions)

FindUsedVars finds used vars

func (*NodeWidth) Name

func (n *NodeWidth) Name() string

Name returns the name of the node

func (*NodeWidth) Show

func (n *NodeWidth) Show(printf FuncPrintf)

Show displays the node

type VarSymbol

type VarSymbol struct {
	Name string
	Type int
}

Jump to

Keyboard shortcuts

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