Documentation ¶
Index ¶
- Constants
- type Array
- type BacktickExpression
- type Boolean
- type Builtin
- type BuiltinFunction
- type Environment
- type Error
- type Flag
- type Function
- type Hash
- type HashKey
- type HashPair
- type Hashable
- type Integer
- type Macro
- type Null
- type Object
- type ObjectType
- type Operation
- type Pipes
- type Quote
- type ReturnValue
- type Scope
- type Streams
- type String
Constants ¶
View Source
const ( NULL_OBJ = "NULL" ERROR_OBJ = "ERROR" INTEGER_OBJ = "INTEGER" BOOLEAN_OBJ = "BOOLEAN" STRING_OBJ = "STRING" RETURN_VALUE_OBJ = "RETURN_VALUE" FUNCTION_OBJ = "FUNCTION" BUILTIN_OBJ = "BUILTIN" FLAG_OBJ = "FLAG" ARRAY_OBJ = "ARRAY" HASH_OBJ = "HASH" PIPES_OBJ = "PIPES" BACKTICK_OBJ = "BACKTICK" QUOTE_OBJ = "QUOTE" MACRO_OBJ = "MACRO" )
View Source
const (
Bool = 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct {
Elements []Object
}
func (*Array) Type ¶
func (ao *Array) Type() ObjectType
type BacktickExpression ¶
type BacktickExpression struct {
Value string
}
func (*BacktickExpression) HashKey ¶
func (s *BacktickExpression) HashKey() HashKey
func (*BacktickExpression) Inspect ¶
func (s *BacktickExpression) Inspect() string
func (*BacktickExpression) Type ¶
func (s *BacktickExpression) Type() ObjectType
type Boolean ¶
type Boolean struct {
Value bool
}
func (*Boolean) Type ¶
func (b *Boolean) Type() ObjectType
type Builtin ¶
type Builtin struct { Fn BuiltinFunction Flags []Flag Help string }
func (*Builtin) Type ¶
func (b *Builtin) Type() ObjectType
type Environment ¶
type Environment struct { Streams Streams // contains filtered or unexported fields }
func NewEnclosedEnvironment ¶
func NewEnclosedEnvironment(outer *Environment) *Environment
func NewEnvironment ¶
func NewEnvironment(streams Streams) *Environment
func (*Environment) Export ¶
func (e *Environment) Export() map[string]interface{}
type Error ¶
type Error struct {
Message string
}
func (*Error) Type ¶
func (e *Error) Type() ObjectType
type Flag ¶
type Flag struct { Name string ParamType ObjectType Param Object Help string }
func (*Flag) Type ¶
func (b *Flag) Type() ObjectType
type Function ¶
type Function struct { Parameters []*ast.Identifier Body *ast.BlockStatement Env *Environment }
func (*Function) Type ¶
func (f *Function) Type() ObjectType
type HashKey ¶
type HashKey struct { Type ObjectType Value uint64 }
type Integer ¶
type Integer struct {
Value int64
}
func (*Integer) Type ¶
func (i *Integer) Type() ObjectType
type Macro ¶
type Macro struct { Parameters []*ast.Identifier Body *ast.BlockStatement Env *Environment }
func (*Macro) Type ¶
func (m *Macro) Type() ObjectType
type Object ¶
type Object interface { Type() ObjectType Inspect() string }
type ObjectType ¶
type ObjectType string
type Pipes ¶
// Pipes are the outcome of an exec'd command
type Pipes struct { Out io.ReadCloser Err io.ReadCloser Wait func() error }
func (*Pipes) Type ¶
func (h *Pipes) Type() ObjectType
type ReturnValue ¶
type ReturnValue struct {
Value Object
}
func (*ReturnValue) Inspect ¶
func (rv *ReturnValue) Inspect() string
func (*ReturnValue) Type ¶
func (rv *ReturnValue) Type() ObjectType
Click to show internal directories.
Click to hide internal directories.