Documentation ¶
Index ¶
- func ReadBigNumEnd(r *bufio.Reader) bool
- func ReadBigNumStart(r *bufio.Reader) bool
- func ReadDataUntil(r *bufio.Reader, until func(byte) bool) []byte
- func ReadListEnd(r *bufio.Reader) bool
- func ReadListStart(r *bufio.Reader) bool
- func ReadStringEnd(r *bufio.Reader) bool
- func ReadStringStart(r *bufio.Reader) bool
- func ReadWhitespace(r *bufio.Reader)
- type BigNum
- type Cons
- type Snil
- type Sstring
- type Symbol
- type Value
- func List(values ...Value) Value
- func Read(r *bufio.Reader) Value
- func ReadBigNum(r *bufio.Reader) Value
- func ReadList(r *bufio.Reader) Value
- func ReadListItem(r *bufio.Reader) Value
- func ReadString(r *bufio.Reader) Value
- func ReadSymbol(r *bufio.Reader) Value
- func ReadValue(r *bufio.Reader) (Value, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadBigNumEnd ¶
ReadBigNumEnd will expect the end character for an S-Expression bignum and return false if not encountered
func ReadBigNumStart ¶
ReadBigNumStart will expect the start character for an S-Expression bignum and return false if not encountered
func ReadDataUntil ¶
ReadDataUntil will read and collect bytes from the reader until it encounters EOF or the given function returns true.
func ReadListEnd ¶
ReadListEnd will expect the end character for an S-Expression list and return false if not encountered
func ReadListStart ¶
ReadListStart will expect the start character for an S-Expression list and return false if not encountered
func ReadStringEnd ¶
ReadStringEnd will read the string end character and return false if it is not encountered
func ReadStringStart ¶
ReadStringStart will read the string start character and return false if it is not encountered
func ReadWhitespace ¶
ReadWhitespace will read from the reader until no whitespace is encountered
Types ¶
type BigNum ¶
type BigNum struct {
// contains filtered or unexported fields
}
BigNum is an S-Expression big number
type Cons ¶
type Cons struct {
// contains filtered or unexported fields
}
Cons is an S-Expression cons cell
type Snil ¶
type Snil struct{}
Snil is a representation of nil in an S-Expression.
type Sstring ¶
type Sstring string
Sstring represents an S-Expression symbol.
type Value ¶
Value is an S-Expression value
func ReadBigNum ¶
ReadBigNum will read a bignum from the given reader and return it
func ReadListItem ¶
ReadListItem recursively read a list item and the next potential item
func ReadString ¶
ReadString will read a string from the reader
func ReadSymbol ¶
ReadSymbol will read a symbol from the reader