Documentation ¶
Index ¶
- Constants
- Variables
- func BecomeProcessGroupLeader() int
- func ContinueProcess(pid int)
- func GetHistoryFilePath() (string, error)
- func InitSignalHandling()
- 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 IsString(c Cell) bool
- func IsSyntax(c Cell) bool
- func JobControlSupported() bool
- func JoinProcess(proc *os.Process) int
- func LaunchForegroundTask()
- func Pgid() int
- func PrintError(file string, line int, msg string)
- func Resolve(s Context, e *Env, k *Symbol) (v Reference)
- func SetForegroundGroup(group int)
- func Start(parser reader, cli ui)
- func SuspendProcess(pid int)
- func SysProcAttr(group int) *syscall.SysProcAttr
- func TerminateProcess(pid int)
- type Binding
- type Bound
- type Builtin
- type Channel
- func (ch *Channel) Close()
- func (ch *Channel) Equal(c Cell) bool
- func (ch *Channel) Expose() Context
- 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
- func (e *Env) Access(key Cell) Reference
- func (e *Env) Add(key Cell, value Cell)
- func (e *Env) Bool() bool
- func (e *Env) Complete(word string) []string
- func (e *Env) Copy() *Env
- func (e *Env) Equal(c Cell) bool
- func (e *Env) Method(name string, m Function)
- func (e *Env) Prev() *Env
- func (e *Env) Remove(key Cell) bool
- func (e *Env) String() string
- type Function
- type Job
- type Method
- type Object
- type Pipe
- func (p *Pipe) Close()
- func (p *Pipe) Equal(c Cell) bool
- func (p *Pipe) Expose() Context
- 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) NewBlock(dynamic *Env, 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) 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) Remove(key Cell) bool
- func (s *Scope) String() string
- type String
- type Syntax
- type Task
- func (t *Task) Apply(args Cell) bool
- func (t *Task) Bool() bool
- func (t *Task) Call(c Cell) string
- func (t *Task) Closure(n ClosureGenerator) bool
- func (t *Task) Continue()
- func (t *Task) Debug(s string)
- func (t *Task) DynamicVar(state int64) bool
- 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) (successful bool)
- func (t *Task) Runnable() bool
- func (t *Task) Self() Context
- 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) Wait()
- type Unbound
Constants ¶
View Source
const ( SaveCarCode = 1 << iota SaveCdrCode SaveDynamic SaveLexical SaveScratch SaveMax )
View Source
const (
SaveCode = SaveCarCode | SaveCdrCode
)
Variables ¶
View Source
var (
Platform string = "unix"
)
Functions ¶
func BecomeProcessGroupLeader ¶
func BecomeProcessGroupLeader() int
func ContinueProcess ¶
func ContinueProcess(pid int)
func GetHistoryFilePath ¶
func InitSignalHandling ¶
func InitSignalHandling()
func IsContinuation ¶
func IsContinuation(c Cell) bool
func JobControlSupported ¶
func JobControlSupported() bool
func JoinProcess ¶
func LaunchForegroundTask ¶
func LaunchForegroundTask()
func PrintError ¶
func SetForegroundGroup ¶
func SetForegroundGroup(group int)
func SuspendProcess ¶
func SuspendProcess(pid int)
func SysProcAttr ¶
func SysProcAttr(group int) *syscall.SysProcAttr
func TerminateProcess ¶
func TerminateProcess(pid int)
Types ¶
type Channel ¶
type Channel struct { *Scope // contains filtered or unexported fields }
func (*Channel) ReaderClose ¶
func (ch *Channel) ReaderClose()
func (*Channel) WriterClose ¶
func (ch *Channel) WriterClose()
type Closure ¶
type Closure interface { Cell Applier() Function Body() Cell Label() Cell Params() Cell Scope() Context }
func NewBuiltin ¶
type ClosureGenerator ¶
type Context ¶
type Context interface { Cell Access(key Cell) Reference Copy() Context Complete(word string) []string Define(key, value Cell) Expose() Context Faces() *Env Prev() Context Public(key, value Cell) Remove(key Cell) bool 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) }
func NewChannel ¶
type Continuation ¶
type Continuation struct { Scratch Cell Stack Cell }
func NewContinuation ¶
func NewContinuation(scratch Cell, stack Cell) *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 { *Scope // 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 Dynamic *Env Lexical Context }
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 ¶
type Task ¶
type Task struct { *Job *Registers Done chan Cell Eval chan Cell File string Line int // contains filtered or unexported fields }
func ForegroundTask ¶
func ForegroundTask() *Task
func (*Task) Closure ¶
func (t *Task) Closure(n ClosureGenerator) bool
func (*Task) DynamicVar ¶
func (*Task) LexicalVar ¶
Click to show internal directories.
Click to hide internal directories.