Documentation ¶
Index ¶
- Constants
- func ArrayIsUsed(tab map[string]ArraySymbol, name string) bool
- func ArraySetDeclared(tab map[string]ArraySymbol, name string, dimensions []string) error
- func ArraySetUsed(tab map[string]ArraySymbol, name string, dimensions int) error
- func BuildReturnGlobal(options *BuildOptions, outputf FuncPrintf)
- func FuncBuildType(options *BuildOptions, name string, variables []NodeExp) string
- func FuncSetDeclared(tab map[string]FuncSymbol, f *NodeDefFn) error
- func FuncSetUsed(tab map[string]FuncSymbol, name string, parameters []NodeExp, typeTable []int) error
- func IsFuncName(name string) bool
- func RemoveSigil(s string) string
- func RenameArray(table []int, name string) string
- func RenameFunc(table []int, name string) string
- func RenameVar(table []int, name string) string
- func RenameVarType(name string, t int) string
- func TypeCompare(t1, t2 int) bool
- func TypeLabel(t int) string
- func TypeName(name string, t int) string
- func TypeNumeric(t int) bool
- func VarMatch(s1, s2 string) bool
- func VarOrArrayIsUsed(options *BuildOptions, e NodeExp) bool
- func VarType(table []int, name string) int
- func VarTypeDouble(table []int, name string) int
- type ArraySymbol
- type BuildOptions
- type ByLineNumber
- type FuncPrintf
- type FuncSymbol
- type LineImmediate
- type LineNumber
- type LineNumbered
- type Node
- type NodeAssign
- type NodeAssignArray
- type NodeChdir
- type NodeClose
- type NodeCls
- type NodeColor
- type NodeData
- type NodeDefFn
- type NodeDim
- type NodeEmpty
- type NodeEnd
- type NodeEnviron
- type NodeErase
- type NodeExp
- type NodeExpAbs
- type NodeExpAnd
- type NodeExpArray
- type NodeExpAsc
- type NodeExpAtn
- type NodeExpBinary
- type NodeExpChr
- type NodeExpCos
- type NodeExpCsrlin
- type NodeExpDate
- type NodeExpDiv
- type NodeExpDivInt
- type NodeExpEnviron
- type NodeExpEof
- type NodeExpEqual
- type NodeExpEqv
- type NodeExpFix
- type NodeExpFloat
- type NodeExpFuncCall
- type NodeExpFuncString
- type NodeExpGE
- type NodeExpGT
- type NodeExpGofunc
- type NodeExpGroup
- type NodeExpHex
- type NodeExpIdent
- type NodeExpImp
- type NodeExpInkey
- type NodeExpInput
- type NodeExpInputFile
- type NodeExpInstr
- type NodeExpInt
- type NodeExpLE
- type NodeExpLT
- type NodeExpLeft
- type NodeExpLen
- type NodeExpLof
- type NodeExpLog
- type NodeExpMid
- type NodeExpMinus
- type NodeExpMod
- type NodeExpMult
- type NodeExpNot
- type NodeExpNull
- type NodeExpNumber
- type NodeExpOct
- type NodeExpOr
- type NodeExpPeek
- type NodeExpPlus
- type NodeExpPos
- type NodeExpPow
- type NodeExpRight
- type NodeExpRnd
- type NodeExpScreen
- type NodeExpSgn
- type NodeExpSin
- type NodeExpSpace
- type NodeExpSpc
- type NodeExpSqr
- type NodeExpStr
- type NodeExpString
- type NodeExpTab
- type NodeExpTan
- type NodeExpTime
- type NodeExpTimer
- type NodeExpUnaryMinus
- type NodeExpUnaryPlus
- type NodeExpUnequal
- type NodeExpVal
- type NodeExpXor
- type NodeFiles
- type NodeFor
- type NodeGodecl
- type NodeGoimport
- type NodeGoproc
- type NodeGosub
- type NodeGoto
- type NodeIf
- type NodeInput
- type NodeInputFile
- type NodeKill
- type NodeLine
- type NodeList
- type NodeLocate
- type NodeMid
- type NodeMkdir
- type NodeName
- type NodeNext
- type NodeOnGosub
- type NodeOnGoto
- type NodeOpen
- type NodeOpenShort
- type NodePReset
- type NodePSet
- type NodePrint
- type NodePrintFile
- type NodeRandomize
- type NodeRead
- type NodeRem
- type NodeRestore
- type NodeReturn
- type NodeRmdir
- type NodeScreen
- type NodeSwap
- type NodeViewPrint
- type NodeWend
- type NodeWhile
- type NodeWidth
- type VarSymbol
Constants ¶
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 RemoveSigil ¶
func RenameArray ¶
RenameArray renames a.B$ => array_str_a_b
func RenameFunc ¶
RenameFunc renames a.B$ => func_str_a_b
func RenameVarType ¶
func TypeCompare ¶
TypeCompare reports whether types are comparable.
func VarOrArrayIsUsed ¶
func VarOrArrayIsUsed(options *BuildOptions, e NodeExp) bool
func VarTypeDouble ¶
Types ¶
type ArraySymbol ¶
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 ¶
FuncPrintf is func type for printf
type FuncSymbol ¶
func FuncGet ¶
func FuncGet(tab map[string]FuncSymbol, name string) (FuncSymbol, bool)
type LineImmediate ¶
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
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 ¶
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
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 ¶
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
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
type NodeClose ¶
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
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
type NodeColor ¶
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
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
type NodeDefFn ¶
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
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
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
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
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
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
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) FindUsedVars ¶
func (e *NodeExpAbs) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpAnd ¶
NodeExpAnd holds value
func (*NodeExpAnd) FindUsedVars ¶
func (e *NodeExpAnd) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpArray ¶
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
type NodeExpAsc ¶
type NodeExpAsc struct {
Value NodeExp
}
NodeExpAsc holds value
func (*NodeExpAsc) FindUsedVars ¶
func (e *NodeExpAsc) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpAtn ¶
type NodeExpAtn struct {
Value NodeExp
}
NodeExpAtn holds value
func (*NodeExpAtn) FindUsedVars ¶
func (e *NodeExpAtn) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpBinary ¶
type NodeExpBinary interface {
Values() (left, right NodeExp)
}
NodeExpBinary helper interface
type NodeExpChr ¶
type NodeExpChr struct {
Value NodeExp
}
NodeExpChr holds value
func (*NodeExpChr) FindUsedVars ¶
func (e *NodeExpChr) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpCos ¶
type NodeExpCos struct {
Value NodeExp
}
NodeExpCos holds value
func (*NodeExpCos) FindUsedVars ¶
func (e *NodeExpCos) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
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
type NodeExpDate ¶
type NodeExpDate struct { }
NodeExpDate holds value
func (*NodeExpDate) FindUsedVars ¶
func (e *NodeExpDate) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpDiv ¶
NodeExpDiv holds value
func (*NodeExpDiv) FindUsedVars ¶
func (e *NodeExpDiv) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpDivInt ¶
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
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
type NodeExpEof ¶
type NodeExpEof struct {
Number NodeExp
}
NodeExpEof holds value
func (*NodeExpEof) FindUsedVars ¶
func (e *NodeExpEof) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpEqual ¶
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) Values ¶
func (e *NodeExpEqual) Values() (NodeExp, NodeExp)
Values returns children from binary exp
type NodeExpEqv ¶
NodeExpEqv holds value
func (*NodeExpEqv) FindUsedVars ¶
func (e *NodeExpEqv) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpFix ¶
type NodeExpFix struct {
Value NodeExp
}
NodeExpFix holds value
func (*NodeExpFix) FindUsedVars ¶
func (e *NodeExpFix) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
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
type NodeExpFuncCall ¶
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
type NodeExpFuncString ¶
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) Type ¶
func (e *NodeExpFuncString) Type(table []int) int
Type returns type
type NodeExpGE ¶
NodeExpGE holds value
func (*NodeExpGE) FindUsedVars ¶
func (e *NodeExpGE) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpGT ¶
NodeExpGT holds value
func (*NodeExpGT) FindUsedVars ¶
func (e *NodeExpGT) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
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
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
type NodeExpHex ¶
type NodeExpHex struct {
Number NodeExp
}
NodeExpHex holds value
func (*NodeExpHex) FindUsedVars ¶
func (e *NodeExpHex) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpIdent ¶
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
type NodeExpImp ¶
NodeExpImp holds value
func (*NodeExpImp) FindUsedVars ¶
func (e *NodeExpImp) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
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
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
type NodeExpInputFile ¶
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
type NodeExpInstr ¶
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
type NodeExpInt ¶
type NodeExpInt struct {
Value NodeExp
}
NodeExpInt holds value
func (*NodeExpInt) FindUsedVars ¶
func (e *NodeExpInt) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpLE ¶
NodeExpLE holds value
func (*NodeExpLE) FindUsedVars ¶
func (e *NodeExpLE) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpLT ¶
NodeExpLT holds value
func (*NodeExpLT) FindUsedVars ¶
func (e *NodeExpLT) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpLeft ¶
NodeExpLeft holds value
func (*NodeExpLeft) FindUsedVars ¶
func (e *NodeExpLeft) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpLen ¶
type NodeExpLen struct {
Value NodeExp
}
NodeExpLen holds value
func (*NodeExpLen) FindUsedVars ¶
func (e *NodeExpLen) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpLof ¶
type NodeExpLof struct {
Number NodeExp
}
NodeExpLof holds value
func (*NodeExpLof) FindUsedVars ¶
func (e *NodeExpLof) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpLog ¶
type NodeExpLog struct {
Value NodeExp
}
NodeExpLog holds value
func (*NodeExpLog) FindUsedVars ¶
func (e *NodeExpLog) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpMid ¶
NodeExpMid holds value
func (*NodeExpMid) FindUsedVars ¶
func (e *NodeExpMid) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpMinus ¶
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
type NodeExpMod ¶
NodeExpMod holds value
func (*NodeExpMod) FindUsedVars ¶
func (e *NodeExpMod) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpMult ¶
NodeExpMult holds value
func (*NodeExpMult) FindUsedVars ¶
func (e *NodeExpMult) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpNot ¶
type NodeExpNot struct {
Value NodeExp
}
NodeExpNot holds value
func (*NodeExpNot) FindUsedVars ¶
func (e *NodeExpNot) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpNull ¶
type NodeExpNull struct{}
NodeExpNull holds value
func (*NodeExpNull) FindUsedVars ¶
func (e *NodeExpNull) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
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
type NodeExpOct ¶
type NodeExpOct struct {
Number NodeExp
}
NodeExpOct holds value
func (*NodeExpOct) FindUsedVars ¶
func (e *NodeExpOct) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpOr ¶
NodeExpOr holds value
func (*NodeExpOr) FindUsedVars ¶
func (e *NodeExpOr) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpPeek ¶
type NodeExpPeek struct{}
NodeExpPeek holds value
func (*NodeExpPeek) FindUsedVars ¶
func (e *NodeExpPeek) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpPlus ¶
NodeExpPlus holds value
func (*NodeExpPlus) FindUsedVars ¶
func (e *NodeExpPlus) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpPos ¶
type NodeExpPos struct{}
NodeExpPos holds value
func (*NodeExpPos) FindUsedVars ¶
func (e *NodeExpPos) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpPow ¶
NodeExpPow holds value
func (*NodeExpPow) FindUsedVars ¶
func (e *NodeExpPow) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpRight ¶
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
type NodeExpRnd ¶
type NodeExpRnd struct {
Value NodeExp
}
NodeExpRnd holds value
func (*NodeExpRnd) FindUsedVars ¶
func (e *NodeExpRnd) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpScreen ¶
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
type NodeExpSgn ¶
type NodeExpSgn struct {
Value NodeExp
}
NodeExpSgn holds value
func (*NodeExpSgn) FindUsedVars ¶
func (e *NodeExpSgn) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpSin ¶
type NodeExpSin struct {
Value NodeExp
}
NodeExpSin holds value
func (*NodeExpSin) FindUsedVars ¶
func (e *NodeExpSin) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
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
type NodeExpSpc ¶
type NodeExpSpc struct {
Value NodeExp
}
NodeExpSpc holds value
func (*NodeExpSpc) FindUsedVars ¶
func (e *NodeExpSpc) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpSqr ¶
type NodeExpSqr struct {
Value NodeExp
}
NodeExpSqr holds value
func (*NodeExpSqr) FindUsedVars ¶
func (e *NodeExpSqr) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpStr ¶
type NodeExpStr struct {
Value NodeExp
}
NodeExpStr holds value
func (*NodeExpStr) FindUsedVars ¶
func (e *NodeExpStr) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
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
type NodeExpTab ¶
type NodeExpTab struct {
Value NodeExp
}
NodeExpTab holds value
func (*NodeExpTab) FindUsedVars ¶
func (e *NodeExpTab) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpTan ¶
type NodeExpTan struct {
Value NodeExp
}
NodeExpTan holds value
func (*NodeExpTan) FindUsedVars ¶
func (e *NodeExpTan) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpTime ¶
type NodeExpTime struct { }
NodeExpTime holds value
func (*NodeExpTime) FindUsedVars ¶
func (e *NodeExpTime) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
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
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) 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
type NodeExpUnequal ¶
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) 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) FindUsedVars ¶
func (e *NodeExpVal) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
type NodeExpXor ¶
NodeExpXor holds value
func (*NodeExpXor) FindUsedVars ¶
func (e *NodeExpXor) FindUsedVars(options *BuildOptions)
FindUsedVars finds used vars
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
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
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
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
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
type NodeGosub ¶
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
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
type NodeIf ¶
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
type NodeInput ¶
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
type NodeInputFile ¶
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
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
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
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
type NodeLocate ¶
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
type NodeMid ¶ added in v0.9.0
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) 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
type NodeName ¶
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
type NodeNext ¶
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
type NodeOnGosub ¶
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
type NodeOnGoto ¶
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
type NodeOpen ¶
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
type NodeOpenShort ¶ added in v0.9.0
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 ¶
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
type NodePSet ¶
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
type NodePrint ¶
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
type NodePrintFile ¶
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
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
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
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
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
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
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
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
type NodeSwap ¶
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
type NodeViewPrint ¶
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
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
type NodeWhile ¶
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
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