Documentation ¶
Index ¶
- Constants
- func REPL(vm *Vm, env Env, stack *Stack)
- func ReadBody(vm *Vm, in *bufio.Reader, out *Forms, pos *Pos, closingChar rune) error
- func ReadDeque(vm *Vm, in *bufio.Reader, out *Forms, pos *Pos) error
- func ReadForm(vm *Vm, in *bufio.Reader, out *Forms, pos *Pos) error
- func ReadForms(vm *Vm, in *bufio.Reader, out *Forms, pos *Pos) error
- func ReadId(vm *Vm, in *bufio.Reader, out *Forms, pos *Pos) error
- func ReadInt(vm *Vm, in *bufio.Reader, out *Forms, pos *Pos) error
- func ReadList(vm *Vm, in *bufio.Reader, out *Forms, pos *Pos) error
- func ReadPair(vm *Vm, in *bufio.Reader, out *Forms, pos *Pos) error
- func ReadQuote(vm *Vm, in *bufio.Reader, out *Forms, pos *Pos) error
- func ReadSet(vm *Vm, in *bufio.Reader, out *Forms, pos *Pos) error
- func ReadStr(vm *Vm, in *bufio.Reader, out *Forms, pos *Pos) error
- func SkipWhitespace(vm *Vm, in *bufio.Reader, pos *Pos) error
- func ValCompare(l, r Val) int
- type AbcLibT
- type AndOp
- type BasicEnv
- type BasicForm
- type BasicLib
- type BasicType
- func (_ BasicType) Compare(l, r Val) int
- func (_ BasicType) Dump(v Val, out io.Writer) error
- func (_ BasicType) Emit(v Val, args *Forms, vm *Vm, env Env, pos Pos) error
- func (_ BasicType) Eq(l, r Val) bool
- func (self *BasicType) Init(name string)
- func (_ BasicType) IsTrue(_ Val) bool
- func (self *BasicType) Name() string
- func (self *BasicType) String() string
- func (_ BasicType) Write(v Val, out io.Writer) error
- type BenchOpT
- type BoolType
- type Call
- type CallOp
- type Compare
- type Deque
- func (self *Deque[T]) Clear()
- func (self *Deque[T]) Cut(n int) []T
- func (self Deque[T]) Dump(out io.Writer) error
- func (self Deque[T]) DumpItems(out io.Writer) error
- func (self Deque[T]) Each(f func(T) bool) bool
- func (self *Deque[T]) Init(items []T) *Deque[T]
- func (self Deque[T]) Items() []T
- func (self Deque[T]) Len() int
- func (self Deque[T]) PeekBack() *T
- func (self Deque[T]) PeekFront() T
- func (self *Deque[T]) PopBack() T
- func (self *Deque[T]) PopFront() T
- func (self *Deque[T]) PushBack(it T)
- func (self *Deque[T]) PushFront(it T)
- func (self Deque[T]) String() string
- type DequeForm
- type DequeOp
- type DequeType
- type Env
- type EnvEachFunc
- type Error
- type ExprType
- type Form
- type Forms
- type Fun
- type FunArg
- type FunArgOp
- type FunArgType
- type FunArgs
- type FunBody
- type FunType
- type GotoOp
- type IdForm
- type IfOp
- type IntType
- type ItemsForm
- type Lib
- type ListForm
- type LitForm
- type Macro
- type MacroBody
- type MacroType
- type Op
- type OrOp
- type Order
- type Pair
- type PairForm
- type PairOpT
- type PairType
- type Pc
- type Pos
- type PushOp
- type RetOpT
- type Set
- type SetForm
- type SetOp
- type SetType
- type Stack
- type StopOpT
- type StrType
- type Sym
- type SymType
- type Syms
- type TimeType
- type TraceOpT
- type Type
- type Val
- func (self Val) Compare(other Val) int
- func (self Val) Dump(out io.Writer) error
- func (self Val) Emit(args *Forms, vm *Vm, env Env, pos Pos) error
- func (self Val) Eq(other Val) bool
- func (self *Val) Init(t Type, d any)
- func (self Val) IsTrue() bool
- func (self Val) String() string
- func (self Val) Write(out io.Writer) error
- type ValDeque
- type ValSet
- type Vm
Constants ¶
View Source
const ( Lt = Order(-1) Eq = Order(0) Gt = Order(1) )
View Source
const (
VERSION = 1
)
Variables ¶
This section is empty.
Functions ¶
func ValCompare ¶
Types ¶
type AbcLibT ¶
type AbcLibT struct { BasicLib BoolType BoolType DequeType DequeType IntType IntType ExprType ExprType MacroType MacroType MetaType BasicType PairType PairType FunType FunType FunArgType FunArgType SetType SetType StrType StrType SymType SymType TimeType TimeType }
var AbcLib AbcLibT
type BasicEnv ¶
type BasicEnv struct {
// contains filtered or unexported fields
}
func (BasicEnv) Each ¶
func (self BasicEnv) Each(f EnvEachFunc)
type BasicLib ¶
type BasicLib struct { BasicEnv // contains filtered or unexported fields }
type EnvEachFunc ¶
type FunArgOp ¶
type FunArgOp struct {
// contains filtered or unexported fields
}
func NewFunArgOp ¶
type FunArgType ¶
type FunArgType struct {
BasicType
}
type LitForm ¶
type LitForm struct { BasicForm // contains filtered or unexported fields }
func NewLitForm ¶
type PairForm ¶
type PairForm struct { BasicForm // contains filtered or unexported fields }
func NewPairForm ¶
type ValDeque ¶
func NewValDeque ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.