Documentation ¶
Index ¶
- Variables
- func InitEnv()
- func Main()
- func ReadChar(in io.RuneScanner) (r rune, size int, err error)
- type Atom
- type Callable
- type Evaler
- type Func
- type List
- func (this List) Atomp() bool
- func (this List) Eval(sexp Sexper) Sexper
- func (this List) Funcp() bool
- func (this List) Get(key Sexper) Sexper
- func (this List) Listp() bool
- func (this List) Numberp() bool
- func (this List) Set(key, val Sexper) List
- func (this List) String() string
- func (this List) Stringp() bool
- type Number
- type Sexper
- type String
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NIL = Atom{"nil"} TEE = Atom{"t"} QUOTE = Atom{"quote"} ATOM = Atom{"atom"} EQ = Atom{"eq"} CAR = Atom{"car"} CDR = Atom{"cdr"} CONS = Atom{"cons"} COND = Atom{"cond"} )
View Source
var ( ERROR_EOF = `End of file during parsing` ERROR_DOT = `Invalid read syntax: ". in wrong context"` )
View Source
var GlobalEnv = fn_cons(fn_cons(Atom{"os"}, Atom{"mac"}), NIL).(List)
Functions ¶
Types ¶
type Sexper ¶
type Sexper interface { Numberp() bool Stringp() bool Funcp() bool Atomp() bool Listp() bool String() string }
func ReadList ¶
func ReadList(in io.RuneScanner) Sexper
func ReadNumber ¶
func ReadNumber(in io.RuneScanner) Sexper
func ReadSexp ¶
func ReadSexp(in io.RuneScanner) Sexper
func ReadString ¶
func ReadString(in io.RuneScanner) Sexper
Click to show internal directories.
Click to hide internal directories.