Documentation ¶
Index ¶
- Constants
- func Call(t *Task, c Cell, problem string) string
- func Deref(name string, address uintptr) Cell
- func IsBuiltin(c Cell) bool
- func IsChannel(c Cell) bool
- func IsContext(c Cell) bool
- func IsContinuation(c Cell) bool
- func IsMethod(c Cell) bool
- func IsPipe(c Cell) bool
- func IsSyntax(c Cell) bool
- func IsText(c Cell) bool
- func LaunchForegroundTask()
- func PrintError(file string, line int, msg string)
- func Resolve(s Cell, f Cell, k *Symbol) (Reference, Cell)
- func Start(p parser, cli ui)
- type Binding
- type Bound
- type Builtin
- type Channel
- func (ch *Channel) Bool() bool
- func (ch *Channel) Close()
- func (ch *Channel) Equal(c Cell) bool
- func (ch *Channel) Read(t *Task) Cell
- func (ch *Channel) ReadLine(t *Task) Cell
- func (ch *Channel) ReaderClose()
- func (ch *Channel) String() string
- func (ch *Channel) Write(c Cell)
- func (ch *Channel) WriterClose()
- type Closure
- type ClosureGenerator
- type Command
- type Conduit
- type Context
- type Continuation
- type Env
- type Function
- type Job
- type Message
- type Method
- type Object
- type Pipe
- func (p *Pipe) Bool() bool
- func (p *Pipe) Close()
- func (p *Pipe) Equal(c Cell) bool
- func (p *Pipe) Read(t *Task) Cell
- func (p *Pipe) ReadFd() *os.File
- func (p *Pipe) ReadLine(t *Task) Cell
- func (p *Pipe) ReaderClose()
- func (p *Pipe) String() string
- func (p *Pipe) Write(c Cell)
- func (p *Pipe) WriteFd() *os.File
- func (p *Pipe) WriterClose()
- type Registers
- func (r *Registers) Arguments() Cell
- func (r *Registers) Complete(word string) []string
- func (r *Registers) GetState() int64
- func (r *Registers) MakeEnv() []string
- func (r *Registers) NewBlock(lexical Context)
- func (r *Registers) NewFrame(lexical Context)
- func (r *Registers) NewStates(l ...int64)
- func (r *Registers) RemoveState()
- func (r *Registers) ReplaceStates(l ...int64)
- func (r *Registers) RestoreState()
- func (r *Registers) Return(rv Cell) bool
- type Scope
- func (s *Scope) Access(key Cell) Reference
- func (s *Scope) Bool() bool
- func (s *Scope) Complete(word string) []string
- func (s *Scope) Copy() Context
- func (s *Scope) Define(key Cell, value Cell)
- func (s *Scope) DefineBuiltin(k string, a Function)
- func (s *Scope) DefineMethod(k string, a Function)
- func (s *Scope) DefineSyntax(k string, a Function)
- func (s *Scope) Equal(c Cell) bool
- func (s *Scope) Exported() map[string]Cell
- func (s *Scope) Expose() Context
- func (s *Scope) Faces() *Env
- func (s *Scope) Prev() Context
- func (s *Scope) Public(key Cell, value Cell)
- func (s *Scope) PublicMethod(k string, a Function)
- func (s *Scope) PublicSyntax(k string, a Function)
- func (s *Scope) String() string
- func (s *Scope) Visibility() *Env
- type Syntax
- type Task
- func (t *Task) Apply(args Cell) bool
- func (t *Task) Bool() bool
- func (t *Task) Chdir(dir string) bool
- func (t *Task) Closure(n ClosureGenerator) bool
- func (t *Task) Continue()
- func (t *Task) Debug(s string)
- func (t *Task) Equal(c Cell) bool
- func (t *Task) Execute(arg0 string, argv []string, attr *os.ProcAttr) (*Status, error)
- func (t *Task) External(args Cell) bool
- func (t *Task) Launch()
- func (t *Task) LexicalVar(state int64) bool
- func (t *Task) Listen()
- func (t *Task) Lookup(sym *Symbol, simple bool) (bool, string)
- func (t *Task) Run(end Cell, problem string) (status int)
- func (t *Task) Runnable() bool
- func (t *Task) Self() Cell
- func (t *Task) Stop()
- func (t *Task) Strict() (ok bool)
- func (t *Task) String() string
- func (t *Task) Suspend()
- func (t *Task) Throw(file string, line int, text string)
- func (t *Task) Validate(args Cell, minimum, maximum int64, validators ...Validator)
- func (t *Task) Wait()
- type Unbound
- type Validator
Constants ¶
View Source
const ( SaveCarCode = 1 << iota SaveCdrCode SaveDump SaveFrame SaveLexical SaveMax )
View Source
const (
SaveCode = SaveCarCode | SaveCdrCode
)
Variables ¶
This section is empty.
Functions ¶
func IsContinuation ¶
func IsContinuation(c Cell) bool
func LaunchForegroundTask ¶
func LaunchForegroundTask()
func PrintError ¶
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
func NewChannel ¶
func (*Channel) ReaderClose ¶
func (ch *Channel) ReaderClose()
func (*Channel) WriterClose ¶
func (ch *Channel) WriterClose()
type Closure ¶
type Closure interface { Cell Applier() Function Body() Cell CallerLabel() Cell Params() Cell Scope() Context SelfLabel() Cell }
func NewBuiltin ¶
type ClosureGenerator ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (*Command) CallerLabel ¶
func (c *Command) CallerLabel() Cell
type Context ¶
type Context interface { Cell Access(key Cell) Reference Copy() Context Complete(word string) []string Define(key, value Cell) Exported() map[string]Cell Expose() Context Faces() *Env Prev() Context Public(key, value Cell) Visibility() *Env DefineBuiltin(k string, f Function) DefineMethod(k string, f Function) DefineSyntax(k string, f Function) PublicMethod(k string, f Function) PublicSyntax(k string, f Function) }
type Continuation ¶
func NewContinuation ¶
func NewContinuation(dump, frame, stack Cell, f string, l int) *Continuation
func (*Continuation) Bool ¶
func (ct *Continuation) Bool() bool
func (*Continuation) Equal ¶
func (ct *Continuation) Equal(c Cell) bool
func (*Continuation) String ¶
func (ct *Continuation) String() string
type Pipe ¶
type Pipe struct {
// contains filtered or unexported fields
}
func (*Pipe) ReaderClose ¶
func (p *Pipe) ReaderClose()
func (*Pipe) WriterClose ¶
func (p *Pipe) WriterClose()
type Registers ¶
type Registers struct { Continuation // Stack and Dump Code Cell // Control Lexical Cell }
func (*Registers) RemoveState ¶
func (r *Registers) RemoveState()
func (*Registers) ReplaceStates ¶
func (*Registers) RestoreState ¶
func (r *Registers) RestoreState()
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
func (*Scope) DefineBuiltin ¶
func (*Scope) DefineMethod ¶
func (*Scope) DefineSyntax ¶
func (*Scope) PublicMethod ¶
func (*Scope) PublicSyntax ¶
func (*Scope) Visibility ¶
type Task ¶
type Task struct { *Job Registers Done chan Cell Eval chan Message // contains filtered or unexported fields }
func ForegroundTask ¶
func ForegroundTask() *Task
func (*Task) Closure ¶
func (t *Task) Closure(n ClosureGenerator) bool
func (*Task) LexicalVar ¶
Click to show internal directories.
Click to hide internal directories.