Documentation
¶
Overview ¶
* Droscheme - a Scheme implementation * Copyright © 2012 Andrew Robbins, Daniel Connelly * * This program is free software: it is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. You can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License (LGPLv3): <http://www.gnu.org/licenses/>.
* Droscheme - a Scheme implementation * Copyright © 2012 Andrew Robbins, Daniel Connelly * * This program is free software: it is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. You can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License (LGPLv3): <http://www.gnu.org/licenses/>.
* Droscheme - a Scheme implementation * Copyright © 2012 Andrew Robbins, Daniel Connelly * * This program is free software: it is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. You can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License (LGPLv3): <http://www.gnu.org/licenses/>.
* Droscheme - a Scheme implementation * Copyright © 2012 Andrew Robbins, Daniel Connelly * * This program is free software: it is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. You can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License (LGPLv3): <http://www.gnu.org/licenses/>.
* Droscheme - a Scheme implementation * Copyright © 2012 Andrew Robbins, Daniel Connelly * * This program is free software: it is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. You can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License (LGPLv3): <http://www.gnu.org/licenses/>.
* Droscheme - a Scheme implementation * Copyright © 2012 Andrew Robbins, Daniel Connelly * * This program is free software: it is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. You can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License (LGPLv3): <http://www.gnu.org/licenses/>.
* Droscheme - a Scheme implementation * Copyright © 2012 Andrew Robbins, Daniel Connelly * * This program is free software: it is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. You can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License (LGPLv3): <http://www.gnu.org/licenses/>.
* Droscheme - a Scheme implementation * Copyright © 2012 Andrew Robbins, Daniel Connelly * * This program is free software: it is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. You can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License (LGPLv3): <http://www.gnu.org/licenses/>.
Index ¶
- Constants
- func Compare(x Num, y Num) int
- func CountParens(s string) int
- func Dump()
- func Equal(x, y Any) bool
- func GetFE(pc uintptr) uintptr
- func GetFL(pc uintptr) (file string, line int)
- func GetFN(pc uintptr) string
- func GetPC(fn interface{}) uintptr
- func GetRootPath() string
- func Hash(o Any) uintptr
- func InexactEqual(x, y float64) bool
- func IsBinary(o Any) bool
- func IsBinaryPort(o Any) bool
- func IsBool(o Any) bool
- func IsByte(o Any) bool
- func IsChar(o Any) bool
- func IsComplex(a Any) bool
- func IsContinuation(a interface{}) bool
- func IsEmpty(a Any) bool
- func IsError(a Any) bool
- func IsExact(a Any) bool
- func IsInexact(a Any) bool
- func IsInputPort(o Any) bool
- func IsInteger(a Any) bool
- func IsNull(o Any) bool
- func IsNumber(a Any) bool
- func IsOutputPort(o Any) bool
- func IsPair(o Any) bool
- func IsPort(o Any) bool
- func IsProcedure(o Any) bool
- func IsRational(a Any) bool
- func IsReal(a Any) bool
- func IsString(a Any) bool
- func IsSymbol(o Any) bool
- func IsSyntax(kw Any, env *Env) bool
- func IsTable(a Any) bool
- func IsTextualPort(o Any) bool
- func IsType(o Any, tag int) bool
- func IsValues(a Any) bool
- func IsVector(a Any) bool
- func IsVoid(a Any) bool
- func MangleName(name string) string
- func PointerEqual(x, y Any) bool
- func SetCmdLine(args []string)
- func ToByte(o Any) byte
- func ToError(a interface{}) error
- func ToFcmplx(a Any) complex128
- func ToFixnum(a Any) int64
- func ToFlonum(a Any) float64
- func TypeEqual(x, y Any) bool
- func UnmangleName(mangled string) string
- type Any
- func Dacos(a Any) Any
- func Dangle(a Any) Any
- func Dapply(a Any) Any
- func Dasin(a Any) Any
- func Datan(a Any) Any
- func DbinaryZKportZS(a Any) Any
- func DbooleanZQZS(a Any) Any
- func DbooleanZS(a Any) Any
- func DbytevectorZKZRu8ZKlist(a Any) Any
- func DbytevectorZKZRu8ZKvector(a Any) Any
- func DbytevectorZKcopy(a Any) Any
- func DbytevectorZKcopyZA(a Any) Any
- func DbytevectorZKcopyZKpartial(a Any) Any
- func DbytevectorZKcopyZKpartialZA(a Any) Any
- func DbytevectorZKlength(a Any) Any
- func DbytevectorZKu8(a Any) Any
- func DbytevectorZKu8ZKref(a Any) Any
- func DbytevectorZKu8ZKsetZA(a Any) Any
- func DbytevectorZS(a Any) Any
- func DcallZKwithZKcomposableZKcontinuation(a Any) Any
- func DcallZKwithZKcurrentZKcontinuation(a Any) Any
- func DcallZKwithZKescapeZKcontinuation(a Any) (value Any)
- func DcallZKwithZKport(a Any) Any
- func DcallZKwithZKvalues(a Any) Any
- func Dcar(a Any) Any
- func Dcdr(a Any) Any
- func DcharZKZRinteger(a Any) Any
- func DcharZKreadyZS(a Any) Any
- func DcharZS(a Any) Any
- func DcloseZKinputZKport(a Any) Any
- func DcloseZKoutputZKport(a Any) Any
- func DcloseZKport(a Any) Any
- func DcommandZKline(a Any) Any
- func DcomplexZS(a Any) Any
- func Dcons(a Any) Any
- func DcontinuationZKcapture(a Any) Any
- func DcontinuationZKreturn(a Any) Any
- func Dcos(a Any) Any
- func DcurrentZKerrorZKport(a Any) Any
- func DcurrentZKinputZKport(a Any) Any
- func DcurrentZKjiffy(a Any) Any
- func DcurrentZKoutputZKport(a Any) Any
- func DcurrentZKsecond(a Any) Any
- func Ddenominator(a Any) Any
- func Ddisplay(a Any) Any
- func DdroschemeZKbranch(a Any) Any
- func DdroschemeZKfloat32ZKenvironment(a Any) Any
- func DdroschemeZKfloat64ZKenvironment(a Any) Any
- func DdroschemeZKprimitiveZKenvironment(a Any) Any
- func DdroschemeZKrootZKpath(a Any) Any
- func DdroschemeZKwait(a Any) Any
- func DdynamicZKwind(a Any) Any
- func DemptyZS(a Any) Any
- func DeofZKobject(a Any) Any
- func DeofZKobjectZS(a Any) Any
- func DequalZS(a Any) Any
- func Derror(a Any) Any
- func DerrorZKobjectZKirritants(a Any) Any
- func DerrorZKobjectZKmessage(a Any) Any
- func DerrorZKobjectZS(a Any) Any
- func Deval(a Any) Any
- func DevalZKliteral(a Any) Any
- func DexactZKZRinexact(a Any) Any
- func DexactZKintegerZKsqrt(a Any) Any
- func DexactZS(a Any) Any
- func Dexit(a Any) Any
- func Dexp(a Any) Any
- func Dexpt(a Any) Any
- func Dfloor(a Any) Any
- func DflushZKoutputZKport(a Any) Any
- func DfoldZKleft(a Any) Any
- func DfoldZKright(a Any) Any
- func DgetZKoutputZKbytevector(a Any) Any
- func DgetZKoutputZKstring(a Any) Any
- func Dhash(a Any) Any
- func DhashtableZKZRlist(a Any) Any
- func DhashtableZKZRvector(a Any) Any
- func DhashtableZKclearZA(a Any) Any
- func DhashtableZKcontainsZS(a Any) Any
- func DhashtableZKcopy(a Any) Any
- func DhashtableZKdeleteZA(a Any) Any
- func DhashtableZKentries(a Any) Any
- func DhashtableZKequivalenceZKfunction(a Any) Any
- func DhashtableZKhashZKfunction(a Any) Any
- func DhashtableZKkeys(a Any) Any
- func DhashtableZKmutableZS(a Any) Any
- func DhashtableZKref(a Any) Any
- func DhashtableZKsetZA(a Any) Any
- func DhashtableZKsize(a Any) Any
- func DhashtableZKupdateZA(a Any) Any
- func DhashtableZKvalues(a Any) Any
- func DhashtableZS(a Any) Any
- func Didentity(a Any) Any
- func DimagZKpart(a Any) Any
- func DinexactZKZRexact(a Any) Any
- func DinexactZQZS(a Any) Any
- func DinexactZS(a Any) Any
- func DinputZKportZS(a Any) Any
- func DintegerZKZRchar(a Any) Any
- func DintegerZS(a Any) Any
- func DinteractionZKenvironment(a Any) Any
- func DlastZKpair(a Any) Any
- func Dlength(a Any) Any
- func Dlist(a Any) Any
- func DlistZH(a Any) Any
- func DlistZHZKZRvector(a Any) Any
- func DlistZI(a Any) Any
- func DlistZKZRstring(a Any) Any
- func DlistZKZRvector(a Any) Any
- func DlistZKcopy(a Any) Any
- func DlistZKref(a Any) Any
- func DlistZKtail(a Any) Any
- func DlistZS(a Any) Any
- func Dlog(a Any) Any
- func Dmagnitude(a Any) Any
- func DmakeZKbytevector(a Any) Any
- func DmakeZKequalZKhashtable(a Any) Any
- func DmakeZKhashtable(a Any) Any
- func DmakeZKlist(a Any) Any
- func DmakeZKparameter(a Any) Any
- func DmakeZKpolar(a Any) Any
- func DmakeZKrectangular(a Any) Any
- func DmakeZKstring(a Any) Any
- func DmakeZKvector(a Any) Any
- func DmakeZM(a Any) Any
- func DnegativeZS(a Any) Any
- func Dnewline(a Any) Any
- func Dnot(a Any) Any
- func DnullZKenvironment(a Any) Any
- func DnullZS(a Any) Any
- func DnumZH(a Any) Any
- func DnumZI(a Any) Any
- func DnumZK(a Any) Any
- func DnumZM(a Any) Any
- func DnumZP(a Any) Any
- func DnumZPZQ(a Any) Any
- func DnumZQ(a Any) Any
- func DnumZR(a Any) Any
- func DnumZRZQ(a Any) Any
- func DnumberZKZRstring(a Any) Any
- func DnumberZKtypeZKof(a Any) Any
- func DnumberZS(a Any) Any
- func Dnumerator(a Any) Any
- func DopenZKbinaryZKinputZKfile(a Any) Any
- func DopenZKbinaryZKoutputZKfile(a Any) Any
- func DopenZKinputZKbytevector(a Any) Any
- func DopenZKinputZKfile(a Any) Any
- func DopenZKinputZKstring(a Any) Any
- func DopenZKoutputZKbytevector(a Any) Any
- func DopenZKoutputZKfile(a Any) Any
- func DopenZKoutputZKstring(a Any) Any
- func DoutputZKportZS(a Any) Any
- func DpairZS(a Any) Any
- func DpeekZKchar(a Any) Any
- func DpeekZKu8(a Any) Any
- func DpointerZQZS(a Any) Any
- func DportZKopenZS(a Any) Any
- func DportZS(a Any) Any
- func DpositiveZS(a Any) Any
- func DprocedureZS(a Any) Any
- func Draise(a Any) Any
- func DraiseZKcontinuable(a Any) Any
- func DrationalZS(a Any) Any
- func Dread(a Any) Any
- func DreadZKbytevector(a Any) Any
- func DreadZKbytevectorZA(a Any) Any
- func DreadZKchar(a Any) Any
- func DreadZKline(a Any) Any
- func DreadZKu8(a Any) Any
- func DrealZKpart(a Any) Any
- func DrealZS(a Any) Any
- func Dround(a Any) Any
- func DschemeZKprimitiveZKenvironment(a Any) Any
- func DschemeZKreportZKenvironment(a Any) Any
- func DsetZKcarZA(a Any) Any
- func DsetZKcdrZA(a Any) Any
- func DshowZKlist(a Any) Any
- func DshowZKvector(a Any) Any
- func Dsign(a Any) Any
- func DsimplestZKrationalZKZRexact(a Any) Any
- func Dsin(a Any) Any
- func Dsqrt(a Any) Any
- func DstandardZKerrorZKport(a Any) Any
- func DstandardZKinputZKport(a Any) Any
- func DstandardZKoutputZKport(a Any) Any
- func Dstring(a Any) Any
- func DstringZKZRlist(a Any) Any
- func DstringZKZRnumber(a Any) Any
- func DstringZKZRsymbol(a Any) Any
- func DstringZKZRutf8(a Any) Any
- func DstringZKZRvector(a Any) Any
- func DstringZKappend(a Any) Any
- func DstringZKcopy(a Any) Any
- func DstringZKfillZA(a Any) Any
- func DstringZKlength(a Any) Any
- func DstringZKref(a Any) Any
- func DstringZKsetZA(a Any) Any
- func DstringZS(a Any) Any
- func Dsubstring(a Any) Any
- func DsubstringZA(a Any) Any
- func DsymbolZKZRstring(a Any) Any
- func DsymbolZS(a Any) Any
- func Dtan(a Any) Any
- func DtextualZKportZS(a Any) Any
- func DtypeZKof(a Any) Any
- func DtypeZQZS(a Any) Any
- func Du8ZKlistZKZRbytevector(a Any) Any
- func Du8ZKreadyZS(a Any) Any
- func Du8ZKvectorZKZRbytevector(a Any) Any
- func Dutf8ZKZRstring(a Any) Any
- func Dvalues(a Any) Any
- func Dvector(a Any) Any
- func DvectorZKZRlist(a Any) Any
- func DvectorZKZRlistZH(a Any) Any
- func DvectorZKZRstring(a Any) Any
- func DvectorZKcopy(a Any) Any
- func DvectorZKfillZA(a Any) Any
- func DvectorZKforZKeach(a Any) Any
- func DvectorZKlength(a Any) Any
- func DvectorZKmap(a Any) Any
- func DvectorZKref(a Any) Any
- func DvectorZKsetZA(a Any) Any
- func DvectorZS(a Any) Any
- func Dvoid(a Any) Any
- func DwithZKexceptionZKhandler(a Any) Any
- func Dwrite(a Any) Any
- func DwriteZKbytevector(a Any) Any
- func DwriteZKchar(a Any) Any
- func DwriteZKu8(a Any) Any
- func ErrorToPanic(value Any, err error) Any
- func Eval(expr Any, env *Env) (value Any, err error)
- func KapplyZKsyntax(kw, st Any, env *Env) Any
- func Kbegin(kw, st Any, env *Env) Any
- func KcaseZKlambda(kw, st Any, env *Env) Any
- func KcurrentZKenvironment(kw, st Any, env *Env) Any
- func Kdefine(kw, st Any, env *Env) Any
- func KdefineZKlibrary(kw, st Any, env *Env) Any
- func KdefineZKmacro(kw, st Any, env *Env) Any
- func KdefineZKsyntax(kw, st Any, env *Env) Any
- func KdefineZKvalues(kw, st Any, env *Env) Any
- func Kdo(kw, st Any, env *Env) Any
- func KdumpZKenvironment(kw, st Any, env *Env) Any
- func Kif(kw, st Any, env *Env) Any
- func Klambda(kw, st Any, env *Env) Any
- func Klet(kw, st Any, env *Env) Any
- func KletZH(kw, st Any, env *Env) Any
- func KletZKsyntax(kw, st Any, env *Env) Any
- func KletZKvalues(kw, st Any, env *Env) Any
- func Kletrec(kw, st Any, env *Env) Any
- func KletrecZKsyntax(kw, st Any, env *Env) Any
- func KletrecZKvalues(kw, st Any, env *Env) Any
- func Klibrary(kw, st Any, env *Env) Any
- func Kload(kw, st Any, env *Env) Any
- func Kparameterize(kw, st Any, env *Env) Any
- func Kquasiquote(kw, st Any, env *Env) Any
- func Kquote(kw, st Any, env *Env) Any
- func KsetZA(kw, st Any, env *Env) Any
- func KsyntaxZKcase(kw, st Any, env *Env) Any
- func KsyntaxZKerror(kw, st Any, env *Env) Any
- func KsyntaxZKrules(kw, st Any, env *Env) Any
- func Kunquote(kw, st Any, env *Env) Any
- func KunquoteZKsplicing(kw, st Any, env *Env) Any
- func Load(filename string, env *Env) (value Any, err error)
- func NewBegin(body Any, env *Env) Any
- func NewEval(body Any, env *Env) Any
- func NewKeyword(key, value Any) Any
- func NewLabel(l, d Any) Any
- func NewLambda(rest Any, env *Env) Any
- func NewPrim(fn func(Any) Any) Any
- func NewValues(a []Any) Any
- func OpenBIFile(filename string) Any
- func OpenBOFile(filename string) Any
- func OpenTIFile(filename string) Any
- func OpenTOFile(filename string) Any
- func PanicToError(expr Any) (value Any, err error)
- func ReadPort(port Any) (value Any, err error)
- func ReadString(input string) (Any, error)
- func ToString(s string) Any
- func Void() Any
- type Applier
- type ArithNum
- type BIPort
- type BOPort
- type BPort
- type BaseNum
- type BytePeeker
- type Closer
- type ComplexNum
- type Cont
- type Env
- func (env *Env) DefMacro(symbol, body Any) Any
- func (env *Env) DefMatch(symbol, value Any) Any
- func (env *Env) DefSyntax(symbol, rules Any) Any
- func (env *Env) DefValue(symbol, body Any) (id string, value Any)
- func (env *Env) Define(symbol, body Any) Any
- func (env *Env) Equal(a Any) bool
- func (env *Env) Extend() *Env
- func (env *Env) GetHash() uintptr
- func (env *Env) GetType() int
- func (env *Env) Has(symbol Any) bool
- func (env *Env) Ref(symbol Any) Any
- func (env *Env) Set(symbol, value Any) Any
- func (env *Env) String() string
- func (env *Env) Update(child *Env) *Env
- type Error
- type Evaler
- type ExactNum
- type Flusher
- type IPort
- type InexactNum
- type IntNum
- type Lexer
- type LineReader
- type List
- func (o *List) Equal(a Any) bool
- func (o *List) Eval(env *Env) Any
- func (o *List) First() Any
- func (o *List) GetHash() uintptr
- func (o *List) GetType() int
- func (p *List) Match(syntax Any, env *Env) bool
- func (t *List) Replace(env *Env) Any
- func (o *List) Rest() Any
- func (o *List) String() string
- func (o *List) ToVector() Any
- type Matcher
- type Num
- type OPort
- type Peeker
- type Port
- type RealNum
- type Replacer
- type RunePeeker
- type RunesWriter
- type SBinary
- type SBool
- type SBytePort
- func (o *SBytePort) Close() error
- func (o *SBytePort) Closed() bool
- func (o *SBytePort) Equal(a Any) bool
- func (o *SBytePort) GetHash() uintptr
- func (o *SBytePort) GetPortType() int
- func (o *SBytePort) GetType() int
- func (o *SBytePort) Peek(n int) (b []byte, err error)
- func (o *SBytePort) PeekByte() (b byte, err error)
- func (o *SBytePort) PeekRune() (r rune, err error)
- func (o *SBytePort) Read(p []byte) (n int, err error)
- func (o *SBytePort) ReadByte() (c byte, err error)
- func (o *SBytePort) ReadLine() (line []rune, err error)
- func (o *SBytePort) ReadRune() (r rune, size int, err error)
- type SCaseSyntax
- type SChar
- type SCharPort
- func (o *SCharPort) Close() error
- func (o *SCharPort) Closed() bool
- func (o *SCharPort) Equal(a Any) bool
- func (o *SCharPort) Flush() error
- func (o *SCharPort) GetHash() uintptr
- func (o *SCharPort) GetPortType() int
- func (o *SCharPort) GetType() int
- func (o *SCharPort) Peek(n int) (b []byte, err error)
- func (o *SCharPort) PeekByte() (b byte, err error)
- func (o *SCharPort) PeekRune() (r rune, err error)
- func (o *SCharPort) Read(p []byte) (n int, err error)
- func (o *SCharPort) ReadByte() (c byte, err error)
- func (o *SCharPort) ReadLine() (line []rune, err error)
- func (o *SCharPort) ReadRune() (r rune, size int, err error)
- func (o *SCharPort) Write(c []byte) (n int, err error)
- func (o *SCharPort) WriteRunes(r []rune) (n int, err error)
- type SComplex
- func (o SComplex) Add(n Num) Num
- func (o SComplex) Angle() RealNum
- func (o SComplex) Conj() Num
- func (o SComplex) Div(n Num) Num
- func (o SComplex) Equal(n Any) bool
- func (o SComplex) GetHash() uintptr
- func (o SComplex) GetNumberType() int
- func (o SComplex) GetType() int
- func (o SComplex) Imag() RealNum
- func (o SComplex) Mod(n Num) Num
- func (o SComplex) Mul(n Num) Num
- func (o SComplex) Real() RealNum
- func (o SComplex) Scale() RealNum
- func (o SComplex) Shl(n Num) Num
- func (o SComplex) Shr(n Num) Num
- func (o SComplex) String() string
- func (o SComplex) Sub(n Num) Num
- type SComplexPolar
- func (o SComplexPolar) Add(n Num) Num
- func (o SComplexPolar) Angle() RealNum
- func (o SComplexPolar) Cmp(n Num) Num
- func (o SComplexPolar) Div(n Num) Num
- func (o SComplexPolar) Equal(n Any) bool
- func (o SComplexPolar) GetHash() uintptr
- func (o SComplexPolar) GetNumberType() int
- func (o SComplexPolar) GetType() int
- func (o SComplexPolar) Imag() RealNum
- func (o SComplexPolar) Mod(n Num) Num
- func (o SComplexPolar) Mul(n Num) Num
- func (o SComplexPolar) Real() RealNum
- func (o SComplexPolar) Scale() RealNum
- func (o SComplexPolar) Shl(n Num) Num
- func (o SComplexPolar) Shr(n Num) Num
- func (o SComplexPolar) String() string
- func (o SComplexPolar) Sub(n Num) Num
- type SCont
- type SError
- type SFilePort
- func (o SFilePort) Closed() bool
- func (o SFilePort) Equal(a Any) bool
- func (o SFilePort) Flush() error
- func (o SFilePort) GetHash() uintptr
- func (o SFilePort) GetPortType() int
- func (o SFilePort) GetType() int
- func (o SFilePort) ReadByte() (c byte, err error)
- func (o SFilePort) ReadRune() (r rune, size int, err error)
- func (o SFilePort) ReadyByte() bool
- func (o SFilePort) ReadyRune() bool
- func (o SFilePort) String() string
- func (o SFilePort) WriteRunes(r []rune) (n int, err error)
- type SFixnum
- type SFlonum
- type SInteger
- func (o SInteger) Add(n Num) Num
- func (o SInteger) Cmp(n Num) int
- func (o SInteger) Div(n Num) Num
- func (o SInteger) Equal(n Any) bool
- func (o SInteger) GetHash() uintptr
- func (o SInteger) GetNumberType() int
- func (o SInteger) GetType() int
- func (o SInteger) MakePolar(n RealNum) ComplexNum
- func (o SInteger) MakeRect(n RealNum) ComplexNum
- func (o SInteger) Mod(n Num) Num
- func (o SInteger) Mul(n Num) Num
- func (o SInteger) RTE() IntNum
- func (o SInteger) RTN() IntNum
- func (o SInteger) Shl(n Num) Num
- func (o SInteger) Shr(n Num) Num
- func (o SInteger) String() string
- func (o SInteger) Sub(n Num) Num
- type SLabel
- type SNull
- type SPrim
- type SPrimSyntax
- type SProc
- type SProcSyntax
- type SRational
- func (o SRational) Add(n Num) Num
- func (o SRational) Cmp(n Num) int
- func (o SRational) Cmp0() int
- func (o SRational) Div(n Num) Num
- func (o SRational) Dmtr() Num
- func (o SRational) Equal(n Any) bool
- func (o SRational) GetHash() uintptr
- func (o SRational) GetNumberType() int
- func (o SRational) GetType() int
- func (o SRational) MakePolar(n RealNum) ComplexNum
- func (o SRational) MakeRect(n RealNum) ComplexNum
- func (o SRational) Mod(n Num) Num
- func (o SRational) Mul(n Num) Num
- func (o SRational) Nmtr() Num
- func (o SRational) RTE() IntNum
- func (o SRational) RTN() IntNum
- func (o SRational) Shl(n Num) Num
- func (o SRational) Shr(n Num) Num
- func (o SRational) String() string
- func (o SRational) Sub(n Num) Num
- func (o SRational) Zero() Num
- type SRuleSyntax
- type SString
- func (o SString) Equal(a Any) bool
- func (o SString) GetHash() uintptr
- func (o SString) GetType() int
- func (o SString) GoString() string
- func (o SString) Match(syntax Any, env *Env) bool
- func (o SString) Ref(k Any) Any
- func (o SString) Replace(env *Env) Any
- func (o SString) Set(k, v Any) Any
- func (o SString) String() string
- type SSymbol
- type STable
- func (o STable) Delete(k Any)
- func (o STable) Entries() (keys []Any, values []Any)
- func (o STable) Equal(a Any) bool
- func (o STable) GetHash() uintptr
- func (o STable) GetType() int
- func (o STable) Items() []Any
- func (o STable) Keys() []Any
- func (o STable) Ref(k Any) Any
- func (o STable) Set(k, v Any)
- func (o STable) String() string
- func (o STable) Values() []Any
- type SType
- type SValues
- type SVector
- type SVoid
- type Scomplex128
- func (o Scomplex128) Add(n Num) Num
- func (o Scomplex128) Angle() RealNum
- func (o Scomplex128) Div(n Num) Num
- func (o Scomplex128) Equal(n Any) bool
- func (o Scomplex128) GetHash() uintptr
- func (o Scomplex128) GetNumberType() int
- func (o Scomplex128) GetType() int
- func (o Scomplex128) Imag() RealNum
- func (o Scomplex128) Mod(n Num) Num
- func (o Scomplex128) Mul(n Num) Num
- func (o Scomplex128) Real() RealNum
- func (o Scomplex128) Scale() RealNum
- func (o Scomplex128) Shl(n Num) Num
- func (o Scomplex128) Shr(n Num) Num
- func (o Scomplex128) String() string
- func (o Scomplex128) Sub(n Num) Num
- type Scomplex64
- func (o Scomplex64) Angle() RealNum
- func (o Scomplex64) Equal(n Any) bool
- func (o Scomplex64) GetHash() uintptr
- func (o Scomplex64) GetNumberType() int
- func (o Scomplex64) GetType() int
- func (o Scomplex64) Imag() RealNum
- func (o Scomplex64) Real() RealNum
- func (o Scomplex64) Scale() RealNum
- func (o Scomplex64) String() string
- type Sfloat32
- func (o Sfloat32) Add(n Num) Num
- func (o Sfloat32) Cmp(n Num) int
- func (o Sfloat32) Div(n Num) Num
- func (o Sfloat32) Equal(n Any) bool
- func (o Sfloat32) GetHash() uintptr
- func (o Sfloat32) GetNumberType() int
- func (o Sfloat32) GetType() int
- func (o Sfloat32) MakePolar(n RealNum) ComplexNum
- func (o Sfloat32) MakeRect(n RealNum) ComplexNum
- func (o Sfloat32) Mod(n Num) Num
- func (o Sfloat32) Mul(n Num) Num
- func (o Sfloat32) RTE() IntNum
- func (o Sfloat32) RTN() IntNum
- func (o Sfloat32) Shl(n Num) Num
- func (o Sfloat32) Shr(n Num) Num
- func (o Sfloat32) String() string
- func (o Sfloat32) Sub(n Num) Num
- type Sfloat64
- func (o Sfloat64) Add(n Num) Num
- func (o Sfloat64) ArcCos() Num
- func (o Sfloat64) ArcSin() Num
- func (o Sfloat64) ArcTan(n Num) Num
- func (o Sfloat64) Cmp(n Num) int
- func (o Sfloat64) Cos() Num
- func (o Sfloat64) Div(n Num) Num
- func (o Sfloat64) Equal(n Any) bool
- func (o Sfloat64) Exp() Num
- func (o Sfloat64) GetHash() uintptr
- func (o Sfloat64) GetNumberType() int
- func (o Sfloat64) GetType() int
- func (o Sfloat64) Ln() Num
- func (o Sfloat64) Log(n Num) Num
- func (o Sfloat64) MakePolar(n RealNum) ComplexNum
- func (o Sfloat64) MakeRect(n RealNum) ComplexNum
- func (o Sfloat64) Mod(n Num) Num
- func (o Sfloat64) Mul(n Num) Num
- func (o Sfloat64) Pow(n Num) Num
- func (o Sfloat64) RNN() IntNum
- func (o Sfloat64) RTE() IntNum
- func (o Sfloat64) RTN() IntNum
- func (o Sfloat64) Shl(n Num) Num
- func (o Sfloat64) Shr(n Num) Num
- func (o Sfloat64) Sin() Num
- func (o Sfloat64) Sqrt() Num
- func (o Sfloat64) String() string
- func (o Sfloat64) Sub(n Num) Num
- func (o Sfloat64) Tan() Num
- type Sint16
- type Sint32
- func (o Sint32) Add(n Num) Num
- func (o Sint32) Cmp(n Num) int
- func (o Sint32) Div(n Num) Num
- func (o Sint32) Equal(n Any) bool
- func (o Sint32) GetHash() uintptr
- func (o Sint32) GetNumberType() int
- func (o Sint32) GetType() int
- func (o Sint32) Mod(n Num) Num
- func (o Sint32) Mul(n Num) Num
- func (o Sint32) RTE() IntNum
- func (o Sint32) RTN() IntNum
- func (o Sint32) Shl(n Num) Num
- func (o Sint32) Shr(n Num) Num
- func (o Sint32) String() string
- func (o Sint32) Sub(n Num) Num
- type Sint64
- func (o Sint64) Add(n Num) Num
- func (o Sint64) Cmp(n Num) int
- func (o Sint64) Div(n Num) Num
- func (o Sint64) Equal(n Any) bool
- func (o Sint64) GetHash() uintptr
- func (o Sint64) GetNumberType() int
- func (o Sint64) GetType() int
- func (o Sint64) MakePolar(n RealNum) ComplexNum
- func (o Sint64) MakeRect(n RealNum) ComplexNum
- func (o Sint64) Mod(n Num) Num
- func (o Sint64) Mul(n Num) Num
- func (o Sint64) RTE() IntNum
- func (o Sint64) RTN() IntNum
- func (o Sint64) Shl(n Num) Num
- func (o Sint64) Shr(n Num) Num
- func (o Sint64) String() string
- func (o Sint64) Sub(n Num) Num
- type Sint8
- type State
- type Suint16
- type Suint32
- type Suint64
- type Suint8
- type TIPort
- type TOPort
- type TPort
- type Transformer
- type TrigNum
Constants ¶
const ( TypeCodeAny = iota TypeCodeType // go:SType TypeCodeNull // go:SNull s:null? -- Evaler interface TypeCodePair // go:SPair s:pair? -- Evaler interface TypeCodeChar // go:SChar s:char? TypeCodeBool // go:SBool s:boolean? TypeCodeProc // go:SProc s:procedure? -- Applier interface TypeCodeBinary // go:SBinary s:bytevector? -- Seq interface TypeCodeNumber // go:Num s:number? -- Num interface TypeCodePort // go:Port s:port? -- Port interface TypeCodeString // go:SString s:string? -- Seq interface TypeCodeSymbol // go:SSymbol s:symbol? -- Evaler interface TypeCodeVector // go:SVector s:vector? -- Seq interface TypeCodeTable // go:STable s:hashtable? TypeCodeRecord // go:Record -- interface TypeCodeLibrary // TypeCodeValues // multiple return values TypeCodeSyntax // -- Transformer interface TypeCodeEnvSpec TypeCodeError TypeCodeLabel TypeCodeVoid TypeCodeMax // maximum )
const ( PortTypeCodeByte = iota PortTypeCodeByteIn // binary intput port PortTypeCodeByteOut // binary output port PortTypeCodeByteInOut // binary port PortTypeCodeChar PortTypeCodeCharIn // textual input port PortTypeCodeCharOut // textual output port PortTypeCodeCharInOut // textual port PortTypeCodeAny PortTypeCodeAnyIn // nonstandard, <-chan Any PortTypeCodeAnyOut // nonstandard, chan<- Any PortTypeCodeAnyInOut // nonstandard, chan Any PortTypeCodeMax // maximum )
const ( // machine fixnums NumberTypeCodeS8 = iota * 2 NumberTypeCodeS16 NumberTypeCodeS32 NumberTypeCodeS64 // machine flonums NumberTypeCodeExactF32 NumberTypeCodeExactF64 // abstract numbers NumberTypeCodeRational NumberTypeCodeInteger // derived numbers bit field NumberTypeCodeBaseMask = 0x0E NumberTypeCodeUnsigned = 0x01 NumberTypeCodeInexact = 0x01 NumberTypeCodePolar = 0x01 NumberTypeCodeComplex = 0x10 NumberTypeCodeDerivedMask = 0x11 NumberTypeCodeU8 = NumberTypeCodeUnsigned | NumberTypeCodeS8 NumberTypeCodeU16 = NumberTypeCodeUnsigned | NumberTypeCodeS16 NumberTypeCodeU32 = NumberTypeCodeUnsigned | NumberTypeCodeS32 NumberTypeCodeU64 = NumberTypeCodeUnsigned | NumberTypeCodeS64 NumberTypeCodeNatural = NumberTypeCodeUnsigned | NumberTypeCodeInteger NumberTypeCodeExactC64 = NumberTypeCodeComplex | NumberTypeCodeExactF32 NumberTypeCodeExactC128 = NumberTypeCodeComplex | NumberTypeCodeExactF64 /* NumberTypeCodeInexactS8 = NumberTypeCodeInexact | NumberTypeCodeS8 NumberTypeCodeInexactS16 = NumberTypeCodeInexact | NumberTypeCodeS16 NumberTypeCodeInexactS32 = NumberTypeCodeInexact | NumberTypeCodeS32 NumberTypeCodeInexactS64 = NumberTypeCodeInexact | NumberTypeCodeS64 NumberTypeCodeInexactU8 = NumberTypeCodeInexact | NumberTypeCodeU8 NumberTypeCodeInexactU16 = NumberTypeCodeInexact | NumberTypeCodeU16 NumberTypeCodeInexactU32 = NumberTypeCodeInexact | NumberTypeCodeU32 NumberTypeCodeInexactU64 = NumberTypeCodeInexact | NumberTypeCodeU64 */ NumberTypeCodeF32 = NumberTypeCodeInexact | NumberTypeCodeExactF32 NumberTypeCodeF64 = NumberTypeCodeInexact | NumberTypeCodeExactF64 NumberTypeCodeC64 = NumberTypeCodeInexact | NumberTypeCodeExactC64 NumberTypeCodeC128 = NumberTypeCodeInexact | NumberTypeCodeExactC128 NumberTypeCodeComplexPolar = NumberTypeCodeComplex | NumberTypeCodePolar NumberTypeCodeComplexRational = NumberTypeCodeComplex | NumberTypeCodeRational NumberTypeCodeComplexPolarRational = NumberTypeCodeComplexPolar | NumberTypeCodeRational NumberTypeCodeMax = 0x20 )
const BOOL = 57347
const CHAR = 57349
const COMMENT = 57364
const ELLIPSIS = 57362
const ID = 57346
const KEYWORD = 57363
const LABEL = 57351
const NUMBER = 57348
const QQUOTE = 57355
const QSYNTAX = 57359
const QUOTE = 57354
const STRING = 57350
const SYNTAX = 57358
const U8VECTORPAREN = 57353
const UNQUOTE = 57356
const UNQUOTES = 57357
const UNSYNTAX = 57360
const UNSYNTAXS = 57361
const VECTORPAREN = 57352
Variables ¶
This section is empty.
Functions ¶
func CountParens ¶
func GetRootPath ¶
func GetRootPath() string
func InexactEqual ¶
func IsBinaryPort ¶
func IsContinuation ¶
func IsContinuation(a interface{}) bool
func IsInputPort ¶
func IsOutputPort ¶
func IsProcedure ¶
func IsRational ¶
func IsTextualPort ¶
func MangleName ¶
func PointerEqual ¶
func SetCmdLine ¶
func SetCmdLine(args []string)
func ToFcmplx ¶
func ToFcmplx(a Any) complex128
func UnmangleName ¶
Types ¶
type Any ¶
Any * * This interface abstracts all data. * * The first method is used by everything. * The second and third method are used by * hashtables mostly, but also by equal?, * eqv?, eq?, and other equality functions.
func DbinaryZKportZS ¶
func DbooleanZQZS ¶
func DbooleanZS ¶
func DbytevectorZKcopy ¶
func DbytevectorZKcopyZA ¶
func DbytevectorZKlength ¶
func DbytevectorZKu8 ¶
func DbytevectorZKu8ZKref ¶
func DbytevectorZKu8ZKsetZA ¶
func DbytevectorZS ¶
func DcallZKwithZKport ¶
func DcallZKwithZKvalues ¶
func DcharZKZRinteger ¶
func DcharZKreadyZS ¶
func DcloseZKinputZKport ¶
func DcloseZKoutputZKport ¶
func DcloseZKport ¶
func DcommandZKline ¶
func DcomplexZS ¶
func DcontinuationZKcapture ¶
func DcontinuationZKreturn ¶
func DcurrentZKerrorZKport ¶
func DcurrentZKinputZKport ¶
func DcurrentZKjiffy ¶
func DcurrentZKoutputZKport ¶
func DcurrentZKsecond ¶
func Ddenominator ¶
func DdroschemeZKbranch ¶
func DdroschemeZKrootZKpath ¶
func DdroschemeZKwait ¶
func DdynamicZKwind ¶
func DeofZKobject ¶
func DeofZKobjectZS ¶
func DerrorZKobjectZKmessage ¶
func DerrorZKobjectZS ¶
func DevalZKliteral ¶
this is to compensate for failing to put an .Eval method on every object (eval-literal expression environment)
func DexactZKZRinexact ¶
func DexactZKintegerZKsqrt ¶
func DflushZKoutputZKport ¶
func DfoldZKleft ¶
(fold-left) -- derived, but useful * * (define fold-left * (case-lambda * ((proc nil) (proc nil)) * ((proc nil ls) * (if (null? ls) nil * (fold-left proc (proc nil (car ls)) (cdr ls)))) * ((proc nil . lss) * (if (null? (car lss)) nil * (let ((cars (map car lss)) * (cdrs (map cdr lss))) * (apply fold-left proc (apply proc * (append (list nil) cars)) cdrs))))))
func DfoldZKright ¶
(fold-right) -- derived, but useful * * (define fold-right * (case-lambda * ((proc nil) (proc nil)) * ((proc nil ls) * (if (null? ls) nil * (proc (car ls) (fold-right proc nil (cdr ls))))) * ((proc nil . lss) * (if (null? (car lss)) nil * (let ((cars (map car lss)) * (cdrs (map cdr lss))) * (apply proc (append cars (list * (apply fold-right proc nil cdrs)))))))))
func DgetZKoutputZKbytevector ¶
(get-output-bytevector port)
func DhashtableZKZRlist ¶
(hash->list hashtable) -- Racket (hashtable->list hashtable) -- droscheme extension
func DhashtableZKZRvector ¶
func DhashtableZKclearZA ¶
(hashtable-clear! hashtable) (hashtable-clear! hashtable k) -- unimplemented
func DhashtableZKcontainsZS ¶
(hashtable-contains? hashtable key)
func DhashtableZKcopy ¶
(hashtable-copy hashtable) -- unimplemented (hashtable-copy hashtable mutable) -- unimplemented
func DhashtableZKref ¶
(hashtable-ref hashtable key) -- droscheme extension (hashtable-ref hashtable key default)
func DhashtableZKupdateZA ¶
(hashtable-update! hashtable key proc) -- droscheme extension (hashtable-update! hashtable key proc default)
func DhashtableZKvalues ¶
(hash-values hashtable) -- Racket (hashtable-values hashtable) -- droscheme extension
func DimagZKpart ¶
func DinexactZKZRexact ¶
func DinexactZQZS ¶
func DinexactZS ¶
func DinputZKportZS ¶
func DintegerZKZRchar ¶
func DintegerZS ¶
func DinteractionZKenvironment ¶
(interaction-environment)
func DlastZKpair ¶
func DlistZKZRstring ¶
func DlistZKcopy ¶
func DlistZKref ¶
func DlistZKtail ¶
func Dmagnitude ¶
func DmakeZKbytevector ¶
(make-bytevector k) (make-bytevector k byte)
func DmakeZKequalZKhashtable ¶
func DmakeZKhashtable ¶
func DmakeZKlist ¶
func DmakeZKpolar ¶
func DmakeZKrectangular ¶
func DnegativeZS ¶
func DnumberZKZRstring ¶
(number->string z) (number->string z radix) (number->string z radix precision)
func DnumberZKtypeZKof ¶
func Dnumerator ¶
func DopenZKbinaryZKinputZKfile ¶
(open-binary-input-file filename)
func DopenZKbinaryZKoutputZKfile ¶
(open-binary-output-file filename)
func DoutputZKportZS ¶
func DpeekZKchar ¶
func DpointerZQZS ¶
func DportZKopenZS ¶
func DpositiveZS ¶
func DprocedureZS ¶
func DraiseZKcontinuable ¶
func DrationalZS ¶
func DreadZKbytevector ¶
func DreadZKbytevectorZA ¶
func DreadZKchar ¶
func DreadZKline ¶
func DrealZKpart ¶
func DschemeZKprimitiveZKenvironment ¶
(scheme-primitive-environment version)
func DschemeZKreportZKenvironment ¶
(scheme-report-environment version)
func DshowZKlist ¶
func DshowZKvector ¶
func DstandardZKerrorZKport ¶
func DstandardZKinputZKport ¶
func DstandardZKoutputZKport ¶
func DstringZKZRlist ¶
func DstringZKZRnumber ¶
(string->number string) (string->number string radix)
func DstringZKZRsymbol ¶
func DstringZKZRutf8 ¶
func DstringZKZRvector ¶
func DstringZKappend ¶
func DstringZKcopy ¶
func DstringZKfillZA ¶
func DstringZKlength ¶
func DstringZKref ¶
func DstringZKsetZA ¶
func Dsubstring ¶
func DsubstringZA ¶
similar to (srfi 13) xsubstring but different (substring! from s e to at)
func DsymbolZKZRstring ¶
func DtextualZKportZS ¶
func Du8ZKreadyZS ¶
func Dutf8ZKZRstring ¶
func DvectorZKZRstring ¶
func DvectorZKcopy ¶
(vector-copy vector) (vector-copy vector start) (vector-copy vector start end) (vector-copy vector start end fill)
func DvectorZKfillZA ¶
(vector-fill! vector fill) (vector-fill! vector fill start end)
func DvectorZKforZKeach ¶
func DvectorZKlength ¶
func DvectorZKmap ¶
func DvectorZKref ¶
func DvectorZKsetZA ¶
func DwriteZKbytevector ¶
func DwriteZKchar ¶
func DwriteZKu8 ¶
func ErrorToPanic ¶
func KcaseZKlambda ¶
func KcurrentZKenvironment ¶
(current-environment) -- for debug only
func Kdefine ¶
(define var) (define var expr) (define (var formals) body) (define (var . formals) body)
func KdefineZKlibrary ¶
(define-library (module name) ...) // R7RS
func KdefineZKmacro ¶
func KdefineZKsyntax ¶
func KdefineZKvalues ¶
func KdumpZKenvironment ¶
(dump-environment) -- for debug only
func Kparameterize ¶
func KsyntaxZKcase ¶
func KsyntaxZKerror ¶
func KsyntaxZKrules ¶
func KunquoteZKsplicing ¶
func NewKeyword ¶
func PanicToError ¶
func ReadString ¶
type BIPort ¶
type BIPort interface { io.ByteReader io.Reader BytePeeker Peeker }
type BytePeeker ¶
type ComplexNum ¶
func NewComplex ¶
func NewComplex(x, y Num) ComplexNum
func NewComplexPolar ¶
func NewComplexPolar(s, a Num) ComplexNum
type ExactNum ¶
type ExactNum interface { Num Inexact() InexactNum }
type InexactNum ¶
type LineReader ¶
type Matcher ¶
Matcher * * This interface represents the first phase * of (syntax-rules) transformations. It is * similar to Equal, except that it takes an * environment, which is normally empty, and * is used as an extra return value in which * pattern variables are bound. * * The pattern variables are used by the next * phase, so in order to save energy later, we * assign any pattern variables found in the * object that implements this method and then * store them in env. The same environment is * also used for literals, which must be given * to the Match method in the form x=x.
type Num ¶
func NewInteger ¶
type RealNum ¶
type RealNum interface { Num Cmp(Num) int // -1, 0, 1 MakeRect(RealNum) ComplexNum MakePolar(RealNum) ComplexNum RTN() IntNum // floor RTE() IntNum // round }
type Replacer ¶
Replacer * * This interface represents the second phase * of (syntax-rules) transformations. It is * similar to Eval, except in the way that the * environment is used. Instead of raising an * error every time a symbol is unbound, it * continues silently, and only replaces those * symbols which are in the environment. * * The pattern variables are given in env by the * Match method, in such a way that we can treat * literals the same as pattern variables, since * they are of the form x=x (see above). Hence, * the literals can safely be replaced just like * the pattern variables. This is the magic * I was hoping to describe in this comment.
type RunePeeker ¶
type RunesWriter ¶
similar to io.WriteString
type SBytePort ¶
type SBytePort struct {
// contains filtered or unexported fields
}
func (*SBytePort) GetPortType ¶
type SCaseSyntax ¶
type SCaseSyntax struct {
// contains filtered or unexported fields
}
func (SCaseSyntax) Equal ¶
func (o SCaseSyntax) Equal(a Any) bool
func (SCaseSyntax) GetHash ¶
func (o SCaseSyntax) GetHash() uintptr
func (SCaseSyntax) GetType ¶
func (o SCaseSyntax) GetType() int
func (SCaseSyntax) String ¶
func (o SCaseSyntax) String() string
type SCharPort ¶
type SCharPort struct {
// contains filtered or unexported fields
}
func (*SCharPort) GetPortType ¶
type SComplex ¶
type SComplex [2]SRational
func NewComplexI ¶
func NewComplexI() SComplex
func (SComplex) GetNumberType ¶
type SComplexPolar ¶
type SComplexPolar [2]SRational
func (SComplexPolar) Add ¶
func (o SComplexPolar) Add(n Num) Num
func (SComplexPolar) Angle ¶
func (o SComplexPolar) Angle() RealNum
func (SComplexPolar) Cmp ¶
func (o SComplexPolar) Cmp(n Num) Num
func (SComplexPolar) Div ¶
func (o SComplexPolar) Div(n Num) Num
func (SComplexPolar) Equal ¶
func (o SComplexPolar) Equal(n Any) bool
func (SComplexPolar) GetHash ¶
func (o SComplexPolar) GetHash() uintptr
func (SComplexPolar) GetNumberType ¶
func (o SComplexPolar) GetNumberType() int
func (SComplexPolar) GetType ¶
func (o SComplexPolar) GetType() int
func (SComplexPolar) Imag ¶
func (o SComplexPolar) Imag() RealNum
func (SComplexPolar) Mod ¶
func (o SComplexPolar) Mod(n Num) Num
func (SComplexPolar) Mul ¶
func (o SComplexPolar) Mul(n Num) Num
func (SComplexPolar) Real ¶
func (o SComplexPolar) Real() RealNum
func (SComplexPolar) Scale ¶
func (o SComplexPolar) Scale() RealNum
func (SComplexPolar) Shl ¶
func (o SComplexPolar) Shl(n Num) Num
func (SComplexPolar) Shr ¶
func (o SComplexPolar) Shr(n Num) Num
func (SComplexPolar) String ¶
func (o SComplexPolar) String() string
func (SComplexPolar) Sub ¶
func (o SComplexPolar) Sub(n Num) Num
type SError ¶
type SError struct {
// contains filtered or unexported fields
}
func (SError) GetErrorType ¶
type SFilePort ¶
func (SFilePort) GetPortType ¶
type SFixnum ¶
type SFixnum struct {
// contains filtered or unexported fields
}
func (SFixnum) Equal ¶
func (o Sfloat32) Equal(a Any) bool { return false } func (o Sfloat64) Equal(a Any) bool { return false } func (o Scomplex64) Equal(a Any) bool { return false } func (o Scomplex128) Equal(a Any) bool { return false }
func (SFixnum) GetNumberType ¶
type SFlonum ¶
type SFlonum struct {
// contains filtered or unexported fields
}
func (SFlonum) GetNumberType ¶
type SInteger ¶
type SInteger struct {
// contains filtered or unexported fields
}
func NewInteger64 ¶
func (SInteger) GetNumberType ¶
func (SInteger) MakePolar ¶
func (o SInteger) MakePolar(n RealNum) ComplexNum
func (SInteger) MakeRect ¶
func (o SInteger) MakeRect(n RealNum) ComplexNum
type SPrimSyntax ¶
type SPrimSyntax struct {
// contains filtered or unexported fields
}
func (SPrimSyntax) Equal ¶
func (o SPrimSyntax) Equal(a Any) bool
func (SPrimSyntax) GetHash ¶
func (o SPrimSyntax) GetHash() uintptr
func (SPrimSyntax) GetType ¶
func (o SPrimSyntax) GetType() int
func (SPrimSyntax) String ¶
func (o SPrimSyntax) String() string
type SProcSyntax ¶
type SProcSyntax struct {
// contains filtered or unexported fields
}
func (SProcSyntax) Equal ¶
func (o SProcSyntax) Equal(a Any) bool
func (SProcSyntax) GetHash ¶
func (o SProcSyntax) GetHash() uintptr
func (SProcSyntax) GetType ¶
func (o SProcSyntax) GetType() int
func (SProcSyntax) String ¶
func (o SProcSyntax) String() string
type SRational ¶
type SRational struct {
// contains filtered or unexported fields
}
func NewRational ¶
func NewRational64 ¶
func ToRational ¶
func (SRational) GetNumberType ¶
func (SRational) MakePolar ¶
func (o SRational) MakePolar(n RealNum) ComplexNum
func (SRational) MakeRect ¶
func (o SRational) MakeRect(n RealNum) ComplexNum
type SRuleSyntax ¶
type SRuleSyntax struct {
// contains filtered or unexported fields
}
func (SRuleSyntax) Equal ¶
func (o SRuleSyntax) Equal(a Any) bool
func (SRuleSyntax) GetHash ¶
func (o SRuleSyntax) GetHash() uintptr
func (SRuleSyntax) GetType ¶
func (o SRuleSyntax) GetType() int
func (SRuleSyntax) String ¶
func (o SRuleSyntax) String() string
type SType ¶
type SType struct {
// contains filtered or unexported fields
}
func (SType) GetPortType ¶
this does not make SType a port because we do not implement the Read/Write methods
type Scomplex128 ¶
type Scomplex128 complex128
func (Scomplex128) Add ¶
func (o Scomplex128) Add(n Num) Num
func (Scomplex128) Angle ¶
func (o Scomplex128) Angle() RealNum
func (Scomplex128) Div ¶
func (o Scomplex128) Div(n Num) Num
func (Scomplex128) Equal ¶
func (o Scomplex128) Equal(n Any) bool
func (Scomplex128) GetHash ¶
func (o Scomplex128) GetHash() uintptr
func (Scomplex128) GetNumberType ¶
func (o Scomplex128) GetNumberType() int
func (Scomplex128) GetType ¶
func (o Scomplex128) GetType() int
func (Scomplex128) Imag ¶
func (o Scomplex128) Imag() RealNum
func (Scomplex128) Mod ¶
func (o Scomplex128) Mod(n Num) Num
func (Scomplex128) Mul ¶
func (o Scomplex128) Mul(n Num) Num
func (Scomplex128) Real ¶
func (o Scomplex128) Real() RealNum
func (Scomplex128) Scale ¶
func (o Scomplex128) Scale() RealNum
func (Scomplex128) Shl ¶
func (o Scomplex128) Shl(n Num) Num
func (Scomplex128) Shr ¶
func (o Scomplex128) Shr(n Num) Num
func (Scomplex128) String ¶
func (o Scomplex128) String() string
func (Scomplex128) Sub ¶
func (o Scomplex128) Sub(n Num) Num
type Scomplex64 ¶
type Scomplex64 complex64
func (Scomplex64) Angle ¶
func (o Scomplex64) Angle() RealNum
func (Scomplex64) Equal ¶
func (o Scomplex64) Equal(n Any) bool
func (Scomplex64) GetHash ¶
func (o Scomplex64) GetHash() uintptr
func (Scomplex64) GetNumberType ¶
func (o Scomplex64) GetNumberType() int
func (Scomplex64) GetType ¶
func (o Scomplex64) GetType() int
func (Scomplex64) Imag ¶
func (o Scomplex64) Imag() RealNum
func (Scomplex64) Real ¶
func (o Scomplex64) Real() RealNum
func (Scomplex64) Scale ¶
func (o Scomplex64) Scale() RealNum
type Sfloat32 ¶
type Sfloat32 float32
inexact
func (Sfloat32) GetNumberType ¶
func (Sfloat32) MakePolar ¶
func (o Sfloat32) MakePolar(n RealNum) ComplexNum
func (Sfloat32) MakeRect ¶
func (o Sfloat32) MakeRect(n RealNum) ComplexNum
type Sfloat64 ¶
type Sfloat64 float64 // flonum
func (Sfloat64) GetNumberType ¶
func (Sfloat64) MakePolar ¶
func (o Sfloat64) MakePolar(n RealNum) ComplexNum
func (Sfloat64) MakeRect ¶
func (o Sfloat64) MakeRect(n RealNum) ComplexNum
type Sint64 ¶
type Sint64 int64 // fixnum
func (Sint64) GetNumberType ¶
func (Sint64) MakePolar ¶
func (o Sint64) MakePolar(n RealNum) ComplexNum
func (Sint64) MakeRect ¶
func (o Sint64) MakeRect(n RealNum) ComplexNum
type Suint8 ¶
type Suint8 uint8
func (Suint8) Equal ¶
func (o Sint32) Equal(a Any) bool { return false } func (o Sint64) Equal(a Any) bool { return false }
func (Suint8) GetNumberType ¶
type TIPort ¶
type TIPort interface { io.RuneReader RunePeeker LineReader }
type TOPort ¶
type TOPort interface { RunesWriter }
type Transformer ¶
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
ds
* Droscheme - a Scheme implementation * Copyright © 2012 Andrew Robbins, Daniel Connelly * * This program is free software: it is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE.
|
* Droscheme - a Scheme implementation * Copyright © 2012 Andrew Robbins, Daniel Connelly * * This program is free software: it is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. |