Package ds_port_runtime

import "ds/port/runtime"
Overview
Index

Overview

Package ds/port/runtime represents the Scheme library (ds port runtime).

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
type BytePort
    func (o *BytePort) Close() error
    func (o *BytePort) Closed() bool
    func (o *BytePort) Equal(a Any) bool
    func (o *BytePort) GetHash() uintptr
    func (o *BytePort) GetPortType() int
    func (o *BytePort) GetType() int
    func (o *BytePort) Peek(n int) (b []byte, err error)
    func (o *BytePort) PeekByte() (b byte, err error)
    func (o *BytePort) PeekRune() (r rune, n int, err error)
    func (o *BytePort) Read(p []byte) (n int, err error)
    func (o *BytePort) ReadByte() (c byte, err error)
    func (o *BytePort) ReadLine() (line []rune, err error)
    func (o *BytePort) ReadRune() (r rune, size int, err error)
    func (o *BytePort) ReadRunes(delim rune) (line []rune, err error)
    func (o *BytePort) UnreadByte() error
    func (o *BytePort) UnreadRune() error
type CharPort
    func (o *CharPort) Close() error
    func (o *CharPort) Closed() bool
    func (o *CharPort) Equal(a Any) bool
    func (o *CharPort) Flush() error
    func (o *CharPort) GetHash() uintptr
    func (o *CharPort) GetPortType() int
    func (o *CharPort) GetType() int
    func (o *CharPort) Peek(n int) (b []byte, err error)
    func (o *CharPort) PeekByte() (b byte, err error)
    func (o *CharPort) PeekRune() (r rune, size int, err error)
    func (o *CharPort) Read(p []byte) (n int, err error)
    func (o *CharPort) ReadByte() (c byte, err error)
    func (o *CharPort) ReadLine() (line []rune, err error)
    func (o *CharPort) ReadRune() (r rune, size int, err error)
    func (o *CharPort) ReadRunes(delim rune) (line []rune, err error)
    func (o *CharPort) ReadyByte() bool
    func (o *CharPort) ReadyRune() bool
    func (o *CharPort) UnreadByte() error
    func (o *CharPort) UnreadRune() error
    func (o *CharPort) Write(c []byte) (n int, err error)
    func (o *CharPort) WriteRunes(r []rune) (n int, err error)
type FilePort
    func (o *FilePort) Closed() bool
    func (o *FilePort) Equal(a Any) bool
    func (o *FilePort) Flush() error
    func (o *FilePort) GetHash() uintptr
    func (o *FilePort) GetPortType() int
    func (o *FilePort) GetType() int
    func (o *FilePort) Peek(n int) (b []byte, err error)
    func (o *FilePort) PeekByte() (b byte, err error)
    func (o *FilePort) PeekRune() (r rune, size int, err error)
    func (o *FilePort) ReadByte() (c byte, err error)
    func (o *FilePort) ReadRune() (r rune, size int, err error)
    func (o *FilePort) ReadRunes(delim rune) (line []rune, err error)
    func (o *FilePort) ReadyByte() bool
    func (o *FilePort) ReadyRune() bool
    func (o *FilePort) String() string
    func (o *FilePort) UnreadByte() (err error)
    func (o *FilePort) UnreadRune() (err error)
    func (o *FilePort) WriteRunes(r []rune) (n int, err error)

Package files

doc.go ds_port_runtime.go error.go export.go file.go global.go import.go kind.go port.go

Constants

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
)

port type codes

type BytePort

type BytePort struct {
    // contains filtered or unexported fields
}

func (*BytePort) Close

func (o *BytePort) Close() error

func (*BytePort) Closed

func (o *BytePort) Closed() bool

func (*BytePort) Equal

func (o *BytePort) Equal(a Any) bool

func (*BytePort) GetHash

func (o *BytePort) GetHash() uintptr

func (*BytePort) GetPortType

func (o *BytePort) GetPortType() int

func (*BytePort) GetType

func (o *BytePort) GetType() int

func (*BytePort) Peek

func (o *BytePort) Peek(n int) (b []byte, err error)

func (*BytePort) PeekByte

func (o *BytePort) PeekByte() (b byte, err error)

func (*BytePort) PeekRune

func (o *BytePort) PeekRune() (r rune, n int, err error)

func (*BytePort) Read

func (o *BytePort) Read(p []byte) (n int, err error)

func (*BytePort) ReadByte

func (o *BytePort) ReadByte() (c byte, err error)

func (*BytePort) ReadLine

func (o *BytePort) ReadLine() (line []rune, err error)

func (*BytePort) ReadRune

func (o *BytePort) ReadRune() (r rune, size int, err error)

func (*BytePort) ReadRunes

func (o *BytePort) ReadRunes(delim rune) (line []rune, err error)

func (*BytePort) UnreadByte

func (o *BytePort) UnreadByte() error

func (*BytePort) UnreadRune

func (o *BytePort) UnreadRune() error

type CharPort

type CharPort struct {
    // contains filtered or unexported fields
}

func (*CharPort) Close

func (o *CharPort) Close() error

func (*CharPort) Closed

func (o *CharPort) Closed() bool

func (*CharPort) Equal

func (o *CharPort) Equal(a Any) bool

func (*CharPort) Flush

func (o *CharPort) Flush() error

func (*CharPort) GetHash

func (o *CharPort) GetHash() uintptr

func (*CharPort) GetPortType

func (o *CharPort) GetPortType() int

func (*CharPort) GetType

func (o *CharPort) GetType() int

func (*CharPort) Peek

func (o *CharPort) Peek(n int) (b []byte, err error)

func (*CharPort) PeekByte

func (o *CharPort) PeekByte() (b byte, err error)

func (*CharPort) PeekRune

func (o *CharPort) PeekRune() (r rune, size int, err error)

func (*CharPort) Read

func (o *CharPort) Read(p []byte) (n int, err error)

func (*CharPort) ReadByte

func (o *CharPort) ReadByte() (c byte, err error)

func (*CharPort) ReadLine

func (o *CharPort) ReadLine() (line []rune, err error)

func (*CharPort) ReadRune

func (o *CharPort) ReadRune() (r rune, size int, err error)

func (*CharPort) ReadRunes

func (o *CharPort) ReadRunes(delim rune) (line []rune, err error)

func (*CharPort) ReadyByte

func (o *CharPort) ReadyByte() bool

func (*CharPort) ReadyRune

func (o *CharPort) ReadyRune() bool

func (*CharPort) UnreadByte

func (o *CharPort) UnreadByte() error

func (*CharPort) UnreadRune

func (o *CharPort) UnreadRune() error

func (*CharPort) Write

func (o *CharPort) Write(c []byte) (n int, err error)

func (*CharPort) WriteRunes

func (o *CharPort) WriteRunes(r []rune) (n int, err error)

type FilePort

type FilePort struct {
    *os.File
    // contains filtered or unexported fields
}

func (*FilePort) Closed

func (o *FilePort) Closed() bool

func (*FilePort) Equal

func (o *FilePort) Equal(a Any) bool

func (*FilePort) Flush

func (o *FilePort) Flush() error

func (*FilePort) GetHash

func (o *FilePort) GetHash() uintptr

func (*FilePort) GetPortType

func (o *FilePort) GetPortType() int

func (*FilePort) GetType

func (o *FilePort) GetType() int

func (*FilePort) Peek

func (o *FilePort) Peek(n int) (b []byte, err error)

func (*FilePort) PeekByte

func (o *FilePort) PeekByte() (b byte, err error)

func (*FilePort) PeekRune

func (o *FilePort) PeekRune() (r rune, size int, err error)

func (*FilePort) ReadByte

func (o *FilePort) ReadByte() (c byte, err error)

func (*FilePort) ReadRune

func (o *FilePort) ReadRune() (r rune, size int, err error)

func (*FilePort) ReadRunes

func (o *FilePort) ReadRunes(delim rune) (line []rune, err error)

func (*FilePort) ReadyByte

func (o *FilePort) ReadyByte() bool

func (*FilePort) ReadyRune

func (o *FilePort) ReadyRune() bool

func (*FilePort) String

func (o *FilePort) String() string

func (*FilePort) UnreadByte

func (o *FilePort) UnreadByte() (err error)

func (*FilePort) UnreadRune

func (o *FilePort) UnreadRune() (err error)

func (*FilePort) WriteRunes

func (o *FilePort) WriteRunes(r []rune) (n int, err error)