types

package
v0.0.0-...-5c28dc5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2016 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Boolean

type Boolean bool

Boolean is boolean of scheme.

func (Boolean) String

func (b Boolean) String() string

type Expression

type Expression interface{}

Expression is S-expression

type Number

type Number float64

Number is number of scheme. (based on Go float64)

type Pair

type Pair struct {
	Car Expression
	Cdr Expression
}

Pair is cons

func NewList

func NewList(args ...Expression) *Pair

NewList makes concatenated pair's list. Internally, creating last pair and concatenate it with previous pair.

func (*Pair) Append

func (p *Pair) Append(exp Expression) *Pair

Append add cons pair to given pair exp, first arguments of callee, should be car of this pair.

func (*Pair) IsList

func (p *Pair) IsList() bool

IsList returns if pair is list or not.

* empty pair is list * end of list should be empty pair (empty list)

func (*Pair) IsNull

func (p *Pair) IsNull() bool

IsNull checking if pair is null or not.

func (*Pair) String

func (p *Pair) String() string

type Symbol

type Symbol string

Symbol is index of S-expression in some environment.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL