Documentation ¶
Index ¶
- type And
- type Assign
- type Bang
- type BitwiseAnd
- type BitwiseAndAssign
- type BitwiseLeftShift
- type BitwiseNot
- type BitwiseOr
- type BitwiseOrAssign
- type BitwiseRightShift
- type BitwiseShiftLeftAssign
- type BitwiseShiftRightAssign
- type BitwiseXor
- type BitwiseXorAssign
- type Block
- type Boolean
- type Break
- type Call
- type Continue
- type Divide
- type DivideAssign
- type Dot
- type Equals
- type Float
- type For
- type Function
- type Greater
- type GreaterEq
- type Identifier
- type IfExpr
- type Import
- type In
- type Index
- type Integer
- type Less
- type LessEq
- type List
- type Map
- type Minus
- type MinusAssign
- type MinusMinus
- type Mod
- type ModAssign
- type Node
- func NewAnd(l, r Node) Node
- func NewAssign(l, r Node) Node
- func NewBang(n Node) Node
- func NewBitwiseAnd(l, r Node) Node
- func NewBitwiseAndAssign(l, r Node) Node
- func NewBitwiseLeftShift(l, r Node) Node
- func NewBitwiseNot(n Node) Node
- func NewBitwiseOr(l, r Node) Node
- func NewBitwiseOrAssign(l, r Node) Node
- func NewBitwiseRightShift(l, r Node) Node
- func NewBitwiseShiftLeftAssign(l, r Node) Node
- func NewBitwiseShiftRightAssign(l, r Node) Node
- func NewBitwiseXor(l, r Node) Node
- func NewBitwiseXorAssign(l, r Node) Node
- func NewBoolean(b bool) Node
- func NewCall(fn Node, args []Node) Node
- func NewDivide(l, r Node) Node
- func NewDivideAssign(l, r Node) Node
- func NewDot(l, r Node) Node
- func NewEquals(l, r Node) Node
- func NewFloat(f float64) Node
- func NewFor(cond, body, before, after Node) Node
- func NewFunction(params []Identifier, body Node) Node
- func NewGreater(l, r Node) Node
- func NewGreaterEq(l, r Node) Node
- func NewIdentifier(name string) Node
- func NewIfExpr(cond, body, alt Node) Node
- func NewImport(name Node, parse func(string) (Node, []string)) Node
- func NewIn(l, r Node) Node
- func NewIndex(l, i Node) Node
- func NewInteger(i int64) Node
- func NewLess(l, r Node) Node
- func NewLessEq(l, r Node) Node
- func NewList(elements ...Node) Node
- func NewMap(pairs ...[2]Node) Node
- func NewMinus(l, r Node) Node
- func NewMinusAssign(l, r Node) Node
- func NewMinusMinus(r Node) Node
- func NewMod(l, r Node) Node
- func NewModAssign(l, r Node) Node
- func NewNotEquals(l, r Node) Node
- func NewOr(l, r Node) Node
- func NewPlus(l, r Node) Node
- func NewPlusAssign(l, r Node) Node
- func NewPlusPlus(r Node) Node
- func NewPrefixMinus(n Node) Node
- func NewRawString(s string) Node
- func NewReturn(n Node) Node
- func NewString(s string, parse parseFn) (Node, error)
- func NewTimes(l, r Node) Node
- func NewTimesAssign(l, r Node) Node
- type NotEquals
- type Null
- type Or
- type Plus
- type PlusAssign
- type PlusPlus
- type PrefixMinus
- type RawString
- type Return
- type String
- type Times
- type TimesAssign
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitwiseAnd ¶
type BitwiseAnd struct {
// contains filtered or unexported fields
}
func (BitwiseAnd) Compile ¶
func (b BitwiseAnd) Compile(c *compiler.Compiler) (position int, err error)
func (BitwiseAnd) String ¶
func (b BitwiseAnd) String() string
type BitwiseAndAssign ¶
type BitwiseAndAssign struct {
// contains filtered or unexported fields
}
func (BitwiseAndAssign) Compile ¶
func (b BitwiseAndAssign) Compile(c *compiler.Compiler) (position int, err error)
func (BitwiseAndAssign) String ¶
func (b BitwiseAndAssign) String() string
type BitwiseLeftShift ¶
type BitwiseLeftShift struct {
// contains filtered or unexported fields
}
func (BitwiseLeftShift) Compile ¶
func (b BitwiseLeftShift) Compile(c *compiler.Compiler) (position int, err error)
func (BitwiseLeftShift) String ¶
func (b BitwiseLeftShift) String() string
type BitwiseNot ¶
type BitwiseNot struct {
// contains filtered or unexported fields
}
func (BitwiseNot) Compile ¶
func (b BitwiseNot) Compile(c *compiler.Compiler) (position int, err error)
func (BitwiseNot) String ¶
func (b BitwiseNot) String() string
type BitwiseOr ¶
type BitwiseOr struct {
// contains filtered or unexported fields
}
type BitwiseOrAssign ¶
type BitwiseOrAssign struct {
// contains filtered or unexported fields
}
func (BitwiseOrAssign) Compile ¶
func (b BitwiseOrAssign) Compile(c *compiler.Compiler) (position int, err error)
func (BitwiseOrAssign) String ¶
func (b BitwiseOrAssign) String() string
type BitwiseRightShift ¶
type BitwiseRightShift struct {
// contains filtered or unexported fields
}
func (BitwiseRightShift) Compile ¶
func (b BitwiseRightShift) Compile(c *compiler.Compiler) (position int, err error)
func (BitwiseRightShift) String ¶
func (b BitwiseRightShift) String() string
type BitwiseShiftLeftAssign ¶
type BitwiseShiftLeftAssign struct {
// contains filtered or unexported fields
}
func (BitwiseShiftLeftAssign) Compile ¶
func (b BitwiseShiftLeftAssign) Compile(c *compiler.Compiler) (position int, err error)
func (BitwiseShiftLeftAssign) String ¶
func (b BitwiseShiftLeftAssign) String() string
type BitwiseShiftRightAssign ¶
type BitwiseShiftRightAssign struct {
// contains filtered or unexported fields
}
func (BitwiseShiftRightAssign) Compile ¶
func (b BitwiseShiftRightAssign) Compile(c *compiler.Compiler) (position int, err error)
func (BitwiseShiftRightAssign) Eval ¶
func (b BitwiseShiftRightAssign) Eval(env *obj.Env) obj.Object
func (BitwiseShiftRightAssign) String ¶
func (b BitwiseShiftRightAssign) String() string
type BitwiseXor ¶
type BitwiseXor struct {
// contains filtered or unexported fields
}
func (BitwiseXor) Compile ¶
func (b BitwiseXor) Compile(c *compiler.Compiler) (position int, err error)
func (BitwiseXor) String ¶
func (b BitwiseXor) String() string
type BitwiseXorAssign ¶
type BitwiseXorAssign struct {
// contains filtered or unexported fields
}
func (BitwiseXorAssign) Compile ¶
func (b BitwiseXorAssign) Compile(c *compiler.Compiler) (position int, err error)
func (BitwiseXorAssign) String ¶
func (b BitwiseXorAssign) String() string
type Continue ¶
type Continue struct{}
func NewContinue ¶
func NewContinue() Continue
type DivideAssign ¶
type DivideAssign struct {
// contains filtered or unexported fields
}
func (DivideAssign) Compile ¶
func (d DivideAssign) Compile(c *compiler.Compiler) (position int, err error)
func (DivideAssign) String ¶
func (d DivideAssign) String() string
type GreaterEq ¶
type GreaterEq struct {
// contains filtered or unexported fields
}
type Identifier ¶
type Identifier string
func (Identifier) Compile ¶
func (i Identifier) Compile(c *compiler.Compiler) (position int, err error)
func (Identifier) String ¶
func (i Identifier) String() string
type Import ¶ added in v1.2.0
type Import struct {
// contains filtered or unexported fields
}
type MinusAssign ¶
type MinusAssign struct {
// contains filtered or unexported fields
}
func (MinusAssign) Compile ¶
func (m MinusAssign) Compile(c *compiler.Compiler) (position int, err error)
func (MinusAssign) String ¶
func (m MinusAssign) String() string
type MinusMinus ¶
type MinusMinus struct {
// contains filtered or unexported fields
}
func (MinusMinus) Compile ¶
func (m MinusMinus) Compile(c *compiler.Compiler) (position int, err error)
func (MinusMinus) String ¶
func (m MinusMinus) String() string
type ModAssign ¶
type ModAssign struct {
// contains filtered or unexported fields
}
type Node ¶
func NewBitwiseAnd ¶
func NewBitwiseAndAssign ¶
func NewBitwiseLeftShift ¶
func NewBitwiseNot ¶
func NewBitwiseOr ¶
func NewBitwiseOrAssign ¶
func NewBitwiseRightShift ¶
func NewBitwiseXor ¶
func NewBitwiseXorAssign ¶
func NewBoolean ¶
func NewDivideAssign ¶
func NewFunction ¶
func NewFunction(params []Identifier, body Node) Node
func NewGreater ¶
func NewGreaterEq ¶
func NewIdentifier ¶
func NewInteger ¶
func NewMinusAssign ¶
func NewMinusMinus ¶
func NewModAssign ¶
func NewNotEquals ¶
func NewPlusAssign ¶
func NewPlusPlus ¶
func NewPrefixMinus ¶
func NewRawString ¶
func NewTimesAssign ¶
type NotEquals ¶
type NotEquals struct {
// contains filtered or unexported fields
}
type PlusAssign ¶
type PlusAssign struct {
// contains filtered or unexported fields
}
func (PlusAssign) Compile ¶
func (p PlusAssign) Compile(c *compiler.Compiler) (position int, err error)
func (PlusAssign) String ¶
func (p PlusAssign) String() string
type PrefixMinus ¶
type PrefixMinus struct {
// contains filtered or unexported fields
}
func (PrefixMinus) Compile ¶
func (p PrefixMinus) Compile(c *compiler.Compiler) (position int, err error)
func (PrefixMinus) String ¶
func (p PrefixMinus) String() string
type TimesAssign ¶
type TimesAssign struct {
// contains filtered or unexported fields
}
func (TimesAssign) Compile ¶
func (t TimesAssign) Compile(c *compiler.Compiler) (position int, err error)
func (TimesAssign) String ¶
func (t TimesAssign) String() string
Source Files ¶
- and.go
- assign.go
- bang.go
- bitwiseand.go
- bitwiseandassign.go
- bitwisenot.go
- bitwiseor.go
- bitwiseorassign.go
- bitwiseshiftleft.go
- bitwiseshiftleftassign.go
- bitwiseshiftright.go
- bitwiseshiftrightassign.go
- bitwisexor.go
- bitwisexorassign.go
- block.go
- boolean.go
- break.go
- call.go
- continue.go
- divide.go
- divideassign.go
- dot.go
- equals.go
- float.go
- for.go
- function.go
- greater.go
- greatereq.go
- identifier.go
- ifelse.go
- import.go
- in.go
- index.go
- integer.go
- less.go
- lesseq.go
- list.go
- map.go
- minus.go
- minusassign.go
- minusminus.go
- mod.go
- modassign.go
- node.go
- notequals.go
- null.go
- or.go
- plus.go
- plusassign.go
- plusplus.go
- prefixmin.go
- rawstring.go
- return.go
- string.go
- times.go
- timesassign.go
Click to show internal directories.
Click to hide internal directories.